OSDN Git Service

8c340c1102fdc327969c41538b81466b80c8e0cd
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2008-11-07  Bechir Zalila  <bechir.zalila@gmail.com>
2             Eric Botcazou  <ebotcazou@adacore.com>
3
4         PR ada/34289
5         * lib.ads: (Enable_Switch_Storing): Declare.
6         * lib.adb: (Enable_Switch_Storing): New procedure.
7         * switch-c.adb (Scan_Front_End_Switches): Add support for -gnatea.
8         * make.adb: (Compile_Sources.Compile): Add -gnatea as first option.
9         (Display): Never display -gnatea
10         * gcc-interface/lang-specs.h: If -gnatea is present, pass -gnatez.
11
12 2008-11-07  Thomas Quinot  <quinot@adacore.com>
13
14         * gcc-interface/trans.c (Attribute_to_gnu, case Attr_Length): Check
15         for empty range in original base type, not converted result type.
16
17 2008-11-07  Geert Bosch  <bosch@adacore.com>
18
19         * gcc-interface/trans.c (build_binary_op_trapv): Convert arguments
20         and result for call to __gnat_mulv64.
21
22 2008-11-07  Eric Botcazou  <ebotcazou@adacore.com>
23
24         * gcc-interface/trans.c: Fix formatting nits.
25
26 2008-11-07  Geert Bosch  <bosch@adacore.com>
27
28         * gcc-interface/trans.c (build_binary_op_trapv): Avoid emitting
29         overflow check for constant result.
30
31 2008-11-07  Geert Bosch  <bosch@adacore.com>
32
33         * gcc-interface/trans.c (build_binary_op_trapv): Use more efficient
34         overflow check for addition/subtraction if neither operand is constant.
35
36 2008-11-06  Eric Botcazou  <ebotcazou@adacore.com>
37
38         * gcc-interface/Makefile.in (SPARC/Solaris): Use a common set of
39         files for the target-dependent part of the runtime.
40         (SPARC/Linux): Likewise.
41
42 2008-11-06  Eric Botcazou  <ebotcazou@adacore.com>
43
44         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Out_Parameter>: If not
45         optimizing, create a PARM_DECL pointing to the VAR_DECL for debugging
46         purposes.
47
48 2008-11-06  Eric Botcazou  <ebotcazou@adacore.com>
49
50         * gcc-interface/misc.c (gnat_printable_name): Always return a copy
51         in GC memory.
52
53 2008-11-06  Eric Botcazou  <ebotcazou@adacore.com>
54
55         PR ada/19419
56         * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>:
57         Generate a call to memmove for an assignment between overlapping
58         array slices.
59
60 2008-11-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
61
62         PR target/37977
63         * gcc-interface/Makefile.in: Add multilib handling for
64         s390-linux and s390x-linux.
65
66 2008-10-24  Jakub Jelinek  <jakub@redhat.com>
67
68         * gcc-interface/Make-lang.in (check-ada-subtargets): Depend on
69         check-acats-subtargets and check-gnat-subtargets.
70         (check_acats_targets): New variable.
71         (check-acats-subtargets, check-acats%): New targets.
72         (check-acats): If -j is used and CHAPTERS is empty, run the testing
73         in multiple make goals, possibly parallel, and afterwards run
74         dg-extract-results.sh to merge the sum and log files.
75
76 2008-10-17  Geert Bosch  <bosch@adacore.com>
77
78         * gcc-interface/trans.c (gnat_to_gnu) <N_Slice>: Simplify expansion
79         to use only a single check instead of three, and avoid unnecessary
80         COMPOUND_EXPR.
81         (emit_check): Avoid useless COMPOUND_EXPRs and SAVE_EXPRs, sometimes
82         creating more opportunities for optimizations.
83
84 2008-10-13  Jakub Jelinek  <jakub@redhat.com>
85
86         PR middle-end/37601
87         * gcc-interface/utils.c (gnat_types_compatible_p): Handle
88         NULL TYPE_DOMAIN.
89
90 2008-10-07  Eric Botcazou  <ebotcazou@adacore.com>
91
92         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Move code
93         dealing with volatileness to after code dealing with renaming.
94
95 2008-10-06  Eric Botcazou  <ebotcazou@adacore.com>
96
97         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Minor tweaks.
98         * gcc-interface/trans.c (Pragma_to_gnu): Likewise.
99
100 2008-10-06  Eric Botcazou  <ebotcazou@adacore.com>
101
102         * gcc-interface/utils.c (can_fold_for_view_convert_p): New predicate.
103         (unchecked_convert): Use it to disable problematic folding with
104         VIEW_CONVERT_EXPR in the general case.  Always disable it for the
105         special VIEW_CONVERT_EXPR built for integral types and cope with
106         its addressability issues by preserving the first conversion.
107
108 2008-10-01  Andreas Schwab  <schwab@suse.de>
109
110         * system-linux-ppc64.ads: New file.
111         * gcc-interface/Makefile.in: Add multilib handling for
112         powerpc-linux.
113
114 2008-09-26  Eric Botcazou  <ebotcazou@adacore.com>
115
116         * decl.c (gnat_to_gnu_entity) <object>: Cap the alignment promotion
117         to that of ptr_mode instead of word_mode.
118
119 2008-09-26  Eric Botcazou  <ebotcazou@adacore.com>
120
121         PR ada/5911
122         * gcc-interface/Makefile.in (SPARC/Solaris): Add multilib support.
123
124 2008-09-25  Samuel Tardieu  <sam@rfc1149.net>
125
126         PR ada/37641
127         * adaint.c (__gnat_set_non_writable): Use FILE_WRITE_EA
128         instead of deprecated FILE_WRITE_PROPERTIES.
129
130 2008-09-22  Olivier Hainque  <hainque@adacore.com>
131
132         * gcc-interface/decl.c (gnat_to_gnu_entity): Even when they
133         are never assigned, volatile entities are not constant for code
134         generation purposes.
135
136 2008-09-21  Laurent Guerby  <laurent@guerby.net>
137
138         PR ada/5911
139         * gcc-interface/Makefile.in: Add multilib handling for x86_64
140         and sparc.
141         * system-linux-sparcv9.ads: New file.
142
143 2008-09-20  Eric Botcazou  <ebotcazou@adacore.com>
144
145         * exp_dbug.ads: Document new convention for the XVZ variable.
146         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Generate
147         debug info if necessary for the type padding the component type.
148         <E_Array_Subtype>: Likewise.
149         (maybe_pad_type): Emit the XVZ variable in units.
150         * gcc-interface/trans.c (Loop_Statement_to_gnu): Fix formatting nits.
151         (Subprogram_Body_to_gnu): Set the source line of the subprogram's node
152         on statements generated to initialize the parameter attributes cache.
153         Set the source line of the end label of the body on the special return
154         statement built for a procedure with copy-in copy-out parameters.
155
156 2008-09-20  Eric Botcazou  <ebotcazou@adacore.com>
157
158         PR ada/37585
159         * gcc-interface/utils.c (create_subprog_decl): Disable inlining for
160         inlined external functions if they contain a nested function not
161         declared inline.
162
163 2008-09-18  Jan Hubicka  <jh@suse.cz>
164
165         * gcc-interface/utils.c (create_subprog_decl): Use DECL_DECLARED_INLINE_P.
166         (end_subprog_body): Do not set DECL_INLINE.
167
168 2008-09-17  Pascal Rigaux  <pixel@mandriva.com>
169
170         PR ada/21327
171         * gnat_ugn.texi: Use proper format in direntry.
172
173 2008-09-15  Eric Botcazou  <ebotcazou@adacore.com>
174
175         * gcc-interface/trans.c (gigi): Declare the name of the compilation
176         unit as the first global name.
177
178 2008-09-14  Jan Hubicka  <jh@suse.cz>
179
180         * gcc-interface/Make-lang.in (gnat1): Add CFLAGS.
181
182 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
183
184         * a-crbtgk.adb, a-direct.ads, a-tasatt.adb, ali.ads,
185         bindgen.adb, checks.adb, einfo.ads, exp_aggr.adb, exp_ch11.adb,
186         exp_ch3.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb,
187         exp_dbug.ads, exp_disp.adb, exp_dist.adb, exp_pakd.adb,
188         exp_util.adb, g-alveop.ads, g-comlin.adb, g-comlin.ads,
189         g-diopit.adb, g-socket.ads, gcc-interface/decl.c,
190         gcc-interface/gigi.h, gcc-interface/trans.c,
191         lib-load.adb, lib-xref.ads, make.adb, mlib-prj.adb, nlists.ads,
192         opt.ads, par-ch10.adb, par-ch5.adb, par.adb, s-os_lib.ads,
193         s-oscons-tmplt.c, s-parint.ads, s-regpat.ads, s-shasto.ads,
194         s-stausa.ads, s-taprop-vms.adb, sem.adb, sem_ch10.adb,
195         sem_ch11.adb, sem_ch12.adb, sem_ch13.adb, sem_ch3.adb,
196         sem_ch3.ads, sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
197         sem_elim.adb, sem_prag.adb, sem_util.adb, sem_util.ads,
198         sem_warn.adb, sinfo.ads, styleg.adb, vms_data.ads: Fix typos in
199         comments.
200         * gnathtml.pl: Fix typos.
201
202 2008-09-10  Joel Sherrill <joel.sherrill@oarcorp.com>
203
204         * gcc-interface/Makefile.in: Switch RTEMS to s-interr-hwint.adb.
205         * s-osinte-rtems.ads: Add shared hardware interrupt adapter
206         layer. RTEMS binds to OS provided adapter routines so there are
207         no modifications to s-osinte-rtems.adb.
208
209 2008-09-09  Arnaud Charlet  <charlet@adacore.com>
210             Joel Sherrill  <joel.sherrill@oarcorp.com>
211
212        * gcc-interface/Makefile.in: Switch VxWorks to s-interr-hwint.adb.
213
214        * s-interr-vxworks.adb: Renamed to s-interr-hwint.adb
215
216        * s-interr-hwint.adb: New file.
217
218         * s-osinte-vxworks.ads, s-osinte-vxworks.adb: Add new functions
219         needed by s-interr-hwint.adb.
220
221         * s-osinte-vxworks-kernel.adb: New file.
222
223 2008-09-05  Joel Sherrill <joel.sherrill@oarcorp.com>
224
225         * s-stchop-rtems.adb: Add file missed in early commit.  Already
226         referenced in gcc-interface/Makefile.in.
227
228 2008-08-30  Thomas Quinot  <quinot@adacore.com>
229
230         * gcc-interface/Make-lang.in: Allow s-oscons.{o,ali} to
231         be built even without a separate libada directory.
232
233 2008-08-22  Arnaud Charlet  <charlet@adacore.com>
234
235         * lib-xref.ads: Fix typo in subprogram reference definition.
236
237 2008-08-22  Robert Dewar  <dewar@adacore.com>
238
239         * s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-strops.adb: Minor code fix
240         to avoid warning.
241
242         * g-trasym.adb: Ditto
243
244         * s-utf_32.adb (Get_Category): Fix obvious typo
245
246         * s-wwdcha.adb: Minor code reorganization
247         Remove dead code
248
249 2008-08-22  Robert Dewar  <dewar@adacore.com>
250
251         * checks.adb (Determine_Range): Deal with values that might be invalid
252
253         * opt.adb, opt.ads (Assume_No_Invalid_Values[_Config]): New
254         configuration switches.
255
256         * par-prag.adb: Dummy entry for pragma Assume_No_Invalid_Values
257
258         * sem_prag.adb: Implement pragma Assume_No_Default_Values
259
260         * snames.adb, snames.ads, snames.h:
261         Add entries for pragma Assume_No_Invalid_Values
262
263         * switch-c.adb: Add processing for -gnatB switch
264
265         * usage.adb: Add entry for flag -gnatB (no bad invalid values)
266
267 2008-08-22  Javier Miranda  <miranda@adacore.com>
268
269         * exp_ch3.adb (Build_Init_Statements): Transfer to the body of the
270         init procedure all the expanded code associated with the spec of
271         task types and protected types.
272
273 2008-08-22  Gary Dismukes  <dismukes@adacore.com>
274
275         * exp_aggr.adb (Static_Array_Aggregate): Call Analyze_And_Resolve on the
276         component expression copies rather than directly setting Etype and
277         Is_Static_Expression.
278
279 2008-08-22  Gary Dismukes  <dismukes@adacore.com>
280
281         * sem_util.adb (Has_Preelaborable_Initialization): Revise checking of
282         private types to allow for types derived from a private type with
283         preelaborable initialization, but return False for a private extension
284         (unless it has the pragma).
285
286 2008-08-22  Robert Dewar  <dewar@adacore.com>
287
288         * opt.ads: Minor code reorganization (put entries in alpha order)
289
290 2008-08-22  Pascal Obry  <obry@adacore.com>
291
292         * initialize.c, adaint.c: Use Lock_Task and Unlock_Task for non-blocking
293         spawn.
294
295 2008-08-22  Geert Bosch  <bosch@adacore.com>
296
297         * gcc-interface/trans.c: Define FP_ARITH_MAY_WIDEN
298         (convert_with_check): Only use longest_float_type if FP_ARITH_MAY_WIDEN is 0
299
300 2008-08-22  Doug Rupp  <rupp@adacore.com>
301
302         * bindgen.adb [VMS] (Gen_Adainit_Ada, Gen_Adainit_C): Import and call
303         __gnat_set_features.
304
305         * init.c
306         (__gnat_set_features): New function.
307         (__gnat_features_set): New tracking variable.
308         (__gl_no_malloc_64): New feature global variable
309
310 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
311
312         * sem_ch8.adb (Use_One_Type): Do not emit warning message about redundant
313         use_type_clause in an instance.
314
315 2008-08-22  Bob Duff  <duff@adacore.com>
316
317         * exp_ch6.ads: Remove pragma Precondition, since it breaks some builds.
318
319 2008-08-22  Robert Dewar  <dewar@adacore.com>
320
321         * exp_ch6.adb: Minor reformatting
322
323         * exp_ch7.adb: Minor reformatting
324
325         * exp_ch7.ads: Put routines in proper alpha order
326
327         * exp_dist.adb: Minor reformatting
328
329 2008-08-22  Vincent Celier  <celier@adacore.com>
330
331         * prj.ads: Minor comment update
332
333 2008-08-22  Robert Dewar  <dewar@adacore.com>
334
335         * sem_ch5.adb (One_Bound): Fix latent bug involving secondary stack
336
337 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
338
339         * exp_tss.adb:
340         (Base_Init_Proc): For a protected subtype, use the base type of the
341         corresponding record to locate the propoer initialization procedure.
342
343 2008-08-22  Robert Dewar  <dewar@adacore.com>
344
345         * checks.adb:
346         (In_Subrange_Of): New calling sequence
347         (Determine_Range): Prepare for new processing using base type
348
349         * exp_ch4.adb:
350         (Compile_Time_Compare): Use new calling sequence
351
352         * exp_ch5.adb:
353         (Compile_Time_Compare): Use new calling sequence
354
355         * sem_eval.adb:
356         (Compile_Time_Compare): New calling sequence allows dealing with
357         invalid values.
358         (In_Subrange_Of): Ditto
359
360         * sem_eval.ads:
361         (Compile_Time_Compare): New calling sequence allows dealing with
362         invalid values.
363         (In_Subrange_Of): Ditto
364
365 2008-08-22  Pascal Obry  <obry@adacore.com>
366
367         * adaint.c: Fix possible race condition on win32_wait().
368
369 2008-08-22  Bob Duff  <duff@adacore.com>
370
371         * exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb, freeze.adb,
372         exp_ch4.adb, exp_ch6.ads, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
373         exp_intr.adb, exp_ch3.adb: Rename:
374         Exp_Ch7.Controlled_Type => Needs_Finalization
375         Exp_Ch7.CW_Or_Controlled_Type => CW_Or_Has_Controlled_Part
376         Exp_Ch5.Expand_N_Extended_Return_Statement.Controlled_Type =>
377          Has_Controlled_Parts
378         (Has_Some_Controlled_Component): Fix bug in array case.
379
380 2008-08-22  Robert Dewar  <dewar@adacore.com>
381
382         * sem_ch8.adb: Minor reformatting
383
384 2008-08-22  Kevin Pouget  <pouget@adacore.com>
385
386         * s-shasto.ads, s-shasto.adb: Move Shared_Var_ROpen, Shared_Var_WOpen and
387         Shared_Var_Close procedure specifications from package spec to package body.
388
389         * rtsfind.ads: Remove RE_Shared_Var_Close, RE_Shared_Var_ROpen,
390         RE_Shared_Var_WOpen entries.
391
392         * exp_dist.adb: Update RE_Any_Content_Ptr to RE_Any_Container_Ptr in
393         Build_To_Any_Call, Build_TypeCode_Call and Build_From_Any_Call procedures.
394
395 2008-08-22  Eric Botcazou  <ebotcazou@adacore.com>
396
397         * init.c: adjust EH support code on Alpha/Tru64 as well.
398
399         * raise-gcc.c: Add back a couple of comments.
400
401 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
402
403         * exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is
404         involved and the return type is class-wide, use the type of the expression
405         for the generated access type. Suppress useless discriminant checks on the
406         allocator.
407
408 2008-08-22  Bob Duff  <duff@adacore.com>
409
410         * exp_ch7.adb: Minor comment fix
411
412         * exp_ch6.ads: Minor comment fix
413
414 2008-08-22  Thomas Quinot  <quinot@adacore.com>
415
416         * sem_ch8.adb: Minor reformatting
417         Minor code reorganization (introduce subprogram to factor duplicated
418         code).
419
420 2008-08-22  Sergey Rybin  <rybin@adacore.com>
421
422         * gnat_ugn.texi: Change the description of gnatcheck default rule
423         settings.
424
425 2008-08-22  Eric Botcazou  <ebotcazou@adacore.com>
426
427         * init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX,
428         Solaris, FreeBSD, VxWorks and PowerPC/Linux.  For x86{-64}/Linux,
429         do not adjust the PC anymore.
430         (__gnat_error_handler): Do not call __gnat_adjust_context_for_raise
431         on AIX, HP-UX, Solaris, FreeBSD and VxWorks.
432
433         * raise-gcc.c (get_call_site_action_for): Use _Unwind_GetIPInfo
434         instead of _Unwind_GetIP.
435
436 2008-08-22  Gary Dismukes  <dismukes@adacore.com>
437
438         * exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate
439         with a range is transformed into a positional aggregate, any copied
440         component literals should be marked Is_Static_Expression.
441
442         * sem_eval.adb (Compile_Time_Known_Value): Don't treat null literals as
443         not being known at at compile time when Configurable_Run_Time_Mode is
444         true.
445
446 2008-08-22  Robert Dewar  <dewar@adacore.com>
447
448         * exp_attr.adb:
449         (Expand_N_Attribute_Reference): No validity checking on OUT parameter of
450         Read or Input attribute.
451
452 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
453
454         * sem_ch8.adb (Use_One_Type): when checking which of two use_type
455         clauses in related units is redundant, if one of the units is a package
456         instantiation, use its instance_spec to determine which unit is the
457         ancestor of the other.
458
459 2008-08-22  Javier Miranda  <miranda@adacore.com>
460
461         * exp_attr.adb (Expand_N_Attribute_Reference): In case of access
462         attributes add missing support to handle designated types that come
463         from the limited view.
464
465         * exp_disp.adb (Expand_Interface_Conversion): Remove wrong assertion.
466
467 2008-08-22  Sergey Rybin  <rybin@adacore.com>
468
469         * vms_data.ads: Add entry for new gnatcheck -mNNN option
470
471         * gnat_ugn.texi: Add description for gnatcheck option '-m'
472
473 2008-08-22  Sergey Rybin  <rybin@adacore.com>
474
475         * gnat_ugn.texi: Update the gnatcheck subsection for metric rules
476         acoording to the latest changes in the metric rule interface
477
478 2008-08-22  Vincent Celier  <celier@adacore.com>
479
480         * make.adb (Check.File_Not_A_Source_Of): New Boolean function
481         (Check): Check if the file names registered in the ALI file for the
482         spec, the body and each of the subunits are the ones expected.
483
484 2008-08-22  Robert Dewar  <dewar@adacore.com>
485
486         * g-catiio.adb: Code cleanup.
487
488 2008-08-20  Vincent Celier  <celier@adacore.com>
489
490         * make.adb (Gnatmake): Remove extra space in version line
491
492         * ali.adb:
493         (Scan_ALI): Use Name_Find, not Name_Enter to get the name of a subunit,
494         as the name may already have been entered in the table by the Project
495         Manager.
496
497 2008-08-20  Jose Ruiz  <ruiz@adacore.com>
498
499         * errno.c (__get_errno, __set_errno for MaRTE): Transform then into
500         weak symbols so we use the version provided by MaRTE when available.
501
502 2008-08-20  Emmanuel Briot  <briot@adacore.com>
503
504         * g-catiio.ads, g-catiio.adb:
505         (Value): Avoid an unnecessary system call to Clock in most cases.
506         This call is only needed when only the time is provided in the string,
507         and ignored in all other cases. This is more efficient.
508
509 2008-08-20  Eric Botcazou  <ebotcazou@adacore.com>
510
511         * raise-gcc.c: Fix formatting nits.
512
513 2008-08-20  Robert Dewar  <dewar@adacore.com>
514
515         * sem_ch13.adb:
516         (Adjust_Record_For_Reverse_Bit_Order): Do not access First_Bit for
517         non-existing component clause.
518
519         * exp_ch5.adb: Minor reformatting
520
521         * g-comlin.adb: Minor reformatting
522
523         * make.adb: Minor reformatting
524
525         * prj-proc.adb: Minor reformatting
526
527         * stylesw.ads: Minor reformatting
528
529 2008-08-20  Vincent Celier  <celier@adacore.com>
530
531         * make.adb (Gnatmake_Switch_Found): New Boolean global variable
532         (Switch_May_Be_Passed_To_The_Compiler): New Boolean global variable
533         (Add_Switches): New Boolean parameter Unknown_Switches_To_The_Compiler
534          defaulted to True. Fail when Unknown_Switches_To_The_Compiler is False
535         and a switch is not recognized by gnatmake.
536         (Gnatmake): Implement new scheme for gnatmake switches and global
537         compilation switches.
538         (Switches_Of): Try successively Switches (<file name>),
539         Switches ("Ada"), Switches (others) and Default_Switches ("Ada").
540
541 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
542
543         * styleg-c.ads, styleg-c.adb (Missing_Overriding): new procedure to
544         implement style check that overriding operations are explicitly marked
545         at such.
546
547         * style.ads (Missing_Overriding): new procedure that provides interface
548         to previous one.
549
550         * stylesw.ads, stylesw.adb: New style switch -gnatyO, to enable check
551         that the declaration or body of overriding operations carries an
552         explicit overriding indicator.
553
554         * sem_ch8.adb
555         (Analyze_Subprogram_Renaming): if operation is overriding, check whether
556         explicit indicator should be present.
557
558         * sem_ch6.adb (Verify_Overriding_Indicator,
559         Check_Overriding_Indicator): If operation is overriding, check whether
560         declaration and/or body of subprogram should be present
561
562 2008-08-20  Vincent Celier  <celier@adacore.com>
563
564         * prj-nmsc.adb (Check_Naming_Schemes): Accept source file names for
565         gprbuild when casing is MixedCase, whatever the casing of the letters
566         in the file name.
567
568 2008-08-20  Gary Dismukes  <dismukes@adacore.com>
569
570         * exp_ch3.adb (Build_Array_Init_Proc): Clarify comment related to
571         creating dummy init proc.
572         (Requires_Init_Proc): Return False in the case No_Default_Initialization
573         is in force and the type does not have associated default
574         initialization. Move test of Is_Public (with tests of restrictions
575         No_Initialize_Scalars and No_Default_Initialization) to end, past tests
576         for default initialization.
577
578 2008-08-20  Jerome Lambourg  <lambourg@adacore.com>
579
580         * g-comlin.adb (For_Each_Simple_Switch): Take care of switches not part
581         of any alias or prefix but having attached parameters (as \"-O2\").
582
583 2008-08-20  Robert Dewar  <dewar@adacore.com>
584
585         * s-fileio.adb: Minor reformatting
586
587 2008-08-20  Thomas Quinot  <quinot@adacore.com>
588
589         * exp_strm.adb (Build_Elementary_Input_Call,
590         Build_Elementary_Write_Call): Fix incorrect condition in circuitry that
591         selects the stream attribute routines for long float types.
592
593 2008-08-20  Vincent Celier  <celier@adacore.com>
594
595         * prj-proc.adb (Process_Declarative_Items): Add Location for Array_Data
596
597         * prj.ads (Array_Data): Add a component Location
598
599 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
600
601         * sem_prag.adb:
602         (Analyze_Pragma, case Obsolescent): Add entity information on the pragma
603         argument for ASIS and navigation use.
604
605 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
606
607         * einfo.ads: Add comment.
608
609 2008-08-20  Bob Duff  <duff@adacore.com>
610
611         * sem_eval.ads: Minor comment fix.
612
613 2008-08-20  Bob Duff  <duff@adacore.com>
614
615         * exp_ch4.adb (Expand_N_And_Then, Expand_N_Or_Else): Improve constant
616         folding. We were folding things like "False and then ...", but not
617         "X and then ..." where X is a constant whose value is known at compile
618         time.
619
620 2008-08-20  Hristian Kirtchev  <kirtchev@adacore.com>
621
622         * exp_ch5.adb (Controlled_Type): New routine.
623         (Expand_N_Extended_Return_Statement): When generating a move of the
624         final list in extended return statements, check the type of the
625         function and in the case of double expanded return statements, the type
626         of the returned object.
627         (Expand_Simple_Function_Return): Perform an interface conversion when
628         the type of the returned object is an interface and the context is an
629         extended return statement.
630
631 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
632
633         * sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type
634         and the full view is visible, set flag on full view as well.
635
636 2008-08-20  Thomas Quinot  <quinot@adacore.com>
637
638         * g-comlin.adb: Minor reformatting
639         Minor code reorganization.
640
641         * freeze.adb: Minor reformatting
642
643 2008-08-20  Vincent Celier  <celier@adacore.com>
644
645         * prj-nmsc.adb (Check_File): An excluded Ada source file may be a
646         source of another project.
647
648 2008-08-20  Pascal Obry  <obry@adacore.com>
649
650         * s-os_lib.ads: Minor reformatting.
651
652 2008-08-20  Arnaud Charlet  <charlet@adacore.com>
653
654         * gnatvsn.ads: Minor reformatting.
655
656 2008-08-20  Arnaud Charlet  <charlet@adacore.com>
657
658         * a-crbtgk.adb, repinfo.adb, g-traceb.ads, repinfo.ads,
659         system-linux-s390x.ads, s-fatflt.ads, s-parame-ae653.ads, g-spipat.adb,
660         g-spipat.ads, g-tasloc.adb, g-debpoo.adb, g-except.ads, g-debpoo.ads,
661         mdll-utl.adb, g-string.adb, g-soliop-solaris.ads, par-sync.adb,
662         exp_ch6.ads, a-cihama.ads, g-curexc.ads, system-linux-sh4.ads,
663         g-utf_32.adb, g-hesorg.adb, s-proinf-irix-athread.ads, s-parint.adb,
664         s-parint.ads, exp_ch7.ads, system-linux-alpha.ads, g-dirope.adb,
665         sinfo-cn.adb, par-labl.adb, a-ciorse.adb, g-calend.adb,
666         s-parame-vms-alpha.ads, nlists.h, exp_imgv.adb, exp_fixd.ads,
667         g-calend.ads, gnatcmd.ads, g-table.adb, s-memory-mingw.adb,
668         g-alveop.ads, g-memdum.ads, g-altive.ads, initialize.c, g-regpat.adb,
669         g-busorg.ads, g-regpat.ads, g-encstr.ads, g-regexp.adb, g-regexp.ads,
670         live.ads, g-dyntab.adb, prj-nmsc.ads, par-ch12.adb, 9drpc.adb,
671         g-alvevi.ads, s-memory.adb, math_lib.adb, s-parame.ads, s-memory.ads,
672         s-regexp.adb, a-exexda.adb, i-cstrea-vms.adb, a-exexpr.adb,
673         g-soliop-mingw.ads, s-imgrea.adb, namet.adb, system-vms.ads,
674         s-inmaop-dummy.adb, s-finroo.ads, a-ngcefu.adb, s-hibaen.ads,
675         g-soliop.ads, s-auxdec.adb, g-locfil.ads, gnatxref.adb, memroot.adb,
676         osint-b.ads, memroot.ads, s-parame-hpux.ads, errutil.adb,
677         system-linux-s390.ads, par-util.adb, osint-c.ads, exp_pakd.ads,
678         i-pacdec.ads, par-endh.adb, mlib-tgt.ads, prj-strt.ads,
679         s-osprim-vms.adb, s-proinf.ads, output.ads, g-moreex.ads,
680         a-finali.ads, s-fatlfl.ads, namet.h, mdll.ads, g-dynhta.ads,
681         s-imgenu.ads, par-tchk.adb, g-excact.ads, memtrack.adb, s-fatgen.adb,
682         a-exexpr-gcc.adb, g-arrspl.adb, par-ch4.adb, g-cgideb.adb, freeze.ads,
683         g-altcon.adb, s-fatllf.ads, gnatfind.adb, s-osinte-lynxos-3.adb,
684         a-exextr.adb, g-htable.ads, a-calfor.adb, s-imgcha.adb, argv.c,
685         a-chahan.ads, g-hesora.adb, system-vms_64.ads, par-ch5.adb, g-md5.adb,
686         lib-xref.ads, g-md5.ads, g-casuti.ads, s-fatsfl.ads, exp_dbug.ads,
687         s-htable.ads, a-ngcoar.adb, s-arit64.ads, a-ngelfu.adb, a-filico.ads,
688         par-ch6.adb, s-inmaop.ads, s-parame-vxworks.ads, s-casuti.ads,
689         a-numaux-darwin.adb, a-cohama.ads, system-linux-sparc.ads, g-os_lib.adb,
690         system-vms-ia64.ads, s-parame-vms-restrict.ads, a-clrefi.ads,
691         s-parame-vms-ia64.ads, a-strfix.adb, a-coorse.adb, a-comlin.ads,
692         a-chtgke.adb, s-imgint.adb, g-expect.ads, exp_ch4.ads, s-finimp.adb,
693         mingw32.h, g-heasor.adb, g-alleve.adb, a-ngrear.adb, s-mastop-irix.adb,
694         s-poosiz.adb, link.c: Fix copyright notice.
695
696 2008-08-20  Arnaud Charlet  <charlet@adacore.com>
697
698         * g-comlin.ads: Update comments.
699
700 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
701
702         * sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag.
703
704 2008-08-20  Gary Dismukes  <dismukes@adacore.com>
705
706         * exp_ch11.adb:
707         (Expand_Exception_Handlers): Call Make_Exception_Handler instead of
708         Make_Implicit_Exception_Handler when rewriting an exception handler with
709         a choice parameter, and pass the handler's Sloc instead of that of the
710         handled sequence of statements. Make_Implicit_Exception_Handler sets the
711         Sloc to No_Location (unless debugging generated code), which we don't
712         want for the case of a user handler.
713
714 2008-08-20  Robert Dewar  <dewar@adacore.com>
715
716         * freeze.adb (Freeze_Record_Type): Improve msg for non-contiguous field
717
718         * sem_ch13.adb:
719         (Adjust_Record_For_Reverse_Bit_Order): Messages about layout are
720         now labeled as info msgs, not warnings.
721
722         * tbuild.ads: Clarify documentation of Make_Implicit_Exception_Handler
723
724         * usage.adb: Minor change to avoid overlong line for -gnatwz/Z
725
726         * a-textio.adb: Remove redundant test.
727
728         * a-witeio.adb: Minor code reorganization
729         Remove redundant test found working on another issue
730
731         * a-ztexio.adb: Minor code reorganization
732         Remove redundant test found working on another issue
733
734 2008-08-20  Thomas Quinot  <quinot@adacore.com>
735
736         * s-fileio.adb (Open) Use C helper function to determine whether a
737         given errno value corresponds to a "file not found" error.
738
739         * sysdep.c (__gnat_is_file_not_found_error): New C helper function.
740
741 2008-08-20  Jose Ruiz  <ruiz@adacore.com>
742
743         * errno.c (__get_errno for MaRTE): Use the MaRTE function pthread_errno
744         to get access to the per-task errno variable.
745         (__set_errno for MaRTE): Do not redefine this function here since it is
746         already defined in MaRTE.
747
748 2008-08-20  Tristan Gingold  <gingold@adacore.com>
749
750         * gnat_ugn.texi: Gcov is not supported on static library on AIX.
751
752 2008-08-20  Robert Dewar  <dewar@adacore.com>
753
754         * freeze.adb: Minor reformatting
755
756         * g-comlin.adb: Minor reformatting
757
758         * g-socket.adb: Minor reformatting
759
760         * g-socthi-mingw.adb: Minor reformatting
761
762         * g-stheme.adb: Minor reformatting
763
764 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
765
766         * sem_aggr.adb, sem_type.adb, exp_ch9.ads, einfo.ads,
767         exp_ch6.adb, exp_aggr.adb (Valid_Ancestor): Resolve
768         confusion between partial and full views of an ancestor of the context
769         type when the parent is a private extension declared in a parent unit,
770         and full views are available for the context type.
771
772 2008-08-18  Samuel Tardieu  <sam@rfc1149.net>
773             Robert Dewar  <dewar@adacore.com>
774
775         PR ada/30827
776         * bindgen.adb (Gen_Output_File_Ada): Zero-terminate the
777         version string.
778         Move comment in the right place.
779         * g-comver.adb (Version): Look for a zero-termination in
780         addition to a closing parenthesis.
781
782 2008-08-18  Samuel Tardieu  <sam@rfc1149.net>
783
784         * exp_ch13.adb, exp_disp.adb, sem_cat.adb, sem_ch10.adb,
785         * sem_ch12.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
786         * sem_prag.adb, sem_util.adb, sem_warn.adb: Use
787         Is_Package_Or_Generic_Package instead of hand-crafted tests.
788
789 2008-08-18  Samuel Tardieu  <sam@rfc1149.net>
790
791         PR ada/15808
792         * sem_ch6.adb (Check_Private_Overriding): Check for generic packages
793         as well.
794
795 2008-08-17  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
796
797         * adaint.c (_gnat_set_close_on_exec) [_WIN32]: Implement.
798
799 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
800
801         * gcc-interface/trans.c (call_to_gnu): Use the Sloc of the call
802         for back-copy statements in lieu of that of the actual.
803
804 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
805
806         PR ada/20548
807         * gcc-interface/decl.c (gnat_to_gnu_entity): Use DECL_SIZE_UNIT in the
808         setjmp test consistently.  Adjust for new behavior of flag_stack_check.
809         * gcc-interface/utils2.c (build_call_alloc_dealloc): Remove redundant
810         test of flag_stack_check.  Adjust for new behavior of flag_stack_check.
811
812 2008-08-13  Samuel Tardieu  <sam@rfc1149.net>
813
814         PR ada/36777
815         * sem_util.ads, sem_util.adb (Is_Protected_Self_Reference): New.
816         * sem_attr.adb (Check_Type): The current instance of a protected
817         object is not a type name.
818         (Analyze_Access_Attribute): Accept instances of protected objects.
819         (Analyze_Attribute, Attribute_Address clause): Ditto.
820         * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite
821         the prefix as being the current instance if needed.
822
823 2008-08-12  Danny Smith  <danyssmith@users.sourceforge.net>
824
825         * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) [WINDOWS]:
826         Remove duplicate s-win32.o. Add s-winext.o.
827
828 2008-08-12  Danny Smith  <danyssmith@users.sourceforge.net>
829
830         * g-stsifd-sockets.adb (Create): Replace Constants.SOCK_STREAM
831         with SOSC.SOCK__STREAM.
832         * g-socthi-mingw.adb (C_Select) Replace Constants.MSG_OOB with
833         SOSC.MSG_OOB.
834
835 2008-08-11  Joel Sherrill  <joel.sherrill@oarcorp.com>
836
837         * s-oscons-tmplt.c: RTEMS defines AF_INET6 but does support it.
838         * gsocket.h, socket.c: Update to support RTEMS.
839         * gcc-interface/Make-lang.in: Include CFLAGS_FOR_TARGET when cross.
840
841 2008-08-10  Samuel Tardieu  <sam@rfc1149.net>
842             Robert Dewar <dewar@adacore.com>
843
844         * exp_ch4.adb (Expand_N_Op_Expon): Force evaluation of
845         left argument even when right argument is 0.
846         (Expand_N_Op_Mod): Ditto when right argument is 1.
847         (Expand_N_Op_Multiply): Ditto when any argument is 0.
848         (Expand_N_Op_Rem): Ditto when right argument is 1.
849
850 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
851
852         * gcc-interface/misc.c (gnat_handle_option): Replace set_Wunused
853         by warn_unused.
854
855 2008-08-08  Ed Schonberg  <schonberg@adacore.com>
856
857         * freeze.adb (Generate_Prim_Op_References): New procedure, abstracted
858         from Freeze_Entity. Used to generate cross-reference information for
859         types declared in generic packages.
860
861 2008-08-08  Thomas Quinot  <quinot@adacore.com>
862
863         * gcc-interface/Makefile.in: Reintroduce g-soccon.ads as a
864         compatibility shim.
865
866 2008-08-08  Thomas Quinot  <quinot@adacore.com>
867
868         * gsocket.h:
869         On Windows, include <errno.h> and redefine only selected errno values
870         from their <winsock2.h> definitions.
871
872         * s-osinte-freebsd.ads: Minor reformatting
873
874         * s-osinte-hpux.ads, s-osinte-irix.ads: Minor reformatting
875
876         * g-soccon.ads: New file.
877
878         * g-stheme.adb, g-socthi-vms.adb, g-socthi-vxworks.adb,
879         g-socthi-mingw.adb, g-sttsne-vxworks.adb, g-socthi.adb,
880         g-stsifd-sockets.adb, g-socket.adb, g-socket.ads,
881         g-sothco.adb, g-sothco.ads: Add back GNAT.Sockets.Constants as a child
882         unit, to allow building software that depends on this internal unit
883         with both older and newer compilers.
884
885 2008-08-08  Robert Dewar  <dewar@adacore.com>
886
887         * s-strxdr.adb: Minor reformatting
888
889 2008-08-08  Bob Duff  <duff@adacore.com>
890
891         * gnat_ugn.texi: The "Run-Time Checks" section said "arithmetic overflow
892         checking for integer operations (including division by zero)", which
893         is wrong -- divide by zero is not part of overflow checking.
894         Also added misc clarification about what check-suppression means.
895
896         * gnat_rm.texi: Clarify the meaning of pragma Suppress.
897
898 2008-08-08  Jerome Lambourg  <lambourg@adacore.com>
899
900         * g-comlin.adb (Add_Switch): Handle addition of switches at the
901         begining of the command line.
902         (Append, Add): Renaming of Append to Add as this now allows addition
903         at the begining of the list.
904
905         * g-comlin.ads (Add_Switch): Handle addition of switches at the
906         begining of the command line.
907
908 2008-08-08  Thomas Quinot  <quinot@adacore.com>
909
910         * g-sercom.ads:
911         (Name): Document application scope (only legacy PC serial ports on
912         Linux and Windows).
913
914 2008-08-08  Thomas Quinot  <quinot@adacore.com>
915
916         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Revert
917         previous change, not needed after all.
918
919 2008-08-08  Ed Schonberg  <schonberg@adacore.com>
920
921         * exp_ch4.adb (Expand_Allocator_Expression): add check if null
922         exclusion indicator is present
923
924 2008-08-08  Robert Dewar  <dewar@adacore.com>
925
926         * g-comlin.adb: Minor code reorganization
927         Minor reformatting
928
929         * g-comlin.ads: Minor reformatting
930
931         * s-fileio.adb: Minor reformatting
932
933         * sem_attr.adb: Minor code reorganization (use Nkind_In)
934         Minor reformatting
935
936 2008-08-06  Samuel Tardieu  <sam@rfc1149.net>
937
938         * gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing
939         with s-oscons-tmplt.i.
940
941 2008-08-06  Samuel Tardieu  <sam@rfc1149.net>
942
943         * gcc-interface/Make-lang.in (OSCONS_CPPFLAGS): Remove.
944
945 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
946
947         * sem_ch3.adb (Analyze_Component_Declaration): Protect against misuse
948         of incomplete type.
949
950         * sem_ch8.adb (Analyze_Object_Renaming): Diagnose properly a renaming
951         of a formal parameter of an incomplete type. Improve error message for
952         other improper uses of incomplete types.
953
954 2008-08-06  Robert Dewar  <dewar@adacore.com>
955
956         * gnat_ugn.texi: Clarify -gnato documentation
957
958 2008-08-06  Thomas Quinot  <quinot@adacore.com>
959
960         * gcc-interface/Makefile.in,
961         g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb,
962         g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads,
963         g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads,
964         g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads,
965         g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads,
966         g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads,
967         g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads,
968         g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads,
969         g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads:
970         Remove GNAT.Sockets.Constants. This internal package is replaced by
971         System.OS_Constants.
972
973 2008-08-06  Thomas Quinot  <quinot@adacore.com>
974
975         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
976         Remove obsolete targets referencing gen-soccon
977         When generating s-oscons.ads, use a file name that includes the
978         THREAD_KIND, to ensure that the (potentially different) version from a
979         previous build with a different threads flavour does not get reused.
980
981 2008-08-06  Thomas Quinot  <quinot@adacore.com>
982
983         * sem_res.adb: Minor reformatting
984
985         * s-fileio.adb (Open): When file open operation fails, raise Name_Error
986         only when the operating system reports a non-existing file or directory
987         (ENOENT), otherwise raise Name_Error.
988
989         * exp_ch11.adb: Minor reformatting
990
991 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
992
993         * sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
994         incomplete, add the access_to_subprogram type to the list of private
995         dependents only if the incomplete type will be completed in the current
996         scope.
997         (Build_Discriminant_Constraints): If the type of the discriminant is
998         access_to_variable, reject a constraint that is access_to_constant.
999
1000 2008-08-06  Thomas Quinot  <quinot@adacore.com>
1001
1002         * g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb,
1003         g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads,
1004         g-sttsne-dummy.ads: New files.
1005
1006         * gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources
1007         with pragma Unimplemented_Unit for sockets packages on Nucleus.
1008
1009 2008-08-06  Pascal Obry  <obry@adacore.com>
1010
1011         * adaint.c: Another fix for ACL support on Windows.
1012
1013 2008-08-06  Javier Miranda  <miranda@adacore.com>
1014
1015         * exp_disp (Expand_Interface_Actuals): Adds missing support for
1016         expansion of calls to subprograms using selected components.
1017
1018 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
1019
1020         * sem_res.adb (Resolve_Call): Use base type to determine whether a
1021         dereference is needed because a subtype of an access_to_subprogram is
1022         simply an access-subtype
1023
1024 2008-08-06  Jerome Lambourg  <lambourg@adacore.com>
1025
1026         * g-comlin.adb (Set_Command_Line): Now that aliases can contain
1027         parameters, always specify the expected separator.
1028
1029 2008-08-06  Thomas Quinot  <quinot@adacore.com>
1030
1031         * xnmake.adb: Use new XUtil package for platform independent text
1032         output.
1033
1034 2008-08-06  Vincent Celier  <celier@adacore.com>
1035
1036         * gnat_ugn.texi: Document compiler switch -gnateG
1037
1038 2008-08-06  Quentin Ochem  <ochem@adacore.com>
1039
1040         * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark
1041         in the case of an empty pattern size.
1042         (Compute_Result): Do not do any computation in the case of an empty
1043         pattern size.
1044         (Report_Result): Fixed computation of the overflow guard.
1045
1046 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
1047
1048         * g-awk.adb (Finalize): Do not use directly objects of the type in the
1049         finalization routine to prevent elaboration order anomalies in new
1050         finalization scheme.
1051
1052 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
1053
1054         * sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
1055         declaration for the same type.
1056
1057 2008-08-06  Thomas Quinot  <quinot@adacore.com>
1058
1059         * sem.adb: Minor rewording (comment)
1060
1061 2008-08-06  Jerome Lambourg  <lambourg@adacore.com>
1062
1063         * g-comlin.adb (Define_Switch, Get_Switches): New.
1064         (Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
1065         ungrouping switches.
1066         (For_Each_Simple_Switch): Allow more control over parameters handling.
1067         This generic method now allows ungrouping of switches with parameters
1068         and switches with more than one letter after the prefix.
1069         (Set_Command_Line): Take care of switches that are prefixed with a
1070         switch handling parameters without delimiter (-gnatya and -gnaty3 for
1071         example).
1072         (Add_Switch, Remove_Switch): Handle parameters possibly present inside
1073         a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
1074         the operation.
1075         (Start, Alias_Switches, Group_Switches): Take care of parameters
1076         possibly present inside a group.
1077
1078         * g-comlin.ads (Define_Switch): New method used to define a list of
1079         expected switches, that are necessary for correctly ungrouping switches
1080         with more that one character after the prefix.
1081         (Get_Switches): Method that builds a getopt string from the list of
1082         switches as set previously by Define_Switch.
1083         (Add_Switch, Remove_Switch): New versions of the methods, reporting the
1084         status of the operation. Also allow the removal of switches with
1085         parameters only.
1086         (Command_Line_Configuration_Record): Maintain a list of expected
1087         switches.
1088
1089 2008-08-06  Doug Rupp  <rupp@adacore.com>
1090
1091         * gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if
1092         TARGET_MALLOC64 clear.
1093
1094         * gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc
1095         if TARGET_MALLOC64 clear.
1096
1097         * gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c
1098         (TARGET_MALLC64): New macro. Default to clear.
1099
1100 2008-08-06  Doug Rupp  <rupp@adacore.com>
1101
1102         * gcc-interface/utils2.c (snames.h) Include
1103         (TARGET_ABI_OPEN_VMS): Initialize.
1104         (build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap
1105         for Convention C.
1106
1107 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
1108
1109         * sem_ch3.adb (Process_Discriminants): diagnose redundant or improper
1110         null exclusion in a discriminant declaration
1111
1112         * sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion
1113         indicators when type is not an access type.
1114
1115         * sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion
1116         indicators when type is not an access type.
1117
1118 2008-08-06  Javier Miranda  <miranda@adacore.com>
1119
1120         * exp_disp (Expand_Interface_Conversion): Freeze the entity associated
1121         with the target interface before expanding the code of the interface
1122         conversion.
1123
1124 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
1125
1126         * freeze.adb:
1127         (Freeze_Entity): A deferred constant does not violate the restriction
1128         No_Default_Initialization,
1129
1130         * sem_ch3.adb (Process_Subtype): An allocator is a valid construct that
1131         can carry a null exclusion indicator, and on which an error may be
1132         posted if the indicator is redundant.
1133
1134         * sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion
1135         does not apply to a subtype mark that already excludes null.
1136
1137         * sem_ch12.adb (Formal_Object_Declaration): Verify that a null
1138         exclusion does not apply to a subtype mark that already excludes null.
1139
1140 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1141
1142         * Makefile.rtl: Compile s-oscons.ads as part of the runtime library.
1143
1144 2008-08-05  Doug Rupp  <rupp@adacore.com>
1145
1146         * vms_data.ads: Translation for /POINTER_SIZE qualifier.
1147
1148 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1149
1150         * gsocket.h: Make this file includable in a Nucleus environment, which
1151         does not support sockets.
1152
1153         * socket.c: Remove Nucleus-specific hack.
1154
1155 2008-08-05  Pascal Obry  <obry@adacore.com>
1156
1157         * adaint.c: Remove support for readable attribute on vxworks and nucleus
1158
1159 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
1160
1161         * sem_attr.adb:
1162         (Analyze_Attribute, case 'Result): handle properly the case where some
1163         operand of the expression in a post-condition generates a transient
1164         block.
1165
1166         * sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to
1167         right-hand side when it is an anonymous access_to_subprogram, to force
1168         static accessibility check when needed.
1169
1170 2008-08-05  Sergey Rybin  <rybin@adacore.com>
1171
1172         * gnat_ugn.texi: Changing the description of the gnatcheck metrics
1173         rule according to the change in the rule option.
1174         Add documentation for -gnatw.b/-gnatw.B
1175
1176 2008-08-05  Robert Dewar  <dewar@adacore.com>
1177
1178         * ug_words: Add entries for -gnatw.b/-gnatw.B
1179
1180         * vms_data.ads: Add entries for -gnatw.b/-gnatw.B
1181
1182 2008-08-05  Vincent Celier  <celier@adacore.com>
1183
1184         * a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
1185         (File).
1186
1187         * a-ztdeio.adb: Ditto.
1188
1189 2008-08-05  Pascal Obry  <obry@adacore.com>
1190
1191         * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
1192         readable attribute.
1193
1194 2008-08-05  Vincent Celier  <celier@adacore.com>
1195
1196         * s-wchwts.adb:
1197         (Wide_String_To_String): Returns a String with the same 'First as its
1198         parameter S.
1199         (Wide_Wide_String_To_String): Ditto
1200
1201         * s-wchwts.ads:
1202         (Wide_String_To_String): Document that the lowest index of the returned
1203         String is equal to S'First.
1204
1205 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1206
1207         * xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.
1208
1209         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
1210         s-oscons.ads
1211
1212 2008-08-05  Robert Dewar  <dewar@adacore.com>
1213
1214         * opt.ads (Warn_On_Biased_Representation): New flag
1215
1216         * sem_ch13.adb:
1217         (Analyze_Attribute_Definition_Clause): Issue warning when biased
1218         representation is required.
1219         (Minimum_Size): Don't allow biasing if enum rep clause case
1220
1221         * sem_warn.adb:
1222         (Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
1223         (Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
1224
1225         * usage.adb: Add lines for -gnatw.b/B switches
1226
1227 2008-08-05  Pascal Obry  <obry@adacore.com>
1228
1229         * a-coinve.adb: Reorder the code to avoid uninitialized warning.
1230
1231         * adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
1232
1233 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1234
1235         * socket.c: Minor reformatting.
1236
1237 2008-08-05  Robert Dewar  <dewar@adacore.com>
1238
1239         * sem_ch3.adb: Minor reformatting
1240
1241         * prj-nmsc.adb: Minor reformatting
1242
1243 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
1244
1245         * sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
1246         visibility check on the component type if the simple test fails.
1247
1248 2008-08-05  Jose Ruiz  <ruiz@adacore.com>
1249
1250         * init.c (__gnat_install_handler for linux): If we are building the
1251         Xenomai run time then we need to do two additional things: avoid
1252         memory swapping and transform the Linux environment task into a native
1253         Xenomai task.
1254
1255         * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
1256         time): Use interface to Xenomai native skin and avoid linux-specific
1257         way of setting CPU affinity.
1258         (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.
1259
1260 2008-08-05  Bob Duff  <duff@adacore.com>
1261
1262         * checks.ads: Minor comment fix
1263
1264 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1265
1266         * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
1267         g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
1268         CS8.
1269
1270 2008-08-05  Robert Dewar  <dewar@adacore.com>
1271
1272         * mlib.adb: Minor code reorganization
1273         Minor reformatting
1274
1275         * make.adb: Minor reformatting
1276
1277         * prj-attr.ads: Minor reformatting
1278
1279         * s-os_lib.adb: Minor reformatting
1280
1281         * s-fileio.adb: Minor code reorganization
1282         Minor reformatting
1283
1284         * prj.ads: Minor reformatting
1285
1286 2008-08-05  Bob Duff  <duff@adacore.com>
1287
1288         * sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
1289         unresolved initial value of "null", because it causes implicitly
1290         generated "=" operators to be ambiguous, and because this type should
1291         not be passed to gigi.
1292
1293 2008-08-05  Vincent Celier  <celier@adacore.com>
1294
1295         * mlib.adb: Update comments.
1296
1297         * make.adb (Switches_Of): Check for Switches (others), before checking
1298         for Default_Switches ("Ada").
1299         (Gnatmake): Use Builder'Switches (others) in preference to
1300         Builder'Default_Switches ("Ada") if there are several mains.
1301
1302         * prj-attr-pm.adb:
1303         (Add_Attribute): Add component Others_Allowed in Attribute_Record
1304         aggregate.
1305
1306         * prj-attr.adb:
1307         Add markers to indicates that attributes Switches allow others as index
1308         (Others_Allowed_For): New Boolean function, returning True for
1309         attributes with the mark.
1310         (Initialize): Recognize optional letter 'O' as the marker for
1311         associative array attributes where others is allowed as the index.
1312
1313         * prj-attr.ads:
1314         (Others_Allowed_For): New Boolean function
1315         (Attribute_Record): New Boolean component Others_Allowed
1316
1317         * prj-dect.adb:
1318         (Parse_Attribute_Declaration): For associative array attribute where
1319         others is allowed as the index, allow others as an index.
1320
1321         * prj-nmsc.adb:
1322         (Process_Binder): Skip associative array attributes with index others
1323         (Process_Compiler): Ditto
1324
1325         * prj-util.adb:
1326         (Value_Of (Index, In_Array)): Make no attempt to put in lower case when
1327         index is All_Other_Names.
1328
1329         * prj.ads:
1330         (All_Other_Names): New constant
1331
1332         * prj-proc.adb:
1333         (Process_Declarative_Items): Skip associative array attribute when index
1334         is reserved word "others".
1335
1336 2008-08-05  Vasiliy Fofanov  <fofanov@adacore.com>
1337
1338         * gen-oscons.c: Adapt for VMS where termios.h is not available.
1339
1340 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1341
1342         * a-rttiev.adb: Minor reformatting (comments)
1343
1344         * gen-soccon.c: Rename to gen-oscons.c
1345
1346         * gen-oscons.c: New file. Now generate System.OS_Constants instead of
1347         GNAT.Sockets.Constants.
1348         Add new constants for GNAT.Serial_Communications and System.File_IO.
1349
1350 2008-08-05  Javier Miranda  <miranda@adacore.com>
1351
1352         * sem_util.adb (Collect_Interfaces_Info): Minor reformating.
1353         * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
1354         implementation of this routine has been simplified.
1355
1356 2008-08-05  Pascal Obry  <obry@adacore.com>
1357
1358         * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
1359         Set_Read_Only Win32 implementation.
1360
1361 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1362
1363         * exp_strm.adb: Minor reformatting (comments)
1364
1365         * sem_ch12.adb: Minor reformatting.
1366
1367 2008-08-05  Robert Dewar  <dewar@adacore.com>
1368
1369         * sem_ch3.adb: Minor reformatting
1370
1371         * checks.adb: Minor reformatting
1372
1373 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1374
1375         * tbuild.ads (New_External_Name): Update spec to reflect relaxed
1376         restriction on Prefix.
1377
1378 2008-08-05  Jerome Lambourg  <lambourg@adacore.com>
1379
1380         * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
1381         methods needed to handle switch sections when building a command line.
1382         (Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
1383         Current_Section): New public methods or methods modified to handle
1384         building command lines with sections.
1385         (Set_Command_Line): Take into account sections when analysing a switch
1386         string.
1387         (Start): Sort the switches by sections before iterating the command line
1388         elements.
1389
1390         * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
1391         Is_New_Section, Current_Section): New methods or methods modified to
1392         handle building command lines with sections.
1393
1394 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
1395
1396         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
1397         discriminants, indicate that the corresponding object declaration has
1398         no initialization, to prevent spurious warnings when the access type is
1399         null-excluding.
1400
1401 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
1402
1403         * sem_res.adb (Resolve_Call): If this is a call to the predefined
1404         Abort_Task, warn if the call appears within a protected operation.
1405
1406 2008-08-04  Robert Dewar  <dewar@adacore.com>
1407
1408         * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
1409
1410 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1411
1412         * sem_ch3.adb:
1413         (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
1414         anonymous access to protected subprogram that is the return type of the
1415         specification of a subprogram body.
1416
1417         * sem_ch6.adb:
1418         (Analyze_Subprogram_Body): if the return type is an anonymous access to
1419         subprogram, freeze it now to prevent access anomalies in the back-end.
1420
1421         * exp_ch9.adb: Minor code cleanup.
1422         Make sure that new declarations are inserted into the tree before
1423         analysis (from code reading).
1424
1425 2008-08-04  Robert Dewar  <dewar@adacore.com>
1426
1427         * exp_ch5.adb:
1428         (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
1429         at point of return.
1430
1431 2008-08-04  Thomas Quinot  <quinot@adacore.com>
1432
1433         * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
1434
1435 2008-08-04  Vasiliy Fofanov  <fofanov@adacore.com>
1436
1437         * g-soccon-mingw.ads: Fix value for MSG_WAITALL
1438
1439 2008-08-04  Javier Miranda  <miranda@adacore.com>
1440
1441         * sem_prag.adb (Process_Convention): Add missing support for
1442          N_Private_Extension_Declaration nodes.
1443
1444 2008-08-04  Robert Dewar  <dewar@adacore.com>
1445
1446         * exp_ch4.adb: Minor reformatting
1447
1448 2008-08-04  Pascal Obry  <obry@adacore.com>
1449
1450         * adaint.h: Add missing prototype.
1451
1452         * adaint.c: Refine support for Windows file attributes.
1453
1454 2008-08-04  Robert Dewar  <dewar@adacore.com>
1455
1456         * sem_res.adb:
1457         (Valid_Conversion): Catch case of designated types having different
1458         sizes, even though they statically match.
1459
1460 2008-08-04  Javier Miranda  <miranda@adacore.com>
1461
1462         * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
1463         added in previous patch to handle access to subprograms.
1464
1465 2008-08-04  Robert Dewar  <dewar@adacore.com>
1466
1467         * freeze.adb:
1468         (Freeze_Entity): Only check No_Default_Initialization restriction for
1469         constructs that come from source
1470
1471 2008-08-04  Thomas Quinot  <quinot@adacore.com>
1472
1473         * exp_ch6.adb: Minor comment fix.
1474
1475         * sem_ch4.adb: Minor reformatting.
1476
1477 2008-08-04  Robert Dewar  <dewar@adacore.com>
1478
1479         * sem_res.adb: (Large_Storage_Type): Improve previous change.
1480
1481 2008-08-04  Pascal Obry  <obry@adacore.com>
1482
1483         * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
1484         file attributes.
1485
1486 2008-08-04  Javier Miranda  <miranda@adacore.com>
1487
1488         * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
1489         for N_Formal_Object_Declaration nodes. Adding kludge required by
1490         First_Formal to provide its functionality with access to functions.
1491         (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
1492         for anonymous access types returned by functions.
1493
1494         * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
1495         conversion of null-excluding access types (required only once to force
1496         the generation of the required runtime check).
1497
1498         * sem_type.adb (Covers): minor reformating
1499
1500         * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
1501         with internally generated nodes. Avoid generating the error inside init
1502         procs.
1503
1504         * sem_res.adb (Resolve_Membership_Test): Minor reformating.
1505         (Resolve_Null): Generate the null-excluding check in case of assignment
1506         to a null-excluding object.
1507         (Valid_Conversion): Add missing support for anonymous access to
1508         subprograms.
1509
1510         * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
1511         anonymous access types whose designated type is an itype. This case
1512         occurs with anonymous access to protected subprograms types.
1513         (Analyze_Return_Type):  Add missing support for anonymous access to
1514         protected subprogram.
1515
1516         * sem_eval.adb (Subtypes_Statically_Match): In case of access to
1517         subprograms addition of missing check on matching convention. Required
1518         to properly handle access to protected subprogram types.
1519
1520         * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
1521         null excluding access types.
1522
1523 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1524
1525         * sem_ch12.adb: Add comments
1526
1527         * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
1528         access type and the allocator is not initialized, warn rather than
1529         reporting an error.
1530
1531 2008-08-04  Robert Dewar  <dewar@adacore.com>
1532
1533         * exp_ch4.adb: Minor reformatting
1534
1535         * exp_dist.adb: Minor reformatting
1536
1537         * g-comlin.adb: Minor reformatting
1538
1539 2008-08-04  Gary Dismukes  <dismukes@adacore.com>
1540
1541         * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
1542         target to the type of the aggregate in the case where the target object
1543         is class-wide.
1544
1545         * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
1546         result type is class-wide and inherently limited, and the expression
1547         has a specific type, create a return object of the specific type, for
1548         more efficient handling of returns of build-in-place aggregates (avoids
1549         conversions of the class-wide return object to the specific type on
1550         component assignments).
1551
1552         * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
1553         about a type mismatch for a class-wide function with a return object
1554         having a specific type when the object declaration doesn't come from
1555         source. Such an object can result from the expansion of a simple return.
1556
1557 2008-08-04  Vasiliy Fofanov  <fofanov@adacore.com>
1558
1559         * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
1560
1561         * gcc-interface/Makefile.in: Use 64bit-specific system files when
1562         compiling for 64bit windows.
1563
1564 2008-08-04  Jerome Lambourg  <lambourg@adacore.com>
1565
1566         * g-comlin.adb (Group_Switches): Preserve the switch order when
1567         grouping and allow switch grouping of switches with more than one
1568         character extension (e.g. gnatw.x).
1569         (Args_From_Expanded): Remove this now obsolete method.
1570
1571 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1572
1573         * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
1574         chain at once, to ensure that type is properly decorated for back-end,
1575         when allocator appears within a loop.
1576
1577 2008-08-04  Kevin Pouget  <pouget@adacore.com>
1578
1579         * snames.h, snames.adb, snames.ads:
1580         Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
1581
1582         * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
1583         Build_To_Any_Call and Build_TypeCode_Call procedures.
1584
1585         * exp_attr.adb, sem_attr.adb: Add corresponding cases.
1586
1587         * rtsfind.ads: Add corresponding names.
1588
1589         * tbuild.adb: Update prefix restrictions to allow '_' character.
1590
1591 2008-08-04  Doug Rupp  <rupp@adacore.com>
1592
1593         * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
1594         * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
1595         * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
1596         use it.  Calculate pointer range overflow using 64bit types.
1597
1598 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1599
1600         * sem_ch3.adb (Access_Definition): A formal object declaration is a
1601         legal context for an anonymous access to subprogram.
1602
1603         * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
1604         indirect call, report success to the caller to include possible
1605         interpretation.
1606
1607         * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
1608         check when the type
1609         of the extended return is an anonymous access_to_subprogram type.
1610
1611         * sem_res.adb:
1612         (Resolve_Call): Insert a dereference if the type of the subprogram is an
1613         access_to_subprogram and the context requires its return type, and a
1614         dereference has not been introduced previously.
1615
1616 2008-08-04  Arnaud Charlet  <charlet@adacore.com>
1617
1618         * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
1619         gnatcheck support in GPS.
1620
1621 2008-08-04  Vincent Celier  <celier@adacore.com>
1622
1623         * mlib.adb (Create_Sym_Links): Create relative symbolic links when
1624         requested
1625
1626 2008-08-04  Vincent Celier  <celier@adacore.com>
1627
1628         * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
1629         variable, but don't check the resulting value as it has no impact on
1630         the processing.
1631
1632         * opt.ads:
1633         (Generate_Processed_File): New Boolean flag, set to True in the compiler
1634         when switch -gnateG is used.
1635
1636         * prep.adb:
1637         (Preprocess): new Boolean out parameter Source_Modified. Set it to True
1638         when the source is modified by the preprocessor and there is no
1639         preprocessing errors.
1640
1641         * prep.ads (Preprocess): new Boolean out parameter Source_Modified
1642
1643         * sinput-l.adb:
1644         (Load_File): Output the result of preprocessing if the source text was
1645         modified.
1646
1647         * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
1648
1649         * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
1650
1651         * ug_words: Add VMS equivalent for -gnateG
1652
1653         * vms_data.ads:
1654         Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
1655
1656 2008-08-04  Doug Rupp  <rupp@adacore.com>
1657
1658         * gcc-interface/utils2.c:
1659         (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
1660         in 32bit descriptor.
1661
1662 2008-08-04  Robert Dewar  <dewar@adacore.com>
1663
1664         * par-ch10.adb: Minor reformatting
1665
1666         * i-cobol.adb: Minor reformatting.
1667
1668 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1669
1670         * sem_ch3.adb (Access_Definition): Create an itype reference for an
1671         anonymous access return type of a regular function that is not a
1672         compilation unit.
1673
1674 2008-08-04  Vincent Celier  <celier@adacore.com>
1675
1676         * prj-attr.adb: New Builder attribute Global_Compilation_Switches
1677
1678         * snames.adb: New standard name Global_Compilation_Switches
1679
1680         * snames.ads: New standard name Global_Compilation_Switches
1681
1682         * make.adb: Correct spelling error in comment
1683
1684 2008-08-04  Arnaud Charlet  <charlet@adacore.com>
1685
1686         * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
1687         target.
1688
1689 2008-08-04  Thomas Quinot  <quinot@adacore.com>
1690
1691         * sem_ch10.adb: Minor comment fix.
1692
1693 2008-08-04  Robert Dewar  <dewar@adacore.com>
1694
1695         * restrict.adb: Improved messages for restriction warnings
1696
1697         * restrict.ads: Improved messages for restriction messages
1698
1699         * s-rident.ads (Profile_Name): Add No_Profile
1700
1701 2008-08-04  Robert Dewar  <dewar@adacore.com>
1702
1703         * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
1704
1705 2008-08-04  Robert Dewar  <dewar@adacore.com>
1706
1707         * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
1708
1709 2008-08-04  Vincent Celier  <celier@adacore.com>
1710
1711         * prj-proc.adb:
1712         (Copy_Package_Declarations): When inheriting package Naming from a
1713         project being extended, do not inherit source exception names.
1714
1715 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1716
1717         * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
1718         list of declaration to find previous subprogram, do not go to the
1719         original node of a generic unit.
1720
1721 2008-08-02  Eric Botcazou  <ebotcazou@adacore.com>
1722
1723         * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
1724         New case.  Convert BOOLEAN_TYPE operation to the default integer type.
1725
1726 2008-08-01  Eric Botcazou  <ebotcazou@adacore.com>
1727
1728         * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
1729         * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
1730         and adjust for above renaming.
1731         * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
1732         gnu_expr_alt_type parameter.  Convert the expression to it instead
1733         of changing its type in place.
1734         (build_function_stub): Adjust call to above function.
1735
1736 2008-08-01  Eric Botcazou  <ebotcazou@adacore.com>
1737
1738         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
1739         code.  Do not get full definition of deferred constants with address
1740         clause for a use.  Do not ignore deferred constant definitions with
1741         address clause.  Ignore constant definitions already marked with the
1742         error node.
1743         <object>: Remove obsolete comment.  For a deferred constant with
1744         address clause, get the initializer from the full view.
1745         * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
1746         Rework and remove obsolete comment.
1747         <N_Object_Declaration>: For a deferred constant with address clause,
1748         mark the full view with the error node.
1749         * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
1750         formatting nits.
1751
1752 2008-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
1753
1754         * rtsfind.ads: Add block IO versions of stream routines for Strings.
1755
1756         * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
1757         sem_prag.adb, snames.adb, snames.ads, snames.h,
1758         par-prag.adb: Undo previous stream related changes.
1759
1760         * s-rident.ads: Add new restriction No_Stream_Optimizations.
1761
1762         * s-ststop.ads, s-ststop.adb: Comment reformatting.
1763         Define enumeration type to designate different IO mechanisms.
1764         Enchance generic package Stream_Ops_Internal to include an
1765         implementation of Input and Output.
1766
1767         * exp_attr.adb (Find_Stream_Subprogram): If restriction
1768         No_Stream_Optimization is active, choose the default byte IO
1769         implementations of stream attributes for Strings.
1770         Otherwise use the corresponding block IO version.
1771
1772 2008-08-01  Olivier Hainque  <hainque@adacore.com>
1773
1774         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
1775         turn Ada Pure into GCC const, now implicitely implying nothrow as well.
1776
1777 2008-08-01  Robert Dewar  <dewar@adacore.com>
1778
1779         * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
1780         convert plain identifier into defining identifier.
1781
1782 2008-08-01  Robert Dewar  <dewar@adacore.com>
1783
1784         * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
1785         warnings
1786
1787         * lib-xref.adb: Add error defense.
1788
1789 2008-08-01  Bob Duff  <duff@adacore.com>
1790
1791         * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
1792
1793 2008-08-01  Gary Dismukes  <dismukes@adacore.com>
1794
1795         * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
1796         correct accessibility levels. In the "when others" case, retrieve the
1797         access level of the Etype of Prev rather than Prev_Orig, because the
1798         original exression has not always been analyzed.
1799
1800 2008-08-01  Robert Dewar  <dewar@adacore.com>
1801
1802         * prj-nmsc.adb: Minor reformatting
1803
1804         * sem_ch4.adb: Minor reformatting
1805         Minor code reorganization
1806
1807         * prj.ads: Minor reformatting
1808
1809         * s-os_lib.adb: Minor reformatting
1810
1811         * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
1812         half encodings
1813
1814         * scans.ads: Minor reformatting.
1815
1816         * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
1817         (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
1818
1819         * sem_res.adb:
1820         (Resolve_Call): Check violation of No_Specific_Termination_Handlers
1821
1822         * sem_ch12.adb: Minor comment reformatting
1823
1824         * par-ch3.adb (P_Type_Declaration): Properly handle missing type
1825         keyword
1826
1827 2008-08-01  Robert Dewar  <dewar@adacore.com>
1828
1829         * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
1830         generating code
1831
1832 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
1833
1834         * checks.adb (Apply_Float_Conversion_Check): If the expression to be
1835         converted is a real literal and the target type has static bounds,
1836         perform the conversion exactly to prevent floating-point anomalies on
1837         some targets.
1838
1839 2008-08-01  Vincent Celier  <celier@adacore.com>
1840
1841         * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
1842
1843         * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
1844
1845         * prj.adb (Object_Exist_For): Use Object_Generated, not
1846         Objects_Generated that is removed and was never modified anyway.
1847
1848         * prj.ads:
1849         (Path_Syntax_Kind): New enumeration type
1850         (Language_Config): New component Path_Syntax, defaulted to Host.
1851         Components PIC_Option and Objects_Generated removed, as they are not
1852         used.
1853
1854         * snames.adb: New standard name Path_Syntax
1855
1856         * snames.ads: New standard name Path_Syntax
1857
1858 2008-08-01  Vincent Celier  <celier@adacore.com>
1859
1860         * mlib-utl.adb:
1861         (Adalib_Path): New variable to store the path of the adalib directory
1862         when procedure Specify_Adalib_Dir is called.
1863         (Lib_Directory): If Adalib_Path is not null, return its value
1864         (Specify_Adalib_Dir): New procedure
1865
1866         * mlib-utl.ads (Specify_Adalib_Dir): New procedure
1867
1868 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
1869
1870         * sem_prag.adb:
1871         (Check_Precondition_Postcondition): If not generating code, analyze the
1872         expression in a postcondition that appears in a subprogram body, so that
1873         it is properly decorated for ASIS use.
1874
1875 2008-08-01  Gary Dismukes  <dismukes@adacore.com>
1876
1877         * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
1878         Orig_Prev to Prev in the case where the actual is N_Function_Call or
1879         N_Identifier. This was interfering with other cases that are rewritten
1880         as N_Identifier, such as allocators, resulting in passing of the wrong
1881         accessibility level, and based on testing this code is apparently no
1882         longer needed at all.
1883
1884 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
1885
1886         * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
1887         procedure call whose prefix
1888         is a parameterless function call that returns an access_to_procedure.
1889
1890 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
1891
1892         * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
1893         for RTX. Adding a suffix that is incremented at each iteration.
1894
1895 2008-08-01  Robert Dewar  <dewar@adacore.com>
1896
1897         * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
1898         Raise_Exception
1899
1900 2008-08-01  Jerome Lambourg  <lambourg@adacore.com>
1901
1902         * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
1903         paths, which are authorized by Windows but can lead to errors when used
1904         elsewhere.
1905
1906 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
1907
1908         * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
1909         a pending instantiation for the body of a subprogram that is to be
1910         inlined.
1911
1912         * sem_ch12.adb:
1913         (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
1914
1915         * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
1916         create a pending instance for its body, so that calls to the subprogram
1917         can be inlined by the back-end.
1918
1919 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
1920
1921         * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
1922         rts-rtx-w32).
1923
1924 2008-08-01  Robert Dewar  <dewar@adacore.com>
1925
1926         * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
1927
1928 2008-08-01  Doug Rupp  <rupp@adacore.com>
1929
1930         * gnat_rm.texi: Document new mechanism Short_Descriptor.
1931
1932         * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
1933         mechanism values.
1934
1935         * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
1936         mechanism and Short_Descriptor mechanism values.
1937
1938         * snames.adb (preset_names): Add short_descriptor entry.
1939
1940         * snames.ads: Add Name_Short_Descriptor.
1941
1942         * types.h: Add new By_Short_Descriptor mechanism values.
1943
1944         * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
1945         mechanism and Short_Descriptor mechanism values.
1946
1947         * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
1948         values.
1949         (Descriptor_Codes): Modify range for new mechanism values.
1950
1951         * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
1952         mechanism values.
1953
1954         * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
1955         (gnat_to_gnu_param): Handle By_Short_Descriptor.
1956
1957         * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
1958         (build_vms_descriptor32): New prototype.
1959         (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
1960
1961         * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
1962         argument in call fill_vms_descriptor.
1963
1964         * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
1965         build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
1966         (build_vms_descriptor): Renamed from build_vms_descriptor64.
1967         (convert_vms_descriptor32): New function.
1968         (convert_vms_descriptor64): New function.
1969         (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
1970         descriptors.
1971
1972         * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
1973         no longer needed.
1974
1975 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
1976
1977         * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
1978         nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
1979         name.
1980
1981 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
1982
1983         * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
1984         current directory so only fully qualified names are allowed.
1985
1986 2008-08-01  Robert Dewar  <dewar@adacore.com>
1987
1988         * gnat_ugn.texi:
1989         Minor editing, remove uncomfortable use of semicolon
1990
1991         * s-ststop.adb: Add some ??? comments
1992
1993         * sem_ch10.adb: Minor reformatting
1994
1995         * snames.ads:
1996         Minor comment fixes, some pragmas were not properly
1997         categorized in the comments, documentation change only
1998
1999         * xref_lib.adb: Minor reformatting
2000
2001         * sinput.adb: Minor reformatting
2002
2003         * gnatchop.adb: Minor reformatting
2004
2005         * sem_util.ads: Minor reformatting.
2006
2007         * opt.ads: Minor documentation fix
2008
2009         * scng.adb: Minor reformatting
2010
2011         * prj-part.adb: Update comments
2012
2013 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
2014
2015         * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
2016         tagged synchronized type, use corresponding record type.
2017
2018 2008-08-01  Doug Rupp  <rupp@adacore.com>
2019
2020         * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
2021         dummy transfer address for debugging.
2022
2023         * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
2024
2025         * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
2026
2027 2008-07-31  Eric Botcazou  <ebotcazou@adacore.com>
2028
2029         * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
2030         * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
2031
2032 2008-07-31  Pascal Obry  <obry@adacore.com>
2033
2034         * prj-nmsc.adb: Keep Object and Exec directory casing.
2035
2036 2008-07-31  Jose Ruiz  <ruiz@adacore.com>
2037
2038         * system-rtx-rtss.ads
2039         Change the default stack size. It is important to set the commit part.
2040
2041         * s-taprop-rtx.adb
2042         (Initialize): Get the clock resolution.
2043         (RT_Resolution): Return the clock resolution that is indicated by the
2044         system.
2045
2046         * s-parame-vxworks.adb
2047         Document that this body is used for RTX in RTSS (kernel) mode.
2048
2049         * gcc-interface/Makefile.in
2050         (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
2051         s-parame-vxworks.adb body in order to have reasonable stack sizes in
2052         RTX RTSS kernel mode. Virtual memory is not used in that case, so we
2053         cannot ask for too big values.
2054
2055 2008-07-31  Robert Dewar  <dewar@adacore.com>
2056
2057         * exp_aggr.adb: Minor reformatting
2058
2059         * makeutl.adb: Minor reformatting
2060
2061         * prj-env.adb: Minor reformatting
2062
2063 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
2064
2065         * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
2066         tagged type is completed by a concurrent type.
2067
2068 2008-07-31  Gary Dismukes  <dismukes@adacore.com>
2069
2070         * sem_aggr.adb:
2071         (Resolve_Record_Aggregate): Bypass error that a type without
2072         components must have a "null record" aggregate when compiling for Ada
2073         2005, since it's legal to give an aggregate of form (others => <>)
2074         for such a type.
2075
2076 2008-07-31  Javier Miranda  <miranda@adacore.com>
2077
2078         * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
2079         handle synchronized types. Required to handle well the object.operation
2080         notation applied to synchronized types.
2081
2082 2008-07-31  Quentin Ochem  <ochem@adacore.com>
2083
2084         * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
2085         anymore - just used internally.
2086         Added handling of very small tasks - when the theoretical size is
2087         already full at the point of the call.
2088         (Report_Result): Fixed result computation, Stack_Used_When_Filling does
2089         not need to be added to the result.
2090
2091 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
2092
2093         * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
2094         corresponding spec is a primitive wrapper. Update comment.
2095
2096 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
2097
2098         * bindgen.adb Comment reformatting. Update the list of run-time globals.
2099         (Gen_Adainit_Ada): Add the declaration, import and value set for
2100         configuration flag Canonical_Streams.
2101         (Gen_Adainit_C): Add the declaration and initial value of external
2102         symbol __gl_canonical_streams.
2103
2104         * init.c: Update the list of global values computed by the binder.
2105
2106         * opt.ads: Add flag Canonical_Streams.
2107
2108         * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
2109         semantically handled pragmas.
2110
2111         * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
2112         (Analyze_Pragma): Add case for pragma Canonical_Streams.
2113
2114         * snames.adb: Add character value for name Canonical_Streams.
2115
2116         * snames.ads:
2117         Add Name_Canonical_Streams to the list of configuration pragmas.
2118         Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
2119
2120         * snames.h: Add a definition for Pragma_Canonical_Streams.
2121
2122         * s-ststop.adb:
2123         Add a flag and import to seize the value of external symbol
2124         __gl_canonical_streams. Update comment and initial value of constant
2125         Use_Block_IO.
2126
2127         * gnat_rm.texi: Add section of pragma Canonical_Streams.
2128
2129         * gnat_ugn.texi:
2130         Add pragma Canonical_Streams to the list of configuration pragmas.
2131
2132 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
2133
2134         * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
2135         has the form A.B.C and B is a unit renaming, analyze its compilation
2136         unit and add a with_clause on A.b to the context.
2137
2138 2008-07-31  Vincent Celier  <celier@adacore.com>
2139
2140         * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
2141         return the empty string, instead of raising Constraint_Error.
2142
2143 2008-07-31  Gary Dismukes  <dismukes@adacore.com>
2144
2145         * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
2146
2147         * checks.adb (Apply_Accessibility_Check): Insert the check on
2148         Insert_Node.
2149
2150         * exp_attr.adb:
2151         (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
2152         to new parameter Insert_Node on call to Apply_Accessibility_Check.
2153         Necessary to distinguish the insertion node because the dereferenced
2154         formal may come from a rename, but the check must be inserted in
2155         front of the attribute.
2156
2157         * exp_ch4.adb:
2158         (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
2159         call to Apply_Accessibility_Check.
2160         (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
2161         on call to Apply_Accessibility_Check.
2162         Minor reformatting
2163
2164 2008-07-31  Javier Miranda  <miranda@adacore.com>
2165
2166         * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
2167         types when the candidate type is a synchronized type.
2168
2169         * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
2170         types, and complete management of synchronized types adding missing
2171         code to handle formal that is a synchronized type.
2172
2173         * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
2174         are not available and cause the compiler to blowup. Found compiling
2175         test with switch -gnatc
2176
2177         * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
2178         Has_Correct_Formal_Mode plus code cleanup.
2179
2180 2008-07-31  Bob Duff  <duff@adacore.com>
2181
2182         * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
2183         recognized as two end-of-lines, but it should be just one.
2184
2185 2008-07-31  Thomas Quinot  <quinot@adacore.com>
2186
2187         * exp_ch9.adb: Minor reformatting
2188
2189         * tbuild.ads: Fix several occurrences of incorrectly referring to
2190         Name_Find as Find_Name.
2191
2192 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
2193
2194         * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
2195         and the context is an object declaration with non-static bounds, treat
2196         the aggregate as non-static.
2197
2198 2008-07-31  Vincent Celier  <celier@adacore.com>
2199
2200         * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
2201         Move back spec of Parse_Single_Project to body, as it is not called
2202         outside of package Prj.Part.
2203         (Project_Data): Remove components Linker_Name, Linker_Path and
2204         Minimum_Linker_Options as they are no longer set.
2205         Remove function There_Are_Ada_Sources from package Prj and move code
2206         in the only place it was used, in Prj.Env.Set_Ada_Paths.
2207
2208 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
2209
2210         * mlib-utl.ads: Fix typo.
2211
2212 2008-07-31  Robert Dewar  <dewar@adacore.com>
2213
2214         * sem_ch12.adb: Minor reformatting
2215
2216 2008-07-31  Sergey Rybin  <rybin@adacore.com>
2217
2218         * gnat_ugn.texi: Change the description of the
2219         Overly_Nested_Control_Structures: now the rule always requires a
2220         positive parameter for '+R' option
2221
2222 2008-07-31  Thomas Quinot  <quinot@adacore.com>
2223
2224         * g-pehage.adb: Minor reformatting
2225
2226 2008-07-31  Pascal Obry  <obry@adacore.com>
2227
2228         * s-finimp.ads: Minor reformatting.
2229
2230 2008-07-31  Vincent Celier  <celier@adacore.com>
2231
2232         * s-regexp.ads: Minor comment fix
2233
2234 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
2235
2236         * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
2237         so that we can compile this file successfully with -gnatc.
2238
2239 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
2240
2241         * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
2242         of the type when looking for stream subprograms for type String,
2243         Wide_String and Wide_Wide_String.
2244
2245         * s-ststop.adb: Change the initialization expression of constant
2246         Use_Block_IO.
2247
2248 2008-07-31  Geert Bosch  <bosch@adacore.com>
2249
2250         * arit64.c:
2251         New file implementing __gnat_mulv64 signed integer multiplication with
2252         overflow checking
2253
2254         * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
2255
2256         * gcc-interface/gigi.h:
2257         (standard_types): Add ADT_mulv64_decl
2258         (mulv64_decl): Define subprogram declaration for __gnat_mulv64
2259
2260         * gcc-interface/utils.c:
2261         (init_gigi_decls): Add initialization of mulv64_decl
2262
2263         * gcc-interface/trans.c:
2264         (build_unary_op_trapv): New function
2265         (build_binary_op_trapv): New function
2266         (gnat_to_gnu): Use the above functions instead of
2267         build_{unary,binary}_op
2268
2269         * gcc-interface/Makefile.in
2270         (LIBGNAT_SRCS): Add arit64.c
2271         (LIBGNAT_OBJS): Add arit64.o
2272
2273 2008-07-31  Vincent Celier  <celier@adacore.com>
2274
2275         * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
2276         Linker'Default_Switches are declared. Warn if they are declared.
2277
2278 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
2279
2280         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
2281         Insert_Actions to place the pointer declaration in the code, rather
2282         than Insert_Before_And_Analyze, so that insertions of temporaries are
2283         kept in the proper order when transient scopes are present.
2284
2285
2286 2008-07-31  Robert Dewar  <dewar@adacore.com>
2287
2288         * einfo.adb (Spec_PPC): Now defined for generic subprograms
2289
2290         * einfo.ads (Spec_PPC): Now defined for generic subprograms
2291
2292         * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
2293         subprogram case
2294
2295 2008-07-31  Vincent Celier  <celier@adacore.com>
2296
2297         * s-os_lib.adb: Minor comment fix
2298
2299 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
2300
2301         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
2302         transfer pre/postconditions from generic copy to original tree, so that
2303         they will appear in each instance.
2304         (Process_PPCs): Do not transform postconditions into a procedure in a
2305         generic context, to prevent double expansion of check pragmas.
2306
2307         * sem_attr.adb: In an instance, the prefix of the 'result attribute
2308         can be the renaming of the
2309         current instance, so check validity of the name accordingly.
2310
2311 2008-07-31  Robert Dewar  <dewar@adacore.com>
2312
2313         * mlib-utl.ads: Minor reformatting
2314
2315 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
2316
2317         sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
2318         from context. This attribute must be usable in Ada95 mode.
2319         The attribute can appear in the body of a function marked
2320         Inline_Always, but in this case the postocondition is not enforced.
2321
2322         sem_prag.adb (Check_Precondition_Postcondition): within the expansion
2323         of an inlined call pre- and postconditions are legal
2324
2325 2008-07-31  Vincent Celier  <celier@adacore.com>
2326
2327         * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
2328         were for gprmake only
2329
2330 2008-07-31  Robert Dewar  <dewar@adacore.com>
2331
2332         * gnat_ugn.texi: Update -gnatN documentation.
2333
2334         * gnat_rm.texi: Add note about pre/postcondition
2335         pragmas not checked in conjunction with front-end inlining.
2336
2337 2008-07-31  Robert Dewar  <dewar@adacore.com>
2338
2339         * g-pehage.adb, g-pehage.ads: Minor reformatting
2340
2341 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
2342
2343         * mlib-utl.ads, prj-makr.ads: Add comments.
2344
2345 2008-07-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2346
2347         * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS)
2348         [WINDOWS]: Add s-winext.o.
2349
2350 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
2351
2352         PR ada/36554
2353         * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
2354         * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
2355         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
2356         Set precision to 1 for subtype of BOOLEAN_TYPE.
2357         (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
2358         (make_type_from_size): Deal with BOOLEAN_TYPE.
2359         * gcc-interface/misc.c (gnat_print_type): Likewise.
2360         * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
2361         Set boolean_type_node as its translation in the table, as well
2362         as boolean_false_node for False and boolean_true_node for True.
2363         * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
2364         8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
2365         (create_param_decl): Deal with BOOLEAN_TYPE.
2366         (build_vms_descriptor): Likewise.
2367         (build_vms_descriptor64): Likewise.
2368         (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
2369
2370 2008-07-30  Robert Dewar  <dewar@adacore.com>
2371
2372         * exp_ch9.adb: Minor reformatting
2373
2374         * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
2375         if no primitive operation is found.
2376
2377         * exp_util.adb: (Find_Prim_Op): Add comments for previous change
2378
2379         * sem_ch8.adb: Minor reformatting
2380
2381 2008-07-30  Laurent Pautet  <pautet@adacore.com>
2382
2383         * g-pehage.adb:
2384         Remove a limitation on the length of the words handled by the minimal
2385         perfect hash function generator.
2386
2387         * g-pehage.ads:
2388         Detail the use of subprograms Insert, Initialize, Compute and Finalize.
2389         Fix some typos.
2390
2391 2008-07-30  Robert Dewar  <dewar@adacore.com>
2392
2393         * gnatlink.adb: Minor reformatting
2394
2395 2008-07-30  Thomas Quinot  <quinot@adacore.com>
2396
2397         * rtsfind.adb (Check_RPC): Check version consistency even when not
2398         generating RCI stubs. Provide more detailed error message in case of
2399         mismatch.
2400
2401 2008-07-30  Ed Schonberg  <schonberg@adacore.com>
2402
2403         * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
2404         as a actual in an instance, check for a missing attribute to prevent
2405         program_error on an illegal program.
2406
2407         * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
2408         error if primitive is not found, so that exception can be handled
2409         elsewhere on illegal programs.
2410
2411 2008-07-30  Robert Dewar  <dewar@adacore.com>
2412
2413         * uintp.adb (UI_GCD): Fix potential overflow
2414
2415 2008-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
2416
2417         * einfo.adb: Flag245 is now used.
2418         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
2419         check to include functions.
2420         (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
2421         (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
2422         include functions.
2423         (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
2424         to the list of displayed flags.
2425
2426         * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
2427         Wrapped_Entity. These two flags are now present in functions.
2428         New flag Is_Private_Primitive.
2429         (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
2430
2431         * exp_ch9.adb:
2432         (Build_Wrapper_Bodies): New subprogram.
2433         (Build_Wrapper_Body): The spec and body have been moved to in
2434         Build_Wrapper_ Bodies. Code cleanup.
2435         (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
2436         Wrappers are now generated for primitives declared between the private
2437         and full view of a concurrent type that implements an interface.
2438         (Build_Wrapper_Specs): New subprogram.
2439         (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
2440         creation mechanism with a call to Build_Wrapper_Bodies.
2441         (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
2442         wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
2443         (Expand_N_Task_Body): Replace the wrapper body creation
2444         mechanism with a call to Build_Wrapper_Bodies.
2445         (Expand_N_Task_Type_Declaration): Replace the wrapper spec
2446         creation mechanism with a call to Build_Wrapper_Specs.
2447         (Is_Private_Primitive_Subprogram): New subprogram.
2448         (Overriding_Possible): Code cleanup.
2449         (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
2450
2451         * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
2452
2453         * sem_ch3.adb: Add with and use clause for Exp_Ch9.
2454         (Process_Full_View): Build wrapper specs for all primitives
2455         that belong to a private view completed by a concurrent type
2456         implementing an interface.
2457
2458         * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
2459         is a primitive of a
2460         concurrent type with a private view that implements an interface, try to
2461         find the proper spec.
2462         (Analyze_Subprogram_Declaration): Mark a subprogram as a private
2463         primitive if the type of its first parameter is a non-generic tagged
2464         private type.
2465         (Analyze_Subprogram_Specification): Code reformatting.
2466         (Disambiguate_Spec): New routine.
2467         (Find_Corresponding_Spec): Add a flag to controll the output of errors.
2468         (Is_Private_Concurrent_Primitive): New routine.
2469
2470         * sem_ch6.ads:
2471         (Find_Corresponding_Spec): Add a formal to control the output of errors.
2472
2473 2008-07-30  Doug Rupp  <rupp@adacore.com>
2474
2475         * gigi.h (build_vms_descriptor64): New function prototype.
2476         (fill_vms_descriptor): Modified function prototype.
2477
2478         * utils.c (build_vms_descriptor64): New function.
2479
2480         * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
2481
2482         * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
2483         argument.
2484
2485         * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
2486         64bit and 32bit descriptor and save the 64bit version as an alternate
2487         TREE_TYPE in the parameter.
2488         (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
2489         thin pointer.
2490
2491         * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
2492
2493 2008-07-30  Robert Dewar  <dewar@adacore.com>
2494
2495         * make.adb: Minor reformatting
2496
2497         * mlib-utl.adb: Minor reformatting
2498
2499         * osint.ads: Minor reformatting
2500
2501 2008-07-30  Jose Ruiz  <ruiz@adacore.com>
2502
2503         * adaint.c
2504         (__gnat_file_exists): Do not use __gnat_stat for RTX.
2505         (__main for RTX in RTSS mode): Create this dummy procedure symbol to
2506         avoid the use of this symbol from libgcc.a in RTX kernel mode.
2507
2508         * cio.c
2509         (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
2510         the function RtPrintf for console output.
2511
2512         * argv.c Do not use the environ variable for RTX.
2513
2514         * gnatlink.adb (gnatlink): The part that handles the --RTS option has
2515         been moved before the call to Osint.Add_Default_Search_Dirs in order
2516         to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
2517         from the appropriate run time.
2518
2519         * targparm.ads
2520         (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
2521         target is a RTSS module for RTX.
2522
2523         * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
2524         RTX_RTSS_Kernel_Module
2525         (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
2526
2527         * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
2528         exception handling mechanism for Windows and RTX in Win32 mode, but
2529         not for RTX in kernel mode (RTSS).
2530         (LIBGNAT_SRCS): Remove ada.h
2531
2532 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
2533
2534         * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
2535         T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
2536         (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
2537         * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
2538         X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
2539         ALL_ADA_CFLAGS): Remove.
2540         (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
2541         replace ALL_ADA_CFLAGS with ADA_CFLAGS.
2542         (GCC_CFLAGS): Remove X_CFLAGS.
2543         (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
2544         (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
2545         (ADA_CFLAGS): Substitute.
2546
2547 2008-07-30  Laurent Guerby  <laurent@guerby.net>
2548
2549         PR ada/5911
2550         * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
2551         Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
2552         Replace stamp-gnatlib* by stamp-gnatlib*-rts.
2553         * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
2554         by stamp-gnatlib2-rts.
2555
2556 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2557
2558         PR documentation/15479
2559         * gnat-style.texi: Remove AdaCore copyright statement and GPL
2560         statement for GNAT.  Add @copying stanza, use it.  Update to
2561         GFDL 1.2.  Do not list GFDL as Invariant Section, do not list
2562         title as Front-Cover Text.
2563         * gnat_rm.texi: Likewise.
2564         * gnat_ugn.texi: Likewise.
2565
2566 2008-07-29  Jan Hubicka  <jh@suse.cz>
2567
2568         * trans.c (process_inlined_subprograms): Remove tree_really_inline
2569         check.
2570
2571 2008-07-29  Arnaud Charlet  <charlet@adacore.com>
2572
2573         * gcc-interface: New directory.
2574
2575         * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
2576         utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
2577         config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
2578         to gcc-interface subdirectory.
2579
2580 2008-07-29  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2581
2582         * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
2583
2584 2008-07-28  Jan Hubicka  <jh@suse.cz>
2585
2586         * misc.c (gnat_post_options): Do not set flag_no_inline.
2587
2588 2008-07-28  Richard Guenther  <rguenther@suse.de>
2589
2590         Merge from gimple-tuples-branch.
2591
2592         2008-07-22  Olivier Hainque  <hainque@adacore.com>
2593
2594         * gigi.h (end_subprog_body): New ELAB_P argument, saying if
2595         this is called for an elab proc to be discarded if empty.
2596         * utils.c (end_subprog_body): Honor ELAB_P.
2597         (build_function_stub): Adjust call to end_subprog_body.
2598         * trans.c (Subprogram_Body_to_gnu): Likewise.
2599         (gigi): Reorganize processing of elab procs to prevent
2600         gimplifying twice, using the new end_subprog_body argument.
2601
2602         2008-07-19  Richard Guenther  <rguenther@suse.de>
2603
2604         * Make-lang.in (trans.o): Add tree-iterator.h dependency.
2605         (utils.o): Likewise.
2606         * trans.c: Include tree-iterator.h.
2607         (gnat_gimplify_expr): Adjust prototype.  Fix typo.
2608         (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
2609         (set_expr_location_from_node): Likewise.
2610         (gigi): Tuplify.
2611         * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
2612         of GENERIC_NEXT.
2613         * utils.c: Include tree-iterator.h.
2614         * gigi.h (gnat_gimplify_expr): Adjust prototype.
2615
2616         2008-07-18  Aldy Hernandez  <aldyh@redhat.com>
2617
2618         * trans.c: Include gimple.h instead of tree-gimple.h.
2619         * utils.c: Same.
2620
2621         2008-07-14  Aldy Hernandez  <aldyh@redhat.com>
2622
2623         * trans.c (gnat_gimplify_expr): Use gimplify_assign.
2624
2625 2008-07-25  Jan Hubicka  <jh@suse.cz>
2626
2627         * utils.c (end_subprog_body): Remove inline trees check.
2628         * misc.c (gnat_post_options): Do not set flag_inline_trees.
2629
2630 2008-07-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2631
2632         * raise-gcc.c: Move tsystem.h before tm.h.
2633
2634 2008-07-20  Arnaud Charlet  <charlet@adacore.com>
2635
2636         * gnathtml.pl: New file.
2637
2638 2008-07-19  Olivier Hainque  <hainque@adacore.com>
2639
2640         * targtyps.c (get_target_default_allocator_alignment): Use
2641         MALLOC_ABI_ALIGNMENT.
2642
2643 2008-07-17  Olivier Hainque  <hainque@adacore.com>
2644
2645         * adaint.c (__MINGW32__ section): Include ctype.h and define
2646         a fallback ISALPHA if IN_RTS.
2647         (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
2648
2649 2008-07-17  Olivier Hainque  <hainque@adacore.com>
2650
2651         * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
2652         argument, to apply to references in addition to definitions.  Prevent
2653         setting TREE_STATIC on externals.
2654         (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
2655
2656 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2657
2658         PR documentation/15479
2659         * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
2660         Replace backets around optional parameters with @ovar
2661         where possible, use @r{[}, @r{]} otherwise.
2662         Replace some @r, @i, and @emph with @var where appropriate.
2663
2664 2008-07-02  Eric Botcazou  <ebotcazou@adacore.com>
2665
2666         * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
2667
2668 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2669
2670         * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
2671         -Wc++-compat warnings.
2672         * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
2673         __gnat_locate_exec_on_path): Likewise.
2674         * decl.c (annotate_value): Likewise.
2675         * misc.c (gnat_handle_option): Likewise.
2676         * trans.c (gnat_to_gnu, extract_encoding, decode_name,
2677         post_error_ne_tree): Likewise.
2678
2679 2008-06-27  Eric Botcazou  <ebotcazou@adacore.com>
2680
2681         * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
2682         version of its type, attempt to first convert its elements.
2683
2684 2008-06-26  Chris Proctor  <chrisp_42@bigpond.com>
2685
2686         * Makefile.in: Fix *86 kfreebsd target specific pairs.
2687
2688 2008-06-25  Samuel Tardieu  <sam@rfc1149.net>
2689
2690         * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
2691
2692 2008-06-24  Eric Botcazou  <ebotcazou@adacore.com>
2693
2694         * utils2.c (known_alignment): Derive the alignment from pointed-to
2695         types only if it is otherwise unknown.
2696         <INTEGER_CST>: Tidy.
2697         <MULT_EXPR>: Likewise.
2698         <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
2699         that of the base.
2700
2701 2008-06-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2702
2703         PR ada/36573
2704         * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
2705
2706 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2707
2708         * gnat_rm.texi (Implementation Defined Characteristics)
2709         (Standard Library Routines): Use @smallexample for indented
2710         text.  Drop Indentation outside examples.
2711         * gnat_ugn.texi: Likewise.
2712
2713 2008-06-13  Olivier Hainque  <hainque@adacore.com>
2714
2715         * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
2716         if undefined.
2717         (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
2718         realignment with force_align_arg_pointer attribute on foreign
2719         convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
2720
2721 2008-06-13  Olivier Hainque  <hainque@adacore.com>
2722
2723         * utils.c (rest_of_record_type_compilation): When computing
2724         encodings for the components of a variable size type, early
2725         strip conversions on the current position expression to make
2726         sure it's shape is visible.  Use remove_conversions for this
2727         purpose.
2728
2729 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
2730
2731         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
2732         constrained subtype of a discriminated type, discard the fields that
2733         are beyond its limits according to its size.
2734
2735 2008-06-10  Olivier Hainque  <hainque@adacore.com>
2736
2737         * utils.c (create_subprog_decl): If this is for the 'main' entry
2738         point according to the asm name, redirect main_identifier_node.
2739
2740 2008-06-09  Eric Botcazou  <ebotcazou@adacore.com>
2741
2742         * decl.c (components_to_record): Adjust the packedness for the
2743         qualified union as well.
2744
2745 2008-06-09  Arnaud Charlet  <charlet@adacore.com>
2746
2747         * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
2748         checks non fatal.
2749
2750 2008-06-07  Samuel Tardieu  <sam@rfc1149.net>
2751
2752         * sem_res.adb (Large_Storage_Type): A type is large if it
2753         requires as many bits as Positive to store its values and its
2754         bounds are known at compile time.
2755         * sem_ch13.adb (Minimum_Size): Note that this function returns
2756         0 if the size is not known at compile time.
2757
2758 2008-06-06  Nicolas Setton  <setton@adacore.com>
2759             Olivier Hainque  <hainque@adacore.com>
2760
2761         * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
2762         attribute, parallel descriptive type attached to another
2763         type for debug info generation purposes.
2764         * utils.c (add_parallel_type): New function, register
2765         parallel type to be attached to a type.
2766         (get_parallel_type): New function, fetch a registered
2767         parallel type, if any.
2768         (rest_of_record_type_compilation): Register the parallel
2769         type we make for variable size records.
2770         * gigi.h (add_parallel_type, get_parallel_type): Declare.
2771         * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
2772         parallel debug types we make.
2773         * trans.c (extract_encoding, decode_name): New functions.
2774         (gigi): If the DWARF attribute extensions are available, setup
2775         to use them.
2776         * lang.opt: Register language specific processing request
2777         for -gdwarf+.
2778         * misc.c (gnat_dwarf_extensions): New global variable. How much
2779         do we want of our DWARF extensions. 0 by default.
2780         (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
2781         (gnat_post_options): Map gnat_dwarf_extensions to the
2782         commonuse_gnu_debug_info_extensions for later processing.
2783
2784 2008-06-04  Samuel Tardieu  <sam@rfc1149.net>
2785
2786         * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
2787
2788 2008-06-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2789
2790         * Makefile.in (common_tools): Fix typos in $(exeext) extension.
2791         * gnat_ugn.texi (Style Checking)
2792         (Adding the Results of Compiler Checks to gnatcheck Output)
2793         (Example of Binder Output File): Fix typos.
2794         * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
2795         exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
2796         s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
2797         s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
2798         sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
2799         sinfo.ads, utils.c: Fix typos in comments.
2800         * sem_ch6.adb, vms_data.ads: Fix typos in strings.
2801
2802 2008-05-29  Thomas Quinot  <quinot@adacore.com>
2803
2804         * sem_eval.adb: Minor reformatting
2805
2806 2008-05-29  Ed Schonberg  <schonberg@adacore.com>
2807
2808         * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
2809         is abstract, do not apply abstractness check on subprogram if this is
2810         a renaming declaration.
2811
2812 2008-05-29  Arnaud Charlet  <charlet@adacore.com>
2813
2814         PR ada/864
2815         * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
2816         allow recognition of program suffix in addition to prefix.
2817
2818         * gnatchop.adb (Locate_Executable): Add support for prefix.
2819
2820         * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
2821         mlib-utl.adb: Adjust calls to Program_Name.
2822
2823 2008-05-29  Robert Dewar  <dewar@adacore.com>
2824
2825         * sem_ch3.adb: Minor reformatting
2826         * sem_prag.adb: Minor reformatting
2827         * sem_res.adb: Minor reformatting
2828         * sinput-p.ads: Minor reformatting
2829
2830 2008-05-29  Javier Miranda  <miranda@adacore.com>
2831
2832         * sem_util.adb:
2833         (Abstract_Interface_List): Add missing support for full type-declaration
2834         associated with synchronized types.
2835
2836 2008-05-29  Robert Dewar  <dewar@adacore.com>
2837
2838         * sem_eval.adb (Is_Same_Value): Take care of several more cases
2839
2840 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
2841
2842         * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
2843         access type, wrap the expression in a conversion to force an
2844         accessibility check.
2845
2846         * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
2847         accessibility checks even when expansion is disabled in order to
2848         generate messages in the presence of previous errors or in
2849         semantics-only mode.
2850
2851 2008-05-28  Eric Botcazou  <ebotcazou@adacore.com>
2852
2853         * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
2854         * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
2855
2856 2008-05-28  Vincent Celier  <celier@adacore.com>
2857
2858         PR ada/34446
2859         * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
2860         preprocessing expressions
2861
2862 2008-05-28  Vincent Celier  <celier@adacore.com>
2863
2864         * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
2865         for preprocessing
2866
2867         * sinput-p.ads: Minor comment update and reformatting
2868
2869 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
2870
2871         * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
2872         type has a deeper level than any master only when it is the type of an
2873         access parameter.
2874
2875 2008-05-28  Javier Miranda  <miranda@adacore.com>
2876
2877         * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
2878
2879 2008-05-28  Javier Miranda  <miranda@adacore.com>
2880
2881         * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
2882         * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
2883         * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
2884         Add code that was previously located in
2885         Find_Overridden_Synchronized_Primitive because it is only used here.
2886
2887 2008-05-28  Sergey Rybin  <rybin@adacore.com>
2888
2889         * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
2890         Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
2891
2892 2008-05-28  Robert Dewar  <dewar@adacore.com>
2893
2894         * restrict.ads:
2895         Add missing restrictions, and properly label all GNAT defined ones
2896
2897         * rtsfind.ads:
2898         Add entry for Ada_Real_Time.Timing_Events.Timing_Event
2899         Add entry for Ada.Task_Termination.Set_Specific_Handler
2900         Add entry for Ada.Task_Termination.Specific_Handler
2901
2902         * s-rident.ads:
2903         Add missing restrictions and properly mark all gnat defined ones
2904
2905         * sem_ch3.adb:
2906         (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
2907
2908         * sem_res.adb:
2909         (Resolve_Call): Check violation of No_Specific_Termination_Handlers
2910
2911         * gnat_rm.texi: Add missing restrictions, and properly label all
2912         GNAT defined ones
2913
2914 2008-05-28  Robert Dewar  <dewar@adacore.com>
2915
2916         * restrict.adb:
2917         (Check_Restriction): violation of restriction No_Finalization is
2918         treated as a serious error to stop expansion
2919
2920 2008-05-28  Robert Dewar  <dewar@adacore.com>
2921
2922         * exp_util.adb: Minor reformatting
2923         * exp_util.ads: Minor reformatting.
2924
2925 2008-05-28  Arnaud Charlet  <charlet@adacore.com>
2926
2927         * Make-lang.in: Remove gprmake.
2928
2929         * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
2930
2931 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
2932
2933         * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
2934         improper progenitor names, and avoid cascaded errors.
2935
2936 2008-05-28  Robert Dewar  <dewar@adacore.com>
2937
2938         * gnat_rm.texi: Add note on Old giving warning when applied to constant
2939
2940         * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
2941         a constant
2942
2943 2008-05-28  Robert Dewar  <dewar@adacore.com>
2944
2945         * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
2946         size
2947
2948 2008-05-28  Robert Dewar  <dewar@adacore.com>
2949
2950         * exp_ch5.adb:
2951         (Expand_Simple_Function_Return): Copy unaligned result into temporary
2952
2953 2008-05-28  Javier Miranda  <miranda@adacore.com>
2954
2955         * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
2956         for user-defined predefined primitives.
2957
2958         * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
2959         (Find_Overridden_Synchronized_Primitive): Ditto.
2960
2961         * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
2962
2963 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
2964
2965         * a-ststio.adb, s-direio.adb:
2966         Further code clean up of previous change.
2967         Update comments.
2968
2969 2008-05-27  Vincent Celier  <celier@adacore.com>
2970
2971         * prj-nmsc.adb: Minor reformatting
2972
2973 2008-05-27  Bob Duff  <duff@adacore.com>
2974
2975         * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
2976         untagged private type with a tagged full type, where the full type has
2977         a self reference, create the corresponding class-wide type early, in
2978         case the self reference is "access T'Class".
2979
2980 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
2981
2982         * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
2983         tasks and context is an object declaration. create master entity before
2984         expansion.
2985
2986 2008-05-27  Robert Dewar  <dewar@adacore.com>
2987
2988         * mlib-prj.adb: Minor reformatting
2989
2990         * prj-part.adb: Minor reformatting
2991
2992         * prj.ads: Minor reformatting
2993
2994         * exp_ch3.adb: Minor reformatting.
2995
2996         * sem_ch3.ads: Minor reformatting
2997
2998         * sem_eval.adb: Minor reformatting
2999
3000 2008-05-27  Vincent Celier  <celier@adacore.com>
3001
3002         * gnatcmd.adb:
3003         <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
3004
3005 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
3006
3007         * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
3008         tasks, create an activation chain now, before the expansion into
3009         assignments and build-in-place calls that require the presence of an
3010         activation chain.
3011         (Backend_Processing_Possible): If the component type is inherently
3012         limited, the aggregate must be expanded into individual built-in-place
3013         assignments.
3014
3015         * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
3016         determine whether an allocation extra parameter must be built, to
3017         handle case of a private type whose full type is a discriminated type
3018         with defaults.
3019
3020 2008-05-27  Bob Duff  <duff@adacore.com>
3021
3022         * gnat_rm.texi:
3023         Document the new behavior regarding trampolines.
3024
3025 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
3026
3027         * a-direio.adb, a-sequio.adb: Replace address clause by
3028         unrestricted_access, simpler and compatible with .NET.
3029
3030 2008-05-27  Vincent Celier  <celier@adacore.com>
3031
3032         * prj-part.adb:
3033         (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
3034         a project file, so that symbolic links are not resolved.
3035
3036 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
3037
3038         * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
3039         Replace heavy address clause by 'Unrestricted_Access, cleaner and more
3040         portable across GNAT targets, since this kind of address clause is not
3041         supported by VM back-ends (.NET/JGNAT).
3042
3043 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
3044
3045         * bindgen.adb: Update comments.
3046
3047         * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
3048
3049 2008-05-27  Vincent Celier  <celier@adacore.com>
3050
3051         * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
3052         prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
3053         mlib-tgt.adb, prj-env.adb, prj-env.ads:
3054         (Path_Information): New record type
3055         Use component of type Path_Information when there are two paths, one in
3056         canonical format and one in display format.
3057         Update the project manager to these new components.
3058
3059 2008-05-27  Robert Dewar  <dewar@adacore.com>
3060
3061         * makeutl.adb: Minor reformatting
3062         * prj-nmsc.adb: Minor reformatting
3063         * s-stausa.adb: Minor reformatting
3064         * s-stausa.ads: Minor reformatting
3065         * sem_ch6.adb: Minor reformatting
3066
3067 2008-05-27  Thomas Quinot  <quinot@adacore.com>
3068
3069         * sem_res.adb: Minor comment fixes
3070
3071 2008-05-27  Thomas Quinot  <quinot@adacore.com>
3072
3073         * makeutl.adb: Minor code reorganization
3074
3075         * exp_aggr.adb: Add ??? comment
3076         Fix typo
3077
3078         * exp_ch6.adb: Minor reformatting
3079
3080 2008-05-27  Quentin Ochem  <ochem@adacore.com>
3081
3082         * s-stausa.adb (Initialize): Updated result initialization, and
3083         initialization of environment stack.
3084         (Fill_Stack): Improved computation of the pattern zone, taking into
3085         account already filled at the calling point.
3086         (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
3087         Measure and Overflow_Guard.
3088         (Report_Result): Fixed computation of the result using new fields of
3089         Stack_Analyzer.
3090
3091         * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
3092         params by more explicit Stack_Size / Max_Pattern_Size params.
3093         (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
3094         Added Stack_Used_When_Filling field.
3095         (Task_Result): Replaced Measure / Overflow_Guard by more explicit
3096         Min_Measure and Max_Measure fields.
3097
3098         * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
3099
3100 2008-05-27  Vincent Celier  <celier@adacore.com>
3101
3102         * prj-nmsc.adb:
3103         (Check_File): Make sure that a unit that replaces the same unit in a
3104          project being extended is properly processed.
3105
3106 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
3107
3108         * sem_ch3.adb:
3109         (Get_Discr_Value): Remove obsolete code that failed to find the value
3110         of a discriminant for an inherited task component appearing in a type
3111         extension.
3112
3113 2008-05-27  Thomas Quinot  <quinot@adacore.com>
3114
3115         (System.File_IO.{Close, Delete, Reset}):
3116         Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
3117
3118         (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
3119         Pass File parameter by reference.
3120
3121 2008-05-27  Vincent Celier  <celier@adacore.com>
3122
3123         * prj-nmsc.adb:
3124         (Process_Sources_In_Multi_Language_Mode): Check that there are not two
3125         sources of the same project that have the same object file name.
3126         (Find_Explicit_Sources): Always remove a source exception that was not
3127         found.
3128
3129 2008-05-27  Thomas Quinot  <quinot@adacore.com>
3130
3131         * sem_ch3.adb: Minor reformatting
3132
3133 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
3134
3135         * sem_ch6.adb:
3136         (Is_Interface_Conformant): Handle properly a primitive operation that
3137         overrides an interface function with a controlling access result.
3138         (Type_Conformance): If Skip_Controlling_Formals is true, when matching
3139         inherited and overriding operations, omit as well the conformance check
3140         on result types, to prevent spurious errors.
3141
3142 2008-05-27  Vincent Celier  <celier@adacore.com>
3143
3144         * makeutl.ads, makeutl.adb:
3145         (Set_Location): New procedure
3146         (Get_Location): New function
3147         (Update_Main): New procedure
3148
3149 2008-05-27  Vincent Celier  <celier@adacore.com>
3150
3151         * prj-nmsc.adb:
3152         (Check_Library): Allow standard project to be extended as a static
3153         library project.
3154         (Get_Mains): Do not inherit attribute Main in an extending library
3155         project.
3156
3157 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
3158
3159         * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
3160         * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
3161         * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
3162         * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
3163         * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
3164         * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
3165         * system-mingw.ads (Always_Compatible_Rep): Likewise.
3166         * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
3167         * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
3168         * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
3169
3170 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
3171
3172         * sem_attr.adb: add guard to previous patch.
3173
3174 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
3175
3176         * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
3177         a synchronized tagged type, do not attempt to build dispatch table for
3178         full view. The table is built for the corresponding record type, which
3179         has its own declaration.
3180
3181 2008-05-27  Gary Dismukes  <dismukes@adacore.com>
3182
3183         * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
3184         to the known type entity E, rather than setting it to Any_Type. Fixes
3185         possible blowup in function Base_Init_Proc, as called from Freeze_Entity
3186         for objects whose type had an illegal constraint.
3187
3188 2008-05-27  Vincent Celier  <celier@adacore.com>
3189
3190         * gnat_ugn.texi:
3191         Add succinct documentation for attribute Excluded_Source_List_File
3192
3193 2008-05-27  Vincent Celier  <celier@adacore.com>
3194
3195         * prj-attr.adb: Add new project level attribute Map_File_Option
3196
3197         * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
3198
3199         * prj.ads: Minor reformatting and comment update
3200         (Project_Configuration): New component Map_File_Option
3201
3202         * snames.adb: New standard name Map_File_Option
3203
3204         * snames.ads: New standard name Map_File_Option
3205
3206 2008-05-27  Vincent Celier  <celier@adacore.com>
3207
3208         * xsnames.adb: Remove unused variable Oname
3209
3210 2008-05-27  Doug Rupp  <rupp@adacore.com>
3211
3212         * exp_ch6.adb:
3213         (Expand_N_Function_Call): Fix comments. Minor reformatting.
3214
3215         * exp_vfpt.ads:
3216         (Expand_Vax_Foreign_Return): Fix comments.
3217
3218 2008-05-27  Thomas Quinot  <quinot@adacore.com>
3219
3220         * exp_dist.adb: Minor reformating
3221
3222 2008-05-26  Gary Dismukes  <dismukes@adacore.com>
3223
3224         * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
3225         No_Default_Initialization, which is now delayed until the freeze point
3226         of the object. Add a comment about deferral of the check.
3227
3228         * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
3229         on objects is moved here.
3230
3231 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
3232
3233         * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
3234         (Compare_Array_S16): Adjust for above change.
3235         * s-casi32.adb (Uword): Likewise.
3236         (Compare_Array_S32): Likewise.
3237         * s-casi64.adb (Uword): Likewise.
3238         (Compare_Array_S64): Likewise.
3239         * s-caun16.adb (Uhalf): Likewise.
3240         (Compare_Array_U16): Likewise.
3241         * s-caun32.adb (Uword): Likewise.
3242         (Compare_Array_U32): Likewise.
3243         * s-caun64.adb (Uword): Likewise.
3244         (Compare_Array_U64): Likewise.
3245
3246 2008-05-26  Robert Dewar  <dewar@adacore.com>
3247
3248         * exp_ch6.adb: Add ??? comment for previous change
3249
3250         * exp_vfpt.adb: Minor reformatting
3251
3252         * exp_vfpt.ads: Add ??? comment for last change
3253
3254         * sem_attr.adb: Add some ??? comments for previous change
3255
3256         * s-vaflop.ads: Add comments for previous change
3257
3258 2008-05-26  Doug Rupp  <rupp@adacore.com>
3259
3260         * s-vaflop-vms-alpha.adb:
3261         Remove System.IO use clause, to prevent spurious ambiguities when
3262         package is access through rtsfind.
3263
3264 2008-05-26  Sergey Rybin  <rybin@adacore.com>
3265
3266         * tree_io.ads (ASIS_Version_Number): Update because of the changes
3267         made in front-end
3268
3269 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3270
3271         * sem_attr.adb:
3272         (Resolve_Attribute, case 'address):  S (A .. B)' address can be safely
3273         converted to S (A)'address only if A .. B is known to be a non-null
3274         range.
3275
3276 2008-05-26  Doug Rupp  <rupp@adacore.com>
3277
3278         * s-vaflop.adb:
3279         (Return_D, Return_F, Return_G): New functions.
3280
3281         * s-vaflop.ads:
3282         (Return_D, Return_F, Return_G): New functions.
3283
3284         * exp_vfpt.adb:
3285         (Expand_Vax_Foreign_Return): New procedure
3286
3287         * exp_vfpt.ads:
3288         (Expand_Vax_Foreign_Return): New procedure
3289
3290         * rtsfind.ads:
3291         (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
3292         (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
3293
3294         * exp_ch6.adb:
3295         Import Exp_Vfpt
3296         (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
3297
3298         * s-vaflop-vms-alpha.adb:
3299         (Return_D, Return_F, Return_G): New functions.
3300
3301 2008-05-26  Gary Dismukes  <dismukes@adacore.com>
3302
3303         * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
3304         init proc entity when there is actual default initialization associated
3305         with the component type, to avoid spurious errors on objects of scalar
3306         array types that are marked Is_Public when No_Default_Initialization
3307         applies.
3308
3309 2008-05-26  Thomas Quinot  <quinot@adacore.com>
3310
3311         * rtsfind.ads, rtsfind.adb:
3312         (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
3313         (Check_RPC): Support per-PCS-kind API versioning.
3314
3315         exp_dist.ads, exp_dist.adb:
3316         (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
3317         (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
3318          library function Get_RACW.
3319         (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
3320         library function Get_Reference.
3321         (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
3322         through an intermediate Any.
3323         (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
3324         going through an intermediate Any.
3325
3326         * sem_dist.adb: Minor reformatting.
3327
3328 2008-05-26  Javier Miranda  <miranda@adacore.com>
3329
3330         * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
3331         (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
3332         (Is_Internal): Adding documentation on internal entities that have
3333         attribute Interface_Alias (old attribute Abstract_Interface_Alias)
3334
3335         * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
3336         (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
3337         Added assertion to force entities with this attribute to have
3338         attribute Is_Internal set to True.
3339         (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
3340
3341         * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
3342         renamed as Derive_Progenitor_Subprograms. In addition, its code is
3343         a new implementation.
3344         (Add_Interface_Tag_Components): Remove special management of
3345         synchronized interfaces.
3346         (Analyze_Interface_Declaration): Minor reformating
3347         (Build_Derived_Record_Type): Minor reformating
3348         (Check_Abstract_Overriding): Avoid reporting error in case of abstract
3349         predefined primitive inherited from interface type because the body of
3350         internally generated predefined primitives of tagged types are generated
3351         later by Freeze_Type
3352         (Derive_Subprogram): Avoid generating an internal name if the parent
3353         subprogram overrides an interface primitive.
3354         (Derive_Subprograms): New implementation that keeps separate the
3355         management of tagged types not implementing interfaces, from tagged
3356         types that implement interfaces.
3357         (Is_Progenitor): New implementation.
3358         (Process_Full_View): Add documentation
3359         (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
3360         by call to Derive_Progenitor_Subprograms.
3361
3362         * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
3363         (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
3364         Skip_Controlling_Formals.
3365
3366         * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
3367         (Check_Conventions): New implementation. Remove local subprogram
3368         Skip_Check. Remove formal Search_From of routine Check_Convention.
3369         (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
3370         Skip_Controlling_Formals.
3371         (New_Overloaded_Entity): Enable addition of predefined dispatching
3372         operations.
3373
3374         * sem_disp.ads
3375         (Find_Primitive_Covering_Interface): New subprogram.
3376
3377         * sem_disp.adb (Check_Dispatching_Operation): Disable registering
3378         the task body procedure as a primitive of the corresponding tagged
3379         type.
3380         (Check_Operation_From_Private_Type): Avoid adding twice an entity
3381         to the list of primitives.
3382         (Find_Primitive_Covering_Interface): New subprogram.
3383         (Override_Dispatching_Operation): Add documentation.
3384
3385         * sem_type.adb (Covers): Minor reformatings
3386
3387         * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
3388         Collect_Interfaces.
3389         Rename formal.
3390         (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
3391         (Implements_Interface): New subprogram.
3392         (Is_Parent): Removed.
3393         (Primitive_Names_Match): New subprogram.
3394         (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
3395         (Ultimate_Alias): New subprogram.
3396
3397         * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
3398         Collect_Interfaces.
3399         Remove special management for synchronized types. Rename formal. Remove
3400         internal subprograms Interface_Present_In_Parent and Add_Interface.
3401         (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
3402         on non-record types by code to return false in such case.
3403         (Implements_Interface): New subprogram.
3404         (Is_Parent): Removed. No special management is now required for
3405         synchronized types covering interfaces.
3406         (Primitive_Names_Match): New subprogram.
3407         (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
3408         (Ultimate_Alias): New subprogram.
3409
3410         * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
3411         Add internal entities associated with secondary dispatch tables to
3412         the list of tagged type primitives that are not interfaces.
3413         (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
3414         (Make_Predefined_Primitive_Specs): Code reorganization to improve
3415         the management of predefined equality operator. In addition, if
3416         the type has an equality function corresponding with a primitive
3417         defined in an interface type, the inherited equality is abstract
3418         as well, and no body can be created for it.
3419
3420         * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
3421         exp_util to exp_disp.
3422         (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
3423         an entity corresponds with one of the predefined primitives required
3424         to implement interfaces.
3425         Update copyright notice.
3426
3427         * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
3428         final check on abstract subprograms all the primitives associated with
3429         interface primitives because they must be visible in the public and
3430         private part.
3431         (Write_DT): Use Find_Dispatching_Type to locate the name of the
3432         interface type. This allows the use of this routine, for debugging
3433         purposes, when the tagged type is not fully decorated.
3434         (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
3435         Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
3436         (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
3437         entity corresponds with one of the predefined primitives required to
3438         implement interfaces.
3439
3440         * exp_util.adb (Find_Interface_ADT): New implementation
3441         (Find_Interface): Removed.
3442
3443         * sprint.adb (Sprint_Node_Actual): Generate missing output for the
3444         list of interfaces associated with nodes
3445         N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
3446
3447 2008-05-26  Thomas Quinot  <quinot@adacore.com>
3448
3449         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
3450         condition for assignment to temporary.
3451
3452 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3453
3454         * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
3455         checks on the upper bound if the index type is a modular type, to
3456         prevent wrap-around computations when size is close to upper bound of
3457         type.
3458
3459 2008-05-26  Robert Dewar  <dewar@adacore.com>
3460
3461         * sem_ch3.adb: Minor reformatting
3462
3463 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3464
3465         * sem_ch12.adb (Remove_Parent): Use specification of instance
3466         to retrieve generic parent,
3467         to handle properly the case where the instance is a child unit.
3468         Add guard to handle properly wrapper packages.
3469         Minor reformatting
3470
3471 2008-05-26  Thomas Quinot  <quinot@adacore.com>
3472
3473         * sinfo.ads: Minor reformatting
3474
3475 2008-05-26  Hristian Kirtchev  <kirtchev@adacore.com>
3476
3477         * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
3478         Generate a tag check when the result subtype of a function, defined by
3479         an access definition, designates a specific tagged type.
3480         (Make_Tag_Check): New routine.
3481
3482 2008-05-26  Arnaud Charlet  <charlet@adacore.com>
3483
3484         * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
3485
3486 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
3487
3488         * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
3489         (builtin_decl_for): Likewise.
3490         * trans.c (gigi): Likewise.
3491         * utils.c (def_builtin_1): Fix formatting.
3492
3493 2008-05-26  Hristian Kirtchev  <kirtchev@adacore.com>
3494
3495         * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
3496         Create the statements which map a string name to protected or task
3497         entry indix.
3498
3499         * exp_ch9.adb: Add with and use clause for Stringt.
3500         Minor code reformatting.
3501         (Build_Entry_Names): New routine.
3502         (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
3503         for flag Build_Entry_Names which controls the allocation of the data
3504         structure for the string names of entries.
3505
3506         * exp_ch9.ads (Build_Entry_Names): New subprogram.
3507
3508         * exp_util.adb (Entry_Names_OK): New function.
3509
3510         * exp_util.ads (Entry_Names_OK): New function.
3511
3512         * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
3513         enumerations RE_Id and RE_Unit_Table.
3514
3515         * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
3516         (Free_Entry_Names_Array): New routine.
3517
3518         * s-taskin.ads: Comment reformatting.
3519         Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
3520         Add component Entry_Names to record Ada_Task_Control_Block.
3521         (Free_Entry_Names_Array): New routine.
3522
3523         * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
3524         dynamically allocate an array
3525         of string pointers. This structure holds string entry names.
3526         (Free_Entry_Names): New routine.
3527         (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
3528         (Set_Entry_Names): New routine.
3529
3530         * s-tassta.ads:
3531         (Create_Task): Add formal Build_Entry_Names. The flag is used to
3532         control the allocation of the data structure which stores entry names.
3533         (Set_Entry_Name): New routine.
3534
3535         * s-tpoben.adb:
3536         Add with and use clause for Ada.Unchecked_Conversion.
3537         (Finalize): Deallocate the entry names array.
3538         (Free_Entry_Names): New routine.
3539         (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
3540         create an array of string pointers to hold the entry names.
3541         (Set_Entry_Name): New routine.
3542
3543         * s-tpoben.ads:
3544         Add field Entry_Names to record Protection_Entries.
3545         (Initialize_Protection_Entries): Add formal Build_Entry_Names.
3546         (Set_Entry_Name): New routine.
3547
3548 2008-05-26  Vincent Celier  <celier@adacore.com>
3549
3550         * prj-nmsc.adb:
3551         (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
3552
3553         * prj.ads:
3554         (Project_Configuration): New component Shared_Lib_Driver
3555
3556 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3557
3558         * inline.adb:
3559         (Cleanup_Scopes): For a protected operation, transfer finalization list
3560         to protected body subprogram, to force cleanup actions when needed.
3561
3562 2008-05-26  Robert Dewar  <dewar@adacore.com>
3563
3564         * sem_cat.adb: Minor reformatting
3565
3566         * gnatname.adb: Minor reformatting
3567
3568         * osint.ads: Minor reformatting
3569
3570         * s-carun8.ads: Minor reformatting
3571
3572         * g-heasor.ads: Minor comment fix (unit is now pure)
3573
3574 2008-05-26  Robert Dewar  <dewar@adacore.com>
3575
3576         * exp_ch2.adb:
3577         (Expand_Current_Value): Properly type generated integer literal
3578
3579 2008-05-26  Sergey Rybin  <rybin@adacore.com>
3580
3581         * gnat_ugn.texi: Add description for the new gnatcheck rule -
3582         Separate_Numeric_Error_Handlers.
3583
3584 2008-05-26  Pascal Obry  <obry@adacore.com>
3585
3586         * sem_aggr.adb: Minor reformatting.
3587
3588 2008-05-26  Jose Ruiz  <ruiz@adacore.com>
3589
3590         * s-osinte-aix.adb:
3591         (To_Target_Priority): Setting the time slice value to 0 or greater sets
3592         the scheduling policy to FIFO within priorities or round-robin
3593         respectively.
3594         Hence, the priority must be set in this case to the one selected by the
3595         user.
3596
3597 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3598
3599         * sem_ch12.adb:
3600         (Remove_Parent): If the enclosing scope is an instance whose generic
3601         parent is declared within some parent scope of the just completed
3602         instance, make full views of the entities in that parent visible, when
3603         applicable.
3604
3605 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
3606
3607         * mingw32.h (STD_MINGW): Set to true for target w64.
3608
3609 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
3610
3611         * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
3612         instead of TREE_STATIC on the ADDR_EXPR.
3613
3614 2008-05-24  Eric Botcazou  <ebotcazou@adacore.com>
3615
3616         * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
3617         (Sloc_to_locus): Do not overwrite known GCC locations when translating
3618         GNAT standard locations.
3619
3620 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
3621
3622         * gigi.h (mark_visited): Declare.
3623         * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
3624         only the topmost node of expressions.
3625         (elaborate_expression_1): Look deeper for read-only variables.
3626         * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
3627         (mark_visited): Move logic to mark_visited_r.  Invoke walk_tree.
3628         (mark_visited_r): New function.
3629
3630 2008-05-23  Vincent Celier  <celier@adacore.com>
3631
3632         * snames.adb: New standard name Excluded_Source_List_File.
3633
3634         * snames.ads: New standard name Excluded_Source_List_File.
3635
3636         * prj-attr.adb: New project level attribute Excluded_Source_List_File.
3637
3638         * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
3639         Get excluded sources from
3640         file indicated by attribute Excluded_Source_List_File, when present and
3641         neither Excluded_Source_Files nor Locally_Removed_Files are declared.
3642
3643 2008-05-23  Robert Dewar  <dewar@adacore.com>
3644
3645         * exp_dist.adb: Minor reformatting
3646
3647 2008-05-23  Ed Schonberg  <schonberg@adacore.com>
3648
3649         * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
3650         slice, convert it to an indexed component, which is equivalent, more
3651         efficient, and usable even if the slice itself is not addressable.
3652
3653 2008-05-23  Olivier Hainque  <hainque@adacore.com>
3654
3655         * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
3656         convention also allows access to named compiler built-in subprograms
3657         such as the GCC __builtin family.
3658
3659 2008-05-23  Vincent Celier  <celier@adacore.com>
3660
3661         * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
3662         sep. If there are several possibilities, choose the one with the
3663         longer prefix.
3664
3665 2008-05-23  Vincent Celier  <celier@adacore.com>
3666
3667         * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
3668         back end switches when executable specified with --GCC= is same as
3669         default, even if there are additional options.
3670
3671         * gnat_ugn.texi:
3672         Document when the back end switches from the ALI file are taken into
3673         account when gnatlink is invoked with --GCC=
3674
3675 2008-05-23  Thomas Quinot  <quinot@adacore.com>
3676
3677         * s-os_lib.adb:
3678         (copy_File): Do not open destination file if source file is unreadable.
3679
3680 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
3681
3682         * utils.c (handle_type_generic_attribute): Adjust to accept
3683         fixed arguments before an elipsis.
3684
3685 2008-05-21  Thomas Quinot  <quinot@adacore.com>
3686
3687         * g-sothco.ads, g-sothco.adb: New files.
3688
3689 2008-05-20  Thomas Quinot  <quinot@adacore.com>
3690
3691         * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
3692
3693         * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
3694         Add missing "with" of Ada.Unchecked_Conversion
3695
3696         * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
3697         g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
3698         g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
3699         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
3700         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
3701         g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
3702         Move common code out of GNAT.Sockets.Thin implementations and into
3703         Thin_Common.
3704         New constant SIZEOF_fd_set
3705         New flag Has_Sockaddr_Len
3706         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3707
3708         * g-stsifd-sockets.adb
3709         (Create): Remove call to Set_Length; use Set_Family to set the family
3710         and (on appropriate platforms) length fields in struct sockaddr.
3711
3712         * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
3713         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
3714         g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
3715         Move common code out of GNAT.Sockets.Thin implementations and into
3716         Thin_Common.
3717
3718         * g-socket.ads, g-socket.adb:
3719         Move common code out of GNAT.Sockets.Thin implementations and into
3720         Thin_Common.
3721         (Connect_Socket, Accept_Socket): Provide new versions of these two
3722         routines that operate with a user specified timeout.
3723         (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
3724         this is now handled automatically by Set_Family on platforms that
3725         require it.
3726
3727         * gen-soccon.c:
3728         Move common code out of GNAT.Sockets.Thin implementations and into
3729         Thin_Common.
3730         (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
3731         this constant to 0 (not -1) because we use it to initialize an
3732         unsigned_char value.
3733         Align values for numeric constants only.
3734         Handle the case of systems that do not support AF_INET6.
3735         New constant SIZEOF_fd_set
3736         New flag Has_Sockaddr_Len
3737         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3738
3739         * gsocket.h: New flag Has_Sockaddr_Len
3740         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3741
3742 2008-05-20  Santiago Uruena  <uruena@adacore.com>
3743
3744         * i-cobol.ads: Interfaces.COBOL should be preelaborate.
3745
3746 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
3747
3748         * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
3749         the underlying issue with malloc/free has been fixed. Remove associated
3750         comments.
3751         Minor reformatting.
3752         Related to PR ada/24533
3753
3754 2008-05-20  Robert Dewar  <dewar@adacore.com>
3755
3756         * ali.adb: Correct casing of ASCII.NUL
3757
3758         * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
3759         properly.
3760
3761 2008-05-20  Robert Dewar  <dewar@adacore.com>
3762             Gary Dismukes  <dismukes@adacore.com>
3763
3764         * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
3765         overflow if result converted to wider integer type.
3766         (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
3767         discriminated types when discriminant checks are suppressed.
3768
3769 2008-05-20  Vincent Celier  <celier@adacore.com>
3770
3771         * cstand.adb (Print_Standard): Issue the correct Size clause for type
3772         Wide_Wide_Character.
3773
3774 2008-05-20  Tristan Gingold  <gingold@adacore.com>
3775
3776         * decl.c: Do not emit a variable for a object that has an address
3777         representation clause whose value is known at compile time.
3778         When a variable has an address clause whose value is known at compile
3779         time, refer to this variable by using directly the address instead of
3780         dereferencing a pointer.
3781
3782 2008-05-20  Robert Dewar  <dewar@adacore.com>
3783
3784         PR ada/30740
3785         * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
3786         subtypes, always False for non-modular types.
3787         Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
3788         entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
3789         for Shared_Storage package.
3790         (Is_RACW_Stub_Type): New entity flag.
3791
3792         * exp_ch4.adb
3793         (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
3794         case where we have a modular type with a non-binary modules.
3795         Comments reformattings.
3796
3797         * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
3798         all types.
3799
3800 2008-05-20  Javier Miranda  <miranda@adacore.com>
3801
3802         * exp_aggr.adb
3803         (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
3804         tests did not covered the case in which the type of the aggregate has
3805         no progenitors but some its parents has progenitors.
3806
3807 2008-05-20  Gary Dismukes  <dismukes@adacore.com>
3808             Hristian Kirtchev  <kirtchev@adacore.com>
3809
3810         * exp_ch3.adb
3811         (Expand_N_Object_Declaration): Correct the condition which triggers the
3812         generation of a call to Displace when initializing a class-wide object.
3813         (Build_Dcheck_Functions): Build discriminant-checking for null variants
3814         when Frontend_Layout_On_Target is true to ensure that they're available
3815         for calling when a record variant size function is built in Layout.
3816
3817 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3818
3819         * exp_ch5.adb (Expand_Assign_Record): Within an initialization
3820         procedure for a derived type retrieve the discriminant values from the
3821         parent using the corresponding discriminant.
3822         (Expand_N_Assignment_Statement): Skip generation of implicit
3823         if-statement associated with controlled types if we are
3824         compiling with restriction No_Finalization.
3825
3826 2008-05-20  Vincent Celier  <celier@adacore.com>
3827
3828         * prj.adb (Hash (Project_Id)): New function
3829         (Project_Empty): Add new component Interfaces_Defined
3830
3831         * prj.ads (Source_Data): New component Object_Linked
3832         (Language_Config): New components Object_Generated and Objects_Linked
3833         (Hash (Project_Id)): New function
3834         (Source_Data): New Boolean components In_Interfaces and
3835         Declared_In_Interfaces.
3836         (Project_Data): New Boolean component Interfaces_Defined
3837
3838         * prj-attr.adb:
3839         New project level attribute Object_Generated and Objects_Linked
3840         Add new project level attribute Interfaces
3841
3842         * prj-dect.adb: Use functions Present and No throughout
3843         (Parse_Variable_Declaration): If a string type is specified as a simple
3844         name and is not found in the current project, look for it also in the
3845         ancestors of the project.
3846
3847         * prj-makr.adb:
3848         Replace procedure Make with procedures Initialize, Process and Finalize
3849         to implement H414-023: process different directories with different
3850         patterns.
3851         Use functions Present and No throughout
3852
3853         * prj-makr.ads:
3854         Replace procedure Make with procedures Initialize, Process and Finalize
3855
3856         * prj-nmsc.adb
3857         (Add_Source): Set component Object_Exists and Object_Linked accordnig to
3858         the language configuration.
3859         (Process_Project_Level_Array_Attributes): Process new attributes
3860         Object_Generated and Object_Linked.
3861         (Report_No_Sources): New Boolean parameter Continuation, defaulted to
3862         False, to indicate that the erreor/warning is a continuation.
3863         (Check): Call Report_No_Sources with Contnuation = True after the first
3864         call.
3865         (Error_Msg): Process successively contnuation character and warning
3866         character.
3867         (Find_Explicit_Sources): Check that all declared sources have been found
3868         (Check_File): Indicate in hash table Source_Names when a declared source
3869         is found.
3870         (Check_File): Set Other_Part when found
3871         (Find_Explicit_Sources): In multi language mode, check if all exceptions
3872         to the naming scheme have been found. For Ada, report an error if an
3873         exception has not been found. Otherwise, disregard the exception.
3874         (Check_Interfaces): New procedure
3875         (Add_Source): When Other_Part is defined, set mutual pointers in spec
3876         and body.
3877         (Check): In multi-language mode, call Check_Interfaces
3878         (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
3879         for an excluded source.
3880         (Remove_Source): A source replacing a source in the interfaces is also
3881         in the interfaces.
3882
3883         * prj-pars.adb: Use function Present
3884
3885         * prj-part.adb: Use functions Present and No throughout
3886         (Parse_Single_Project): Set the parent project for child projects
3887         (Create_Virtual_Extending_Project): Register project with no qualifier
3888         (Parse_Single_Project): Allow an abstract project to be extend several
3889         times. Do not allow an abstract project to extend a non abstract
3890         project.
3891
3892         * prj-pp.adb: Use functions Present and No throughout
3893         (Print): Take into account the full associative array attribute
3894         declarations.
3895
3896         * prj-proc.adb: Use functions Present and No throughout
3897         (Expression): Call itself with the same From_Project_Node for the
3898         default value of an external reference.
3899
3900         * prj-strt.adb: Use functions Present and No throughout
3901         (Parse_Variable_Reference): If a variable is specified as a simple name
3902         and is not found in the current project, look for it also in the
3903         ancestors of the project.
3904
3905         * prj-tree.ads, prj-tree.adb (Present): New function
3906         (No): New function
3907         Use functions Present and No throughout
3908         (Parent_Project_Of): New function
3909         (Set_Parent_Project_Of): New procedure
3910
3911         * snames.ads, snames.adb:
3912         Add new standard names Object_Generated and Objects_Linked
3913
3914 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
3915
3916         * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
3917         and the derived type are of the same kind.
3918         (Expand_Call): Generate type conversions for actuals of
3919         record or array types when the parent and the derived types differ in
3920         size and/or packed status.
3921
3922 2008-05-20  Javier Miranda  <miranda@adacore.com>
3923             Ed Schonberg  <schonberg@adacore.com>
3924
3925         * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
3926         generating dispatch tables of locally defined tagged types statically.
3927         Remove implicit if-statement that is no longer required.
3928         (Expand_Dispatching_Call): If this is a call to an instance of the
3929         generic dispatching constructor, the type of the first argument may be
3930         a subtype of Tag, so always use the base type to recognize this case.
3931
3932 2008-05-20  Thomas Quinot  <quinot@adacore.com>
3933
3934         * exp_dist.adb
3935         (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
3936         and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
3937         assigning NULL into the result, to avoid a spurious warning.
3938         (Add_RACW_Features, case Same_Scope): Add assertion that designated type
3939         is not frozen.
3940         (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
3941         type.
3942         (Build_From_Any_Function, Build_To_Any_Function,
3943         Build_TypeCode_Function): For a type that has user-specified stream
3944         attributes, use an opaque sequence of octets as the representation.
3945
3946 2008-05-20  Kevin Pouget  <pouget@adacore.com>
3947
3948         * exp_smem.ads, exp_smem.adb: Construction of access and assign
3949         routines has been replaced by an instantiation of
3950         System.Shared_Storage.Shared_Var_Procs generic package, while expanding
3951         shared variable declaration.
3952         Calls to access and assign routines have been replaced by calls to
3953         Read/Write routines of System.Shared_Storage.Shared_Var_Procs
3954         instantiated package.
3955
3956         * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
3957         It identifies the new generic package added in s-shasto.
3958
3959         * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
3960         is instantiated for each shared passive variable. It provides
3961         supporting procedures called upon each read or write access by the
3962         expanded code.
3963
3964         * sem_attr.adb:
3965         For this runtime unit (always compiled in GNAT mode), we allow
3966         stream attributes references for limited types for the case where
3967         shared passive objects are implemented using stream attributes,
3968         which is the default in GNAT's persistent storage implementation.
3969
3970 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3971
3972         * freeze.adb
3973         (Freeze_Enumeration_Type): For a subtype that inherits a foreign
3974         convention from its base type, do not set the type to that of integer,
3975         because it may inherit a size clause.
3976         Warn on a size clause with a size different
3977         from that of Integer, if the type has convention C.
3978
3979 2008-05-20  Vincent Celier  <celier@adacore.com>
3980
3981         * gnatname.adb
3982         (Scan_Args): Rewrite to take into account new switch --and to separate
3983         arguments into sections.
3984         (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
3985         section, then Finalize.
3986
3987 2008-05-20  Tristan Gingold  <gingold@adacore.com>
3988
3989         * init.c: Enable stack probing on ppc-linux.
3990
3991         * tracebak.c: Add symbolic traceback for ppc-linux.
3992
3993         * system-linux-ppc.ads: Enable stack probing on ppc-linux.
3994
3995 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
3996
3997         * Makefile.in
3998         (common-tools): New rule, to avoid parallel build failure on gnat tools.
3999         Reenable parallel builds on this Makefile.
4000
4001         * Make-lang.in: Update dependencies.
4002
4003 2008-05-20  Robert Dewar  <dewar@adacore.com>
4004
4005         * opt.ads (Treat_Restrictions_As_Warnings): New switch
4006
4007         * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
4008         Treat_Restrictions_As_Warnings.
4009
4010         * switch-c.adb: Recognize new switch -gnatr
4011
4012         * usage.adb: Add line for -gnatr
4013
4014 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
4015
4016         * par-ch3.adb
4017         (P_Access_Definition): Change the error message when parsing "access
4018         all" in Ada 95 mode. The message no longer forces the user to recompile
4019         in 05 mode only to discover that anonymous access types are not allowed
4020         to have "all".
4021
4022 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
4023
4024         * par-ch9.adb
4025         (P_Protected): Update the error message on missing "-gnat05" switch when
4026         using interfaces in conjunction with protected types. Remove the
4027         incorrect error message associated with the presence of "private" after
4028         a "with".
4029
4030 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
4031
4032         * sem_aggr.adb: Update comments.
4033         Improve previous change for PR ada/17985
4034
4035 2008-05-20  Thomas Quinot  <quinot@adacore.com>
4036
4037         * sem_cat.adb
4038         (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
4039         the visible part of the spec of a remote types unit.
4040         (Validate_Remote_Access_Object_Type_Declaration):
4041         New local subprogram Is_Valid_Remote_Object_Type, replaces
4042         Is_Recursively_Limited_Private.
4043         (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
4044         non-controlling formals (and the return type, even though this is not
4045         explicit in the standard) must support external streaming.
4046         (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
4047         as above for of RAS types and RCI subprograms. (The return type is not
4048         checked yet).
4049         Update comments related to RACWs designating limited interfaces per
4050         ARG ruling on AI05-060.
4051
4052         * sem_util.ads, sem_util.adb
4053         (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
4054         Is_Remote_Call_Interface to identify RACW types in a stable and
4055         consistent way. We used to rely in this predicate on the privateness of
4056         the designated type and its ancestors, but depending on the currently
4057         visible private parts, this caused false negatives. We now uniformly
4058         rely on checks made at the point where the RACW type is declared.
4059         (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
4060
4061 2008-05-20  Javier Miranda  <miranda@adacore.com>
4062             Ed Schonberg  <schonberg@adacore.com>
4063             Hristian Kirtchev  <kirtchev@adacore.com>
4064
4065         * sem_ch3.adb
4066         (Analyze_Object_Declaration): Fix over-conservative condition
4067         restricting use of predefined assignment with tagged types that have
4068         convention CPP.
4069         (Analyze_Object_Declaration): Relax the check regarding deferred
4070         constants declared in scopes other than packages since they can be
4071         completed with pragma Import.
4072         Add missing escaping of all-caps word 'CPP' in error messages.
4073         (Build_Discriminated_Subtype): Do not inherit representation clauses
4074         from parent type if subtype already carries them, because they are
4075         inherited earlier during derivation and already include those that may
4076         come from a partial view.
4077
4078         * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
4079         Check the declarations of a subprogram body for proper deferred
4080         constant completion.
4081
4082         * sem_ch7.ads, sem_ch7.adb
4083         (Inspect_Deferred_Constant_Completion): Moved to sem_util.
4084
4085 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
4086             Thomas Quinot  <quinot@adacore.com>
4087
4088         * sem_ch4.adb
4089         (Try_Indexed_Call): Handle properly a construct of the form F(S) where
4090         F is a parameterless function that returns an array, and S is a subtype
4091         mark.
4092         (Analyze_Call): Insert dereference when the prefix is a parameterless
4093         function that returns an access to subprogram and the call has
4094         parameters.
4095         Reject a non-overloaded call whose name resolves to denote
4096         a primitive operation of the stub type generated to support a remote
4097         access-to-class-wide type.
4098
4099 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
4100
4101         * sem_ch8.adb
4102         (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
4103         when there is a use clause for the same entity in the context.
4104         (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
4105         created for a stream attribute of an abstract type or interface type.
4106
4107 2008-05-20  Thomas Quinot  <quinot@adacore.com>
4108
4109         * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
4110         subprogram.
4111
4112         * sem_type.adb
4113         (Add_One_Interp): Ignore any interpretation that is a primitive
4114         operation of an RACW stub type (these primitives are only executed
4115         through dispatching, never through static calls).
4116         (Collect_Interps): When only one interpretation has been found, set N's
4117         Entity and Etype to that interpretation, otherwise Entity and Etype may
4118         still refer to an interpretation that was ignored by Add_One_Interp,
4119         in which case would end up with being marked as not overloaded but with
4120         an Entity attribute not pointing to its (unique) correct interpretation.
4121
4122 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
4123
4124         * sem_eval.adb
4125         (Eval_Slice): Warn when a slice whose discrete range is a subtype name
4126         denotes the whole array of its prefix.
4127
4128 2008-05-20  Robert Dewar  <dewar@adacore.com>
4129
4130         * sem_res.adb (Resolve_Op_Not): Warn on double negation
4131
4132 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
4133
4134         * sprint.adb
4135         (Print_Itype): Do not modify the sloc of the component type of a
4136         (packed) array itype, because it is an unrelated type whose source
4137         location is independent of the point of creation of the itype itself.
4138
4139 2008-05-20  Thomas Quinot  <quinot@adacore.com>
4140
4141         * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
4142         Append.
4143
4144 2008-05-20  Robert Dewar  <dewar@adacore.com>
4145             Vincent Celier  <celier@adacore.com>
4146
4147         * vms_data.ads: Add entry for -gnatr
4148         Put GNAT SYNC section in proper alpha order
4149         Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
4150
4151         * gnat_ugn.texi: Add documentation for new gnatname switch --and
4152         Update the style checks section
4153         Add documentation of -gnatr
4154         Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
4155         subsection the explanation how compiler checks should be disabled for
4156         gnatcheck.
4157         Update the list of Ada 95 reserved words used by in the project language
4158         Add documentation for project qualifiers.
4159         Document that abstract projects may be extended by different projects in
4160         the same project tree.
4161         Add documentation for gnatmake switch -d
4162
4163         * ug_words: Add -gnatyy VMS equivalence string.
4164         Add entry for -gnatr
4165
4166 2008-05-20  Bob Duff  <duff@adacore.com>
4167
4168         * a-rttiev.adb
4169         (Set_Handler): Remove code from both of these that implements
4170         RM-D.15(15/2), because it causes a race condition and potential
4171         deadlock.
4172         (Process_Queued_Events): Add comment explaining "exception when others
4173         => null". Add clarifying ".all", even though implicit .all is legal
4174         here.
4175
4176 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
4177
4178         * s-winext.ads: Replace representation clause by pragma Pack. Gives
4179         equivalent representation, but has the advantage of allowing
4180         compilation of this file under 64 bits platforms.
4181
4182         * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
4183
4184         * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
4185
4186         * adaint.c:
4187         Don't define dummy implementation of convert_addresses on ppc-linux.
4188
4189 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
4190
4191         * exp_ch7.adb
4192         (Expand_Ctrl_Function_Call): Do not attach result to finalization list
4193         if expression is aggregate component.
4194
4195 2008-05-20  Robert Dewar  <dewar@adacore.com>
4196
4197         * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
4198         sem_ch12.adb: Update comments. Minor reformatting.
4199
4200         * exp_ch2.adb: Typo
4201
4202         * s-unstyp.ads: Fixed some typos in comments.
4203
4204 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
4205
4206         * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
4207         type/constant.
4208
4209         * g-socthi-vxworks.ads: Update to latest socket changes.
4210
4211         * a-caldel-vms.adb: Resync with a-caldel spec.
4212
4213         * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
4214         Update comments.
4215
4216 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
4217
4218         * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
4219         for dummy types pointed to by the converted pointer types.
4220
4221 2008-05-15  Eric Botcazou  <ebotcazou@adacore.com>
4222
4223         * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
4224         of records and unions.
4225         (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
4226
4227 2008-05-14  Samuel Tardieu  <sam@rfc1149.net>
4228             Robert Dewar <dewar@adacore.com>
4229
4230         * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
4231         restrictions to the prefix of 'Old.
4232         * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
4233         * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
4234         variables.
4235
4236 2008-05-13  Eric Botcazou  <ebotcazou@adacore.com>
4237
4238         PR ada/24880
4239         PR ada/26635
4240         * utils.c (convert) <INTEGER_TYPE>: When converting an additive
4241         expression to an integral type with lower precision, use NOP_EXPR
4242         directly in a couple of special cases.
4243
4244 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
4245             Ed Schonberg <schonberg@adacore.com>
4246
4247         * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
4248         constraint expressions.
4249
4250 2008-05-12  Tomas Bily  <tbily@suse.cz>
4251
4252         * utils2.c (known_alignment, contains_save_expr_p)
4253         (gnat_mark_addressable): Use CASE_CONVERT.
4254         * decl.c (annotate_value): Likewise.
4255         * trans.c (maybe_stabilize_reference): Likewise.
4256         * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
4257         * utils.c (rest_of_record_type_compilation): Likewise.
4258         * trans.c (protect_multiple_eval, Attribute_to_gnu)
4259         (protect_multiple_eval): Likewise.
4260
4261 2008-05-08  Andreas Schwab  <schwab@suse.de>
4262
4263         * utils.c (handle_pure_attribute, init_gigi_decls): Rename
4264         DECL_IS_PURE to DECL_PURE_P.
4265
4266 2008-05-05  Eric Botcazou  <ebotcazou@adacore.com>
4267
4268         * decl.c (maybe_pad_type): Add ??? comment.
4269
4270 2008-05-03  Eric Botcazou  <ebotcazou@adacore.com>
4271
4272         * decl.c (components_to_record): Zero the alignment of the qualified
4273         union built for the variant part upon creating it.
4274
4275 2008-05-03  Eric Botcazou  <ebotcazou@adacore.com>
4276
4277         * decl.c (maybe_pad_type): Try to get a form of the type with integral
4278         mode even if the alignment is not a factor of the original size.  But
4279         make sure to create the inner field with the original size.  Reorder.
4280         * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
4281         record as always addressable.
4282         * utils.c (convert): Deal specially with conversions between original
4283         and packable versions of a record type.
4284         * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
4285         recognizing an assignment between padded objects.
4286
4287 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
4288
4289         * decl.c (make_packable_type): Resize the last component to its RM size
4290         only if it is of an aggregate type.
4291         * trans.c (call_to_gnu): Fix nit in comment.
4292         (gnat_to_gnu): Likewise.
4293
4294 2008-04-30  Samuel Tardieu  <sam@rfc1149.net>
4295
4296         * Makefile.in: Adapt sh4-linux target.
4297
4298 2008-04-29  Ed Schonberg  <schonberg@adacore.com>
4299
4300         PR ada/35792
4301         * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
4302         tagged type by an untagged protected or task type.
4303
4304 2008-04-28  Eric Botcazou  <ebotcazou@adacore.com>
4305             Tristan Gingold  <gingold@adacore.com>
4306
4307         PR ada/36007
4308         * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
4309         of aliased objects with an unconstrained nominal subtype.
4310         Cap the promotion to the effective alignment of the word mode.
4311
4312 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4313
4314         * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
4315         (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
4316         Use '&&' instead of ';'.
4317
4318 2008-04-24  Olivier Hainque  <hainque@adacore.com>
4319
4320         * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
4321         doesn't require signed arithmetic anymore.
4322
4323 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
4324
4325         * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
4326         (call_to_gnu): Don't set TREE_INVARIANT.
4327         * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
4328
4329 2008-04-22  Joel Sherrill <joel.sherrill@oarcorp.com>
4330
4331         * s-osinte-rtems.adb: Add sigalstack function.
4332         * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
4333         function. Add Alternate_Stack and Alternate_Stack_Size.
4334         Add missing process_shared field to pthread_condattr_t
4335         and change ss_low_priority to int from timespec.
4336
4337 2008-04-22  Samuel Tardieu  <sam@rfc1149.net>
4338
4339         * i-forbla.adb: Link against -llapack and -lblas by default
4340         instead of the private -lgnalasup.
4341
4342 2008-04-21  Olivier Hainque  <hainque@adacore.com>
4343
4344         Access to most C builtins from Ada
4345         * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
4346         (handle_pure_attribute, handle_novops_attribute,
4347         handle_nonnull_attribute, handle_sentinel_attribute,
4348         handle_noreturn_attribute, handle_malloc_attribute,
4349         handle_type_generic_attribute): New attribute handlers, from C fe.
4350         (gnat_internal_attribute_table): Map the new handlers.
4351         (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
4352         (init_gigi_decls): ... here.
4353         (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
4354         Move to a section dedicated to builtins processing.
4355         (build_void_list_node, builtin_type_for_size): New functions.
4356         (def_fn_type, get_nonnull_operand): Likewise.
4357         (install_builtin_elementary_type, install_builtin_function_types,
4358         install_builtin_attributes): Likewise.
4359         (fake_attribute_handler): Fake handler for attributes we don't
4360         support in Ada.
4361         (def_builtin_1): New function, worker for DEF_BUILTIN.
4362         (install_builtin_functions): New function.
4363         (gnat_install_builtins): Move to the builtins processing section.
4364         Now calling the newly introduced installers.
4365
4366 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
4367
4368         * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
4369         constant objects, but not exceptions.
4370         * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
4371         compatibility test.
4372         * utils.c (create_var_decl_1): Likewise.
4373         * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
4374         the type when copying to padded object and the source is a constructor.
4375
4376 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4377
4378         * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
4379         alignment, reset it to zero if it would end up not being greater
4380         than that of the type.
4381
4382 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4383
4384         * decl.c (maybe_pad_type): Only generate the XVS parallel type if
4385         the padded type has a variable size.
4386
4387 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4388
4389         * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
4390         target pointer mechanism as soon as the size is not constant.
4391
4392 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4393
4394         * gigi.h (create_var_decl_1): Declare.
4395         (create_var_decl): Turn into a macro invoking create_var_decl_1.
4396         (create_true_var_decl): Likewise.
4397         * utils.c (create_var_decl_1): Make global and reorder parameters.
4398         (create_var_decl): Delete.
4399         (create_true_var_decl): Likewise.
4400
4401 2008-04-17  Eric Botcazou  <ebotcazou@adacore.com>
4402
4403         * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
4404         objects by default.
4405         * fe.h (Debug_Flag_Dot_A): Delete.
4406         * debug.adb (-gnatd.a): Update documentation.
4407
4408 2008-04-17  Samuel Tardieu  <sam@rfc1149.net>
4409
4410         * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
4411         "not null" parameter.
4412
4413 2008-04-17  Samuel Tardieu  <sam@rfc1149.net>
4414
4415         * g-socket.adb: Add a message "IPv6 not supported" to the
4416         Socket_Error exception.
4417
4418 2008-04-16  Samuel Tardieu  <sam@rfc1149.net>
4419
4420         PR ada/29015
4421         * sem_ch12.adb (Instantiate_Type): Check whether the full view of
4422         the type is known instead of the underlying type.
4423
4424 2008-04-15  Ed Schonberg  <schonberg@adacore.com>
4425
4426         PR ada/22387
4427         * exp_ch5.adb (Expand_Assign_Record): Within an initialization
4428         procedure for a derived type retrieve the discriminant values from
4429         the parent using the corresponding discriminant.
4430
4431 2008-04-15  Samuel Tardieu  <sam@rfc1149.net>
4432             Gary Dismukes  <dismukes@adacore.com>
4433
4434         PR ada/28733
4435         * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
4436         which is not an entity (and hence not a package).
4437         (End_Use_Package): Ditto.
4438
4439 2008-04-15  Ed Schonberg  <schonberg@adacore.com>
4440
4441         PR ada/16086
4442         * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
4443         protected operation that matches the signature, not only an entry, a
4444         regular subprogram or a literal.
4445
4446 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4447
4448         * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
4449         * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
4450         if a size or alignment is specified.  Do not take into account
4451         alignment promotions for the computation of the object's size.
4452         <type>: Call maybe_pad_type only if a size or alignment is specified.
4453         (maybe_pad_type): Really reuse the RM_Size of the original type if
4454         requested.
4455         * trans.c (Attribute_to_gnu): Fix a couple of nits.
4456         * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
4457         statements.  Use the padded view of the type when copying between
4458         padded objects of the same underlying type.
4459
4460 2008-04-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4461
4462         * vms_data.ads: Fix typo in constant.
4463         * gen-soccon.c: Fix typo in error string.
4464         * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
4465         Fix typos.
4466         * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
4467         bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
4468         erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
4469         exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
4470         exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
4471         g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
4472         mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
4473         s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
4474         s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
4475         sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
4476         sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
4477         sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
4478         sinfo.ads: Fix typos in comments.
4479
4480 2008-04-14  Robert Dewar  <dewar@adacore.com>
4481
4482         * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
4483         to every non-object and change error message.
4484
4485 2008-04-14  Robert Dewar  <dewar@adacore.com>
4486
4487         * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
4488         * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
4489         directly.
4490
4491 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4492
4493         PR ada/18680
4494         * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
4495         apply pragma Linker_Section on type.
4496
4497 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4498
4499         PR ada/16098
4500         * sem_prag.adb (Error_Pragma_Ref): New.
4501         (Process_Convention): Specialized message for non-local
4502         subprogram renaming. Detect the problem in homonyms as well.
4503
4504 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4505
4506         PR ada/15915
4507         * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
4508         * sem_ch12.adb (Instantiate_Object): Use it.
4509         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
4510         storage pool denotes a variable as per RM 13.11(15).
4511
4512 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4513
4514         * sem_util.ads, sem_util.adb (In_Subprogram): New function.
4515         * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
4516
4517 2008-04-14  Rolf Ebert  <rolf.ebert.gcc@gmx.de>
4518
4519         PR ada/20822
4520         * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
4521         line endings even on non-Unix platforms.
4522
4523 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4524
4525         PR ada/35050
4526         * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
4527         renaming information.
4528
4529 2008-04-13  Samuel Tardieu  <sam@rfc1149.net>
4530
4531         PR ada/17985
4532         * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
4533         itself.
4534
4535 2008-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4536
4537         * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
4538         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
4539         snames.ads, sprint.adb, stand.ads, stringt.ads,
4540         styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
4541         switch.ads, sysdep.c, table.adb, table.ads,
4542         targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
4543         trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
4544         uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
4545         vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
4546         widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
4547         xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
4548         Fix comment typos.
4549
4550         * sem_ch10.adb, sem_ch10.ads,
4551         sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
4552         sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
4553         sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
4554         sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
4555         sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
4556         sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
4557         sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
4558         sem_warn.ads: Fix comment typos.
4559
4560         * s-secsta.adb, s-sequio.ads, s-shasto.ads,
4561         s-soflin.ads, s-stalib.ads, s-stausa.adb,
4562         s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
4563         s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
4564         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
4565         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
4566         s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
4567         s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
4568         s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
4569         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
4570         s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
4571         s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
4572         s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
4573         s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
4574         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
4575         scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
4576         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
4577         sem_cat.adb, sem_cat.ads: Fix comment typos.
4578
4579 2008-04-12  Joel Sherrill  <joel@oarcorp.com>
4580
4581         PR ada/35825
4582         * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
4583
4584 2008-04-12  Arnaud Charlet  <charlet@adacore.com>
4585
4586         * s-linux-hppa.ads: Fix syntax errors.
4587
4588 2008-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4589
4590         * gnat_ugn.texi: Fix typos.
4591         * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
4592         restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
4593         s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
4594         s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
4595         s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
4596         s-finimp.adb, s-finroo.ads, s-fishfl.ads,
4597         s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
4598         s-hibaen.ads, s-htable.ads, s-imgcha.adb,
4599         s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
4600         s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
4601         s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
4602         s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
4603         s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
4604         s-osinte-darwin.ads, s-osinte-freebsd.ads,
4605         s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
4606         s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
4607         s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
4608         s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
4609         s-parame-hpux.ads, s-parame-vms-alpha.ads,
4610         s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
4611         s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
4612         s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
4613         s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
4614         s-rident.ads: Fix comment typos.
4615
4616 2008-04-09  Samuel Tardieu  <sam@rfc1149.net>
4617
4618         PR ada/28305
4619         * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
4620         environment if generic instance is a top-level one.
4621
4622 2008-04-09  Doug Rupp  <rupp@adacore.com>
4623
4624         * decl.c (validate_size): Set minimum size for fat pointers same as
4625         access types. Code clean ups.
4626
4627         * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
4628         (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
4629
4630         * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
4631
4632         * s-crtl.ads (malloc32) New function, alias for malloc
4633         (realloc32) New function, alias for realloc
4634
4635         * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
4636
4637         * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
4638         allocator size is 32 and default pointer size is 64.
4639         (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
4640         lhs type if smaller, whatever the modes.
4641
4642         * gigi.h (malloc32_decl): New macro definition
4643
4644         * utils.c (init_gigi_decls): New malloc32_decl
4645         Various code clean ups.
4646
4647         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
4648         Task_Address vice System.Address.
4649
4650         * s-taspri-vms.ads: Import System.Aux_DEC
4651         (Task_Address): New subtype of System.Aux_DEC.Short_Address
4652         (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
4653
4654         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
4655         Task_Address vice System.Address.
4656
4657         * s-inmaop-vms.adb: Import System.Task_Primitives
4658         (To_Address): Unchecked convert to Task_Address vice System.Address
4659
4660         * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
4661         expires now.
4662         (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
4663         (To_Address) Unchecked convert to Task_Address vice System.Address
4664
4665         * s-tpopde-vms.adb: Remove unnecessary warning pragmas
4666
4667         * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
4668
4669 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4670
4671         * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
4672         (fdesc_type_node): Define.
4673         (null_fdesc_node): Likewise.
4674         * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
4675         uses descriptors for vtables and the type comes from a dispatch table,
4676         return the descriptor type.
4677         * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
4678         uses descriptors for vtables and the type comes from a dispatch table,
4679         build a descriptor in the static case and copy the existing one in the
4680         non-static case.
4681         (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
4682         the type is a pointer-to-subprogram coming from a dispatch table,
4683         return the null descriptor.
4684         <N_Unchecked_Type_Conversion>: If the target uses descriptors for
4685         vtables, the source type is the descriptor type and the target type
4686         is a pointer type, first build the pointer.
4687         * utils.c (init_gigi_decls): If the target uses descriptors for vtables
4688         build the descriptor type and the null descriptor.
4689
4690 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4691
4692         * decl.c (prepend_attributes): Fix typo.
4693         * trans.c (Pragma_to_gnu): Likewise.
4694         * utils.c (gnat_genericize): Likewise.
4695
4696 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4697             Richard Kenner  <kenner@adacore.com>
4698
4699         * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
4700         * decl.c (gnat_to_gnu_entity): Adjust for above change.
4701         <E_Record_Type>: Try to get a better form of the component for
4702         packing, even if it has an integral mode.
4703         <E_Record_Subtype>: Likewise.
4704         * trans.c (gnat_to_gnu): Do not require BLKmode for the special
4705         exception suppressing the final conversion between record types.
4706
4707 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4708
4709         * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
4710         alignment for space, promote the alignment of non-scalar variables with
4711         no size and alignment.
4712         * gigi.h (gnat_types_compatible_p): Declare.
4713         * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
4714         * trans.c (gnat_to_gnu): Revert revision 129339 change.  Minor cleanup.
4715         * utils.c (gnat_types_compatible_p) : New predicate.
4716         (convert): Use it throughout to test for cases where a mere view
4717         conversion is sufficient.
4718         * utils2.c (build_binary_op): Minor tweaks.
4719         (build_unary_op): Likewise.
4720
4721 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4722
4723         * decl.c (adjust_packed): Expand comment.
4724
4725 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
4726
4727         * s-tasuti.ads: Use Task_Address instead of System.Address.
4728
4729         * makeutl.adb (Path_Or_File_Name): New function
4730
4731         * nlists.ads, itypes.ads: Update comments.
4732
4733         * s-crtl.ads (malloc32, realloc32): New functions.
4734
4735         * s-auxdec.ads (Short_Address_Size): New constant.
4736
4737         * a-taside.adb, s-tasdeb.adb: Use Task_Address.
4738
4739         * s-ststop.ads, s-ststop.adb: New file.
4740
4741         * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
4742         Minor reformatting.
4743
4744 2008-04-08  Pascal Obry  <obry@adacore.com>
4745
4746         * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
4747         (Stop_Bits_Number): New type.
4748         (Parity_Check): Likewise.
4749         (Set): Add parameter to set the number of stop bits and
4750         the parity. Parameter timeout is now a duration instead
4751         of a plain integer.
4752
4753         * g-sercom-linux.adb:
4754         Implement the stop bits and parity support for GNU/Linux.
4755         Fix handling of timeout, it must be given in tenth of seconds.
4756
4757         * g-sercom-mingw.adb:
4758         Implement the stop bits and parity support for Windows.
4759         Use new s-win32.ads unit instead of declaring Win32 services
4760         directly into this body.
4761         Update handling of timeout as now a duration.
4762
4763         * s-win32.ads, s-winext.ads: New files.
4764
4765 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4766             Arnaud Charlet  <charlet@adacore.com>
4767
4768         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
4769
4770         s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
4771         s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
4772
4773         * s-osinte-lynxos-3.ads,
4774         (Alternate_Stack): Remove when not needed. Simplify declaration
4775         otherwise.
4776         (Alternate_Stack_Size): New constant.
4777
4778         s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
4779         'Unrestricted_Access.
4780
4781         * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
4782         s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
4783         s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
4784         s-osinte-solaris.ads, s-osinte-vms.ads
4785         (SA_ONSTACK): New constant.
4786         (stack_t): New record type.
4787         (sigaltstack): New imported function.
4788         (Alternate_Stack): New imported variable.
4789         (Alternate_Stack_Size): New constant.
4790
4791         * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
4792
4793         * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
4794         s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
4795         s-taspri-vms.ads (Task_Address): New subtype of System.Address
4796         (Task_Address_Size): New constant size of System.Address
4797         (Alternate_Stack_Size): New constant.
4798
4799         * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
4800         (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
4801         Establish the alternate stack if the platform makes use of n alternate
4802         signal stack for stack overflows.
4803         (Create_Task): Take into account the alternate stack in the stack size.
4804         (Initialize): Save the address of the alternate stack into the ATCB for
4805         the environment task.
4806         (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
4807
4808         * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
4809
4810         * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
4811
4812         * s-intman-posix.adb:
4813         (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
4814         alternate signal stack for stack overflows.
4815
4816         * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
4817         x86-64, adjust the saved value of the stack pointer if the signal was
4818         raised by a stack checking probe.
4819         (HP-UX section): Use global __gnat_alternate_stack as signal handler
4820         stack and only for SIGSEGV.
4821         (Linux section): Likewise on x86 and x86-64.
4822         [VxWorks section]
4823         (__gnat_map_signal): Now static.
4824         (__gnat_error_handler): Not static any more.
4825         (__gnat_adjust_context_for_raise): New function. Signal context
4826         adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
4827         propagation circuitry.
4828         (__gnat_error_handler): Second argument of a sigaction handler is a
4829         pointer, not an int, and is unused.
4830         Adjust signal context before mapping to exception.
4831         Install signal handlers for LynxOS case.
4832
4833         * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
4834         (Task_Id): Set size to Task_Address_Size
4835         (To_Task_id): Unchecked convert from Task_Address vice System.Address
4836         (To_Address): Unchecked convert to Task_Address vice System.Address
4837
4838         * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
4839         address into the ATCB if the platform makes use of an alternate signal
4840         stack for stack overflows.
4841         (Free_Task): Add call to Finalize_Attributes_Link.
4842         Add argument Relative_Deadline to pass the value specified for
4843         the task. This is not yet used for any target.
4844
4845         * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
4846         the value specified for the task.
4847
4848 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
4849
4850         (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
4851         (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
4852         s-vxwext-rtp.adb): New files.
4853
4854         * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
4855         Minor updates to accomodate changes above.
4856
4857 2008-04-08  Pascal Obry  <obry@adacore.com>
4858
4859         * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
4860         s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
4861         Use new s-win32.ads unit instead of declaration
4862         from s-osinte-mingw.ads.
4863
4864         * s-osinte-mingw.ads:
4865         Move all non tasking based interface to s-win32.ads.
4866
4867         * s-osprim-mingw.adb:
4868         Remove duplicated declarations and use s-win32.ads
4869         unit instead.
4870
4871 2008-04-08  Vincent Celier  <celier@adacore.com>
4872             Arnaud Charlet  <charlet@adacore.com>
4873
4874         * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
4875         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
4876         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
4877         mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
4878         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
4879
4880         * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
4881         mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
4882         mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
4883         mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
4884         mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
4885         mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
4886         mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
4887         mlib-tgt-specific-mingw.adb: New names.
4888
4889         * Makefile.in:
4890         On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
4891         Get rid of gnatbl.
4892         (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
4893         Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
4894         Minor updates for VMS
4895
4896         * gnatbl.c: Removed.
4897
4898 2008-04-08  Thomas Quinot  <quinot@adacore.com>
4899
4900         * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
4901         g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
4902         gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
4903         a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
4904         s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
4905         ASCII.NUL throughout.
4906
4907 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
4908             Matthew Heaney  <heaney@adacore.com>
4909
4910         * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
4911         renaming.
4912
4913         * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
4914         a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
4915         to convention for non-RM specs.
4916         Add descriptive header, and documented each operation
4917         document each operation
4918
4919 2008-04-08  Robert Dewar  <dewar@adacore.com>
4920             Bob Duff  <duff@adacore.com>
4921             Gary Dismukes  <dismukes@adacore.com>
4922             Ed Schonberg  <schonberg@adacore.com>
4923
4924         * alloc.ads: Add entries for Obsolescent_Warnings table
4925
4926         * einfo.ads, einfo.adb: Minor reformatting.
4927         (Is_Discriminal): New subprogram.
4928         (Is_Prival): New subprogram.
4929         (Is_Protected_Component): New subprogram.
4930         (Is_Protected_Private): Removed.
4931         (Object_Ref, Set_Object_Ref): Removed.
4932         (Prival, Set_Prival): Change assertion.
4933         (Privals_Chain, Set_Privals_Chain): Removed.
4934         (Prival_Link, Set_Prival_Link): New subprogram.
4935         (Protected_Operation, Set_Protected_Operation): Removed.
4936         (Protection_Object, Set_Protection_Object): New subprogram.
4937         (Write_Field17_Name): Remove case for Object_Ref.
4938         (Write_Field20_Name): Add case for Prival_Link.
4939         (Write_Field22_Name): Remove case for Protected_Operation,
4940         Privals_Chain.
4941         Add case for Protection_Object.
4942         (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
4943         so clients
4944         (Overlays_Constant): New flag
4945         (Is_Constant_Object): New predicate
4946         (Is_Standard_Character_Type): New predicate
4947         (Optimize_Alignment_Space): New flag
4948         (Optimize_Alignment_Time): New flag
4949         (Has_Postconditions): New flag
4950         (Obsolescent_Warrning): Field removed
4951         (Spec_PPC_List): New field
4952         (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
4953         subprograms to get and set the relative deadline associated to a task.
4954
4955         * exp_attr.adb (May_Be_External_Call): Account for the case where the
4956         Access attribute is part of a named parameter association.
4957         (Expand_Access_To_Protected_Op): Test for the attribute occurring
4958         within an init proc and use that directly as the scope rather than
4959         traversing up to the protected operation's enclosing scope. Only apply
4960         assertion on Is_Open_Scopes in the case the scope traversal is done.
4961         For the init proc case use the address of the first formal (_init) as
4962         the protected object reference.
4963         Implement Invalid_Value attribute
4964         (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
4965         contents of the dispatch table there is no need to duplicate the
4966         itypes associated with record types (i.e. the implicit full view
4967         of private types).
4968         Implement Enum_Val attribute
4969         (Expand_N_Attribute_Reference, case Old): Properly handle appearence
4970         within _Postconditions procedure
4971         (Expand_N_Attribute_Reference, case Result): Implement new attribute
4972
4973         * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
4974         a return statement calls a function that is not available in
4975         configurable runtime.
4976         (Analyze_If_Statement): don't optimize simple True/False cases in -O0
4977         (Expand_Non_Function_Return): Generate call to _Postconditions proc
4978         (Expand_Simple_Function_Return): Ditto
4979
4980         * frontend.adb: Add call to Sem_Aux.Initialize
4981
4982         * sem_aux.ads, sem_aux.adb: New file.
4983
4984         * par-prag.adb: Add entries for pragmas Precondition/Postcondition
4985         Add new Pragma_Relative_Deadline.
4986         Add support for pragmas Check and Check_Policy
4987
4988         * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
4989         (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
4990         (Analyze_Attribute): In case of attributes 'Alignment and 'size add
4991         missing check because they are not allowed in CPP tagged types.
4992         Add Sure parameter to Note_Possible_Modification calls
4993         Add implementation of Invalid_Value attribute
4994         Implement new attribute Has_Tagged_Values
4995         Implement Enum_Val attribute
4996         (Analyze_Attribute, case Range): Set Name_Req True for prefix of
4997         generated attributes.
4998         (Analyze_Attribute, case Result): If prefix of the attribute is
4999         overloaded, it always resolves to the enclosing function.
5000         (Analyze_Attribute, case Result): Properly deal with analysis when
5001         Postconditions are not active.
5002         (Resolve_Attribute, case Result): Properly deal with appearence during
5003         preanalysis in spec.
5004         Add processing for attribute Result
5005
5006         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
5007         for operators.
5008         (Analyze_Subprogram_Body): Install private_with_clauses when the body
5009         acts as a spec.
5010         (Check_Inline_Pragma): recognize an inline pragma that appears within
5011         the subprogram body to which it applies.
5012         (Analyze_Function_Return): Check that type of the expression of a return
5013         statement in a function with a class-wide result is not declared at a
5014         deeper level than the function.
5015         (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
5016         (Verify_Overriding_Indicator): Handle properly subprogram bodies for
5017         user- defined operators.
5018         (Install_Formals): Moved to spec to allow use from Sem_Prag for
5019         analysis of precondition/postcondition pragmas.
5020         (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
5021         Last_Formal, along with lots of comments on what this is about
5022         (Analyze_Subprogram_Body): Fix case where we move entities from the
5023         spec to the body when there are no body entities (now possible with
5024         precondition and postcondition pragmas).
5025         (Process_PPCs): New procedure
5026         (Analyze_Subprogram_Body): Add call to Process_PPCs
5027
5028         * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
5029         clause.
5030         (Pop_Scope): Restore Check_Policy_List on scope exit
5031         (Push_Scope): Save Check_Policy_List on scope entry
5032         Change name In_Default_Expression      => In_Spec_Expression
5033         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5034         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
5035         (Analyze_Object_Renaming): Allow 'Reference as object
5036         (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
5037         (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
5038         of restriction identifier.
5039         Add Sure parameter to Note_Possible_Modication calls
5040
5041         * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
5042         Don't check for primitive operations when calling Rep_Item_Too_Late.
5043         (Process_Import_Or_Interface): Do not place flag on formal
5044         subprograms.
5045         (Analyze_Pragma, case Export): If the entity is a deferred constant,
5046         propagate information to full view, which is the one elaborated by the
5047         back-end.
5048         (Make_Inline): the pragma is effective if it applies to an internally
5049         generated subprogram declaration for a body that carries the pragma.
5050         (Analyze_Pragma, case Optimize_Alignment): Set new flag
5051         Optimize_Alignment_Local.
5052         (Analyze_PPC_In_Decl_Part): New procedure
5053         (Get_Pragma_Arg): Moved to outer level
5054         (Check_Precondition_Postcondition): Change to allow new visibility
5055         rules for package spec
5056         (Analyze_Pragma, case Check_Policy): Change placement rules to be
5057         same as pragma Suppress/Unsuppress.
5058         Change name In_Default_Expression      => In_Spec_Expression
5059         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5060         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
5061         (Check_Precondition_Postcondition): Do proper visibility preanalysis
5062         for the case of these pragmas appearing in the spec.
5063         (Check_Enabled): New function
5064         (Initialize): New procedure
5065         (Tree_Read): New procedure
5066         (Tree_Write): New procedure
5067         (Check_Precondition_Postcondition): New procedure
5068         Implement pragmas Check and Check_Policy
5069         Merge Assert processing with Check
5070
5071         * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
5072         New warning flag -gnatw.e
5073
5074         * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
5075         returning whether a task (or main procedure) has a pragma
5076         Relative_Deadline.
5077         (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
5078         (or main procedure) has a pragma Relative_Deadline.
5079         Add Next_Pragma field to N_Pragma node
5080         (PPC_Enabled): New flag
5081         (Next_Pragma): Now used for Pre/Postcondition processing
5082
5083         * snames.h, snames.ads, snames.adb: New standard name
5084         Inherit_Source_Path
5085         Add entry for 'Invalid_Value attribute
5086         Add entry for new attribute Has_Tagged_Values
5087         Add entry for Enum_Val attribute
5088         Add new standard names Aggregate, Configuration and Library.
5089         Add _Postconditions
5090         Add _Result
5091         Add Pragma_Precondition
5092         Add Pragma_Postcondition
5093         Add Attribute_Result
5094         New standard name Archive_Builder_Append_Option
5095         (Preset_Names): Add _relative_deadline and relative_deadline definitions
5096         There was also a missing non_preemptive_within_priorities.
5097         (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
5098         Relative_Deadline.
5099         Add support for pragmas Check and Check_Policy
5100
5101         * tree_gen.adb: Call Sem_Aux.Tree_Write
5102
5103         * tree_in.adb: Call Sem_Aux.Tree_Read
5104
5105         * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
5106         sequence
5107
5108         * exp_intr.adb (Expand_Source_Info): New Build_Location calling
5109         sequence
5110
5111         * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
5112         (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
5113         Relative_Deadline.
5114         (Expand_Pragma_Check): New procedure
5115
5116         * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
5117         buffer.
5118
5119         * sinfo.adb (PPC_Enabled): New flag
5120
5121 2008-04-08  Robert Dewar  <dewar@adacore.com>
5122             Gary Dismukes  <dismukes@adacore.com>
5123             Javier Miranda  <miranda@adacore.com>
5124             Ed Schonberg  <schonberg@adacore.com>
5125
5126         * fe.h: Remove global Optimize_Alignment flag, no longer used
5127
5128         * layout.adb: Test Optimize_Alignment flags rather than global switch
5129
5130         * lib.ads, lib.adb: New OA_Setting field in library record
5131
5132         * lib-load.adb: New OA_Setting field in library record
5133
5134         * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
5135         units mentioned in limited_with_ clauses in the ali file, with an
5136         'Y' marker.
5137         New Ox fields in U line
5138
5139         * opt.adb: New flag Optimize_Alignment_Local
5140         (Check_Policy_List[_Config]): New flags
5141
5142         * opt.ads (Invalid_Value_Used): New flag
5143         New switch Optimize_Alignment_Local
5144         (Warn_On_Parameter_Order): New flag
5145         (Check_Policy_List[_Config]): New flags
5146
5147         * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
5148         limited_with clauses.
5149         New data structures for Optimize_Alignment
5150
5151         * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
5152         New procedure
5153         (Check_Consistent_Optimize_Alignment): Rework for new structure
5154         (Check_Consistent_Restrictions): Fix incorrect error message
5155
5156         sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
5157         created class-wide type (to the Parent field of the specific type).
5158         (Install_Siblings): Handle properly private_with_clauses on subprogram
5159         bodies and on generic units.
5160         (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
5161         illegal limited_with_clause that names a non-existent package.
5162         (Check_Body_Required): Determine whether a unit named a limited_with
5163         clause needs a body.
5164         (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
5165         Capture Optimize_Alignment settings to set new OA_Setting field in
5166         library record.
5167         (Build_Limited_Views): Include task and protected type declarations.
5168
5169         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
5170         case of a possible constant redeclaration where the current object is
5171         an entry index constant.
5172         (Analyze_Object_Declaration): Generate an error in case of CPP
5173         class-wide object initialization.
5174         (Analyze_Object_Declaration): Add extra information on warnings for
5175         declaration of unconstrained objects.
5176         (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
5177         conflicts with the setting of Stored_Constraint in the case where the
5178         access type entity has already been created as an E_Incomplete_Type due
5179         to a limited with clause.
5180         Use new Is_Standard_Character_Type predicate
5181         (Analyze_Object_Declaration): Apply access_constant check only after
5182         expression has been resolved, given that it may be overloaded with
5183         several access types.
5184         (Constant_Redeclaration): Additional legality checks for deferred
5185         constant declarations tha involve anonymous access types and/or null
5186         exclusion indicators.
5187         (Analyze_Type_Declaration): Set Optimize_Alignment flags
5188         (Analyze_Subtype_Declaration): Ditto
5189         (Analyze_Object_Declaration): Ditto
5190         (Analyze_Object_Declaration): Don't count tasks in generics
5191         Change name In_Default_Expression      => In_Spec_Expression
5192         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5193         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
5194         (Process_Discriminants): Additional check for illegal use of default
5195         expressions in access discriminant specifications in a type that is not
5196         explicitly limited.
5197         (Check_Abstract_Overriding): If an inherited function dispaches on an
5198         access result, it must be overridden, even if the type is a null
5199         extension.
5200         (Derive_Subprogram): The formals of the derived subprogram have the
5201         names and defaults of the parent subprogram, even if the type is
5202         obtained from the actual subprogram.
5203         (Derive_Subprogram): In the presence of interfaces, a formal of an
5204         inherited operation has the derived type not only if it descends from
5205         the type of the formal of the parent operation, but also if it
5206         implements it. This is relevant for the renamings created for the
5207         primitive operations of the actual for a formal derived type.
5208         (Is_Progenitor): New predicate, to determine whether the type of a
5209         formal in the parent operation must be replaced by the derived type.
5210
5211         * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
5212         predicate recursive to handle components that have a user-defined
5213         Initialize procedure. Handle controlled derived types whose ancestor
5214         has a user-defined Initialize procedured.
5215         (Note_Possible_Modification): Add Sure parameter, generate warning if
5216         sure modification of constant
5217         Use new Is_Standard_Character_Type predicate
5218         (Find_Parameter_Type): when determining whether a protected operation
5219         implements an interface operation, retrieve the type of the formal from
5220         the entity when the formal is an access parameter or an
5221         anonymous-access-to-subprogram.
5222         Move Copy_Parameter_List to sem_util, for use when building stubbed
5223         subprogram bodies.
5224         (Has_Access_Values): Tagged types now return False
5225         (Within_HSS_Or_If): New procedure
5226         (Set_Optimize_Alignment_Flags): New procedure
5227         Change name In_Default_Expression      => In_Spec_Expression
5228         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5229         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
5230
5231 2008-04-08  Tristan Gingold  <gingold@adacore.com>
5232
5233         * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
5234
5235 2008-04-08  Tristan Gingold  <gingold@adacore.com>
5236
5237 PR ada/10768
5238
5239         * cuintp.c: Fix 16 bits issue for AVR.
5240         On AVR, integer is 16 bits, so it can't be used to do math with
5241         Base (=32768).
5242         So use long_integer instead.
5243
5244 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5245
5246         * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
5247         System.OS_Primitives.
5248         Change type of various constants, parameters and local variables from
5249         Time to representation type OS_Time.
5250         (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
5251         Remove the declaration of constant Mili_F from several routines. New
5252         body for internal package Conversions_Operations.
5253         (Time_Of): Add default parameters for several formals.
5254
5255         * a-caldel.adb: Minor reformatting
5256
5257         * a-calend.ads, a-calend.adb: New body for internal package
5258         Conversions_Operations.
5259         (Time_Of): Add default parameters for several formals.
5260
5261         * Makefile.rtl: Add a-ststop
5262         Add Ada.Calendar.Conversions to the list of runtime files.
5263         Add g-timsta
5264
5265         * a-calcon.adb, a-calcon.ads: New files.
5266
5267 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
5268             Tristan Gingold  <gingold@adacore.com>
5269
5270         * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
5271         (Install_Restricted_Handlers): New procedure
5272         which is a simplified version of Install_Handlers that does not store
5273         previously installed.
5274
5275         * s-interr-vxworks.adb: Fix ACATS cxc3001
5276         On VxWorks interrupts can't be detached.
5277         (Install_Restricted_Handlers): New procedure.
5278
5279         * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
5280         procedure.
5281
5282 2008-04-08  Olivier Hainque  <hainque@adacore.com>
5283
5284         * s-intman-vxworks.ads, s-intman-vxworks.adb
5285         (Map_And_Raise_Exception): Remove. Was an import of only part of the
5286         required services already implemented elsewhere.
5287         (Notify_Exception): Delete body, import __gnat_error_handler instead.
5288         (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
5289         argument passed to the handler, which we need for ZCX propagation
5290         purposes.
5291
5292 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5293
5294         * adaint.h, adaint.c (__gnat_current_time_string): New routine.
5295
5296         * g-timsta.adb, g-timsta.ads: New files.
5297
5298 2008-04-08  Robert Dewar  <dewar@adacore.com>
5299
5300         * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
5301         (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
5302         (Raise_Exception_Always): Fix documentation accordingly
5303
5304 2008-04-08  Robert Dewar  <dewar@adacore.com>
5305
5306         * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
5307         Stream_Convert)
5308
5309         * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
5310         FOnly
5311
5312 2008-04-08  Javier Miranda  <miranda@adacore.com>
5313             Robert Dewar  <dewar@adacore.com>
5314             Ed Schonberg  <schonberg@adacore.com>
5315
5316         * a-tags.adb (Register_Interface_Offset): New subprogram.
5317         (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
5318         (To_Predef_Prims_Table_Ptr): Removed.
5319         (Acc_Size): Removed.
5320         (To_Acc_Size): Removed.
5321         (Parent_Size): Modified to the call the subprogram returning the size of
5322         the parent by means of the new TSD component Size_Func.
5323
5324         * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
5325         (DT_Offset_To_Top_Offset): New constant value that is used to generate
5326         code referencing the Offset_To_Top component of the dispatch table's
5327         prologue.
5328         (Prim_Ptr): New declaration of access to procedure. Used to avoid the
5329         use of 'address to initialize dispatch table slots.
5330         (Size_Func): New component of the TSD. Used by the run-time to call the
5331         size primitive of the tagged type.
5332
5333         * checks.adb (Apply_Access_Check): Avoid check when accessing the
5334         Offset_To_Top component of a dispatch table.
5335         (Null_Exclusion_Static_Checks): If the non-null access type appears in a
5336         deferred constant declaration. do not add a null expression, to prevent
5337         spurious errors when full declaration is analyzed.
5338         (Apply_Discriminant_Check): If both discriminant constraints share a
5339         node which is not static but has no side effects, do not generate a
5340         check for that discriminant.
5341         (Generate_Index_Checks): Set Name_Req to true in call to duplicate
5342         subexpr, since the prefix of an attribute is a name.
5343
5344         * checks.ads: Fix nit in comment.
5345
5346         * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
5347         and body of predefined primitives in case of CPP tagged type
5348         derivations.
5349         (Freeze_Type): Deal properly with no storage pool case
5350         (Make_Predefined_Primitive_Specs): Generate specification of abstract
5351         primitive Deep_Adjust if a nonlimited interface is derived from a
5352         limited interface.
5353         (Build_Dcheck_Functions): Create discriminant-checking functions only
5354         for variants that have some component(s).
5355         (Build_Slice_Assignment): In expanded code for slice assignment, handle
5356         properly the case where the slice bounds extend to the last value of the
5357         underlying representation.
5358         (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
5359         (Is_Variable_Size_Record): An array component has a static size if
5360         index bounds are enumeration literals.
5361
5362         * exp_disp.adb (Make_DT): Use the first subtype to determine whether
5363         an external tag has been specified for the type.
5364         (Building_Static_DT): Add missing support for private types.
5365         (Make_DT): Add declaration of Parent_Typ to ensure consistent access
5366         to the entity associated with the parent of Typ. This is done to
5367         avoid wrong access when the parent is a private type.
5368         (Expand_Interface_Conversion): Improve error message when the
5369         configurable runtime has no support for dynamic interface conversion.
5370         (Expand_Interface_Thunk): Add missing support to interface types in
5371         configurable runtime.
5372         (Expand_Dispatching_Call): remove obsolete code.
5373         (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
5374         ensure that all subtypes and aggregates associated with dispatch
5375         tables have the attribute Is_Dispatch_Table_Entity set to true.
5376         (Register_Primitive): Rename one variable to improve code reading.
5377         Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
5378         of the pointer to the 'size primitive in the TSD.
5379
5380         * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
5381         (RE_Offset_To_Top_Ptr): New entity.
5382         (RE_Register_Interface_Offset): New entity.
5383         (RE_Set_Dynamic_Offset_To_Top): New entity.
5384         (RE_Set_Offset_To_Top): Removed entity.
5385         (RE_Prim_Ptr): New entity
5386         (RE_Size_Func): New entity
5387         (RE_Size_Ptr): New entity
5388         (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
5389         (Ada_Dispatching_Child): Define this new subrange.
5390         (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
5391          RE_Time_Span, and RE_Time_Span_Zero).
5392         (RE_Unit_Table): Add new required run-time calls
5393
5394         * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
5395         children.
5396
5397         * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
5398         (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
5399          initializes the Offset_To_Top component of a dispatch table.
5400         (Build_Predef_Prims): Removed.
5401         (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
5402          its actual code.
5403         (Build_Set_Size_Function): New subprogram.
5404
5405         * exp_ch13.adb: Do not generate storage variable for storage_size zero
5406         (Expand): Handle setting/restoring flag Inside_Freezing_Actions
5407
5408 2008-04-08  Robert Dewar  <dewar@adacore.com>
5409
5410         * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
5411         computing Fore when Exp > 0
5412
5413 2008-04-08  Robert Dewar  <dewar@adacore.com>
5414
5415         * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
5416
5417         * errout.adb: Remove Big_String_Ptr declarations (now in Types)
5418         Change name Is_Style_Msg to Is_Style_Or_Info_Msg
5419
5420         * fmap.adb: Remove Big_String declarations (now in Types)
5421         (No_Mapping_File): New Boolean global variable
5422         (Initialize): When mapping file cannot be read, set No_Mapping_File to
5423         False.
5424         (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
5425         tables were empty before adding entries, open the mapping file
5426         with Truncate = True, instead of delete/re-create.
5427
5428         * fname-sf.adb: Remove Big_String declarations (now in Types)
5429
5430         * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
5431         s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
5432         big pointer types
5433
5434         * table.ads: Add for Table_Ptr'Storage_Size use 0
5435
5436         * types.ads: Add Big_String declarations
5437         Add Size_Clause of zero for big pointer types
5438
5439 2008-04-08  Vincent Celier  <celier@adacore.com>
5440
5441         * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
5442         (Usage): Add line for switch --subdirs=
5443         Add new switch -eL, to follow symbolic links when processing project
5444         files.
5445
5446         * gnatcmd.adb: Process switches -eL and --subdirs=
5447         (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
5448         Program_Name to get proper tool names when AAMP_On_Target is set.
5449         (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
5450         AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
5451         Osint.Program_Name).
5452
5453         * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
5454         (Usage): Add lines for switches -eL and --subdirs=
5455
5456         * makeusg.adb: Add line for switch --subdirs=
5457
5458         * prj.ads:
5459         (Source_Data): New Boolean component Compiled, defaulted to True
5460         (Empty_File_Name: New global variable in private part, initialized in
5461         procedure Initialize.
5462         (Subdirs_Option): New constant string
5463         (Subdirs): New String_Ptr global variable
5464         (Language_Config): New component Include_Compatible_Languages
5465         (Project_Qualifier): New type for project qualifiers
5466         (Project_Data): New component Qualifier
5467         (Project_Configuration): New component Archive_Builder_Append_Option
5468
5469         * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
5470         another imported project indicate the name of this imported project.
5471         (Check_File): When a unit is in two project files, indicate the project
5472         names and the paths of the source files for each project.
5473         (Add_Source): Set Compiled to False if compiler driver is empty. Only
5474         set object, dependency and switches file names if Compiled is True.
5475         (Process_Compiler): Allow the empty string for value of attribute Driver
5476         (Get_Directories): When Subdirs is not null and Object_Dir is not
5477          specified, locate and create if necessary the actual object dir.
5478         (Locate_Directory): When Subdirs is not empty and Create is not the
5479         empty string, locate and create if necessary the actual directory
5480         as a subdirectory of directory Name.
5481         (Check_Library_Attributes.Check_Library): Allow a project where the only
5482         "sources" are header files of file based languages to be imported by
5483         library projects, in multi-language mode (gprbuild).
5484         (Check_Library_Attributes.Check_Library): In multi-language mode
5485         (gprbuild), allow a library project to import a project with no
5486         sources, even when this is not declared explicitly.
5487         (Check_If_Externally_Built): A virtual project extending an externally
5488         built project is also externally built.
5489         (Check_Library_Attributes): For a virtual project extending a library
5490         project, inherit the library directory.
5491         (Process_Project_Level_Array_Attributes): Process new attribute
5492         Inherit_Source_Path.
5493         For projects with specified qualifiers "standard", "library" or
5494         "abstract", check that the project conforms to the qualifier.
5495         (Process_Project_Level_Simple_Attributes): Process new attribute
5496          Archive_Builder_Append_Option.
5497
5498         * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
5499         (Normalize_Compiler_Switches): Only keep compiler switches that are
5500         passed to gnat1 by the gcc driver and that are stored in the ALI file
5501         by gnat1.
5502         Do not take into account switc -save-temps
5503
5504         * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
5505         gprmake is called with -eL.
5506         (Scan_Arg): Recognize switch -eL
5507         (Usage): Add line for switch -eL
5508
5509         * prj.adb (Initialize): Initialize Empty_File_Name
5510         (Project_Empty): New component Qualifier
5511
5512         * prj-attr.ads, prj-attr.adb: New project level attribute
5513         Inherit_Source_Path.
5514         New project level attribute Archive_Builder_Append_Option
5515
5516         * prj-dect.adb: Replace System.Strings by GNAT.Strings.
5517
5518         * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
5519         <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
5520         upward compatibility.
5521
5522         * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
5523         each Trying ..." on different lines.
5524         (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
5525         is "configuration" when not in configuration. Fail when in configuration
5526         when a specified qualifier is other than "configuration".
5527
5528         * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
5529         full associative array together.
5530         (Recursive_Process): Put the project qualifier in the project data
5531
5532         * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
5533         (Set_Project_Qualifier_Of): New procedure
5534
5535 2008-04-08  Robert Dewar  <dewar@adacore.com>
5536
5537         * errout.ads: Update comments for new handling of info: messages
5538
5539         * erroutc.adb (Matches): New procedure
5540         (Warning_Specifically_Suppressed): Modified to handle multiple * chars
5541         (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
5542          info messages as well as style messages.
5543
5544         * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
5545
5546         * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
5547         subprograms.
5548         (Check_A_Call): Special "info: " warnings now have ? in the text
5549         (Elab_Warning): Use info message in static case
5550
5551 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5552
5553         * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
5554         whether an array aggregate with static bounds and scalar components
5555         should be expanded into a static constant.
5556
5557 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
5558             Ed Schonberg  <schonberg@adacore.com>
5559             Robert Dewar  <dewar@adacore.com>
5560
5561         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
5562         Has_Stream_Attribute_ Definition when checking for available stream
5563         attributes on parameters of a limited type in Ada 2005. Necessary for
5564         proper recognition of visible stream attribute clauses.
5565         (Has_Stream_Attribute_Definition): If the type is derived from a
5566         private type, then use the derived type's underlying type for checking
5567         whether it has stream attributes.
5568         (Validate_Object_Declaration): The check for a user-defined Initialize
5569         procedure applies also to types with controlled components or a
5570         controlled ancestor.
5571         Reject an object declaration in a preelaborated unit if the type is a
5572         controlled type with an overriding Initialize procedure.
5573         (Validate_Remote_Access_To_Class_Wide_Type): Return without further
5574         checking when the parent of a dereference is a selected component and
5575         the name has not been analyzed.
5576
5577         * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
5578         prefixes that are invalid explicit dereferences of remote
5579         access-to-class-wide values, first checking whether the selected
5580         component is a prefixed form of call to a tagged operation.
5581         (Analyze_Call): Remove code that issues an error for limited function
5582         calls in illegal contexts, as we now support all of the contexts that
5583         were forbidden here.
5584         Allow a function call that returns a task.and appears as the
5585         prefix of a selected component.
5586         (Analyze_Reference): Give error message if we try to make a 'Reference
5587         for an object that is atomic/aliased without its type having the
5588         corresponding attribute.
5589         (Analyze_Call): Remove condition checking for attributes to allow
5590         calls to functions with inherently limited results as prefixes of
5591         attributes. Remove related comment about Class attributes.
5592         (Analyze_Selected_Component): If the prefix is a remote type, check
5593         whether this is a prefixed call before reporting an error.
5594         (Complete_Object_Operation): If the controlling formal is an access to
5595         variable reject an actual that is a constant or an access to one.
5596         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
5597         primitive operations from base type.
5598
5599         * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
5600         build-in-place
5601         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
5602         (Expand_N_Selected_Component): Test for prefix that is a build-in-place
5603         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
5604         (Expand_N_Slice): Test for prefix that is a build-in-place function call
5605         and call Make_Build_In_Place_Call_In_Anonymous_Context.
5606         (Analyze_Call): Remove code that issues an error for limited function
5607         calls in illegal contexts, as we now support all of the contexts that
5608         were forbidden here.
5609         New calling sequence for Get_Simple_Init_Val
5610         (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
5611         (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
5612
5613 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5614             Ed Schonberg  <schonberg@adacore.com>
5615             Robert Dewar  <dewar@adacore.com>
5616
5617         * exp_ch2.adb: Minor reformatting.
5618         (Expand_Entry_Index_Parameter): Set the type of the identifier.
5619         (Expand_Entry_Reference): Add call to Expand_Protected_Component.
5620         (Expand_Protected_Component): New routine.
5621         (Expand_Protected_Private): Removed.
5622         Add Sure parameter to Note_Possible_Modification calls
5623
5624         * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
5625         generated subprogram declaration must inherit the overriding indicator
5626         from the instantiation node.
5627         (Validate_Access_Type_Instance): If the designated type of the actual is
5628         a limited view, use the available view in all cases, not only if the
5629         type is an incomplete type.
5630         (Instantiate_Object):  Actual is illegal if the formal is null-excluding
5631         and the actual subtype does not exclude null.
5632         (Process_Default): Handle properly abstract formal subprograms.
5633         (Check_Formal_Package_Instance): Handle properly defaulted formal
5634         subprograms in a partially parameterized formal package.
5635         Add Sure parameter to Note_Possible_Modification calls
5636         (Validate_Derived_Type_Instance): if the formal is non-limited, the
5637         actual cannot be limited.
5638         (Collect_Previous_Instances): Generate instance bodies for subprograms
5639         as well.
5640
5641         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
5642         try to set RM_Size.
5643         Add Sure parameter to Note_Possible_Modification calls
5644         (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
5645         (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
5646         constant overlaid by variable and issue warning.
5647         Use new Is_Standard_Character_Type predicate
5648         (Analyze_Record_Representation_Clause): Check that the specified
5649         Last_Bit is not less than First_Bit - 1.
5650         (Analyze_Attribute_Definition_Clause, case Address): Check for
5651         self-referential address clause
5652
5653         * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
5654         detection mechanism when the lhs is a prival.
5655         (Analyze_Assignment): Call Check_Unprotected_Access to detect
5656         assignment of a pointer to protected data, to an object declared
5657         outside of the protected object.
5658         (Analyze_Loop_Statement): Check for unreachable code after loop
5659         Add Sure parameter to Note_Possible_Modication calls
5660         Protect analysis from previous syntax error such as a scope mismatch
5661         or a missing begin.
5662         (Analyze_Assignment_Statement): The assignment is illegal if the
5663         left-hand is an interface.
5664
5665         * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
5666         violation of restriction No_Implicit_Conditionals
5667         Add Sure parameter to Note_Possible_Modication calls
5668         Use new Is_Standard_Character_Type predicate
5669         (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
5670         call as operator. Fixes problems (e.g. validity checking) which
5671         come from the result looking as though it does not come from source).
5672         (Resolve_Call): Check case of name in named parameter if style checks
5673         are enabled.
5674         (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
5675         from the checking that such calls should not occur from an entry body.
5676         (Resolve_Call): If the return type of an Inline_Always function
5677         requires the secondary stack, create a transient scope for the call
5678         if the body of the function is not available for inlining.
5679         (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
5680         that are actuals for in-out formals.
5681         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
5682         primitive operations from base type.
5683         (Analyze_Selected_Component): If the context is a call to a protected
5684         operation the parent may be an indexed component prior to expansion.
5685         (Resolve_Actuals): If an actual is of a protected subtype, use its
5686         base type to determine whether a conversion to the corresponding record
5687         is needed.
5688         (Resolve_Short_Circuit): Handle pragma Check
5689
5690         * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
5691         Use new Is_Standard_Character_Type predicate
5692         (Eval_Relational_Op): Catch more cases of string comparison
5693
5694 2008-04-08  Robert Dewar  <dewar@adacore.com>
5695             Gary Dismukes  <dismukes@adacore.com>
5696
5697         * s-rident.ads: Add No_Default_Initialization restriction
5698
5699         * exp_tss.adb:
5700         (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
5701         (Set_TSS): Handle No_Default_Initialization case
5702
5703         * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
5704         No_Default_Initialization
5705         (Expand_N_Subprogram_Body): Remove redundant initialization of out
5706         parameters when Normalize_Scalars is active.
5707         (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
5708         Fix casing error in formal parameter name in call
5709         (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
5710         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
5711         dispatching call on VM targets.
5712
5713 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
5714             Thomas Quinot  <quinot@adacore.com>
5715
5716         * exp_ch7.adb (Find_Final_List): Change the test for generating a
5717         selected component from an access type's Associated_Final_Chain to
5718         check for the presence of that field, rather than assuming it exists
5719         for all named access types.
5720         (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
5721         procedure to call at the end of the generated cleanup procedure.
5722         (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
5723         and an At_End_Proc already exists in the handled sequence of statements
5724         for which cleanup actions are being expanded, the original cleanup
5725         action must be preserved.
5726
5727 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5728             Ed Schonberg  <schonberg@adacore.com>
5729             Robert Dewar  <dewar@adacore.com>
5730             Gary Dismukes  <dismukes@adacore.com>
5731
5732         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
5733         Build_Unprotected_Subprogram_Body): Generate debug info for
5734         declarations related to the handling of private data in task and
5735         protected types.
5736         (Debug_Private_Data_Declarations): New subprogram.
5737         (Install_Private_Data_Declarations): Remove all debug info flagging.
5738         This is now done by Debug_Private_Data_Declarations at the correct
5739         stage of expansion.
5740         (Build_Simple_Entry_Call): If the task name is a function call, expand
5741         the prefix into an object declaration, and make the surrounding block a
5742         task master.
5743         (Build_Master_Entity): An internal block is a master if it wraps a call.
5744         Code reformatting, update comments. Code clean up.
5745         (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
5746         (Replicate_Entry_Formals): If the formal is an access parameter or
5747         anonymous access to subprogram, copy the original tree to create new
5748         entities for the formals of the subprogram.
5749         (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
5750         for tasks to store the value passed using pragma Relative_Deadline.
5751         (Make_Task_Create_Call): Add the Relative_Deadline argument to the
5752         run-time call to create a task.
5753         (Build_Wrapper_Spec): If the controlling argument of the interface
5754         operation is an access parameter with a non-null indicator, use the
5755         non-null indicator on the wrapper.
5756
5757         * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
5758         present, which it may not be in the case where the type entity is an
5759         incomplete view brought in by a limited with.
5760         (Analyze_Task_Type): Only retrieve the full view when present, which it
5761         may not be in the case where the type entity is an incomplete view brought
5762         in by a limited with.
5763         (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
5764         private components of a protected type, to prevent the generation of freeze
5765         nodes for which there is no proper scope of elaboration.
5766
5767         * exp_util.ads, exp_util.adb
5768         (Remove_Side_Effects): If the expression is a function call that returns a
5769         task, expand into a declaration to invoke the build_in_place machinery.
5770         (Find_Protection_Object): New routine.
5771         (Remove_Side_Effects): Also make a copy of the value
5772         for attributes whose result is of an elementary type.
5773         (Silly_Boolean_Array_Not_Test): New procedure
5774         (Silly_Boolean_Array_Xor_Test): New procedure
5775         (Is_Volatile_Reference): New function
5776         (Remove_Side_Effects): Use Is_Volatile_Reference
5777         (Possible_Bit_Aligned_Component): Handle slice case properly
5778
5779         * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
5780         case test to Exp_Util
5781         (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
5782
5783 2008-04-08  Thomas Quinot  <quinot@adacore.com>
5784
5785         * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
5786         in call
5787         (Add_RACW_Features): When processing an RACW in another unit than the
5788         main unit, set Body_Decls to No_List to indicate that the bodies of
5789         the type's TSS must not be generated.
5790         (GARLIC_Support.Add_RACW_Read_Attribute,
5791         GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
5792         Body_Decls is No_List.
5793         (PolyORB_Support.Add_RACW_Read_Attribute,
5794         PolyORB_Support.Add_RACW_Write_Attribute,
5795         PolyORB_Support.Add_RACW_From_Any,
5796         PolyORB_Support.Add_RACW_To_Any,
5797         PolyORB_Support.Add_RACW_TypeCode): Same.
5798         (Transmit_As_Unconstrained): New function.
5799         (Build_Ordered_Parameters_List): Use the above to order parameters.
5800         (GARLIC_Support.Build_General_Calling_Stubs):
5801         Use the above to determine which parameters to unmarshall using 'Input
5802         at the point where their temporary is declared (as opposed to later on
5803         with a 'Read call).
5804         (PolyORB_Support.Build_General_Calling_Stubs):
5805         Use the above to determine which parameters to unmarshall using From_Any
5806         at the point where their temporary is declared (as opposed to later on
5807         with an assignment).
5808
5809 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5810
5811         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
5812         an Input function for an access type, do not perform default
5813         initialization on the local variable that receives the value, to
5814         prevent spurious warnings when the type is null-excluding.
5815
5816 2008-04-08  Robert Dewar  <dewar@adacore.com>
5817             Ed Schonberg  <schonberg@adacore.com>
5818
5819         * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
5820         units.
5821         (Size_Known): Generic formal scalar types have known at compile
5822         time size, so remove check.
5823         Fix casing error in formal parameter name in call
5824         (Freeze_Subprogram): If the subprogram is a user-defined operator,
5825         recheck its overriding indication.
5826
5827 2008-04-08  Vincent Celier  <celier@adacore.com>
5828
5829         * gnat1drv.adb: Send all messages indicating an error to standard error
5830
5831 2008-04-08  Robert Dewar  <dewar@adacore.com>
5832
5833         * gnatbind.adb (Restriction_Could_Be_Set): New procedure
5834         (List_Applicable_Restrictions): Do not list existing restrictions
5835
5836 2008-04-08  Thomas Quinot  <quinot@adacore.com>
5837
5838         * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
5839         add a pointer to generic sockets literature
5840         do not mention that the given example is "typical" usage.
5841         Remove obsolete comment about multicast not being supported on Windows.
5842         (Connect_Socket): Make Server mode IN rather than IN OUT
5843         since this formal is never modified.
5844
5845 2008-04-08  Robert Dewar  <dewar@adacore.com>
5846
5847         * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
5848         the declaration for some different entity.
5849         (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
5850         list is precent (following the parent subtype indication), display
5851         appropriate "and" keyword.
5852
5853         * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
5854         Remove unnecessary calls to Init_Size_Align and Init_Esize.
5855         Add notes on use of Parent field of an Itype
5856
5857 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5858             Robert Dewar  <dewar@adacore.com>
5859             Gary Dismukes  <dismukes@adacore.com>
5860
5861         * lib-xref.adb (Is_On_LHS): Remove dead code
5862         (Output_Overriden_Op): If the overridden operation is itself inherited,
5863         list the ancestor operation, which is the one whose body or absstract
5864         specification is actually being overridden. For source navigation
5865         purposes.
5866
5867         * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
5868         operation is primitive for the type.
5869         (Declare_Inherited_Private_Subprograms): If the new operation overrides
5870         an inherited private subprogram, set properly the Overridden_Operation
5871         attribute, for better cross-reference information.
5872         (Analyze_Package_Specification): Do late analysis of spec PPCs
5873         (Install_Private_Declaration, Uninstall_Declarations): Save/restore
5874         properly the full view and underlying full views of a private type in a
5875         child unit, whose full view is derived from a private type in a parent
5876         unit, and whose own full view becomes visible in the child body.
5877
5878         * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
5879         primitive operation after the type has been frozen, add an explicit
5880         reference to the type and the operation, because other primitive
5881         references have been emitted already.
5882         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
5883         dispatching call on VM targets.
5884
5885 2008-04-08  Vincent Celier  <celier@adacore.com>
5886             Thomas Quinot  <quinot@adacore.com>
5887
5888         * make.adb: (Gnatmake_Called): Remove, no longer necessary
5889         (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
5890         is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
5891         (Insert_Project_Sources): Take into account index in multi-unit source
5892         files.
5893         After building a library project, delete all temporary files.
5894         (Initialize): Reset current output after parsing project file.
5895         (Collect_Arguments_And_Compile): Never insert in the queue the sources
5896         of library projects that are externally built.
5897         Put file name in error and inform messages if -df is used
5898         (Display): If invoked with -d7, do not display path names, but only
5899         file names.
5900
5901         * makeutl.ads (Path_Or_File_Name): New function
5902         (Path_Or_File_Name): New function
5903
5904 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
5905
5906         * Make-lang.in: Disable warnings during first stage of bootstrap
5907         Get rid of gnatbl.
5908         Update dependencies.
5909
5910 2008-04-08  Vincent Celier  <celier@adacore.com>
5911
5912         * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
5913         case to decide if ALI object file is included in library.
5914         (Build_Library): Never attempt to build a library if the project is
5915         externally built.
5916
5917 2008-04-08  Thomas Quinot  <quinot@adacore.com>
5918
5919         * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
5920         (No_List) is defined to return Empty.
5921
5922 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
5923
5924         * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
5925         documentation.
5926         Update comments.
5927         (Read_Default_Search_Dirs): Do not consider spaces as path separators
5928         because spaces may be part of legal paths.
5929
5930 2008-04-08  Robert Dewar  <dewar@adacore.com>
5931
5932         * par-ch11.adb (P_Exception_Handler): Check indentation level for
5933         handler
5934
5935 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5936
5937         * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
5938         in a type declaration, if this is not an interface declaration or
5939         private type extension.
5940
5941 2008-04-08  Vincent Celier  <celier@adacore.com>
5942
5943         * prj-util.adb (Executable_Of): New String parameter Language. When
5944         Ada_Main is False and Language is not empty, attempt to remove the body
5945         suffix or the spec suffix of the language to get the base of the
5946         executable file name.
5947         (Put): New Boolean parameter Lower_Case, defauilted to False. When
5948         Lower_Case is True, put the value in lower case in the name list.
5949         (Executable_Of): If there is no executable suffix in the configuration,
5950         then do not modify Executable_Extension_On_Target.
5951
5952         * prj-util.ads (Executable_Of): New String parameter Language,
5953         defaulted to the empty string.
5954         (Put): New Boolean parameter Lower_Case, defauilted to False
5955
5956 2008-04-08  Robert Dewar  <dewar@adacore.com>
5957
5958         * scng.adb (Scan_Identifier): Handle case of identifier starting with
5959         wide character using UTF-8 encoding.
5960
5961 2008-04-08  Javier Miranda  <miranda@adacore.com>
5962
5963         * sem.adb (Analyze): Consider case in which we analyze an empty node
5964         that was generated by a call to a runtime function that is not
5965         available under the configurable runtime.
5966
5967         * sem.ads (Inside_Freezing_Actions): New flag.
5968         (Save_Check_Policy_List): New field in scope stack entry
5969
5970 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5971             Robert Dewar  <dewar@adacore.com>
5972
5973         * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
5974         the ancestor part of an extension aggregate for a limited type.
5975         (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
5976         enumeration index bounds.
5977         (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
5978         when array is too short.
5979         (Check_Expr_OK_In_Limited_Aggregate): Move function
5980         Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
5981         change name).
5982         (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
5983         Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
5984         component associations.
5985         (Check_Non_Limited_Type): Moved to outer level and renamed.
5986         (Resolve_Record_Aggregate): In an extension aggregate, an association
5987         with a box initialization can only designate a component of the
5988         extension, not a component inherited from the given ancestor
5989
5990         * sem_case.adb: Use new Is_Standard_Character_Type predicate
5991
5992 2008-04-08  Robert Dewar  <dewar@adacore.com>
5993
5994         * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
5995         negative scale
5996         (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
5997         Properly handle case where Aft > Scale and input number is less than
5998         one.
5999
6000 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
6001
6002         * s-stoele.ads, s-soflin.ads: Move the location of
6003         Dummy_Communication_Block from System.Storage_Elements to
6004         System.Soft_Links.
6005
6006         * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
6007         emulate Communication_Block in certain scenarios.
6008
6009 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
6010
6011         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
6012         subprogram.
6013         Add new subtype S_WWC, unchecked conversion routines From_WWC and
6014         To_WWC.
6015         (I_WWC, O_WWC): New routines for input and output of
6016         Wide_Wide_Character.
6017
6018 2008-04-08  Robert Dewar  <dewar@adacore.com>
6019
6020         * stringt.adb (Write_String_Table_Entry): Handle wide characters
6021         properly
6022
6023 2008-04-08  Robert Dewar  <dewar@adacore.com>
6024
6025         * styleg.adb (Check_Comment): Allow special char after -- in
6026         non-end-of-line case
6027
6028 2008-04-08  Robert Dewar  <dewar@adacore.com>
6029
6030         * stylesw.adb: Implement -gnaty + - y options
6031         (Set_GNAT_Style_Check_Options): Includ I in style check string
6032
6033         * stylesw.ads: Add comments for new style switch options
6034
6035 2008-04-08  Sergey Rybin  <rybin@adacore.com>
6036
6037         * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
6038         to the set of the GNAT components needed by ASIS.
6039
6040 2008-04-08  Bob Duff  <duff@adacore.com>
6041
6042         * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
6043
6044 2008-04-08  Tristan Gingold  <gingold@adacore.com>
6045
6046         * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
6047         Improve error message generation.
6048
6049 2008-04-08  Vincent Celier  <celier@adacore.com>
6050
6051         * a-direct.adb (Start_Search): Check for Name_Error before checking for
6052         Use_Error, as specified in the RM. Check if directory is open and raise
6053         Use_Error if it is not.
6054
6055 2008-04-08  Vincent Celier  <celier@adacore.com>
6056             Robert Dewar  <dewar@adacore.com>
6057
6058         * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
6059         AAMP_On_Target is set.
6060
6061         * vms_data.ads: Add NOxxx to style check switch list
6062         Add entry COMPONENTS for -gnatVe
6063         Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
6064         (/SUBDIRS=).
6065         (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
6066         Add qualifiers for gnatmetric coupling options
6067         Add note that -gnata enables all checks
6068         Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
6069         Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
6070         New warning flag -gnatw.e
6071
6072         * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
6073         Add entry for -gnatyN (forgotten before)
6074         Line for new warning switch -gnatw.p
6075         New warning flag -gnatw.e
6076
6077         * gnat_ugn.texi: Add documentation fpr project file switch -aP
6078         Document -gnaty - + y
6079         Replace occurences of "package specification" with "package spec"
6080         Define preprocessing symbols in documentation of gnatprep
6081         Clarify reason for distinguishing overflow checking
6082         Add documentation for project-aware tool switches -eL and --subdirs=
6083         Complete list of configuration pragmas
6084         Specify that, even when gnatmake switch -x is used, mains on the command
6085         line need to be sources of project files.
6086         Editing of gnatcheck/gnatmetric doc.
6087         Add documentation for -gnatw.p/-gnatw.P
6088         Add missing documentation for -fno-inline-functions.
6089         Add documentation for -gnatw.e
6090
6091         * gnat_rm.texi: Add documentation for No_Default_Initialization
6092         Replace occurences of "package specification" with "package spec"
6093         Document use of * in Warnings Off string
6094         Update documentation of alignment/component clauses.
6095         Add documentation for Invalid_Value
6096         Document new consistency rule for Optimize_Alignment
6097         Add documentation for Precondition and Postcondition pragmas
6098         Add documentation for Check and Check_Policy pragmas
6099         Document new Enum_Val attribute
6100         Remove requirement for static string in pragma Assert
6101         Add documentation on GNAT.Time_Stamp
6102
6103         * ug_words: add entry for -gnatVe
6104         Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
6105         Add entry for -gnatw.e
6106
6107         * debug.adb: Add missing documentation for d.a flag
6108         Document new -gnatd.a switch.
6109         Add documentation for new gnatmake debug switch -df
6110
6111 2008-04-08  Thomas Quinot  <quinot@adacore.com>
6112
6113         * gen-soccon.c: Bump year in copyright notices.
6114
6115         * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
6116
6117 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
6118
6119         * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
6120         Minor reformatting.
6121
6122 2008-04-08  Robert Dewar  <dewar@adacore.com>
6123             Bob Duff  <duff@adacore.com>
6124
6125         * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
6126         Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
6127
6128         * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
6129
6130         * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
6131
6132         * g-trasym.ads: Minor comment improvements
6133
6134         * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
6135
6136         * a-sequio.ads, a-direio.ads: improve message for tagged type
6137
6138         * a-strunb.ads: Minor reformatting
6139
6140         * a-tifiio.adb: Minor reformatting
6141
6142         * atree.adb (Fix_Parents): Use clearer names for formals
6143         Cleanup and simplify code
6144         Use named notation in calls
6145
6146         * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
6147         confusing calls
6148
6149         * uintp.adb: Used named notation for some confusing calls
6150
6151         * bindusg.adb: Minor change in one line of output
6152
6153         * cstand.adb: Minor reformatting of src representation of Standard
6154
6155         * a-assert.ads: Add comment.
6156
6157         * g-decstr.adb: Fix bad indentation
6158
6159         * expander.ads, expander.adb: Code clean up.
6160
6161         * sem_dist.ads: Minor comment improvement
6162
6163         * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
6164         s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
6165
6166         * i-cstrin.adb: Fix casing error in formal parameter name in call
6167
6168 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
6169
6170         * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
6171         mentioned in limited_with_clauses to do create semantic dependencies
6172         even though they appear in the ali file.
6173
6174 2008-04-08  Emmanuel Briot  <briot@adacore.com>
6175
6176         * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
6177         statement.
6178         (Get_Configuration): New subprogram.
6179
6180         * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
6181         These optional parameters help preserve the casing of the project's name
6182         when pretty-printing.
6183
6184 2008-04-08  Jerome Lambourg  <lambourg@adacore.com>
6185             Arnaud Charlet  <charlet@adacore.com>
6186
6187         * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
6188         then use __gnat_set_exit_status to report the returned status code.
6189
6190         * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
6191         messages on .NET, since some constructs of the language are not
6192         properly supported.
6193
6194         * gnatlink.adb (Gnatlink): In case the command line is too long for the
6195         .NET linker, gnatlink now concatenate all .il files and pass this to
6196         ilasm.
6197
6198 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
6199             Xavier Grave  <grave@ipno.in2p3.fr>
6200
6201         * Makefile.in: Add make ifeq define for mips/mipsel support.
6202         * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
6203         system-linux-mips.ads: New files.
6204
6205 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
6206
6207         * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
6208         detect systems using GNU libc.
6209         * gsocket.h: ditto.
6210         * socket.c: ditto.
6211         * adaint.c: ditto.
6212         * link.c: ditto.
6213
6214 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
6215
6216         * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
6217         constant constant for sysconf call.
6218         (bit_field): New packed boolean type used by cpu_set_t.
6219         (cpu_set_t): New type corresponding to the C type with
6220         the same name. Note that on the Ada side we use a bit
6221         field array for the affinity mask. There is not need
6222         for the C macro for setting individual bit.
6223         (pthread_setaffinity_np): New imported routine.
6224         * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
6225         on GNU/kFreeBSD.
6226
6227 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
6228
6229         * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
6230
6231 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
6232
6233         * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
6234         * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
6235         * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
6236         * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
6237         Return by Depressed Stack Pointer.
6238
6239 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6240
6241         * decl.c (is_variable_size): Do not unconditionally return false
6242         on non-strict alignment platforms.
6243
6244 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6245
6246         * decl.c (rest_of_type_decl_compilation_no_defer): New local function
6247         used to process all the variants of the specified type.
6248         (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
6249         types too.  Call rest_of_type_decl_compilation_no_defer if undeferring.
6250         (rest_of_type_decl_compilation): Likewise.
6251         * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
6252
6253 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
6254
6255         * gigi.h (insert_block): Kill.
6256         * utils.c (insert_block): Kill.
6257
6258 2008-04-02  Eric Botcazou  <ebotcazou@adacore.com>
6259
6260         * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
6261         type has self-referential size, get the size from the initializing
6262         expression directly if it is also a constant whose nominal type
6263         has self-referential size.
6264
6265 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6266
6267         PR ada/33688
6268         * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
6269
6270         PR ada/33857
6271         * env.c: Always include crt_externs.h if __APPLE__ is defined.
6272         (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
6273
6274 2008-04-01  Andreas Jaeger  <aj@suse.de>
6275
6276         * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
6277         IP_PKTINFO.
6278
6279 2008-03-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6280
6281         * g-table.adb, g-tasloc.adb, g-traceb.ads,
6282         g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
6283         gnatbind.adb, gnatchop.adb, gnatcmd.adb,
6284         gnatcmd.ads, gnatdll.adb, gnatfind.adb,
6285         gnatlink.adb, gnatmem.adb, gprep.adb,
6286         i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
6287         i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
6288         layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
6289         lib-xref.ads, lib.adb, link.c, live.ads,
6290         make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
6291         mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
6292         misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
6293         mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
6294         namet.adb, namet.h, nlists.adb, nlists.ads,
6295         nlists.h, opt.ads, osint-b.ads, osint-c.adb,
6296         osint-c.ads, osint.adb, osint.ads, output.ads,
6297         par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
6298         par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
6299         par-endh.adb, par-labl.adb, par-prag.adb,
6300         par-sync.adb, par-tchk.adb, par-util.adb,
6301         par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
6302         prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
6303         prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
6304         prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
6305
6306 2008-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6307
6308         * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
6309         size if it has overflowed.
6310
6311 2008-03-31  Olivier Hainque  <hainque@adacore.com>
6312             Eric Botcazou  <ebotcazou@adacore.com>
6313
6314         * utils2.c (find_common_type): Document assumption on t1/t2 vs
6315         lhs/rhs. Force use of lhs type if smaller, whatever the modes.
6316
6317 2008-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6318
6319         * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
6320         einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
6321         exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
6322         exp_pakd.ads, exp_prag.adb, exp_smem.adb,
6323         exp_tss.ads, exp_util.adb, exp_util.ads,
6324         exp_vfpt.adb, freeze.adb, freeze.ads,
6325         frontend.adb, g-alleve.adb, g-altcon.adb,
6326         g-altive.ads, g-alveop.ads, g-alvevi.ads,
6327         g-arrspl.adb, g-busorg.ads, g-calend.adb,
6328         g-calend.ads, g-casuti.ads, g-cgideb.adb,
6329         g-comlin.adb, g-comlin.ads, g-curexc.ads,
6330         g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
6331         g-dirope.adb, g-dirope.ads, g-dynhta.ads,
6332         g-dyntab.adb, g-encstr.ads, g-excact.ads,
6333         g-except.ads, g-expect.ads, g-heasor.adb,
6334         g-hesora.adb, g-hesorg.adb, g-htable.ads,
6335         g-locfil.ads, g-md5.adb, g-md5.ads,
6336         g-memdum.ads, g-moreex.ads, g-os_lib.adb,
6337         g-pehage.adb, g-pehage.ads, g-regexp.adb,
6338         g-regexp.ads, g-regpat.adb, g-regpat.ads,
6339         g-soccon-aix.ads, g-soccon-darwin.ads,
6340         g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
6341         g-soccon-hpux.ads, g-soccon-irix.ads,
6342         g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
6343         g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
6344         g-soccon-mingw.ads, g-soccon-solaris-64.ads,
6345         g-soccon-solaris.ads, g-soccon-tru64.ads,
6346         g-soccon-vms.ads, g-soccon-vxworks.ads,
6347         g-soccon.ads, g-socket.adb, g-socket.ads,
6348         g-socthi-mingw.adb, g-socthi-vms.adb,
6349         g-socthi-vxworks.adb, g-soliop-mingw.ads,
6350         g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
6351         g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
6352         typos.
6353
6354 2008-03-27  Eric Botcazou  <ebotcazou@adacore.com>
6355
6356         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
6357         if the procedure is imported.
6358
6359 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6360
6361         * adaint.c: Fix warnings.
6362
6363 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6364
6365         * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
6366
6367 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6368
6369         * a-witeio.adb: Fix problem with Current_Output (introduce Self).
6370         Fix problem of status check for null file
6371
6372 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6373
6374         * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
6375         s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
6376         s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
6377         i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
6378         s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
6379         comments.
6380
6381 2008-03-26  Thomas Quinot  <quinot@adacore.com>
6382
6383         PR ada/33688
6384         * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
6385         Get_Socket_Option): Add support for Receive_Packet_Info.
6386
6387         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
6388         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
6389         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
6390         g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
6391         g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
6392         new constants SO_REUSEPORT and IP_PKTINFO
6393
6394 2008-03-26  Robert Dewar  <dewar@adacore.com>
6395
6396         * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
6397         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
6398         a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
6399         a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
6400         a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
6401         a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
6402         s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
6403         s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
6404         a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
6405         s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
6406         s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
6407         s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
6408         s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
6409         s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
6410         s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
6411         s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
6412         s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
6413         s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
6414         s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
6415         s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
6416         a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
6417         a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
6418         s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
6419         s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
6420         s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
6421         s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
6422         s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
6423         a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
6424         a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
6425         s-tasloc.adb: Minor reformatting.
6426         Update comments.
6427         Remove "used for" sections from comments.
6428
6429 2008-03-26  Robert Dewar  <dewar@adacore.com>
6430
6431         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
6432         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
6433         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
6434         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
6435         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
6436         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
6437         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
6438         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
6439         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
6440         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
6441         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
6442         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
6443         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
6444         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
6445         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
6446         double spaced if it fits on one line and otherwise single spaced.
6447
6448 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6449
6450         * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
6451         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
6452         s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
6453         or task info if the thread could not be created.
6454
6455 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6456
6457         * gnatvsn.ads (Library_Version): Bump to 4.4.
6458         (Current_Year): Bump to 2008.
6459
6460 2008-03-26  Robert Dewar  <dewar@adacore.com>
6461
6462         * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
6463
6464         * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
6465
6466         * debug.adb: Add debug flags d.r and d.v
6467         Add debug flag .T (Optimize_Alignment (Time))
6468         Add debug flag .S (Optimize_Alignment (Space))
6469
6470         * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
6471         depending on setting of relevant debug flags.
6472         Replace use of Warnings_Off by Has_Warnings_Off
6473         (Freeze_Entity): In circuit for warning on suspicious convention
6474         actuals, do not give warning if subprogram has same entity as formal
6475         type, or if subprogram does not come from source.
6476         (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
6477         if Optimize_Alignment set to Space.
6478
6479         * frontend.adb: Add call to Sem_Warn.Initialize
6480         Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
6481         Reset Optimize_Alignment mode from debug switches .S and .T
6482
6483         * layout.adb (Layout_Composite_Object): Rewritten for
6484         Optimize_Aligment pragma.
6485
6486         * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
6487         mode.
6488
6489         * opt.ads, opt.adb: (Optimize_Alignment): New global switch
6490
6491         * par-prag.adb (N_Pragma): Chars field removed, use Chars
6492         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
6493         this change. Add entry for pragma Optimize_Alignment
6494
6495         * sem_prag.adb (N_Pragma): Chars field removed, use Chars
6496         (Pragma_Identifier (..
6497         instead, adjustments throughout to accomodate this change.
6498         (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
6499         (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
6500         Add implementation of pragma Optimize_Alignment
6501
6502 2008-03-26  Vincent Celier  <celier@adacore.com>
6503
6504         * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
6505         Improve memory usage to avoid use of stack.
6506
6507 2008-03-26  Robert Dewar  <dewar@adacore.com>
6508
6509         * a-teioed.ads: Correct value of Default_Fill
6510
6511         * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
6512
6513 2008-03-26  Robert Dewar  <dewar@adacore.com>
6514
6515         * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
6516         with Current_Output (introduce Self).
6517
6518 2008-03-26  Robert Dewar  <dewar@adacore.com>
6519
6520         * checks.adb (Ensure_Valid): Capture valid status if possible
6521         (eliminate checks)
6522
6523 2008-03-26  Robert Dewar  <dewar@adacore.com>
6524
6525         * stand.ads: Deal with reordering of package standard declarations
6526
6527         * cstand.adb: Put package Standard declarations in proper order
6528
6529 2008-03-26  Robert Dewar  <dewar@adacore.com>
6530
6531         * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
6532         (Pragma_Identifier (.. instead.
6533         (OK_To_Reorder_Components): New flag
6534         (Has_Entries): Code cleanup.
6535         (Warnings_Off_Used): New flag
6536         (Warnings_Off_Used_Unmodified): New flag
6537         (Warnings_Off_Used_Unreferenced): New flag
6538         (Has_Warnings_Off): New function
6539         (Has_Unmodified): New function
6540         (Has_Unreferenced): New function
6541         (Is_Trivial_Subprogram): New flag
6542         (Is_Static_Dispatch_Table_Entity): New attribute.
6543         Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
6544         (more consistent with other similar names)
6545         (Access_Subprogram_Type): New classification function
6546
6547 2008-03-26  Robert Dewar  <dewar@adacore.com>
6548
6549         * errout.ads: Document new !! insertion sequence
6550
6551         * errout.adb (N_Pragma): Chars field removed, use Chars
6552         (Pragma_Identifier (..  instead.
6553         Replace use of Warnings_Off by Has_Warnings_Off
6554         (Error_Msg_Internal): Don't delete warning ending in !!
6555
6556 2008-03-26  Robert Dewar  <dewar@adacore.com>
6557
6558         * par.adb (Check_No_Right_Paren): Removed no longer used
6559
6560         * par-ch10.adb (N_Pragma): Chars field removed, use Chars
6561         (Pragma_Identifier (..  instead.
6562
6563         * par-ch10.adb (P_Subunit): Improvement in error recovery and message
6564
6565         * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
6566         par-ch4.adb: Minor improvements in error recovery and messages.
6567
6568         * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
6569         non-serious
6570
6571         * par-ch9.adb: Minor improvements in error recovery and messages
6572         (P_Protected): Better error recovery for "protected type x;"
6573
6574         * par-util.adb: Minor improvements in error recovery and messages
6575         (Check_No_Right_Paren): Removed no longer used
6576
6577 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6578
6579         * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
6580         that the prefix of an attribute is the type of the aggregate being
6581         expanded.
6582
6583 2008-03-26  Javier Miranda  <miranda@adacore.com>
6584             Robert Dewar  <dewar@adacore.com>
6585
6586         * exp_attr.adb (N_Pragma): Chars field removed.
6587         (Expand_N_Attribute_Reference): If the designated type associated with
6588         attribute 'Unrestricted_Access is a subprogram entity then replace it
6589         by an E_Subprogram_Type itype.
6590         Implement attribute Old
6591
6592         * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
6593
6594         * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
6595         Replace call to
6596         New_Internal_Entity by call to Create_Itype to centralize calls
6597         building itypes, ad propagate the convention of the designated
6598         subprogram. In addition, disable the machinery cleaning constant
6599         indications from all entities in current scope when 'Unrestricted_Access
6600         corresponds with a node initializing a dispatch table slot.
6601         (Analyze_Attribute): Parameterless attributes returning a string or a
6602         type will not be called with improper arguments, so we can remove junk
6603         code that was dealing with this case.
6604         Implement attribute Old
6605
6606         * snames.ads, snames.h, snames.adb: Add entries for attribute Old
6607         Add entry for pragma Optimize_Alignment
6608         New standard names Sync and Synchronize
6609
6610 2008-03-26  Robert Dewar  <dewar@adacore.com>
6611             Arnaud Charlet  <charlet@adacore.com>
6612
6613         * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
6614         stmt.
6615         (No_Exception_Propagation_Active): New function.
6616         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
6617         Update comments, and review all uses of No_Exception_Propagation, which
6618         are now correct and in sync with what gigi expects.
6619
6620         * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
6621         function.
6622         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
6623         Update comments, and review all uses of No_Exception_Propagation, which
6624         are now correct and in sync with what gigi expects.
6625
6626 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6627
6628         * sem_ch3.adb (Access_Definition): If the access type is the return
6629         result of a protected function, create an itype reference for it
6630         because usage will be in an inner scope from the point of declaration.
6631         (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
6632         OK_To_Reorder_Components.
6633         (Make_Index): If an overloaded range includes a universal integer
6634         interpretation, resolve to Standard.Integer.
6635         (Analyze_Subtype_Indication): Copy Convention to subtype
6636         (Check_Abstract_Interfaces): Complete semantic checks on the legality of
6637         limited an synchronized progenitors in type declaration and private
6638         extension declarations.
6639
6640         * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
6641         protected subprogram body, determine proper scope from subprogram
6642         declaration.
6643
6644 2008-03-26  Robert Dewar  <dewar@adacore.com>
6645
6646         * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
6647         No_Run_Time_Mode
6648
6649 2008-03-26  Gary Dismukes  <dismukes@adacore.com>
6650
6651         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
6652         of a heap allocator for a limited unconstrained function return when
6653         resstriction No_Allocators is active.
6654         (Analyze_Allocator): The restriction No_Allocators is now only checked
6655         on allocators that have Comes_From_Source set, as per RM-H.4(7).
6656
6657         * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
6658         of a heap allocator for a limited unconstrained function return when
6659         resstriction No_Allocators is active.
6660         (Analyze_Allocator): The restriction No_Allocators is now only checked
6661         on allocators that have Comes_From_Source set, as per RM-H.4(7).
6662         (Has_Fixed_Op):  If the name in a function call is Standard."*" and the
6663         operands are fixed-point types, the universal_fixed predefined operation
6664         is used, regardless of whether the operand type (s) have a primitive
6665         operation of the same name.
6666
6667 2008-03-26  Javier Miranda  <miranda@adacore.com>
6668
6669         * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
6670         Is_Static_Dispatch_Table
6671         (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
6672         to Exchange_Declarations to exchange the private and full-view. Bug
6673         found working in this issue.
6674         (Expand_Dispatching_Call): Propagate the convention of the subprogram
6675         to the subprogram pointer type.
6676         (Make_Secondary_DT): Replace generation of Prim'Address by
6677         Address (Prim'Unrestricted_Access)
6678         (Make_DT): Replace generation of Prim'Address by
6679         Address (Prim'Unrestricted_Access)
6680         (Make_Disp_*_Bodies): When compiling for a restricted profile, use
6681         simple call form for single entry.
6682         (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
6683         tables of predefined primitives).
6684         (Make_Secondary_DT): Add support to handle access to dispatch tables of
6685         predefined primitives.
6686         (Make_Tags): Add entities to Access_Dispatch_Table associated with
6687         access to dispatch tables containing predefined primitives.
6688
6689         * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
6690         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
6691         this change.
6692         (Register_Predefined_DT_Entry): Updated to handle the new contents
6693         of attribute Access_Disp_Table (pointers to dispatch tables containing
6694         predefined primitives).
6695
6696         * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
6697         subprogram.
6698         (Find_Interface_ADT): Updated to skip the new contents of attribute
6699         Access_Dispatch_Table (pointers to dispatch tables containing predefined
6700         primitives).
6701
6702         * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
6703         concurrent types.
6704         (Set_Convention): Use new function Is_Access_Subprogram_Type
6705         (Collect_Interfaces_Info): Updated to skip the new contents of attribute
6706         Access_Dispatch_Table (pointers to dispatch tables containing predefined
6707         primitives).
6708
6709         * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
6710         expanded code avoiding calls to Build_Predef_Prims.
6711         (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
6712         call to Build_Get_Predefined_Prim_Op_Address.
6713
6714 2008-03-26  Javier Miranda  <miranda@adacore.com>
6715
6716         * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
6717         subprogram Corresponding_Runtime_Package to know the runtime package
6718         that will provide support to a given protected type.
6719
6720         * exp_ch9.adb (Add_Private_Declarations,
6721         Build_Protected_Subprogram_Call,
6722         Build_Protected_Entry, Build_Simple_Entry_Call,
6723         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
6724         Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
6725         cleanup using the new centralized subprogram Corresponding_Runtime
6726         Package to know the runtime package that provides support to
6727         a given protected type.
6728
6729 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6730
6731         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
6732         assignment is within the initialization procedure for a packed array,
6733         and Initialize_Scalars is enabled, compile right-hand side with checks
6734         off, because the value is purposely out of range.
6735
6736 2008-03-26  Vincent Celier  <celier@adacore.com>
6737
6738         * gnatcmd.adb: Add processing for GNAT SYNC
6739
6740         * vms_conv.ads: (Command_Type): Add command Sync
6741
6742         * vms_conv.adb (Initialize): Add Command_List data for new command Sync
6743
6744         * vms_data.ads: Add entries for -gnatw.w
6745         Add qualifier for gnatstub --header-file option
6746         Add switches for GNAT SYNC
6747
6748         * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
6749         (Add_Package_Name): New procedure
6750         (Package_Name_List): New function
6751         (Initialize): Add known package names to the list
6752         (Register_New_Package): Add the new package name to the list
6753
6754 2008-03-26  Robert Dewar  <dewar@adacore.com>
6755
6756         * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
6757         s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
6758         Raise_Exception by "raise with" construct.
6759
6760 2008-03-26  Pascal Obry  <obry@adacore.com>
6761
6762         * Makefile.in: Add proper GNAT.Serial_Communications implementation on
6763         supported platforms.
6764
6765         * Makefile.rtl: Add g-sercom.o.
6766
6767         * impunit.adb: Add g-sercom.adb.
6768
6769         * s-crtl.ads (open): New routine.
6770         (close): Likewise.
6771         (write): Likewise.
6772
6773         * s-osinte-mingw.ads (BYTE): New type.
6774         (CHAR): Likewise.
6775         (OVERLAPPED): Likewise.
6776         (GENERIC_READ): New constant.
6777         (GENERIC_WRITE): Likewise.
6778         (OPEN_EXISTING): Likewise.
6779         (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
6780         type instead.
6781         (CreateFile): New routine.
6782         (WriteFile): Likewise.
6783         (ReadFile): Likewise.
6784         (CloseHandle): Move next to the other file oriented routines.
6785
6786         * g-sercom.ads: New unit.
6787
6788         * g-sercom.adb: Default implementation, calls to this unit will raise
6789         a program error exception.
6790
6791         * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
6792         GNU/Linux implementations.
6793
6794 2008-03-26  Robert Dewar  <dewar@adacore.com>
6795
6796         * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
6797
6798         * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
6799         unchecked conversion for different conventions only for subprogram
6800         pointers or on VMS.
6801
6802 2008-03-26  Vincent Celier  <celier@adacore.com>
6803
6804         * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
6805         to check if the specified object file is correct.
6806
6807 2008-03-26  Thomas Quinot  <quinot@adacore.com>
6808
6809         * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
6810         Comes_From_Source to exclude primitives from being checked. We want to
6811         exclude predefined primitives only, so use the appropriate specific
6812         predicate. Also, flag a formal parameter of an anonymous
6813         access-to-subprogram type as illegal for a primitive operation of a
6814         remote access to class-wide type.
6815
6816 2008-03-26  Vincent Celier  <celier@adacore.com>
6817
6818         * prj-dect.adb (Parse_Package_Declaration): When a package name is not
6819         known, check if it may be a missspelling of a known package name. In
6820         not verbose, not mode, issue warnings only if the package name is a
6821         possible misspelling.
6822         In verbose mode, always issue a warning for a not known package name,
6823         plus a warning if the name is a misspelling of a known package name.
6824
6825         * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
6826         limited withs or limited withs are parse during one call.
6827         (Parse_Single_Project): Post parse context clause in two passes: non
6828         limited withs before current project and limited withs after current
6829         project.
6830
6831         * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
6832         project with the name With_Name, even if it is only extended indirectly.
6833         (Recursive_Process): Process projects in order: first single withs, then
6834         current project, then limited withs.
6835
6836         * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
6837         project with the name With_Name, even if it is only extended indirectly.
6838
6839 2008-03-26  Robert Dewar  <dewar@adacore.com>
6840
6841         * scn.adb (Initialize_Scanner): Format messages belong on standard error
6842
6843 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6844
6845         * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
6846         a generic subprogram that is imported, do not attempt to compile
6847         non-existent body.
6848
6849         * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
6850         imported, do not generate a raise_program_error for the non-existent
6851         body.
6852         (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
6853         perform minimal name resolution on the generic to avoid spurious
6854         warnings.
6855         (Find_Actual_Type): the designated type of the actual in a child unit
6856         may be declared in a parent unit without being an actual.
6857
6858 2008-03-26  Robert Dewar  <dewar@adacore.com>
6859
6860         * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
6861         * sinfo.ads, sinfo.adb (From_At_End): New flag
6862
6863 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6864
6865         * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
6866         operations that have an interface parameter.
6867         (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
6868         Don't treat No_Return call as raise.
6869
6870         * sem_disp.adb (Check_Dispatching_Operations): apply check for
6871         non-primitive interface primitives to access parameters, not to all
6872         parameters of an access type.
6873
6874 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6875
6876         * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
6877         declarations of a parent unit are made visible when compiling a child
6878         instance, the parent is not a hidden open scope, even though it may
6879         contain other pending instance.
6880
6881         * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
6882         hidden open scope for some child instance, it does affect the
6883         visibility status of other stach entries.
6884         (Analyze_Object_Renaming): Check that a class-wide object cannot be
6885         renamed as an object of a specific type.
6886
6887 2008-03-26  Robert Dewar  <dewar@adacore.com>
6888
6889         * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
6890         recursion and raise SE directly.
6891         (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
6892         set for formal type for IN mode parameter.
6893
6894 2008-03-26  Robert Dewar  <dewar@adacore.com>
6895
6896         * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
6897         (Initialize): New procedure
6898         (Output_Warnings_Off_Warnings): New procedure
6899         (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
6900         (Output_Non_Modifed_In_Out_Warnings): Ditto
6901         (Warn_On_Unreferenced_Entity): Ditto
6902
6903 2008-03-26  Vincent Celier  <celier@adacore.com>
6904
6905         * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
6906         readable.
6907
6908 2008-03-26  Matthew Heaney  <heaney@adacore.com>
6909
6910         * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
6911         a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
6912         Marked with clauses as private, and controlled operations as overriding
6913
6914 2008-03-26  Robert Dewar  <dewar@adacore.com>
6915
6916         * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
6917
6918 2008-03-26  Robert Dewar  <dewar@adacore.com>
6919
6920         * back_end.adb, back_end.ads: Minor reformatting
6921
6922         * bindgen.adb: Minor clarification of comments
6923
6924         * fname.ads: Minor comment fixes
6925
6926         * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
6927         prj-nmsc.adb, sem_aggr.adb: Minor reformatting
6928
6929         * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
6930         xsnames.adb: Remove warnings off pragma no longer needed
6931
6932         * a-catizo.ads, a-calari.ads, a-calfor.adb,
6933         a-calfor.ads: Fix header.
6934
6935 2008-03-26  Tristan Gingold  <gingold@adacore.com>
6936
6937         * init.c: Do not adjust pc for HPARITH on alpha/vms.
6938
6939 2008-03-26  Robert Dewar  <dewar@adacore.com>
6940
6941         * lib-xref.adb: (OK_To_Set_Reference): New function
6942         (Generate_Reference): Don't set referenced from occurrence in Warnings,
6943         Unmodified, or Unreferenced pragma
6944
6945 2008-03-26  Robert Dewar  <dewar@adacore.com>
6946
6947         * alloc.ads: Add entries for Warnings_Off_Pragmas table
6948
6949 2008-03-26  GNAT Script  <nobody@adacore.com>
6950
6951         * Make-lang.in: Makefile automatically updated
6952
6953 2008-03-26  Robert Dewar  <dewar@adacore.com>
6954
6955         * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
6956         par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
6957         removed, use Chars (Pragma_Identifier (..  instead, adjustments
6958         throughout to accomodate this change.
6959
6960         * s-pooglo.ads, s-pooloc.ads: Minor comment updates
6961
6962         * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
6963         Einfo.Set_Needs_Debug_Info)
6964
6965 2008-03-26  Robert Dewar  <dewar@adacore.com>
6966
6967         * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
6968         Add description for the new gnatstub option '--header-file'
6969         clarification of -gnatwz/-gnatwZ
6970         Add a "Irix-Specific Considerations" section to document the need to
6971         set LD_LIBRARY_PATH when using the default shared runtime library.
6972         Added documentation for both gcov and gprof.
6973
6974         * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
6975         messages that are not suppressed when clients are compiled.
6976         Add documentation of s-pooglo s-pooloc
6977         Document the new GNAT.Serial_Communications API.
6978         Add documentation for 'Old attribute
6979         Add description of pragma Optimize_Alignment
6980
6981         * ug_words: Add entries for -gnatw.w -gnatw.W
6982
6983         * usage.adb: Add line for -gnatw.w (warn on warnings off)
6984
6985 2008-03-25  Eric Botcazou  <ebotcazou@adacore.com>
6986
6987         Revert
6988         2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
6989         PR ada/35186
6990         * decl.c (maybe_pad_type): Avoid padding an integral type when
6991         bumping its alignment is sufficient.
6992
6993 2008-03-25  Arnaud Charlet  <charlet@adacore.com>
6994
6995         * exp_ch6.adb, exp_disp.adb: Update copyright notice.
6996         Fix wrong formatting (lines too long)
6997
6998 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6999
7000         * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
7001         a-calend-vms.adb, a-calend.adb, a-calend.ads,
7002         a-calfor.adb, a-chahan.ads, a-chtgke.adb,
7003         a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
7004         a-cohama.ads, a-comlin.ads, a-coorse.adb,
7005         a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
7006         a-except-2005.ads, a-except.adb, a-except.ads,
7007         a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
7008         a-exextr.adb, a-filico.ads, a-finali.ads,
7009         a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
7010         a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
7011         a-sequio.ads, a-strbou.ads, a-strfix.adb,
7012         checks.adb, exp_ch3.adb, exp_ch4.adb,
7013         exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
7014         exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
7015         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
7016         exp_dbug.ads, exp_disp.adb, exp_dist.adb,
7017         exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
7018
7019 2008-03-24  Robert Dewar  <dewar@adacore.com>
7020
7021         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
7022         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
7023         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
7024         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
7025         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
7026         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
7027         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
7028         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
7029         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
7030         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
7031         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
7032         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
7033         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
7034         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
7035         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
7036         double spaced if it fits on one line and otherwise single spaced.
7037
7038 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7039
7040         PR documentation/15479
7041         * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
7042         (doc/gnat_ugn_unw.texi): ... this, and adjusted.
7043         (doc/gnat_ugn.info): Renamed from ...
7044         (doc/gnat_ugn_unw.info): ... this.
7045         (doc/gnat_ugn.dvi): Renamed from ...
7046         (doc/gnat_ugn_unw.dvi): ... this.
7047         (doc/gnat_ugn.pdf): Renamed from ...
7048         (doc/gnat_ugn_unw.pdf): ... this.
7049         (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
7050         Adjusted.
7051         * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
7052         unconditionally to gnat_ugn.info.  Fix cross references to the
7053         GNAT Reference Manual.  Convert links to the GCC, GDB, Emacs,
7054         and GNU make manuals to be proper texinfo links.
7055         * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
7056
7057 2008-03-21  Olivier Hainque  <hainque@adacore.com>
7058
7059         * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
7060         ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
7061
7062 2008-03-21  Eric Botcazou  <ebotcazou@adacore.com>
7063
7064         * trans.c (addressable_p): Add notes on addressability issues.
7065
7066 2008-03-21  Olivier Hainque  <hainque@adacore.com>
7067             Ed Schonberg  <schonberg@adacore.com>
7068
7069         * trans.c (addressable_p): Accept COND_EXPR when both arms
7070         are addressable.
7071         (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
7072         (call_to_gnu): Do not use name reference in the error message
7073         for a misaligned by_reference_parameter. The actual may be a
7074         general expression.
7075
7076 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
7077
7078         * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
7079
7080 2008-03-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7081
7082         * gnat_rm.texi (Implementation Defined Characteristics)
7083         (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
7084         appropriate.
7085         * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
7086         (Switches for gnatchop, Installing a library): Likewise.
7087
7088 2008-03-10  Eric Botcazou  <ebotcazou@adacore.com>
7089
7090         * trans.c (emit_range_check): Do not emit the check if the base type
7091         of the expression is the type against which its range must be checked.
7092
7093 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7094
7095         * decl.c (maybe_pad_type): Use value_factor_p.
7096
7097 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7098
7099         * lang.opt (nostdlib): Move around.
7100         * misc.c (gnat_handle_option): Fix formatting.
7101         (gnat_dwarf_name): Move around.
7102         * trans.c (Case_Statement_to_gnu): Fix formatting.
7103         (gnat_to_gnu): Likewise.
7104         * utils.c (aggregate_type_contains_array_p): Likewise.
7105         (create_subprog_decl): Likewise.
7106
7107 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7108
7109         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
7110         bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
7111
7112 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7113
7114         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
7115         BIGGEST_ALIGNMENT when capping the alignment of records with
7116         strict alignment and size clause.
7117
7118 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7119
7120         * lang-specs.h: Pass -gnatwa if -Wall is passed.
7121         * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
7122         and -Wuninitialized.
7123         (gnat_post_options): Clear warn_unused_parameter.
7124
7125 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7126
7127         * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
7128         aligned bit-fields, bumping the alignment of the record type if deemed
7129         profitable.
7130         (value_factor_p): Return false instead of 0.
7131
7132 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7133
7134         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
7135         for scalar types with small alignment.
7136
7137 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7138
7139         * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
7140         from that of the front-end's end label.
7141         (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
7142         from that of the loop label.
7143
7144 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
7145
7146         * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
7147         comment for the packed array type case.
7148         * utils.c (build_template): Use a loop to strip padding or
7149         containing records for justified modular types.
7150
7151 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
7152
7153         * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
7154         large alignments specified for types.
7155         (validate_alignment): Minor cleanup.
7156
7157 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
7158
7159         * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
7160         (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
7161         the component for packing, if possible, as well as if a component
7162         size clause is specified.
7163         <E_Record_Subtype>: For an array type used to implement a packed
7164         array, get the component type from the original array type.
7165         Try to get a smaller form of the component for packing, if possible,
7166         as well as if a component size clause is specified.
7167         (round_up_to_align): New function.
7168         (make_packable_type): Add in_record parameter.
7169         For a padding record, preserve the size.  If not in_record and the
7170         size is too large for an integral mode, attempt to shrink the size
7171         by lowering the alignment.
7172         Ditch the padding bits of the last component.
7173         Compute sizes and mode manually, and propagate the RM size.
7174         Return a BLKmode record type if its size has shrunk.
7175         (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
7176         Use Original_Array_Type to retrieve the type in case of an error.
7177         Adjust call to make_packable_type.
7178         (gnat_to_gnu_field): Likewise.
7179         (concat_id_with_name): Minor tweak.
7180         * trans.c (larger_record_type_p): New predicate.
7181         (call_to_gnu): Compute the nominal type of the object only if the
7182         parameter is by-reference.  Do the conversion actual type -> nominal
7183         type if the nominal type is a larger record.
7184         (gnat_to_gnu): Do not require integral modes on the source type to
7185         avoid the conversion for types with identical names.
7186         (addressable_p): Add gnu_type parameter.  If it is specified, do not
7187         return true if the expression is not addressable in gnu_type.
7188         Adjust recursive calls.
7189         * utils.c (finish_record_type): Remove dead code.
7190
7191 2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
7192
7193         PR ada/35186
7194         * decl.c (maybe_pad_type): Avoid padding an integral type when
7195         bumping its alignment is sufficient.
7196
7197 2008-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7198
7199         * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
7200         * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
7201         statement.
7202         * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
7203         gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
7204         sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
7205         code output strings.
7206         * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
7207         system-vms_64.ads: Fix typos in ada source code comments.
7208         * sinfo-cn.adb: Remove incomplete sentence.
7209
7210         PR documentation/15479
7211         * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
7212
7213 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
7214
7215         PR ada/22255
7216         * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
7217
7218 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
7219
7220         PR ada/34799
7221         * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
7222         that underlying type is present.
7223
7224 2008-02-26  Tom Tromey  <tromey@redhat.com>
7225
7226         * misc.c (internal_error_function): Remove test of
7227         USE_MAPPED_LOCATION.
7228         * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
7229         (Sloc_to_locus): Remove old location code.
7230
7231 2008-02-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7232
7233         * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
7234         `i.e.' by adding comma or `@:' as appropriate.
7235         * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
7236         plain characters `C', use `@samp{C}'.
7237         * gnat_ugn.texi (File Naming Rules, About gnatkr)
7238         (Krunching Method): Likewise.
7239
7240         * gnat_ugn.texi (Conventions): List environment variables and
7241         metasyntactic variables.
7242         (Compiling Programs): Fix notation of metasyntactic variables.
7243         Add @file where appropriate.  Use @file for file extensions,
7244         @samp for strings.
7245         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
7246         instead of @file, @env instead of @code.
7247
7248 2008-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7249
7250         PR documentation/15479
7251         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
7252         and `...' with `@dots{}' or `@enddots{}'.
7253
7254         PR documentation/15479
7255         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
7256         use @command instead of @code, @option instead of @samp or @code,
7257         @code instead of @var, @samp instead of @file.
7258
7259         PR documentation/15479
7260         * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
7261         in Makefile rules, by using `&&' rather than `;'.
7262
7263 2008-02-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7264
7265         PR documentation/15479
7266         * gnat_ugn.texi: In non-code, avoid space before colon.
7267         (Regular Expressions in gnatfind and gnatxref): Fix indentation.
7268         (Examples of gnatxref Usage): Use @command{vi} instead of
7269         @file{vi}.
7270         (Character Set Control): Do not use @code for UTF-8.
7271         (Validity Checking): Fix typo "NaNs" instead of "NaN's".  Do not
7272         use @code for IEEE.
7273         * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
7274         sample.
7275         * gnat_rm.texi, gnat_ugn.texi: Fix typos.  Bump copyright years.
7276
7277 2008-02-11  Joel Sherrill  <joel.sherrill@oarcorp.com>
7278
7279         PR ada/35143
7280         * env.c: Add __rtems__ to if defined.
7281         * s-osinte-rtems.adb: Add To_Target_Priority.  Fix formatting.
7282         * s-osinte-rtems.ads: Add To_Target_Priority prototype and
7283         PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants.  Add
7284         pragma Convention as required.
7285         * gsocket.h: Make compile in and out of RTS.
7286         * Makefile.in: Add system-rtems.ads.  Build DEC extensions.
7287         Use g-soccon-rtems.ads.
7288         * g-soccon-rtems.ads, system-rtems.ads: New files.
7289
7290 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7291
7292         PR other/35107
7293         * Make-lang.in (gnat1): Add $(GMPLIBS).
7294
7295 2008-01-26  Eric Botcazou  <ebotcazou@adacore.com>
7296
7297         * decl.c (components_to_record): Improve comment.
7298
7299 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
7300
7301         * decl.c (components_to_record): Do not reuse the empty union type
7302         if there is a representation clause on the record.
7303         * trans.c (addressable_p): Return true for INTEGER_CST.
7304
7305 2008-01-21  Eric Botcazou  <ebotcazou@adacore.com>
7306
7307         * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
7308         in pointer arithmetics.
7309         * utils2.c (build_allocator): Likewise.
7310
7311 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
7312
7313         * utils.c (build_function_stub): Properly build the call expression.
7314
7315 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
7316
7317         * decl.c (gnat_to_gnu_entity) <object>: Process renamings
7318         before converting the expression to the type of the object.
7319         * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
7320         Stabilize constructors for special wrapping types.
7321
7322 2008-01-13  Eric Botcazou  <ebotcazou@adacore.com>
7323
7324         * trans.c (call_to_gnu): Invoke the addressable_p predicate only
7325         when necessary.  Merge some conditional statements.  Update comments.
7326         Rename unchecked_convert_p local variable to suppress_type_conversion.
7327         Do not suppress conversions in the In case.
7328         (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
7329         into account on non strict-alignment platforms.
7330
7331 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
7332
7333         * utils.c (aggregate_type_contains_array_p): New predicate.
7334         (create_field_decl): In a packed record, force byte alignment
7335         for fields without specified position that contain an array.
7336
7337 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
7338
7339         * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
7340
7341 2008-01-10  John David Anglin  <dave.anglin.@nrc-cnrc.gc.ca>
7342
7343         PR ada/34466
7344         * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
7345         sysconf call.
7346         (bit_field): New packed boolean type used by cpu_set_t.
7347         (cpu_set_t): New type corresponding to the C type with
7348         the same name. Note that on the Ada side we use a bit
7349         field array for the affinity mask. There is not need
7350         for the C macro for setting individual bit.
7351         (pthread_setaffinity_np): New imported routine.
7352
7353 2008-01-03  Tero Koskinen  <tero.koskinen@iki.fi>
7354
7355         PR ada/34647
7356         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
7357         on OpenBSD as is done on other BSD systems.
7358
7359         PR ada/34645
7360         * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
7361         getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
7362         I/O.
7363
7364         PR ada/34644
7365         * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
7366         clearenv().
7367
7368         PR ada/34646
7369         * init.c (__gnat_error_handler, __gnat_install_handler,
7370         __gnat_init_float): Define for OpenBSD.
7371
7372         * initialize.c (__gnat_initialize): Define for OpenBSD.
7373
7374 2007-12-27  Samuel Tardieu  <sam@rfc1149.net>
7375
7376         PR ada/34553
7377         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
7378         instead of mktemp() or tmpnam() on NetBSD.
7379
7380 2007-12-23  Eric Botcazou  <ebotcazou@adacore.com>
7381
7382         * trans.c (call_to_gnu): Make the temporary for non-addressable
7383         In parameters passed by reference.
7384         (addressable_p): Return true for STRING_CST and CALL_EXPR.
7385
7386 2007-12-19  Robert Dewar  <dewar@adacore.com>
7387
7388         * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
7389         Add pragma Warnings (Off) for unassigned IN OUT arguments
7390
7391         * sem_warn.adb (Output_Reference): Suppress messages for internal names
7392         (Check_References): Extensive changes to tune up warnings
7393         (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
7394         (Has_Pragma_Unmodifed_Check_Spec): New function
7395         (Check_References): Implement pragma Unmodified
7396         (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
7397
7398         * par-prag.adb: Dummy entry for pragma Unmodified
7399
7400         * sem_prag.adb: Implement pragma Unmodified
7401
7402         * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
7403         (Proc_Next_Component_Or_Discriminant): Fix typo.
7404         Update comments.
7405
7406         * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
7407         Unmodified.
7408         (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
7409         because the former already takes care of discarding the result.
7410         (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
7411         Add comment.
7412
7413         * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
7414
7415 2007-12-19  Eric Botcazou  <ebotcazou@adacore.com>
7416
7417         * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
7418         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
7419         system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
7420         system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
7421         system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7422         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7423         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
7424         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
7425         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7426         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
7427         (Dynamic_Trampolines_Used): Delete.
7428
7429         * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
7430         Turn on stack probing mechanism on LynxOS.
7431
7432 2007-12-19  Bob Duff  <duff@adacore.com>
7433
7434         * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
7435         the resulting tail recursion by hand. This prevents running out of
7436         memory on deeply nested concatenations, since Field2 is where the left
7437         operand of concatenations is stored.
7438         Fix bug (was returning OK_Orig in some cases). Fix return subtype to
7439         clarify that it can only return OK or Abandon.
7440
7441         * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
7442         operand by iteration, in order to avoid running out of memory on
7443         deeply-nested concatenations. Use the Parent pointer to get back up the
7444         tree.
7445         (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
7446          Resolve_Op_Concat_Rest): New procedures split out of
7447         Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
7448         clearer.
7449
7450         * checks.adb (Remove_Checks): Use Traverse_Proc instead of
7451         Traverse_Func, because the former already takes care of discarding the
7452         result.
7453
7454         * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
7455         because the former already takes care of discarding the result.
7456         (Remove_Warning_Messages): Use appropriate subtype for Status and
7457         Discard
7458
7459 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7460
7461         * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
7462         discriminants forces expansion of the aggregate into assignments.
7463         (Init_Record_Controller):  If the type of the aggregate is untagged and
7464         is not inherently limited, the record controller is not limited either.
7465
7466 2007-12-19  Robert Dewar  <dewar@adacore.com>
7467
7468         * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
7469         handling compile time known size of record or array (case of front end
7470         layout active, e.g. in GNAAMP).
7471
7472 2007-12-19  Javier Miranda  <miranda@adacore.com>
7473
7474         * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
7475         that forces the construction of static dispatch tables in case of
7476         record subtypes.
7477
7478 2007-12-19  Robert Dewar  <dewar@adacore.com>
7479
7480         * exp_ch9.adb (Null_Statements): Moved to library level
7481         (Trivial_Accept_OK): New function
7482         (Expand_Accept_Declaration): Use Trivial_Accept_OK
7483         (Expand_N_Accept_Statement): Use Trivial_Accept_OK
7484
7485 2007-12-19  Robert Dewar  <dewar@adacore.com>
7486
7487         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
7488         in complex case where array is Volatile.
7489
7490 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7491
7492         * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
7493         properly the Ada2005 rules concerning when the current instance of a
7494         record type is aliased.
7495
7496 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7497
7498         * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
7499         mangled declaration
7500         (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
7501         declarations.
7502         (P_Variant_Part): Cleaner patch for parenthesized discriminant
7503
7504 2007-12-19  Vincent Celier  <celier@adacore.com>
7505
7506         * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
7507         package is not known
7508
7509         * prj-attr.ads (Unknown_Package): New constant
7510         Do not crash when an unknown package is in several projects
7511
7512         * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
7513         ignored
7514
7515         * prj-nmsc.adb (Check): Remove obsolete code related to no longer
7516         existing package Language_Processing.
7517
7518 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7519             Gary Dismukes  <dismukes@adacore.com>
7520             Samuel Tardieu  <sam@rfc1149.net>
7521
7522         PR ada/15803, ada/15805
7523         * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
7524         illegal access subtypes when there is a constrained partial view.
7525         (Check_For_Premature_Usage): New procedure inside
7526         Access_Subprogram_Declaration for checking that an access-to-subprogram
7527         type doesn't reference its own name within any formal parameters or
7528         result type (including within nested anonymous access types).
7529         (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
7530         (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
7531         context is an access_to_variable, the expression cannot be an
7532         access_to_constant.
7533
7534 2007-12-19  Bob Duff  <duff@adacore.com>
7535
7536         * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
7537         (Analyze_Concatenation): Use iteration instead of recursion in order
7538         to avoid running out of stack space for deeply nested concatenations.
7539
7540 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7541             Gary Dismukes  <dismukes@adacore.com>
7542
7543         * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
7544         whose renamed entity is a subprogram that requires overriding.
7545         (Premature_Usage): Test for the case of N_Full_Type_Declaration when
7546         issuing an error for premature usage and issue a message that says
7547         'type' rather than 'object'.
7548
7549 2007-12-19  Gary Dismukes  <dismukes@adacore.com>
7550
7551         PR ada/34149
7552         * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
7553         presence of a statically tagged operand (Present (Static_Tag)) with
7554         test for Indeterm_Ancestor_Call when determining whether to propagate
7555         the static tag to tag-indeterminate operands (which forces dispatching
7556         on such calls).
7557         (Check_Controlling_Formals): Ada2005, access parameters can have
7558         defaults.
7559         (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
7560         not insert subprogram in list of primitive operations if already there.
7561
7562 2007-12-19  Tristan Gingold  <gingold@adacore.com>
7563
7564         * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
7565         global variable.
7566
7567 2007-12-19  Thomas Quinot  <quinot@adacore.com>
7568
7569         Part of PR ada/33688
7570         * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
7571         datagram info on Linux.
7572
7573 2007-12-19  Vincent Celier  <celier@adacore.com>
7574
7575         * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
7576         that the source path name is always found in the dependencies.
7577
7578 2007-12-19  Robert Dewar  <dewar@adacore.com>
7579
7580         * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
7581         Fix name of Wide_Wide_Latin_1/9 file names
7582         Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
7583         Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
7584         Add missing documentation for Ada.Command_Line.Response_File
7585         Update list of warning letters for Warnings pragma
7586         Add documentation for pragma Unmodified
7587
7588 2007-12-19  Samuel Tardieu  <sam@rfc1149.net>
7589
7590         * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
7591
7592 2007-12-17  Arnaud Charlet  <charlet@adacore.com>
7593
7594         * s-vxwork-alpha.ads: Removed, no longer used.
7595
7596 2007-12-15  Jakub Jelinek  <jakub@redhat.com>
7597
7598         * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
7599
7600 2007-12-13  Samuel Tardieu  <sam@rfc1149.net>
7601
7602         PR ada/34360
7603         * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
7604         mlib-tgt-specific.adb.
7605
7606 2007-12-13  Bob Duff  <duff@adacore.com>
7607
7608         * trans.c (Attribute_to_gnu): Check for violations of the
7609         No_Implicit_Dynamic_Code restriction. This checking used to be done in
7610         the front end, but is moved here so we can make it more accurate.
7611
7612 2007-12-13  Pascal Obry  <obry@adacore.com>
7613
7614         * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
7615          version is provided for older GNU/Linux distribution not
7616          supporting thread affinity sets.
7617
7618         * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
7619         call.
7620         (bit_field): New packed boolean type used by cpu_set_t.
7621         (cpu_set_t): New type corresponding to the C type with
7622         the same name. Note that on the Ada side we use a bit
7623         field array for the affinity mask. There is not need
7624         for the C macro for setting individual bit.
7625         (pthread_setaffinity_np): New imported routine.
7626
7627         * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
7628         no null.
7629         (Create_Task): Set the processor affinity mask if information
7630         is present.
7631
7632         * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
7633
7634 2007-12-13  Robert Dewar  <dewar@adacore.com>
7635
7636         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
7637         s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
7638         s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
7639         s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
7640         s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
7641         s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
7642         s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
7643         i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
7644         for subprogram pointers.
7645
7646         * g-ctrl_c.adb: New file.
7647
7648         * g-ctrl_c.ads (Install_Handler): New body.
7649
7650         * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
7651         instead of obsolete function Is_Always_Inlined.
7652         (Freeze_Entity): check for tagged type in imported C subprogram
7653         (Freeze_Entity): check for 8-bit boolean in imported C subprogram
7654         (Freeze_Entity): check for convention Ada subprogram pointer in
7655         imported C subprogram.
7656         (Freeze_Fixed_Point_Type): In the case of a base type where the low
7657         bound would be chopped off and go from negative to zero, force
7658         Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
7659         bound) so that the size computation for the base type will take
7660         negative values into account.
7661
7662 2007-12-13  Eric Botcazou  <ebotcazou@adacore.com>
7663             Bob Duff  <duff@adacore.com>
7664             Tristan Gingold  <gingold@adacore.com>
7665
7666         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
7667         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7668         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7669         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
7670         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
7671         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7672         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
7673         system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
7674         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
7675         system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
7676         system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
7677         (Always_Compatible_Rep): New flag to control trampolines globally.
7678         (Dynamic_Trampolines_Used): New flag for implementing the
7679         No_Implicit_Dynamic_Code restriction more correctly (not yet used,
7680         and not yet set correctly for some targets).
7681
7682         * s-taprop-vxworks.adb: Use stack limit method of stack checking.
7683         Simply indirectly call s-stchop when a task is created.
7684
7685         * ali.ads:
7686         New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
7687         appears as an argument (entries A) in an ALI file.
7688
7689         * fe.h (Stack_Check_Limits): Declare new target parameter.
7690         (Check_Implicit_Dynamic_Code_Allowed): New procedure.
7691
7692         * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
7693         This variable is declared in C to be sure not subject to elaboration
7694         code.
7695         (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
7696         Storage_Error.
7697
7698         * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
7699         (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
7700
7701         * s-stchop.ads: Add comments.
7702
7703         * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
7704         limit method of stack checking.
7705
7706         * s-stchop-limit.ads: New file.
7707
7708 2007-12-13  Robert Dewar  <dewar@adacore.com>
7709
7710         * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
7711         a-cihama.adb, g-awk.adb,
7712         s-inmaop-posix.adb: Update handling of assigned value/unreferenced
7713         warnings
7714
7715         * exp_smem.adb: Update handling of assigned value/unreferenced warnings
7716
7717         * sem.adb: Update handling of assigned value/unreferenced warnings
7718
7719         * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
7720
7721         * lib-xref.ads: Improve documentation for k xref type
7722
7723         * lib-xref.adb:
7724         Update handling of assigned value/unreferenced warnings
7725         (Generate_Reference): Warning for reference to entity for which a
7726         pragma Unreferenced has been given should be unconditional.
7727         If the entity is a discriminal, mark the original
7728         discriminant as referenced.
7729
7730         * sem_warn.ads, sem_warn.adb
7731         (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
7732         no entities referenced in package
7733         (Check_One_Unit): Don't give message about no entities referenced in
7734         a package if a pragma Unreferenced has appeared.
7735         Handle new warning flag -gnatw.a/-gnatw.A
7736         Update handling of assigned value/unreferenced warnings
7737
7738         * atree.h: Add flags up to Flag247
7739         (Flag231): New macro.
7740
7741 2007-12-13  Jose Ruiz  <ruiz@adacore.com>
7742
7743         * adaint.h: (__gnat_plist_init): Not defined for RTX.
7744
7745         * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
7746         RTX systems.
7747
7748         * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
7749         (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
7750         EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
7751         GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
7752
7753         * mingw32.h:
7754         Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
7755
7756         * sysdep.c (winflush_function for RTX): Procedure that does nothing
7757         since we only have problems with Windows 95/98, which are not
7758         supported by RTX.
7759         (__gnat_ttyname): Return the empty string on Nucleus, just as
7760         done on vxworks.
7761
7762 2007-12-13  Robert Dewar  <dewar@adacore.com>
7763
7764         * a-textio.adb, a-textio.ads:
7765         Extensive changes to private part for wide character encoding
7766
7767         * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
7768         (Look_Ahead): Fix mishandling of encoded sequences
7769         Move declaration of Wch_Con to private part (should not be visible)
7770
7771         * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
7772         UTF-8. Probably this is never used, but if it is, brackets is
7773         clearly correct.
7774
7775         * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
7776         setting wide character encoding for no main program case and when
7777         encoding is specified using -W?
7778         Initialize stack limit of environment task if stack limit method of
7779         stack checking is enabled.
7780         (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
7781         (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
7782         (Get_Main_Unit_Name): New function.
7783         (Gen_Adainit_Ada): Add call to main program for .NET when needed.
7784         (Gen_Output_File): Set Bind_Main_Program to True for .NET
7785
7786         * bindusg.adb: Add line for -Wx switch
7787
7788         * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
7789         Add comments
7790         Add new useful constant WC_Longest_Sequences
7791
7792         * switch-b.adb: Clean up handling of -Wx switch
7793         For -gnatWx, set Wide_Character_Encoding_Method_Specified
7794
7795         * switch-c.adb: -gnatg activates warning on assertion errors
7796         For -gnatWx, set Wide_Character_Encoding_Method_Specified
7797
7798         * s-wchcon.adb: (Is_Start_Of_Encoding): New function
7799
7800 2007-12-13  Robert Dewar  <dewar@adacore.com>
7801             Ed Schonberg  <schonberg@adacore.com>
7802
7803         * a-ngcoty.adb: New pragma Fast_Math
7804
7805         * opt.adb: New pragma Fast_Math
7806
7807         * par-prag.adb:
7808         Add Implemented_By_Entry to the list of pragmas which do not require any
7809         special processing.
7810         (Favor_Top_Level): New pragma.
7811         New pragma Fast_Math
7812
7813         * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
7814         (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
7815         Expand_Allocator_Expression): Take into account VM_Target
7816         (Expand_Attribute, case 'Identity):  Handle properly the case where
7817         the prefix is a task interface.
7818         New pragma Fast_Math
7819
7820         * par.adb (Next_Token_Is): New function
7821         (P_Pragma): Add Skipping parameter
7822         (U_Left_Paren): New procedure
7823         (U_Right_Paren): New procedure
7824         New pragma Fast_Math
7825
7826         * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
7827         subunit
7828         New pragma Fast_Math
7829
7830         * sem_prag.adb: Add significance value to table Sig_Flag for pragma
7831         Implemented_By_Entry.
7832         (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
7833         (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
7834         items, since it can apply to more than one overloadable entity. Set
7835         new flag Has_Pragma_Inline_Always for Inline_Always case.
7836         (Analyze_Pragma, case Complex_Representation): Improve error message.
7837         (Analyze_Pragma, case Assert): When assertions are disabled build the
7838         rewritten code with Sloc of expression rather than pragma, so new
7839         warning about failing is not deleted.
7840         (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
7841         protected types and update error message to reflect that. Test whether
7842         the protected type is allowed for the pragma (an error is issued if the
7843         type has any entries, or components that do not have preelaborable
7844         initialization).
7845         New pragma Fast_Math
7846         (Analyze_Pragma, case No_Return): Handle generic instance
7847
7848         * snames.h, snames.ads, snames.adb:
7849         Add new predefined name for interface primitive _Disp_Requeue.
7850         New pragma Fast_Math
7851
7852         * a-tags.ads, a-tags.adb: New calling sequence for
7853         String_To_Wide_[Wide_]String
7854         (Secondary_Tag): New subprogram.
7855
7856         * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
7857         from Exp_Attr
7858         New calling sequence for String_To_Wide_[Wide_]String
7859         (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
7860         the use of the secondary stack for image routines.
7861
7862         * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
7863         calling sequence for String_To_Wide_[Wide_]String
7864
7865         * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
7866         Ada 95 mode
7867         (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
7868         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7869
7870         * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
7871         (P_Formal_Part): Use Skipping parameter in P_Pragma call
7872         to improve error recovery
7873
7874         * par-util.adb (Next_Token_Is): New function
7875         (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
7876
7877         * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
7878         semicolon if missing
7879         (P_Pragma): Implement new Skipping parameter
7880         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7881         Fix location of flag for unrecognized pragma message
7882
7883         * par-tchk.adb (U_Left_Paren): New procedure
7884         (U_Right_Paren): New procedure
7885
7886 2007-12-13  Geert Bosch  <bosch@adacore.com>
7887
7888         * a-tifiio.adb:
7889         (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
7890         the second or later Scaled_Divide would omit leading zeroes,
7891         resulting in too few digits produced and a Layout_Error as result.
7892         (Put): Initialize Pos.
7893
7894 2007-12-13  Robert Dewar  <dewar@adacore.com>
7895
7896         atree.ads, atree.adb (Flag231..Flag247): New functions
7897         (Set_Flag231..Set_Flag247): New procedures
7898         (Basic_Set_Convention): Rename Set_Convention to be
7899         Basic_Set_Convention
7900         (Nkind_In): New functions
7901         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7902
7903         * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
7904         instead
7905          of obsolete function Is_Always_Inlined
7906         (Register_Predefined_DT_Entry): Initialize slots of the second
7907         secondary dispatch table.
7908         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7909         (Expand_N_Function_Call): Remove special provision for stack checking.
7910
7911         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
7912         Include _Disp_Requeue in the list of predefined operations.
7913         (Find_Interface_ADT): Modified to fulfill the new specification.
7914         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7915
7916         * par-ch4.adb, nlists.ads, nlists.adb:
7917         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7918
7919         * sinfo.ads, sinfo.adb: (Nkind_In): New functions
7920         Fix location of flag for unrecognized pragma message
7921
7922         * sem_ch7.adb: Use Nkind_In
7923
7924 2007-12-13  Vincent Celier  <celier@adacore.com>
7925
7926         * opt.ads:
7927         Indicate what flags are used by the Project Manager, gprbuild and
7928         gprclean.
7929         (Opt.Follow_Links_For_Dirs): New flag
7930         (Warn_On_Assertion_Failure): New flag
7931         (Wide_Character_Encoding_Method_Specified): New flag
7932         (Suppress_All_Inlining): New switch set by -fno-inline
7933         (Real_VMS_Target): New flag
7934         New pragma Fast_Math
7935
7936 2007-12-13  Robert Dewar  <dewar@adacore.com>
7937
7938         * back_end.adb: Recognize -fno-inline
7939
7940 2007-12-13  Robert Dewar  <dewar@adacore.com>
7941
7942         * checks.adb: Fix optimization problem with short-circuited form
7943
7944 2007-12-13  Bob Duff  <duff@adacore.com>
7945
7946         * clean.adb (Usage): Add line for -aP
7947         (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
7948         with a parameter "procedure Usage", instead of passing a pointer to a
7949         procedure. This is to eliminate trampolines (since the Usage procedure
7950         is often nested in a main procedure, and it would be inconvenient to
7951         unnest it).
7952
7953         * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
7954         to be generic, with a parameter "procedure Callback (...)", instead of
7955         passing a pointer to a procedure. This is to eliminate trampolines
7956         (since the Callback procedure is usually nested).
7957
7958         * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
7959         gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
7960         (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
7961
7962         * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
7963         Use the generic Heap_Sort_G instead of Heap_Sort_A.
7964
7965 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7966
7967         * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
7968         (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
7969         (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
7970         (Renamed_In_Spec): New flag
7971         (Has_Pragma_Inline_Always): New flag
7972         Add missing doc for pragma Obsolescent_Warning
7973         Add missing doc for 17 additional unused flags (230-247)
7974         (Is_Derived_Type): Remove condition "not Is_Generic_Type".
7975         Alphabetize with clauses.
7976         Separate Is_Thunk and Has_Thunks flags
7977         (Write_Entity_Flags): Add forgotten entry for Has_Thunks
7978         (Related_Interface): Renamed to Related_Type.
7979         (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
7980         (Set_Is_Flag): Restrict the assertion.
7981
7982 2007-12-13  Vincent Celier  <celier@adacore.com>
7983
7984         * errout.adb (Output_Source_Line): Do not keep a trailing space after
7985         the source line number if the source line is empty.
7986
7987 2007-12-13  Geert Bosch  <bosch@adacore.com>
7988
7989         * eval_fat.adb (Decompose_Int): Handle argument of zero.
7990         (Compose): Remove special casing of zero.
7991         (Exponent): Likewise.
7992         (Fraction): Likewise.
7993         (Machine): Likewise.
7994         (Decompose): Update comment.
7995
7996 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
7997
7998         * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
7999         limited ancestor part, initialize controllers of enclosing record
8000         before expanding ancestor aggregate.
8001         (Gen_Assign): If a component of the aggregate is box-initialized, add
8002         code to call Initialize if the component is controlled, and explicit
8003         assignment of null if the component is an access type.
8004
8005         Handle properly aggregates for limited types that appear in object
8006         declarations when the aggregate contains controlled values such as
8007         protected types.
8008         When expanding limited aggregates into individual components, do not
8009         call Adjust on controlled components that are limited.
8010
8011 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
8012
8013         * expander.adb: Take into account N_Subprogram_Renaming_Declaration
8014
8015 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8016
8017         * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
8018         predefined primitive _Disp_Requeue.
8019         (Make_Predefined_Primitive_Specs): Create the spec for predefined
8020         primitive _Disp_Requeue.
8021         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
8022         type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
8023         (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
8024         an interface type. In case of limited interfaces we now declare all the
8025         predefined primitives associated with synchronized interfaces as
8026         abstract.
8027         (Predef_Spec_Or_Body): For interface types generate abstract subprogram
8028         declarations.
8029         (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
8030         tagged type is an interface type and there is no user-defined equality
8031         function.
8032         Add also bodies of predefined primitives associated with synchronized
8033         interfaces.
8034         (Freeze_Record_Type): Do not build bodies of predefined primitives of
8035         interface types because they are now defined abstract.
8036         Add missing documentation.
8037         (Expand_Record_Controller): Update occurrence of Related_Interface
8038         to Related_Type.
8039         (Build_Offset_To_Top_Functions): Do nothing in case of VM.
8040         (Expand_N_Object_Declaration): Take into account VM_Target when handling
8041         class wide interface object declaration.
8042         (Expand_Previous_Access_Type): Do not create a duplicate master entity
8043         if the access type already has one.
8044         (Expand_N_Object_Declaration): Defend against attempt to validity check
8045         generic types. Noticed for -gnatVcf specified with previous errors.
8046
8047 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
8048
8049         * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
8050         Expand_Allocator_Expression): Take into account VM_Target
8051
8052         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
8053         secondary stack when VM_Target /= No_VM
8054
8055 2007-12-13  Javier Miranda  <miranda@adacore.com>
8056             Ed Schonberg  <schonberg@adacore.com>
8057
8058         * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
8059         Is_Complation_Unit by Is_Library_Level_Entity in the code
8060         that decides if the static dispatch tables need to be built.
8061         (Wrap_Transient_Declaration): Do not generate a finalization call if
8062         this is a renaming declaration and the renamed object is a component
8063         of a controlled type.
8064
8065 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
8066
8067         * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
8068         In the case where the renamed subprogram is a dereference, call
8069         Force_Evaluation on the prefix.
8070
8071 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8072             Ed Schonberg  <schonberg@adacore.com>
8073
8074         * exp_ch9.adb (Expand_N_Asynchronous_Select,
8075         Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
8076         comment reformatting.
8077         (Set_Privals): Inherit aliased flag from formal. From code reading.
8078         (Build_Simple_Entry_Call): Out parameters of an access type are passed
8079         by copy and initialized from the actual. This includes entry parameters.
8080         (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
8081         and Ada 2005 models of requeue.
8082         (Null_Statements): Still connsider do-end block null if it contains
8083         Unreferenced and Warnings pragmas.
8084         (Expand_N_Accept_Statement): Do not optimize away null do end if
8085         dispatching policy is other than defaulted.
8086         (Expand_N_Timed_Entry_Call): When the triggering statement is a
8087         dispatching call, manually analyze the delay statement.
8088         (Find_Parameter_Type): Move subprogram to Sem_Util.
8089
8090 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8091             Javier Miranda  <miranda@adacore.com>
8092
8093         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
8094         _Disp_Requeue occupies dispatch table slot number 15. Move
8095         _Disp_Timed_Select to slot 16.
8096         (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
8097         generate the spec and body of _Disp_Reqeueue.
8098         (Make_DT): Build and initialize the second dispatch table.
8099         Handle initialization of RC_Offset when the parent
8100         is a private type with variable size components.
8101         (Make_Secondary_DT): Complete documentation. Add support to
8102         initialize the second dispatch table.
8103         (Make_Tags): Generate the tag of the second dispatch table.
8104         (Register_Primitive): Add support to register primitives in the
8105         second dispatch table.
8106
8107 2007-12-13  Pascal Obry  <obry@adacore.com>
8108
8109         * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
8110         Windows. This signal is used by gnatmake to kill child processes for
8111         example.
8112
8113 2007-12-13  Javier Miranda  <miranda@adacore.com>
8114
8115         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
8116         support for generic dispatching constructor calls in which we need to
8117         locate the tag of a secondary dispatch table associated with an
8118         interface type to properly dispatch the call.
8119         (Expand_N_Attribute_Reference [case Address],
8120         Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
8121         handling of VM targets.
8122
8123 2007-12-13  Robert Dewar  <dewar@adacore.com>
8124             Ed Schonberg  <schonberg@adacore.com>
8125
8126         * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
8127         assert fail
8128
8129         * ug_words: Add entries for -gnatw.a -gnatw.A
8130
8131         * sem_res.adb (Set_String_Literal_Subtype): If the context of the
8132         literal is a subtype with non-static constraints, use the base type of
8133         the context as the base of the string subtype, to prevent type
8134         mismatches in gigi.
8135         (Resolve_Actuals): If the actual is an entity name, generate a
8136         reference before the actual is resolved and expanded, to prevent
8137         spurious warnings on formals of enclosing protected operations.
8138         (Analyze_Overloaded_Selected_Component): If type of prefix if
8139         class-wide, use visible components of base type.
8140         (Resolve_Selected_Component): Ditto.
8141         (Resolve_Short_Circuit): Detect case of pragma Assert argument
8142         evaluating to False, and issue warning message.
8143
8144         * usage.adb: Add lines for -gnatw.a and -gnatw.A
8145
8146 2007-12-13  Emmanuel Briot  <briot@adacore.com>
8147
8148         * g-calend.ads (No_Time): New constant, to represent an uninitialized
8149         time value
8150
8151         * g-catiio.ads, g-catiio.adb (Value): Added support for more date
8152         formats.
8153         (Month_Name_To_Number): New subprogram
8154
8155         * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
8156         letter to upper-case.
8157
8158 2007-12-13  Robert Dewar  <dewar@adacore.com>
8159             Ed Schonberg  <schonberg@adacore.com>
8160
8161         * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
8162
8163         * layout.adb (Resolve_Attribute, case 'Access): If designated type of
8164         context is a limited view, use non-limited view when available. If the
8165         non-limited view is an unconstrained array, this enforces consistency
8166         requirements in 3.10.2 (27).
8167         (Layout_Type): For an access type whose designated type is a limited
8168         view, examine its declaration to determine if it is an unconstrained
8169         array, and size the access type accordingly.
8170         (Layout_Type): Do not force 32-bits for convention c subprogram
8171         pointers in -gnatdm mode, only if real vms target.
8172
8173         * sem_attr.adb (Analyze_Access_Attribute): Use new flag
8174         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
8175         (Analyze_Access_Attribute,Attribute_Address): Remove checks for
8176         violations of the No_Implicit_Dynamic_Code restriction.
8177         (Resolve_Attribute, case 'Access): If designated type of context is a
8178         limited view, use non-limited view when available. If the non-limited
8179         view is an unconstrained array, this enforces consistency requirements
8180         in 3.10.2 (27).
8181         (Layout_Type): For an access type whose designated type is a limited
8182         view, examine its declaration to determine if it is an unconstrained
8183         array, and size the access type accordingly.
8184
8185 2007-12-13  Vincent Celier  <celier@adacore.com>
8186
8187         * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
8188         object directory of main project does not exist.
8189         On VMS, correctly set then environment variable for the source
8190         directories.
8191
8192 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
8193
8194         * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
8195         set to True this procedure will create the value of type REG_EXPAND_SZ.
8196         It was only possible to create REG_SZ values before.
8197
8198 2007-12-13  Robert Dewar  <dewar@adacore.com>
8199
8200         * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
8201         g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
8202         namet-sp.adb, namet-sp.ads: New files.
8203
8204         * g-speche.adb: Use generic routine in g-spchge
8205
8206         * s-wchcnv.ads, s-wchcnv.adb:
8207         Minor code cleanup (make formal type consistent with spec)
8208
8209         * namet.adb: Update comments.
8210
8211         * par-endh.adb (Evaluate_End_Entry): Use new
8212         Namet.Sp.Is_Bad_Spelling_Of function
8213
8214         * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
8215
8216         * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
8217         ancestor is an access type initialized with a box, set its type
8218         explicitly, for use in subsequent expansion.
8219         (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
8220         function
8221
8222 2007-12-13  Robert Dewar  <dewar@adacore.com>
8223
8224         * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
8225         access Vstring)
8226
8227 2007-12-13  Robert Dewar  <dewar@adacore.com>
8228
8229         * inline.adb (Back_End_Cannot_Inline): Use new flag
8230         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
8231
8232         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
8233         Has_Pragma_Inline_Always instead.
8234         of obsolete function Is_Always_Inlined
8235         (Build_Body_To_Inline): Same change
8236         (Cannot_Inline): Same change
8237         Do not give warning on exception raise in No_Return function
8238
8239         * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
8240         component has two inconsistent component clauses in the same record
8241         representation clause, favor the message that complains about
8242         duplication rather than inconsistency.
8243         Update comments.
8244         (Record_Representation_Clause): Do not warn on missing component
8245         clauses for inherited components of a type extension.
8246         (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
8247         an overloadable item if it is a pragma that can apply to multiple
8248         overloadable entities (e.g. Inline) because a pragma cannot be on
8249         more than one chain at a time.
8250         (Validate_Unchecked_Conversion): Add code to warn on unchecked
8251         conversion where one of the operands is Ada.Calendar.Time.
8252         (Analyze_Attribute_Definition_Clause): Fix typo in error message.
8253         For now, ignore Component_Size clause on VM targets, as done for
8254         pragma Pack.
8255
8256 2007-12-13  Emmanuel Briot  <briot@adacore.com>
8257             Vincent Celier  <celier@adacore.com>
8258
8259         * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
8260         string
8261         (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
8262         prj.ads
8263         (Hash): Move instantiation of System.HTable.Hash from spec to body
8264         (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
8265         systems, since we do not need to recompute the Name_Id for the canonical
8266         file name.
8267         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
8268         as a parameter. This parameter is in fact always "ada" in all calls, and
8269         we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
8270         while loading a project with 40000 files
8271
8272         * prj-attr.adb: Fix name of attribute Dependency_Driver
8273         Change the kind of indexing for attribute Root
8274
8275         * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
8276         variables already declared, in case constructions.
8277
8278         * prj-env.adb (Initialize): Reset Current_Source_Path_File and
8279         Current_Object_Path_File to No_Path.
8280
8281         * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
8282         ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
8283
8284         * prj-makr.adb: new parameter Current_Dir
8285
8286         * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
8287         Ada sources when language is not Ada.
8288         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
8289         (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
8290         (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
8291         (Locate_Directory): Always resolve links when computing Canonical_Path
8292         (Look_For_Sources): Make sure that Name_Buffer contains the file name
8293         in Source_Files before checking for the presence of a directory
8294         separator.
8295         Optimize calls to Name_Find when on case sensitive systems.
8296         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
8297         as a parameter.
8298         (Prj.Nmsc.Check): new parameter Current_Dir
8299         (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
8300         cannot be empty and the spec suffix cannot be the same as the body or
8301         separate suffix.
8302         (Get_Unit): When a file name can be of several unit kinds (spec, body or
8303         subunit), always consider the longest suffix.
8304         (Check_Configuration): Do not issue an error if there is no compiler
8305         for a language. Just issue a warning and ignore the sources for the
8306         language.
8307         (Check_Library_Attributes): Only check Library_Dir if Library_Name is
8308         not empty.
8309         (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
8310         (Unit_Exceptions): New hash table
8311         (Check_Naming_Schemes): Check if a file that could be a unit because of
8312         the naming scheme is not in fact a source because there is an exception
8313         for the unit.
8314         (Look_For_Sources): Put the unit exceptions in hash table
8315         Unit_Exceptions
8316         (Get_Unit_Exceptions): Give initial value No_Source to local variable
8317         Other_Part to avoid exception when code is compiled with validity
8318         checking.
8319         (Get_Sources_From_File): Check that there is no directory information
8320         in the file names.
8321         (Look_For_Sources): Check that there is no directory information in the
8322         list of file names in Source_Files.
8323         (Look_For_Sources): In multi-language mode, do not allow exception file
8324         names that are excluded.
8325         (Excluded_Sources_Htable): New hash table
8326         (Search_Directories.Check_File): New procedure to simplify
8327         Search_Directories.
8328         (Search_Directories): Do not consider excluded sources
8329         (Look_For_Sources): Populate Excluded_Sources_Htable before calling
8330         Search_Directories.
8331         (Get_Exceptions): Set component Lang_Kind of Source_Data
8332         (Get_Unit_Exceptions): Ditto
8333         (Search_Directories): Ditto
8334
8335         * prj-pars.adb: new parameter Current_Dir
8336
8337         * prj-part.ads, prj-part.adb:
8338         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
8339         (Opt.Follow_Links_For_Dirs): New flag
8340         (Project_Path_Name_Of): Cache information returned by this routine as
8341         Locate_Regular_File is a costly routine. The code to output a log
8342         information and the effective call to Locate_Regular_File is now
8343         factorized into a routine (code clean-up).
8344         (Parse, Parse_Single_Project): new parameter Current_Dir
8345         When main project file cannot be found, indicate in the error
8346         message the project path that was used to do the search.
8347
8348         * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
8349         (Prj.Proc.Process*): new parameter Current_Dir
8350
8351         * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
8352
8353 2007-12-13  Bob Duff  <duff@adacore.com>
8354
8355         * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
8356         procedure to be called from the back end to check the
8357         No_Implicit_Dynamic_Code restriction.
8358
8359 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
8360
8361         * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
8362         Fixes another case where RTE_Available_Call was ignored instead of being
8363         taken into account.
8364         (Load_Fail): Ditto.
8365
8366         * rtsfind.ads: Add new entries.
8367
8368 2007-12-13  Robert Dewar  <dewar@adacore.com>
8369
8370         * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
8371         g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
8372
8373         * scn.adb: Implement BOM recognition
8374
8375 2007-12-13  Thomas Quinot  <quinot@adacore.com>
8376             Ed Schonberg  <schonberg@adacore.com>
8377
8378         * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
8379         subprogram body that acts as its own spec may not have a non-private
8380         WITH clause on a private sibling.
8381         (Build_Unit_Name): If the parent unit in the name in a with_clause on a
8382         child unit is a renaming, create an implicit with_clause on that
8383         parent, and not on the unit it renames, to prevent visibility errors
8384         in the current unit.
8385
8386 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
8387
8388         * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
8389         renaming declaration, use the Slocs of the formal parameters from the
8390         declaration of the formal subprogram when creating the formal parameter
8391         entities in the renaming declaration.
8392         (Analyze_Formal_Type_Declaration): Change the placement of the error
8393         message concerning illegal known discriminants. It is now posted on the
8394         type rather than on the first discriminant. This change ensures early
8395         error report.
8396         (Freeze_Subprogram_Body): If the generic subprogram is nested within
8397         the package body that contains the instance, do not generate an
8398         out-of-place freeze node for the enclosing package.
8399         (Collect_Previous_Instantiations): Ignore internal instantiations
8400         generated for formal packages.
8401         (Validate_Derived_Type_Instance): Add a check that when a formal
8402         derived type is Known_To_Have_Preelab_Init then the actual type must
8403         have preelaborable initialization, and issue an error when this
8404         condition is violated.
8405
8406 2007-12-13  Robert Dewar  <dewar@adacore.com>
8407
8408         * s-imenne.adb, s-imenne.ads: New files.
8409
8410         * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
8411         s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
8412         s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
8413         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
8414         s-imgwch.ads: New calling sequence for Image routines to avoid sec
8415         stack usage.
8416
8417 2007-12-13  Javier Miranda  <miranda@adacore.com>
8418             Ed Schonberg  <schonberg@adacore.com>
8419
8420         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
8421         generation of spurious error if parent is an interface type; caused
8422         because predefined primitive bodies will be generated later by
8423         Freeze_Record_Type.
8424         (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
8425         flag.
8426         (Derive_Subprograms): Handle derivations of predefined primitives
8427         after all the user-defined primitives to ensure that they are
8428         found in proper order in instantiations.
8429         (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
8430         of Related_Interface to Related_Type.
8431         (Record_Type_Declaration): Minor reordering of calls to decorate the
8432         Tag component because the entity must have set its Ekind attribute
8433         before setting its Is_Tag attribute.
8434         (Analyze_Subtype_Declaration): In the case of subtypes with
8435         Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
8436
8437 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8438             Ed Schonberg  <schonberg@adacore.com>
8439
8440         * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
8441         statement to the list of contexts where a selected component with a
8442         concurrent tagged type prefix should yield a primitive operation.
8443         (Find_Primitive_Operation): Handle case of class-wide types.
8444         (Analyze_Overloaded_Selected_Component): If type of prefix is
8445         class-wide, use visible components of base type.
8446         (Resolve_Selected_Component): Ditto.
8447         (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
8448         formal of a generic subprogram. find candidate interpretations by
8449         scanning the list of generic formal declarations.:
8450         (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
8451         type from a limited_with_clause, and the full view is available, use it
8452         for subsequent semantic checks.
8453         (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
8454         (Find_Primitive_Operation): New function.
8455         (Analyze_Overloaded_Selected_Component): insert explicit dereference
8456         only once if several interpretations of the prefix yield an access type.
8457         (Try_Object_Operation): Code and comment cleanup.
8458         (Analyze_Selected_Component): Reorder local variables. Minot comment and
8459         code reformatting. When the type of the prefix is tagged concurrent, a
8460         correct interpretation might be available in the primitive and
8461         class-wide operations of the type.
8462
8463 2007-12-13  Robert Dewar  <dewar@adacore.com>
8464             Ed Schonberg  <schonberg@adacore.com>
8465
8466         * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
8467         renaming entry as subprogram using rename-as-body if subprogram spec
8468         frozen.
8469         (Use_One_Type): The clause is legal on an access type whose designated
8470         type has a limited view.
8471         (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
8472         (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
8473         (Analyze_Renamed_Primitive_Operation): new procedure to determine the
8474         operation denoted by a selected component.
8475         (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
8476         it can be an expression, possibly overloaded, that returns a task or
8477         an access to one.
8478
8479 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8480             Gary Dismukes  <dismukes@adacore.com>
8481
8482         * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
8483         requeue statement is dispatching. Do not emit an error when the name is
8484         not an entry and the context is a dispatching select. Add code to
8485         perform subtype conformance between the formals of the current entry
8486         and those of the target interface primitive.
8487         (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
8488         Timed_Entry_Call): Analyze the triggering statement as the first step of
8489         the processing. If this is a dispatching select, postpone the analysis
8490         of all select statements until the Expander transforms the select. This
8491         approach avoids generating duplicate identifiers after the Expander has
8492         replicated some of the select statements. In case the Expander is
8493         disabled, perform regular analysis.
8494         (Check_Triggering_Statement): New routine.
8495         (Analyze_Requeue): Exclude any interpretations that are not entries when
8496         checking overloaded names in a requeue. Also test type conformance for
8497         matching interpretations rather than requiring subtype conformance at
8498         that point to conform with the RM's resolution rule for requeues.
8499
8500 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
8501
8502         * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
8503         inherited operation is a defaulted tag-indeterminate call, and there is
8504         a statically tagged actual, use the static tag as a controlling actual
8505         for the defaulted actual.
8506
8507 2007-12-13  Geert Bosch  <bosch@adacore.com>
8508
8509         * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
8510         context, so do not call Check_Non_Static_Context.
8511
8512 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8513
8514         * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
8515         whether formal E is an entity which may have parameters.
8516
8517 2007-12-13  Bob Duff  <duff@adacore.com>
8518             Javier Miranda  <miranda@adacore.com>
8519             Robert Dewar  <dewar@adacore.com>
8520
8521         * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
8522         (Set_Convention): New procedure to set the Convention flag, and in
8523         addition make sure the Favor_Top_Level flag is kept in sync (all
8524         foreign-language conventions require Favor_Top_Level = True).
8525         (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
8526         to Related_Type.
8527         (Collect_Interfaces_Info): Minor update to handle the two secondary
8528         dispatch tables. Update occurrence of Related_Interface to Related_Type.
8529         (Generate_Parent_Ref): Add parameter to specify entity to check
8530         (Is_Preelaborable_Expression): Allow the name of a discriminant to
8531         initialize a component of a type with preelaborable initialization.
8532         This includes the case of a discriminal used in such a context.
8533         (Is_Dependent_Component_Of_Mutable_Object): Take into account the
8534         latest Ada 2005 rules about renaming and 'Access of
8535         discriminant-dependent components.
8536         (Check_Nested_Access): Add handling when there are no enclosing
8537         subprograms (e.g. case of a package body).
8538         (Find_Parameter_Type): Factor routine from several other compiler files.
8539         Remove routine from Find_Overridden_Synchronized_Primitive.
8540
8541 2007-12-13  Thomas Quinot  <quinot@adacore.com>
8542
8543         * sinput.adb (Get_Source_File_Index): Add assertion to guard against
8544         an invalid access to an uninitialized slot in the
8545         Source_File_Index_Table.
8546
8547 2007-12-13  Thomas Quinot  <quinot@adacore.com>
8548
8549         * sinput-l.adb (Load_File): Disable style checks when preprocessing.
8550
8551 2007-12-13  Bob Duff  <duff@adacore.com>
8552
8553         * s-soflin.ads: Apply new pragma Favor_Top_Level to all
8554         access-to-subprogram types in this package.
8555
8556 2007-12-13  Olivier Hainque  <hainque@adacore.com>
8557
8558         * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
8559         with Stack_Grows_Down in System.Parameters. Rename Array_Address into
8560         Stack_Overlay_Address and document that we are using an internal
8561         abstraction.
8562         (Byte_Size, Unsigned_32_Size): Remove, now useless.
8563         (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
8564         consistently throughout the various implementation pieces.
8565
8566         * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
8567         overlay we are using to fill the stack area with patterns.
8568         (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
8569         (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
8570         (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
8571
8572 2007-12-13  Robert Dewar  <dewar@adacore.com>
8573
8574         * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
8575
8576 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
8577
8578         * s-tassta.adb:
8579         (Create_Task): Take into account tasks created by foreign threads.
8580         Code clean up: use constants instead of hard coded values.
8581
8582 2007-12-13  Robert Dewar  <dewar@adacore.com>
8583
8584         * styleg.adb (Check_Comment): More liberal rules for comment placement
8585
8586 2007-12-13  Olivier Hainque  <hainque@adacore.com>
8587
8588         * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
8589         of Procedure Value instead of Frame Pointer as the invocation
8590         identifier associated with the instruction pointer in each traceback
8591         entry.
8592
8593         * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
8594         TB_Entry_For): Revert back to use of Procedure Value instead of Frame
8595         Pointer as the invocation identifier passed to tbk$symbolize.
8596
8597         * s-traent-vms.ads, s-traent-vms.adb
8598         (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
8599         Procedure Value instead of Frame Pointer as the invocation identifier
8600         passed to tbk$symbolize.
8601
8602 2007-12-13  Robert Dewar  <dewar@adacore.com>
8603
8604         * tbuild.ads, tbuild.adb:
8605         Fix location of flag for unrecognized pragma message
8606
8607 2007-12-13  Robert Dewar  <dewar@adacore.com>
8608
8609         * treepr.ads, treepr.adb: (pl): implement use of positive value
8610         shorthands
8611
8612 2007-12-13  Robert Dewar  <dewar@adacore.com>
8613
8614         * xeinfo.adb: Remove warnings
8615         * xnmake.adb: Remove warnings
8616         * xsinfo.adb: Remove warnings
8617         * xtreeprs.adb: Remove warnings
8618         * xsnames.adb: Remove warnings
8619
8620         * a-ngcoar.adb: Fix typo.
8621         * s-interr.adb: Minor reformatting
8622         * env.c: Minor reformatting.
8623         * g-bytswa.adb: Minor reformatting.
8624         * g-rannum.ads: Minor documentation improvements
8625         * s-tasinf-mingw.adb: Minor header fix
8626         * a-clrefi.adb: Minor reformatting
8627         * g-sttsne.ads: Minor documentation improvement
8628         * g-sttsne-locking.ads: Minor documentation improvement
8629         * g-soliop-solaris.ads: Minor documentation improvement
8630         * g-soliop-mingw.ads: Minor documentation improvement
8631         * g-soliop.ads: Minor documentation improvement
8632         * exp_aggr.ads: Minor reformatting
8633         * debug.adb: Add documentation for the gprbuild debug flags
8634         * exp_ch2.adb: Use Nkind_In to simplify code throughout
8635         * exp_pakd.adb: Minor reformatting
8636
8637         * g-altive.ads, g-alleve.adb: Remove assertions.
8638         Add comment about minor differences between targets regarding
8639         floating-point operations.
8640
8641         * g-thread.adb: Remove pragma unreferenced.
8642         * lib.ads: Minor reformatting
8643         * par-ch9.adb: Minor reformatting of error messages
8644         * sem_case.adb: Minor reformatting
8645         * s-fileio.adb: Minor reformattinng
8646         * s-vmexta.ads: Minor typo
8647         * vxaddr2line.adb:
8648         Take into account 'Success' value as per new GNAT warning.
8649
8650 2007-12-13  Vincent Celier  <celier@adacore.com>
8651
8652         * a-direct.adb (Create_Path): Always take '/' as a directory separator,
8653         even on Windows
8654
8655 2007-12-13  Robert Dewar  <dewar@adacore.com>
8656             Bob Duff  <duff@adacore.com>
8657
8658         * gnat_ugn.texi: Dcoument new rules for style check comment alignment
8659         Document that suffixes may be terminations of each others
8660         Add doc for -gnatw.a and -gnatw.A
8661         Document gnatbind -Wx switch
8662         Document BOM recognition
8663         Document pragma Implemented_By_Entry.
8664         Document new units.
8665
8666         * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
8667         Add doc for pragma Unreferenced suppressing no entities referenced msg
8668         Add documentation of GNAT.Directory_Operations.Iteration
8669         Add documentation of GNAT.Random_Numbers
8670         Add documentation for pragma Shared.
8671         Correct documentation for Bit_Order
8672         Add documentation for the Pool_Address attribute.
8673         Fix and improve documentation of pragma machine_attribute.
8674         New pragma Fast_Math
8675         Document BOM recognition
8676
8677         * vms_data.ads: Add entries for -gnatw.a -gnatw.A
8678         Add /Wide_Character_Encoding for binder
8679         Add qualifier for the new gnatpp option --no-separate-loop-then
8680
8681 2007-12-13  Matthew Heaney  <heaney@adacore.com>
8682
8683         * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
8684         which generic formal operations are called for each operation.
8685
8686 2007-12-13  Olivier Hainque  <hainque@adacore.com>
8687
8688         * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
8689         (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
8690
8691 2007-12-13  Emmanuel Briot  <briot@adacore.com>
8692
8693         * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
8694         Reference_Dir unless we actually need it.
8695
8696 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
8697             Tristan Gingold  <gingold@adacore.com>
8698
8699         * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
8700
8701         * s-osprim-vms.adb,
8702         a-calend-vms.adb: Remove pragma warning off and add pragma
8703         unreferenced.
8704
8705 2007-12-13  Robert Dewar  <dewar@adacore.com>
8706
8707         * impunit.adb: Add entries for missing units
8708
8709         * Makefile.rtl: Add new run-time units.
8710
8711         * Make-lang.in:  Update dependencies.
8712
8713 2007-12-13  Bob Duff  <duff@adacore.com>
8714
8715         * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
8716         types, set Can_Use_Internal_Rep appropriately, based on
8717         Always_Compatible_Rep_On_Target.
8718
8719 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
8720             Arnaud Charlet  <charlet@adacore.com>
8721
8722         * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
8723         it to the front end and setting the aamp_target environment variable
8724         to the switch's argument to ensure that gnaampbind and gnaamplink will
8725         take the specified library into account.
8726         (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
8727         target, since the CIL compiler supports an "object" file (.il files).
8728
8729 2007-12-13  Vincent Celier  <celier@adacore.com>
8730
8731         * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
8732         (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
8733
8734 2007-12-13  Geert Bosch  <bosch@adacore.com>
8735
8736         * s-parame-vxworks.adb:
8737         Update comments to reflect usage of this package by Nucleus.
8738
8739 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
8740
8741         * i-vxwork.ads: Kill new warning on Convention C, since changing the
8742         spec would break code.
8743
8744         * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
8745
8746         * system-vxworks-alpha.ads: Removed.
8747
8748 2007-12-10  Eric Botcazou  <ebotcazou@adacore.com>
8749
8750         * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
8751
8752 2007-12-09  Samuel Tardieu  <sam@rfc1149.net>
8753
8754         PR ada/34366
8755         * sem_ch3.adb (Designates_T): New function.
8756         (Mentions_T): Factor reusable part of the logic into Designates_T.
8757         Consider non-access parameters and access and non-access result.
8758         (Check_Anonymous_Access_Components): Set ekind of anonymous access to
8759         E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
8760
8761         * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
8762
8763 2007-12-07  Ludovic Brenta  <ludovic@ludovic-brenta.org>
8764
8765         PR ada/34361
8766         * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
8767         the new implementation of target-specific calls.
8768
8769 2007-12-07  Olivier Hainque  <hainque@adacore.com>
8770
8771         * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
8772         the designated full view, only follow a second level Full_View link
8773         for Non_Limited_Views of from_limited_with references.
8774
8775 2007-12-07  Samuel Tardieu  <sam@rfc1149.net>
8776
8777         PR ada/15805
8778         * sem_ch6.adb (Process_Formals): Prevent an access type formal
8779         to be initialized with an access to constant object.
8780
8781         * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
8782         when an access to constant is used to initialize an access
8783         value.
8784
8785         PR ada/21346
8786         * a-direct.adb (Compose): Containing_Directory can be an empty string.
8787
8788 2007-12-07  Olivier Hainque  <hainque@adacore.com>
8789
8790         PR ada/34173
8791         * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
8792         the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
8793         this is from an alignment clause on the GNAT entity.
8794         * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
8795         to distinguish the case where we set it from the type's alignment.
8796         When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
8797         whether this alignment was set from an explicit alignment clause.
8798
8799 2007-12-06  Eric Botcazou  <ebotcazou@adacore.com>
8800
8801         * decl.c (make_packable_type): Revert last change.
8802         (gnat_to_gnu_field): Avoid setting size and position multiple times.
8803         * utils.c (finish_record_type): Retrieve the real name of the type.
8804
8805 2007-12-05  Eric Botcazou  <ebotcazou@adacore.com>
8806
8807         * trans.c (lvalue_required_p): Take base node directly instead
8808         of its parent.  Rename second parameter to 'gnu_type'.
8809         <N_Indexed_Component>: Return 0 if the node isn't the prefix.
8810         <N_Slice>: Likewise.
8811         (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
8812         Adjust calls to lvalue_required_p.
8813
8814 2007-12-05  Samuel Tardieu  <sam@rfc1149.net>
8815
8816         PR ada/21489
8817         * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
8818         parameters of an entry call.
8819
8820 2007-12-03  Robert Dewar  <dewar@adacore.com>
8821             Samuel Tardieu  <sam@rfc1149.net>
8822
8823         PR ada/34287
8824         * sem_util.adb (Safe_To_Capture_Value): Do not capture values
8825         of variables declared in a library-level package.
8826
8827 2007-12-02  Samuel Tardieu  <sam@rfc1149.net>
8828
8829         * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
8830         of Empty_String'Unchecked_Access.
8831
8832         * Makefile.in: Add support for sh4-linux.
8833
8834         * system-linux-sh4.ads: New file.
8835
8836 2007-12-01  Kostik Belousov  <kostikbel@ukr.net>
8837
8838         PR ada/33722
8839         * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
8840         and its argument must not be free()ed.
8841
8842 2007-11-29  Eric Botcazou  <ebotcazou@adacore.com>
8843
8844         * decl.c (make_packable_type): Retrieve the real name of the type.
8845         (maybe_pad_type): Simplify similar code.
8846
8847 2007-11-28  Samuel Tardieu  <sam@rfc1149.net>
8848
8849         PR ada/15804
8850         * par-ch3.adb (P_Variant_Part): Signal an error when anything other
8851         than an identifier is used after "case" in a variant_part.
8852
8853         PR ada/17318
8854         * par-ch4.adb (Is_Parameterless_Attribute): New map.
8855         (P_Name, Scan_Apostrophe block): Parse left parenthesis following
8856         attribute name or not depending on the new map.
8857
8858         * sem-attr.adb (Analyze_Attribute): Parameterless attributes
8859         returning a string or a type will not be called with improper
8860         arguments.
8861
8862         * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
8863
8864         * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
8865
8866         PR ada/32792
8867         * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
8868         Signal an error when attribute argument is a fixed-point value of
8869         an unknown type.
8870
8871         PR ada/22559
8872         * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
8873         a derived ordinary fixed point type.
8874
8875         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
8876         RM_Size when a Small clause is found.
8877
8878 2007-11-26  Andreas Krebbel  <krebbel1@de.ibm.com>
8879
8880         PR 34081/C++
8881         * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
8882         Pass 'false' for the new allocate_struct_function parameter.
8883         * utils.c (build_function_stub): Likewise.
8884
8885 2007-11-25  Richard Guenther  <rguenther@suse.de>
8886
8887         * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
8888         (gnat_poplevel): Likewise.
8889
8890 2007-11-25  Eric Botcazou  <ebotcazou@adacore.com>
8891
8892         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
8893         strict alignment, no alignment clause and a known static size, cap
8894         the type alignment to the greatest power of 2 factor of the size.
8895         (gnat_to_gnu_field): If the field has a component clause, is aliased
8896         or of a type with strict alignment, require that its size be equal to
8897         that of the type.
8898         (validate_size): Use the type size as the minimum size for a type with
8899         strict alignment.
8900
8901 2007-11-23  Samuel Tardieu  <sam@rfc1149.net>
8902
8903         * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
8904         s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
8905         s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
8906         Use 'Access instead of 'Unchecked_Access in second and third
8907         arguments of pthread_sigmask.
8908
8909 2007-11-23  Eric Botcazou  <ebotcazou@adacore.com>
8910
8911         * decl.c (ceil_alignment): New function.
8912         (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
8913         (make_packable_type): Likewise.
8914
8915 2007-11-22  Olivier Hainque  <hainque@adacore.com>
8916
8917         * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
8918         to fit in 80 columns.
8919
8920 2007-11-21  Aurelien Jarno  <aurelien@aurel32.net>
8921
8922         * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
8923         * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
8924
8925 2007-11-19  Eric Botcazou  <ebotcazou@adacore.com>
8926
8927         PR ada/34098
8928         * misc.c (gnat_adjust_rli): Delete.
8929         (gnat_init): Do not initialize the translation code here.
8930         Do not call set_lang_adjust_rli.
8931         * trans.c (init_code_table): Make static.
8932         (gnat_init_stmt_group): Delete.
8933         (gigi): Initialize the translation code entirely here.
8934         Emit debug info for the common types here instead of...
8935         * utils.c (gnat_init_decl_processing): ...here.
8936         * gigi.h (init_code_table): Delete.
8937         (gnat_init_stmt_group): Likewise.
8938
8939 2007-11-16  Olivier Hainque  <hainque@adacore.com>
8940
8941         * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
8942         retrieving an allocator return value from a super-aligned address from
8943         here to ...
8944         * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
8945         expect a super-aligned address for a fat or thin pointer.
8946
8947 2007-11-14  Eric Botcazou  <ebotcazou@adacore.com>
8948
8949         * trans.c (call_to_gnu): Always set the source location on the call
8950         expression.  If the function returns-by-target, also set it on the
8951         address expression.
8952
8953 2007-11-14  Samuel Tardieu  <sam@rfc1149.net>
8954
8955         * adaint.c, init.c, initialize.c, link.c: Remove system-specific
8956         sections of non-supported Interix target.
8957
8958         * s-osinte-interix.ads: Removed.
8959
8960         * i-cstrin.ads (chars_ptr): Make it a C convention type.
8961
8962 2007-11-13  Samuel Tardieu  <sam@rfc1149.net>
8963
8964         * a-tasatt.adb: Add a comment at the beginning of the package
8965         explaining why in general 'Unchecked_Access must be used instead
8966         of 'Access.
8967
8968         * sem_prag.adb (Process_Convention): Move the test for the
8969         entity on which the Convention pragma applies down to also
8970         forbid pragma Convention on enumeration literals reached
8971         through renamings.
8972
8973 2007-11-10  Samuel Tardieu  <sam@rfc1149.net>
8974
8975         * a-tasatt.adb: Revert previous change for this file as it will
8976         generate an error when this package is instantiated from a
8977         local context.
8978
8979 2007-11-07  Samuel Tardieu  <sam@rfc1149.net>
8980
8981         * a-tasatt.adb: Type Wrapper should be declared in comment instead
8982         of already declared type Node_Access.
8983         Use 'Access instead of 'Unchecked_Access when applicable. Local
8984         lifetime is the one of the package.
8985         (Set_Value): W is allocated on the heap.
8986
8987         * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
8988         applicable.
8989         (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
8990         access type.
8991         (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
8992         access type.
8993
8994         * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
8995         applicable.
8996         (elaboration code): Timer_Queue lifetime is the one of the
8997         package.
8998
8999         * tracebak.c (i386 alternative): Remove useless comparaison
9000         which is always false; LOWEST_ADDRESS is 0 and is never greater
9001         than an unsigned integer.
9002
9003         * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
9004         embedded check for "Ada_Version >= Ada_05".
9005
9006 2007-11-07  Olivier Hainque  <hainque@adacore.com>
9007
9008         * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
9009         craft and expand comment.
9010
9011 2007-11-01  Eric Botcazou  <ebotcazou@adacore.com>
9012
9013         * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
9014
9015 2007-10-23  Eric Botcazou  <ebotcazou@adacore.com>
9016
9017         * misc.c (gnat_handle_option): Replace call to abort with
9018         call to gcc_unreachable.
9019         (gnat_init): Likewise.
9020         (gnat_expand_expr): Likewise.
9021         (fp_prec_to_size): Likewise.
9022         (fp_size_to_prec): Likewise.
9023
9024 2007-10-23  Richard Guenther  <rguenther@suse.de>
9025
9026         PR bootstrap/33608
9027         * tracebak.c: #undef abort after including system.h.
9028
9029 2007-10-20  Danny Smith  <dannysmith@users.sourceforge.net>
9030
9031         * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
9032         s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
9033         for win32 targets.
9034         (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
9035
9036 2007-10-15  Eric Botcazou  <ebotcazou@adacore.com>
9037
9038         * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
9039         Set the protection status of the guard page based on the value of On.
9040
9041         * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
9042
9043         * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
9044         (Exit_Task): Pass False to Hide_Yellow_Zone.
9045
9046 2007-10-15  Robert Dewar  <dewar@adacore.com>
9047
9048         * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
9049         s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
9050         a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
9051         checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
9052         freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
9053         gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
9054         mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
9055         prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
9056         sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
9057         s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
9058         uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
9059         a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
9060         a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
9061         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
9062         a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
9063         a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
9064         Minor reformatting.
9065         Add Unreferenced and Warnings (Off) pragmas for cases of
9066         variables modified calls where they are IN OUT or OUT parameters and
9067         the resulting values are not subsequently referenced. In a few cases,
9068         we also remove redundant code found by the new warnings.
9069
9070         * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
9071         sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
9072         sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
9073         sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
9074         warning controlled by -gnatw.o that warns on cases of out parameter
9075         values being ignored.
9076
9077 2007-10-15  Geert Bosch  <bosch@adacore.com>
9078
9079         * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
9080
9081         * expect.c: Initial port to arm-mentor-nucleus.
9082         Use kill for __gnat_kill() on VMS.
9083
9084 2007-10-15  Emmanuel Briot  <briot@adacore.com>
9085
9086         * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
9087         value.
9088         (Xref_Record): Change type for Line, since in the case of a reference to
9089         a predefined entity (as happens for array index types), the line is set
9090         to 0.
9091         Add support for parsing multiple array index types info, or
9092         multiple inherited interfaces info. This information cannot be stored
9093         in Xref_Entity_Record, which only supports a single instance of Tref_*,
9094         and is therefore stored in the list of references instead. It has a
9095         special treatement later on in tools that use this information.
9096
9097 2007-10-15  Tristan Gingold  <gingold@adacore.com>
9098
9099         * debug.adb: Document use of -gnatd.a and -gnatd.I
9100
9101         * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
9102
9103 2007-10-15  Javier Miranda  <miranda@adacore.com>
9104
9105         * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
9106         Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
9107         care of access to class-wide interface types plus removal of bizarre
9108         conversion of tagged object to access type (reported by Gary
9109         Dismukes). After this patch there is no need to perform any
9110         additional management on these nodes in Expand_Interface_Actuals.
9111
9112         * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
9113         that handles use of 'Access and 'Unchecked_Access applied to
9114         actuals covering interface types. Such code is now
9115         centralized in Expand_N_Attribute_Reference.
9116
9117 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
9118
9119         * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
9120         of tagged types whose ultimate ancestor is a CPP type.
9121         (Freeze_Array_Type): For a packed array type, generate an initialization
9122         procedure if the type is public, to handle properly a client that
9123         specifies Normalize_Scalars.
9124
9125 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
9126
9127         * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
9128         inside a generic body, retrieve the full view of the entry family
9129         discrete subtype if available.
9130
9131 2007-10-15  Thomas Quinot  <quinot@adacore.com>
9132
9133         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
9134         attempt to generate stubs for hidden primitive operations.
9135
9136 2007-10-15  Vincent Celier  <celier@adacore.com>
9137
9138         * mlib-tgt-specific.adb (Support_For_Libraries): New function,
9139         returning None, used when there is no platform specific body for
9140         MLib.Tgt.Specific.
9141
9142 2007-10-15  Bob Duff  <duff@adacore.com>
9143
9144         * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
9145         (passing'Unrestricted_Access of nested subprograms to Sort) with use of
9146         the generic Heap_Sort_G, in order to avoid trampolines.
9147
9148 2007-10-15  Vasiliy Fofanov  <fofanov@adacore.com>
9149             Jose Ruiz  <ruiz@adacore.com>
9150
9151         * vx_stack_info.c: New file.
9152
9153         * i-forbla-unimplemented.ads: New file.
9154
9155         * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
9156         for unsupported configurations; use it on VMS targets instead of the
9157         real one.
9158         (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
9159         vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
9160         used by VxWorks targets to have access to task-specific data and be
9161         able to extract the stack boundaries for stack checking.
9162         Use system-vms-ia64.ads on ivms.
9163
9164         * Make-lang.in: Update dependencies.
9165
9166         * sysdep.c (__gnat_get_stack_info): Move to a standalone file
9167         (vx_stack_info.c).
9168
9169 2007-10-15  Vincent Celier  <celier@adacore.com>
9170
9171         * snames.adb, snames.ads: Add new standard name runtime_library_dir
9172
9173         * prj.ads (Language_Config): Add new component Runtime_Library_Dir
9174
9175         * prj-attr.adb: Add project level attribute Runtime_Library_Dir
9176
9177         * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
9178         the source is unknown.
9179
9180         * prj-ext.adb: Spelling error fix
9181
9182         * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
9183         95 reserved word in its name.
9184         (Process_Project_Level_Array_Attributes): Process new attribute
9185         Runtime_Library_Dir.
9186
9187         * prj-part.adb (Parse_Single_Project): Do not check the name of the
9188         config project against the user project names.
9189
9190         * prj-proc.adb (Expression): In multi-language mode, indexes that do
9191         not include a dot are always case insensitive.
9192         (Process_Declarative_Items): Ditto
9193         (Process_Project_Tree_Phase_1): Set Success to False in case an error is
9194         detected.
9195
9196         * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
9197         True, compare both indexes in lower case.
9198
9199 2007-10-15  Robert Dewar  <dewar@adacore.com>
9200
9201         * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
9202
9203 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
9204
9205         * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
9206         association for an access component, add an association with null as
9207         the expression. Remove testing for array subtypes and the setting in
9208         that case of Ctyp to the array component type, which prevented proper
9209         inclusion of an association for null-initialized arrays. Collapse
9210         condition that tests for array subtypes into just a test of
9211         Is_Partially_Initialized_Type (which already covers arrays anyway).
9212
9213 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
9214
9215         * sem_ch12.adb: Minor code reformatting.
9216         (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
9217         find the parent package which may have been hidden by local
9218         declarations.
9219
9220 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
9221
9222         * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
9223         flag of derived concurrent types, taking into account the flag setting
9224         on the parent subtype and any new set of discriminants.
9225
9226 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
9227
9228         * sem_ch4.adb: Minor code and comment reformatting.
9229         (Analyze_Allocator): When the designated type of an unconstrained
9230         allocator is a record with unknown discriminants or an array with
9231         unknown range bounds, emit a detailed error message depending on the
9232         compilation mode and whether the designated type is limited.
9233
9234 2007-10-15  Tristan Gingold  <gingold@adacore.com>
9235
9236         * system-vms-ia64.ads: New file.
9237
9238         * system-vms_64.ads: Minor comment fix.
9239
9240 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
9241
9242         * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
9243         body generated for a function with a controlling result that is a null
9244         extension, discard the generated body in favor of the current explicit
9245         one.
9246
9247 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
9248
9249         * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
9250         examining its original form, to handle properly operator calls that
9251         have been rewritten.
9252
9253 2007-10-15  Olivier Hainque  <hainque@adacore.com>
9254
9255         * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
9256         instead of a procedure value in each traceback entry.
9257
9258         * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
9259         instead of procedure value to TBK$SYMBOLIZE.
9260
9261         * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
9262         field.
9263         (TB_Entry_For): Account for the PV/FP renaming.
9264
9265         * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
9266         add comment.
9267         (Null_TB_Entry): Account for change of component name.
9268         (PV_For): Rename as FP_For.
9269
9270 2007-10-15  Tristan Gingold  <gingold@adacore.com>
9271
9272         * trans.c (gnat_to_gnu): Remove the padding structure more often.
9273         This optimize assignment to over-aligned record.
9274
9275 2007-10-15  Emmanuel Briot  <briot@adacore.com>
9276
9277         * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
9278         interfaces.
9279
9280         * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
9281         type, for dispatching calls.
9282
9283 2007-10-15  Vincent Celier  <celier@adacore.com>
9284             Robert Dewar  <dewar@adacore.com>
9285
9286         * gnat_ugn.texi: Add documentation for switches --version and --help
9287         for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
9288         gnatxref, gnatfind, gnatls, and gnatclean.
9289         Document -gnatw.o.
9290         Mention attribute Excluded_Source_Dirs
9291         Replace obsolescent attribute Locally_Removed_Files with attribute
9292         Excluded_Source_Files.
9293         Improve documentation of -u (gnatbind)
9294         Document how to do reliable stack checking for the environmental task
9295         on iVMS.
9296
9297         * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
9298         Document attribute Excluded_Source_Files and indicate that attribute
9299         Locally_Removed_Files is obsolescent.
9300
9301 2007-10-15  Thomas Quinot  <quinot@adacore.com>
9302
9303         * g-soccon-vms.ads: Fix value of MSG_WAITALL.
9304
9305         * gen-soccon.c:
9306         Update documentation to note that OpenVMS 8.3 or later must be used
9307         to generate g-soccon-vms.ads.
9308
9309         * atree.adb: Add ??? comment
9310
9311         * exp_util.adb: Minor reformatting.
9312         Add ??? comment in Kill_Dead_Code.
9313
9314 2007-10-15  Robert Dewar  <dewar@adacore.com>
9315
9316         * errout.ads: Comment clarification
9317
9318         * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
9319         (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
9320
9321         * lib.ads: Comment update
9322
9323         * init.c: Minor reformatting.
9324
9325         * sem_attr.adb: Minor formatting
9326
9327         * osint-b.ads: Minor reformatting
9328
9329         * sem_ch9.adb: Implement -gnatd.I switch
9330
9331         * g-comlin.adb: (Start): Fix handling of empty command line.
9332
9333         * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
9334         even when -rules follows the -cargs section.
9335
9336 2007-10-08  Ollie Wild  <aaw@google.com>
9337
9338         * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
9339         gnat_return_tree.
9340         (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
9341         gnat_return_tree.
9342         (gnat_eh_runtime_type): Removed.
9343         (gnat_return_tree): New function.
9344
9345 2007-10-08  Ben Elliston  <bje@au.ibm.com>
9346
9347         PR ada/33454
9348         Revert:
9349         2007-08-31  Ben Elliston  <bje@au.ibm.com>
9350
9351         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
9352         when compiling for powerpc64-*-linux.
9353         * system-linux-ppc64.ads: New file.
9354
9355 2007-09-27  Eric Botcazou  <ebotcazou@adacore.com>
9356
9357         Mapped location support
9358         * back_end.adb (Call_Back_End): Pass information about source
9359         files instead of units to gigi.
9360         * gigi.h (struct File_Info_Type): New.
9361         (gigi): Rename and change type of number_units parameter, change
9362         type of file_info_ptr parameter.
9363         * trans.c (number_files): New global variable.
9364         (gigi): Rename and change type of number_units parameter, change
9365         type of file_info_ptr parameter.
9366         If mapped location support is enabled, create the isomorphic mapping
9367         between source files and line maps.
9368         (Sloc_to_locus): If mapped location support is enabled, translate
9369         source location into mapped location.
9370         (annotate_with_node): Rename into set_expr_location_from_node.
9371         Call set_expr_location instead of annotate_with_locus.
9372         (Pragma_to_gnu): Adjust for above change.
9373         (Loop_Statement_to_gnu): Likewise.
9374         (call_to_gnu): Likewise.
9375         (Handled_Sequence_Of_Statements_to_gnu): Likewise.
9376         (gnat_to_gnu): Likewise.
9377         (add_stmt_with_node): Likewise.
9378         (add_cleanup): Likewise.
9379         * utils.c (gnat_init_decl_processing): Do not set input_line.
9380
9381 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
9382
9383         * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
9384         (Applicable_Use): Emit a warning when a package tries to use itself.
9385         (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
9386         is already in use or the package where it is declared is in use or is
9387         declared in the current package.
9388         (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
9389
9390         * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
9391         s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
9392         s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
9393
9394 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
9395
9396         * a-calend-vms.adb, a-calend.adb:
9397         Add a section on leap seconds control along with two entities used to
9398         enable and disable leap seconds support. The array Leap_Second_Times is
9399         now constant and contains hard time values pre-generated. Remove
9400         all elaboration code used to populate the table of leap seconds.
9401
9402         * bindgen.adb:
9403         Add entity Leap_Seconds_Support to the list of global run-time variables
9404         along with a comment on its usage and values.
9405         (Gen_Adainit_Ada): Add code to generate the declaration and import of
9406         Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
9407         or one (enabled) depending on the presence of binder switch "-y".
9408         (Gen_Adainit_C): Add code to generate the declaration of external int
9409         __gl_leap_seconds_support. Set is value to zero (disabled) or one
9410         (enabled) depending on the presence of binder switch "-y".
9411
9412         * init.c: Add __gl_leap_seconds_support to the list of global values
9413         computed by the binder.
9414
9415 2007-09-26  Jerome Guitton  <guitton@adacore.com>
9416
9417         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
9418         s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
9419          s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
9420         s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
9421
9422         * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
9423
9424         * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
9425         function which can be called by the debugger to interrupt the tasks of
9426         an Ada application asynchronously, as needed on VxWorks.
9427         (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
9428
9429         * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
9430         renamed from Stop_All_Tasks. Update comments.
9431         (Stop_All_tasks): New function declaration.
9432
9433 2007-09-26  Olivier Hainque  <hainque@adacore.com>
9434
9435         * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
9436         #include <utime.h> and #define GCC_RESOURCE_H before
9437         #include <sys/wait.h>.
9438         Add more protections in __gnat_translate_vms.
9439
9440         * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
9441         #include <sys/wait.h>.
9442
9443 2007-09-26  Thomas Quinot  <quinot@adacore.com>
9444             Sergey Rybin  <rybin@adacore.com>
9445
9446         * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
9447
9448         * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
9449         where it belongs.
9450
9451         * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
9452
9453         * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
9454         where it belongs.
9455
9456         * sem_dist.ads: Minor comment fix
9457
9458         * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
9459
9460 2007-09-26  Javier Miranda  <miranda@adacore.com>
9461             Eric Botcazou  <ebotcazou@adacore.com>
9462
9463         * a-tags.adb:
9464         (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
9465          indirection added to the HT_Link component of the TSD. This is required
9466          to statically allocate the TSD.
9467
9468         * a-tags.ads:
9469         Minor reordering of the declarations in the private part. Required to
9470         add a level of indirection to the contents of the TSD component HT_Link.
9471         This is required to statically allocate the TSD.
9472
9473         * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
9474         Is_Statically_Allocated set from constant objects.
9475         Do not make exported constants created by the compiler volatile.
9476         (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
9477         as read-only.
9478
9479         * trans.c (Identifier_to_gnu): For constants, unshare initializers
9480         before returning them.
9481
9482         * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
9483         public part of the package.
9484         (Make_DT): Move HT_Link component out of the TSD record. For this
9485         purpose Make_DT now declares a separate object that stores the
9486         HT_Link value, and initializes the TSD component with the address
9487         of this new object. The addition of this level of indirection is
9488         required to statically allocate the TSD because the TSD cannot
9489         have variable components.
9490         (Expand_Interface_Conversion): Improve the expanded code.
9491         (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
9492
9493         * sem_disp.adb (Check_Dispatching_Operation): In case of a body
9494         declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
9495         if we are building static dispatch tables then we must not generate
9496         extra code to register the primitive because the dispatch table will
9497         be built at the end of the library package; otherwise we notify that
9498         we cannot build the static dispatch table.
9499
9500 2007-09-26  Robert Dewar  <dewar@adacore.com>
9501
9502         * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
9503         overlays.
9504
9505         * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
9506         (Analyze_Record_Representation_Clause): Suppress junk warning for
9507         missing component clause.
9508         (Analyze_Attribute_Definition_Clause, case Address): Apply the special
9509         tests for controlled type overlay to composites with controlled
9510         components.
9511         (Analyze_Record_Representation_Clause): Add reference for component name
9512
9513 2007-09-26  Javier Miranda  <miranda@adacore.com>
9514             Gary Dismukes  <dismukes@adacore.com>
9515
9516         * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
9517         for thunks associated with interface types.
9518
9519         * einfo.ads: Improve documentatation of Is_Internal
9520         (Is_Thunk): New attribute applicable to subprograms. True for thunks
9521         associated with interface types.
9522         Extensive comment fixes regarding flags that appear in all entities. The
9523         documentation is now consistent for all such flags (there were a number
9524         of errors in the documentation in this regard).
9525
9526         * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
9527
9528         * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
9529         of these procedures are passed a function call that already has
9530         build-in-place actuals (testing new flag
9531         Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
9532         the case where processing continues.
9533         (Expand_Call): If the call is generated from a thunk body then we
9534         propagate the extra actuals associated with the accessibility
9535         level of the access type actuals.
9536
9537         * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
9538         of each extra formal of a protected operation to reference the
9539         corresponding extra formal of the subprogram denoted by the
9540         operation's Protected_Body_Subprogram.
9541
9542         * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
9543         N_Function_Call nodes.
9544
9545 2007-09-26  Robert Dewar  <dewar@adacore.com>
9546
9547         * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
9548
9549         * debug.adb: Add d.s flag.
9550
9551 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
9552
9553         * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
9554         debug variable so that it won't be initialized when pragma
9555         Initialize_Scalars is in effect.
9556
9557 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
9558
9559         * freeze.adb (Freeze_Entity): Remove check for preelaborable
9560         initialization of a full view. This is moved to
9561         Analyze_Package_Specification.
9562
9563         * sem_ch7.adb (Analyze_Package_Specification): Add check for
9564         preelaborable initialization of a full view in entity loop.
9565         (Uninstall_Declarations): If entity is a use-visible compilation unit,
9566         its child units are use-visible only if they are visible child units.
9567
9568         * sem_util.adb (Is_Preelaborable_Expression): New function to determine
9569         whether an expression can be used within a type declaration that
9570         requires preelaborable init.
9571         (Check_Components): Replace inline code that does partial checking for
9572         preelaborable default expressions with call to
9573         Is_Preelaborable_Expression.
9574         (Has_Preelaborable_Initialization): In the case of a generic actual
9575         subtype, (that is, Is_Generic_Actual is True), return the result of
9576         applying Has_Preelaborable_Initialization to the generic actual's base
9577         type.
9578
9579 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
9580
9581         * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
9582         call to Jan_1_Day _Of_Week to optimize its performance.
9583         (Is_Leap): Move the routine to the scope of Week_In_Year.
9584         (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
9585         weekday on which January 1 falls of Year - 1 and Year + 1. This function
9586         avoids calling Time_Of and Split, thus making it more efficent.
9587         (Week_In_Year): Reimplemented in oder to follow ISO 8601.
9588
9589         * g-calend.ads (Week_In_Year): Change comment to reflect new
9590         implementation.
9591
9592 2007-09-26  Emmanuel Briot  <briot@adacore.com>
9593
9594         * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
9595         Command_Line): New types
9596         (Define_Alias, Define_Prefix, Free): New subprograms. These provide
9597         support for defining how switches can be grouped on a command line (as
9598         is the case for -gnatw... for GNAT), and how simple switches can be
9599         used as aliases for more complex switches (-gnatwa is same as
9600         -gnatwbcef...)
9601         (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
9602         (Start, Current_*): New subprograms
9603         Added support for parsing an array of strings in addition to the real
9604         command line.
9605         (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
9606          be moved from the body to the private part of the spec.
9607         (*): All subprograms now have an extra parameter with default value to
9608         specify which parser should be used. For backward compatibility, it
9609         defaults to parsing the command line of the application. They were also
9610         modified to properly handle cases where each of the argument does not
9611         start at index 1 (which is always true for Ada.Command_Line, but not
9612         when processing any Argument_List).
9613         (Free): New subprogram
9614         (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
9615         Argument): New subprograms
9616         (Switch_Parameter_Type): New enum, which clarifies the code. The extra
9617         special characters like ':', '=',... are now handled in a single place,
9618         which makes the code more extensible eventually.
9619         (Getopt, Full_Switch): When the switch was returned as part of the
9620         special character '*', make sure it is prepended by the switch character
9621         ('-' in general), so that the application knows whether "foo" or "-foo"
9622         was specified on the command line.
9623
9624 2007-09-26  Florian Villoing  <villoing@adacore.com>
9625
9626         * g-dirope.adb (Remove_Dir): In case we are removing directories
9627         recursively, make sure that if an exception is raised during the
9628         processing, the current working directory is reset to its initial
9629         value before propagating the exception.
9630
9631 2007-09-26  Vincent Celier  <celier@adacore.com>
9632
9633         * gnatbind.adb: If there are several ALI files specified and there is
9634         a main program to bind, the first ALI is expected to contain the main
9635         subprogram and the names of the binder generated files will be derived
9636         from the first ALI file name.
9637         (Gnatbind): Fix insertion character in invocation of Error_Msg
9638
9639 2007-09-26  Vincent Celier  <celier@adacore.com>
9640
9641         * gnatcmd.adb (Check_Files): Do not include sources that have been
9642         removed by attributes Exclude_Source_Files or Locally_Removed_Files.
9643
9644 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
9645
9646         * lib-xref.ads, lib-xref.adb: The entry for array types now carries
9647         information about each of its index types, following the type
9648         reference for its component type.
9649
9650 2007-09-26  Vincent Celier  <celier@adacore.com>
9651
9652         * make.adb: (Kill): New procedure (__gnat_kill imported)
9653         (Running_Compile, Outstanding_Compiles): Global variables that
9654         were previously local to procedure Compile_Sources.
9655         (Sigint_Intercepted): Send signal SIGINT to all outstanding
9656         compilation processes.
9657
9658         (Gnatmake): If project files are used, create the mapping of all the
9659         sources, so that the correct paths will be found.
9660
9661         * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
9662
9663 2007-09-26  Vincent Celier  <celier@adacore.com>
9664
9665         * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
9666
9667         * prj.ads, prj.adb (Default_Language): Remove function, no longer used
9668         Replace components Compiler_Min_Options and Binder_Min_Options with
9669         Compiler_Required_Switches and Binder_Required_Switches in record
9670         Language_Config.
9671         Remove components Default_Language and Config in Project_Tree_Data,
9672         no longer used.
9673
9674         * prj-attr.adb: New attributes Required_Switches (<language>) in
9675         packages Compiler and Binder.
9676
9677         * prj-nmsc.adb: Major rewrite of the processing of configuration
9678         attributes for gprbuild. No impact on GNAT tools.
9679
9680         * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
9681         process configuration attributes: this is done in Prj.Nmsc.Check.
9682         (Recursive_Process): Make a full copy of packages inherited from project
9683         being extended, instead of a shallow copy.
9684         (Process_Project_Tree_Phase_1): New procedure
9685         (Process_Project_Tree_Phase_1): New procedure
9686         (Process): Implementation now uses the two new procedures
9687
9688         * prj-util.adb (Executable_Of): Get the suffix and the default suffix
9689         from the project config, not the tree config that no longer exists.
9690
9691 2007-09-26  Vincent Celier  <celier@adacore.com>
9692
9693         * Make-lang.in: Update dependencies..
9694
9695 2007-09-26  Vincent Celier  <celier@adacore.com>
9696
9697         * osint.adb, osint.ads: Minor reformatting
9698
9699         * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
9700
9701 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
9702
9703         * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
9704         message to cite use of <> in aggregate component associations rather
9705         than wrongly indicating use of limited aggregates.
9706
9707 2007-09-26  Robert Dewar  <dewar@adacore.com>
9708
9709         * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
9710         Address_Taken.
9711
9712 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
9713
9714         * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
9715         ancestor of the derived type, the operations are inherited from the
9716         primary dispatch table of the parent.
9717         (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
9718         when the context is an explicit type conversion.
9719
9720 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
9721
9722         * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
9723         rule for qualified expressions properly, to detect improper conversions
9724         and resolve some cases of overloading.
9725
9726 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
9727
9728         * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
9729         proper kind of reference to the primitive operation, for better source
9730         navigation.
9731         (Valid_Conversion): A tagged conversion is legal if both operands are
9732         tagged.
9733
9734 2007-09-26  Robert Dewar  <dewar@adacore.com>
9735
9736         * sem_warn.adb (Check_References): Catch more cases of unreferenced
9737         packages.
9738
9739 2007-09-26  Vincent Celier  <celier@adacore.com>
9740
9741         * snames.adb, snames.ads: Change Include_Option to Include_Switches
9742
9743 2007-09-26  Robert Dewar  <dewar@adacore.com>
9744
9745         * s-wchstw.adb: provide messages for run time unit exceptions
9746
9747         * a-witeio.adb: Minor reformatting
9748
9749         * exp_ch13.adb: Minor reformatting
9750
9751 2007-09-26  Sergey Rybin  <rybin@adacore.com>
9752
9753         * vms_data.ads: Revise gnatmetric qualifiers.
9754         Add qualified for the new gnatbind option '-y'
9755
9756         * gnat_ugn.texi: Revise the gnatmetric section.
9757         Add entry for new gnatbind option '-y'.
9758
9759         * gnat_rm.texi: Minor spelling correction.
9760         Document restriction on overlaying controlled types
9761
9762 2007-09-26  Vincent Celier  <celier@adacore.com>
9763
9764         * makegpr.adb (Link_Executables): Do not fail when the root project has
9765         no sources, but is an extending project.
9766
9767 2007-09-25  Eric Botcazou  <ebotcazou@adacore.com>
9768
9769         * trans.c: Fix misplaced #define.
9770
9771 2007-09-22  Eric Botcazou  <ebotcazou@adacore.com>
9772
9773         * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
9774         the TYPE_REF_CAN_ALIAS_ALL flag to the result.
9775
9776 2007-09-21  Olivier Hainque  <hainque@adacore.com>
9777
9778         * utils.c (type_for_nonaliased_component_p): Return false for
9779         all AGGREGATE_TYPEs.
9780
9781 2007-09-17  Eric Botcazou  <ebotcazou@adacore.com>
9782
9783         * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
9784         object covered by 13.3(19) volatile.
9785
9786 2007-09-12  Eric Botcazou  <ebotcazou@adacore.com>
9787
9788         PR ada/26797
9789         PR ada/32407
9790         * utils.c (unchecked_convert): Use a subtype as the intermediate type
9791         in the special VIEW_CONVERT_EXPR case.
9792
9793 2007-09-12  Robert Dewar  <dewar@adacore.com>
9794
9795         * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
9796
9797         * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
9798         lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
9799         s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
9800         s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
9801         s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
9802         s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
9803         s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
9804         s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
9805         a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
9806         g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
9807         s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
9808         s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
9809         snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
9810         s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
9811         s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
9812         s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
9813         s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
9814         pragma Compiler_Unit and adds it to relevant library units.
9815
9816 2007-09-12  Ed Schonberg  <schonberg@adacore.com>
9817
9818         * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
9819         a box need not correspond to any component.
9820
9821 2007-09-12  Robert Dewar  <dewar@adacore.com>
9822
9823         * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
9824         the tasking version of the Ada run time when foreign threads are
9825         present and there are no explicit Ada tasks or tasking constructs.
9826
9827         * gnat_rm.texi: Clarify documentation of GNAT.Threads.
9828
9829 2007-09-12  Hristian Kirtchev  <kirtchev@adacore.com>
9830
9831         * bindusg.adb (Display): Correct comment for switch -X. Add a line for
9832         the usage of switch -y.
9833
9834         * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
9835         when switch -y is present.
9836
9837         * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
9838         leap seconds in Ada.Calendar and its children.
9839
9840 2007-09-12  Jose Ruiz  <ruiz@adacore.com>
9841
9842         * a-extiti.ads (Timer): The discriminant is a "not null access
9843         constant" in the Reference Manual.
9844         (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
9845
9846 2007-09-12  Robert Dewar  <dewar@adacore.com>
9847
9848         * a-swuwha.adb: Remove junk RM header
9849
9850 2007-09-12  Vincent Celier  <celier@adacore.com>
9851
9852         * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
9853         indicator
9854
9855         * g-bytswa.ads: Minor reformatting
9856
9857 2007-09-12  Thomas Quinot  <quinot@adacore.com>
9858
9859         * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
9860         Add new constant Thread_Blocking_IO, always True by default, set False
9861         on a per-runtime basis.
9862         (Need_Netdb_Buffer): New constant.
9863
9864 2007-09-12  Arnaud Charlet  <charlet@adacore.com>
9865
9866         * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
9867         Added renames for corresponding functions in System.Partition_Interface.
9868
9869 2007-09-12  Doug Rupp  <rupp@adacore.com>
9870
9871         * Makefile.in: Remove VMS specific System.CRTL packages which are no
9872         longer needed.
9873
9874         * s-crtl-vms64.ads: Removed.
9875
9876 2007-09-12  Olivier Hainque  <hainque@adacore.com>
9877
9878         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
9879         with discriminant constraints, generalize the code for BIT_FIELDs
9880         to PACKED fields of constant size and propagate DECL_PACKED.
9881
9882 2007-09-11  Eric Botcazou  <ebotcazou@adacore.com>
9883
9884         * decl.c (array_type_has_nonaliased_component): New predicate.
9885         (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
9886         set the TYPE_NONALIASED_COMPONENT flag on the type.
9887         <E_Array_Subtype>: Likewise.
9888         * gigi.h (type_for_nonaliased_component_p): Declare.
9889         * utils.c (type_for_nonaliased_component_p): New predicate.
9890         (create_field_decl): Invoke the above predicate to set the
9891         DECL_NONADDRESSABLE_P flag on the field.
9892
9893 2007-09-11  Javier Miranda  <miranda@adacore.com>
9894
9895         * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
9896         in library level record type entities if we are generating statically
9897         allocated dispatch tables.
9898
9899         * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
9900         importing/exporting the _tag declaration by new code
9901         importing/exporting the dispatch table wrapper. This change allows us
9902         to statically allocate of the TSD.
9903         (Make_DT.Export_DT): New procedure.
9904         (Build_Static_DT): New function.
9905         (Has_DT): New function.
9906
9907         * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
9908         True_Constant and Current_Value. Required to statically
9909         allocate the dispatch tables.
9910         (Check_Allocator): Make function iterative instead of recursive.
9911         Also return inner allocator node, when present, so that we do not have
9912         to look for that node again in the caller.
9913
9914 2007-09-11  Jan Hubicka  <jh@suse.cz>
9915
9916         * misc.c (gnat_expand_body): Kill.
9917         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
9918
9919 2007-09-10  Robert Dewar  <dewar@adacore.com>
9920
9921         * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
9922         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
9923         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
9924         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
9925         ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
9926         bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
9927         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
9928         butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
9929         comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
9930         elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
9931         err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
9932         exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
9933         exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
9934         exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
9935         exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
9936         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
9937         exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
9938         exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
9939         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
9940         exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
9941         exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
9942         exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
9943         fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
9944         get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
9945         gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
9946         gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
9947         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
9948         gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
9949         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
9950         gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
9951         inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
9952         lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
9953         lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
9954         make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
9955         mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
9956         mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
9957         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
9958         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
9959         osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
9960         osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
9961         par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
9962         par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
9963         par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
9964         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
9965         par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
9966         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
9967         prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
9968         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
9969         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
9970         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
9971         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
9972         prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
9973         rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
9974         scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
9975         sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
9976         sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
9977         sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
9978         sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
9979         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
9980         sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
9981         sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
9982         sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
9983         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
9984         sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
9985         sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
9986         sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
9987         sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
9988         sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
9989         stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
9990         styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
9991         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
9992         switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
9993         tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
9994         treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
9995         types.h, uintp.h, urealp.h, usage.adb, usage.ads,
9996         validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
9997         xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
9998         xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
9999         gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
10000         mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
10001         symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
10002         mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
10003         mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
10004
10005 2007-09-10  Emmanuel Briot  <briot@adacore.com>
10006
10007         * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
10008         classes ("[]").
10009
10010 2007-09-10  Vasiliy Fofanov  <fofanov@adacore.com>
10011
10012         * adaint.c (__gnat_translate_vms): new function.
10013
10014 2007-09-10  Gary Dismukes  <dismukes@adacore.com>
10015             Thomas Quinot  <quinot@adacore.com>
10016
10017         * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
10018         create an abstract subprogram in the case of 'Input. For 'Output we now
10019         create a real spec/body when the type is abstract, since it can
10020         potentially be called.
10021         (Predefined_Primitive_Bodies): Now allow the creation of a predefined
10022         body for 'Output when the type is abstract (only the creation of the
10023         body for 'Input is excluded when the type is abstract).
10024         (Stream_Operation_OK): Add an additional condition in the return
10025         statement, so that False will be returned for TTS_Stream_Input if the
10026         associated tagged type is an abstract extension. Add comments for
10027         return statement.
10028         (Expand_N_Object_Declaration): For the case of a shared passive
10029         variable, insert init proc call only after the shared variable
10030         procedures have been processed, because the IP call needs to undergo
10031         shared passive variable reference expansion, which requires these
10032         procedures to be available (and elaborated).
10033
10034 2007-09-10  Vincent Celier  <celier@adacore.com>
10035
10036         * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
10037         parameter Runtime_Project.
10038
10039 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
10040
10041         * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
10042         given a box association, the type of the component is discriminated,
10043         and the value of the discriminant is the discriminant of the enclosing
10044         type, retrieve its value from the aggregate itself, where it must have
10045         been supplied.
10046
10047         * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
10048         to remove other spurious ambiguities on arithmetic operations involving
10049         literals and addresses, on systems where Address is a visible integer
10050         type, when the operator is called in functional notation.
10051         (Try_Primitive_Operation): Within an instance, a call in prefixed form
10052         is legal when the types match, even if the operation is currently
10053         hidden.
10054
10055 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
10056
10057         * sem_ch12.adb (Build_Local_Package): A formal package with no
10058         associations is legal if all formals have defaults. It is not
10059         equivalent to a formal declared with a box.
10060
10061 2007-09-10  Sergey Rybin  <rybin@adacore.com>
10062
10063         * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
10064
10065 2007-09-10  Sergey Rybin  <rybin@adacore.com>
10066
10067         * gnat_ugn.texi: Add description of the new '-lratio' option
10068         Update 7.3.1 section about availability of the feature.
10069
10070 2007-09-10  Thomas Quinot  <quinot@adacore.com>
10071
10072         * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
10073         inserted node.
10074
10075 2007-09-10  Olivier Hainque  <hainque@adacore.com>
10076
10077         * Makefile.in: (mips-irix section): Activate build of libgmem.
10078
10079 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
10080
10081         * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
10082         x87 registers.
10083
10084 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
10085
10086         * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
10087         a debug renaming declaration specially.
10088
10089 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
10090
10091         * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
10092         which a constant renaming is treated as a normal object declaration.
10093         * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
10094         the N_Indexed_Component case.
10095         <N_Indexed_Component>: Fall through to above case.
10096         <N_Object_Renaming_Declaration>: Return true for all composite types.
10097
10098 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
10099
10100         * decl.c (make_packable_type): If the new type has been given BLKmode,
10101         try again to get an integral mode for it.
10102
10103 2007-09-07  Eric Botcazou  <ebotcazou@adacore.com>
10104
10105         Re-apply accidentally reverted change:
10106
10107         2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
10108
10109         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
10110         get_action_description_for): Replace _Unwind_Word with _uleb128_t
10111         and _Unwind_SWord with _sleb128_t.
10112
10113 2007-09-06  Eric Botcazou  <ebotcazou@adacore.com>
10114
10115         * trans.c (convert_with_check): Update call to real_2expN.
10116
10117 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
10118
10119         * trans.c (Compilation_unit_to_gnu): Use set_cfun.
10120         * utils.c (end_subprog_body): Likewise.
10121
10122 2007-09-03  Nick Clifton  <nickc@redhat.com>
10123
10124         * Make-lang.in: Change copyright header to refer to version 3 of
10125         the GNU General Public License and to point readers at the
10126         COPYING3 file and the FSF's license web page.
10127         * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
10128         Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
10129         namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
10130         treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
10131         Likewise.
10132
10133 2007-08-31  Vincent Celier  <celier@adacore.com>
10134
10135         PR ada/4720
10136
10137         * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
10138         gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
10139         (Check_Version_And_Help): New procedure in package Switch to process
10140         switches --version and --help.
10141         Use Check_Version_And_Help in GNAT tools
10142
10143         * make.adb:  Ditto.
10144         (Compile_Sources): Make sure that sources that are "excluded" are not
10145         compiled.
10146         (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
10147         project file is used.
10148         (Version_Switch): Remove, moved to Switch
10149         (Help_Switch): Remove, moved to Switch
10150         (Display_Version): Remove, moved to Switch
10151
10152         * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
10153         package Switch to process switches --version and --help.
10154         (Display_Version): New procedure
10155
10156         * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
10157
10158 2007-08-31  Javier Miranda  <miranda@adacore.com>
10159
10160         * a-tags.adb (Internal_Tag): Protect the run-time against wrong
10161         internal tags.
10162
10163 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
10164
10165         * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
10166         (Mark_Non_Null): If the node for which we just generated an access check
10167         is a reference to an *in* parameter and the reference appears in the
10168         declarative part of a subprogram body, mark the node as known non null.
10169
10170 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
10171
10172         * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
10173         structure of E_Exception to reflect the new flag.
10174         (Is_Raised, Set_Is_Raised): New inlined routines.
10175         Update the usage of available flag to reflect the addition of Is_Raised.
10176         (Is_Raised, Set_Is_Raised): Bodies of new routines.
10177         (Write_Entity_Flags): Write the status of flag Is_Raised.
10178         (Is_Descendent_Of_Address): New entity flag, to simplify handling of
10179         spurious ambiguities when integer literals appear in the context of an
10180         address type that is a visible integer type.
10181
10182         * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
10183         exceptions never being raised.
10184         (Analyze_Raise_Statement): When analyzing an exception, mark it as being
10185         explicitly raised.
10186
10187 2007-08-31  Javier Miranda  <miranda@adacore.com>
10188
10189         * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
10190         statement when compiling under restriction No_Exceptions_Proparation.
10191
10192 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
10193
10194         * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
10195         initialization aggregate for the type, generate itype references for
10196         thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
10197
10198 2007-08-31  Gary Dismukes  <dismukes@adacore.com>
10199
10200         * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
10201         library-level package renaming, pass the declaration associated with
10202         the renaming's special debug variable to Qualify_Entity_Names to ensure
10203         that its encoded name is properly qualified.
10204
10205         * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
10206         occurring in the list of entities to qualify, and do not attempt to
10207         traverse an entity list in that case. Variables associated with
10208 `       library-level package renamings can now occur in the table.
10209
10210         * exp_dbug.ads: Revise documentation of the encoding for renaming
10211         declarations.
10212
10213 2007-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10214
10215         * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
10216         access type points to an unconstrained array.
10217
10218 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
10219
10220         * restrict.adb, namet.adb, par-util.adb: Remove redundant type
10221         conversion.
10222
10223         * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
10224         simple redundant qualifications. The check is performed whenever the
10225         expression is a non-overloaded identifier.
10226         (Resolve_Type_Conversion): Enchance the redundant type conversion check
10227         to include loop parameters.
10228         (Valid_Conversion): Avoid generation of spurious error message.
10229
10230 2007-08-31  Bob Duff  <duff@adacore.com>
10231
10232         * par-ch4.adb (P_Simple_Expression): Fold long sequences of
10233         concatenations of string literals into a single literal, in order to
10234         avoid very deep recursion in the front end, which was causing stack
10235         overflow.
10236
10237         * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
10238         string, and the right operand is a string literal (the case of "" &
10239         "..."), optimize by avoiding copying the right operand -- just use the
10240         value of the right operand directly.
10241
10242         * stringt.adb (Store_String_Chars): Optimize by growing the
10243         String_Chars table all at once, rather than appending characters one by
10244         one.
10245         (Write_String_Table_Entry): If the string to be printed is very long,
10246         just print the first few characters, followed by the length. Otherwise,
10247         doing "pn(n)" in the debugger can take an extremely long time.
10248
10249         * sem_prag.adb (Process_Interface_Name): Replace loop doing
10250         Store_String_Char with Store_String_Chars.
10251
10252 2007-08-31  Vincent Celier  <celier@adacore.com>
10253
10254         * prj-attr.adb: Add new attribute Excluded_Source_Files
10255
10256         * prj-nmsc.adb: Use attribute Excluded_Source_Files before
10257         Locally_Removed_Files.
10258
10259         * snames.ads, snames.adb: New standard name Excluded_Source_Files
10260
10261 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
10262
10263         * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
10264         clauses of subunits, ignore limited_with_clauses that are illegal and
10265         have not been fully analyzed.
10266
10267 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
10268
10269         * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
10270         flag, for effiency. It is called when analyzing arithmetic operators
10271         and also for actuals in calls that are universal_integers. The flag is
10272         set for the predefined type address, and for any type or subtype
10273         derived from it.
10274
10275         * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
10276         Universal_Integer, when the formal is a descendent of address and the
10277         call appears in user code.
10278         (Analyze_Selected_Component): if the prefix is a private extension, the
10279         tag component is visible.
10280
10281         * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
10282         entity flag.
10283
10284 2007-08-31  Robert Dewar  <dewar@adacore.com>
10285
10286         * s-fileio.adb (Open): Normalize file name to lower case in non-case
10287         sensitive file name systems to avoid unexpected mismatch in Vista.
10288
10289 2007-08-31  Vincent Celier  <celier@adacore.com>
10290
10291         * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
10292
10293 2007-08-31  Vincent Celier  <celier@adacore.com>
10294
10295         * symbols-vms.adb (Initialize): Read symbol files with continuation
10296         lines
10297         (Finalize): If symbol is long, split the line
10298
10299 2007-08-31  Vincent Celier  <celier@adacore.com>
10300
10301         * fmap.ads: Minor comment updates
10302
10303 2007-08-31  GNAT Script  <nobody@adacore.com>
10304
10305         * Make-lang.in: Makefile automatically updated
10306
10307 2007-08-31  Bob Duff  <duff@adacore.com>
10308
10309         * sinfo.ads: Minor comment fix.
10310
10311 2007-08-31  Thomas Quinot  <quinot@adacore.com>
10312
10313         * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
10314         with implementation.
10315         Documentation cleanup only.
10316
10317 2007-08-31  Sergey Rybin  <rybin@adacore.com>
10318
10319         * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
10320         gnatpp '--separate-stmt-name' option.
10321         Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
10322         option.
10323
10324         * gnat_ugn.texi: Add description for the new gnatpp
10325         '--separate-stmt-name' and '--use-on-new-line' options.
10326
10327 2007-08-31  Ben Elliston  <bje@au.ibm.com>
10328
10329         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
10330         when compiling for powerpc64-*-linux.
10331         * system-linux-ppc64.ads: New file.
10332
10333 2007-08-22  Krister Walfridsson  <cato@df.lth.se>
10334
10335         * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
10336         NetBSD.
10337
10338 2007-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10339
10340         * misc.c (gnat_type_max_size): Constify.
10341
10342 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
10343
10344         * cstand.adb (Create_Standard): Create an entity for a zero-sized type
10345         associated with Standard_Debug_Renaming_Type, to be used as the type of
10346         the special variables whose names provide debugger encodings for
10347         renaming declarations.
10348
10349         * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
10350         (Set_Debug_Renaming_Link): Change to set Node25.
10351         (Write_Field13_Name): Remove case for E_Enumeration_Literal.
10352         (Write_Field25_Name): Add case for E_Variable to output
10353         "Debug_Renaming_Link".
10354         (Write_Field23_Name): Correct the output string for "Limited_View".
10355
10356         * exp_dbug.adb: Add with and use of Tbuild.
10357         (Debug_Renaming_Declaration): Replace creation of an enumeration type
10358         and literal with creation of a variable of type
10359         Standard_Debug_Renaming_Type whose name encodes both the renamed object
10360         and the entity of the renaming declaration.
10361         (Qualify_Entity_Name): Add the delayed qualification of the entity name
10362         part of the name of a variable that has a Debug_Renaming_Link.
10363
10364         * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
10365         special type to be associated with variables that provide debugger
10366         encodings for renaming declarations.
10367
10368 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
10369             Ed Schonberg  <schonberg@adacore.com>
10370             Javier Miranda  <miranda@adacore.com>
10371
10372         * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
10373         ancestor part given by an aggregate to test for an unchecked conversion,
10374         since this can occur in some cases when the ancestor part is a function
10375         call, and we don't want to fall into the recursive call to this
10376         procedure in that case.
10377
10378         * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
10379         stream attributes on limited types to account for user-specified
10380         attributes as well as whether Input (resp. Output) becomes available
10381         due to Read (resp. Write) being available for the type. Change Boolean
10382         variable to the more accurate name
10383         Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
10384         double-"not" predicate at beginning of return statement to more
10385         understandable form.
10386
10387         * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
10388         return has an associated N_Handled_Sequence_Of_Statements, then wrap it
10389         in a block statement and use that as the first statement of the
10390         expanded return rather than incorrectly using the handled sequence as
10391         the first statement.
10392
10393         * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
10394         operation, generate an explicit freeze node for it rather than
10395         generating extra formals, to ensure that gigi has the proper order of
10396         elaboration for anonymous subtypes in the signature of the subprograms.
10397         (Build_In_Place_Formal): Move assertion to beginning of loop.
10398         (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
10399         applied to a function call (occurs for some cases of 'Input).
10400         (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
10401         applied to a function call (occurs for some cases of 'Input).
10402
10403         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
10404         2005, generate an extended return statement enclosing the result object
10405         and 'Read call.
10406
10407         * freeze.adb (Freeze_Record_Type): Extend the current management of
10408         components that are access type with an allocator as default value: add
10409         missing support to the use of qualified expressions of the
10410         allocator (which also cause freezing of the designated type!)
10411         (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
10412         dispatching operation, since extra formals may be needed by calls to
10413         build-in-place functions (such as stream 'Input).
10414
10415         * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
10416         formals for 'Constrained and accessibility level in the case of a
10417         predefined dispatching operation.
10418
10419         * exp_util.adb (Insert_Actions): A protected body is a valid insertion
10420         point, no need to find the parent node.
10421
10422 2007-08-16  Javier Miranda  <miranda@adacore.com>
10423
10424         * exp_attr.adb (Attribute_Priority): Add missing support for entries
10425         and entry barriers.
10426
10427 2007-08-16  Javier Miranda  <miranda@adacore.com>
10428
10429         * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
10430         is not really required and can introduce regression with the debugger.
10431         The original problem is fixed with the patch written for checks.adb.
10432
10433 2007-08-16  Thomas Quinot  <quinot@adacore.com>
10434
10435         * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
10436         Range_Check on Allocated_Table.
10437
10438 2007-08-16  Vincent Celier  <celier@adacore.com>
10439
10440         * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
10441         Including_Non_Switch set to False.
10442         (Gnatmake): For the compiler, call Test_If_Relative_Path with
10443         Including_Non_Switch set to False.
10444
10445         * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
10446         parameter Including_Non_Switch, defaulted to True. When
10447         Including_Non_Switch is False, options that are not switches and
10448         appear as relative path are not converted to absolute paths.
10449
10450 2007-08-16  Nicolas Roche  <roche@adacore.com>
10451
10452         * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
10453         makefiles
10454
10455         * Make-lang.in: Update dependencies
10456
10457 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
10458
10459         * sem_ch10.adb (Has_With_Clause): If the name of the with clause
10460         currently inspected is a selected component, retrieve the entity of
10461         its selector.
10462         (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
10463         from the immediate ancestor of Main_Unit_Entity.
10464         (Install_Limited_Withed_Unit): Do not install the limited view of
10465         package P if P is reachable through an ancestor chain from package C
10466         and C also has a with clause for P in its body.
10467         (Has_Limited_With_Clause): New routine.
10468         (Has_With_Clause): New routine.
10469
10470 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
10471
10472         * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
10473         generic for an enclosing instance is a global reference, even though
10474         its scope is the enclosing instance.
10475
10476 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
10477             Javier Miranda  <miranda@adacore.com>
10478
10479         * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
10480         initialize a limited object.
10481         (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
10482         13/2 and 14/2.
10483         Make sure Has_Complex_Representation is inherited by derived type.
10484
10485 2007-08-16  Robert Dewar  <dewar@adacore.com>
10486
10487         * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
10488         exception case
10489
10490 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
10491
10492         * sem_disp.adb (Check_Dispatching_Operation): If the operation
10493         implements an operation inherited from a progenitor interface, verify
10494         that they are subtype-conformant.
10495
10496 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
10497             Bob Duff  <duff@adacore.com>
10498             Nicolas Setton  <setton@adacore.com>
10499
10500         * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
10501         (Resolve): Alphabetize local variables. Add new variable From_Lib. When
10502         the statement which is being resolved comes from a predefined library
10503         unit, all non-predefined library interpretations are skipped.
10504         (Resolve_Op_Concat): If string concatenation was folded in the parser,
10505         but the "&" is user defined, give an error, because the folding would
10506         be wrong.
10507
10508         * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
10509         the parser has folded a long sequence of concatenations of string
10510         literals.
10511
10512         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
10513         and "JMP_BUF" variables as artificial.
10514         (N_String_Literal): Do not use alloca for very long string literals. Use
10515         xmalloc/free instead. Otherwise the stack might overflow.
10516
10517         * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
10518         compiler.
10519
10520 2007-08-16  Vincent Celier  <celier@adacore.com>
10521
10522         * vms_conv.adb (Process_Argument): Ensure that project related options
10523         are not put in the -cargs section when using GNAT COMPILE.
10524
10525 2007-08-16  Robert Dewar  <dewar@adacore.com>
10526
10527         * gnat_ugn.texi: Add note on preprocessing (output file not written)
10528
10529 2007-08-16  Thomas Quinot  <quinot@adacore.com>
10530
10531         * a-tags.adb: Minor reformatting.
10532
10533 2007-08-16  Bob Duff  <duff@adacore.com>
10534
10535         * sem_type.ads, sem_ch4.adb: Minor reformatting.
10536
10537 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10538
10539         * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
10540         s-osinte-interix.ads, system-interix.ads: Removed.
10541
10542 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
10543
10544         * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
10545         calls to Check_Within_Time_Bounds.
10546         ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
10547         (Difference): Account for possible rounding of the resulting difference
10548
10549 2007-08-14  Robert Dewar  <dewar@adacore.com>
10550
10551         * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
10552         par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
10553         s-osinte-solaris.adb, s-osinte-solaris.ads,
10554         s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
10555
10556         * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
10557         switch -gnatyS. Enable -gnatyS in GNAT style check mode
10558
10559 2007-08-14  Robert Dewar  <dewar@adacore.com>
10560             Ed Schonberg  <schonberg@adacore.com>
10561
10562         * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
10563         Suppress unmodified in-out parameter warning in some cases
10564         This patch is a also fairly significant change to the way suppressible
10565         checks are handled.
10566
10567         * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
10568         needed for access to concurrent record types generated by the expander.
10569         (Generate_Range_Check): When generating a temporary to capture the
10570         value of a conversion that requires a range check, set the type of the
10571         temporary before rewriting the node, so that the type is always
10572         properly placed for back-end use.
10573         (Apply_Float_Conversion_Check): Handle case where the conversion is
10574         truncating.
10575         (Get_Discriminal): Code reformatting. Climb the scope stack looking
10576         for a protected type in order to examine its discriminants.
10577
10578 2007-08-14  Robert Dewar  <dewar@adacore.com>
10579             Gary Dismukes  <dismukes@adacore.com>
10580             Ed Schonberg  <schonberg@adacore.com>
10581             Thomas Quinot  <quinot@adacore.com>
10582
10583         * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
10584         a-stwisu.adb, a-strsup.adb: Fix warnings for range
10585         tests optimized out.
10586
10587         * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
10588         (Get_Allocator_Final_List): For the case of an anonymous access type
10589         that has a specified Associated_Final_Chain, do not go up to the
10590         enclosing scope.
10591         (Expand_N_Type_Conversion): Test for the case of renamings of access
10592         parameters when deciding whether to apply a run-time accessibility
10593         check.
10594         (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
10595         aggregate code before allocator, and ahead of declaration for
10596         temporary, to prevent access before elaboration when the allocator is
10597         an actual for an access parameter.
10598         (Expand_N_Type_Conversion): On an access type conversion involving an
10599         access parameter, do not apply an accessibility check when the
10600         operand's original node was an attribute other than 'Access. We now
10601         create access conversions for the expansion of 'Unchecked_Access and
10602         'Unrestricted_Access in certain cases and clearly accessibility should
10603         not be checked for those.
10604
10605         * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
10606         includes a type conversion of a packed component that has been expanded,
10607         recover the original expression for the object, and use this expression
10608         in the post-call assignment statement, so that the assignment is made
10609         to the object and not to a back-end temporary.
10610         (Freeze_Subprogram): In case of primitives of tagged types not defined
10611         at the library level force generation of code to register the primitive
10612         in the dispatch table. In addition some code reorganization has been
10613         done to leave the implementation clear.
10614         (Expand_Call): When expanding an inherited implicit conversion,
10615         preserve the type of the inherited function after the intrinsic
10616         operation has been expanded.
10617
10618         * exp_ch2.ads, exp_ch2.adb
10619         (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
10620         of an entry formal appearing in an assignment statement does not assign
10621         to the formal.
10622         (Expand_Current_Value): Instead of calling a routine to determine
10623         whether the prefix of an attribute reference should be optimized or
10624         not, prevent the optimization of such prefixes all together.
10625
10626         * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
10627         component whose prefix is known to be of an access type is an implicit
10628         dereference and does not assign to the prefix.
10629
10630 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10631             Robert Dewar  <dewar@adacore.com>
10632
10633         * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
10634         itype is visited, make an entry into table to link associated node and
10635         new itype.
10636         Add comments and correct harmless error in Build_NCT_Hash_Tables
10637         (Array_Aggr_Subtype): Associate each itype created for an index type to
10638         the corresponding range construct, and not to the aggregate itself. to
10639         maintain a one-to-one correspondence between itype and its associated
10640         node, to prevent errors when complex expression is copied.
10641         Fix mishandling of multiple levels of parens
10642
10643         * sem_aggr.adb: Create a limited view of an incomplete type, to make
10644         treatment of limited views uniform for all visible declarations in a
10645         limited_withed package.
10646         (New_Copy_Tree): If hash table is being used and itype is visited,
10647         make an entry into table to link associated node and new itype.
10648         (Resolve_Record_Aggregate): Do not add an others box association for a
10649         discriminated record component that has only discriminants, when there
10650         is a box association for the component itself.
10651
10652         * par-ch4.adb: Fix mishandling of multiple levels of parens
10653
10654 2007-08-14  Robert Dewar  <dewar@adacore.com>
10655
10656         * comperr.adb: Fix problem with suppressing warning messages from gigi
10657
10658         * erroutc.ads, erroutc.adb, errout.ads,
10659         errout.adb (Write_Eol): Remove trailing spaces before writing the line
10660         (Write_Eol_Keep_Blanks): New procedure to write a line, including
10661         possible trailing spaces.
10662         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
10663         Fix problem with suppressing warning messages from back end
10664         Improve handling of deleted warnings
10665
10666         * gnat1drv.adb:
10667         Fix problem with suppressing warning messages from back end
10668         Handle setting of Static_Dispatch_Tables flag.
10669
10670         * prepcomp.adb:
10671         Fix problem with suppressing warning messages from back end
10672
10673         * exp_intr.adb: Improve handling of deleted warnings
10674
10675 2007-08-14  Robert Dewar  <dewar@adacore.com>
10676
10677         * debug.adb: Improve -gnatdI to cover all cases of serialization
10678         Add documentation of dZ, d.t
10679
10680         * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
10681         serialization.
10682         (Sprint_Node_Actual): Generate new output associated with implicit
10683         importation and implicit exportation of object declarations.
10684
10685 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10686             Robert Dewar  <dewar@adacore.com>
10687             Javier Miranda  <miranda@adacore.com>
10688             Gary Dismukes  <dismukes@adacore.com>
10689
10690         * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
10691         to make treatment of limited views uniform for all visible declarations
10692         in a limited_withed package.
10693         Improve warnings for in out parameters
10694         (Set_Related_Interaface/Related_Interface): Allow the use of this
10695         attribute with constants.
10696         (Write_Field26_Name): Handle attribute Related_Interface in constants.
10697         Warn on duplicate pragma Preelaborable_Initialialization
10698
10699         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
10700         generation of a freezing node to ensure proper management of null
10701         excluding access types in the backend.
10702         (Create_Extra_Formals): Test base type of the formal when checking for
10703         the need to add an extra accessibility-level formal. Pass the entity E
10704         on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
10705         originally being done in a couple of cases), to ensure that the
10706         Extra_Formals list gets set on the entity E when the first entity is
10707         added.
10708         (Conforming_Types): Add missing calls to Base_Type to the code that
10709         handles anonymous access types. This is required to handle the
10710         general case because Process_Formals builds internal subtype entities
10711         to handle null-excluding access types.
10712         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
10713         functions that need it, even when not marked Requires_Overriding.
10714         Improve warnings for in out parameters
10715         (Analyze_Function_Return): Warn for disallowed null return
10716         Warn on return from procedure with unset out parameter
10717         Ensure consistent use of # in error messages
10718         (Check_Overriding_Indicator): Add in parameter Is_Primitive.
10719         (Analyze_Function_Return): Move call to Apply_Constraint_Check before
10720         the implicit conversion of the expression done for anonymous access
10721         types. This is required to generate the code of the null excluding
10722         check (if required).
10723
10724         * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
10725         A formal parameter is never publicly referenceable outside of its body.
10726         (Check_References): For an unreferenced formal parameter in an accept
10727         statement, use the same warning circuitry as for subprogram formal
10728         parameters.
10729         (Warn_On_Unreferenced_Entity): New subprogram, taken from
10730         Output_Unreferenced_Messages, containing the part of that routine that
10731         is now reused for entry formals as described above.
10732         (Goto_Spec_Entity): New function
10733         (Check_References): Do not give IN OUT warning for dispatching operation
10734         Improve warnings for in out parameters
10735         (Test_Ref): Check that the entity is not undefinite before calling
10736         Scope_Within, in order to avoid infinite loops.
10737         Warn on return from procedure with unset out parameter
10738         Improved warnings for unused variables
10739
10740 2007-08-14  Robert Dewar  <dewar@adacore.com>
10741             Javier Miranda  <miranda@adacore.com>
10742             Gary Dismukes  <dismukes@adacore.com>
10743
10744         * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
10745         (Expand_N_Attribute_Reference): Further unify the handling of the
10746         three forms of access attributes, using common code now for all three
10747         cases. Add a test for the case of applying an access attribute to
10748         an explicit dereference when the context is an access-to-interface
10749         type. In that case we need to apply the conversion to the prefix
10750         of the explicit dereference rather than the prefix of the attribute.
10751         (Attribute_Version, UET_Address): Set entity as internal to ensure
10752         proper dg output of implicit importation.
10753         (Expand_Access_To_Type): Removed.
10754         (Expand_N_Attribute_Reference): Merge the code from the three cases
10755         of access attributes, since the processing is largely identical for
10756         these cases. The substantive fix here is to process the case of a
10757         type name prefix (current instance case) before handling the case
10758         of interface prefixes.
10759
10760 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10761             Ed Schonberg  <schonberg@adacore.com>
10762             Javier Miranda  <miranda@adacore.com>
10763             Robert Dewar  <dewar@adacore.com>
10764
10765         * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
10766         (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
10767         type that is an anonymous access to controlled object, establish
10768         an associated finalization chain to avoid corrupting the global
10769         finalization list when a dynamically allocated object designated
10770         by such a component is deallocated.
10771         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
10772         functions that need it, even when not marked Requires_Overriding.
10773         (Initialize_Tag): Replace call to has_discriminants by call to
10774         Is_Variable_Size_Record in the circuitry that handles the
10775         initialization of secondary tags.
10776         (Is_Variable_Size_Record): New implementation.
10777         (Expand_N_Object_Declaration): Suppress call to init proc if there is a
10778         Suppress_Initialization pragma for a derived type.
10779         (Is_Variable_Size_Record): New subprogram.
10780         (Build_Offset_To_Top_Functions): New implementation that simplifies the
10781         initial version of this routine and also fixes problems causing
10782         incomplete initialization of the table of interfaces.
10783         (Build_Init_Procedure): Improve the generation of code to initialize the
10784         the tag components of secondary dispatch tables.
10785         (Init_Secondary_Tags): New implementation that simplifies the previous
10786         version of this routine.
10787         (Make_DT): Add parameter to indicate when type has been frozen by an
10788         object declaration, for diagnostic purposes.
10789         (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
10790         diagnose attemps to freeze a subprogram when some untagged type of its
10791         profile is a private type whose full view has not been analyzed yet.
10792         (Freeze_Array_Type): Generate init proc for packed array if either
10793         Initialize or Normalize_Scalars is set.
10794         (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
10795         constructing the new profile, copy the null_exclusion indicator for each
10796         parameter, to ensure full conformance of the new body with the spec.
10797
10798         * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
10799         Create wrappers for constructor functions that need it, even when not
10800         marked Requires_Overriding.
10801         (Covers): Handle properly designated types of anonymous access types,
10802         whose non-limited views are themselves incomplete types.
10803         (Add_Entry): Use an entity to store the abstract operation which hides
10804         an interpretation.
10805         (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
10806         (Collect_Interps): Use Empty as an actual for Abstract_Op in the
10807         initialization aggregate.
10808         (Function_Interp_May_Be_Hidden): Rename to
10809         Function_Interp_Has_Abstract_Op.
10810         (Has_Compatible_Type): Remove machinery that skips interpretations if
10811         they are labeled as potentially hidden by an abstract operator.
10812         (Has_Hidden_Interp): Rename to Has_Abstract_Op.
10813         (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
10814         (Write_Overloads): Output the abstract operator if present.
10815         (Add_Entry): Before inserting a new entry into the interpretation table
10816         for a node, determine whether the entry will be disabled by an abstract
10817         operator.
10818         (Binary_Op_Interp_May_Be_Hidden): New routine.
10819         (Collect_Interps): Add value for flag May_Be_Hidden in initialization
10820         aggregate.
10821         (Function_Interp_May_Be_Hidden): New routine.
10822         (Has_Compatible_Type): Do not consider interpretations hidden by
10823         abstract operators when trying to determine whether two types are
10824         compatible.
10825         (Has_Hidden_Interp): New routine.
10826         (Set_May_Be_Hidden_Interp): New routine.
10827         (Write_Overloads): Write the status of flag May_Be_Hidden.
10828
10829 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10830             Javier Miranda  <miranda@adacore.com>
10831
10832         * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
10833         types declared in the declarative part of a nested package body or in
10834         the proper body of a stub.
10835         (Set_All_DT_Position): Add missing check to avoid wrong assignation
10836         of the same dispatch table slot to renamed primitives.
10837         (Make_Select_Specific_Data_Table): Handle private types.
10838         (Tagged_Kind): Handle private types.
10839         (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
10840         output of implicit importation and exportation.
10841         (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
10842         first formal of the thunk is always associated with the controlling
10843         type. In addition perform the following code cleanup: remove formal
10844         Thunk_Alias which is no longer required, cleanup evaluation of the
10845         the controlling type, and update the documentation.
10846         Replace occurrence of Default_Prim_Op_Count by
10847         Max_Predef_Prims. Addition of compile-time check to verify
10848         that the value of Max_Predef_Prims is correct.
10849         (Check_Premature_Freezing): Apply check in Ada95 mode as well.
10850         (Make_DT): Add parameter to indicate when type has been frozen by an
10851         object declaration, for diagnostic purposes.
10852         (Build_Static_Dispatch_Tables): New subprogram that takes care of the
10853         construction of statically allocated dispatch tables.
10854         (Make_DT): In case of library-level tagged types export the declaration
10855         of the primary tag. Remove generation of tags (now done by Make_Tags).
10856         Additional modifications to handle non-static generation of dispatch
10857         tables. Take care of building tables for asynchronous interface types
10858         (Make_Tags): New subprogram that generates the entities associated with
10859         the primary and secondary tags of Typ and fills the contents of Access_
10860         Disp_Table. In case of library-level tagged types imports the forward
10861         declaration of the primary tag that will be declared later by Make_DT.
10862         (Expand_Interface_Conversion): In case of access types to interfaces
10863         replace an itype declaration by an explicit type declaration to avoid
10864         problems associated with the scope of such itype in transient blocks.
10865
10866 2007-08-14  Robert Dewar  <dewar@adacore.com>
10867             Ed Schonberg  <schonberg@adacore.com>
10868             Javier Miranda  <miranda@adacore.com>
10869
10870         * exp_util.ads, exp_util.adb:
10871         This patch replaces a number of occurrences of explicit tests for N_Null
10872         with calls to Known_Null. This improves tracking of null values, since
10873         Known_Null also catches null constants, and variables currently known to
10874         be null, so we get better tracking.
10875         (Ensure_Defined): create an itype reference only in the scope of the
10876         itype.
10877         (Side_Effect_Free): A selected component of an access type that
10878         denotes a component with a rep clause must be treated as not
10879         side-effect free, because if it is part of a linked structure its
10880         value may be affected by a renaming.
10881         (Expand_Subtype_From_Expr): For limited objects initialized with build
10882         in place function calls, do nothing; otherwise we prematurely introduce
10883         an N_Reference node in the expression initializing the object, which
10884         breaks the circuitry that detects and adds the additional arguments to
10885         the called function. Bug found working in the new patch for statically
10886         allocated dispatch tables.
10887         (Is_Library_Level_Tagged_Type): New subprogram.
10888         (Remove_Side_Effects): If the expression of an elementary type is an
10889         operator treat as a function call.
10890         (Make_Literal_Range): If the index type of the array is not integer, use
10891         attributes properly to compute the constraint on the resulting aggregate
10892         which is a string.
10893
10894         * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
10895         class-wide type whose base type is an incomplete private type, leave
10896         class-wide type unfrozen so that freeze nodes can be generated
10897         properly at a later point.
10898         (Freeze_Entity, array case): Handle case of pragma Pack and component
10899         size attributre clause for same array.
10900
10901 2007-08-14  Vincent Celier  <celier@adacore.com>
10902
10903         * prj.ads, prj.adb: Update Project Manager to new attribute names for
10904         gprbuild.
10905         Allow all valid declarations in configuration project files
10906         (Reset): Initialize all tables and hash tables in the project tree data
10907         Major update of the Project Manager and of the project aware tools,
10908         including gprmake, so that the same sources in the GNAT repository
10909         can be used by gprbuild.
10910         (Slash_Id): Change type to be Path_Name_Type
10911         (Slash): Return a Path_Name_Type instead of a File_Name_Type
10912
10913         * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
10914         gprbuild.
10915         Update Project Manager to new attribute names for ghprbuild
10916         Allow all valid declarations in configuration project files
10917         Major update of the Project Manager and of the project aware tools,
10918         including gprmake, so that the same sources in the GNAT repository
10919         can be used by gprbuild.
10920
10921         * prj-com.ads:
10922         Major update of the Project Manager and of the project aware tools,
10923         including gprmake, so that the same sources in the GNAT repository
10924         can be used by gprbuild.
10925
10926         * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
10927         insensitive flag for attributes with optional index.
10928         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
10929         array attribute, put the index in lower case.
10930         Update Project Manager to new attribute names for ghprbuild
10931         Allow all valid declarations in configuration project files
10932         Major update of the Project Manager and of the project aware tools,
10933         including gprmake, so that the same sources in the GNAT repository
10934         can be used by gprbuild.
10935
10936         * prj-env.ads, prj-env.adb:
10937         Major update of the Project Manager and of the project aware tools,
10938         including gprmake, so that the same sources in the GNAT repository
10939         can be used by gprbuild.
10940         (Get_Reference): Change type of parameter Path to Path_Name_Type
10941
10942         * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
10943         removing '-' from the path to start with the first character of the
10944         next directory.
10945         Major update of the Project Manager and of the project aware tools,
10946         including gprmake, so that the same sources in the GNAT repository
10947         can be used by gprbuild.
10948         Major update of the Project Manager and of the project aware tools,
10949         including gprmake, so that the same sources in the GNAT repository
10950         can be used by gprbuild.
10951
10952         * prj-nmsc.ads, prj-nmsc.adb:
10953         Update Project Manager to new attribute names for ghprbuild
10954         Allow all valid declarations in configuration project files
10955         (Search_Directories): Detect subunits that are specified with an
10956         attribute Body in package Naming. Do not replace a source/unit in the
10957         same project when the order of the source dirs are known. Detect
10958         duplicate sources/units in the same project when the order of the
10959         source dirs are not known.
10960         (Check_Ada_Name): Allow all identifiers that are not reserved words
10961         in Ada 95.
10962         Major update of the Project Manager and of the project aware tools,
10963         including gprmake, so that the same sources in the GNAT repository
10964         can be used by gprbuild.
10965         (Look_For_Sources): If the list of sources is empty, set the object
10966         directory of non extending project to nil.
10967         Change type of path name variables to be Path_Name_Type
10968         (Locate_Directory): Make sure that on Windows '/' is converted to '\',
10969         otherwise creating missing directories will fail.
10970
10971         * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
10972         prj-part.ads, prj-part.adb:
10973         Major update of the Project Manager and of the project aware tools,
10974         including gprmake, so that the same sources in the GNAT repository
10975         can be used by gprbuild.
10976
10977         * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
10978         insensitive flag for attributes with optional index.
10979         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
10980         array attribute, put the index in lower case.
10981         (Parse_Variable_Reference): Allow the current project name to be used in
10982         the prefix of an attribute reference.
10983
10984         * prj-util.ads, prj-util.adb
10985         (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
10986         defaulted to False. When True, always check against indexes in lower
10987         case.
10988
10989         * snames.ads, snames.h, snames.adb:
10990         Update Project Manager to new attribute names for gprbuild
10991         Allow all valid declarations in configuration project files
10992
10993 2007-08-14  Robert Dewar  <dewar@adacore.com>
10994             Ed Schonberg  <schonberg@adacore.com>
10995
10996         * opt.ads: Warning for non-local exception propagation now off by
10997         default
10998         New switch -gnatI to disable representation clauses
10999         Implement new pragma Implicit_Packing
11000
11001         * usage.adb:
11002         Warning for non-local exception propagation now off by default
11003         Add warning for unchecked conversion of pointers wi different
11004         conventions.
11005         New switch -gnatI to disable representation clauses
11006
11007         * usage.adb: new switch -gnatyS
11008
11009         * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
11010         note that aggregates of anonymous array types are not flagged.
11011         -gnatwc now includes membership tests optimized away
11012         -gnatw.x warnings are now off by default
11013         Added conditional compilation Appendix
11014         Add documentation of -gnatI
11015         Add documentation for new -gnatyS style check
11016         Update documentation about SAL and auto-init on Windows.
11017
11018         * gnat_rm.texi:
11019         Add documentation for pragma Check_Name and 'Enabled attribute
11020         Document that Eliminate on dispatching operation is ignored
11021         Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
11022         Document pragma Main
11023         Document pragma Implicit_Packing
11024
11025         * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
11026         different conventions
11027         New switch -gnatI to disable representation clauses
11028
11029         * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
11030         recognized, report the invalid characters including "-gnat" instead of
11031         just the first character in the switch.
11032         New switch -gnatI to disable representation clauses
11033         Set Warn_On_Object_Renames_Function true for -gnatg
11034
11035         * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
11036         Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
11037         Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
11038         to switch -aP (add directory to project search dir).
11039
11040         * par-prag.adb: Implement new pragma Implicit_Packing
11041
11042         * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
11043         type as having a non-standard representation, to force expansion on
11044         conversion to related types.
11045         (Analyze_Pragma): Warn on misspelled pragma
11046         (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
11047         Ensure consistent use of # in error messages
11048         Implement pragma Implicit_Packing
11049
11050 2007-08-14  Olivier Hainque  <hainque@adacore.com>
11051             Eric Botcazou  <ebotcazou@adacore.com>
11052
11053         * targtyps.c (get_target_maximum_default_alignment): New function.
11054         Maximum alignment
11055         that the compiler might choose by default for a type or object.
11056         (get_target_default_allocator_alignment): New function. Alignment known
11057         to be honored by the target default allocator.
11058         (get_target_maximum_allowed_alignment): New function. Maximum alignment
11059         we might accept for any type or object on the target.
11060         (get_target_maximum_alignment): Now synonym of maximum_default_alignment
11061
11062         * gigi.h (get_target_maximum_default_alignment): Declare new function.
11063         (get_target_default_allocator_alignment): Likewise.
11064         (get_target_maximum_allowed_alignment): Likewise.
11065
11066         PR ada/19037
11067         * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
11068         result of a function call, first try to use a stabilized reference for
11069         a constant renaming too.
11070         (validate_alignment): Use target_maximum_allowed_alignment instead of
11071         MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
11072         (gnat_to_gnu_entity): Use common nodes directly.
11073         (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
11074         alignment and size for the object.
11075         (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
11076         and N_Procedure_Call_Statement.
11077         (takes_address): Rename to lvalue_required_p, add third parameter
11078         'aliased' and adjust recursive calls.
11079         <N_Indexed_Component>: Update 'aliased' from the array type.
11080         <N_Selected_Component>: New case.
11081         <N_Object_Renaming_Declaration>: New Likewise.
11082         (Identifier_to_gnu): Adjust for above changes.
11083         (maybe_stabilize_reference) <CONST_DECL>: New case.
11084
11085         * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
11086         between type variants.
11087         (build_simple_component_ref): Likewise.
11088         (build_call_alloc_dealloc): Use target_default_allocator_alignment
11089         instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
11090         aligning type circuitry for allocations from the default storage pool.
11091         (build_allocator): Likewise.
11092         (build_simple_component_ref): Manually fold the reference for a
11093         constructor if the record type contains a template.
11094
11095         * utils.c (value_zerop): Delete.
11096         (gnat_init_decl_processing): Emit debug info for common types.
11097         (rest_of_record_type_compilation): If a union contains a field
11098         with a non-constant qualifier, treat it as variable-sized.
11099         (finish_record_type): Give the stub TYPE_DECL a name.
11100         (rest_of_record_type_compilation): Likewise.
11101         (convert) <CONSTRUCTOR>: New case.  Build a new constructor if
11102         types are equivalent array types.
11103         (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
11104         even if the type is not passed by reference.
11105         (static_ctors, static_dtors): Delete.
11106         (end_subprog_body): Do not record constructors and destructors.
11107         (build_global_cdtor): Delete.
11108         (gnat_write_global_declarations): Do not call build_global_cdtor.
11109
11110         * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
11111         -fRTS=rtp is specified.
11112         If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
11113         specified.
11114
11115         * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
11116         of the personality function with SJLJ exceptions.
11117
11118         * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
11119         the name of the personality function with SJLJ exceptions.
11120
11121 2007-08-14  Robert Dewar  <dewar@adacore.com>
11122             Ed Schonberg  <schonberg@adacore.com>
11123
11124         * par.ads, par.adb: Improve handling of extra right parens.
11125         (Par): Remove flag From_Limited_With_Clause.
11126
11127         * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
11128         Improve handling of extra right parens.
11129
11130 2007-08-14  Robert Dewar  <dewar@adacore.com>
11131
11132         * par-tchk.adb (TF_Semicolon): Improve error recovery
11133
11134 2007-08-14  Robert Dewar  <dewar@adacore.com>
11135             Ed Schonberg  <schonberg@adacore.com>
11136
11137         * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
11138         enumeration type, mark all literals as referenced.
11139         (Eval_Attribute, case 'Image): If the argument is an enumeration
11140         literal and names are available, constant-fold but mark nevertheless as
11141         non-static.
11142         Clean up function names.
11143         (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
11144         comment.
11145         (Requires_Simple_Name_Prefix): Removed.
11146
11147 2007-08-14  Robert Dewar  <dewar@adacore.com>
11148             Ed Schonberg  <schonberg@adacore.com>
11149
11150         * sem_ch11.adb: Improved warnings for unused variables
11151
11152         * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
11153         is a synchronized interface, the derived type is limited.
11154         (Analyze_Object_Declaration): Mark the potential coextensions in the
11155         definition and expression of an object declaration node.
11156         (Build_Derived_Type): For the completion of a private type declaration
11157         with a derived type declaration, chain the parent type's representation
11158         items to the last representation item of the derived type (not the
11159         first one) if they are not present already.
11160         (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
11161         object declaration of forward references to tags.
11162         (Access_Subprogram_Declaration): In Ada2005, anonymous access to
11163         subprogram types can appear as access discriminants of synchronized
11164         types.
11165         (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
11166         given in prefixed form as a selected component.
11167         (Process_Discriminants): If not all discriminants have defaults, place
11168         error message on a default that is present.
11169         (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
11170         extend a synchronized tagged type.
11171         Improved warnings for unused variables
11172         (Is_Visible_Component): Fix a visibility hole on a component inherited
11173         by a private extension when parent is itself declared as a private
11174         extension, and the derivation is in a child unit.
11175         (Find_Hidden_Interface): Move spec from the package body.
11176
11177 2007-08-14  Robert Dewar  <dewar@adacore.com>
11178             Ed Schonberg  <schonberg@adacore.com>
11179
11180         * sem_ch5.adb: Improve warnings on redundant assignments
11181
11182         * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
11183         parameter
11184         (Is_Synchronized_Tagged_Type): New subprogram that returns true
11185         in case of synchronized tagged types (AARM 3.9.4 (6/2)).
11186         (Safe_To_Capture_Value): Can now return True for constants, even if Cond
11187         is set to False. Improves handling of Known_[Not_]Null.
11188         (Wrong_Type): Special case address arithmetic attempt
11189         (Collect_Abstract_Interfaces): Add new formal to allow collecting
11190         abstract interfaces just using the partial view of private types.
11191         (Has_Abstract_Interfaces): Add new formal to allow checking types
11192         covering interfaces using the partial view of private types.
11193         (Is_Fully_Initialized_Type): Special VM case for uTag component. This
11194         component still needs to be defined in this case, but is never
11195         initialized as VMs are using other dispatching mechanisms.
11196         (Abstract_Interface_List): For a protected type, use base type to get
11197         proper declaration.
11198         Improve warnings on redundant assignments
11199         (Is_Variable): Handle properly an implicit dereference of a prefixed
11200         function call.
11201         (Build_Actual_Subtype): If this is an actual subtype for an
11202         unconstrained formal parameter, use the sloc of the body for the new
11203         declaration, to prevent anomalises in the debugger.
11204
11205 2007-08-14  Robert Dewar  <dewar@adacore.com>
11206
11207         * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
11208         dispatching operation
11209
11210 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11211             Gary Dismukes  <dismukes@adacore.com>
11212
11213         * exp_aggr.ads,
11214         exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
11215         expanded aggregate code before allocator, and ahead of declaration for
11216         temporary, to prevent access before elaboration when the allocator is
11217         an actual for an access parameter.
11218         (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
11219         the TSD and the table of interfaces.
11220         (Convert_To_Assignments): Augment the test for delaying aggregate
11221         expansion for limited return statements to include the case of extended
11222         returns, to prevent creation of an unwanted transient scope.
11223         (Is_Static_Dispatch_Table_Aggregate): New subprogram.
11224         (Expand_Array_Aggregate): Handle aggregates associated with
11225         statically allocated dispatch tables.
11226         (Expand_Record_Aggregate): Handle aggregates associated with
11227         statically allocated dispatch tables.
11228         (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
11229         of anonymous access type.
11230
11231 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11232
11233         * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
11234         is a variable that renames a slice, use the variable itself in the
11235         expannsion when the renamed expression itself may be modified between
11236         the declaration of the renaming and the array assignment.
11237
11238 2007-08-14  Jerome Guitton  <guitton@adacore.com>
11239
11240         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
11241         s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
11242         s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
11243         New functions; dummy implementations.
11244
11245         * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
11246         functions, used to implement the multi-tasks mode routines on VxWorks.
11247
11248         * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
11249         New functions, thin
11250         binding to the VxWorks routines which have changed between VxWorks 5
11251         and 6.
11252         (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
11253         which are not callable from a RTP.
11254
11255         * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
11256         implemented for the multi-tasks mode on VxWorks 5 and 6.
11257
11258         * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
11259
11260         * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
11261         functions.
11262
11263 2007-08-14  Vincent Celier  <celier@adacore.com>
11264
11265         * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
11266         gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
11267         mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
11268         mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
11269         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
11270         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
11271         mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
11272         procedure.
11273         (Major_Id_Name): New function.
11274         mlib-tgt.ads/mlib.tgt.adb:
11275         (Library_Major_Minor_Id_Supported): New function, default returns True
11276         Most mlib-tgt-*.adb that support shared libraries and symbolic links:
11277         (Build_Dynamic_Library): Add support for major/minor ids for shared libs
11278         Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
11279         Implementation of Library_Major_Minor_Id_Supported returns False
11280         clean.adb:
11281         (Clean_Library_Directory): If major/minor ids are supported, clean all
11282         library files.
11283         Major update of the Project Manager and of the project aware tools,
11284         including gprmake, so that the same sources in the GNAT repository
11285         can be used by gprbuild.
11286
11287 2007-08-14  Olivier Hainque  <hainque@adacore.com>
11288
11289         * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
11290         (GCC_ZCX_Support): Switch to True.
11291
11292         * s-intman-solaris.adb (Notify_Exception): Call
11293         Adjust_Context_For_Raise before raising, as expected for signal
11294         handlers in general.
11295
11296         * s-intman-posix.adb (Notify_Exception): Remove declaration of
11297         Adjust_Context_For_Raise, moved to the spec of this unit to be visible
11298         to other implementation bodies.
11299
11300         * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
11301         be visible by multiple implementation bodies.
11302
11303         * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
11304         only for conditions coming from hardware.
11305         [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
11306         adjustments to signal context prior to exception raise from signal
11307         handler.
11308         (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
11309         mode.
11310         Solaris section: (__gnat_adjust_context_for_raise): New function.
11311         Implementation of the machine context adjustments to perform prior to
11312         raise from a signal handler. Version for both sparc and x86.
11313         (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
11314         (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
11315         prior to raising as expected for any handler, before possible nested
11316         faults to make sure all the contexts in a chain have been adjusted by
11317         the time we propagate.
11318
11319 2007-08-14  Pascal Obry  <obry@adacore.com>
11320
11321         * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
11322         (SYSTEM_INFO): New record.
11323         (SetThreadIdealProcessor): New imported routine needed for supporting
11324         task_info pragma on Windows.
11325
11326         * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
11327         info can be applied to the current host.
11328         (Create_Task): Set the ideal processor if information is present.
11329
11330         * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
11331         a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
11332
11333 2007-08-14  Olivier Hainque  <hainque@adacore.com>
11334
11335         * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
11336         stack size and initial stack pointer value for a given task.
11337         (Enter_Task): Get the stack attributes of the task we are entering and
11338         let the stack checking engine know about them.
11339
11340         * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
11341         Let the stack-checking engine know about the initial sp value and stack
11342         size associated with the current task.
11343         (Set_Stack_Info): If a stack base has been notified for the current
11344         task, honor it. Fallback to the previous less accurate method otherwise.
11345
11346         * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
11347
11348 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11349
11350         * sem_ch10.adb: Create a limited view of an incomplete type, to make
11351         treatment of limited views uniform for all visible declarations in a
11352         limited_withed package.
11353         Set flag indicating that a subprogram body for a child unit has a
11354         generated spec.
11355         (Analyze_Compilation_Unit): If unit is a subprogram body that has no
11356         separate declaration, remove the unit name from visibility after
11357         compilation, so that environment is clean for subsequent compilations.
11358         (Install_Limited_Context_Clauses): Do not install a
11359         limited_private_with_clause unless the current unit is a body or a
11360         private child unit.
11361         (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
11362         in the same fashion.
11363         (Install_Limited_Withed_Unit): Do not install a limited with clause if
11364         it applies to the declaration of the current package body.
11365         (Remove_Private_With_Clauses): If there is a regular with_clause for
11366         the unit, delete Private_With_Clause from context, to prevent improper
11367         hiding when processing subsequent nested packages and instantiations.
11368
11369 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
11370
11371         * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
11372         dir/file, device:/dir/file, and device:drive_letter:/dir/file as
11373         representing absolute path names.
11374         __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
11375
11376         * cstreams.c (__gnat_full_name for VxWorks): Use
11377         __gnat_is_absolute_path to detect whether we need to add the current
11378         directory to normalize the path.
11379
11380 2007-08-14  Javier Miranda  <miranda@adacore.com>
11381
11382         * a-tags.ads,
11383         a-tags.adb (Displace): Associate a message with the raised CE
11384         exception.
11385         (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
11386         To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
11387         To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
11388         spec.
11389         (Default_Prim_Op_Count): Removed.
11390         (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
11391         Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
11392         Remove pragma Inline_Always.
11393
11394         * rtsfind.ads (Default_Prim_Op_Count): Removed
11395         (Max_Predef_Prims): New entity
11396         (RE_Expanded_Name): Removed
11397         (RE_HT_Link): Removed
11398         (RE_Iface_Tag): Remmoved
11399         (RE_Ifaces_Table): Removed
11400         (RE_Interfaces_Array): Removed
11401         (RE_Interface_Data_Element): Removed
11402         (RE_Nb_Ifaces): Removed
11403         (RE_RC_Offset): Removed
11404         (RE_Static_Offset_To_Top): Removed
11405
11406         * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
11407         formal.
11408         (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
11409         Prim_Op_Count by Max_Predef_Prims.
11410
11411 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11412             Vincent Celier  <celier@adacore.com>
11413
11414         * binde.adb (Elab_All_Links): Remove unnecessary call to
11415         Generic_Separately_Compiled (if a unit satisfies this predicate, there
11416         won't be an associated Afile).
11417         (Elab_All_Links): Fail if a referenced unit cannot be found
11418
11419         * bindgen.adb:
11420         Fix comments in bindgen regarding consistency checks done in Bcheck:
11421         the checks are made across units within a partition, not across several
11422         partitions.
11423         Fix generation of C binder file for VxWorks.
11424
11425         * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
11426         Generic_May_Lack_ALI, more descriptive of the current use of the
11427         predicate, and update documentation.
11428
11429         * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
11430         reorganization and documentation update for the case of predefined
11431         library generics (for which we do not reference an Afile).
11432
11433 2007-08-14  Robert Dewar  <dewar@adacore.com>
11434
11435         * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
11436         s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
11437         s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
11438         s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
11439         s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
11440         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
11441         s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
11442         s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
11443         exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
11444         s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
11445         s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
11446         a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
11447         s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
11448         g-altcon.adb: Minor reformatting
11449
11450         ada-tree.h: Delete empty line.
11451
11452         ali.ads: Minor reformatting
11453         Clarification of comments.
11454         Minor spelling correction
11455
11456         * exp_dbug.adb: Add Warnings Off to suppress new warning
11457
11458         * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
11459         formal
11460
11461         * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
11462         value
11463
11464         * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
11465
11466         * a-textio.ads: Reorder the standard input/output/error declarations
11467         for consistency.
11468
11469         * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
11470
11471         * par-ch2.adb: Recognize RM specially in errout
11472         Change 'R'M to RM in all error messages
11473
11474         * scng.adb: Recognize RM specially in errout
11475
11476         * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
11477         N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
11478
11479         * s-direio.adb: Add missing routine header box.
11480
11481         * sem_attr.ads: Add ??? comments
11482
11483         * sem_eval.adb: Recognize RM specially in errout
11484         Change 'R'M to RM in all error messages
11485
11486         * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
11487
11488         * s-tasinf.ads: Fix minor comment typo.
11489
11490         * a-cihama.adb: Minor comment addition
11491
11492         * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
11493         formal
11494
11495         * s-tasinf-tru64.ads: Fix minor comment typo.
11496
11497         * itypes.ads: Comment update.
11498
11499         * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
11500         anymore.
11501
11502         * argv.c: Added protection against null gnat_argv and gnat_envp.
11503
11504         * bcheck.adb (Check_Consistency): Use correct markup character ({) in
11505         warning message when Tolerate_Consistency_Errors is True.
11506
11507         * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
11508         Any_Id, as this subprogram is only applicable to *type* entities (it
11509         sets RM_Size). Instead initialize just Esize and Alignment.
11510
11511 2007-08-14  Bob Duff  <duff@adacore.com>
11512
11513         * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
11514         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
11515         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
11516         a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
11517         a-coorse.ads (Next): Applied pragma Inline.
11518         Make all Containers packages Remote_Types (unless they are already
11519         Pure).
11520         (Previous): applied pragma Inline
11521         (Elements_Type): is now a record instead of an array
11522
11523 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11524
11525         * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
11526         of Set_Item.
11527         (Set_Item): When the new item is an element of the currently allocated
11528         table passed by reference, save a copy on the stack if we're going
11529         to reallocate. Also, in Table.Set_Item, make sure we test the proper
11530         variable to determine whether to call Set_Last.
11531
11532         * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
11533         symbols-vms.adb, symbols-processing-vms-alpha.adb,
11534         symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
11535         some occurrences of the pattern
11536            T.Increment_Last;
11537            T.Table (T.Last) := Value;
11538         with a cleaner call to
11539            T.Append (Value);
11540
11541 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11542             Gary Dismukes  <dismukes@adacore.com>
11543             Thomas Quinot  <quinot@adacore.com>
11544
11545         * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
11546         derived type with interface progenitors use the analyzed formal as the
11547         parent of the actual, to create renamings for all the inherited
11548         operations in Derive_Subprograms.
11549         (Collect_Previous_Instances): new procedure within of
11550         Load_Parent_Of_Generic, to instantiate all bodies in the compilation
11551         unit being loaded, to ensure that the generation of global symbols is
11552         consistent in different compilation modes.
11553         (Is_Tagged_Ancestor): New function testing the ancestor relation that
11554         takes progenitor types into account.
11555         (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
11556         traversing over the primitives of the formal and actual types to locate
11557         any abstract subprograms of the actual type that correspond to a
11558         nonabstract subprogram of the formal type's ancestor type(s), and issue
11559         an error if such is found.
11560         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
11561         Instantiate_Package_Body, Instantiate_Subprogram_Body):
11562         Remove bogus guard around calls to Inherit_Context.
11563         (Reset_Entity): If the entity is the selector of a selected component
11564         that denotes a named number, propagate constant-folding to the generic
11565         template only if the named number is global to the generic unit.
11566         (Set_Instance_Env): Only reset the compilation switches when compiling
11567         a predefined or internal unit.
11568
11569 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11570
11571         * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
11572         parameter to determine whether operation applies to the prefix.
11573         (Complete_Object_Operation): If actual has an access type and
11574         controlling formal is not an in_parameter, reject the actual if it is
11575         an access_to_constant type.
11576         (Try_Primitive_Operation): If the type of the prefix is a formal tagged
11577         type, the candidate operations are found in the scope of declaration of
11578         the type, because the type has no primitive subprograms.
11579         (Analyze_Selected_Component): If prefix is class-wide, and root type is
11580         a private extension, only examine visible components before trying to
11581         analyze as a prefixed call.
11582         Change Entity_List to Type_To_Use, for better readability.
11583         (Has_Fixed_Op): Use base type when checking whether the type of an
11584         operator has a user-defined multiplication/division
11585         (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
11586         user-defined operators are available for fixed-point types.
11587
11588 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11589             Ed Schonberg  <schonberg@adacore.com>
11590
11591         * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
11592         formal At_Any_Place indicating, when True, that we want to test for
11593         availability of the stream attribute at any place (as opposed to the
11594         current visibility context only).
11595         (Missing_Read_Write_Attributes): A stream attribute is missing for the
11596         purpose of enforcing E.2.2(8) only if it is not available at any place.
11597         Take into account the Ada2005 pragma Has_Preelaborable_Initialization
11598         when checking the legality of an extension aggregate in a preelaborable
11599         package. Treat the literal null as a valid default expression in a
11600         component declaration for a type with preelaborable initialization.
11601         A limited interface is a legal progenitor for the designated type of a
11602         remote access to class-wide type.
11603
11604 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11605             Ed Schonberg  <schonberg@adacore.com>
11606
11607         * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
11608         reference): Use correct entity as denoted entity for the selector of
11609         the rewritten node.
11610         (Find_Direct_Name): Add comment about Generate_Reference incorrectly
11611         setting the Referenced_As_LHS flag for entities that are implicitly
11612         dereferenced.
11613         (Find_Type): If the type is an internally generated incomplete type,
11614         mark the full view as referenced, to prevent spurious warnings.
11615         (Find_Selected_Component, Has_Components): Handle properly non-limited
11616         views that are themselves incomplete types.
11617         Handle interfaces visible through limited-with clauses.
11618         (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
11619         subprogram generic actual for which we have generated a renaming.
11620         Warn when the renaming introduces a homonym of
11621         the renamed entity, and the renamed entity is directly visible.
11622
11623 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11624             Hristian Kirtchev  <kirtchev@adacore.com>
11625
11626         * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
11627         appear in the subtree to the current allocator if it is not a static
11628         coextension.
11629         (Resolve_Allocator): Perform cleanup if resolution has determined that
11630         the allocator is not a coextension.
11631         (Resolve): Skip an interpretation hidden by an abstract operator only
11632         when the type of the interpretation matches that of the context.
11633         (Resolve): When looping through all possible interpretations of a node,
11634         do not consider those that are hidden by abstract operators.
11635         (Resolve_Actuals): When verifying that an access to class-wide object
11636         is an actual  for a controlling formal, ignore anonymous access to
11637         subprograms whose return type is an access to class_wide type.
11638         (Resolve_Slice): If the prefix of the slice is a selected component
11639         whose type depends on discriminants, build its actual subtype before
11640         applying range checks on the bounds of the slice.
11641         (Valid_Conversion): In an instance or inlined body, compare root types,
11642         to prevent anomalies between private and public views.
11643         (Resolve): Improve error message for ambiguous fixed multiplication
11644         expressions that involve universal_fixed multiplying operations.
11645
11646 2007-08-14  Javier Miranda  <miranda@adacore.com>
11647             Hristian Kirtchev  <kirtchev@adacore.com>
11648
11649         * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
11650         location to allow the correct generation of errors in case of
11651         restrictions applied to the expanded code.
11652         (Expand_Entry_Barrier): Remove all generated renamings for a barrier
11653         function if the condition does not reference them.
11654         (Expand_Entry_Body_Declarations): Mark the index constant as having a
11655         valid value.
11656
11657 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11658             Pablo Oliveira  <oliveira@adacore.com>
11659
11660         * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
11661         typecode parameters for a union (in a variant record), remove
11662         extraneous layer of Any wrapping for member label.
11663         (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
11664         elabration statements, register the package with the name server
11665         at the beginning, not at the end, of the elaboration statements so
11666         that they can create remote access to subprogram values that designate
11667         remote subprograms from the package.
11668
11669 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
11670
11671         * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
11672         values to compute the number of seconds since the Unix Epoc in order to
11673         account for Daylight Savings Time. Perform special processing for dates
11674         that are earlier than the Unix Epoc to obtain a negative number.
11675
11676 2007-08-14  Emmanuel Briot  <briot@adacore.com>
11677
11678         * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
11679         switches.
11680
11681 2007-08-14  Eric Botcazou  <ebotcazou@adacore.com>
11682
11683         * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
11684         binder-generated file is not in Ada.
11685         Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
11686         recorded in the ALI file.
11687         Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
11688
11689 2007-08-14  Vincent Celier  <celier@adacore.com>
11690
11691         * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
11692         (Output_Source): Do nothing if parameter is No_Sdep_Id
11693
11694         * make.adb (Gnatmake): Do not rebuild an archive simply because a
11695         shared library it imports has a later time stamp.
11696         (Check): Resolve the symbolic links in the path name of the object
11697         directory.
11698         Check that the ALI file is in the correct object directory
11699         Check if a file name does not correspond to the mapping of units
11700         to file names.
11701         (Display_Version): New procedure
11702         (Initialize): Process switches --version and --help
11703         Use type Path_Name_Type for path name
11704
11705 2007-08-14  Paul Hilfinger  <hilfinger@adacore.com>
11706
11707         * impunit.adb: Re-organize System.Random_Numbers and
11708         GNAT.Random_Numbers and add to builds.
11709
11710         * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
11711
11712         * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
11713
11714         * a-assert.ads, a-assert.adb: New files.
11715
11716 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
11717
11718         * layout.adb (Layout_Type): In the case of access-to-subprogram types,
11719         if AAMP_On_Target is True, then the size of the type encompasses two
11720         addresses (a static link and a subprogram address), except in the case
11721         of library-level access types.
11722
11723 2007-08-14  Vincent Celier  <celier@adacore.com>
11724
11725         * output.ads, output.adb (Write_Eol): Remove trailing spaces before
11726         writing the line.
11727         (Write_Eol_Keep_Blanks): New procedure to write a line, including
11728         possible trailing spaces.
11729         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
11730
11731 2007-08-14  Javier Miranda  <miranda@adacore.com>
11732
11733         * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
11734         null-excluding access types.
11735
11736 2007-08-14  Javier Miranda  <miranda@adacore.com>
11737
11738         * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
11739         that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
11740         of private types add missing check on matching interfaces in the
11741         partial and full declarations.
11742         (Analyze_Protected_Type): Code cleanup.
11743         (Analyze_Task_Type): Code cleanup.
11744
11745 2007-08-14  Javier Miranda  <miranda@adacore.com>
11746
11747         * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
11748         generated interface thunk.
11749
11750 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11751
11752         * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
11753         obsolescent warning on application of 'Class to an incomplete type.
11754
11755         * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
11756         prevent obsolescent warning on application of 'Class to an incomplete
11757         type.
11758
11759 2007-08-14  Pascal Obry  <obry@adacore.com>
11760
11761         * s-fileio.adb (Is_Open): Add check for usability of the underlying
11762         file stream.
11763
11764 2007-08-14  Cyrille Comar  <comar@adacore.com>
11765
11766         * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
11767         since it is potentially used in cases implying double finalization of
11768         the same object.
11769
11770 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
11771
11772         * s-tasini.adb (Get_Stack_Info): Move this function to
11773         System.Soft_Links.Tasking because it is common to the full and the
11774         restricted run times.
11775         (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
11776         in SSL.Tasking.Init_Tasking_Soft_Links.
11777
11778         * s-solita.adb (Get_Stack_Info): Function moved from
11779         System.Tasking.Initialization because it is common to the full and the
11780         restricted run times.
11781         (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
11782
11783 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
11784
11785         * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
11786         s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
11787         (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
11788         parameter.
11789
11790         * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
11791         guard to 12K.
11792
11793 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
11794
11795         * s-veboop.adb (SU): New named number initialized to
11796         System.Storage_Unit.
11797         (True_Val): The initialization expression is revised to use SU (=
11798         Storage_Unit) rather than assuming 8 for the component size of an
11799         unpacked Boolean array.
11800
11801 2007-08-14  Tristan Gingold  <gingold@adacore.com>
11802
11803         * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
11804
11805         * tb-ivms.c: New file.
11806
11807         * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
11808
11809 2007-08-14  Geert Bosch  <bosch@adacore.com>
11810
11811         * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
11812         s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
11813         Add required linker pragmas for automatically linking with the gnalasup
11814         linear algebra support library, and the systems math library.
11815         Rename cdot to cdotu and zdot to zdotu.
11816         Update header comment to describe purpose of package.
11817
11818 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11819
11820         * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
11821         an explicitly specified Associated_Final_Chain, use that list.
11822         (Expand_N_Package_Body): Build dispatch tables of library level tagged
11823         types.
11824         (Expand_N_Package_Declaration): Build dispatch tables of library level
11825         tagged types. Minor code cleanup.
11826
11827 2007-08-14  Vincent Celier  <celier@adacore.com>
11828
11829         * gnatchop.adb (Terminate_Program): Remove exception and use
11830         Types.Terminate_Program instead.
11831
11832         * osint.ads, osint.adb (Current_Exit_Status): New global variable
11833         (Find_Program_Name): Added protection against empty name.
11834         (OS_Exit_Through_Exception): New procedure
11835
11836         * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
11837         (OS_Exit_Default): New procedure that contains the previous
11838         implementation of procedure OS_Exit.
11839         (Final_Value): Remove obsolete Interix stuff.
11840
11841 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11842
11843         * g-socket.ads: Reorganize example code so that it also works on
11844         Windows XP.
11845
11846 2007-08-14  Tristan Gingold  <gingold@adacore.com>
11847
11848         * g-trasym.ads: AIX now supports symbolic backtraces.
11849
11850 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11851
11852         * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
11853         units being loaded to detect circularities. A circularity may be
11854         present even if the current chain of pending units to load starts from
11855         a limited_with_clause.
11856
11857         * lib-load.ads: Change profile of Load_Unit to use a with_clause
11858         rather than a boolean flag, in order to detect circularities in
11859         with_clauses.
11860
11861         * par-load.adb: Use current with_clause in calls to Load_Unit, rather
11862         than propagating the From_Limited_With flag, in order to handle
11863         properly circularities involving with_clauses.
11864
11865 2007-08-14  Nicolas Setton  <setton@adacore.com>
11866
11867         * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
11868         warnings.
11869
11870 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
11871
11872         * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
11873         to build for libgnala.
11874         libgnat: Add rules to build libgnala.a
11875         (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
11876         target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
11877         Add s-osinte-vxworks-kernel.adb to the target pairs of the
11878         kernel run-time lib for VxWorks 6, which would provide a different
11879         implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
11880         x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
11881         running ZCX by default.
11882         Add g-sttsne-locking to LynxOS version.
11883         Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
11884         On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
11885
11886         * system-darwin-x86.ads: New file.
11887
11888         * Make-lang.in: Delete files before copying onto them, so if they are
11889         read-only, the copy won't fail.
11890         Update dependencies
11891
11892 2007-08-14  Pascal Obry  <obry@adacore.com>
11893
11894         * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
11895         naming scheme.
11896
11897 2007-08-14  Vincent Celier  <celier@adacore.com>
11898
11899         * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
11900         (Gcc): Initialize Gcc_Name at the first call
11901
11902 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11903
11904         * sem_ch7.adb (Analyze_Package_Specification): Do not install private
11905         with_clauses of the enclosing unit when analyzing the package
11906         specification of a nested instance.
11907
11908 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
11909
11910         * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
11911         (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
11912         Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
11913         layout of N_Allocator.
11914
11915 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11916
11917         * rtsfind.adb (Check_RPC): Add PCS version check.
11918
11919         * gnatvsn.ads, gnatvsn.adb: Add PCS version.
11920         (Gnat_Free_Software): New function.
11921
11922         * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
11923         the PCS_Version value from s-parint, used to check that it is consistent
11924         with what exp_dist expects.
11925
11926         * s-parint.ads (PCS_Version): New entity for checking consistency
11927         between exp_dist and PCS.
11928
11929         * gen-soccon.c: (SO_REUSEPORT): New constant.
11930
11931 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
11932
11933         * a-calfor.adb (Image (Duration; Boolean)): Change type of local
11934         variable Sub_Second to Duration in order to accomodate a larger range
11935         of arithmetic operations.
11936
11937 2007-08-14  Bob Duff  <duff@adacore.com>
11938
11939         * g-sttsne-locking.ads: Move comments from spec to body.
11940         * g-sttsne-locking.adb: Move comments from spec to body.
11941         * g-sttsne-vxworks.ads: Removed.
11942         * g-sttsne-vxworks.adb: Removed.
11943
11944 2007-08-11  Ian Lance Taylor  <iant@google.com>
11945
11946         * misc.c (gnat_get_alias_set): Change return type to
11947         alias_set_type.
11948
11949 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11950
11951         * decl.c, utils2.c: Fix whitespace in last change.
11952
11953 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11954
11955         * decl.c (compare_field_bitpos): Constify.
11956         * utils2.c (compare_elmt_bitpos): Likewise.
11957
11958 2007-07-27  Aurelien Jarno  <aurelien@aurel32.net>
11959
11960         * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
11961         anonymous access type.
11962         (pthread_sigmask): Now take an access sigset_t.
11963
11964 2007-07-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
11965
11966         * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
11967
11968 2007-06-21  Eric Botcazou  <ebotcazou@adacore.com>
11969
11970         PR tree-optimization/25737
11971         * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
11972
11973 2007-06-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11974
11975         * trans.c (Attribute_to_gnu): When subtracting an
11976         offset from a pointer, use POINTER_PLUS_EXPR with
11977         NEGATE_EXPR instead of MINUS_EXPR.
11978         (gnat_to_gnu): Likewise.
11979         * utils.c (convert): When converting between
11980         thin pointers, use POINTER_PLUS_EXPR and sizetype
11981         for the offset.
11982         * utils2.c (known_alignment): POINTER_PLUS_EXPR
11983         have the same semantics as PLUS_EXPR for alignment.
11984         (build_binary_op): Add support for the semantics of
11985         POINTER_PLUS_EXPR's operands.
11986         When adding an offset to a pointer, use POINTER_PLUS_EXPR.
11987
11988 2007-06-11  Rafael Ávila de Espíndola  <espindola@google.com>
11989
11990         * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
11991         of get_signed_or_unsigned_type.
11992         * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
11993
11994 2007-06-11  Bob Duff  <duff@adacore.com>
11995             Thomas Quinot  <quinot@adacore.com>
11996
11997         * g-stsifd-sockets.adb (Create): Work around strange behavior of
11998         'bind' on windows that causes 'connect' to fail intermittently, by
11999         retrying the 'bind'.
12000         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12001
12002 2007-06-10  Duncan Sands  <baldrick@free.fr>
12003
12004         * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
12005         than to void, for the fields when making a new fat pointer type.
12006         (gnat_substitute_in_type): Now substitute_in_type.
12007         * gigi.h (gnat_substitute_in_type): Likewise.  Adjust recursive calls.
12008         * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
12009         * utils.c (update_pointer_to): Update fat pointers by updating the
12010         dummy node pointers used for the fields.
12011
12012 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12013             Bob Duff  <duff@adacore.com>
12014
12015         * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
12016         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
12017         g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads:  Add new
12018         constant Thread_Blocking_IO, always True by default, set False
12019         on a per-runtime basis.
12020         (Need_Netdb_Buffer): New constant.
12021
12022         * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
12023         g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
12024         files.
12025
12026         * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
12027         g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
12028         Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
12029         child package Task_Safe_NetDB
12030         (Host_Error_Messages): Add stub body.
12031         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12032
12033         * g-soccon-mingw.ads: Add Windows-specific constants.
12034         (Need_Netdb_Buffer): New constant.
12035         (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
12036         wrapper and import inet_addr(3) from the standard sockets library
12037         directly instead.
12038         (In_Addr): Add alignment clause.
12039         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12040
12041 2007-06-06  Robert Dewar  <dewar@adacore.com>
12042
12043         * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
12044         s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
12045         s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
12046         s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
12047         s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
12048         s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
12049         a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
12050         a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
12051         a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
12052         g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
12053         g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
12054         i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
12055         s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
12056         s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
12057         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
12058         s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
12059         s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
12060         s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
12061         s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
12062         s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
12063         s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
12064         s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
12065         s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
12066         s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
12067         s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
12068         s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
12069         s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
12070         s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
12071         s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
12072         s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
12073         s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
12074         a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
12075         Unchecked_* by Ada.Unchecked_*
12076
12077 2007-06-06  Robert Dewar  <dewar@adacore.com>
12078
12079         * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
12080         s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
12081         g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
12082         output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
12083         g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
12084         a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
12085
12086         * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
12087         s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
12088         s-tasloc.adb, s-tasloc.ads: New files.
12089
12090 2007-06-06  Bob Duff  <duff@adacore.com>
12091
12092         * g-expect-vms.adb:
12093         (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
12094         * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
12095         (Send_Signal, Close): Raise Invalid_Process if the process id is
12096         invalid.
12097         (Pattern_Matcher_Access): Is now a general access type to be able to
12098         use aliased string.
12099
12100 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12101             Arnaud Charlet  <charlet@adacore.com>
12102
12103         * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
12104         (SIGEMT is now used instead of SIGTERM on AIX).
12105
12106         * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
12107         (Time_Slice_Supported): Set to True.
12108         Use SIGEMT instead of SIGTERM as SIGADAABORT.
12109
12110 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
12111
12112         * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
12113         (Time, Time)): Use To_Relative_Time rather than manual calculation to
12114         express the bounds of Duration as Time. Raise Time_Error when the
12115         result is greater or equal to the higher bound of Duration (on the
12116         margin case).
12117         ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
12118         Ada_High_And_Leaps.
12119         ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
12120         Ada_High_And_Leaps.
12121         ("-" (Time, Time)): Reorder code.
12122         (All_Leap_Seconds): Removed.
12123         (Arithmetic_Operations.Add): Remove sign related kludge.
12124         (Arithmetic_Operations.Difference): Control the leaps seconds processing
12125         with flag Leap_Support.
12126         (Arithmetic_Operations.Subtract): Remove sign related kludge.
12127         (Check_Within_Time_Bounds): New procedure.
12128         (Clock): Control the leap seconds processing with flag Leap_Support.
12129         (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
12130         (Formatting_Operations.Split): Control the leap seconds processing with
12131         flag Leap_Support.
12132         (Formatting_Operations.Time_Of): Control the leaps seconds processing
12133         with flag Leap_Support. Adjust the year, month and day (if applicable)
12134         when the value of day seconds designates a new day.
12135         (Split): Use parameter associations for better readability. Integrate
12136         flag Is_Ada_05.
12137         (Time_Of): Use parameter associations for better readability. Integrate
12138         flag Is_Ada_05.
12139
12140         * a-calfor.adb (Split): Use parameter associations for better
12141         readability. Integrate flag Is_Ada_05.
12142         (Time_Of): Remove flag Leap_Checks. Use parameter associations for
12143         better readability. Integrate flag Is_Ada_05.
12144
12145 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12146
12147         * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
12148         s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
12149         s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
12150         s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
12151         s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
12152         s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
12153         s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
12154         s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
12155         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
12156         s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
12157         s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
12158         time when entering this routine to detect a backward clock setting
12159         (manual setting or DST adjustment), to avoid waiting for a longer delay
12160         than needed.
12161         (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
12162         Remove handling of deferred priority change, and replace by setting the
12163         task priority directly, as required by AI-188.
12164         Update comments.
12165         (Max_Task_Image_Length): New constant.
12166         Replace Warnings (Off) by Unreferenced pragma, cleaner.
12167         (Dynamic_Priority_Support): Removed, no longer needed.
12168         (Poll_Base_Priority_Change): Ditto.
12169         (Set_Ceiling): Add this procedure to change the ceiling priority
12170         associated to a lock. This is a dummy implementation because dynamic
12171         priority ceilings are not supported by the underlying system.
12172
12173         * a-dynpri.adb (Set_Priority): Take into account case where Target is
12174         accepting a RV with its priority boosted.
12175         Remove handling of deferred priority change, and replace by setting the
12176         task priority directly, as required by AI-188.
12177
12178         * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
12179         Succeeded = True.
12180         Remove handling of deferred priority change, and replace by setting the
12181         task priority directly, as required by AI-188.
12182         (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
12183         of Self_Id earlier.
12184
12185         * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
12186         (Poll_Base_Priority_Change): Removed.
12187         Code clean up: use SSL.Current_Target_Exception.
12188
12189         * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
12190         to run as this is a potentially dispatching point.
12191         (Call_Synchronous): Use Local_Defer_Abort.
12192         (Callable): Relax assertion.
12193         (Selective_Wait): Relax assertion in case abort is not allowed.
12194         Remove handling of deferred priority change, and replace by setting the
12195         task priority directly, as required by AI-188.
12196
12197         * s-tasuti.adb (Make_Passive): Adjust assertions.
12198         Remove handling of deferred priority change, and replace by setting the
12199         task priority directly, as required by AI-188.
12200
12201 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12202
12203         * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
12204         system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
12205         system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
12206         system-vxworks-mips.ads, system-vxworks-alpha.ads,
12207         system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
12208         system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
12209         system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
12210         system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
12211         system-solaris-sparcv9.ads, system-vms.ads, system.ads,
12212         system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
12213         system-linux-ia64.ads: Document mapping between Ada and OS priorities.
12214         This patch changes the largest non-binary modulus from 2**31-1 to
12215         2**32-1.
12216         (Compiler_System_Version): Removed, no longer used.
12217         Clean up system files by removing flags only used on a single target.
12218         Also remove obsolete flags, only used during bootstrap from system.ads
12219         (Address): Add a pragma Preelaborable_Initialization.
12220
12221         * system-aix.ads:  Ditto.
12222         (GCC_ZCX_Support): Set to true.
12223         Update priority range on AIX and map Ada priorities to target
12224         priorities appropriately for different scheduling policies.
12225
12226         * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
12227
12228 2007-06-06  Vincent Celier  <celier@adacore.com>
12229
12230         * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
12231         mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
12232
12233         * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
12234         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
12235         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
12236         mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
12237         mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
12238         MLib.Tgt, containing the default versions of the exported subprograms.
12239         For each platform, create a specific version of the body of new child
12240         package MLib.Tgt.Specific that contains only the body of subprograms
12241         that are different from the default.
12242         (Archive_Builder_Append_Options): New function.
12243
12244 2007-06-06  Matthew Gingell  <gingell@adacore.com>
12245
12246         * s-osinte-aix.adb: Map Ada priorities to target priorities
12247         appropriately for different scheduling policies.
12248
12249 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12250
12251         * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
12252         its C counterpart.
12253         Remove references to Unchecked_Conversion, and use Ada.xxx instead.
12254         Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
12255
12256 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
12257
12258         * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
12259         Noop on VMS, added for interface commonality.
12260
12261 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
12262             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12263             Olivier Hainque  <hainque@adacore.com>
12264
12265         * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
12266         renamed expression of a full renaming at toplevel.
12267         (gnat_to_gnu_entity, case object): If not defining, do not look inside
12268         the values the constant is initialized to if it is an N_Allocator.
12269         (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
12270         TYPE_SIZE_UNIT of inner types after the stride is elaborated.
12271         (make_aligning_type): Accept an extra ROOM argument for storage to be
12272         made available before the aligned field, and an extra BASE_ALIGN
12273         argument for callers to pass the alignment guaranteed to be honored for
12274         the whole aligning object. Avoid call to finish_record_type, which only
12275         interferes with the sizes we want to set.
12276         (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
12277         make_aligning_type for super-aligned objects on stack.
12278         (components_to_record): Pass the adjusted size of the type when creating
12279         fields in the qualified union for the variant part.
12280         (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
12281         (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
12282         packed array type.
12283         (maybe_pad_type): Set TYPE_USER_ALIGN.
12284         (make_aligning_type): Likewise.
12285         ALIGN argument is unsigned int.
12286         (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
12287         (gnat_to_gnu_param): Likewise, for parameters.
12288         (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
12289         if it is constant and stems from a function call.
12290         (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
12291         of the record is specified.  Adjust accordingly.
12292         (adjust_packed): New static function.
12293         (gnat_to_gnu_field): Use it to adjust the packedness setting.
12294         (components_to_record): Likewise.
12295         (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
12296         side-effects if the object is deemed constant.
12297         (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
12298         type instead of merely finalizing it.  Tidy.
12299         <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
12300         <E_Access_Type>: Likewise.
12301         (defer_debug_incomplete_list): Rename to defer_finalize_list.
12302         (defer_debug_level): Delete.
12303         (gnat_to_gnu_entity) <debug_deferred>: Likewise
12304         <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
12305         type.
12306         <E_Record_Type>: Do not explicitly defer finalizing the type.
12307         Adjust for write_record_type_debug_info renaming.
12308         <E_Subprogram_Type>: Likewise.
12309         Finalize deferred types right after deferred incomplete types are
12310         expanded.
12311         (rest_of_type_decl_compilation): New global function.
12312         (components_to_record): Rename defer_debug parameter to do_not_finalize.
12313         (components_to_record): Propagate the packedness to the fields of the
12314         qualified union type if there is a variant part.
12315         (gnat_to_gnu_entity) <E_Array_Type>: Use new function
12316         instead of inline code to adjust the XUT field offsets.
12317         (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
12318         <E_Record_Subtype>: Do not let finish_record_type compute the sizes
12319         and write the debug info if the type derives from a discriminated one.
12320         (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
12321         <E_Array_Subtype>: Likewise.
12322         <E_String_Literal_Subtype>: Likewise.
12323         (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
12324         an alignment clause.
12325         (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
12326         before giving warning.
12327         (prepend_one_attribute_to): New function, helper to prepend an attribute
12328         to an attribute list.
12329         (gnat_to_gnu_entity) <E_Procedure>: Use it.
12330         (prepend_attributes): Likewise.
12331         (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
12332         <E_Array_Type>: Declare the padding type for the element type, if any.
12333         <E_Array_Subtype>: Likewise.
12334         (defer_limited_with): New variable.
12335         (Gigi_Equivalent_Type): New function.
12336         (gnat_to_gnu_entity): Use it at start and use result throughout.
12337         (gnat_to_gnu_entity, case E_Access_Type): Rework to use
12338         Gigi_Equivalent_Type, support Limited_With, allow two levels of
12339         indirection, precompute if unconstrained array to simplify logic, and
12340         use defer_limited_with to defer elaboration of some types from limited
12341         with.
12342         (finalize_from_with_types): New function.
12343
12344 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
12345             Eric Botcazou  <ebotcazou@adacore.com>
12346             Tristan Gingold  <gingold@adacore.com>
12347             Olivier Hainque  <hainque@adacore.com>
12348
12349         * trans.c (Identifier_to_gnu): Change test for deferred constant by
12350         adding guard that the entity is an E_Constant before testing presence
12351         of Full_view (and remove unnecessary test that entity is not a type).
12352         For a CONST_DECL used by reference, manually retrieve
12353         the DECL_INITIAL.  Do not invoke fold in the other DECL_P cases either.
12354         (struct language_function): Move from utils.c to here.
12355         (struct parm_attr): New structure.
12356         (parm_attr, parm_attr vector, parm_attr GC vector): New types.
12357         (f_parm_attr_cache): New macro.
12358         (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
12359         expressions for the 'First, 'Last and 'Length attributes of the
12360         unconstrained array IN parameters.
12361         (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
12362         Allocate the information structure for the function earlier, as well
12363         as the language-specific part.
12364         If the parameter attributes cache has been populated, evaluate the
12365         cached expressions on entry.
12366         (takes_address): Add OPERAND_TYPE parameter.  Handle N_Function_Call,
12367         N_Procedure_Call_Statement and N_Indexed_Component.
12368         (Pragma_to_gnu): Translate inspection_point to an asm statement
12369         containaing a comment and a reference to the object (either its address
12370         for BLKmode or its value).
12371         (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
12372         to go to DECL_INITIAL. Together with the size constraint relaxation
12373         in create_var_decl, enlarges the set of situations in which an
12374         identifier may be used as an initializer without implying elaboration
12375         code.
12376         (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
12377         DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
12378         node.
12379         (maybe_stabilize_reference): Remove lvalues_only parameter.
12380         (gnat_stabilize_reference): Adjust for above change.
12381         (gnat_to_gnu): Do not set location information on the result
12382         if it is a reference.
12383         (add_cleanup): Add gnat_node parameter and set the location of the
12384         cleanup to it.
12385         (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
12386         (Exception_Handler_to_gnu_zcx): Likewise.
12387         (gigi): Remove the cgraph node if the elaboration procedure is empty.
12388         (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
12389         the former right after the latter.
12390         (start_stmt_group): Make global.
12391         (end_stmt_group): Likewise.
12392         (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
12393         vars.
12394         (gnu_program_error_label_stack): Likewise.
12395         (gigi): Initialize them.
12396         (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
12397         (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
12398         New cases.
12399         (push_exception_label_stack): New function.
12400         (takes_address): New function.
12401
12402         * utils.c (struct language_function): Move to trans.c from here.
12403         (unchecked_convert): Do not wrap up integer constants in
12404         VIEW_CONVERT_EXPRs.
12405         (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
12406         the latter for aggregate types, unexpected by later passes, and relax an
12407         arbitrary size constraint on the former.
12408         (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
12409         to compare the sizes.
12410         (convert_vms_descriptor): When converting to a fat pointer type, be
12411         prepared for a S descriptor at runtime in spite of a SB specification.
12412         (shift_unc_components_for_thin_pointers): New function.
12413         (write_record_type_debug_info): For variable-sized fields, cap the
12414         alignment of the pointer to the computed alignment.
12415         (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
12416         If REP_LEVEL is 2, do not compute the sizes.
12417         (build_vms_descriptor): Adjust for new prototype of finish_record_type.
12418         (build_unc_object_type): Likewise.
12419         (declare_debug_type): New function.
12420
12421         * ada-tree.def: USE_STMT: removed (not emitted anymore).
12422
12423         * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
12424         no statement is expandable anymore.
12425         (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
12426         (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
12427         when the user requested it explicitely.
12428         (gnat_post_options): By default, set flag_eliminate_unused_debug_types
12429         to 0 for Ada.
12430         (get_alias_set): Return alias set 0 for a type if
12431         TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
12432
12433         * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
12434         (DECL_FUNCTION_STUB): New accessor macro.
12435         (SET_DECL_FUNCTION_STUB): New setter macro.
12436
12437         * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
12438
12439         * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
12440         declarations.
12441
12442 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
12443
12444         * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
12445         Rename to Abort_Task_Interrupt to be able to keep the same interface
12446         as the rest of the targets.
12447
12448         * s-osinte-vxworks.ads s-osinte-vxworks.adb
12449         (To_VxWorks_Priority): Remove explicit "in" mode indicator
12450
12451         * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
12452         New files.
12453
12454 2007-06-06  Robert Dewar  <dewar@adacore.com>
12455
12456         * a-chahan.ads: Remove obsolescent pragmas
12457
12458         * a-chlat1.ads: Minor reformatting
12459
12460 2007-06-06  Robert Dewar  <dewar@adacore.com>
12461
12462         * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
12463         for Errout
12464
12465         * errout.adb: New Finalize/Compilation_Errors/Output_Messages
12466         implementation
12467
12468         * errout.ads (Finalize): Changed interface
12469         (Output_Messages): New procedure
12470         (Compilation_Errors): New Interface
12471
12472         * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
12473         Finalize/Output_Messages interface for Errout
12474         (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
12475         Errout.
12476
12477 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12478             Olivier Hainque  <hainque@adacore.com>
12479             Robert Dewar  <dewar@adacore.com>
12480
12481         * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
12482         check.
12483         (Raise_Current_Excep): Call Debug_Raise_Exception just before
12484         propagation starts, to let debuggers know about the event in a reliable
12485         fashion.
12486         (Local_Raise): Moved to System.Exceptions
12487         More convenient to have this as a separate unit
12488
12489         * s-except.adb, s-except.ads: New files.
12490
12491         * a-exextr.adb (Unhandled_Exception): Delete - replaced by
12492         Debug_Unhandled_Exception in System.Exceptions where it belongs
12493         together with a couple of other debug helpers.
12494         (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
12495         the former Unhandled_Exception.
12496
12497         * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
12498         (Warn_No_Exception_Propagation): New procedure
12499         (Warn_If_No_Propagation): Rewritten for new warning generation
12500         (Expand_Exception_Handlers): New warning generation
12501         (Expand_N_Raise_xxx_Error): Rewritten for new warnings
12502         (Add_Exception_Label): Use Special_Exception_Package_Used for test
12503         instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
12504         (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
12505         even if restriction is set (makes life easier in Check_Returns)
12506         (Expand_Local_Exception_Handlers): Follow renamed entity chain when
12507         checking exception identities.
12508         (Expand_Local_Exception_Handlers): Do not optimize when all others case
12509         (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
12510         block for handler (used by Check_Returns)
12511         (Expand_Local_Exception_Handlers): Local_Raise now takes an address
12512         (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
12513         remove all exception handlers when optimizing local raise statements.
12514         (Find_Local_Handler): Use Get_Renamed_Entity
12515         (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
12516         marked analyzed after expanding exception handlers, do not generate
12517         redundant cleanup actions, because they have been constructed already.
12518
12519 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12520
12521         * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
12522         presence of this categorization pragma is mandated by the language.
12523         (Limited_Controlled): Add missing pragma Preelaborable_Initialization
12524         for this type.
12525
12526 2007-06-06  Vincent Celier  <celier@adacore.com>
12527             Robert Dewar  <dewar@adacore.com>
12528
12529         * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
12530         butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
12531         err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
12532         fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
12533         lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
12534         makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
12535         par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
12536         prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
12537         prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
12538         sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
12539         uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
12540         ali.ads, ali.adb:
12541         Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
12542         package Namet. Make File_Name_Type and Unit_Name_Type types derived from
12543         Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
12544         Use variables of types File_Name_Type and Unit_Name_Type in error
12545         messages.
12546         (Get_Name): Add parameter Ignore_Special, and set it reading file name
12547         (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
12548         here.
12549         Define flags Flag217-Flag230 with associated subprograms
12550         (Flag_Word5): New record type.
12551         (Flag_Word5_Ptr): New access type.
12552         (To_Flag_Word5): New unchecked conversion.
12553         (To_Flag_Word5_Ptr): Likewise.
12554         (Flag216): New function.
12555         (Set_Flag216): New procedure.
12556
12557 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12558
12559         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
12560         instead of 'Size.
12561
12562         * a-stwifi.ads, a-stzfix.ads: Minor reformatting
12563
12564 2007-06-06  Javier Miranda  <miranda@adacore.com>
12565
12566         * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
12567         the package.
12568         (Object_Specific_Data_Array): This is now internal to the package.
12569         (Object_Specific_Data): This is now internal to the package.
12570         (Select_Specific_Data_Element): This is now internal to the package.
12571         (Select_Specific_Data_Array): This is now internal to the package.
12572         (Select_Specific_Data): This is now internal to the package.
12573         (Offset_To_Top_Function_Ptr): This is now public.
12574         (To_Offset_To_Top_Function_Ptr): Removed.
12575         (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
12576          local to subprogram Offset_To_Top.
12577         (Predefined_DT): Removed.
12578         (Typeinfo_Ptr): Removed.
12579         (OSD): This function is now internal to this package.
12580         (SSD): This function is now internal to this package.
12581         (DT): New function that displaces the pointer to the table of primitives
12582          to get access to the enclosing wrapper record.
12583         (IW_Membership): Code cleanup.
12584         (Offset_To_Top): Code cleanup.
12585         (Predefined_DT): Removed.
12586         (Register_Interface_Tag): Removed.
12587         (Set_Interface_Table): Removed.
12588         (Set_Offset_Index): Removed.
12589         (Set_Offset_To_Top): Code cleanup.
12590         (Set_OSD): Removed.
12591         (Set_Signature): Removed.
12592         (Set_SSD): Removed.
12593         (Set_Tagged_Kind): Removed.
12594         (Typeinfo_Ptr): Removed.
12595         (TSD): Removed.
12596         (Displace): Add missing check on null actual.
12597
12598         * exp_disp.ads, exp_disp.adb
12599         (Select_Expansion_Utilities): Removed.
12600         (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
12601         (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
12602         the interface requires a new parameter.
12603         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
12604         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
12605         calls to subprograms Build_T, Build_S, etc. by the corresponding code.
12606         Done to remove package Select_Expansion_Utilities.
12607         (Make_DT): New implementation for statically allocated dispatch tables.
12608         (Make_Secondary_DT): Moved to the scope of Make_DT.
12609         (Register_Primitive): Code cleanup plus incoporate the use of the new
12610         function DT_Address_Attribute.
12611         (Expand_Interface_Thunk): The profile of this subprogram has been
12612         changed to return the Thunk_Id and the corresponding code.
12613         (Fill_DT_Entry): Removed. Its functionality is now provided by
12614         subprogram Register_Primitive.
12615         (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
12616         subprogram Register_Primitive.
12617         (Register_Primitive): New subprogram that incorporates the previous
12618         functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
12619         (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
12620         was only required to call Make_DT_Access_Action, which is now removed.
12621         (Ada_Actions): Removed
12622         (Action_Is_Proc): Removed
12623         (Action_Nb_Arg): Removed
12624         Replace all the calls to Make_DT_Access_Action by direct calls to
12625         Make_Procedure_Call_Statement or Make_Function_Call.
12626         (Set_DTC_Entity_Value): New subprogram.
12627         (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
12628         (Expand_Interface_Thunk): Add missing support for primitives that are
12629         functions with a controlling result (case in which there is no need
12630         to generate the thunk).
12631
12632         * exp_atag.ads, exp_atag.adb
12633         (Build_DT): New subprogram that displaces the pointer to reference the
12634         base of the wrapper record.
12635         (Build_Typeinfo_Offset): Removed.
12636         (RTE_Tag_Node): Removed.
12637         (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
12638         (Build_Get_RC_Offset): Removed.
12639         (Build_Inherit_Predefined_Prims): Removed.
12640         (Build_Inherit_TSD: Removed.
12641         (Build_New_TSD): Removed.
12642         (Build_Set_External_Tag): Removed.
12643         (Build_Set_Predefined_Prim_Op_Address): Add documentation.
12644         (Build_Set_Prim_Op_Address): Add documentation.
12645         (Build_Set_TSD): Removed.
12646
12647         * rtsfind.ads, rtsfind.adb
12648         (Load_Fail): If load fails and we are not in configurable run-time
12649         mode, then raise Unrecoverable_Error.
12650         (Text_IO_Kludge): Generate an error message if a run-time library is
12651         not available in a given run-time (ie. zfp run-time).
12652         (RTE_Record_Component): Add code to check that the component we search
12653         for is not found in two records in the given run-time package.
12654         (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
12655         (RE_DT_Predef_Prims_Offset): New entity
12656         (RE_Static_Offset_To_Top): New entity
12657         (RE_HT_Link): New entity.
12658         (System_Address_Image): Addition of this run-time package.
12659         (RE_Address_Image): New entity.
12660         (RE_Abstract_Interface): Removed.
12661         (RE_Default_Prim_Op_Count): Removed.
12662         (RE_DT_Entry_Size): Removed.
12663         (RE_DT_Min_Prologue_Size): Removed.
12664         (RE_DT_Prologue_Size): Removed.
12665         (RE_Ifaces_Table_Ptr): Removed.
12666         (RE_Interface_Data_Ptr): Removed.
12667         (RE_Type_Specific_Data): Removed.
12668         (RE_Primary_DT): Removed.
12669         (RE_Register_Interface_Tag): Removed.
12670         (RE_Set_Offset_Index): Removed.
12671         (RE_Set_OSD): Removed.
12672         (RE_Set_SSD): Removed.
12673         (RE_Set_Signature): Removed.
12674         (RE_Set_Tagged_Kind): Removed.
12675         (RE_Address_Array): New entity.
12676         (RE_DT): New entity.
12677         (RE_Iface_Tag): New entity.
12678         (RE_Interfaces_Table): New entity.
12679         (RE_No_Dispatch_Table): New entity.
12680         (RE_NDT_Prims_Ptr): New entity.
12681         (RE_NDT_TSD): New entity.
12682         (RE_Num_Prims): New entity.
12683         (RE_Offset_To_Top_Function_Ptr): New entity.
12684         (RE_OSD_Table): New entity.
12685         (RE_OSD_Num_Prims): New entity.
12686         (RE_Predef_Prims): New entity
12687         (RE_Predef_Prims_Table_Ptr): New entity.
12688         (RE_Primary_DT): New entity.
12689         (RE_Signature): New entity.
12690         (RE_SSD): New entity.
12691         (RE_TSD): New entity.
12692         (RE_Type_Specific_Data): New entity.
12693         (RE_Tag_Kind): New entity.
12694
12695 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12696
12697         * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
12698         C imported variable.
12699         (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
12700         on entry.
12701
12702 2007-06-06  Robert Dewar  <dewar@adacore.com>
12703
12704         * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
12705         character
12706
12707 2007-06-06  Vincent Celier  <celier@adacore.com>
12708
12709         * a-tifiio.adb (Put, internal): For negative numbers, check that there
12710         is room for at least one digit and the minus sign.
12711         (Put.Put_Character): Never put a character outside of the range of
12712         string To.
12713
12714 2007-06-06  Olivier Hainque  <hainque@adacore.com>
12715             Eric Botcazou  <ebotcazou@adacore.com>
12716
12717         * utils2.c (build_allocator): Provide the extra arguments to
12718         make_aligning_type for super-aligned objects allocated from the default
12719         pool. Leave enough room for a pointer before the aligning field, and
12720         store the system's allocator return value there.
12721         (build_call_alloc_dealloc): When releasing a super-aligned object,
12722         retrieve the system's allocator return value from where build_allocator
12723         has stored it, just ahead of the adjusted address we are passed.
12724         (build_call_raise): Handle properly the generation of line numbers when
12725         the node is marked No_Location.
12726         (compare_elmt_bitpos): Use tree_int_cst_compare.  Stabilize the sort
12727         by using DECL_UID on ties.
12728         (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
12729         main variant.
12730         (build_call_raise): Handle converting exception into goto; support new
12731         argument KIND.
12732         (build_component_ref): Add new arg to build_call_raise.
12733
12734 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
12735
12736         * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
12737         "." in the case of nnn.xxx when nnn terminates with an underscore.
12738         Parse the remaining "#" or ":" in the case of nnn#.xxx#
12739
12740 2007-06-06  Robert Dewar  <dewar@adacore.com>
12741
12742         * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
12743
12744 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12745             Vincent Celier  <celier@adacore.com>
12746             Robert Dewar  <dewar@adacore.com>
12747
12748         * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
12749         needed.
12750         (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
12751         ((destructor)) for adafinal, even when switch -a is used.
12752         Do not issue pragma Linker_Destructor for adafinal when switch -a is
12753         used.
12754         (Gen_Object_Files_Options): Add formatting of Linker Options, when
12755         Output_Linker_Option_List is set. Suppress this formatting when
12756         Zero_Formatting is set.
12757         Add case for CLI_Target.
12758         (System_Restrictions_Used): New flag, used to avoid generating with of
12759         System_Restrictions and initialization of the data unless there is
12760         some use of System.Restrictions in the partition.
12761         (Check_System_Restrictions_Used): New procedure
12762
12763         * s-stalib.adb: Remove with of System.Restrictions. No longer needed
12764         since we only with this unit in the binder file if it is used elsewhere
12765         in the partition.
12766
12767 2007-06-06  Vincent Celier  <celier@adacore.com>
12768
12769         * bindusg.adb: Add line for @<response file>
12770         Add lines for new switches -R and -Z
12771
12772         * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
12773         hierarchy in the list of files of the closure when -R is used
12774         (Gnatbind): Accept arguments starting with '@' to indicate response
12775         files and take the arguments from the response files.
12776         If List_Closure is set, display the referenced files
12777
12778 2007-06-06  Javier Miranda  <miranda@adacore.com>
12779             Robert Dewar  <dewar@adacore.com>
12780             Ed Schonberg  <schonberg@adacore.com>
12781
12782         * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
12783         which the address-clause is applied to in-mode actuals (allowed by
12784         13.1(22)).
12785         (Apply_Discriminant_Check): Do not generate a check if the type is
12786         constrained by a current instance.
12787         (Activate_Division_Check): New procedure
12788         (Activate_Overflow_Check): New procedure
12789         (Activate_Range_Check): New procedure
12790         Call these new Activate procedures instead of setting flags directly
12791         (Apply_Array_Size_Check): Removed, no longer needed.
12792         Code clean up: remove obsolete code related to GCC 2.
12793         (Get_E_Length): Protect against bomb in case scope is standard
12794         (Selected_Range_Checks): If the node to be checked is a conversion to
12795         an unconstrained array type, and the expression is a slice, use the
12796         bounds of the slice to construct the required constraint checks.
12797         Improve NOT NULL error messages
12798         (Apply_Constraint_Check): If the context is a null-excluding access
12799         type, diagnose properly the literal null.
12800
12801 2007-06-06  Pascal Obry  <obry@adacore.com>
12802
12803         * clean.adb (Clean_Archive): Use untouched casing for the archive name
12804         and the corresponding .deps file.
12805         (Clean_Interface_Copy_Directory): Use untouched casing for the library
12806         src directory. Minor code-clean-up. Use untouched casing for files
12807         read into the library src dir.
12808         (Clean_Library_Directory): Idem.
12809         (Parse_Cmd_Line): Accept new switch -aP
12810
12811 2007-06-06  Javier Miranda  <miranda@adacore.com>
12812             Ed Schonberg  <schonberg@adacore.com>
12813             Robert Dewar  <dewar@adacore.com>
12814             Eric Botcazou  <ebotcazou@adacore.com>
12815             Arnaud Charlet  <charlet@adacore.com>
12816
12817         * einfo.ads, einfo.adb (Available_View): New synthesized attribute
12818         applicable to types that have the With_Type flag set. Returns the
12819         non-limited view of the type, if available, otherwise the type itself.
12820         For class-wide types, there is no direct link in the tree, so we have
12821         to retrieve the class-wide type of the non-limited view of the Etype.
12822         New attributes Static_Initialization and Static_Elaboration_Desired.
12823         Remove the pragma Thread_Body, and the associated flag
12824         Is_Thread_Body in entities, and all related code.
12825         (Suppress_Value_Tracking_On_Call): New flag
12826         E_Exception has Esize and Alignment fields
12827         (Universal_Aliasing): New function.
12828         (Set_Universal_Aliasing): New procedure.
12829         (Write_Entity_Flags): Deal with Universal_Aliasing flag.
12830         (Check_Nested_Access): New procedure.
12831         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
12832         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
12833         (Related_Interface): New attribute. Present in dispatch table pointer
12834         components of records. Set to point to the entity of the corresponding
12835         interface type.
12836         (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
12837         (Original_Access_Type): Remove, not needed.
12838         (Root_Type): Handle properly subtypes of class-wide-types.
12839         Update comments.
12840
12841         * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
12842         class-wide types visible through limited-with clauses.
12843         (Try_Primitive_Operation): When examining all primitive operations of a
12844         tagged type, do not consider subprograms labeled as hidden unless they
12845         belong to a private generic type with a tagged parent.
12846         (Try_Object_Operation): Extensive rewriting, to handle properly various
12847         overloading cases, when several ancestors may have class-wide operations
12848         that are possible candidates, and when the overloaded functions return
12849         array types and have defaulted parameters so that the call may be
12850         interpreted as an indexing.
12851         (Analyze_Allocator): Remove Mark_Allocator and its invocation.
12852         (Process_Function_Call): use Next, rather than Next_Actual, to analyze
12853         successive actuals before analyzing the call itself.
12854         (Try_Primitive_Operation): A primitive operation is compatible with the
12855         prefix if the prefix has a synchronized type and the type of the formal
12856         is its corresponding record, as can be the case when the primitive
12857         operation is declared outside of the body of the type.
12858         (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
12859         perform homonym traversal, looking for class-wide operation matches
12860         (formerly done in statements of Try_Class_Wide_Operation). Matches on
12861         access parameters are now restricted to anonymous access types.
12862         (Mark_Allocator): An allocator with a discriminant association parent is
12863         a coextension.
12864         (Try_One_Prefix_Interpretation): If the type of the object is
12865         incomplete, as can be happen when it is a limited view obtained through
12866         a limited_with_clause, the selected component is not part of a prefixed
12867         call.
12868         (Complete_Object_Operation): Diagnose properly an object that is not
12869         aliased when the corresponding controlling formal is an access
12870         parameter.
12871         (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
12872         ambiguous calls in prefixed notation, where two primitives differ only
12873         in that the controlling argument of one is an access parameter.
12874
12875         * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
12876         whether a function that returns an unconstrained type can be inlined.
12877         (Process_Formals): Diagnose properly the illegal use of an incomplete
12878         type in the profile of an access_to_subprogram declaration.
12879         (Check_Synchronized_Overriding): Nothing check for concurrent types, the
12880         operations are attached to the corresponding record.
12881         (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
12882         When processing a primitive of a concurrent type which implements an
12883         interface change the type of all controlling formals to that of the
12884         corresponding record type.
12885         (Check_Synchronized_Overriding): Relax the conditional logic when trying
12886         to determine the tagged type to which a primitive belongs.
12887         (Check_Conventions): Capture condition to ignore a primitive operation
12888         (which is shared between the loop in Check_Conventions and the one in
12889         Check_Convention) in a new local function Skip_Check.
12890         (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
12891         confusion with Check_Conventions' own Prim_Op local variable.
12892         (Create_Extra_Formals): Test for a tagged result type rather than a
12893         controlling result when determining whether to add a BIP_Alloc_Form
12894         formal and a BIP_Final_List formal to the function.
12895         (Check_Conformance); For parameters that are anonymous access types,
12896         subtype conformance requires that the not null and the constant
12897         indicators must match
12898         (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
12899         to retrieve the appropriate type when processing a concurrent type
12900         declared within a generic. Minor comment reformatting. Change invocation
12901         of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
12902         mitive.
12903         (Analyze_Subprogram_Body): If the return type of a function is an
12904         anonymous access to the limited view of a class-wide type, and the
12905         non-limited view of the type is available, update the type of the
12906         function so that code can be generated.
12907         (Process_Formals): In case of access-subtype itype whose designated
12908         type is also an itype (situation that happens now with access to
12909         subprograms) we mark the access-type itype with the Has_Delayed_Freeze
12910         attribute to avoid backend problems.
12911         (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
12912         init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
12913         anonymous types' designated types are same before testing
12914         Subtypes_Statically_Match.
12915         (Create_Extra_Formals): Test for a named access parameter that is a
12916         controlling formal as an additional condition for adding an
12917         accessibility level formal. This can occur in the subp type created for
12918         dispatching calls in Expand_Dispatching_Call, and allows calling
12919         Create_Extra_Formals from that procedure rather than special-casing the
12920         extra formals there.
12921         (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
12922         when the function has a controlling result.
12923         (Check_Returns): Add much more knowledge of the optimization of local
12924         raise statements to gotos, to retain proper warnings in this case.
12925         (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
12926         nodes when looking for last statement.
12927
12928         * sem_type.ads, sem_type.adb (Specific_Type): Add support for
12929         class-wide types visible through limited with clauses.
12930         (Add_One_Interp): If the operands are anonymous access types, the
12931         predefined operator on universal_access is immediately visibles
12932         (Find_Unique_Type): Handle anonymous access to subprogram types just as
12933         other anonymous access types.
12934         (Disambiguate): Take into account CIL convention.
12935         (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
12936
12937 2007-06-06  Robert Dewar  <dewar@adacore.com>
12938
12939         * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
12940         sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
12941         elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
12942         Fix lower bound of tables.
12943         Add rep clauses.
12944
12945         * nlists.adb: Ditto.
12946         (Prev_Node, Next_Node): Change index type to Int so that it properly
12947         covers the range First_Node_Id - 1 up.
12948
12949 2007-06-06  Javier Miranda  <miranda@adacore.com>
12950             Ed Schonberg  <schonberg@adacore.com>
12951             Bob Duff  <duff@adacore.com>
12952             Hristian Kirtchev  <kirtchev@adacore.com>
12953
12954         * exp_aggr.ads, exp_aggr.adb:
12955         (Build_Record_Aggr_Code): Add missing initialization of secondary tags
12956         in extension aggregates.
12957         (Flatten): Other conditions being met, an aggregate is static if the
12958         low bound given by component associations is different from the low
12959         bound of the base index type.
12960         (Packed_Array_Aggregate_Handled): If the component type is itself a
12961         packed array or record, the front-end must expand into assignments.
12962         (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
12963         Init_Pr, instead of Ancestor_Is_Expression.
12964         (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
12965         coextension chain root, either generate a list controller or use the
12966         already existing one.
12967         (Static_Array_Aggregate): New procedure to construct a positional
12968         aggregate that can be handled by the backend, when all bounds and
12969         components are compile-time known constants.
12970         (Expand_Record_Aggregate): Force conversion of aggregates of tagged
12971         types covering interface types into assignments.
12972         (Replace_Type): move to Build_Record_Aggr_Code.
12973         (Expand_Record_Aggr_Code): if the target of the aggregate is an
12974         interface type, convert to the definite type of the aggregate itself,
12975         so that needed components are visible.
12976         (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
12977         components and the context is an extended return statement do not
12978         create a transient block for it, to prevent premature finalization
12979         before the return is executed.
12980         (Gen_Assign): Do not generate a call to deep adjust routine if the
12981         component type is itself an array of controlled (sub)-components
12982         initialized with an inner aggregate.
12983         (Component_Check): New name for Static_Check. This name is now more
12984         appropriate, and documentation is added which was missing.
12985         (Component_Check): Add test for bit aligned component value
12986         (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
12987         Tagged_Comps, name is more appropriate given added function below.
12988         (Component_Not_OK_For_Backend): Check for bit aligned component ref.
12989
12990 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
12991             Javier Miranda  <miranda@adacore.com>
12992             Robert Dewar  <dewar@adacore.com>
12993
12994         * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
12995         Terminated: Add unchecked type conversion from System.Address to
12996         System.Tasking.Task_Id when calling the predefined primitive
12997         _disp_get_task_id.
12998         Disable new Ada 05 accessibility check for JVM.NET targets, which
12999         cannot be implemented in a practical way.
13000         (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
13001         the sources always references the tag of the actual object. Therefore,
13002         if 'Tag is applied in the sources to class-wide interface objects we
13003         generate code that displaces "this" to reference the base of the object.
13004         (Expand_N_Attribute_Reference, case Size): Return specified size if
13005         known to front end.
13006         (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
13007         has code that displaces the pointer of the object to manage interface
13008         types. However this code must not be executed when the prefix is a
13009         subprogram. This bug caused the wrong expansion of the internally
13010         generated assignment that fills the dispatch table when the primitive
13011         is a function returning a class-wide interface type.
13012         (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
13013         Set_Attribute_Name for Name_Unaligned_Valid.
13014
13015 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13016             Gary Dismukes  <dismukes@adacore.com>
13017
13018         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
13019         If the initialization is the equivalent aggregate of the initialization
13020         procedure of the type, do not remove it.
13021         (Expand_N_Attribute_Definition_Clause): Exclude access variables
13022         initialized to null from having their expression reset to empty and
13023         note this exception in the comment.
13024
13025 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
13026             Robert Dewar  <dewar@adacore.com>
13027             Ed Schonberg  <schonberg@adacore.com>
13028             Gary Dismukes  <dismukes@adacore.com>
13029
13030         * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
13031         Add "with" and "use" clauses for Sem_Attr.
13032         (Expand_Current_Value): Do not replace occurences of attribute
13033         references where the prefix must be a simple name.
13034
13035         * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
13036         Namet. Add new arrays Attribute_Name_Modifies_Prefix and
13037         Attribute_Requires_Simple_Name_Prefix.
13038         (Name_Modifies_Prefix): Body of new function.
13039         (Requires_Simple_Name_Prefix): Body of new function.
13040         (Resolve_Attribute, case Access): Improve error message for case of
13041         mismatched conventions.
13042         (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
13043         incomplete type.
13044         (Analyze_Attribute, case 'Access): If the type of the prefix is a
13045         constrained subtype for a nominal unconstrained type, use its base type
13046         to check for conformance with the context.
13047         (Resolve_Attribute): Remove test of the access type being associated
13048         with a return statement from condition for performing accessibility
13049         checks on access attributes, since this case is now captured by
13050         Is_Local_Anonymous_Access.
13051         (Analyze_Access_Attribute): Set Address_Taken on entity
13052         (Analyze_Attribute, case Address): Set Address_Taken on entity
13053         (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
13054         validating an access attribute whose prefix is a current instance.
13055         (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
13056         applied to dispatching operations, if freezing is required then we set
13057         the attribute Has_Delayed_Freeze in the prefix's entity.
13058         (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
13059         current scope if access of local subprogram taken
13060         (Analyze_Access_Attribute): Check legality of self-reference even if the
13061         expression comes from source, as when a single component association in
13062         an aggregate has a box association.
13063         (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
13064         the prefix if it is a protected operation and the attribute is
13065         Unrestricted_Access.
13066         (Resolve_Attribute, case 'Access): Set the Etype of the attribute
13067         reference to the base type of the context, to force a constraint check
13068         when the context is an access subtype with an explicit constraint.
13069         (Analyze_Attribute, case 'Class): If the prefix is an interface and the
13070         node is rewritten as an interface conversion. leave unanalyzed after
13071         resolution, to ensure that type checking against the context will take
13072         place.
13073
13074 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13075             Javier Miranda  <miranda@adacore.com>
13076             Robert Dewar  <dewar@adacore.com>
13077
13078         * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
13079         wrapper when the full view of the controlling type of an inherited
13080         function that dispatches on result implements interfaces.
13081         (Expand_N_Object_Declaration): In cases where the type of the
13082         declaration is anonymous access, create finalization list for it.
13083         (Expand_N_Object_Declaration): Generate a persistent_bss directive only
13084         if the object has no explicit initialization, to match description of
13085         functionality of pragam Persistent_BSS.
13086         (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
13087         new function to build static aggregates, to replace initialization call
13088         when static initialization is desired.
13089         (Freeze_Type): Generate a list controller for an access type whenever
13090         its designated type has controlled anonymous access discriminants.
13091         (Build_Equivalent_Aggregate): New procedure to compute a static
13092         aggregate to be used as default initialization for composite types,
13093         instead of a generating a call to the initialization procedure for the
13094         type.
13095         (Build_Initialization_Call): When available, replace a call to the
13096         initialization procedure with a copy of the equivalent static aggregate
13097         for the type.
13098         (Expand_N_Object_Declaration):  Use New_Occurrence_Of in generated
13099         declarations for objects of a class-wide interface type, rather than
13100         just identifiers, to prevent visibility problems.
13101         (Expand_N_Object_Declaration): When expanding the declaration for an
13102         object of a class-wide interface type, preserve the homonym chain of
13103         the original entity before exchanging it with that of the generated
13104         renaming declaration.
13105         (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
13106         active, because there is no way to handle the exception.
13107         (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
13108         to do a minimum decoration of the Access_Disp_Table list.
13109         (Expand_Record_Controller): Avoid the addition of the controller between
13110         the component containing the tag of a secondary dispatch table and its
13111         adjacent component that stores the offset to the base of the object.
13112         This latter component is only generated when the parent type has
13113         discriminants ---documented in Add_Interface_Tag_Components).
13114         (Apply_Array_Size_Check): Removed, no longer needed.
13115         (Expand_N_Full_Type_Declaration): If the type has anonymous access
13116         components, create a Master_Entity for it only if it contains tasks.
13117         (Build_Init_Procedure): Suppress the tag assignment compiling under
13118         no run-time mode.
13119         (Freeze_Record_Type): Remove code associated with creation of dispatch
13120         table.
13121         (Init_Secondary_Tags): Update type of actuals when generating calls to
13122         Ada.Tags.Set_Offset_To_Top
13123         (Stream_Operation_OK): Disable use of streams compiling under no
13124         run-time mode
13125         (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
13126         if Has_Init_Expression set.
13127         (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
13128         Register_Primitive, which provides the same functionality.
13129         (Requires_Init_Proc): Return false in case of interface types.
13130         (Add_Secondary_Tables): Use the new attribute Related_Interface to
13131         cleanup the code.
13132         (Predefined_Primitive_Freeze): Do not assume that an internal entity
13133         is always associated with a predefined primitive because the internal
13134         entities associated with interface types are not predefined primitives.
13135         Therefore, the call to Is_Internal is replaced by a call to the
13136         function Is_Predefined_Dispatching_Operation.
13137         (Make_Eq_If): When generating the list of comparisons for the
13138         components of a given variant, omit the controller component that is
13139         present if the variant has controlled components.
13140
13141 2007-06-06  Javier Miranda  <miranda@adacore.com>
13142             Hristian Kirtchev  <kirtchev@adacore.com>
13143             Bob Duff  <duff@adacore.com>
13144
13145         * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
13146         handle the creation of finalization lists and calls for nested
13147         coextensions when the root of the chains is part of a return statement.
13148         (Inside_A_Return_Statement): New function inside Complete_Coextension_
13149         Finalization.
13150         (Expand_Record_Equality): Skip components that are interface types.
13151         (Displace_Allocator_Pointer): Add missing support for interface subtypes
13152         (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
13153         with Rewrite_Coextension. Change the condition for detecting coextension
13154         root nodes.
13155         (Is_Local_Access_Discriminant): Removed.
13156         (Rewrite_Coextension): New routine which rewrites a static coextension
13157         as a temporary and uses its unrestricted access in the construction of
13158         the outer object.
13159         (Complete_Coextension_Finalization): New routine. Generate finalization
13160         attachment calls to all delayed coextensions.
13161         (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
13162         the allocator is not a coextension itself and has delayed coextensions.
13163         If the current allocator is controlled, but also a coextension, delay
13164         the generation of the finalization attachment call.
13165         Rename local variable "Node" to "Nod" in order to avoid confusion with
13166         "Elists.Node".
13167         (Expand_Allocator_Expression): Call Adjust for initialized allocators of
13168         limited types that are not inherently limited. Such an allocator is
13169         illegal, but is generated by the expander for a return statement, to
13170         copy the result onto the secondary stack. This is the only case where a
13171         limited object can be copied. Generate code to displace the pointer
13172         to the object if the qualified expression is a class-wide interface
13173         object. Such displacement was missing and hence the copy of the object
13174         was wrong.
13175         (Apply_Accessibility_Check): Handle allocated objects initialized in
13176         place.
13177         (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
13178         and Expand_Allocator_Expression. Allocating class-wide interface objects
13179         this routine displaces the pointer to the allocated object to reference
13180         the component referencing the corresponding secondary dispatch table.
13181         Expand_Allocator_Expression): Add missing support to allocate class-wide
13182         interface objects initialized with a qualified expression.
13183         (Get_Allocator_Final_List): Test for an anonymous access type that is a
13184         function result type, and use the finalization list associated with the
13185         function scope in that case (such an anonymous type should not be
13186         treated like an access parameter's type).
13187
13188 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13189             Gary Dismukes  <dismukes@adacore.com>
13190             Javier Miranda  <miranda@adacore.com>
13191
13192         * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
13193         controlled type, use Make_Handler_For_Ctrl_Operation to construct the
13194         required exception handler.
13195         (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
13196         properly the case of a function whose return type is a limited
13197         class-wide interface type. Modify the code of the accessibility
13198         check to handle class-wide interface objects. In this case we need to
13199         displace "this" to reference the primary dispatch table to get access
13200         to the TSD of the object (to evaluate its accessibility level).
13201         (Expand_N_Extended_Return_Statement): Test for a tagged result type
13202         rather than a controlling result as one of the conditions for
13203         generating tests of the implicit BIP_Alloc_Form formal. The
13204         initialization assignment is also handled according to whether the
13205         result is tagged instead of controlling.
13206         In the case where the init assignment is inserted in the "then" part of
13207         the allocation conditional, rewrite the target to be a dereference of
13208         the implicit BIP_Object_Access formal.
13209         If the returned value is unconstrained and created on the secondary
13210         stack, mark the enclosing block and function so that the secondary
13211         stack is not reclaimed on return.
13212         Treat returns from functions with controlling results similarly to
13213         returns from functions with unconstrained result subtypes.
13214         If the object returned is unconstrained, and an allocator must be
13215         created for it, analyze the allocator once the block for the extended
13216         return is installed, to ensure that finalizable components
13217         of the expression use the proper finalization list. Guard the call to
13218         Move_Final_List with a check that there is something to finalize.
13219         (Make_Tag_Ctrl_Assignment): Use "old" handling
13220         of controlled type assignment for virtual machines, since new code uses
13221         unsupported features (such as direct access to bytes in memory).
13222
13223 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
13224             Ed Schonberg  <schonberg@adacore.com>
13225
13226         * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
13227         accessibility actual, check for the case of an aliased object that has
13228         been rewritten as an Access attribute, and assign Prev to Prev_Orig so
13229         we fall into processing for the attribute rather than the name of the
13230         object.
13231         (Expand_Inline_Call): If an actual is a literal, and the corresponding
13232         formal has its address taken in the body, create a temporary to capture
13233         value.  If the return type is a limited interface, do not treat the
13234         return value as Controlled.
13235         (Is_In_Place_Function):  If the return type is a limited interface,
13236         treat as returning in place. The actual returned object may not always
13237         be limited, but the caller has to assume that it is returned in place.
13238         (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
13239         context of an allocator, use the correct finalization chain (that is,
13240         the chain belonging to the access type, rather than the chain belonging
13241         to the current scope).
13242         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
13243         result type rather than a controlling result as a precondition for
13244         adding an allocation form actual to a build-in-place call.
13245         (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
13246         (Freeze_Subprogram): Code cleanup. Remove all the code that register the
13247         primitive in the dispatch tables. This work is now done by Make_DT when
13248         the type is frozen.
13249         (Register_Predefined_DT_Entry): Removed.
13250         (Add_Return): If end label is not present, use sloc of last statement
13251         for generated return statement in procedure, for better gdb behavior
13252         on expanded code.
13253         (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
13254         object address nodes to ensure proper processing by routines like
13255         Insert_After*.
13256         (Expand_Call): Fix generation of validity check for parameter
13257         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
13258         the allocation form parameter if the result subtype is constrained,
13259         except when the function has a controlling result.
13260         (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
13261         rather than Is_Controlled and Has_Controlled_Component, since we want to
13262         include class-wide result types in this treatment. Also test for a
13263         controlling result, since that also requires passing a finalization
13264         list.
13265         (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
13266         even when the result subtype is constrained, to handle calls involving
13267         controlling results.
13268         (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
13269         is now called even when the result subtype is constrained, to handle
13270         calls involving controlling results.
13271         (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
13272         on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
13273         now performs the test).
13274         (Make_Build_In_Place_Call_In_Object_Declaration):
13275         Add_Alloc_Form_Actual_* is now called even when the result subtype is
13276         constrained, to handle calls involving controlling results.
13277         (Add_Return): Accomodate rewritten pattern from local raise to goto
13278         transformation, so that we still recognize an transfer statement
13279         and do the right thing here in that case.
13280         (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
13281         and end of subprogram code.
13282         (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
13283         support for primitives that are functions (without formals) with a
13284         controlling result.
13285         (Inherited_From_Formal): If the actual subtype has not generic parent
13286         type, it is not an actual for a formal derived type, and there is no
13287         operation to inherit from the formal.
13288
13289 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13290             Thomas Quinot  <quinot@adacore.com>
13291
13292         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
13293         inserted cleanup code appropriately for GDB use.
13294         (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
13295         exception handler for Deep_Adjust or Deep_Finalize.
13296         (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
13297         Raise_From_Controlled_Operation is available, use a call to that
13298         subprogram instead of a plain "raise Program_Error" node to raise
13299         Program_Error if an exception is propagated from an Adjust or Finalize
13300         operation.
13301         (Insert_Actions_In_Scope_Around): If the statement to be wrapped
13302         appears in the optional statement list of a triggering alternative, the
13303         scope actions can be inserted directly there, and not in the list that
13304         includes the asynchronous select itself.
13305
13306 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13307             Robert Dewar  <dewar@adacore.com>
13308             Hristian Kirtchev  <kirtchev@adacore.com>
13309
13310         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
13311         generated exception handler appropriately when debugging generated code.
13312         Deal properly with No_Exception_Propagation restriction mode.
13313         (Expand_N_Abort_Statement): Add an unchecked type conversion from
13314         System.Address to System.Tasking.Task_Id when processing the result of
13315         the predefined primitive _disp_get_task_id.
13316         (Expand_N_Asynchronous_Select): Clarify comment.
13317         (Expand_N_Protected_Type_Declaration): Minor code cleanup.
13318         (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
13319         (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
13320         (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
13321         privals and for generated call to Complete_Entry_Body, for better gdb
13322         behavior.
13323         (Copy_Result_Type): Utility to construct a parameter and result profile
13324         for protected functions whose return type is an anonymous access to
13325         subprogram.
13326         (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
13327         call the above.
13328         (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
13329         point when the local-raise-to-goto transformation has taken place.
13330
13331 2007-06-06  Javier Miranda  <miranda@adacore.com>
13332             Nicolas Setton  <setton@adacore.com>
13333
13334         * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
13335         functionality when the backend is generating code.
13336         Otherwise any serious error
13337         reported by the backend calling the frontend routine Error_Msg
13338         changes the Compilation_Mode to Check_Semantics, disables the
13339         functionality of this routine and causes the generation of
13340         spureous additional errors.
13341
13342         * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
13343         debugging information now generated by the compiler for fat-pointer
13344         types.
13345         Document the contents of DW_AT_producer in the GNAT Vendor extensions to
13346         DWARF2/3.
13347         Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
13348
13349 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13350
13351         * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
13352         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
13353         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
13354         For a remote call to a function with a classwide return type, apply an
13355         E.4(18) check to the returned value.
13356         (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
13357         stream attributes of the designated type of an RACW, as they are not
13358         dispatching primitive operations.
13359
13360 2007-06-06  Geert Bosch  <bosch@adacore.com>
13361
13362         * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
13363         negative literal
13364         (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
13365         positive
13366         (Do_Divide_Fixed_Universal): Handle case of negative Frac.
13367         (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
13368         positive
13369         (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
13370
13371 2007-06-06  Javier Miranda  <miranda@adacore.com>
13372
13373         * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
13374         attribute compiling package Ada.Tags under No_Run_Time_Mode.
13375
13376 2007-06-06  Javier Miranda  <miranda@adacore.com>
13377
13378         * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
13379         deallocation of class-wide interface objects.
13380         (Expand_Dispatching_Constructor_Call): Take into account that if the
13381         result of the dispatching constructor is an interface type, the
13382         function returns a class-wide interface type; otherwise the returned
13383         object would be actual. The frontend previously accepted returning
13384         interface types because Expand_Interface_Actuals silently performed
13385         the management of the returned type "as if" it were a class-wide
13386         interface type.
13387         (Expand_Dispatching_Constructor_Call): Replace call to
13388         Make_DT_Access_Action by direct call to Make_Function_Call.
13389
13390 2007-06-06  Robert Dewar  <dewar@adacore.com>
13391             Ed Schonberg  <schonberg@adacore.com>
13392
13393         * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
13394         compute masking constant, since we now set Esize properly to the
13395         underlying size.
13396         (Create_Packed_Array_Type): Set proper Esize value adjusted as required
13397         to match the alignment.
13398         (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
13399         packed arrays of 8 bits or less.
13400
13401         * freeze.adb (Freeze_Entity): When freezing the formals of a
13402         subprogram, freeze the designated type of a parameter of an access type
13403         only if it is an access parameter.
13404         Increase size of C convention enumeration object
13405         (Freeze_Entity, array type case): Make sure Esize value is properly
13406         adjusted for the alignment if it is known.
13407         (Freeze_Entity, array type case): When checking bit packed arrays for
13408         the size being incorrect, check RM_Size, not Esize.
13409         (Freeze_Record_Type): Check for bad discriminated record convention
13410         (In_Exp_Body): Return true if the body is generated for a subprogram
13411         renaming, either an attribute renaming or a renaming as body.
13412         (Check_Itype): If the designated type of an anonymous access component
13413         is a non-protected subprogram type, indicate that it is frozen, to
13414         prevent out-of-scope freeze node at some subsequent call.
13415         (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
13416         only if the subprogram is neither imported nor exported, as well as the
13417         NCA descriptor class if the subprogram is exported.
13418
13419 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13420             Arnaud Charlet  <charlet@adacore.com>
13421             Robert Dewar  <dewar@adacore.com>
13422             Gary Dismukes  <dismukes@adacore.com>
13423
13424         * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
13425         default initialization on an imported object, when there is no
13426         initialization call generated for it.
13427         (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
13428         restriction
13429
13430         * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
13431         Static_Elaboration_Desired.
13432         Remove pragma Thread_Body.
13433         Implement a new pragma No_Body
13434         Removes the Explicit_Overriding pragma
13435         Remove Optional_Overriding pragma
13436         (Prag): Deal with Universal_Aliasing.
13437         (Name_CIL, Name_CIL_Constructor, Convention_CIL,
13438         Pragma_CIL_Constructor): New names.
13439
13440         * sem_cat.adb (Validate_Object_Declaration): An initialization that
13441         uses the equivalent aggregate of a type must be treated as an implicit
13442         initialization.
13443         (Get_Categorization): Check a unit for pragma Preelaborate only if it
13444         has none of the other categories.
13445         (Process_Import_Or_Interface_Pragma): Report an error for an attempt
13446         to apply Import to an object renaming declaration.
13447
13448         * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
13449         from a C++ class should be declared as limited and that it will be
13450         considererd limited.
13451         (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
13452         should be declared as limited and that it will be considererd limited.
13453         (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
13454         (Analyze_Pragma, case Export): Diagnose export of enumeration literal
13455         (Analyze_Pragma): Deal with Universal_Aliasing.
13456         (Sig_Flags): Likewise.
13457         (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
13458         (Overflow_Checks_Unsuppressed): New flag.
13459         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
13460         (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
13461         case of JVM or .NET targets, and compiling user code.
13462         Add debugging convenience routine rv
13463
13464 2007-06-06  Robert Dewar  <dewar@adacore.com>
13465
13466         * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
13467         are interface type.
13468         (Build_Elementary_Input_Call): For floating-point use right type in the
13469         absence of strange size or stream size clauses.
13470         (Build_Elementary_Write_Call): Same fix
13471         (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
13472         set to value that does not match base type size.
13473
13474 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13475
13476         * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
13477         object of a limited type can be initialized with a call to a function
13478         that returns in place. If the limited type has unknown discriminants,
13479         and the underlying type is a constrained composite type, build an actual
13480         subtype from the function call, as is done for private types.
13481         (Side_Effect_Free): An expression that is the renaming of an object or
13482         whose prefix is the renaming of a object, is not side-effect free
13483         because it may be assigned through the renaming and its value must be
13484         captured in a temporary.
13485         (Has_Controlled_Coextensions): New routine.
13486         (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
13487         as is done for other limited types.
13488         (Non_Limited_Designated_Type): new predicate.
13489         (Make_CW_Equivalent_Type): Modified to handle class-wide interface
13490         objects.
13491         Remove all handling of with_type clauses.
13492
13493         * par-ch10.adb: Remove all handling of with_type clauses.
13494
13495         * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
13496         checksum if the main source could not be parsed.
13497         (Loat_Unit): When processing a child unit, determine properly whether
13498         the parent unit is a renaming when the parent is itself a child unit.
13499         Remove handling of with_type clauses.
13500
13501         * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
13502         (Set_Is_Static_Coextension): New procedure.
13503         (Has_Local_Raise): New function
13504         (Set_Has_Local_Raise): New procedure
13505         (Renaming_Exception): New field
13506         (Has_Init_Expression): New flag
13507         (Delay_Finalize_Attach): Remove because flag is obsolete.
13508         (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
13509         Remove all handling of with_type clauses.
13510         (Exception_Junk): Can now be set in N_Block_Statement
13511
13512 2007-06-06  Vincent Celier  <celier@adacore.com>
13513             Robert Dewar  <dewar@adacore.com>
13514
13515         * frontend.adb (Frontend): Return immediately if the main source could
13516         not be parsed, because of preprocessing errors.
13517
13518         * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
13519         (Gnat1drv): Exit with errors if the main source could not be parsed,
13520         because of preprocessing errors.
13521         (Check_Rep_Info): New procedure
13522
13523 2007-06-06  Robert Dewar  <dewar@adacore.com>
13524
13525         * g-hesorg.ads, g-heasor.ads,
13526         g-busorg.ads, g-bubsor.ads: Update documentation
13527         GNAT.Heap/Bubble_Sort_G is now pure
13528
13529 2007-06-06  Robert Dewar  <dewar@adacore.com>
13530
13531         * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
13532
13533 2007-06-06  Robert Dewar  <dewar@adacore.com>
13534             Ed Schonberg  <schonberg@adacore.com>
13535
13536         * g-comlin.ads, g-comlin.adb:
13537         Add new warning for renaming of function return objects
13538
13539         * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
13540         (Tree_Read): Use size of object instead of type'object_size, since the
13541         latter is incorrect for packed array types.
13542         (Tree_Write): Same fix
13543
13544         * opt.ads: Add new warning for renaming of function return objects
13545         (Generating_Code): New boolean variable used to indicate that the
13546         frontend as finished its work and has called the backend to process
13547         the tree and generate the object file.
13548         (GCC_Version): Is now private
13549         (Static_Dispatch_Tables): New constant declaration.
13550         (Overflow_Checks_Unsuppressed): New flag.
13551         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
13552         (List_Closure): New flag for gnatbind (-R)
13553         Zero_Formatting: New flag for gnatbind (-Z)
13554         (Special_Exception_Package_Used): New flag.
13555         (Warn_On_Unrepped_Components): New flag.
13556
13557         * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
13558         unit is a compilation unit, rather than relying on its scope, so that
13559         Standard can be renamed.
13560         (Analyze_Object_Renaming): Add new warning for renaming of function
13561         return objects.
13562         Also reject attempt to rename function return object in Ada 83 mode.
13563         (Attribute_Renaming): In case of tagged types, add the body of the
13564         generated function to the freezing actions of the type.
13565         (Find_Type): A protected type is visible right after the reserved word
13566         "is" is encountered in its type declaration. Set the entity and type
13567         rather than emitting an error message.
13568         (New_Scope): Properly propagate Discard_Names to inner scopes
13569         (Check_Nested_Access): New procedure.
13570         (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
13571         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
13572
13573         * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
13574         Add new warning for renaming of function return objects
13575         (Check_References): Suppress warnings for objects whose type or
13576         base type has Warnings suppressed.
13577         (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
13578         (Set_Warning_Switch): Include new -gnatwc in -gnatwa
13579
13580 2007-06-06  Vincent Celier  <celier@adacore.com>
13581             Emmanuel Briot  <briot@adacore.com>
13582             Olivier Hainque  <hainque@adacore.com>
13583
13584         * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
13585         absolute value of Header.Block_Size when displaying the freed physical
13586         memory in traces.
13587         (Allocate): Compute Storage_Address using Integer_Address, not
13588         Storage_Offset, because the range of Storage_Offset may not be large
13589         enough.
13590         (Configure): New parameter Low_Level_Traces
13591         (Allocate, Deallocation, Free_Physically): Added low-level traces
13592         (Configure): new parameter Errors_To_Stdout.
13593         (Output_File): new subprogram
13594         (Deallocate, Dereference): Send error messages to the proper stream
13595         (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
13596         documented. Previous code would send it to the current output file
13597         defined in GNAT.IO, which might not be stdout
13598         (Is_Valid): Adjust comment to mention that a positive reply means that
13599         Header_Of may be used to retrieve the allocation header associated with
13600         the subprogram Storage address argument. Return False early if this
13601         address argument is misaligned.
13602
13603 2007-06-06  Vincent Celier  <celier@adacore.com>
13604
13605         * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
13606         switch -P
13607         (ASIS_Main): New global variable
13608         (Get_Closure): New procedure
13609         (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
13610         check, metric or pretty. Call Get_Closure in this case.
13611         (Check_Files): For GNAT LIST, check all sources of all projects when
13612         All_Projects is True.
13613         (GNATCmd): Accept -U for GNAT LIST
13614
13615 2007-06-06  Vincent Celier  <celier@adacore.com>
13616
13617         * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
13618         has been specified
13619         Correct error message when invocation of the linker fails
13620         Add explicit size clause for the C imported variables
13621         Object_List_File_Supported and Using_GNU_Linker to emphasize that
13622         we expect char size.
13623         Read target parameters earlier, since this is needed to set
13624         Target_VM properly. Also do not use -static/shared-libgcc for non GCC
13625         targets.
13626
13627 2007-06-06  Vincent Celier  <celier@adacore.com>
13628
13629         * gnatls.adb:
13630         Add 3 spaces before the default project directory when displaying
13631         the project search path.
13632         Add new command line switch '-l' to display license information.
13633
13634 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
13635
13636         * gmem.c: Add support for timestamps on memory operations.
13637
13638         * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
13639         operations (not used currently, just foundation for future
13640         enhancements). Add possibility to perform full dump of gmem.out file.
13641         (Print_Back_Traces): Declare accesses to root arrays constants since
13642         they aren't modified.
13643         (Print_Back_Traces): allocate root arrays on the heap rather than stack.
13644
13645 2007-06-06  Vincent Celier  <celier@adacore.com>
13646
13647         * gnatsym.adb: Update Copyright notice
13648         (Parse_Cmd_Line): Accept new switch -D
13649         (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
13650          file.
13651
13652         * prj.ads (Policy): New policy Direct
13653         (Yes_No_Unknown): New enumeration type
13654         (Project_Data): New component Libgnarl_Needed
13655
13656         * prj-nmsc.adb (Check_For_Source): When recording a source file make
13657         use the untouched pathname casing.
13658         (Get_Directories): Ensure that the Display_Exec_Directory is using the
13659         proper casing on non case-sensitive platforms like Windows.
13660         (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
13661         on all platforms, as it is not possible to know which one is allowed
13662         before processing the project files.
13663         (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
13664         specified when symbol policy is Direct. Check that when there is a
13665         symbol file defined (either by default or with attribute
13666         Library_Symbol_File) it is not the same as the reference symbol file.
13667         (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
13668         (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
13669         extending projects.
13670         (Record_Ada_Source): Record a source that has been locally removed in an
13671         imported project.
13672
13673         * symbols.ads (Policy): New policy Direct
13674
13675         * symbols-vms.adb (Initialize): Take new policy Direct in case
13676         statement
13677
13678 2007-06-06  Vincent Celier  <celier@adacore.com>
13679
13680         * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
13681         Correct obvious bug (return Dir; instead of return Directory;).
13682         (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
13683
13684 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13685
13686         * g-pehage.adb (Produce): Open output files in Binary mode, so that
13687         they have UNIX line endings (LF only) even on Windows, and thus pass
13688         all GNAT style checks.
13689
13690 2007-06-06  Emmanuel Briot  <briot@adacore.com>
13691
13692         * g-regpat.adb (Quote): Fix improper quoting of '.'
13693
13694 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13695
13696         * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
13697         default, set False on a per-runtime basis.
13698         (Need_Netdb_Buffer): New constant.
13699
13700         * g-socket.ads, g-socket.adb: Import new package
13701         GNAT.Sockets.Thin.Task_Safe_NetDB.
13702         (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
13703         binding to obtain proper message.
13704         (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
13705         Replace various occurrences of Arry (Arry'First)'Address with the
13706         equivalent Arry'Address (GNAT always follows implementation advice from
13707         13.3(14)).
13708         (Get_Host_By_Address, Get_Host_By_Name,
13709         Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
13710         instead, rely on platform-specific task safe netdb operations provided
13711         by g-socthi.
13712
13713         * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
13714         parameter Process_Blocking_IO.
13715         (Host_Error_Messages): Add stub body.
13716         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
13717         (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
13718         Safe_Getservbyport): Move functions into new child package
13719         Task_Safe_NetDB.
13720         (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
13721         Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
13722         (In_Addr): Add alignment clause.
13723
13724 2007-06-06  Robert Dewar  <dewar@adacore.com>
13725
13726         * g-trasym.ads, g-traceb.ads: Update list of supported targets
13727         Add note about symbolic traceback
13728
13729 2007-06-06  Pascal Obry  <obry@adacore.com>
13730
13731         * hostparm.ads (Normalized_CWD): Use the host directory separator
13732         instead of the hardcoded forward slash which is not the proper
13733         character on Windows for example.
13734         (Java_VM): Removed.
13735
13736 2007-06-06  Vincent Celier  <celier@adacore.com>
13737             Arnaud Charlet  <charlet@adacore.com>
13738
13739         * a-clrefi.adb, a-clrefi.ads: New files
13740
13741         * impunit.adb: Add s-os_lib in the list of user visible units.
13742         (Non_Imp_File_Names_95): Add a-clrefi to this list
13743         Remove obsolete run-time entries.
13744         (Non_Imp_File_Names_05): Add Ada 2005 entries for:
13745          "a-exetim" -- Ada.Execution_Time
13746          "a-extiti" -- Ada.Execution_Time.Timers
13747
13748         * mlib-prj.ads, mlib-prj.adb
13749         (Build_Library): Use untouched object dir and library dir. At the
13750         same time makes sure that the checks are done using the canonical
13751         form. Removes hard-coded directory separator and use the proper host
13752         one instead.
13753         (Process_Project): Do not look in object directory to check if libgnarl
13754         is needed for a library, if there is no object directory.
13755         (Build_Library): Scan the ALI files to decide if libgnarl is needed for
13756         linking.
13757         (Build_Library): When invoking gnatbind, use a response file if the
13758         total size of the arguments is too large.
13759
13760         * Makefile.rtl: (g-sttsne): New object file.
13761         Add entry for a-clrefi, s-utf_32, System.Exceptions
13762
13763         * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
13764         (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
13765         (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
13766         Change g-string to s-string, g-os_lib to s-os_lib
13767         Change all g-utf_32 references to s-utf_32
13768
13769 2007-06-06  Tristan Gingold  <gingold@adacore.com>
13770             Olivier Hainque  <hainque@adacore.com>
13771
13772         * init.c: Do not adjust IP of an imported VMS exception of ia64.
13773         LIB$STOP is called to raise an exception and the IP of the exception
13774         is the instruction right after the call.
13775         (__gnat_adjust_context_for_raise, AIX): Implement.
13776         (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
13777          adjust_context_for_raise before Raise_From_Signal_Hanler.
13778         (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
13779         siginfo is passed to the handler, necessary to let the zcx propagation
13780         engine unwind past it.
13781
13782 2007-06-06  Olivier Hainque  <hainque@adacore.com>
13783
13784         * initialize.c (__gnat_initialize for vxworks):  Update documentation
13785         on the ZCX support, using different sets of crtstuff objects than with
13786         GCC 3.4.
13787
13788 2007-06-06  Robert Dewar  <dewar@adacore.com>
13789
13790         * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
13791         spec from body
13792         (Layout_Type): Fix recomputation of size from alignment.
13793
13794 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13795             Javier Miranda  <miranda@adacore.com>
13796
13797         * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
13798         association in an instance.
13799         (Copy_Generic_Node): If the node is a string literal, no need to copy
13800         its descendants.
13801         (Is_Generic_Formal): For a formal subprogram, the declaration is the
13802         grandparent of the entity.
13803         (Analyze_Formal_Interface_Type): Transform into a full type declaration,
13804         to simplify handling of formal interfaces that derive from other formal
13805         interfaces.
13806         (Instantiate_Subprogram_Body): The defining unit name of the body of
13807         the instance should be a defining identifier.
13808         (Install_Formal_Packages): make global to the package, for use in
13809         instantiations of child units.
13810         (Analyze_Package_Instantiation): Do not attempt to set information on an
13811         enclosing master of an entry when expansion is disabled.
13812         (Instantiate_Type): If the actual is a tagged synchronized type and the
13813         generic ancestor is an interface, create a generic actual for the
13814         corresponding record.
13815         (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
13816         declaration, to ensure that the interface list is processed correctly.
13817         (Inline_Instance_Body): If enclosing scope is an instance body, remove
13818         its entities from visibiility as well.
13819         (Pre_Analyze_Actuals): if the actual is an allocator with  constraints
13820         given with a named association, analyze the expression only, not the
13821         discriminant association itself.
13822         (Reset_Entity): If the analysis of a selected component is transformed
13823         into an expanded name in the prefix of a call with parameters, do not
13824         transform the original node into an expanded name, to prevent visibility
13825         errors in the case of nested generics.
13826         (Check_Private_View): For an array type, check whether the index types
13827         may need exchanging.
13828
13829 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
13830             Vincent Celier  <celier@adacore.com>
13831
13832         * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
13833         since both are separated.
13834         Add support for imported CIL packages.
13835         Add further special handling of "value_type" for CIL.
13836         Add special handling of pragma Import for CIL.
13837
13838         * make.ads, make.adb: When switch -eS is used, direct all outputs to
13839         standard output instead of standard error, except errors.
13840         (Absolute_Path): Use untouched casing for the parent directory.
13841         (Add_Library_Search_Dir): Use the untouched directory name.
13842         (Add_Source_Search_Dir): Idem.
13843         (Change_To_Object_Directory): Update output to use proper casing.
13844         (Create_Binder_Mapping_File): Use the untouched filename to set
13845         ALI_Name.
13846         (Gnatmake): Use untouched library and executable directory names.
13847         (Insert_Project_Sources): Use untouched filename for spec and body.
13848         (Is_In_Object_Directory): Use untouched object directory.
13849         (Mark_Directory): Idem.
13850         (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
13851         contains the non-canonical filename in all cases.
13852         (Change_To_Object_Directory): In verbose mode, display the name of the
13853         object directory we're changing to.
13854         (Compile_Sources): Make sure, when a project file is used, to compile
13855         the body of the unit, when there is one, even when only the spec is
13856         recorded in an ALI file.
13857         (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
13858         spec to the body.
13859         (Report_Compilation_Failed): New procedure
13860         (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
13861         procedures moved from the spec to the body.
13862         (Extract_Failure): Removed, not used
13863         Replace explicit raises of exception Bind_Failed and Link_Failed with
13864         calls to Make_Failed with the proper message.
13865         Replace explicit raises of exception Compilation_Failed with calls to
13866         procedure Report_Compilation_Failed.
13867         (Initialize): Create mapping files unconditionally when using project
13868         files.
13869
13870         * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
13871         Pragma_CIL_Constructor): New names.
13872
13873         * targparm.ads, targparm.adb
13874         (Compiler_System_Version): Removed, no longer used.
13875         (Get_Target_Parameters): Relax checks on system.ads validity. Add
13876         handling of two new system flags: JVM and CLI.
13877
13878 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
13879             Arnaud Charlet  <charlet@adacore.com>
13880
13881         * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
13882         time, use the default s-interr body that provides interrupt support
13883         based on signals.
13884         (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
13885         a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
13886         g-soccon.ads, and s-taprop.adb for the marte run time.
13887         (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
13888         timers are supported on marte.
13889         (EH_MECHANISM for marte): Do not use ZCX.
13890         (THREADSLIB for marte): Use -lmarte.
13891         Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
13892         Add mlib-tgt-specific.o to gnatmake objects
13893         mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
13894         longer of MLib.Tgt.
13895         (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
13896         6, either kernel or rtp, use a specialized version of s-osinte.ads.
13897
13898 2007-06-06  Pascal Obry  <obry@adacore.com>
13899
13900         * mkdir.c (__gnat_mkdir): Add support for UTF-8.
13901
13902 2007-06-06  Vincent Celier  <celier@adacore.com>
13903
13904         * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
13905         separator, use instead the proper host directory separator.
13906         (Copy_ALI_Files): Make sure that an already existing ALI file in the
13907         ALI copy dir is writable, before doing the copy.
13908
13909         * mlib-utl.ads, mlib-utl.adb:
13910         (Gcc): If length of command line is too long, put the list of object
13911         files in a response file, if this is supported by the platform.
13912         (Ar): If invocation of the archive builder is allowed to be done in
13913         chunks and building it in one shot would go above an OS dependent
13914         limit on the number of characters on the command line, build the archive
13915         in chunks.
13916
13917 2007-06-06  Vincent Celier  <celier@adacore.com>
13918
13919         * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
13920         of specified object file is not equal to base name of source.
13921
13922 2007-06-06  Javier Miranda  <miranda@adacore.com>
13923             Hristian Kirtchev  <kirtchev@adacore.com>
13924             Ed Schonberg  <schonberg@adacore.com>
13925
13926         * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
13927         the full type declaration.
13928         (Analyze_Component_Declaration): Add local variable E to capture the
13929         initialization expression of the declaration. Replace the occurences of
13930         Expression (N) with E.
13931         (OK_For_Limited_Init_In_05): Allow initialization of class-wide
13932         limited interface object with a function call.
13933         (Array_Type_Declaration): If the declaration lacks subtype marks for
13934         indices, create a simple index list to prevent cascaded errors.
13935         (Is_Null_Extension): Ignore internal components created for secondary
13936         tags when checking whether a record extension is a null extension.
13937         (Check_Abstract_Interfaces): Add missing support for interface subtypes
13938         and generic formals.
13939         (Derived_Type_Declaration): Add missing support for interface subtypes
13940         and generic formals.
13941         (Analyze_Object_Declaration): If an initialization expression is
13942         present, traverse its subtree and mark all allocators as static
13943         coextensions.
13944         (Add_Interface_Tag_Component): When looking for components that may be
13945         secondary tags, ignore pragmas that can appear within a record
13946         declaration.
13947         (Check_Abstract_Overriding): an inherited function that dispatches on
13948         result does not need to be overriden if the controlling type is a null
13949         extension.
13950         (Mentions_T): Handle properly a 'class attribute in an anonymous access
13951         component declaration, when the prefix is an expanded name.
13952         (Inherit_Component): If the derivation is for a private extension,
13953         inherited components remain visible and their ekind should not be set
13954         to Void.
13955         (Find_Type_Of_Object): In the case of an access definition, always set
13956         Is_Local_Anonymous_Access. We were previously not marking the anonymous
13957         access type of a return object as a local anonymous type.
13958         (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
13959         range with character literal bounds.
13960         (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
13961         (Access_Subprogram_Declaration): Indicate that the type declaration
13962         depends on an incomplete type only if the incomplete type is declared
13963         in an open scope.
13964         (Analyze_Subtype_Declaration): Handle properly subtypes of
13965         synchronized types that are tagged, and that may appear as generic
13966         actuals.
13967         (Access_Subprogram_Declaration): An anonymous access to subprogram can
13968         appear as an access discriminant in a private type declaration.
13969         (Add_Interface_Tag_Components): Complete decoration of the component
13970         containing the tag of a secondary dispatch table and the component
13971         containing the offset to the base of the object (this latter component
13972         is only generated when the parent type has discriminants --as documented
13973         in this routine).
13974         (Inherit_Components): Use the new decoration of the tag components to
13975         improve the condition that avoids inheriting the components associated
13976         with secondary tags of the parent.
13977         (Build_Discriminanted_Subtype): Indicate to the backend that the
13978         size of record types associated with dispatch tables is known at
13979         compile time.
13980         (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
13981         (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
13982         to include task, protected, and synchronized interfaces as limited
13983         interfaces.
13984         (Process_Discriminants): Remove the setting of
13985         Is_Local_Anonymous_Access on the type of (anonymous) access
13986         discriminants of nonlimited types.
13987         (Analyze_Interface_Type_Declaration): Complete the decoration of the
13988         class-wide entity it is is already present. This situation occurs if
13989         the limited-view has been previously built.
13990         (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
13991         field.
13992         (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
13993         Related_Interface.
13994
13995 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13996
13997         * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
13998         of the type that specify the position of interface tags when the type
13999         inherits discriminated array components from the parent type.
14000         If a component is initialized with a box, check for the presence of a
14001         default expression in its declaration before using its default
14002         initialization procedure.
14003         (Resolve_Record_Aggregate): If a component is box-initialized, and the
14004         component type has a discriminants, create a partial aggregate for it
14005         by copying the discriminants of the component subtype.
14006         Reject attempt to initialize a discriminant with a box.
14007         (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
14008         associated with dispatch tables is known at compile time.
14009         (Get_Value): If an association in a record aggregate has a box
14010         association, and the corresponding record component has a default
14011         expression, always copy the default expression, even when the
14012         association has a single choice, in order to create a proper
14013         association for the expanded aggregate.
14014
14015 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
14016             Robert Dewar  <dewar@adacore.com>
14017
14018         * par-ch12.adb (P_Generic_Associations): The source position of an
14019         Others association is that of the others keyword, not that of the token
14020         that follows the box.
14021         (P_Formal_Type_Definition): Handle formal access types that carry a
14022         not null indicator.
14023
14024         * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
14025         multiple identifier are present, save Scan_State before scanning the
14026         colon, to ensure that separate trees are constructed for each
14027         declaration.
14028         (P_Identifier_Declarations): For object declaration, set new flag
14029         Has_Init_Expression if initialization expression present.
14030         (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
14031         Improve NOT NULL error messages
14032
14033 2007-06-06  Robert Dewar  <dewar@adacore.com>
14034
14035         * par-ch4.adb: (P_Name): Recover from literal used as name
14036
14037 2007-06-06  Vincent Celier  <celier@adacore.com>
14038
14039         * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
14040         defaulted to False.
14041         In the "not" case, recursive call with Complemented set to True.
14042         Do not allow "or" or "and" operators when Complemented is True.
14043
14044 2007-06-06  Vincent Celier  <celier@adacore.com>
14045
14046         * prj.adb (Project_Empty): Gives default value for new component
14047         Libgnarl_Needed
14048
14049         * prj-attr.ads: Minor reformatting
14050
14051         * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
14052         directory using the untouched casing.
14053         (For_All_Source_Dirs): Idem.
14054
14055         * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
14056         directories specified with switches -aP.
14057         (Add_Search_Project_Directory): New procedure
14058         (Initialize_Project_Path): Put the directories in table
14059         Search_Directories in the project search path.
14060         (Initialize_Project_Path): For VMS, transform into canonical form the
14061         project path.
14062
14063 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
14064
14065         * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
14066         true if configurable run-time or No_Run_Time is set.
14067         (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
14068         processing an unit which is not the one being compiled.
14069
14070 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
14071
14072         * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
14073         Replace UC by Ada.UC
14074
14075         * s-bitops.adb: Get rid of System.Pure_Exceptions.
14076         Replace UC by Ada.UC
14077
14078 2007-06-06  Robert Dewar  <dewar@adacore.com>
14079
14080         * scng.adb: (Check_End_Of_Line): Deal with very long lines
14081
14082 2007-06-06  Robert Dewar  <dewar@adacore.com>
14083
14084         * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
14085         Remove no longer used nodes.
14086
14087 2007-06-06  Javier Miranda  <miranda@adacore.com>
14088             Ed Schonberg  <schonberg@adacore.com>
14089             Robert Dewar  <dewar@adacore.com>
14090
14091         * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
14092         on obsolescent withed unit in case of limited-withed units.
14093         (Analyze_Compilation_Unit): Add guard to code that removed an
14094         instantiation from visibility, to prevent compiler aborts when
14095         instantiation is abandoned early on.
14096         (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
14097         current unit being analyzed, and Distinguish local incomplete types
14098         from limited views of types declared elsewhere.
14099         (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
14100         to state that the class-wide entity is shared by the limited-view
14101         and the full-view.
14102         (Analyze_With_Clause): Improve placement of flag for case of
14103         unimplemented unit.
14104         (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
14105         manner similar to GNAT.Current_Exception. This is a violation of
14106         restriction (No_Exception_Propagation), and also inhibits the
14107         optimization of local raise to goto.
14108         (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
14109         and if so set Most_Recent_Exception_Used flag in Opt, and also check
14110         for violation of restriction No_Exception_Propagation.
14111
14112 2007-06-06  Javier Miranda  <miranda@adacore.com>
14113             Hristian Kirtchev  <kirtchev@adacore.com>
14114             Gary Dismukes  <dismukes@adacore.com>
14115
14116         * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
14117         use of entity Exception_Occurrence if it is not available in the
14118         target run-time.
14119
14120         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
14121         concurrent types are declared within an Ada 2005 generic, build their
14122         corresponding record types since they are needed for overriding-related
14123         semantic checks.
14124         (Analyze_Protected_Type): Rearrange and simplify code for testing that a
14125         protected type does not implement a task interface or a nonlimited
14126         interface.
14127         (Analyze_Task_Type): Rearrange and simplify code for testing that a task
14128         type does not implement a protected interface or a nonlimited interface.
14129         (Single_Task_Declaration, Single_Protected_Declaration): use original
14130         entity for variable declaration, to ensure that debugging information
14131         is correcty generated.
14132         (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
14133         routines if the expander is not active.
14134         (Analyze_Task_Body): Mark all handlers to stop optimization of local
14135         raise, since special things happen for task exception handlers.
14136
14137         * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
14138         concurrent types declared within a generic.
14139         (Check_Dispatching_Operation): Do not emit warning about late interface
14140         operations in the context of an instance.
14141         (Check_Dispatching_Call): Remove restriction against calling a
14142         dispatching operation with a limited controlling result.
14143         (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
14144         Register_Interface_DT_Entry by calls to Register_Primitive.
14145         (Check_Dispatching_Formals): Handle properly a function with a
14146         controlling access result.
14147
14148 2007-06-06  Robert Dewar  <dewar@adacore.com>
14149             Arnaud Charlet  <charlet@adacore.com>
14150
14151         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
14152         Check for restriction No_Implementation_Attributes if in Ada 95 mode.
14153         (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
14154         (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
14155         message when using a VM, since this attribute is not supported.
14156         (Analyze_Record_Representation_Clause): Give unrepped component warnings
14157
14158         * usage.adb: Add new warning for renaming of function return objects
14159         Indicate that -gnatwp and -gnatwP concern front-end inlining
14160         Add line for -gnatyg
14161         Add usage information for -gnatw.c/C
14162
14163 2007-06-06  Robert Dewar  <dewar@adacore.com>
14164             Ed Schonberg  <schonberg@adacore.com>
14165
14166         * sem_ch5.adb
14167         (Find_Var): Do not consider function call in test for infinite loop
14168         warning if warnings set off for function entity.
14169         (One_Bound): Do not create a temporary for a loop bound if it is a
14170         character literal.
14171         (Analyze_Assignment): Traverse the right hand side of an assignment and
14172         mark all allocators as static coextensions.
14173         (Analyze_Assignment): Exempt assignments involving a dispatching call
14174         to a function with a controlling access result from the check requiring
14175         the target to be class-wide.
14176
14177 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
14178             Ed Schonberg  <schonberg@adacore.com>
14179             Robert Dewar  <dewar@adacore.com>
14180             Javier Miranda  <miranda@adacore.com>
14181
14182         * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
14183         chain of coextensions when an allocator serves as the root of such a
14184         chain.
14185         (Propagate_Coextensions): Remove the test for the root being an
14186         allocator.
14187         (Resolve_Allocator): Add condition to ensure that all future decoration
14188         occurs on an allocator node. Add processing and cleanup for static
14189         coextensions.
14190         (Valid_Conversion): If the operand type is the limited view of a
14191         class-wide type, use the non-limited view is available to determine
14192         legality of operation.
14193         (Ambiguous_Character): move to spec, for use elsewhere.
14194         (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
14195         (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
14196         character literals.
14197         (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
14198         Do_Division_Check flag explicitly.
14199         (Resolve_Actuals): If the actual is of a synchronized type, and the
14200         formal is of the corresponding record type, this is a call to a
14201         primitive operation of the type, that is declared outside of the type;
14202         the actual must be unchecked-converted to the type of the actual
14203         (Resolve_Call): Kill all current values for any subprogram call if
14204         flag Suppress_Value_Tracking_On_Call is set.
14205         (Resolve_Type_Conversion): Generate error message the the operand
14206         or target of interface conversions come from a limited view.
14207         (Check_Infinite_Recursion): Ignore generated calls
14208         (Check_Allocator_Discrim_Accessibility): New procedure for checking
14209         that an expression that constrains an access discriminant in an
14210         allocator does not denote an object with a deeper level than the
14211         allocator's access type.
14212         (Resolve_Allocator): In the case of an allocator initialized by an
14213         aggregate of a discriminated type, check that associations for any
14214         access discriminants satisfy accessibility requirements by calling
14215         Check_Allocator_Discrim_Accessibility.
14216         (Resolve_Equality_Op): Handle comparisons of anonymous access to
14217         subprogram types in the same fashion as other anonymous access types.
14218         (Resolve_Concatenation_Arg): Remove initial character '\' in an error
14219         message that is not a continuation message.
14220         (Resolve_Type_Conversion): Add missing support for conversion to
14221         interface type.
14222         (Resolve_Actuals): Introduce a transient scope around the call if an
14223         actual is a call to a function returning a limited type, because the
14224         resulting value must be finalized after the call.
14225         (Resolve_Actuals): If the call was given in prefix notations, check
14226         whether an implicit 'Access reference or implicit dereference must be
14227         added to make the actual conform to the controlling formal.
14228
14229 2007-06-06  Robert Dewar  <dewar@adacore.com>
14230             Javier Miranda  <miranda@adacore.com>
14231
14232         * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
14233         (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
14234         overriding of an inherited private subprogram now there is no need to
14235         inherit its dispatching slot and reduce the size of the dispatch table.
14236         Set_All_DT_Position now ensures that the same slot is now assigned to
14237         both entities. This is required to statically build the dispatch table.
14238         (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
14239         of calling Set_All_DT_Position to re-evaluate the position of the
14240         entries in the dispatch table. Such reevaluation is not desired if
14241         the tagged type is already frozen.
14242
14243 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
14244             Gary Dismukes  <dismukes@adacore.com>
14245             Robert Dewar  <dewar@adacore.com>
14246             Javier Miranda  <miranda@adacore.com>
14247
14248         * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
14249         reference acts as an lvalue when the attribute name modifies the prefix
14250         (Is_Coextension_Root): New routine.
14251         (Mark_Static_Coextensions): New routine.
14252         (Type_Access_Level): Revise code for checking the level of the
14253         anonymous access type of a return object.
14254         (Safe_To_Capture_Value): Not safe to capture if Address_Taken
14255         (Matches_Prefixed_View_Profile): Remove the no longer necessary
14256         retrieval of the corresponding controlling record type.
14257         (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
14258         concurrent types declared within a generic as well as class wide types.
14259         Emit a mode incompatibility error whenever a protected entry or routine
14260         override an interface routine whose first parameter is not of mode
14261         "out", "in out" or access to variable.
14262         (Overrides_Synchronized_Primitive): Rename to
14263         Find_Overridden_Synchronized_Primitive.
14264         (Collect_Interface_Components): New subprogram that collects all the
14265         components of a tagged record containing tags of secondary dispatch
14266         tables.
14267         (Add_Global_Declaration): New procedure
14268         (Abstract_Interface_List): Handle properly the case of a subtype of a
14269         private extension.
14270         (Type_Access_Level): In the case of a type whose parent scope is a
14271         return statement, call Type_Access_Level recursively on the enclosing
14272         function's result type to determine the level of the return object's
14273         type.
14274         (Build_Elaboration_Entity): Build name of elaboration entity from the
14275         scope chain of the entity, rather than the unit name of the file name.
14276         (Check_Nested_Access): New procedure.
14277         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
14278         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
14279         (Get_Renamed_Entity): Utility routine for performing common operation
14280         of chasing the Renamed_Entity field of an entity.
14281
14282 2007-06-06  Robert Dewar  <dewar@adacore.com>
14283
14284         * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
14285         elaboration model
14286         (Check_A_Call): Add check for entry call which was causing blowup
14287
14288 2007-06-06  Olivier Hainque  <hainque@adacore.com>
14289
14290         * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
14291         special code on ia64-vms to handle major incompatibilities between the
14292         GCC unwinding ABI and the VMS Condition Handling Facility, both calling
14293         this routine with a very different set of arguments and expectations on
14294         the return value.
14295
14296 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14297
14298         * socket.c (__gnat_close_signalling_fd): New function.
14299         (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
14300         __gnat_safe_getservbyname, __gnat_safe_getservbyport):
14301         New supporting functions for task safe Netdb operations.
14302
14303 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14304             Olivier Hainque  <hainque@adacore.com>
14305
14306         * a-except-2005.ads, a-except-2005.adb
14307         (Raise_From_Controlled_Operation): New procedure in
14308         (private part of) Ada.Exceptions (standard runtime version). Used to
14309         provide informational exception message when Program_Error is raised as
14310         a result of an Adjust or Finalize operation propagating an exception.
14311         (Rmsg_28): Fix description for E.4(18) check.
14312         (Raise_Current_Excep): Call Debug_Raise_Exception just before
14313         propagation starts, to let debuggers know about the event in a reliable
14314         fashion.
14315         Take the address of E and dereference to make sure it is homed on stack
14316         and prevent the stores from being deleted, necessary for proper
14317         debugger behavior on "break exception" hits.
14318         (Local_Raise): Moved to System.Exceptions
14319
14320         * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
14321         exception message from the current occurrence and raise Program_Error
14322         has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
14323
14324 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
14325             Arnaud Charlet  <charlet@adacore.com>
14326
14327         * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
14328         lock, if needed.
14329
14330         * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
14331         priority associated to a lock.
14332
14333         * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
14334         assertion to take into account case of no abort restriction.
14335         (Initialize_Protection_Entries): Add initialization for the field
14336         New_Ceiling associated to the protected object.
14337         (Unlock_Entries): Change the ceiling priority of the underlying lock, if
14338         needed.
14339
14340         * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
14341         since this function needs to be set consistently with Update_Exception.
14342
14343         * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
14344         since this function needs to be set consistently with Update_Exception.
14345
14346         * s-taskin.ads: Update comments on
14347         Interrupt_Server_Blocked_On_Event_Flag.
14348         (Unbind_Handler): Fix handling of server_task wakeup
14349         (Server_Task): Set self's state so that Unbind_Handler can take
14350         appropriate actions.
14351         (Common_ATCB): Now use a constant from System.Parameters to determine
14352         the max size of the Task_Image field.
14353
14354         * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
14355         Initialize_Analyzer function.
14356         ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
14357         take into account case of no abort restriction.
14358         ([Vulnerable_]Complete_Master): Modify assertion.
14359
14360         * s-tataat.adb (Finalize): Use the nestable versions of
14361         Defer/Undefer_Abort.
14362
14363         * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
14364
14365         * s-tpobop.ads: Update comments.
14366
14367         * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
14368         of locking the object manually, to avoid inconsistencies between
14369         Lock/Unlock_Entry assertions.
14370
14371         * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
14372         terminating
14373         application and System.Parameters.No_Abort is True.
14374         Update comments on Interrupt_Server_Blocked_On_Event_Flag.
14375         (Unbind_Handler): Fix handling of server_task wakeup
14376         (Server_Task): Set self's state so that Unbind_Handler can take
14377         appropriate actions.
14378
14379 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14380
14381         * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
14382         declarations instead of an explicit null body, for conciseness.
14383
14384 2007-06-06  Robert Dewar  <dewar@adacore.com>
14385
14386         * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
14387         illegal aggregate and the type is still Any_Composite.
14388         (Subtypes_Statically_Match): Fix problem of empty discriminant list
14389
14390 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
14391
14392         * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
14393         to prevent subsequent expansion.
14394
14395 2007-06-06  Robert Dewar  <dewar@adacore.com>
14396
14397         * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
14398
14399 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
14400             Robert Dewar  <dewar@adacore.com>
14401
14402         * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
14403         exceptions.
14404         (Write_Itype): Handle case of string literal subtype, which
14405         comes up in this context.
14406         (Update_Itype): when debugging expanded code, update sloc of itypes
14407         associated with defining_identifiers and ranges, for gdb use.
14408         (Sprint_Node_Actual): Add static keyword to object or exception
14409         declaration output if Is_Statically_Allocated is True.
14410         (Sprint_End_Label): Set entity of end marker for a subprogram, package,
14411         or task body, so that the tree carries the proper Sloc information for
14412         debugging use.
14413         (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
14414
14415 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
14416
14417         * s-secsta.adb (Chunk): Ensure this object has a static size known at
14418         compile time, to avoid dynamic memory allocation
14419         (Elaboration code): Only use dynamic memory allocation when needed.
14420
14421 2007-06-06  Quentin Ochem  <ochem@adacore.com>
14422
14423         * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
14424         "Overflow_Guard".
14425         (Stack_Analyzer): Added field "Overflow_Guard"
14426         (Task_Result): Added field "Overflow_Guard".
14427         (Index_Str): New constant.
14428         (Task_Name_Str): New constant.
14429         (Actual_Size_Str): New constant.
14430         (Pattern_Array_Element_Size): New constant.
14431         (Get_Usage_Range): New subprogram.
14432         (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
14433         Now align the output.
14434         Added comments.
14435         (Initialize): Added value for Overflow_Guard.
14436         (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
14437         Update the value of the overflow guard according to the actual
14438         beginning of the pattern array.
14439         (Initialize_Analyzer): Added parameter Overflow_Guard.
14440         Take this parameter into accound when computing the max size.
14441         (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
14442         (Report_Result): Removed extra useless procedure.
14443         Updated call to Output_Result.
14444         Moved full computation of the Task_Result here.
14445
14446 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14447
14448         * g-soccon-darwin.ads, gen-soccon.c: Add new constant
14449         Thread_Blocking_IO, always True by default, set False on a per-runtime
14450         basis.
14451         Add Windows-specific constants
14452         Add new constant Need_Netdb_Buffer.
14453         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
14454         not, whether to use getXXXbyYYY_r.
14455
14456         * gsocket.h: Add new constant Need_Netdb_Buffer.
14457         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
14458         not, whether to use getXXXbyYYY_r.
14459
14460 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
14461
14462         * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
14463         than their first call.
14464         Add type Dummy_Communication_Block used in the generation of the pre-
14465         defined dispatching primitive _disp_asynchronous_select.
14466         (Storage_Element): Put Pragma Universal_Aliasing on it.
14467
14468 2007-06-06  Vincent Celier  <celier@adacore.com>
14469
14470         * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
14471         function.
14472
14473         * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
14474         letter if it is not followed by a '/' or a '\'.
14475         (Windows): New Boolean function
14476
14477         * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
14478         Ada 2005.
14479         (Containing_Directory): On Windows, keep at least one '/' or '\' after a
14480         drive letter.
14481         (Containing_Directory): Raise Use_Error when the directory is a root
14482         directory.
14483         (Extension): When returning the result, use a conversion to Result_Type,
14484         not a qualification.
14485
14486 2007-06-06  Robert Dewar  <dewar@adacore.com>
14487
14488         * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
14489         (Set_Style_Check_Options): Recognize new -gnatyg style switch
14490
14491         * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
14492         Warn_On_Non_Local_Exception to False, to turn off warnings for
14493         No_Exception_Propagation in ZFP runtime.
14494         (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
14495         back-ends.
14496         (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
14497
14498 2007-06-06  Vincent Celier  <celier@adacore.com>
14499
14500         * switch-b.adb (Scan_Binder_Switches): Add processing for new
14501         switches -R and -Z
14502
14503         * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
14504         (Scan_Make_Switches): Recognize new switch -aP
14505
14506 2007-06-06  Matthew Gingell  <gingell@adacore.com>
14507             Jose Ruiz  <ruiz@adacore.com>
14508
14509         * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
14510         VxWorks task descriptor in the Ada run time, call a C subprogram
14511         (__gnat_get_stack_info) that extracts the required information.
14512
14513         * sysdep.c: Back out temporary lynxos workaround.
14514         (__gnat_get_stack_info): Add this procedure that passes to the Ada run
14515         time the stack information associated to the currently executing task.
14516         Only VxWorks systems require this function.
14517
14518 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
14519
14520         * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
14521         add the stack bias if the offset is computed from a frame address.
14522         (__gnat_backtrace): Adjust for above change.
14523
14524 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14525
14526         * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
14527         PE_Non_Transportable_Actual.
14528         (By_Descriptor_Last): New constant.
14529         (By_Copy_Return): Likewise.
14530
14531 2007-06-06  Vincent Celier  <celier@adacore.com>
14532
14533         * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
14534         is.
14535
14536         * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
14537         /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
14538         /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
14539         Add missing comment for /OPTIMIZE=SPACE
14540         Add entry for OPTIMIZE=SPACE
14541         Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
14542         Add documentation for new qualifiers corresponding to -gnatw.c/.C
14543
14544 2007-06-06  Vincent Celier  <celier@adacore.com>
14545             Robert Dewar  <dewar@adacore.com>
14546
14547         * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
14548         -gnatw.C)
14549
14550         * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
14551         Document gnatbind switch -a
14552         (case Constructions): Document that variables declarations are allowed
14553         for previously declared variables.
14554         Fix external lib project example
14555         -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
14556         Indicate that "#if not X or Y then" is not allowed in input files to
14557         gnatprep.
14558         Document gnatw.x and gnatw.X warning flags
14559         Mention -Winline switch to activate warnings when back-end inlining is
14560         ineffective.
14561         Add gnatcheck rule descriptions
14562         Describe how to use the GNAT driver to call a tool on a closure.
14563         Describe how to run project-wide checks or metrics.
14564         Document gnatbind's -R option
14565         Updated to account for Ada 2005 support
14566
14567         * gnat_rm.texi (Case Construction): Allow variable declarations for
14568         previously declared variables.
14569         (Representation Clauses and Pragmas): Lift restriction on alignment
14570         clauses for record types.
14571         (Ada.Characters.*): Fix typo in reference to A.3.3(27).
14572         Document No_Exception_Propagation restriction
14573         Document No_Body pragma
14574         Updated to account for Ada 2005 support; corrected some typos
14575         (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
14576
14577         * gnat-style.texi: Make it clear that we never use mode IN for
14578         procedures or functions
14579
14580         * ug_words: Add entries for -gnatw.x and -gnatw.X
14581         Add entries for -gnatw.c/.C
14582
14583 2007-06-06  Pascal Obry  <obry@adacore.com>
14584             Vincent Celier  <celier@adacore.com>
14585
14586         * makegpr.adb (Add_Archive_Path): Use untouched object and library
14587         dirs and library name.
14588         (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
14589         comments.
14590         (Build_Library): Idem.
14591         (Compile_Individual_Sources): Idem.
14592         (Compile_Link_With_Gnatmake): Idem.
14593         (Compile_Sources): Idem.
14594         (Get_Imported_Directories): Idem.
14595         (Link_Executables): Idem. Same change for the executable dir.
14596         (Check_Compilation_Needed): C_Source_Path new variable containing
14597         the canonical form of Source_Path to check against the source names
14598         in the dependency file.
14599         (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
14600         verbose mode, display the name of the object directory we're changing
14601         to.
14602         (Saved_Switches): New name of table X_Switches
14603         (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
14604         (Usage): New line for switch -aP
14605         (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
14606         testing if a directory should be added to the search path.
14607
14608 2007-06-06  Javier Miranda  <miranda@adacore.com>
14609
14610         * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
14611         a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
14612         declaration after freezing point of all its associated tagged types;
14613         otherwise such types are frozen too early.
14614
14615 2007-06-06  Robert Dewar  <dewar@adacore.com>
14616
14617         * a-reatim.adb: Documentation addition
14618
14619         * g-cgideb.adb: Minor code reorganization
14620
14621         * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
14622         mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
14623         s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
14624
14625         * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
14626         function.  Change name New_Scope to Push_Scope
14627         (Get_Debug_Flag_K): Remove unused obsolete function.
14628
14629         * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
14630         Push_Scope.
14631
14632         * makeusg.adb: Update Copyright notice
14633         Add line for switch -aP
14634
14635         * makeusg.adb: Fix wording of some usage messages
14636
14637         * s-assert.adb (Raise_Assert_Failure): Add call to
14638         Debug_Raise_Assert_Failure.
14639
14640         * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
14641         (2, Standard'Alignment) for compatibility with AAMP (where alignment
14642         is restricted to 1).
14643
14644         * s-wchjis.adb: Remove use of System.Pure_Exceptions
14645
14646         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
14647         node location to No_Location when we're not debugging the expanded
14648         code.
14649
14650 2007-05-22  Alexandre Oliva  <aoliva@redhat.com>
14651
14652         * misc.c (enumerate_modes): Consider log2_b to always be one.
14653
14654 2007-05-14  Rafael Ávila de Espíndola  <espindola@google.com>
14655
14656         * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
14657
14658 2007-05-02  Pascal Obry  <obry@adacore.com>
14659
14660         * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
14661         to use Stream_IO.File_Type. This is needed to make use of the UTF-8
14662         encoding support of Stream_IO.
14663         (Write_Unit): Idem.
14664
14665         * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
14666         filename and corresponding encoding to match the OS requirement.
14667         (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
14668         routine will fail on specific devices like CON: AUX: ...
14669
14670         PR ada/29856: Add missing braces
14671
14672 2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14673
14674         PR ada/31660
14675         * ada-tree.h (lang_tree_node): Fix typo in chain_next.
14676
14677 2007-04-21  Jan Hubicka  <jh@suse.cz>
14678
14679         * misc.c (gnat_expand_body): Don't call target for destructors,
14680         avoid redundant check on syntax errors.
14681
14682 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14683
14684         * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
14685         instead of checking GIMPLE_STMT_P in chain_next.
14686
14687 2007-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
14688
14689         PR ada/31576
14690         * system-linux-alpha.ads: Disable constant condition warning for the
14691         Default_Bit_Order variable.
14692         * system-linux-s390.ads: Likewise.
14693         * system-linux-s390x.ads: Likewise.
14694         * system-linux-sparc.ads: Likewise.
14695
14696 2007-04-06  Javier Miranda  <miranda@adacore.com>
14697             Matt Heaney  <heaney@adacore.com>
14698             Robert Dewar  <dewar@adacore.com>
14699
14700         a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
14701         a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
14702         a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
14703         a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
14704         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
14705         a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
14706         a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
14707         a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
14708         a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
14709         a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
14710         a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
14711         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
14712         a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
14713         a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
14714         a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
14715         a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
14716         a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
14717         i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
14718         unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
14719         a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
14720         a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
14721         a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
14722         expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
14723         s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
14724         s-taprop-tru64.adb, s-taprop-irix.adb,
14725         s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
14726         s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
14727         s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
14728         s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
14729         s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
14730         a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
14731         a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
14732         g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
14733         s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
14734         s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
14735         s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
14736         s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
14737         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
14738         s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
14739         a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
14740         a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
14741         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
14742         a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
14743         a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
14744         a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
14745         access types.
14746         Update documentation.
14747         Minor rewording.
14748
14749 2007-04-06  Robert Dewar  <dewar@adacore.com>
14750
14751         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
14752         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
14753         system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
14754         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
14755         system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
14756         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
14757         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
14758         system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
14759         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
14760         system-hpux-ia64.ads, targparm.adb,
14761         targparm.ads (Functions_Return_By_DSP_On_Target): Removed
14762
14763         * system.ads: Move Functions_Return_By_DSP to obsolete section,
14764         kept for bootstrap purposes only.
14765
14766 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
14767
14768         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
14769         s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
14770         s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
14771         (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
14772
14773 2007-04-06  Robert Dewar  <dewar@adacore.com>
14774
14775         * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
14776         (Local_Raise): New dummy procedure called when a raise is converted
14777         to a local goto. Used for debugger to detect that the exception
14778         is raised.
14779
14780         * debug.adb: Document new d.g flag (expand local raise statements to
14781         gotos even if pragma Restriction (No_Exception_Propagation) is not set)
14782
14783         * exp_sel.adb: Use Make_Implicit_Exception_Handler
14784
14785         * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
14786         suppress warnings for unused handlers.
14787         (Warn_If_No_Propagation):  Use new flag -gnatw.x to suppress
14788         warnings for raise statements not handled locally.
14789         (Get_RT_Exception_Entity): New function
14790         (Get_Local_Call_Entity): New function
14791         (Find_Local_Handler): New function
14792         (Warn_If_No_Propagation): New procedure
14793         (Expand_At_End_Handler): Call Make_Implicit_Handler
14794         (Expand_Exception_Handlers): Major additions to deal with local handlers
14795         (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
14796         Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
14797         for local raise
14798
14799         * exp_ch11.ads (Get_RT_Exception_Entity): New function
14800         (Get_Local_Call_Entity): New function
14801
14802         * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
14803         of restrictions that the binder will never suggest adding.
14804
14805         * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
14806         to No_Elist.
14807
14808         * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
14809         be with'ed in the presence of pragma Restriction
14810         (No_Exception_Propagation).
14811
14812         * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
14813
14814         * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
14815         parameter, then the handler is not a suitable target for a local raise,
14816         and this is a violation of restriction No_Exception_Propagation.
14817         (Analyze_Handled_Statements): Analyze choice parameters in exception
14818         handlers before analyzing statement sequence (needed for proper
14819         detection of local raise statements).
14820         (Analyze_Raise_Statement): Reraise statement is a violation of the
14821         No_Exception_Propagation restriction.
14822
14823         * s-rident.ads: Add new restriction No_Exception_Propagation
14824
14825         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
14826         function, like Make_Exception_Handler but sets Local_Raise_Statements
14827         to No_List.
14828         (Add_Unique_Serial_Number): Deal with case where this is called during
14829         processing of configuration pragmas.
14830
14831 2007-04-06  Thomas Quinot  <quinot@adacore.com>
14832             Pat Rogers  <rogers@adacore.com>
14833             Pascal Obry  <obry@adacore.com>
14834
14835         * g-stsifd-sockets.adb: New file.
14836
14837         * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
14838         g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
14839         g-socthi-vms.adb: Move signalling
14840         fd management to a nested package, so that they can conveniently be
14841         moved to a subunit that is shared across Windows, VMS, and VxWorks
14842         (Ada implementation) or completed with imported bodies from socket.c
14843         (UNIX case).
14844         (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
14845         subprograms.
14846         (Check_Selector): Use Read_Signalling_Fd to read and discard data from
14847         the signalling file descriptor.
14848         (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
14849         signalling file descriptor.
14850         (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
14851         instead of creating a pair of sockets for signalling here.
14852
14853         * g-socthi.adb: Ditto.
14854         Set the runtime process to ignore SIGPIPEs on platforms that support
14855         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
14856
14857         * g-socthi-mingw.adb: Ditto.
14858         (WS_Version): Use Windows 2.2.
14859         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
14860
14861         * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
14862         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
14863
14864         * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
14865         added GNAT byte swapping facility
14866         Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
14867
14868         * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
14869
14870         * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
14871         New subprograms.
14872         (__gnat_create_signalling_fds): New subprogram.
14873         Set the runtime process to ignore SIGPIPEs on platforms that support
14874         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
14875
14876 2007-04-06  Hristian Kirtchev  <kirtchev@adacore.com>
14877             Vincent Celier  <celier@adacore.com>
14878
14879         * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
14880         New version of Ada.Calendar which supports the new upper bound of Ada
14881         time (2399-12-31 86_399.999999999).
14882         The following modifications have been made to the package:
14883          - New representation of time as count of nanoseconds since the start of
14884            Ada time (1901-1-1 0.0).
14885          - Target independent Split and Time_Of routines which service both
14886            Ada 95 and Ada 2005 code.
14887          - Target independent interface to the Ada 2005 children of Calendar.
14888          - Integrated leap seconds into Ada 95 and Ada 2005 mode.
14889          - Handling of non-leap centenial years.
14890          - Updated clock function.
14891          - Updated arithmetic and comparison operators.
14892
14893         * a-caldel.adb (To_Duration): Add call to target independent routine in
14894         Ada.Calendar to handle the conversion of time to duration.
14895
14896         * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
14897         (UTC Offset).
14898         If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
14899         set off to 0.
14900         (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
14901         targets do not have a natural time zone, GMT is used as a default.
14902         (__gnat_get_task_options): New.
14903
14904         * a-direct.adb (Modification_Time): Add with and use clauses for
14905         Ada.Calendar and Ada.
14906         Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
14907         since it is no longer needed.
14908         (Duration_To_Time): Removed.
14909         (OS_Time_To_Long_Integer): Removed.
14910         (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
14911         Formatting Time_Of routines which automatically handle time zones,
14912         buffer periods and leap seconds.
14913
14914         * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
14915         target independent routines in Ada.Calendar.
14916
14917         * a-calfor.ads, a-calfor.adb:
14918         Code cleanup and addition of validity checks in various routines.
14919         (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
14920         Ada.Calendar.
14921
14922         * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
14923         independent routine in Ada.Calendar.
14924
14925 2007-04-06  Olivier Hainque  <hainque@adacore.com>
14926
14927         * adaint.c:
14928         (convert_addresses): Adjust prototype and dummy definition to expect an
14929          extra file_name argument.
14930
14931         * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
14932         filling the now expected file_name argument with the appropriate
14933         argv[0] expansion.
14934         (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
14935         (tracebk): Array of void * instead of char *, corresponding to what
14936          convert_addresses expects.
14937         (exename): New static global, to hold the executable file name to be
14938         used in all convert_addresses invocations.
14939         (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
14940         change.
14941         (__gnat_gmem_a2l_initialize): Resolve exename.
14942         (__gnat_convert_addresses): Use exename as the convert_addresses
14943         file_name argument.
14944
14945         * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
14946         "convert_addresses", now expecting a filename argument. Import the
14947         necessary entities to compute the filename to use and pass it to
14948         convert_addresses.
14949
14950 2007-04-06  Matt Gingell  <gingell@adacore.com>
14951
14952         * system-aix.ads: Back out previous change.
14953         (Functions_Return_By_DSP): Removed
14954
14955 2007-04-06  Pascal Obry  <obry@adacore.com>
14956
14957         * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
14958         or the monotonic used by Ada.Real_Time) to compute the sleep duration
14959         on Windows.
14960
14961 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
14962
14963         * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
14964         function. Its value changes in different VxWorks versions, and it is
14965         now handled by the function __gnat_get_task_options.
14966
14967         * s-taprop-vxworks.adb (Create_Task): Call the function
14968         __gnat_get_task_options to get the required options for creating a task.
14969
14970 2007-04-06  Pascal Obry  <obry@adacore.com>
14971             Thomas Quinot  <quinot@adacore.com>
14972
14973         * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
14974         dealing with filename.
14975         (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
14976         filename from a standard string to a wide-string depending on the
14977         encoding value.
14978         (__gnat_freopen): Idem.
14979         (__gnat_current_time): New function (wrapper for time(3) standard C
14980         function).
14981
14982         * g-os_lib.ads (Current_Time): New function. Returns the current
14983         system time as an OS_Time value.
14984
14985         * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
14986         (Monotonic_Clock): Same.
14987
14988 2007-04-06  Quentin Ochem  <ochem@adacore.com>
14989
14990         * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
14991         not on a natural.
14992         (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
14993
14994 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
14995
14996         * a-retide.adb: Add elaboration code to ensure that the tasking run
14997         time is initialized when using delay operations even when no task is
14998         created.
14999
15000 2007-04-06  Javier Miranda  <miranda@adacore.com>
15001
15002         * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
15003         component Num_Prim_Ops.
15004         (Set_Num_Prim_Ops): Removed.
15005         Remove all the assertions because all the routines of this
15006         package are inline always.
15007         (Get_Offset_Index): Add support to primary dispatch tables.
15008         Move the documentation about the dispatch table to a-tags.ads
15009         (Set_External_Tag): Removed
15010         (Inherit_TSD): Removed.
15011         (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
15012         moved to a-tags.ads
15013         (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
15014         Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
15015         of the TSD field "Table" because this field has been renamed to
15016         "Ifaces_Table".
15017         (Inherit_CPP_DT): Removed.
15018         (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
15019         Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
15020         declarations have been moved to a-tags.ads
15021         (Check_Size): Removed.
15022         (Expanded_Name): Updated to get access to the new field of TSD
15023         containing the address of the expanded name.
15024         (Get_Access_Level/Set_Access_Level): Removed.
15025         (Get_Predefined_Prim_Op_Address): Removed.
15026         (Set_Predefined_Prim_Op_Address): Removed.
15027         (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
15028         (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
15029         (Set_Expanded_Name): Removed.
15030         (Inherit_DT): Removed.
15031         (Inherit_CPP_DT): Removed.
15032         (Set_RC_Offset): Removed.
15033         (Set_TSD): Removed.
15034         (Base_Address): New function that displaces "this" to point to the base
15035         of the object (that is, to point to the primary tag of the object).
15036
15037 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15038             Javier Miranda  <miranda@adacore.com>
15039
15040         * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
15041         anonymous access component, do not create a master_id if type already
15042         has one, as may happen if the type is a subcomponent of a packed array
15043         type.
15044         (Build_Init_Procedure, Component_Needs_Simple_Initialization,
15045         Initialize_Tag): Remove code associated with the old CPP pragmas.
15046         CPP_Virtual and CPP_Vtable are no longer supported.
15047         (Build_Offset_To_Top_Internal): Add support for concurrent record types
15048         (Build_Offset_To_Top_Functions): Add support for concurrent record types
15049         (Freeze_Record_Type): Remove call to
15050         Init_Predefined_Interface_Primitives.
15051         (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
15052         code required to initialize the tags of the secondary dispatch tables.
15053         This leaves the algoritm more clear.
15054         (Init_Secondary_Tags): Add support for concurrent record types
15055         (Make_Predefined_Primitive_Specs): Code cleanup.
15056         (Predefined_Primitive_Bodies): Code cleanup.
15057         (Build_Master_Renaming): New local subprogram.
15058         (Expand_N_Full_Type_Declaration): Build the master_id associated with
15059         anonymous access to task type components.
15060         (Expand_N_Subtype_Indication): The bounds of a range constraint in a
15061         subtype indication are resolved during analysis, and must not be done
15062         here.
15063         (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
15064
15065 2007-04-06  Geert Bosch  <bosch@adacore.com>
15066             Ed Schonberg  <schonberg@adacore.com>
15067             Javier Miranda  <miranda@adacore.com>
15068             Bob Duff  <duff@adacore.com>
15069
15070         * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
15071         for conversion of a Float_Type'Truncation to integer.
15072
15073         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
15074         check if a node is an attribute that can be handled directly by the
15075         back end.
15076         (Expand_N_Attribute_Reference): Suppress expansion of floating-point
15077         attributes that can be handled directly by the back end.
15078         (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
15079         use new predicate Is_Access_Protected_Subprogram_Type.
15080         (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
15081         and Unchecked_Union if it is generated as part of the default  Output
15082         procedure for a type with default discriminants.
15083         (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
15084         if we are compiling under restriction No_Dispatching_Calls.
15085         (Constrained): Use Underlying_Type, in case the type is private without
15086         discriminants, but the full type has discriminants.
15087         (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
15088         call to Build_Get_Access_Level.
15089         (Expand_N_Attribute_Reference): The use of 'Address with class-wide
15090         interface objects requires a call to the run-time subprogram that
15091         returns the base address of the object.
15092         (Valid_Conversion): Improve error message on illegal attempt to store
15093         an anonymous access to subprogram value into a record component.
15094
15095         * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
15096         null".
15097         (Simplify_Type_Conversion): New procedure that performs simplification
15098         of Int_Type (Float_Type'Truncation (X)).
15099         (Resolve_Type_Conversion): Call above procedure after resolving operand
15100         and before performing checks. This replaces the existing ineffective
15101         code in Exp_Ch4.
15102         (Set_String_Literal_Subtype): When creating the internal static lower
15103         bound subtype for a string literal, use a newly created copy of the
15104         subtree representing the lower bound.
15105         (Resolve_Call): Exclude build-in-place function calls from transient
15106         scope treatment. Update comments to describe this exception.
15107         (Resolve_Equality_Op): In case of dispatching call check violation of
15108         restriction No_Dispatching_Calls.
15109         (Resolve_Call): If the call returns an array, the context imposes the
15110         component type of the array, and the function has one non-defaulted
15111         parameter, rewrite the call as the indexing of a call with a single
15112         parameter, to handle an Ada 2005 syntactic ambiguity for calls written
15113         in prefix form.
15114         (Resolve_Actuals): If an actual is an allocator for an access parameter,
15115         the master of the created object is the innermost enclosing statement.
15116         (Remove_Conversions): For a binary operator, check if type of second
15117         formal is numeric, to check if an abstract interpretation is present
15118         in the case of exponentiation as well.
15119
15120 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15121             Bob Duff  <duff@adacore.com>
15122
15123         * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
15124         copying a parameter list in a call, set properly the First_Named_Formal
15125         and Next_Named_Formal fields in the new list and in the enclosing call.
15126         (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
15127         names, to ease typing in the debugger. Improve comments.
15128         (Watch_Node): New variable, intended to be set in the debugger.
15129         (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
15130         called when the watched node is created.
15131         (New_Node_Debugging_Output): Combined version of local procedures
15132         New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
15133         with a parameter so that conditional breakpoints like "if Node = 12345"
15134         work.
15135         (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
15136         Add Elist1 function
15137
15138 2007-04-06  Thomas Quinot  <quinot@adacore.com>
15139             Ed Schonberg  <schonberg@adacore.com>
15140             Gary Dismukes  <dismukes@adacore.com>
15141
15142         * checks.ads, checks.adb (Selected_Range_Checks): No range check is
15143         required for a conversion between two access-to-unconstrained-array
15144         types.
15145         (Expr_Known_Valid): Validity checks do not apply to discriminants, but
15146         to discriminant constraints on discriminant objects. This rule must
15147         apply as well to discriminants of protected types in private components.
15148         (Null_Exclusion_Static_Checks): If No_Initialization is set on an
15149         object of a null-excluding access type then don't require the
15150         the object declaration to have an expression and don't emit a
15151         run-time check.
15152
15153 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
15154             Eric Botcazou  <botcazou@adacore.com>
15155
15156         * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
15157         and made constant.
15158
15159         * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
15160         Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
15161         carry any.
15162
15163         * fe.h (Compiler_Abort): Add third parameter.
15164
15165         * misc.c (internal_error_function): Build third argument from current
15166         input location and pass it to Compiler_Abort.
15167
15168 2007-04-06  Gary Dismukes  <dismukes@adacore.com>
15169
15170         * cstand.adb (Create_Standard): When the target's storage unit size is
15171         greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
15172         Standard_String.
15173
15174 2007-04-06  Nicolas Roche  <roche@adacore.com>
15175
15176         * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
15177         absolute path can have the following form: device:/a/b. In this case
15178         '/' should be inserted between the path and the filename.
15179
15180 2007-04-06  Olivier Hainque  <hainque@adacore.com>
15181             Eric Botcazou  <botcazou@adacore.com>
15182
15183         * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
15184         VAR_DECL to a CONST_DECL we make for a public constant when we know the
15185         corresponding definition has created the so made visible variable.
15186         Handle anonymous access to protected subprogram.
15187         (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
15188         object with an address clause volatile.  Re-enable original fix.
15189         <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
15190         too.
15191         (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
15192         associated with either the Equivalent or Root type, instead of the
15193         naked type node.
15194         (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
15195         subtree for every field of a global record type.
15196         (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
15197         discriminants, invoke again variable_size on its newly computed sizes.
15198
15199 2007-04-06  Robert Dewar  <dewar@adacore.com>
15200             Thomas Quinot  <quinot@adacore.com>
15201             Ed Schonberg  <schonberg@adacore.com>
15202             Bob Duff  <duff@adacore.com>
15203
15204         * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
15205         (Next_Component_Or_Discriminant): New function and procedure
15206         (First_Index, First_Literal, Master_Id,
15207         Set_First_Index, Set_First_Literal, Set_Master_Id):
15208         Add missing Ekind assertions.
15209         (Is_Access_Protected_Subprogram_Type): New predicate.
15210         (Has_RACW): New entity flag, set on package entities to indicate that
15211         the package contains the declaration of a remote accecss-to-classwide
15212         type.
15213         (E_Return_Statement): This node type has the Finalization_Chain_Entity
15214         attribute, in case the result type has controlled parts.
15215         (Requires_Overriding): Add this new flag, because "requires
15216         overriding" is subtly different from "is abstract" (see AI-228).
15217         (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
15218         Is_Abstract_Type. Make sure these are called only when appropriate.
15219         (Has_Pragma_Unreferenced_Objects): New flag
15220
15221         * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
15222         class-wide, the tag of the right-hand side must be an exact match, not
15223         an ancestor of that of the object on left-hand side.
15224         (Move_Activation_Chain): New procedure to create the call to
15225         System.Tasking.Stages.Move_Activation_Chain.
15226         (Expand_N_Extended_Return_Statement): Generate code to call
15227         System.Finalization_Implementation.Move_Final_List at the end of a
15228         return statement if the function's result type has controlled parts.
15229         Move asserts to Build_In_Place_Formal.
15230         (Move_Final_List): New function to create the call statement.
15231         (Expand_N_Assignment_Statement): In case of assignment to a class-wide
15232         tagged type, replace generation of call to the run-time subprogram
15233         CW_Membership by call to Build_CW_Membership.
15234         (Expand_N_Return_Statement): Replace generation of call to the run-time
15235         subprogram Get_Access_Level by call to Build_Get_Access_Level.
15236         (Expand_N_Simple_Function_Return): Replace generation of call to the
15237         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
15238
15239         * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
15240         Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
15241         access to protected operations.
15242         (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
15243         master and chain actual parameters to a build-in-place function call
15244         involving tasks.
15245         (BIP_Formal_Suffix): Add new enumeration literals to complete the case
15246         statement.
15247         (Make_Build_In_Place_Call_In_Allocator,
15248         Make_Build_In_Place_Call_In_Anonymous_Context,
15249         Make_Build_In_Place_Call_In_Assignment,
15250         Make_Build_In_Place_Call_In_Object_Declaration): Call
15251         Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
15252         (Expand_Inlined_Call): If the subprogram is a null procedure, or a
15253         stubbed procedure with a null body, replace the call with a null
15254         statement without using the full inlining machinery, for efficiency
15255         and to avoid invalid values in source file table entries.
15256
15257         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
15258         renamings of calls to build-in-place functions.
15259
15260         * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
15261         provides the functionality of RTE_Available to record components.
15262         (RTU_Entity): The function Entity has been renamed to RTU_Entity
15263         to avoid undesired overloading.
15264         (Entity): New subprogram that returns the entity for the referened
15265         unit. If this unit has not been loaded, it returns Empty.
15266         (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
15267         Remove no longer used entities.
15268         (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
15269         (RE_Type_Specific_Data): New entity.
15270         (RE_Move_Any_Value): New entity.
15271         (RE_TA_A, RE_Get_Any_Type): New entities.
15272         (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
15273          RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
15274          RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
15275         (Entity): New subprogram that returns the entity for the referened
15276         unit. If this unit has not been loaded, it returns Empty.
15277         (RTE): Addition of a new formal that extends the search to the scopes
15278         of the record types found in the chain of the package.
15279
15280         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
15281         "abstract subprograms must be visible" message, whether or not the type
15282         is an interface; that is, remove the special case for interface types.
15283         (Analyze_Function_Return): Remove error message "return of task objects
15284         is not yet implemented" because this is now implemented.
15285         (Create_Extra_Formals): Add the extra master and activation chain
15286         formals in case the result type has tasks.
15287         Remove error message "return of limited controlled objects is not yet
15288         implemented".
15289         (Create_Extra_Formals): Add the extra caller's finalization list formal
15290         in case the result type has controlled parts.
15291         (Process_Formals): In case of access formal types there is no need
15292         to continue with the analysis of the formals if we already notified
15293         errors.
15294         (Check_Overriding_Indicator): Add code to check overriding of predefined
15295         operators.
15296         (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
15297         flags for formals that do not require them,.
15298         (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
15299         hidden entity is use visible or directly visible.
15300         (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
15301         Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
15302         Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
15303         New_Overloaded_Entity): Split Is_Abstract flag into
15304         Is_Abstract_Subprogram and Is_Abstract_Type.
15305
15306         * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
15307         a return statement's finalization list to the caller's list, used for
15308         build-in-place functions with result type with controlled parts.
15309         Remove no longer used entities.
15310
15311         * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
15312         longer needed, because the full type is now limited, and therefore a
15313         pass-by-reference type.
15314         (Foreign_Task_Level): New constant.
15315
15316         * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
15317         move tasks from the activation chain belonging to a return statement to
15318         the one passed in by the caller, and update the master to the one
15319         passed in by the caller.
15320         (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
15321         of unactivated tasks, so we don't kill the ones that are being returned
15322         by a build-in-place function.
15323         (Create_Task): Ignore AI-280 for foreign threads.
15324
15325 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15326             Robert Dewar  <dewar@adacore.com>
15327             Bob Duff  <duff@adacore.com>
15328             Gary Dismukes  <dismukes@adacore.com>
15329
15330         * errout.adb (Unwind_Internal_Type): Use predicate
15331         Is_Access__Protected_Subprogram_Type.
15332
15333         * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
15334         (Freeze_Entity, packed array case): Do not override explicitly set
15335         alignment and size clauses.
15336         (Freeze_Entity):  An entity declared in an outer scope can be frozen if
15337         the enclosing subprogram is a child unit body that acts as a spec.
15338         (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
15339         (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
15340         Remove all code for DSP option
15341
15342         * layout.adb (Layout_Record_Type): Use First/
15343         Next_Component_Or_Discriminant
15344         (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
15345         to handle properly the anonymous access case.
15346
15347         * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
15348         for all access attributes, because overload resolution should work the
15349         same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
15350         causes the error message for the ambiguous "X'Access = Y'Access" and
15351         "X'Unrestricted_Access = Y'Access" and so forth to match.
15352         (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
15353         now that anonymous access to protected operations have their own kind.
15354         (Resolve_Attribute): In case of dispatching call check the violation of
15355         restriction No_Dispatching_Calls.
15356         (Check_Array_Type): Check new -gnatyA array index style option
15357
15358         * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
15359         attempt to derive from a synchronized tagged type.
15360         (Analyze_Type_Declaration): If there is a incomplete tagged view of the
15361         type, inherit the class-wide type already created, because it may
15362         already have been used in a self-referential anonymous access component.
15363         (Mentions_T): Recognize self-referential anonymous access components
15364         that use (a subtype of) the class-wide type of the enclosing type.
15365         (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
15366         Derived_Type for Prev formal on call to
15367         Check_Anonymous_Access_Components rather than Empty.
15368         (Make_Incomplete_Type_Declaration): Add test for case where the type has
15369         a record extension in deciding whether to create a class-wide type,
15370         rather than just checking Tagged_Present.
15371         (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
15372         to stand-alone object declarations as well as component declarations.
15373         (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
15374         prevent accidental overwriting when enclosing package appears in
15375         a limited_with_clause.
15376         (Array_Type_Declaration): If the component type is an anonymous access,
15377         the associated_node for the itype is the type declaration itself.
15378         (Add_Interface_Tag_Components): Modified to support concurrent
15379         types with abstract interfaces.
15380         (Check_Abstract_Interfaces): New subprogram that verifies the ARM
15381         rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
15382         (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
15383         to complete the decoration of synchronized interface types. Add also
15384         a call to Check_Abstract_Interfaces to verify the ARM rules.
15385         (Derive_Interface_Subprograms): Modified to support concurrent types
15386         with abstract interfaces.
15387         (Analyze_Subtype_Indication): Resolve the range with the given subtype
15388         mark, rather than delaying the full resolution depending on context.
15389         (Analyze_Component_Declaration,Analyze_Interface_Declaration,
15390         Analyze_Object_Declaration,Analyze_Subtype_Declaration,
15391         Array_Type_Declaration,Build_Derived_Record_Type,
15392         Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
15393         Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
15394         Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
15395         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
15396         called only when appropriate.
15397         (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
15398         to private type.
15399         (Analyze_Subtype_Declaration): For an access subtype declaration, create
15400         an itype reference for the anonymous designated subtype, to prevent
15401         scope anonmalies in gigi.
15402         (Build_Itype_Reference): New utility, to simplify construction of such
15403         references.
15404
15405 2007-04-06  Vincent Celier  <celier@adacore.com>
15406
15407         * errutil.adb (Initialize): Initialize warnings table, if all warnings
15408         are suppressed, supply an initial dummy entry covering all possible
15409         source locations.
15410
15411         * make.adb (Scan_Make_Arg): Reject options that should start with "--"
15412         and start with only one, such as "-RTS=none".
15413         (Collect_Arguments): Do not check for sources outside of projects.
15414         Do not collect arguments if project is externally built.
15415         (Compile_Sources): Do nothing, not even check if the source is up to
15416         date, if its project is externally built.
15417         (Compile): When compiling a predefined source, add -gnatpg
15418         as the second switch, after -c.
15419         (Compile_Sources): Allow compilation of Annex J renames without -a
15420         (Is_In_Object_Directory): Check if the ALI file is in the object
15421         even if there is no project extension.
15422         (Create_Binder_Mapping_File): Only put a unit in the mapping file for
15423         gnatbind if the ALI file effectively exists.
15424         (Initialize): Add the directory where gnatmake is invoked in front of
15425         the path if it is invoked from a bin directory, even without directory
15426         information, so that the correct GNAT tools will be used when spawned
15427         without directory information.
15428
15429         * makeusg.adb: Change switch -S to -eS
15430         Add lines for new switches -we, -wn and -ws
15431         Add line for new switch -p
15432
15433         * prj-proc.adb (Process): Set Success to False when Warning_Mode is
15434         Treat_As_Error and there are warnings.
15435
15436         * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
15437         -gnatww Change gnatmake switch -S to -eS
15438         (Scan_Make_Switches): Code reorganisation. Process separately multi
15439         character switches and single character switches.
15440         (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
15441         False when switch is not recognized by gnatmake.
15442         (Scan_Make_Switches): Set Setup_Projects True when -p or
15443         --create-missing-dirs is specified.
15444
15445         * fname.adb (Is_Predefined_File_Name): Return True for annex J
15446         renamings Calendar, Machine_Code, Unchecked_Conversion and
15447         Unchecked_Deallocation only when Renamings_Included is True.
15448
15449         * par.adb: Allow library units Calendar, Machine_Code,
15450         Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
15451         when -gnatg is not specified.
15452         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
15453         there is no need to generate always a record_definition_node in case
15454         of synchronized interface types.
15455         (SIS_Entry_Active): Initialize global variable to False
15456         (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
15457         indicate cases where AI-447 says "not null" is legal.
15458
15459         * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
15460
15461         * makegpr.adb (Check_Compilation_Needed): Take into account dependency
15462         files with with several lines starting with the object fileb name.
15463         (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
15464         is specified.
15465         (Initialize): Add the directory where gprmake is invoked in front of the
15466         path, if it is invoked from a bin directory or with directory
15467         information, so that the correct GNAT tools will be used when invoked
15468         directly.
15469         (Check_Compilation_Needed): Process correctly backslashes on Windows.
15470
15471         * vms_data.ads: Update switches/qualifiers
15472
15473 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15474             Thomas Quinot  <quinot@adacore.com>
15475
15476         * exp_aggr.adb:
15477         If the array component is a discriminated record, the array aggregate
15478         is non-static even if the component is given by an aggregate with
15479         static components.
15480         (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
15481         (Convert_Aggr_In_Allocator): If the allocator is for an access
15482         discriminant and the type is controlled. do not place on a finalization
15483         list at this point. The proper list will be determined from the
15484         enclosing object.
15485         (Build_Record_Aggr_Code): If aggregate has box-initialized components,
15486         initialize record controller if needed, before the components, to ensure
15487         that they are properly finalized.
15488         (Build_Record_Aggr_Code): For the case of an array component that has a
15489         corresponding array aggregate in the record aggregate, perform sliding
15490         if required.
15491
15492 2007-04-06  Javier Miranda  <miranda@adacore.com>
15493             Gary Dismukes  <dismukes@adacore.com>
15494             Ed Schonberg  <schonberg@adacore.com>
15495
15496         * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
15497         run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
15498
15499         * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
15500         accessibility on class-wide allocators if the allocator occurs at the
15501         same scope level as the allocator's type. The check is guaranteed to
15502         succeed in that case, even when the expression originates from a
15503         parameter of the containing subprogram.
15504         (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
15505         under No_Dispatching_Calls restriction. During the semantic analysis
15506         we already notified such violation.
15507         (Tagged_Membership): Constant folding. There is no need to check
15508         the tag at run-time if the type of the right operand is non
15509         class-wide abstract.
15510         Replace call to Is_Ancestor by call to Is_Parent
15511         to support concurrent types with interface types.
15512         (Expand_N_Allocator): Add an assertion associated with the generation
15513         of the master_id.
15514         (Expand_N_Slice): Do not enable range check to nodes associated
15515         with the frontend expansion of the dispatch table.
15516         (Is_Local_Access_Discriminant): Subsidiary function to
15517         Expand_N_Allocator.
15518         (Tagged_Membership): Replace generation of call to the run-time
15519         subprogram CW_Membership by call to Build_CW_Membership.
15520         (Expand_Allocator_Expression): Replace generation of call to the
15521         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
15522
15523         * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
15524         initialize most the TSD components by means of an aggregate.
15525         Modify the declaration of the object containing the TSD
15526         because we now expand code that has a higher level of abstraction.
15527         The TSD has a discriminant containing the Inheritance Depth Level,
15528         value that is used in the membership test but also to fix the size
15529         of the table of ancestors.
15530         (Expand_Interface_Conversion): Insert function body at the closest place
15531         to the conversion expression, to prevent access-before-elaboration
15532         errors in the backend.
15533         Code improved to reduce the size of the dispatch table if
15534         compiling under restriction No_Dispatching_Calls plus code cleanup.
15535         Code reorganization plus removal of calls to Set_Num_Prim_Ops
15536         (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
15537         (Expand_Dispatching_Call): Minor code reorganization plus addition of
15538         code to return immediately if compiling under No_Dispatching_Calls
15539         restriction.
15540         (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
15541         CPP_Virtual and CPP_Vtable are no longer supported.
15542         (Expand_Interface_Conversion): Add missing support for interface type
15543         derivations.
15544         (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
15545         Is_Parent to support concurrent types with interfaces.
15546         (Init_Predefined_Interface_Primitives): Removed.
15547         (Make_Secondary_DT): Modified to support concurrent record types.
15548         (Set_All_DT_Position): Modified to support concurrent record types.
15549         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
15550         with Get_External_Tag, Inherit_TSD, Set_External_Tag.
15551         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
15552         with CW_Membership.
15553         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
15554         with Get_Access_Level, Get_Predefined_Prim_Op_Address,
15555         Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
15556         Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
15557         Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
15558         (Expand_Dispatching_Call): Replace generation of call to the run-time
15559         subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
15560         calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
15561         Address.
15562         (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
15563         the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
15564         Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
15565         Build_Set_Prim_Op_Address.
15566         (Get_Remotely_Callable): Subprogram removed.
15567         (Init_Predefined_Interface_Primitives): Replace generation of call to
15568         the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
15569         Prims.
15570
15571         * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
15572         First (Parameter_Associations ()) with the call to First_Actual that
15573         returns an actual parameter expression for both named and positional
15574         associations.
15575
15576         * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
15577         check violation of restriction No_Dispatching_Calls.
15578         (Check_Controlling_Type): A formal of a tagged incomplete type is a
15579         controlling argument.
15580
15581         * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
15582         First/Next_Component_Or_Discriminant
15583         (Insert_Actions): Add entries for new N_Push and N_Pop nodes
15584         (Find_Implemented_Interface): Removed. All the calls to this subprogram
15585         specify Any_Limited_Interface, and this functionality is already
15586         provided by the function Has_Abstract_Interfaces.
15587         (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
15588         support concurrent types implementing interfaces.
15589         (Find_Implemented_Interface): Removed. All the calls to this subprogram
15590         specify kind Any_Limited_Interface, and this functionality is already
15591         provided by the function Has_Abstract_Interfaces.
15592         (Remove_Side_Effects): replace Controlled_Type by
15593         CW_Or_Controlled_Type whenever the issue is related to
15594         using or not the secondary stack.
15595
15596         * par-ch12.adb (P_Formal_Type_Definition): Update calls to
15597         P_Interface_Type_Definition to fulfill the new interface (the formal
15598         Is_Synchronized is no longer required).
15599
15600         * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
15601         Update dependencies.
15602
15603         * exp_atag.ads, exp_atag.adb: New file
15604
15605 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15606             Bob Duff  <duff@adacore.com>
15607             Cyrille Comar  <comar@adacore.com>
15608
15609         * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
15610         anonymous, use finalization list of enclosing dynamic scope.
15611         (Expand_N_Package_Declaration): For a library package declaration
15612         without a corresponding body, generate RACW subprogram bodies in the
15613         spec (just as we do for the task activation call).
15614         (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
15615         Is_Abstract_Type. Make sure these are called only when appropriate.
15616         Remove all code for DSP option
15617         (CW_Or_Controlled_Type): new subprogram.
15618
15619 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
15620             Ed Schonberg  <schonberg@adacore.com>
15621             Gary Dismukes  <dismukes@adacore.com>
15622
15623         * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
15624         parameter. If it is set to true, return a result capped according to
15625         the global upper bound for the index of an entry family.
15626         (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
15627         (Build_Find_Body_Index): Adjust for above change.
15628         (Entry_Index_Expression): Likewise.
15629         (Is_Potentially_Large_Family): New function extracted from...
15630         (Collect_Entry_Families): ...here. Call it to detect whether the family
15631         is potentially large.
15632         (Build_Entry_Count_Expression): If the family is potentially large, call
15633         Family_Size with 'Cap' set to true.
15634         (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
15635         a protected version of an operation declared in the private part of
15636         a protected object, because they may be invoked through a callback.
15637         (Set_Privals): If the type of a private component is an anonymous access
15638         type, do not create a new itype for each protected body.
15639         If the body of a protected operation creates
15640         controlled types (including allocators for class-widetypes), the
15641         body of the corresponding protected subprogram must include a
15642         finalization list.
15643         (Build_Activation_Chain_Entity): Build the chain entity for extended
15644         return statements.
15645         (Type_Conformant_Parameters): Use common predicate Conforming_Types
15646         to determine whether operation overrides an inherited primitive.
15647         (Build_Wrapper_Spec): Add code to examine the parents while looking
15648         for a possible overriding candidate.
15649         (Build_Simple_Entry_Call): Set No_Initialization on the object used to
15650         hold an actual parameter value since its initialization is separated
15651         from the the declaration. Prevents errors on null-excluding access
15652         formals.
15653
15654 2007-04-06  Thomas Quinot  <quinot@adacore.com>
15655             Pablo Oliveira  <oliveira@adacore.com>
15656
15657         * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
15658         Do an Unchecked_Conversion to handle the passage from the Underlying
15659         Type to the Base Type when calling Build_To_Any_Call and
15660         Build_From_Any_Call.
15661         (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
15662         E_Constant, depending upon Variable formal.
15663         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
15664         PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
15665         parameter that requires an extra constrained parameter, declare
15666         temporary for actual as a variable, not a constant.
15667         (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
15668         the unit being compiled is the one that contains the stub type.
15669         Change primitive operation name for the RACW associated with a RAS
15670         from Call to _Call so it cannot clash with any legal identifier.
15671         (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
15672         Is_RAS.
15673         (Append_RACW_Bodies): New subprogram.
15674         (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
15675         Add_Receiving_Stubs_To_Declarations functions.
15676         When expanding a package body, this list correspond to the
15677         statements in the HSS at the end of the pacakge.
15678         When expanding a package spec, this list correspond to the
15679         spec declarations.
15680         (Add_Receiving_Stubs_To_Declarations): Append the function
15681         registering the receiving stubs at the end of the 'Stmts' list.
15682         (RCI_Package_Locator): Pass the new Version generic formal when
15683         instantiating a RCI_Locator package.
15684         (Build_From_Any_Function): To compute the High bound for an
15685         unconstrained array actual, we add the Low bound with the length.
15686         Thus we must convert the low bound and the length to an appropriate
15687         type before doing the sum.
15688         (Build_Subprogram_Receiving_Stubs, PolyORB):
15689          * Retrieve the extra formals parameters at the
15690            end of the parameter stream.
15691          * Use Move_Any_Value to write back out parameters
15692            after executing the request as it is more efficient
15693            than Copy_Any_Value.
15694          * Build the any containing Extra Formals with the
15695            appropriate typecode.
15696         (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
15697         empty Component_List.
15698         (Build_Actual_Object_Declaration): New subprogram. Build and insert into
15699         the tree the declaration for an object that serves as actual parameter
15700         in server-side stubs.
15701         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
15702         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
15703         Use Build_Actual_Object_Declaration to prepare the actuals.
15704         (Add_Parameter_To_NVList): Set the parameter mode to In for
15705         Extra Constrained Parameters.
15706         (Build_General_Calling_Stubs): Set the parameter type to boolean for
15707         Extra Constrained parameters.
15708         (Build_To_Any_Function, Build_From_Any_Function,
15709         Built_TypeCode_Function): When Typ is implicit, call the correct
15710         function with the first not implicit parent type.
15711         (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
15712         (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
15713         typecode from the Etype. Therefore we retrieve the correct typecode
15714         with a call to Get_Any_Type.
15715         (Copy_Specification): Do controlling formal type substitution based on
15716         Is_Controlling_Formal flag, instead of caller-provided object type.
15717         (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
15718         a RACW primitive operation, we might get a subprogram declaration for an
15719         ancestor of the RACW designated type (not for the designated type
15720         itself), in the case where this operation is inherited. In this case we
15721         have no easy means of determining the original tagged type for which
15722         the primitive was declared, so instead we now rely on
15723         Copy_Specification to use the Is_Controlling_Formal flag to determine
15724         which formals require type substitution.
15725
15726 2007-04-06  Robert Dewar  <dewar@adacore.com>
15727             Ed Schonberg  <schonberg@adacore.com>
15728
15729         * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
15730         GNAT.Current_Exception are not allowed if pragma Restrictions
15731         (No_Exception_Propagation) is set and in any case make the associated
15732         handler unsuitable as a target for a local raise statement.
15733         (Expand_Dispatching_Constructor_Call): Replace generation of call to the
15734         run-time subprogram CW_Membership by call to Build_CW_Membership.
15735         (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
15736         by a function call, a temporary must be created before expanding the
15737         Constructor_Call itself, to prevent out-of-order elaboration in the
15738         back-end when stack checking is enabled..
15739
15740 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15741
15742         * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
15743         result are the bounds of the left operand, not the right.
15744
15745 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15746
15747         * exp_strm.adb
15748         (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
15749          discriminant defaults.
15750         (Build_Record_Or_Elementary_Output_Procedure): Ditto.
15751         (Make_Component_List_Attributes): Ditto.
15752
15753 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15754             Bob Duff  <duff@adacore.com>
15755
15756         * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
15757         an association with a box as providing a value even though the
15758         initialization procedure for the type is not available.
15759         (Resolve_Record_Aggregate): Check that a choice of an association with a
15760         box corresponds to a component of the type.
15761         (Resolve_Record_Aggregate): Split Is_Abstract flag into
15762         Is_Abstract_Subprogram and Is_Abstract_Type.
15763
15764         * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
15765         assert.
15766
15767         * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
15768         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
15769         called only when appropriate.
15770
15771 2007-04-06  Olivier Hainque  <hainque@adacore.com>
15772
15773         * g-alleve.ads (Low Level Vector type definitions): Map each to the
15774         associated vector view instead of all to the unsigned char view.
15775
15776         * g-altcon.adb (Generic_Conversions): New internal generic package,
15777         offering facilities for all the Vector/View conversion routines
15778         implemented by this unit.
15779         (To_View/To_Vector - all versions): Reimplemented in a systematic
15780         manner, using the internal Generic_Conversions facilities.
15781
15782 2007-04-06  Pascal Obry  <obry@adacore.com>
15783
15784         * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
15785         string.
15786         (Create): Free the source string before storing the new one.
15787
15788 2007-04-06  Vincent Celier  <celier@adacore.com>
15789
15790         * g-debpoo.adb (Validity): New package with a complete new
15791         implementation of subprograms Is_Valid and Set_Valid.
15792         (Is_Valid): Move to local package Validity
15793         (Set_Valid): Move to local package Validity
15794
15795 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
15796             Pablo Oliveira  <oliveira@adacore.com>
15797
15798         * g-expect.adb (Get_Command_Output): When expanding the output buffer
15799         we must ensure that there is enough place for the new data we are going
15800         to copy in.
15801
15802 2007-04-06  Thomas Quinot  <quinot@adacore.com>
15803
15804         * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
15805         computation.
15806
15807 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
15808             Vincent Celier  <celier@adacore.com>
15809
15810         * gnatcmd.adb (B_Start): Add prefix of binder generated file.
15811         (Stack_String): Add this String that contains the name of the Stack
15812         package in the project file.
15813         (Packages_To_Check_By_Stack): Add this list that contains the packages
15814         to be checked by gnatstack, which are the naming and the stack packages.
15815         (Check_Files): If no .ci files were specified for gnatstack we add all
15816         the .ci files belonging to the projects, including binder generated
15817         files.
15818         (Non_VMS_Usage): Document that gnatstack accept project file switches.
15819         (GNATCmd): Update the B_Start variable if we are in a VMS environment.
15820         Add gnatstack to the list of commands that use project file related
15821         switches, and get the single attribute Switches from the stack package
15822         in a project file when calling gnatstack. Parse the -U flag for
15823         processing files belonging to all projects in the project tree.
15824         Remove all processing for command Setup
15825
15826         * prj-attr.adb: Add new package Stack with single attribute Switches
15827
15828         * vms_conv.ads (Command_Type): Add command Stack.
15829         Move to body declarations that are only used in the body: types Item_Id,
15830         Translation_Type, Item_Ptr, Item and its subtypes.
15831
15832         * vms_conv.adb: (Initialize): Add data for new command Stack.
15833         Add declarations moved from the spec: types Item_Id, Translation_Type,
15834         Item_Ptr, Item and its subtypes.
15835         (Cargs_Buffer): New table
15836         (Cargs): New Boolean global variable
15837         (Process_Buffer): New procedure to create arguments
15838         (Place): Put character in table Buffer or Cargs_Buffer depending on the
15839          value of Cargs.
15840         (Process_Argument): Set Cargs when processing qualifiers for GNAT
15841         COMPILE
15842         (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
15843         empty, for table Cargs_Buffer.
15844         (Initialize): Remove component Setup in Command_List
15845
15846 2007-04-06  Vincent Celier  <celier@adacore.com>
15847
15848         * gprep.adb (Process_Files.Process_One_File): Use full file name when
15849         issuing pragma Source_Reference.
15850
15851 2007-04-06  Emmanuel Briot  <briot@adacore.com>
15852
15853         * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
15854         [[:xdigit:]] character class.
15855         Also raise an exception when an invalid character class is used.
15856
15857 2007-04-06  Pascal Obry  <obry@adacore.com>
15858
15859         * i-cstrea.ads: (fopen): Add encoding parameter.
15860         (freopen): Idem.
15861         Change reference from a-sysdep.c to sysdep.c in comment.
15862         Update copyright notice.
15863         This set of patch add support for the encoding form parameter.
15864
15865         * mingw32.h (S2WSU): New macro to convert from a string to a
15866         wide-string using the UTF-8 encoding. The S2WS macro supports now only
15867         standard 8bits encoding.
15868         (WS2SU): As above but converting from wide-sring to string.
15869         This is needed as it is necessary to have access to both versions in the
15870         runtime for the form parameter encoding support.
15871         This set of patch add support for the encoding form parameter.
15872         (S2WS): Improve implementation to handle cases where the filename is not
15873         UTF-8 encoded. In this case we default to using the current code page
15874         for the conversion.
15875
15876         * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
15877         type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
15878         the constants defined in adaint.h.
15879         (fopen): Add encoding parameter.
15880         (freopen): Idem.
15881
15882         * s-ficobl.ads (AFCB): Add Encoding field to record the filename
15883         encoding. This is needed for the Reset routine (freopen low level-call).
15884
15885         * s-fileio.adb (Open): Decode encoding form parameter and set the
15886         corresponding encoding value into AFCB structure.
15887         (Reset): Pass the encoding value to freopen.
15888         (Close): Move the call to Lock_Task to the beginning of the procedure.
15889
15890 2007-04-06  Geert Bosch  <bosch@adacore.com>
15891             Robert Dewar  <dewar@adacore.com>
15892
15893         * i-fortra.ads: Add Double_Complex type.
15894
15895         * impunit.adb: (Is_Known_Unit): New function
15896         Add Gnat.Byte_Swapping
15897         Add GNAT.SHA1
15898         Add new Ada 2005 units
15899         Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
15900         Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
15901         Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
15902         Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
15903
15904         * impunit.ads (Is_Known_Unit): New function
15905
15906         * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
15907         a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
15908         a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
15909         g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
15910         s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
15911         s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
15912         New files.
15913
15914         * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
15915
15916         * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
15917
15918 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
15919             Arnaud Charlet  <charlet@adacore.com>
15920
15921         * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
15922         __gnat_adjust_context_for_raise.
15923         (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
15924         implementation of floating point operations as native x86 targets.
15925         So the FPU should be initialized in the same way using finit. Fix
15926         floating point operations accuracy issues.
15927         (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
15928         member in struct sigaction, so as to avoid warning for incompatible
15929         pointer types.
15930
15931 2007-04-06 Serguei Rybin  <rybin@adacore.com>
15932
15933         * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
15934         switches from previously loaded tree
15935
15936 2007-04-06  Thomas Quinot  <quinot@adacore.com>
15937
15938         * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
15939         cases where a given dependency has a body or not.
15940         (Write_With_File_Names): New subprogram, common code for the two cases
15941         above.
15942
15943 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15944             Javier Miranda  <miranda@adacore.com>
15945
15946         * lib-xref.ads, lib-xref.adb:
15947         Modify the loop that collects type references, to include interface
15948         types that the type implements. List each of these interfaces when
15949         building the entry for the type.
15950         (Generate_Definition): Initialize component Def and Typ of new entry
15951         in table Xrefs, to avoid to have these components unitialized.
15952         (Output_References): Split Is_Abstract flag into
15953         Is_Abstract_Subprogram and Is_Abstract_Type.
15954         (Generate_Reference): Add barrier to do not generate the warning
15955         associated with Ada 2005 entities with entities generated by the
15956         expander.
15957
15958 2007-04-06  Robert Dewar  <dewar@adacore.com>
15959             Arnaud Charlet  <charlet@adacore.com>
15960             Vincent Celier  <celier@adacore.com>
15961
15962         * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
15963         Update 'Exception Handling Control' chapter which was outdated.
15964         Minor fix to documentation of -gnatwq
15965         Remove section "Adapting the Run Time to a New C++ Compiler" because
15966         it is now obsolete.
15967         Add passage on need of -nostart-files in some non-ada-main cases.
15968         Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
15969         Update documentation about Interfacing with C++
15970         Add documentation for new gnatmake switch -p
15971         Add missing protocol part in URLs.
15972         Document -gnatyA
15973         Document pragma Compile_Time_Error
15974         Add documentation for Object_Size indicating that stand alone
15975         objects can have a larger size in some cases.
15976         Add node for GNAT.Byte_Swapping, GNAT.SHA1
15977         Update reference to the Ravenscar profile.
15978         Document pragma Unreferenced_Objects
15979
15980         * gnat-style.texi: Fix typo
15981
15982 2007-04-06  Vincent Celier  <celier@adacore.com>
15983
15984         * mlib.adb (Building_Library): Only output "building a library..." in
15985         verbose mode
15986
15987         * mlib-prj.adb (Build_Library): Only output lists of object and ALI
15988         files in verbose mode.
15989
15990         * mlib-utl.adb (Ar): Only output the first object files when not in
15991         verbose mode.
15992         (Gcc): Do not display all the object files if not in verbose mode, only
15993         the first one.
15994
15995 2007-04-06  Robert Dewar  <dewar@adacore.com>
15996
15997         * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
15998         it no longer destroys the contents of Name_Buffer or Name_Len and
15999         non-standard and invalid names are handled better.
16000         (Get_Decoded_Name_String): Improve performance by using
16001         Name_Has_No_Encodings flag in the name table.
16002         (Is_Valid_Name): New function to determine whether a Name_Id is valid.
16003         Used for debugging printouts.
16004
16005 2007-04-06  Robert Dewar  <dewar@adacore.com>
16006             Javier Miranda  <miranda@adacore.com>
16007             Bob Duff  <duff@adacore.com>
16008
16009         * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
16010         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
16011         there is no need to generate always a record_definition_node in case
16012         of synchronized interface types.
16013         (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
16014         (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
16015         illegal in Ada 95, in cases where it is legal. Change the warnings to
16016         errors in other cases. Don't give the error unless the "not null"
16017         parses properly. Correct the source position at which the error occurs.
16018         (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
16019         P_Null_Exclusion, to suppress "not null" warnings.
16020         (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
16021         associated goto statements.
16022
16023         * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
16024         of END RECORD
16025
16026         * scans.ads (Type_Token_Location): New flag
16027
16028         * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
16029         (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
16030         P_Null_Exclusion, to suppress "not null" warnings.
16031
16032 2007-04-06  Robert Dewar  <dewar@adacore.com>
16033             Javier Miranda  <miranda@adacore.com>
16034             Bob Duff  <duff@adacore.com>
16035             Vincent Celier  <celier@adacore.com>
16036
16037         * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
16038         (Extensions_Allowed): No longer sets Ada_Version
16039         Entry for pragma Unreferenced_Objects
16040
16041         * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
16042         system.tasking if pragma priority used in a procedure
16043         (Analyze_Pragma, case Warning): Handle dot warning switches
16044         (Process_Compile_Time_Warning_Or_Error): New procedure
16045         (Analyze_Pragma): Add processing for Compile_Time_Error
16046         Add support for extra arguments External_Name and Link_Name.
16047         Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
16048         (Process_Import_Or_Interface): Add support for the use of pragma Import
16049         with tagged types.
16050         (Extensions_Allowed): No longer affects Ada_Version
16051         (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
16052         Is_Abstract_Type. Make sure these are called only when appropriate.
16053         Add processing for pragma Unreferenced_Objects
16054
16055         * snames.h, snames.ads, snames.adb: Add entry for pragma
16056         Compile_Time_Error
16057         Add new standard name Minimum_Binder_Options for new gprmake
16058         Add new standard names for gprmake: Archive_Suffix,
16059         Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
16060         Library_Support, Library_Version_Options,
16061         Shared_Library_Minimum_Options,
16062         Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
16063         Change Name_Call to Name_uCall so that it cannot clash with a legal
16064         subprogram name.
16065         Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
16066         Append C_Plus_Plus to convention identifiers as synonym for CPP
16067         Add new standard names Stack and Builder_Switches
16068         Add new standard names: Compiler_Minimum_Options, Global_Config_File,
16069         Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
16070         Run_Path_Option, Toolchain_Version.
16071         Entry for pragma Unreferenced_Objects
16072
16073         * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
16074         switches, without repetition of "eD". Make sure that last character of
16075         -gnatep= switch is not taken as -gnat switch character.
16076         Complete rewrite of circuit for handling saving compilation options
16077         Occasioned by need to support dot switchs for -gnatw, but cleans up
16078         things in general.
16079         -gnatX does not affect Ada_Version
16080         Include -gnatyA in -gnatg style switches
16081
16082         * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
16083         warnings on return objects.
16084         (Warn_On_Useless_Assignment): Exclude warnings on return objects
16085         (Set_Dot_Warning_Switch): New procedure
16086         (Check_References): Add missing case of test for
16087         Has_Pragma_Unreferenced_Objects
16088         (Output_Unreferenced_Messages): Implement effect of new pragma
16089         Unreferenced_Objects, remove special casing of limited controlled
16090         variables.
16091
16092 2007-04-06  Vincent Celier  <celier@adacore.com>
16093
16094         * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
16095         the default project path, initially done during elaboration of the
16096         package.
16097         If the prefix returned by Sdefault is null, get the prefix from a call
16098         to Executable_Prefix_Path.
16099         (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
16100         null.
16101
16102         * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
16103         canonical directory name to open the directory from which files are
16104         retrieved.
16105         (Record_Other_Sources): Idem.
16106         (Locate_Directory): Add the possibility to create automatically missing
16107         directories when Setup_Projects is True.
16108         Call Locate_Directory so that the directory will be created when
16109         Setup_Projects is True, for object dir, library dir, library ALI dir,
16110         library source copy dir and exec dir.
16111
16112         * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
16113         versions of GNAT.
16114
16115 2007-04-06  Robert Dewar  <dewar@adacore.com>
16116
16117         * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
16118         Use First/Next_Component_Or_Discriminant
16119         (Analyze_Record_Representation_Clause):
16120         Use First/Next_Component_Or_Discriminant
16121         (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
16122         (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
16123         definition if type is unconstrained.
16124         (Adjust_Record_For_Reverse_Bit_Order): New procedure
16125         (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
16126         Is_Abstract_Subprogram and Is_Abstract_Type.
16127         (Adjust_Record_For_Reverse_Bit_Order): New procedure
16128
16129         * repinfo.adb (List_Record_Info): Use First/
16130         Next_Component_Or_Discriminant.
16131
16132         * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
16133         New procedure.
16134
16135         * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
16136         Include -gnatyA in default switches
16137
16138         * opt.ads: (Warn_On_Non_Local_Exception): New flag
16139         (Warn_On_Reverse_Bit_Order): New flag
16140         (Extensions_Allowed): Update the documentation.
16141         (Warn_On_Questionable_Missing_Parens): Now on by default
16142
16143         * usage.adb: Add documentation of -gnatw.x/X switches
16144         Document new -gnatyA style switch
16145         -gnatq warnings are on by default
16146
16147 2007-04-06  Ed Falis  <falis@adacore.com>
16148
16149         * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
16150         full word is no longer compared twice.
16151
16152 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16153
16154         * sem_ch10.adb (Install_Limited_Context_Clauses.
16155         Expand_Limited_With_Clause): Use a new copy of selector name in the
16156         call to Make_With_Clause. This fixes the tree structure for ASIS
16157         purposes. Nothing is changed in the compiler behaviour.
16158         (Process_Body_Clauses): Handle properly use clauses whose prefix is
16159         a package renaming.
16160         (Install_Limited_With_Clauses): Do not install non-limited view when it
16161         is still incomplete.
16162
16163 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16164             Gary Dismukes  <dismukes@adacore.com>
16165
16166         * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
16167         when capturing size information, instead of base type, which for a
16168         formal array type will be the unconstrained type.
16169         (Analyze_Formal_Object_Declaration): Add check for illegal default
16170         expressions for a formal in object of a limited type.
16171         (Instantiate_Object): Ditto.
16172         (Check_Formal_Package_Instance): Skip entities that are formal objects,
16173         because they were defaulted in the formal package and no check applies
16174         to them.
16175         (Check_Formal_Package_Instance): Extend conformance check to other
16176         discrete types beyond Integer.
16177         (Process_Default): Copy directly the unmatched formal. A generic copy
16178         has already been performed in Analyze_Formal_Package.
16179         (Analyze_Associations): If a formal subprogram has no match, check for
16180         partial parametrization before looking for a default, to prevent
16181         spurious errors.
16182         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
16183         not set the instantiation environment before analyzing the actuals.
16184         Fixes regression on 8515-003 with implementation of AI-133.
16185         Set_Instance_Env checks whether the generic unit is a predefined
16186         unit, in which case the instance must be analyzed with the latest Ada
16187         mode. This setting must take place after analysis of the actuals,
16188         because the actuals must be analyzed and frozen in the Ada mode extant
16189         outside of the current instantiation.
16190         (Save_Env, Restore_Env): Preserve and restore the configuration
16191         parameters so that predefined units can be compiled in the proper Ada
16192         mode.
16193         (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
16194         Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
16195         and Is_Abstract_Type.
16196         (Analyze_Formal_Package): For better error recovery, Add exception
16197         handler to catch Instantion_Error, which can be raised in
16198         Analyze_Associations
16199
16200 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16201             Bob Duff  <duff@adacore.com>
16202             Gary Dismukes  <dismukes@adacore.com>
16203
16204         * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
16205         prefix type is a discriminated subtype of the type of the formal.
16206         (Analyze_Allocator): Collect all coextensions regardless of the context.
16207         Whether they can be allocated statically is determined in exp_ch4.
16208         (Analyze_Selected_Component): If the prefix is a limited view and the
16209         non-limited view is available, use the non-limited one.
16210         (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
16211         therefore illegal), suggest a qualified expression rather than a type
16212         conversion, because a type conversion would be illegal in this context.
16213         (Anayze_Allocator): Trace recursively all nested allocators so that all
16214         coextensions are on the corresponding list for the root. Do no mark
16215         coextensions if the root allocator is within a declaration for a stack-
16216         allocated object, because the access discriminants will be allocated on
16217         the stack as well.
16218         (Analyze_Call): Remove restriction on calls to limited functions for the
16219         cases of generic actuals for formal objects, defaults for formal objects
16220         and defaults for record components.
16221         (Analyze_Allocator): Before analysis, chain coextensions on the proper
16222         element list. Their expansion is delayed until the enclosing allocator
16223         is processed and its finalization list constructed.
16224         (Try_Primitive_Operation): If the prefix is a concurrent type, looks
16225         for an operation with the given name among the primitive operations of
16226         the corresponding record type.
16227         (Analyze_Selected_Component): If the prefix is a task type that
16228         implements an interface, and there is no entry with the given name,
16229         check whether there is another primitive operation (e.g. a function)
16230         with that name.
16231         (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
16232         properly the indexing of a function call written in prefix form, where
16233         the function returns an array type, and all parameters of the function
16234         except the first have defaults.
16235         (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
16236         the original operands, rather than relocating them, for efficiency and
16237         to work properly when an operand is overloaded.
16238         (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
16239         Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
16240         (Analyze_Selected_Component): If the prefix is a private extension, only
16241         scan the visible components, not those of the full view.
16242         (Try_Primitive_Operation): If the operation is a procedure, collect all
16243         possible interpretations, as for a function, because in the presence of
16244         classwide parameters several primitive operations of the type can match
16245         the given arguments.
16246
16247 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16248             Robert Dewar  <dewar@adacore.com>
16249
16250         * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
16251         tag-indeterminate call to an abstract function, when the left-hand side
16252         is not classwide.
16253         (Analyze_Loop_Statement): Improve detection of infinite loops
16254
16255 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16256             Thomas Quinot  <quinot@adacore.com>
16257
16258         * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
16259         out of Analyze_Package_Declaration, because processing must be applied
16260         to package bodies as well, for deferred constants completed by pragmas.
16261         (Analyze_Package_Declaration): When the package declaration being
16262         analyzed does not require an explicit body, call Check_Completion.
16263         (May_Need_Implicit_Body): An implicit body is required when a package
16264         spec contains the declaration of a remote access-to-classwide type.
16265         (Analyze_Package_Body): If the package contains RACWs, append the
16266         pending subprogram bodies generated by exp_dist at the end of the body.
16267         (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
16268         Is_Abstract_Subprogram and Is_Abstract_Type.
16269         (Preserve_Full_Attributes): The full entity list is not an attribute
16270         that must be preserved from full to partial view.
16271
16272         * sem_dist.adb (Add_RAS_Dereference_TSS):
16273         Change primitive name to _Call so it cannot clash with any legal
16274         identifier, and be special-cased in Check_Completion.
16275         Mark the full view of the designated type for the RACW associated with
16276         a RAS as Comes_From_Source to get proper view switching when installing
16277         private declarations.
16278         Provite a placeholder nested package body along with the nested spec
16279         to have a place for Append_RACW_Bodies to generate the calling stubs
16280         and stream attributes.
16281
16282 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16283             Robert Dewar  <dewar@adacore.com>
16284
16285         * sem_ch8.adb (Has_Components): If the argument is an incomplete type
16286         that is a limited view, check the non-limited view if available.
16287         (Undefined): Refine error message for missing with of Text_IO
16288         (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
16289         to distinguish real missing with cases.
16290         Fix format of all missing with messages
16291         (Analyze_Subprogram_Renaming): Emit proper error message on illegal
16292         renaming as body when renamed entity is abstract.
16293
16294 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16295             Javier Miranda  <miranda@adacore.com>
16296
16297         * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
16298         predicate recursive, to handle complex expressions on literals whose
16299         spurious ambiguity comes from the abstract interpretation of some
16300         subexpression.
16301         (Interface_Present_In_Ancestor): Add support to concurrent record
16302         types.
16303         (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
16304         Is_Abstract_Subprogram and Is_Abstract_Type.
16305
16306 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16307             Javier Miranda  <miranda@adacore.com>
16308
16309         * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
16310         dereference of a local object R created as a reference to another
16311         object O, use the access level of O.
16312         (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
16313         rather than local Same_Formal_Type, to check whether protected operation
16314         overrides an inherited one.
16315         (Same_Formal_Type): New predicate, used when matching signatures of
16316         overriding synchronized operations, to handle the case when a formal
16317         has a type that is a generic actual.
16318         (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
16319         predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
16320         (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
16321         syntactic ambiguities involving indexing of function calls that return
16322         arrays.
16323         (Abstract_Interface_List): New subprogram that returns the list of
16324         abstract interfaces associated with a concurrent type or a
16325         concurrent record type.
16326         (Interface_Present_In_Parent): New subprogram used to check if a
16327         given type or some of its parents implement a given interface.
16328         (Collect_Abstract_Interfaces): Add support for concurrent types
16329         with interface types.
16330         (Has_Abstract_Interfaces): Add support for concurrent types with
16331         interface types.
16332         (Is_Parent): New subprogram that determines whether E1 is a parent
16333         of E2. For a concurrent type its parent is the first element of its
16334         list of interface types; for other types this function provides the
16335         same result than Is_Ancestor.
16336         (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
16337         (Collect_Synchronized_Interfaces): Removed because the subprogram
16338         Collect_Abstract_Interfaces provides this functionality.
16339         (Collect_Abstract_Interfaces): Minor update to give support to
16340         concurrent types and thus avoid undesired code duplication.
16341         (Get_Subprogram_Entity): Handle entry calls.
16342         (May_Be_Lvalue): Include actuals that appear as in-out parameters in
16343         entry calls.
16344         (Enter_Name): Do not give -gnatwh hiding warning for record component
16345         entities, they never result in hiding.
16346
16347 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16348             Robert Dewar  <dewar@adacore.com>
16349
16350         * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
16351         to chain nested components that are allocators for access discriminants
16352         of the enclosing object.
16353         Add N_Push and N_Pop nodes
16354         New field Exception_Label added
16355         (Local_Raise_Statements): New field in N_Exception_Handler_Node
16356         (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
16357         (Is_Coextension): New flag for allocators, to mark allocators that
16358         correspond to access discriminants of dynamically allocated objects.
16359         (N_Block_Statement): Document the fact that the corresponding entity
16360         can be an E_Return_Statement.
16361         (Is_Coextension): New flag for allocators.
16362         Remove all code for DSP option
16363
16364         * sprint.ads, sprint.adb: Display basic information for class_wide
16365         subtypes. Add handling of N_Push and N_Pop nodes
16366
16367 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
16368
16369         * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
16370         before propagating exception.
16371
16372 2007-04-06  Olivier Hainque  <hainque@adacore.com>
16373
16374         * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
16375         an address always within the call instruction from a return address.
16376
16377 2007-04-06  Olivier Hainque  <hainque@adacore.com>
16378             Eric Botcazou  <botcazou@adacore.com>
16379
16380         * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
16381         expression with a COMPOUND_EXPR including the call instead of emitting
16382         the call directly here.
16383         (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
16384         high bound is constant and the slice is empty.  Tidy.
16385         (tree_transform, case N_Op_Not): Handle properly the case where the
16386         operation applies to a private type whose full view is a modular type.
16387         (Case_Statement_To_gnu): If an alternative is an E_Constant with an
16388         Address_Clause, use the associated Expression as the GNAT tree
16389         representing the choice value to ensure the corresponding GCC tree is
16390         of the proper kind.
16391         (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
16392         instead of just the operands, as the base GCC stabilize_reference does.
16393         <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
16394         requested; otherwise fail.
16395         (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
16396
16397 2007-04-06  Thomas Quinot  <quinot@adacore.com>
16398
16399         * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
16400         implementation of UI_Div.
16401         (UI_Div): Reimplement as a call to UI_Div_Rem.
16402         (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
16403         remainder, avoiding the cost of a multiplication and a subtraction.
16404         (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
16405         provides both quotient and remainder in a single computation.
16406         (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
16407         functions for uint.
16408         (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
16409         is undefined if the given n is not inversible.
16410
16411 2007-04-06  Olivier Hainque  <hainque@adacore.com>
16412
16413         * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
16414         BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
16415         opcodes.
16416
16417 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
16418             Olivier Hainque  <hainque@adacore.com>
16419
16420         * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
16421         when updating the contents of the old pointer to an unconstrained array.
16422         (end_subprog_body): Set error_gnat_node to Empty.
16423         (write_record_type_debug_info): Do not be unduly sparing with our bytes.
16424         (unchecked_convert): For subtype to base type conversions, require that
16425         the source be a subtype if it is an integer type.
16426         (builtin_decls): New global, vector of available builtin functions.
16427         (gnat_pushdecl): Add global builtin function declaration nodes to the
16428         builtin_decls list.
16429         (gnat_install_builtins): Adjust comments.
16430         (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
16431         calling gnat_pushdecl, so that it knows when it handed a builtin
16432         function declaration node.
16433         (builtin_decl_for): Search the builtin_decls list.
16434
16435 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
16436
16437         * s-stchop-vxworks.adb:
16438         (Stack_Check): Raise Storage_Error if the argument has wrapped around.
16439
16440 2007-04-06  Robert Dewar  <dewar@adacore.com>
16441             Arnaud Charlet  <charlet@adacore.com>
16442
16443         * a-diroro.ads: Inserted the pragma Unimplemented_Unit
16444
16445         * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
16446         of files
16447         Add mention of -Sev (set initialize_scalars option from environment
16448         variable at run time) in gnatbind usage message.
16449
16450         * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
16451
16452         * fname-uf.ads: Minor comment fix
16453
16454         * osint.ads: Change pragma Elaborate to Elaborate_All
16455
16456         * par-load.adb: Add documentation.
16457
16458         * sem_cat.ads, sem_cat.adb: Minor code reorganization
16459
16460         * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
16461
16462         * s-secsta.ads: Extra comments
16463
16464         * s-soflin.ads: Minor comment fixes
16465
16466         * s-stratt.ads (Block_Stream_Ops_OK): Removed.
16467
16468         * s-wchcon.ads: Minor comment addition
16469
16470         * treepr.adb: Minor change in message
16471         (Print_Name,Print_Node): Make these debug printouts more robust: print
16472         "no such..." instead of crashing on bad input.
16473
16474 2007-03-30  Rafael Ávila de Espíndola  <espindola@google.com>
16475
16476         * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
16477         instead of gnat_signed_or_unsigned_type.
16478         * utils.c (gnat_signed_or_unsigned_type): Remove.
16479         * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
16480         * gigi.h (gnat_signed_or_unsigned_type): Remove
16481
16482 2007-03-09  Roger Sayle  <roger@eyesopen.com>
16483
16484         * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
16485         fold with the result of buildN.
16486         * decl.c (gnat_to_gnu_entity): Likewise.
16487         * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
16488         * utils.c (finish_record_type, merge_sizes, max_size, convert):
16489         Likewise.
16490         * utils2.c (gnat_truthvalue_conversion, compare_arrays,
16491         nonbinary_modular_operation, build_binary_op, build_unary_op,
16492         build_cond_expr): Likewise.
16493
16494         * utils.c (convert): Use fold_build1 when casting values to void.
16495         * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
16496         fold_convert instead of convert when appropriate.
16497
16498 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
16499
16500         * Make-lang.in: Add install-pdf target as copied from
16501         automake v1.10 rules.
16502
16503 2007-02-28  Andreas Schwab  <schwab@suse.de>
16504
16505         * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
16506         $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
16507         (doc/gnat-style.info): Likewise.
16508
16509 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
16510
16511         * gnat-style.texi: Standardize title page.
16512         * gnat_rm.texi: Likewise.
16513         * gnat_ugn.texi: Likewise.
16514
16515 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
16516
16517         * decl.c (annotate_value): Adjust for refactoring of tree_map
16518         hierarchy.
16519
16520 2007-02-24  Mark Mitchell  <mark@codesourcery.com>
16521
16522         * decl.c (annotate_value): Adjust for refactoring of tree_map
16523         hierarchy.
16524
16525 2007-02-21  Ed Schonberg  <schonberg@adacore.com>
16526
16527         PR ada/18819
16528         * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
16529         untagged derived type, add hidden components to keep discriminant
16530         layout consistent, when a given discriminant of the derived type
16531         constraints several discriminants of the parent type.
16532
16533 2007-02-16  Eric Botcazou  <ebotcazou@adacore.com>
16534             Sandra Loosemore  <sandra@codesourcery.com>
16535
16536         * trans.c (call_to_gnu):  Use build_call_list instead of build3 to
16537         build the call expression.
16538         (gnat_stabilize_reference_1): Handle tcc_vl_exp.
16539         * utils.c (max_size) <tcc_exceptional>: Delete.
16540         <tcc_vl_exp>: New case.
16541         <tcc_expression>: Delete CALL_EXPR subcase.
16542         (build_global_cdtor): Use build_call_nary instead of build3.
16543         * utils2.c (build_call_1_expr): Likewise.
16544         (build_call_2_expr): Likewise.
16545         (build_call_0_expr): Likewise.
16546         (build_call_alloc_dealloc): Likewise.
16547
16548 2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
16549
16550         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
16551         get_action_description_for): Replace _Unwind_Word with _uleb128_t
16552         and _Unwind_SWord with _sleb128_t.
16553
16554 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
16555
16556         * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
16557         * decl.c: Include gt-ada-decl.h.
16558         (annotate_value_cache): New.
16559         (annotate_value): Use it instead of TREE_COMPLEXITY.
16560
16561 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
16562
16563         * misc.c, utils2.c: Fix comment typos.
16564
16565 2007-01-24  Roger Sayle  <roger@eyesopen.com>
16566
16567         * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
16568         TREE_CONSTANT_OVERFLOW.
16569         (allocatable_size_p, annotate_value): Likewise.
16570         * trans.c (gnat_to_gnu): Likewise.
16571         * utils.c (unchecked_convert): Likewise.
16572         * utils2.c (build_simple_component_ref): Likewise.
16573
16574 2007-01-23  Richard Guenther  <rguenther@suse.de>
16575
16576         PR bootstrap/30541
16577         * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
16578         (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
16579         (gnatboot3): Likewise.
16580         (GNATBIND): Do not define.
16581         * Makefile.in (GNATBIND): Do not define.
16582
16583 2007-01-08  Richard Guenther  <rguenther@suse.de>
16584
16585         * cuintp.c (build_cst_from_int): Use built_int_cst_type.
16586         * trans.c (gnat_to_gnu): Likewise.
16587
16588 2006-12-07  Geoffrey Keating  <geoffk@apple.com>
16589
16590         * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
16591         * adaint.c: Likewise.
16592
16593 2006-12-05  Aldy Hernandez  <aldyh@redhat.com>
16594
16595         Merge from gimple-tuples-branch:
16596         2006-11-02  Aldy Hernandez  <aldyh@redhat.com>
16597
16598         * ada-tree.h (lang_tree_node): Handle gimple tuples.
16599         * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
16600         GIMPLE_MODIFY_STMT.
16601
16602 2006-12-02  Kazu Hirata  <kazu@codesourcery.com>
16603
16604         * Makefile.in, mingw32.h, trans.c: Fix comment typos.
16605         * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
16606         Fix typos.
16607
16608 2006-11-17  Eric Botcazou  <ebotcazou@adacore.com>
16609
16610         PR ada/27936
16611         * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
16612         if the initializer takes into account the padding.
16613
16614 2006-11-11  Richard Guenther  <rguenther@suse.de>
16615
16616         * trans.c (maybe_stabilize_reference): Remove handling of
16617         FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
16618
16619 2006-11-05  Arnaud Charlet  <charlet@adacore.com>
16620
16621         PR ada/29707
16622         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
16623         (To_Target_Priority): New function.
16624
16625 2006-10-31  Robert Dewar  <dewar@adacore.com>
16626
16627         * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
16628         a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
16629         s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
16630         a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
16631         a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
16632         a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
16633         a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
16634         a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
16635         a-szbzha.adb: Minor reformatting. Fix header.
16636
16637         * a-numaux-x86.adb: Add parentheses for use of unary minus
16638         * a-ngcefu.adb: Supply missing parentheses for unary minus
16639         * a-ngcoty.adb: Add parens for use of unary minus
16640         * a-ngelfu.adb: Add missing parens for unary minus
16641         * a-tifiio.adb: Add parentheses for uses of unary minus
16642
16643 2006-10-31  Robert Dewar  <dewar@adacore.com>
16644             Bob Duff  <duff@adacore.com>
16645             Ed Schonberg  <schonberg@adacore.com>
16646
16647         * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
16648         with multiplying operator.
16649         (Expected_Type_Is_Any_Real): New function to determine from the Parent
16650         pointer whether the context expects "any real type".
16651         (Resolve_Arithmetic_Op): Do not give an error on calls to the
16652         universal_fixed "*" and "/" operators when they are used in a context
16653         that expects any real type. Also set the type of the node to
16654         Universal_Real in this case, because downstream processing requires it
16655         (mainly static expression evaluation).
16656         Reword some continuation messages
16657         Add some \\ sequences to continuation messages
16658         (Resolve_Call): Refine infinite recursion case. The test has been
16659         sharpened to eliminate some false positives.
16660         Check for Current_Task usage now includes entry barrier, and is now a
16661         warning, not an error.
16662         (Resolve): If the call is ambiguous, indicate whether an interpretation
16663         is an inherited operation.
16664         (Check_Aggr): When resolving aggregates, skip associations with a box,
16665         which are priori correct, and will be replaced by an actual default
16666         expression in the course of expansion.
16667         (Resolve_Type_Conversion): Add missing support for conversion from
16668         a class-wide interface to a tagged type. Minor code cleanup.
16669         (Valid_Tagged_Converion): Add support for abstact interface type
16670         conversions.
16671         (Resolve_Selected_Component): Call Generate_Reference here rather than
16672         during analysis, and use May_Be_Lvalue to distinguish read/write.
16673         (Valid_Array_Conversion): New procedure, abstracted from
16674         Valid_Conversion, to incorporate accessibility checks for arrays of
16675         anonymous access types.
16676         (Valid_Conversion): For a conversion to a numeric type occurring in an
16677         instance or inlined body, no need to check that the operand type is
16678         numeric, since this has been checked during analysis of the template.
16679         Remove legacy test for scope name Unchecked_Conversion.
16680
16681         * sem_res.ads: Minor reformatting
16682
16683         * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
16684         (PE_Current_Task_In_Entry_Body): New exception code
16685         (SE_Restriction_Violation): Removed, not used
16686
16687         * a-except.ads:  Update comments.
16688
16689         * types.h, types.ads: Add definition for Validity_Check
16690         (PE_Current_Task_In_Entry_Body): New exception code
16691         (SE_Restriction_Violation): Removed, not used
16692
16693 2006-10-31  Thomas Quinot  <quinot@adacore.com>
16694
16695         * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
16696         error status.
16697
16698 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
16699             Jose Ruiz  <ruiz@adacore.com>
16700
16701         * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
16702         part of Ada.Calendar: all subprogram raise Unimplemented.
16703         (Split_W_Offset): Temp function body, raising Unimplemented
16704
16705         * a-calend.ads, a-calend-vms.ads:
16706         Add imported variable Invalid_TZ_Offset used to designate targets unable
16707         to support time zones.
16708         (Unimplemented): Temporary function raised by the body of new
16709         subprograms below.
16710         (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
16711         unit provides handling of leap seconds and is used by the new Ada 2005
16712         packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
16713         (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
16714         version returns an extra value which is the offset to UTC.
16715
16716         * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
16717         (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
16718         (Split_W_Offset): New function body.
16719         (Time_Of): When a date is close to UNIX epoch, compute the time for
16720         that date plus one day (that amount is later substracted after
16721         executing mktime) so there are no problems with time zone adjustments.
16722
16723         * a-calend-mingw.adb: Remove Windows specific version no longer needed.
16724
16725         * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
16726         a-catizo.ads, a-catizo.adb: New files.
16727
16728         * impunit.adb: Add new Ada 2005 entries
16729
16730         * sysdep.c: Add external variable __gnat_invalid_tz_offset.
16731         Rename all occurences of "__gnat_localtime_r" to
16732         "__gnat_localtime_tzoff".
16733         (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
16734         zone data and calculate the GMT offset.
16735         (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
16736         Use the field "tm_gmtoff" to extract the GMT offset.
16737         (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
16738         the external variable "timezone" to calculate the GMT offset.
16739
16740 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
16741             Jose Ruiz  <ruiz@adacore.com>
16742
16743         * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
16744         s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
16745         s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
16746         s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
16747         System.Any_Priority to a POSIX priority on the target.
16748
16749         * system-linux-ia64.ads:
16750         Extend range of Priority types on Linux to use the whole range made
16751         available by the system.
16752
16753         * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
16754         function maps from System.Any_Priority to a POSIX priority on the
16755         target.
16756         (PTHREAD_PRIO_PROTECT): Set real value.
16757         (PTHREAD_PRIO_INHERIT): Now a function.
16758         (SIGCPUFAIL): New signal.
16759         (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
16760         are documented as reserved by the OS.
16761
16762         * system-aix.ads: Use the full range of priorities provided by the
16763         system on AIX.
16764
16765         * s-taprop-posix.adb: Call new function To_Target_Priority.
16766         (Set_Priority): Take into account Task_Dispatching_Policy and
16767         Priority_Specific_Dispatching pragmas when determining if Round Robin
16768         must be used for scheduling the task.
16769
16770         * system-linux-x86_64.ads, system-linux-x86.ads,
16771         system-linux-ppc.ads: Extend range of Priority types on Linux to use
16772         the whole range made available by the system.
16773
16774         * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
16775         s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
16776         s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
16777         when deallocating the TCB in order to avoid potential references to
16778         deallocated data.
16779         (Set_Priority): Take into account Task_Dispatching_Policy and
16780         Priority_Specific_Dispatching pragmas when determining if Round Robin
16781         or FIFO within priorities must be used for scheduling the task.
16782
16783         * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
16784         the Thread field (to be used internally by the run-time system) and the
16785         kernel-level task id in the LWP field (to be used by the debugger).
16786         (Create_Task): Reorganize to unify the calls to taskSpawn into a single
16787         instance, and propagate the current task options to the spawned task.
16788         (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
16789         (Initialize): Set Round Robin dispatching when the corresponding pragma
16790         is in effect.
16791
16792 2006-10-31  Robert Dewar  <dewar@adacore.com>
16793
16794         * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
16795         system-linux-hppa.ads, system-hpux-ia64.ads,
16796         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
16797         system-vxworks-sparcv9.ads, system-solaris-x86.ads,
16798         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
16799         system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
16800         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
16801         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
16802         system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
16803         Default_Bit_Order) to kill constant condition warnings for references
16804         to this switch.
16805
16806 2006-10-31  Vincent Celier  <celier@adacore.com>
16807             Eric Botcazou  <ebotcazou@adacore.com>
16808
16809         * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
16810         mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
16811         mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
16812         Ext_To, when building the library file name
16813
16814         * mlib-tgt-vxworks.adb: ditto.
16815         (Get_Target_Suffix): Add support for x86 targets.
16816
16817         * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
16818
16819         * mlib-tgt-darwin.adb:
16820         Use Append_To, instead of Ext_To, when building the library file name
16821         (Flat_Namespace): New global variable.
16822         (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
16823         (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
16824         (Link_Shared_Libgcc): Delete.
16825         (Build_Dynamic_Library): Adjust for above changes.
16826         Use Opt package.
16827         (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
16828
16829 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
16830
16831         * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
16832         (Initialize): Add type conversions required by above change.
16833
16834 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
16835
16836         * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
16837         (getpid): New body for this function that uses the underlying taskIdSelf
16838         function for VxWorks 5 and VxWorks 6 in kernel mode.
16839         (unsigned_int): New type, modular to allow logical bit operations.
16840         (taskOptionsGet): New imported function.
16841
16842         * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
16843         field to be compliant with the type used by the corresponding operating
16844         system primitive.
16845
16846 2006-10-31  Pascal Obry  <obry@adacore.com>
16847             Eric Botcazou  <ebotcazou@adacore.com>
16848             Vincent Celier  <celier@adacore.com>
16849
16850         * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
16851         ASCII version of the registry API. This is needed as the GNAT runtime
16852         is now UNICODE by default.
16853         Include version.h.
16854         (get_gcc_version): Do not hardcode the return value.
16855         (__gnat_file_time_name): On Windows properly set the default returned
16856         value to -1 which corresponds to Invalid_Time.
16857         (__gnat_fopen): New routine. A simple wrapper on all plateforms
16858          except on Windows where it does conversion for unicode support.
16859         (__gnat_freopen): Idem.
16860         (__gnat_locate_exec_on_path): If environment variable PATH does not
16861         exist, return a NULL pointer
16862
16863         * adaint.h: (__gnat_fopen): Declare.
16864         (__gnat_freopen): Likewise.
16865
16866         * mingw32.h (_tfreopen): Define this macro here for older MingW
16867         version.
16868         Activate the unicode support on platforms using a MingW runtime
16869         version 3.9 or newer.
16870
16871         * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
16872         This is needed for proper unicode support on Windows.
16873         (freopen): Idem.
16874
16875 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
16876             Nicolas Setton  <setton@adacore.com>
16877             Olivier Hainque  <hainque@adacore.com>
16878             Gary Dismukes  <dismukes@adacore.com>
16879
16880         * gigi.h: (tree_code_for_record_type): Declare.
16881         (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
16882         (get_global_renaming_pointers): Rename to
16883         invalidate_global_renaming_pointers.
16884         (static_ctors): Delete.
16885         (static_dtors): Likewise.
16886         (gnat_write_global_declarations): Declare.
16887         (create_var_decl): Adjust descriptive comment to indicate that the
16888         subprogram may return a CONST_DECL node.
16889         (create_true_var_decl): Declare new function, similar to
16890         create_var_decl but forcing the creation of a VAR_DECL node.
16891         (get_global_renaming_pointers): Declare.
16892         (add_global_renaming_pointer): Likewise.
16893
16894         * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
16895
16896         * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
16897         tree before setting TREE_ADDRESSABLE for by-reference return mechanism
16898         processing.
16899         (gnat_to_gnu_entity): Remove From_With_Type from computation for
16900         imported_p.
16901         <E_Access_Type>: Use the Non_Limited_View as the full view of the
16902         designated type if the pointer comes from a limited_with clause.  Make
16903         incomplete designated type if it is in the main unit and has a freeze
16904         node.
16905         <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
16906         Underlying_Full_View similarly.  Return earlier if the full view already
16907         has an associated tree.
16908         (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
16909         (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
16910         (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
16911         reference type built for objects with an address clause.
16912         Use create_true_var_decl with const_flag set for
16913         DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
16914         TREE_READONLY set.
16915         (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
16916         for Character and Wide_Character types. This info is read by the
16917         dwarf-2 writer, and is needed to be able to use the command "ptype
16918         character" in the debugger.
16919         (gnat_to_gnu_entity): When generating a type representing
16920         a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
16921         so that debug writers can distinguish it from ordinary integers.
16922         (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
16923         addition to TREE_READONLY to assert the constantness of variables for
16924         elaboration purposes.
16925         (gnat_to_gnu_entity, subprogram cases): Change loops on formal
16926         parameters to call new Einfo function First_Formal_With_Extras.
16927         (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
16928         protected type with its corresponding discriminant, to obtain a usable
16929         declaration
16930         (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
16931         for a multiple elaboration of the "equivalent" type.
16932         (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
16933         into record_global_renaming_pointer.
16934         (gnat_to_gnu_entity) <E_Array_Type>: Do not force
16935         TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
16936         <E_Array_Subtype>: Likewise.
16937         (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
16938         incomplete subtypes and incomplete subtypes of incomplete types visible
16939         through a limited with clause.
16940         (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
16941         the base index type for the maximum size of the array only if they are
16942         constant.
16943         (gnat_to_gnu_entity, renaming object case): Do not wrap up the
16944         expression into a SAVE_EXPR if stabilization failed.
16945
16946         * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
16947         a result decl into DECL_BY_REFERENCE on this decl, now what is expected
16948         by lower level compilation passes.
16949         (gnat_genericize): New function, lowering a function body to GENERIC.
16950         Turn the type of RESULT_DECL into a real reference type if the decl
16951         has been marked DECL_BY_REFERENCE, and adjust references to the latter
16952         accordingly.
16953         (gnat_genericize_r): New function. Tree walking callback for
16954         gnat_genericize.
16955         (convert_from_reference, is_byref_result): New functions. Helpers for
16956         gnat_genericize_r.
16957         (create_type_decl): Call gnat_pushdecl before calling
16958         rest_of_decl_compilation, to make sure that field TYPE_NAME of
16959         type_decl is properly set before calling the debug information writers.
16960         (write_record_type_debug_info): The heuristics which compute the
16961         alignment of a field in a variant record might not be accurate. Add a
16962         safety test to make sure no alignment is set to a smaller value than
16963         the alignment of the field type.
16964         (make_dummy_type): Use the Non_Limited_View as the underlying type if
16965         the type comes from a limited_with clause. Do not loop on the full view.
16966         (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
16967         (dummy_node_table): New global variable, moved from decl.c.
16968         (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
16969         (save_gnu_tree): Use above macros.
16970         (get_gnu_tree): Likewise.
16971         (present_gnu_tree): Likewise.
16972         (init_dummy_type): New function, moved from decl.c. Use above macros.
16973         (make_dummy_type): Likewise.
16974         (tree_code_for_record_type): New function extracted from make_dummy_type
16975         (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
16976         (static_ctors): Change it to a vector, make static.
16977         (static_dtors): Likewise.
16978         (end_subprog_body): Adjust for above change.
16979         (build_global_cdtor): Moved from trans.c.
16980         (gnat_write_global_declarations): Emit global constructor and
16981         destructor, and call cgraph_optimize before emitting debug info for
16982         global declarations.
16983         (global_decls): New global variable.
16984         (gnat_pushdecl): Store the global declarations in global_decls, for
16985         later use.
16986         (gnat_write_global_declarations): Emit debug information for global
16987          declarations.
16988         (create_var_decl_1): Former create_var_decl, with an extra argument to
16989          state whether the creation of a CONST_DECL is allowed.
16990         (create_var_decl): Behavior unchanged. Now a wrapper around
16991         create_var_decl_1 allowing CONST_DECL creation.
16992         (create_true_var_decl): New function, similar to create_var_decl but
16993         forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
16994         (create_field_decl): Do not always mark the field as addressable
16995         if its type is an aggregate.
16996         (global_renaming_pointers): New static variable.
16997         (add_global_renaming_pointer): New function.
16998         (get_global_renaming_pointers): Likewise.
16999
17000         * misc.c (gnat_dwarf_name): New function.
17001         (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
17002         (gnat_post_options): Add comment about structural alias analysis.
17003         (gnat_parse_file): Do not call cgraph_optimize here.
17004         (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
17005
17006         * trans.c (process_freeze_entity): Don't abort if we already have a
17007         non dummy GCC tree for a Concurrent_Record_Type, as it might
17008         legitimately have been elaborated while processing the associated
17009         Concurrent_Type prior to this explicit freeze node.
17010         (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
17011         exception handler volatile if it is of variable size.
17012         (process_type): Remove bypass for types coming from a limited_with
17013         clause.
17014         (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
17015         actual, convert the corresponding gnu_actual to the real destination
17016         type when necessary.
17017         (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
17018         originally TREE_READONLY but whose elaboration cannot be performed
17019         statically.
17020         Part of fix for F504-021.
17021         (tree_transform, subprogram cases): Change loops on formal parameters to
17022         call new Einfo function First_Formal_With_Extras.
17023         (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
17024         stemming from type conversion for the lhs.
17025         (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
17026         number of bits per unit for components of records.
17027         (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
17028         (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
17029         with At_End_Proc after the SJLJ EH cleanup.
17030         (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
17031         compilation unit.
17032         (elaborate_all_entities): Do not retest type_annotate_only.
17033         (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
17034         result type of an abstract subprogram, which may be an itype associated
17035         with an anonymous access result (related to AI-318-02).
17036         (build_global_cdtor): Move to utils.c.
17037         (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
17038         this choice is not a null tree nor an integer constant.
17039         (gigi): Run unshare_save_expr via walk_tree_without_duplicates
17040         on the body of elaboration routines instead of mark_unvisited.
17041         (add_stmt): Do not mark the tree.
17042         (add_decl_expr): Tweak comment.
17043         (mark_unvisited): Delete.
17044         (unshare_save_expr): New static function.
17045         (call_to_gnu): Issue an error when making a temporary around a
17046         procedure call because of non-addressable actual parameter if the
17047         type of the formal is by_reference.
17048         (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
17049         after building the elaboration routine.
17050
17051 2006-10-31  Bob Duff  <duff@adacore.com>
17052
17053         * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
17054         as finalization-started, so we can raise Program_Error on 'new'.
17055
17056         * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
17057         collection has already started.
17058
17059         * s-finimp.ads (Collection_Finalization_Started): Added new special
17060         flag value for indicating that a collection's finalization has started.
17061
17062         * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
17063         create a task whose master has already waited for dependent tasks.
17064
17065 2006-10-31  Robert Dewar  <dewar@adacore.com>
17066
17067         * lib.adb, lib.ads: (In_Predefined_Unit): New functions
17068
17069         * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
17070         a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
17071         a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
17072         a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
17073         a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
17074         a-except-2005.ads: Add pragma Preelaborable_Warning
17075
17076 2006-10-31  Robert Dewar  <dewar@adacore.com>
17077             Jose Ruiz  <ruiz@adacore.com>
17078
17079         * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
17080
17081         * ali.adb (Get_Name): Properly handle scanning of wide character names
17082         encoded with brackets notation.
17083         (Known_ALI_Lines): Add S lines to this list.
17084         (Scan_ALI): Acquire S (priority specific dispatching) lines.
17085         New flag Elaborate_All_Desirable in unit table
17086
17087         * ali.ads (Priority_Specific_Dispatching): Add this range of
17088         identifiers to be used for Priority_Specific_Dispatching table entries.
17089         (ALIs_Record): Add First_Specific_Dispatching and
17090         Last_Specific_Dispatching that point to the first and last entries
17091         respectively in the priority specific dispatching table for this unit.
17092         (Specific_Dispatching): Add this table for storing each S (priority
17093         specific dispatching) line encountered in the input ALI file.
17094         New flag Elaborate_All_Desirable in unit table
17095
17096         * bcheck.adb: (Check_Configuration_Consistency): Add call to
17097         Check_Consistent_Dispatching_Policy.
17098         (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
17099         verifying that the use of Priority_Specific_Dispatching,
17100         Task_Dispatching_Policy, and Locking_Policy is consistent across the
17101         partition.
17102
17103         * bindgen.adb: (Public_Version_Warning): function removed.
17104         (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
17105         required information from ALI files in order to initialize the table
17106         containing the specific dispatching policy.
17107         (Gen_Adainit_Ada): Generate the variables required for priority specific
17108         dispatching entries (__gl_priority_specific_dispatching and
17109         __gl_num_specific_dispatching).
17110         (Gen_Adainit_C): Generate the variables required for priority specific
17111         dispatching entries (__gl_priority_specific_dispatching and
17112         __gl_num_specific_dispatching).
17113         (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
17114         pragma entries.
17115         (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
17116         (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
17117         (Tab_To): Removed.
17118         (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
17119         a call to gnat_set_globals.
17120         Generate a string containing settings from
17121         Priority_Specific_Dispatching pragma entries.
17122         (Gen_Object_Files_Options): Do not include the runtime libraries when
17123         pragma No_Run_Time is specified.
17124
17125         * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
17126         consistency with s-intman-posix.adb.
17127         (__gnat_error_handler, case FreeBSD): Account for the fact that the
17128         handler is installed with SA_SIGINFO.
17129         (__gnat_adjust_context_for_raise, FreeBSD case): New function for
17130         FreeBSD ZCX support, copied from Linux version.
17131         Add MaRTE-specific definitions for the linux target. Redefine sigaction,
17132         sigfillset, and sigemptyset so the routines defined by MaRTE.
17133         (__gl_priority_specific_dispatching): Add this variable that stores the
17134         string containing priority specific dispatching policies in the
17135         partition.
17136         (__gl_num_specific_dispatching): Add this variable that indicates the
17137         highest priority for which a priority specific dispatching pragma
17138         applies.
17139         (__gnat_get_specific_dispatching): Add this routine that returns the
17140         priority specific dispatching policy, as set by a
17141         Priority_Specific_Dispatching pragma appearing anywhere in the current
17142         partition. The input argument is the priority number, and the result
17143         is the upper case first character of the policy name.
17144         (__gnat_set_globals): Now a dummy function.
17145         (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
17146         mechargs instead of sigargs, as the latter can be retrieved from the
17147         former and sigargs is not what we want on ia64.
17148         (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
17149         mechargs argument.
17150         (__gnat_adjust_context_for_raise, ia64-vms): New function.
17151         (tasking_error): Remove unused symbol.
17152         (_abort_signal): Move this symbol to the IRIX specific part since this
17153         is the only target that uses this definition.
17154         (Check_Abort_Status): Move this symbol to the IRIX specific part since
17155         this is the only target that uses this definition.
17156         (Lock_Task): Remove unused symbol.
17157         (Unlock_Task): Remove unused symbol.
17158
17159         * lib-writ.adb (Write_ALI): Output new S lines for
17160         Priority_Specific_Dispatching pragmas.
17161         Implement new flag BD for elaborate body desirable
17162
17163         * lib-writ.ads: Document S lines for Priority Specific Dispatching.
17164         (Specific_Dispatching): Add this table for storing the entries
17165         corresponding to Priority_Specific_Dispatching pragmas.
17166         Document new BD flag for elaborate body desirable
17167
17168         * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
17169         of known pragmas.
17170
17171 2006-10-31  Javier Miranda  <miranda@adacore.com>
17172
17173         * a-tags.ads, a-tags.adb:
17174         (Predefined_DT): New function that improves readability of the code.
17175         (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
17176         Inherit_DT): Use the new function Predefined_DT to improve code
17177         readability.
17178         (Register_Interface_Tag): Update assertion.
17179         (Set_Interface_Table): Update assertion.
17180         (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
17181         determining progenitor interfaces in Tags.
17182         (Inherit_CPP_DT): New subprogram.
17183
17184         * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
17185         analysis of the thunk code.
17186         (Expand_Interface_Conversion): Handle run-time conversion of
17187         access to class wide types.
17188         (Expand_Dispatching_Call): When generating the profile for the
17189         subprogram itype for a dispatching operation, properly terminate the
17190         formal parameters chaind list (set the Next_Entity of the last formal
17191         to Empty).
17192         (Collect_All_Interfaces): Removed. This routine has been moved to
17193         sem_util and renamed as Collect_All_Abstract_Interfaces.
17194         (Set_All_DT_Position): Hidden entities associated with abstract
17195         interface primitives are not taken into account in the check for
17196         3.9.3(10); this check is done with the aliased entity.
17197         (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
17198         interfacing with CPP by default.
17199         (Expand_Interface_Conversion): Add missing support for static conversion
17200         from an interface to a tagged type.
17201         (Collect_All_Interfaces): Add new out formal containing the list of
17202         abstract interface types to cleanup the subprogram Make_DT.
17203         (Make_DT): Update the code to generate the table of interfaces in case
17204         of abstract interface types.
17205         (Is_Predefined_Dispatching_Alias): New function that returns true if
17206         a primitive is not a predefined dispatching primitive but it is an
17207         alias of a predefined dispatching primitive.
17208         (Make_DT): If the ancestor of the type is a CPP_Class and we are
17209         compiling under full ABI compatibility mode we avoid the generation of
17210         calls to run-time services that fill the dispatch tables because under
17211         this mode we currently inherit the dispatch tables in the IP subprogram.
17212         (Write_DT): Emit an "is null" indication for a null procedure primitive.
17213         (Expand_Interface_Conversion): Use an address as the type of the formal
17214         of the internally built function that handles the case in which the
17215         target type is an access type.
17216
17217 2006-10-31  Robert Dewar  <dewar@adacore.com>
17218
17219         * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
17220
17221 2006-10-31  Robert Dewar  <dewar@adacore.com>
17222
17223         * bindusg.ads, bindusg.adb:
17224         Change to package and rename procedure as Display, which
17225         now ensures that it only outputs usage information once.
17226
17227 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
17228
17229         * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
17230         using RTPs.
17231
17232         * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
17233         when using RTPs.
17234
17235 2006-10-31  Robert Dewar  <dewar@adacore.com>
17236             Ed Schonberg  <schonberg@adacore.com>
17237
17238         * treepr.adb: Use new subtype N_Membership_Test
17239
17240         * checks.ads, checks.adb: Add definition for Validity_Check
17241         (Range_Or_Validity_Checks_Suppressed): New function
17242         (Ensure_Valid): Test Validity_Check suppressed
17243         (Insert_Valid_Check): Test Validity_Check suppressed
17244         (Insert_Valid_Check): Preserve Do_Range_Check flag
17245         (Validity_Check_Range): New procedure
17246         (Expr_Known_Valid): Result of membership test is always valid
17247         (Selected_Range_Checks): Range checks cannot be applied to discriminants
17248         by themselves. Disabling those checks must also be done for task types,
17249         where discriminants may be used for the bounds of entry families.
17250         (Apply_Address_Clause_Check): Remove side-effects if address expression
17251         is non-static and is not the name of a declared constant.
17252         (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
17253         Code cleanup and new error messages.
17254         (Enable_Range_Check): Test for some cases of suppressed checks
17255         (Generate_Index_Checks): Suppress index checks if index checks are
17256         suppressed for array object or array type.
17257         (Apply_Selected_Length_Checks): Give warning for compile-time detected
17258         length check failure, even if checks are off.
17259         (Ensure_Valid): Do not generate a check on an indexed component whose
17260         prefix is a packed boolean array.
17261         * checks.adb: (Alignment_Checks_Suppressed): New function
17262         (Apply_Address_Clause_Check): New procedure, this is a completely
17263         rewritten replacement for Apply_Alignment_Check
17264         (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
17265         we request a discriminal value only in case of discriminants.
17266         (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
17267         assignments where the target subtype is unconstrained and the target
17268         object is a parameter or dereference (other aliased cases are known
17269         to be unconstrained).
17270
17271 2006-10-31  Robert Dewar  <dewar@adacore.com>
17272
17273         * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
17274         prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
17275         vms_conv.adb: Fix bad table increment values (much too small)
17276
17277         * table.adb (Realloc): Make sure we get at least some new elements
17278         Defends against silly small values for table increment
17279
17280 2006-10-31  Robert Dewar  <dewar@adacore.com>
17281             Ed Schonberg  <schonberg@adacore.com>
17282             Bob Duff  <duff@adacore.com>
17283
17284         * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
17285         entities. Move other fields around to make this possible
17286         (Is_Derived_Type): Add missing call to Is_Type.
17287         (Extra_Formals): New function for subprograms, entries, subprogram
17288         types.
17289         (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
17290         (First_Formal_With_Extras): New function for subprogs, entries, subp
17291         types.
17292         (Write_Field28_Name): New procedure for node display of "Extra_Formals".
17293         Add node information for E_Return_Statement.
17294         (Elaborate_Body_Desirable): New flag
17295         (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
17296         to be Is_Inherently_Limited_Type, because return-by-reference has
17297         no meaning in Ada 2005.
17298         (E_Return_Statement): New entity kind.
17299         (Return_Applies_To): Field of E_Return_Statement.
17300         (Is_Return_Object): New flag in object entities.
17301         (Is_Dynamic_Scope): Make it True for E_Return_Statement.
17302         (Must_Have_Preelab_Init): New flag
17303         (Known_To_Have_Preelab_Init): New flag
17304         (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
17305         (Is_Visible_Formal): New flag on entities in formal packages.
17306         (Low_Bound_Known): New flag
17307         (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
17308         Incomplete_Kind.
17309         (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
17310         output when Id is an incomplete subtype.
17311
17312 2006-10-31  Robert Dewar  <dewar@adacore.com>
17313
17314         * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
17315         Avoid abbreviation Creat
17316         (Finalize): List all sources in extended mail source if -gnatl
17317         switch is active.
17318         Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
17319         (Finalize): Implement new -gnatl=xxx switch to output listing to file
17320         (Set_Specific_Warning_On): New procedure
17321         (Set_Specific_Warning_Off): New procedure
17322         Add implementation of new insertion \\
17323         (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
17324         (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
17325         types.
17326         (Error_Msg_Internal): Make sure that we set Last_Killed to
17327         True when a message from another package is suppressed.
17328         Implement insertion character ~ (insert string)
17329         (First_Node): Minor adjustments to get better placement.
17330
17331         * frontend.adb:
17332         Implement new -gnatl=xxx switch to output listing to file
17333
17334         * gnat1drv.adb:
17335         Implement new -gnatl=xxx switch to output listing to file
17336
17337         * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
17338         (Commands_To_Stdout): New flag
17339         Implement new -gnatl=xxx switch to output listing to file
17340         New switch Dump_Source_Text
17341         (Warn_On_Deleted_Code): New warning flag for -gnatwt
17342         Define Error_Msg_Line_Length
17343         (Warn_On_Assumed_Low_Bound): New switch
17344
17345         * osint.ads, osint.adb
17346         (Normalize_Directory_Name): Fix bug.
17347         Implement new -gnatl=xxx switch to output listing to file
17348         (Concat): Removed, replaced by real concatenation
17349         Make use of concatenation now allowed in compiler
17350         (Executable_Prefix.Get_Install_Dir): First get the full path, so that
17351         we find the 'lib' or 'bin' directory even when the tool has been
17352         invoked with a relative path.
17353         (Executable_Name): New function taking string parameters.
17354
17355         * osint-c.ads, osint-c.adb:
17356         Implement new -gnatl=xxx switch to output listing to file
17357
17358         * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
17359
17360         * switch-c.adb:
17361         Implement new -gnatl=xxx switch to output listing to file
17362         Recognize new -gnatL switch
17363         (no longer keep in old warning about old style usage)
17364         Use concatenation to simplify code
17365         Recognize -gnatjnn switch
17366         (Scan_Front_End_Switches): Clean up handling of -gnatW
17367         (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
17368
17369 2006-10-31  Robert Dewar  <dewar@adacore.com>
17370
17371         * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
17372         (Set_Specific_Warning_Off): New procedure
17373         (Warning_Specifically_Suppressed): New function
17374         (Validate_Specific_Warnings): New procedure
17375         (Output_Msg_Text): Complete rewrite to support -gnatjnn
17376
17377         * err_vars.ads: Implement insertion character ~ (insert string)
17378
17379 2006-10-31  Bob Duff  <duff@adacore.com>
17380             Ed Schonberg  <schonberg@adacore.com>
17381
17382         * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
17383         the parent part is a build-in-place function call, generate assignments.
17384         (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
17385         are build-in-place function calls.
17386         (Replace_Self_Reference): New subsidiary of
17387         Make_OK_Assignment_Statement, to replace an access attribute that is a
17388         self-reference into an access to the appropriate component of the
17389         target object. Generalizes previous mechanism to handle self-references
17390         nested at any level.
17391         (Is_Self_Referential_Init): Remove, not needed.
17392         (Is_Self_Referential_Init): New predicate to simplify handling of self
17393         referential components in record aggregates.
17394         (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
17395         check for presence of entity before checking for self-reference.
17396         (Has_Default_Init_Comps): Return True if a component association is a
17397         self-reference to the enclosing type, which can only come from a
17398         default initialization.
17399         (Make_OK_Assignment_Statement): If the expression is of the form
17400         Typ'Acc, where Acc is an access attribute, the expression comes from a
17401         default initialized self-referential component.
17402         (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
17403         that has been derived from several abstract interfaces we must also
17404         initialize the tags of the secondary dispatch tables.
17405
17406 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17407             Thomas Quinot  <quinot@adacore.com>
17408             Javier Miranda  <miranda@adacore.com>
17409             Robert Dewar  <dewar@adacore.com>
17410
17411         * exp_attr.adb:
17412         (Expand_Access_To_Protected_Op): If the context indicates that an access
17413         to a local operation may be transfered outside of the object, create an
17414         access to the wrapper operation that must be used in an external call.
17415         (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
17416         target, pass the Valid attribute applied to a floating-point prefix on
17417         to the back end without expansion.
17418         (Storage_Size): Use the new run-time function Storage_Size to retrieve
17419         the allocated storage when it is specified by a per-object expression.
17420         (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
17421         Nothing to do here, the attribute has been rewritten during semantic
17422         analysis.
17423         (Expand_Attribute_Reference): Handle expansion of the new Priority
17424         attribute
17425         (Find_Fat_Info): Handle case of universal real
17426         (Expand_Access_To_Protected_Op): Fix use of access to protected
17427         subprogram from inside the body of a protected entry.
17428         (Expand_Access_To_Protected_Op): Common procedure for the expansion of
17429         'Access and 'Unrestricted_Access, to transform the attribute reference
17430         into a fat pointer.
17431         (Is_Constrained_Aliased_View): New predicate to help determine whether a
17432         subcomponent's enclosing variable is aliased with a constrained subtype.
17433         (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
17434         test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
17435         an aliased prefix must be known to be constrained in order to use True
17436         for the attribute value, and now it's possible for some aliased views
17437         to be unconstrained.
17438
17439 2006-10-31  Robert Dewar  <dewar@adacore.com>
17440
17441         * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
17442         (Expand_Entity_Reference): Correct error of not handling subprogram
17443         formals in current_value processing.
17444
17445 2006-10-31  Javier Miranda  <miranda@adacore.com>
17446             Robert Dewar  <dewar@adacore.com>
17447             Ed Schonberg  <schonberg@adacore.com>
17448             Gary Dismukes  <dismukes@adacore.com>
17449
17450         * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
17451         register in the final list objects containing class-wide interfaces;
17452         otherwise we incorrectly register the tag of the interface in the final
17453         list.
17454         (Make_Controlling_Function_Wrappers): Add missing barrier to do not
17455         generate the wrapper if the parent primitive is abstract. This is
17456         required to report the correct error message.
17457         (Expand_N_Subtype_Indication): Do validity checks on range
17458         (Clean_Task_Names): If an initialization procedure includes a call to
17459         initialize a task (sub)component, indicate that the procedure will use
17460         the secondary stack.
17461         (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
17462         compatibility for interfacing with CPP by default.
17463         (Expand_N_Object_Declaration): Only build an Adjust call when the
17464         object's type is a nonlimited controlled type.
17465         * exp_ch3.adb: Add with and use of Exp_Ch6.
17466         (Expand_N_Object_Declaration): Check for object initialization that is a
17467         call to build-in-place function and apply Make_Build_In_Place_Call_In_
17468         Object_Declaration to the call.
17469         (Freeze_Type): When the designated type of an RACW was not frozen at the
17470         point where the RACW was declared, validate the primitive operations
17471         with respect to E.2.2(14) when it finally is frozen.
17472         (Build_Initialization_Call,Expand_Record_Controller): Rename
17473         Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
17474         return-by-reference has no meaning in Ada 2005.
17475         (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
17476         to register tag of the immediate ancestor interfaces in the
17477         run-time structure.
17478         (Init_Secondary_Tags): Moved to the specification to allow the
17479         initialization of extension aggregates with abstract interfaces.
17480         (Build_Master_Renaming): Make public, for use by function declarations
17481         whose return type is an anonymous access type.
17482         (Freeze_Record_Type): Replace call to Insert_List_Before by call to
17483         Insert_List_Before_And_Analyze after the generation of the specs
17484         associated with null procedures.
17485         (Expand_Tagged_Root): Update documentation in its specification.
17486         (Init_Secondary_Tags): Update documentation.
17487         (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
17488         tibility mode and the immediate ancestor is a CPP_Pragma tagged type
17489         then generate code to inherit the contents of the dispatch table
17490         directly from the ancestor.
17491         (Expand_Record_Controller): Insert controller component after tags of
17492         implemented interfaces.
17493         (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
17494         create null procedure overridings when null procedures are inherited
17495         from interfaces.
17496         (Make_Null_Procedure_Specs): New procedure to generate null procedure
17497         declarations for overriding null primitives inherited from interfaces.
17498         (Is_Null_Interface_Procedure): New function in
17499         Make_Null_Procedure_Specs.
17500         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
17501         immediate ancestor of a tagged type is an abstract interface type we
17502         must generate the specification of the predefined primitives associated
17503         with controlled types (because the dispatch table of the ancestor is
17504         null and hence these entries cannot be inherited). This is required to
17505         elaborate well the dispatch table.
17506
17507 2006-10-31  Javier Miranda  <miranda@adacore.com>
17508             Ed Schonberg  <schonberg@adacore.com>
17509             Bob Duff  <duff@adacore.com>
17510             Gary Dismukes  <dismukes@adacore.com>
17511             Robert Dewar  <dewar@adacore.com>
17512
17513         * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
17514         conversion.
17515         (Expand_N_In): Do validity checks on range
17516         (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
17517         (Expand_N_Allocator): For "new T", if the object is constrained by
17518         discriminant defaults, allocate the right amount of memory, rather than
17519         the maximum for type T.
17520         (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
17521         when the allocator is initialized by a build-in-place call, since the
17522         allocator is already rewritten as a reference to the function result,
17523         and this prevents an unwanted duplication of the function call.
17524         Add with and use of Exp_Ch6.
17525         (Expand_Allocator_Expresssion): Check for an allocator whose expression
17526         is a call to build-in-place function and apply
17527         Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
17528         untagged designated types).
17529         (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
17530         optimization if source or target is biased.
17531         (Expand_N_Allocator): Add comments for case of an allocator within a
17532         function that returns an anonymous access type designating tasks.
17533         (Expand_N_Allocator): apply discriminant checks for access
17534         discriminants of anonymous access types (AI-402, AI-416)
17535
17536 2006-10-31  Bob Duff  <duff@adacore.com>
17537             Robert Dewar  <dewar@adacore.com>
17538             Gary Dismukes  <dismukes@adacore.com>
17539             Ed Schonberg  <schonberg@adacore.com>
17540
17541         * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
17542
17543         * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
17544         (Expand_N_Assignment_Statement): Call
17545         Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
17546         build-in-place function call. Currently, this can happen only for
17547         assignments that come from aggregates.
17548         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
17549         in order to alleviate the upward compatibility introduced by AI-318.
17550         (Expand_N_Extended_Return_Statement): Add support for handling the
17551         return object as a build-in-place result.
17552         (Expand_Non_Function_Return): Implement simple return statements nested
17553         within an extended return.
17554         (Enable_New_Return_Processing): Turn on the new processing of return
17555         statements.
17556         (Expand_Non_Function_Return): For a return within an extended return,
17557         don't raise Program_Error, because Sem_Ch6 now gives a warning.
17558         (Expand_N_Extended_Return_Statement): Implement AI-318
17559         (Expand_Simple_Function_Return): Ditto.
17560         (Expand_N_If_Statement): Handle new -gnatwt warning
17561         (Expand_N_Case_Statement): Handle new -gnatwt warning
17562         (Expand_N_Assignment): Handle assignment to the Priority attribute of
17563         a protected object.
17564         (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
17565         validity checking of assignments to elementary record components.
17566         (Expand_N_Return_Statement): return Class Wide types on the secondary
17567         stack independantly of their controlled status since with HIE runtimes,
17568         class wide types are not potentially controlled anymore.
17569
17570         * expander.adb (Expand): Add case for new N_Extended_Return_Statement
17571         node kind.
17572
17573         * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
17574         Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
17575         it expects a block, procedure, or task. The return statement will get
17576         turned into a block, and Expand_Cleanup_Actions will happen then.
17577
17578 2006-10-31  Robert Dewar  <dewar@adacore.com>
17579             Ed Schonberg  <schonberg@adacore.com>
17580             Bob Duff  <duff@adacore.com>
17581             Gary Dismukes  <dismukes@adacore.com>
17582
17583         * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
17584         capability.
17585         (Expand_Inlined_Call): Tagged types are by-reference types, and
17586         therefore should be replaced by a renaming declaration in the expanded
17587         body, as is done for limited types.
17588         (Expand_Call): If this is a call to a function with dispatching access
17589         result, propagate tag from context.
17590         (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
17591         CPP by default.
17592         (Make_Build_In_Place_Call_In_Assignment): New procedure to do
17593         build-in-place when the right-hand side of an assignment is a
17594         build-in-place function call.
17595         (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
17596         of the explicit dereference of the allocator to the result subtype of
17597         the build-in-place function. This is needed to satisfy type checking
17598         in cases where the caller's return object is created by an allocator for
17599         a class-wide access type and the type named in the allocator is a
17600         specific type.
17601         (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
17602         conversion of the reference to the declared object to the result subtype
17603         of the build-in-place function. This is needed to satisfy type checking
17604         in cases where the declared object has a class-wide type. Also, in the
17605         class-wide case, change the type of the object entity to the specific
17606         result subtype of the function, to avoid passing a class-wide object
17607         without explicit initialization to the back end.
17608         (Register_Interface_DT_Entry): Moved outside the body of
17609         Freeze_Subprogram because this routine is now public; it is called from
17610         Check_Dispatching_Overriding to handle late overriding of abstract
17611         interface primitives.
17612         (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
17613         adding an implicit access actual on a call to a build-in-place function.
17614         (Expand_Actuals): Test for an actual parameter that is a call to a
17615         build-in-place function and apply
17616         Make_Build_In_Place_Call_In_Anonymous_Context to the call.
17617         (Is_Build_In_Place_Function): New function to determine whether an
17618         entity is a function whose calls should be handled as build-in-place.
17619         (Is_Build_In_Place_Function_Call): New function to determine whether an
17620         expression is a function call that should handled as build-in-place.
17621         (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
17622         calls to build-in-place functions as the initialization of an allocator.
17623         (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
17624         handling calls to build-in-place functions in contexts that do not
17625         involve init of a separate object (for example, actuals of subprogram
17626         calls).
17627         (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
17628         handling calls to build-in-place functions as the initialization of an
17629         object declaration.
17630         (Detect_Infinite_Recursion): Add explicit parameter Process to
17631         instantiation of Traverse_Body to avoid unreferenced warning.
17632         (Check_Overriding_Inherited_Interfaces): Removed.
17633         (Register_Interface_DT_Entry): Code cleanup.
17634         (Register_Predefined_DT_Entry): Code cleanup.
17635         (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
17636         inlined statements if within a transient scope.
17637         (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
17638         formal parameters with occurrences of actuals in inlined body, establish
17639         visibility on the proper view of the actual's subtype for the body's
17640         context.
17641         (Freeze_Subprogram): Do nothing if we are compiling under full ABI
17642         compatibility mode and we have an imported CPP subprogram because
17643         for now we assume that imported CPP primitives correspond with
17644         objects whose constructor is in the CPP side (and therefore we
17645         don't need to generate code to register them in the dispatch table).
17646         (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
17647         aligned selected component.
17648         (Add_Call_By_Copy_Node): Add missing code to handle the case in which
17649         the actual of an in-mode parameter is a type conversion.
17650         (Expand_Actuals): If the call does not come from source and the actual
17651         is potentially misaligned, let gigi handle it rather than rejecting the
17652         (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
17653         Class Wide types as returning by reference independantly of their
17654         controlled status since with HIE runtimes class wide types are not
17655         potentially controlled anymore.
17656
17657 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17658
17659         * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
17660         references that are private components of the protected object.
17661         (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
17662         (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
17663         instantiation to deal with warnings.
17664         (Initialize_Protection): If expression for priority is non-static, use
17665         System_Priority as its expected type, in case the expression has not
17666         been analyzed yet.
17667
17668 2006-10-31  Robert Dewar  <dewar@adacore.com>
17669
17670         * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
17671         initialization of Homonym_Len.
17672         (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
17673         names from fully qualified name. Fixes problem of duplicate
17674         external names differing only in the presence of such a block name.
17675
17676 2006-10-31  Thomas Quinot  <quinot@adacore.com>
17677             Pablo Oliveira  <oliveira@adacore.com>
17678
17679         * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
17680         subprogram Ids, even if they are not yet assigned.
17681         (Build_Subprogram_Id): It is now this function that will take care of
17682         calling Assign_Subprogram_Ids if necessary.
17683         (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
17684         should be done only once they are assigned.
17685         (Build_From_Any_Function, case of tagged types): Add missing call to
17686         Allocate_Buffer.
17687         (Corresponding_Stub_Type): New subprogram. Returns the associated stub
17688         type for an RACW type.
17689         (Add_RACW_Features): When processing an RACW declaration for which the
17690         designated type is already frozen, enforce E.2.2(14) rules immediately.
17691         (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
17692         special reordering of controlling formals.
17693
17694         * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
17695         associated stub type for an RACW type.
17696
17697 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17698
17699         * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
17700         fixed-point operations in an integer context, i.e. as operands of a
17701         conversion to an integer type, indicate that result must be rounded.
17702
17703 2006-10-31  Robert Dewar  <dewar@adacore.com>
17704
17705         * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
17706         cases, pass the encoding method, since it is now required by the run
17707         time.
17708
17709         * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
17710         assumption that Str'First = 1.
17711         (Value_Wide_Character): Takes EM (encoding method) parameter and passes
17712         it on to the Value_Wide_Wide_Character call.
17713         (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
17714         properly handles a string of the form quote-encoded_wide_char-quote.
17715
17716         * s-wchcnv.adb: Minor reformatting
17717
17718 2006-10-31  Javier Miranda  <miranda@adacore.com>
17719
17720         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
17721         run-time membership test to ensure that the constructed object
17722         implements the target abstract interface.
17723
17724 2006-10-31  Robert Dewar  <dewar@adacore.com>
17725
17726         * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
17727         Machine_Attribute pragma internally to implement the user pragma.
17728         Add processing for pragma Interface so that it is now completely
17729         equivalent to pragma Import.
17730
17731         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
17732         so that it can be applied to all entities, including record components
17733         and enumeration literals.
17734         (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
17735         priority ranges are correct, verify compatibility against task
17736         dispatching and locking policies, and if everything is correct an entry
17737         is added to the table containing priority specific dispatching entries
17738         for this compilation unit.
17739         (Delay_Config_Pragma_Analyze): Delay processing
17740         Priority_Specific_Dispatching pragmas because when processing the
17741         pragma we need to access run-time data, such as the range of
17742         System.Any_Priority.
17743         (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
17744         Allow pragma Unreferenced as a context item
17745         Add pragma Preelaborable_Initialization
17746         (Analyze_Pragma, case Interface): Interface is extended so that it is
17747         now syntactically and semantically equivalent to Import.
17748         (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
17749         insertion characters.
17750         Add handling for Pragma_Wide_Character_Encoding
17751         (Process_Restrictions_Restriction_Warnings): Ensure that a warning
17752         never supercedes a real restriction, and that a real restriction
17753         always supercedes a warning.
17754         (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
17755         appropriate form.
17756
17757 2006-10-31  Bob Duff  <duff@adacore.com>
17758             Ed Schonberg  <schonberg@adacore.com>
17759             Robert Dewar  <dewar@adacore.com>
17760
17761         * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
17762         Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
17763         Is_Inherently_Limited_Type, because return-by-reference has no meaning
17764         in Ada 2005.
17765         (Find_Node_To_Be_Wrapped): Use new method of determining the result
17766         type of the function containing a return statement, because the
17767         Return_Type field was removed. We now use the Return_Applies_To field.
17768
17769         * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
17770         (Build_Task_Image_Decl): If procedure is not called from an
17771         initialization procedure, indicate that function that builds task name
17772         uses the sec. stack. Otherwise the enclosing initialization procedure
17773         will carry the indication.
17774         (Insert_Actions): Remove N_Return_Object_Declaration. We now use
17775         N_Object_Declaration instead.
17776         (Kill_Dead_Code): New interface to implement -gnatwt warning for
17777         conditional dead code killed, and change implementation accordingly.
17778         (Insert_Actions): Add N_Return_Object_Declaration case.
17779         Correct comment to mention N_Extension_Aggregate node.
17780         (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
17781         attempts to save information for global variables which cannot be
17782         safely tracked.
17783         (Get_Current_Value_Condition): Handle conditions the other way round
17784         (constant on left). Also handle right operand of AND and AND THEN
17785         (Set_Current_Value_Condition): Corresponding changes
17786         (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
17787         (Get_Current_Value_Condition): Handle simple boolean operands
17788         (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
17789         (Get_Current_Value_Condition): If the variable reference is within an
17790         if-statement, does not appear in the list of then_statments, and does
17791         not come from source, treat it as being at unknown location.
17792         (Get_Current_Value_Condition): Enhance to allow while statements to be
17793         processed as well as if statements.
17794         (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
17795         come from source.
17796         (OK_To_Do_Constant_Replacement): Allow constant replacement within body
17797         of loop. This is safe now that we fixed Kill_Current_Values.
17798         (OK_To_Do_Constant_Replacement): Check whether current scope is
17799         Standard, before examining outer scopes.
17800
17801 2006-10-31  Vincent Celier  <celier@adacore.com>
17802
17803         * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
17804         When True, apply VMS treatment to children of packages A, G, I and S.
17805         For F320-016
17806
17807         * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
17808
17809 2006-10-31  Robert Dewar  <dewar@adacore.com>
17810             Ed Schonberg  <schonberg@adacore.com>
17811
17812         * freeze.adb: Add handling of Last_Assignment field
17813         (Warn_Overlay): Supply missing continuation marks in error msgs
17814         (Freeze_Entity): Add check for Preelaborable_Initialization
17815
17816         * g-comlin.adb: Add Warnings (Off) to prevent new warning
17817
17818         * g-expect.adb: Add Warnings (Off) to prevent new warning
17819
17820         * lib-xref.adb: Add handling of Last_Assignment field
17821         (Generate_Reference): Centralize handling of pragma Obsolescent here
17822         (Generate_Reference): Accept an implicit reference generated for a
17823         default in an instance.
17824         (Generate_Reference): Accept a reference for a node that is not in the
17825         main unit, if it is the generic body corresponding to an subprogram
17826         instantiation.
17827
17828         * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
17829
17830         * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
17831         -gnatwq/Q.
17832         (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
17833         exception handler.
17834         (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
17835         use clauses, to avoid messages on packages used to qualify, and also
17836         to avoid messages from obsolescent units.
17837         (Warn_On_Useless_Assignments): Don't generate messages for imported
17838         and exported variables.
17839         (Warn_On_Useless_Assignments): New procedure
17840         (Output_Obsolescent_Entity_Warnings): New procedure
17841         (Check_Code_Statement): New procedure
17842
17843         * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
17844         Change name Is_Ada_2005 to Is_Ada_2005_Only
17845         (Last_Assignment): New field for useless assignment warning
17846
17847 2006-10-31  Olivier Hainque  <hainque@adacore.com>
17848
17849         * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
17850         closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
17851
17852 2006-10-31  Bob Duff  <duff@adacore.com>
17853             Robert Dewar  <dewar@adacore.com>
17854             Ed Schonberg  <schonberg@adacore.com>
17855
17856         * g-awk.adb (Default_Session, Current_Session): Compile this file in
17857         Ada 95 mode, because it violates the new rules for AI-318.
17858
17859         * g-awk.ads: Use overloaded subprograms in every case where we used to
17860         have a default of Current_Session. This makes the code closer to be
17861         correct for both Ada 95 and 2005.
17862
17863         * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
17864         code, relying on the fact that the compiler generates a warning
17865         instead of an error in -gnatg mode.
17866
17867         * lib-xref.ads (Xref_Entity_Letters): Add entry for new
17868         E_Return_Statement entity kind.
17869         Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
17870
17871         * par.adb (P_Interface_Type_Definition): Addition of one formal to
17872         report an error if the reserved word abstract has been previously found.
17873         (SS_End_Type): Add E_Return for new extended_return_statement syntax.
17874
17875         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
17876         parenthesized range attribute usage
17877         (P_Expression_No_Right_Paren): Add missing comment about error recovery.
17878
17879         * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
17880         in the syntax for extended_return_statement. This is not in the latest
17881         RM, but the ARG is expected to issue an AI allowing this.
17882         (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
17883         N_Return_Object_Declaration. We now use N_Object_Declaration instead.
17884         (P_Return_Object_Declaration, P_Return_Subtype_Indication,
17885         P_Return_Statement): Parse the new syntax for extended_return_statement.
17886
17887         * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
17888         Output_End_Missing): Add error-recovery code for the new
17889         extended_return_statement syntax; that is, the new E_Return entry on
17890         the scope stack.
17891
17892         * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
17893         limited to nonlimited, because otherwise we violate the new Ada 2005
17894         rules about returning limited types in function Create_AST_Handler in
17895         s-asthan.adb.
17896
17897         * sem.adb (Analyze): Add cases for new node kinds
17898         N_Extended_Return_Statement and N_Return_Object_Declaration.
17899
17900         * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
17901         type is in the same category as type of context before applying check,
17902         to prevent anomalies in instantiations.
17903         (Resolve_Aggregate): Remove test for limited components in aggregates.
17904         It's unnecessary in Ada 95, because if it has limited components, then
17905         it must be limited. It's wrong in Ada 2005, because limited aggregates
17906         are now allowed.
17907         (Resolve_Record_Aggregate): Move check for limited types later, because
17908         OK_For_Limited_Init requires its argument to have been resolved.
17909         (Get_Value): When copying the component default expression for a
17910         defaulted association in an aggregate, use the sloc of the aggregate
17911         and not that of the original expression, to prevent spurious
17912         elaboration errors, when the expression includes function calls.
17913         (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
17914         were missing. We also didn't handle qualified expressions. Now also
17915         allow function calls. Use new common routine OK_For_Limited_Init.
17916         (Resolve_Extension_Aggregate): Minor fix to bad error message (started
17917         with space can upper case letter).
17918
17919         * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
17920         Has_Static_Discriminants flag
17921         (Record_Type_Declaration): Diagnose an attempt to declare an interface
17922         type with discriminants.
17923         (Process_Range_Expr_In_Decl): Do validity checks on range
17924         (Build_Discriminant_Constraints): Use updated form of
17925         Denotes_Discriminant.
17926         (Process_Subtype): If the subtype is a private subtype whose full view
17927         is a concurrent subtype, introduce an itype reference to prevent scope
17928         anomalies in gigi.
17929         (Build_Derived_Record_Type, Collect_Interface_Primitives,
17930         Record_Type_Declaration):  The functionality of the subprograms
17931         Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
17932         is now performed by a single routine.
17933         (Build_Derived_Record_Type): If the type definition includes an explicit
17934         indication of limitedness, then the type must be marked as limited here
17935         to ensure that any access discriminants will not be treated as having
17936         a local anonymous access type.
17937         (Check_Abstract_Overriding): Issue a detailed error message when an
17938         abstract subprogram was not overridden due to incorrect mode of its
17939         first parameter.
17940         (Analyze_Private_Extension_Declaration): Add support for the analysis of
17941         synchronized private extension declarations. Verify that the ancestor is
17942         a limited or synchronized interface or in the generic case, the ancestor
17943         is a tagged limited type or synchronized interface and all progenitors
17944         are either limited or synchronized interfaces.
17945         Derived_Type_Declaration): Check for presence of private extension when
17946         dealing with synchronized formal derived types.
17947         Process_Full_View): Enchance the check done on the usage of "limited" by
17948         testing whether the private view is synchronized.
17949         Verify that a synchronized private view is completed by a protected or
17950         task type.
17951         (OK_For_Limited_Init_In_05): New function.
17952         (Analyze_Object_Declaration): Move check for limited types later,
17953         because OK_For_Limited_Init requires its argument to have been resolved.
17954         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
17955         in order to alleviate the upward compatibility introduced by AI-318.
17956         (Constrain_Corresponding_Record): If the constraint is for a component
17957         subtype, mark the itype as frozen, to avoid out-of-scope references to
17958         discriminants in the back-end.
17959         (Collect_Implemented_Interfaces): Protect the recursive algorithm of
17960         this subprogram against wrong sources.
17961         (Get_Discr_Value, Is_Discriminant): Handle properly references to a
17962         discriminant of limited type completed with a protected type, when the
17963         discriminant is used to constrain a private component of the type, and
17964         expansion is disabled.
17965         (Find_Type_Of_Object): Do not treat a return subtype that is an
17966         anonymous subtype as a local_anonymous_type, because its accessibility
17967         level is the return type of the enclosing function.
17968         (Check_Initialization): In -gnatg mode, turn the error "cannot
17969         initialize entities of limited type" into a warning.
17970         (OK_For_Limited_Init): Return true for generated nodes, since it
17971         sometimes violates the legality rules.
17972         (Make_Incomplete_Declaration): If the type for which an incomplete
17973         declaration is created happens to be the currently visible entity,
17974         preserve the homonym chain when removing it from visibility.
17975         (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
17976         inherited subprograms.
17977         (Access_Definition): If this is an access to function that is the return
17978         type of an access_to_function definition, context is a type declaration
17979         and the scope of the anonymous type is the current one.
17980         (Analyze_Subtype_Declaration): Add the defining identifier of a regular
17981         incomplete subtype to the set of private dependents of the original
17982         incomplete type.
17983         (Constrain_Discriminated_Type): Emit an error message whenever an
17984         incomplete subtype is being constrained.
17985         (Process_Incomplete_Dependents): Transform an incomplete subtype into a
17986         corresponding subtype of the full view of the original incomplete type.
17987         (Check_Incomplete): Properly detect invalid usage of incomplete types
17988         and subtypes.
17989
17990 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
17991
17992         * g-catiio.ads, g-catiio.adb (Value): New function.
17993         Given an input String, try and parse a valid Time value.
17994
17995 2006-10-31  Vincent Celier  <celier@adacore.com>
17996
17997         * g-debpoo.adb (Is_Valid): Correctly compute Offset using
17998         Integer_Address arithmetic, as in Set_Valid.
17999
18000 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
18001             Robert Dewar  <dewar@adacore.com>
18002
18003         * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
18004         handling executable extension manually and duplicating code.
18005
18006         * make.adb: Implement new -S switch
18007         (Gnatmake): Use new function Osint.Executable_Name instead
18008         of handling executable extension manually.
18009
18010         * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
18011         is specified, the executable name ends with this suffix.
18012         Take advantage of Osint.Executable_Name instead of duplicating code.
18013
18014         * switch-m.adb: Recognize new gnatmake -S switch
18015
18016         * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
18017         variable.
18018         (Get_Target_Parameters): Set Executable_Extension_On_Target if
18019         available.
18020
18021         * makeusg.adb: Add line for gnatmake -S switch
18022
18023 2006-10-31  Vincent Celier  <celier@adacore.com>
18024
18025         * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
18026         call it with -static-libgcc, as there are some platforms, such as
18027         Darwin, where one of these two switches is compulsory to link.
18028
18029 2006-10-31  Vincent Celier  <celier@adacore.com>
18030
18031         * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
18032         instead of ADA_PROJECT_PATH, for the project path.
18033         (Gnatls): When displaying the project path directories, use host dir
18034         specs.
18035
18036         * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
18037         names in the project path, as absolute paths may correspond to
18038         multi-valued VMS logical names.
18039
18040 2006-10-31  Vincent Celier  <celier@adacore.com>
18041
18042         * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
18043         absolute path name.
18044         (Locate_Regular_File): Ditto
18045         (Change_Dir): Remove, no longer used
18046         (Normalize_Pathname): Do not use Change_Dir to get the drive letter
18047         on Windows. Get it calling Get_Current_Dir.
18048         (OpenVMS): Remove imported boolean, no longer needed.
18049         (Normalize_Pathname)[VMS]: Do not resolve directory names.
18050         (Pid_To_Integer): New function to convert a Process_Id to  Integer
18051
18052 2006-10-31  Thomas Quinot  <quinot@adacore.com>
18053
18054         * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
18055         sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
18056         to No_Socket.
18057         (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
18058         W_Sig_Socket.
18059
18060 2006-10-31  Robert Dewar  <dewar@adacore.com>
18061
18062         * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
18063         initial letter o as a zero.
18064
18065 2006-10-31  Robert Dewar  <dewar@adacore.com>
18066
18067         * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
18068
18069 2006-10-31  Robert Dewar  <dewar@adacore.com>
18070
18071         * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
18072         variant records
18073         (Layout_Variant_Record): Retrieve the discriminants from the entity
18074         rather than from the type definition, because in the case of a full
18075         type for a private type we need to take the discriminants from the
18076         partial view.
18077         (Layout_Component_List): When applying the Max operator to variants with
18078         a nonstatic size, check whether either operand is static and scale that
18079         operand from bits to storage units before applying Max.
18080         (Layout_Type): In VMS, if a C-convention access type has no explicit
18081         size clause (and does not inherit one in the case of a derived type),
18082         then the size is reset to 32 from 64.
18083
18084 2006-10-31  Vincent Celier  <celier@adacore.com>
18085
18086         * lib-load.adb (Load_Unit): Skip the test for a unit not found when
18087         its file has already been loaded, according to the unit being loaded,
18088         not to the current value of Multiple_Unit_Index.
18089
18090 2006-10-31  Thomas Quinot  <quinot@adacore.com>
18091             Eric Botcazou  <ebotcazou@adacore.com>
18092             Arnaud Charlet  <charlet@adacore.com>
18093
18094         * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
18095         (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
18096         possible.
18097         (a-except.o): Pass it to the compiler.
18098         (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
18099         (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
18100         a-calend-mingw.adb version.
18101
18102         * Makefile.rtl: Added s-dsaser.
18103         Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
18104         (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
18105         Ada.Dispatching.Round_Robin.
18106         Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
18107
18108         * Make-lang.in: Remove all references to gt-ada-decl.h.
18109         Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
18110         sources.
18111         Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
18112         Update dependencies.
18113
18114         * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
18115
18116 2006-10-31  Vincent Celier  <celier@adacore.com>
18117
18118         * mlib-utl.adb (Initialized): Remove, no longer used
18119         (Initialize): Remove, no longer used
18120         (Ar): If Ar_Exec is null, get the location of the archive builder and,
18121         if there is one, the archive indexer. Fail if the archive builder cannot
18122         be found.
18123         (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
18124         be found.
18125
18126 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18127
18128         * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
18129         Process_Body_Clauses): If the context of a body includes a use clause
18130         for P.Q then a with_clause for P in the same body is not redundant,
18131         even if the spec also has a with_clause on P.
18132         Add missing continuation mark to error msg
18133         (Build_Limited_Views): A limited view of a type is tagged if its
18134         declaration includes a record extension.
18135         (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
18136         node, even if the subunit has errors. This avoids malfunction by
18137         Lib.Check_Same_Extended_Unit in the presence of syntax errors.
18138         (Analyze_Compilation_Unit): Add circuit to make sure we get proper
18139         generation of obsolescent messages for with statements (cannot do
18140         this too early, or we cannot implement avoiding the messages in the
18141         case of obsolescent units withing obsolescent units).
18142         (Install_Siblings): If the with_clause is on a remote descendant of
18143         an ancestor of the current compilation unit, find whether there is
18144         a sibling child unit that is immediately visible.
18145         (Remove_Private_With_Clauses): New procedure, invoked after completing
18146         the analysis of the private part of a nested package, to remove from
18147         visibility the private with_clauses of the enclosing package
18148         declaration.
18149         (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
18150         now centralized in Generate_Reference.
18151         (Install_Limited_Context_Clauses): Remove superfluous error
18152         message associated with unlimited view visible through use
18153         and renamings. In addition, at the point in which the error
18154         is reported, we add the backslash to the text of the error
18155         to ensure that it is reported as a single error message.
18156         Use new // insertion for some continuation messages
18157         (Expand_Limited_With_Clause): Use copy of name rather than name itself,
18158         to create implicit with_clause for parent unit mentioned in original
18159         limited_with_clause.
18160         (Install_Limited_With_Unit): Set entity of parent identifiers if the
18161         unit is a child unit. For ASIS queries.
18162         (Analyze_Subunit): If the subunit appears within a child unit, make all
18163         ancestor child units directly visible again.
18164
18165 2006-10-31  Robert Dewar  <dewar@adacore.com>
18166
18167         * par-ch10.adb (P_Context_Clause): Minor error message fix
18168
18169 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
18170             Javier Miranda  <miranda@adacore.com>
18171
18172         * par-ch12.adb: Grammar update and cleanup.
18173         (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
18174         support for synchronized derived type definitions.
18175         Add the new actual Abstract_Present to every call to
18176         P_Interface_Type_Definition.
18177         (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
18178         a formal object declaration with an access definition or a subtype mark
18179         with a null exclusion.
18180         (P_Generic_Association): Handle association with box, and others_choice
18181         with box, to support Ada 2005 partially parametrized formal packages.
18182
18183 2006-10-31  Robert Dewar  <dewar@adacore.com>
18184             Javier Miranda  <miranda@adacore.com>
18185
18186         * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
18187         (P_Type_Declaration): Remove barrier against the reserved word "limited"
18188         after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
18189         (P_Type_Declaration): Minor code cleanup. Add support for synchronized
18190         private extensions.
18191         (P_Type_Declaration): Add the new actual Abstract_Present to every call
18192         to P_Interface_Type_Definition.
18193         (P_Interface_Type_Definition): Addition of one formal to report an error
18194         if the reserved word abstract has been previously found.
18195         (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
18196         object renaming declaration with an access definition or subtype mark
18197         with a possible null exclusion.
18198
18199         * par-ch9.adb: Minor error msg fix
18200
18201         * par-load.adb: Add missing continuation mark to error msg
18202
18203         * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
18204
18205 2006-10-31  Vincent Celier  <celier@adacore.com>
18206
18207         * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
18208         unknown attribute in unknown package or in package that does not need
18209         to be checked.
18210         (Parse_Package_Declaration): Do not issue warning for unknown package in
18211         quiet output.
18212
18213 2006-10-31  Vincent Celier  <celier@adacore.com>
18214
18215         * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
18216         (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
18217         Packages_To_Check.
18218
18219 2006-10-31  Vincent Celier  <celier@adacore.com>
18220
18221         * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
18222         on VMS, change "__" to '.' before checking the name.
18223         (Record_Ada_Source): Always add the source file name in the list of
18224         of sources, even if it is not the first time, as it is for another
18225         source index.
18226         (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
18227         dot, instead of replacing only the first '_'.
18228
18229         * prj-part.adb (Parse): Convert project file path to canonical form
18230
18231         * prj-proc.adb (Recursive_Process): Make sure that, when a project is
18232         extended, the project id of the project extending it is recorded in its
18233         data, even when it has already been processed as an imported project.
18234
18235 2006-10-31  Robert Dewar  <dewar@adacore.com>
18236
18237         * repinfo.adb (List_Entities): Don't list entities from renaming
18238         declarations.
18239
18240 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
18241             Robert Dewar  <dewar@adacore.com>
18242
18243         * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
18244         only a restriction warning is active for the given restriction. This is
18245         desirable because we do not want to modify code in the case where only
18246         a warning is set.
18247         (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
18248         causes overriding of real restrictions.
18249         Take advantage of new No_Restrictions constant.
18250
18251         * raise.h: (__gnat_set_globals): Change profile.
18252
18253 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
18254
18255         * rtsfind.adb: Remove s-polint from comment as it exists no more.
18256
18257         * rtsfind.ads:
18258         Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
18259         Move all the entities in obsolete package System.PolyORB_Interface to
18260         System.Partition_Interface.
18261         (RE_Storage_Size): New function in System.Tasking.
18262         (RE_Get_Ceiling): New entity.
18263         (RE_Set_Ceiling): New entity.
18264         (RO_PE_Get_Ceiling): New entity.
18265         (RO_RE_Set_Ceiling): New entity.
18266         (Inherit_CPP_DT): New entity
18267
18268 2006-10-31  Robert Dewar  <dewar@adacore.com>
18269
18270         * scng.adb (Scan, case of numeric literal): Better msg for identifier
18271         starting with a digit.
18272
18273 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18274             Thomas Quinot  <quinot@adacore.com>
18275             Javier Miranda  <miranda@adacore.com>
18276             Gary Dismukes  <dismukes@adacore.com>
18277
18278         * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
18279         properly an attempt to apply Unchecked_Access to a protected operation.
18280         (OK_Self_Reference): New subprogram to check the legality of an access
18281         attribute whose prefix is the type of an enclosing aggregate.
18282         Generalizes previous mechanism to handle attribute references nested
18283         arbitrarily deep within the aggregate.
18284         (Analyze_Access_Attribute): An access attribute whose prefix is a type
18285         can appear in an aggregate if this is a default-initialized aggregate
18286         for a self-referential type.
18287         (Resolve_Attribute, case Access): Ditto.
18288         Add support for new implementation defined attribute Stub_Type.
18289         (Eval_Attribute, case Attribute_Stub_Type): New case.
18290         (Analyze_Attribute, case Attribute_Stub_Type): New case.
18291         (Stream_Attribute_Available): Implement using new subprogram from
18292         sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
18293         Has_Specified_Stream_Attribute flag.
18294         Disallow Storage_Size and Storage_Pool for access to subprogram
18295         (Resolve_Attribute, case 'Access et al): Take into account anonymous
18296         access types of return subtypes in extended return statements. Remove
18297         accessibility checks on anonymous access types when Unchecked_Access is
18298         used.
18299         (Analyze_Attribute): Add support for the use of 'Class to convert
18300         a class-wide interface to a tagged type.
18301         Add support for the attribute Priority.
18302         (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
18303         whether the designated type is discriminated with a constrained partial
18304         view and require static matching in that case.
18305         Add local variable Des_Btyp. The Designated_Type
18306         of an access to incomplete subtype is either its non-limited view if
18307         coming from a limited with or its etype if regular incomplete subtype.
18308
18309         * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
18310         Fix predicate to identify and allow cases of (expander-generated)
18311         references to tag of designated object of a RACW.
18312         (Validate_Static_Object_Name): In Ada 2005, a formal object is
18313         non-static, and therefore cannot appear as a primary in a preelaborable
18314         package.
18315         (Has_Stream_Attribute_Definition): New subprogram, abstracted from
18316         Has_Read_Write_Attributes.
18317         (Has_Read_Write_Attributes): Reimplement in termes of
18318         Has_Stream_Attribute_Definition.
18319         (Missing_Read_Write_Attributes): When checking component types in a
18320         record, unconditionally call Missing_Read_Write_Attributes recursively
18321         (remove guard checking for Is_Record_Type / Is_Access_Type).
18322
18323 2006-10-31  Robert Dewar  <dewar@adacore.com>
18324
18325         * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
18326         useless assignments here and conditionalize it on absence of exception
18327         handlers.
18328         (Analyze_Exception_Handlers): Small code reorganization of error
18329         detection code, for new handling of formal packages.
18330
18331 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18332             Hristian Kirtchev  <kirtchev@adacore.com>
18333
18334         * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
18335         that has been constant-folded, preserve information of original tree,
18336         for ASIS uses.
18337         (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
18338         generated private extension declaration if the formal derived type is
18339         synchronized. Carry synchronized present over to the generated private
18340         extension.
18341         (Validate_Derived_Type_Instance): Ensure that the actual of a
18342         synchronized formal derived type is a synchronized tagged type.
18343         (Instantiate_Formal_Package): When creating the instantiation used to
18344         validate the actual package of a formal declared without a box, check
18345         whether the formal itself depends on a prior actual.
18346         (Instantiate_Formal_Subprogram): Create new entities for the defining
18347         identifiers of the formals in the renaming declaration, for ASIS use.
18348         (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
18349         a renaming declaration or a subtype declaration for an actual in an
18350         instance, capture location information of declaration in generic, for
18351         ASIS use.
18352         (Instantiate_Formal_Package): Add comments on needed additional tests.
18353         AI-317 (partial parametrization) is fully implemented.
18354         (Validate_Private_Type_Instance): Add check for actual which
18355         must have preelaborable initialization
18356         Use new // insertion for some continuation messages
18357         (Analyze_Formal_Object_Declaration): Change usage of Expression to
18358         Default_Expression. Add type retrieval when the declaration has an
18359         access definition. Update premature usage of incomplete type check.
18360         (Check_Access_Definition): New subsidiary routine. Check whether the
18361         current compilation version is Ada 05 and the supplied node has an
18362         access definition.
18363         (Instantiate object): Alphabetize local variables. Handle the creation
18364         of new renaming declarations with respect to the kind of definition
18365         used - either an access definition or a subtype mark. Guard against
18366         unnecessary error message in the context of anonymous access types after
18367         they have been resolved. Add check for required null exclusion in a
18368         formal object declaration.
18369         (Switch_View): A private subtype of a non-private type needs to be
18370         switched (the base type can have been switched without its private
18371         dependents because of the last branch of Check_Private_View.
18372         (Check_Private_View): Do not recompute Base_Type (T), instead use cached
18373         value from BT.
18374         (Instantiate_Type): Emit an error message whenever a class-wide type of
18375         a tagged incomplete type is used as a generic actual.
18376         (Find_Actual_Type): Extend routine to handle a component type in a child
18377         unit that is imported from a formal package in a parent.
18378         (Validate_Derived_Type_Instance): Check that analyzed formal and actual
18379         agree on constrainedness, rather than checking against ultimate ancestor
18380         (Instantiate_Subprogram_Body): Create a cross-reference link to the
18381         generic body, for navigation purposes.
18382
18383 2006-10-31  Robert Dewar  <dewar@adacore.com>
18384             Thomas Quinot  <quinot@adacore.com>
18385
18386         * sem_ch13.adb: Storage pool cannot be given for access to subprogram
18387         type.
18388         (New_Stream_Subprogram): When processing an attribute definition clause
18389         for a stream-oriented subprogram, record an entity node occurring at
18390         the point of clause to use for checking the visibility of the clause,
18391         as defined by 8.3(23) as amended by AI-195.
18392         (New_Stream_Subprogram): New procedure, factoring behaviour from both
18393          New_Stream_Function and New_Stream_Procedure.
18394         (New_Stream_Function, New_Stream_Procedure): Removed.
18395         (Analyze_Attribute_Definition_Clause, case Address): Check new
18396         Alignment_Check check
18397
18398 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18399             Javier Miranda  <miranda@adacore.com>
18400             Robert Dewar  <dewar@adacore.com>
18401
18402         * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
18403         generate the same errors compiling under -gnatc.
18404         (Try_Object_Operation): If no candidate interpretation succeeds, but
18405         there is at least one primitive operation with the right name, report
18406         error in call rather than on a malformed selected component.
18407         (Analyze_Selected_Component): If the prefix is an incomplete type from
18408         a limited view, and the full view is available, use the full view to
18409         determine whether this is a prefixed call to a primitive operation.
18410         (Operator_Check): Verify that a candidate interpretation is a binary
18411         operation before checking the type of its second formal.
18412         (Analyze_Call): Add additional warnings for function call contexts not
18413         yet supported.
18414         (Analyze_Allocator): Move the check for "initialization not allowed for
18415         limited types" after analyzing the expression. This is necessary,
18416         because OK_For_Limited_Init looks at the structure of the expression.
18417         Before analysis, we don't necessarily know what sort of expression it
18418         is. For example, we don't know whether F(X) is a function call or an
18419         indexed component; the former is legal in Ada 2005; the latter is not.
18420         (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
18421         were missing. We also didn't handle qualified expressions. Now also
18422         allow function calls. Use new common routine OK_For_Limited_Init.
18423         (Analyze_Type_Conversion): Do not perform some legality checks in an
18424         instance, because the error message will be redundant or spurious.
18425         (Analyze_Overloaded_Selected_Component): Do not do style check when
18426         setting an entity, since we do not know it is the right entity yet.
18427         (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
18428         (Analyze_Overloaded_Selected_Component): Same change
18429         (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
18430         since regular incomplete subtypes are transformed into corresponding
18431         subtypes of their full views.
18432         (Complete_Object_Operation): Treat name of transformed subprogram call
18433         as coming from source, for browsing purposes.
18434         (Try_Primitive_Operation): If formal is an access parameter, compare
18435         with base type of object to determine whether it is a primitive
18436         operation.
18437         (Operator_Check): If no interpretation of the operator matches, check
18438         whether a use clause on any candidate might make the operation legal.
18439         (Try_Class_Wide_Operation): Check whether the first parameter is an
18440         access type whose designated type is class-wide.
18441
18442 2006-10-31  Robert Dewar  <dewar@adacore.com>
18443             Ed Schonberg  <schonberg@adacore.com>
18444             Gary Dismukes  <dismukes@adacore.com>
18445
18446         * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
18447         warn on infinite loops.
18448         Add \\ to some continuation messages
18449         (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
18450         (Process_Bounds): If the bounds are integer literals that result from
18451         constant-folding, and they carry a user-defined type, preserve that type
18452         rather than treating this as an integer range.
18453         (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
18454         (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
18455         (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
18456         left hand side of assignment.
18457         (Analyze_Assignment): Add suport to manage assigments to the attribute
18458         priority of a protected object.
18459         (Check_Possible_Current_Value_Condition): Allow fully qualified names
18460         not just identifiers.
18461         (Check_Possible_Current_Value_Condition): Acquire left operand of AND
18462         or AND THEN for possible tracking.
18463         (Analyze_Iteration_Scheme): Check for setting Current_Value for the
18464         case of while loops so we can track values in the loop body.
18465
18466 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18467             Hristian Kirtchev  <kirtchev@adacore.com>
18468             Bob Duff  <duff@adacore.com>
18469
18470         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
18471         procedure cannot be a protected operation (it is a basic_declaration,
18472         not a subprogram_declaration).
18473         (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
18474         Subp. Add logic for entry processing.
18475         (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
18476         Determine whether an entry or subprogram of a protected or task type
18477         override an inherited primitive of an implemented interface.
18478         (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
18479         Update the actual used in calls to Check_Overriding_Indicator.
18480         (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
18481         generate the proper reference to the parent unit, for cross-reference.
18482         (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
18483         Is_Formal.
18484         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
18485         (Add_Extra_Formal): Revise procedure to allow passing in associated
18486         entity, scope, and name suffix, and handle setting of the new
18487         Extra_Formals field.
18488         (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
18489         pass new parameters. Add support for adding the new extra access formal
18490         for functions whose calls are treated as build-in-place.
18491         (Analyze_A_Return_Statement): Correct casing in error message.
18492         Move Pop_Scope to after Analyze_Function_Return, because an extended
18493         return statement really is a full-fledged scope. Otherwise, visibility
18494         doesn't work right. Correct use of "\" for continuation messages.
18495         (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
18496         evilly trying to call Analyze_Object_Declaration directly. Otherwise,
18497         the node doesn't get properly marked as analyzed.
18498         (Analyze_Subprogram_Body): If subprogram is a function that returns
18499         an anonymous access type that denotes a task, build a Master Entity
18500         for it.
18501         (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
18502         proper usage of null exclusion in a result definition.
18503         (Process_Formals): Code cleanup and new error message.
18504         (Process_Formals): Detect incorrect application of null exclusion to
18505         non-access types.
18506         (Conforming_Types): Handle conformance between [sub]types and itypes
18507          generated for entities that have null exclusions applied to them.
18508         (Maybe_Primitive_Operation): Add an additional type retrieval when the
18509          base type is an access subtype. This case arrises with null exclusions.
18510         (New_Overloaded_Entity): Do not remove the overriden entity from the
18511         homonym chain if it corresponds with an abstract interface primitive.
18512         (Process_Formals): Replace membership test agains Incomplete_Kind with a
18513         call to the synthesized predicate Is_Incomplete_Type.
18514         (Analyze_Subprogram_Body): Check wrong placement of abstract interface
18515         primitives.
18516         (Analyze_Subprogram_Declaration): Check that abstract interface
18517         primitives are abstract or null.
18518         (Analyze_Subprogram_Specification): Remove previous check for abstract
18519         interfaces because it was not complete.
18520         (Has_Interface_Formals): Removed.
18521
18522 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18523             Javier Miranda  <miranda@adacore.com>
18524
18525         * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
18526         of Analyze_Package_Body, to create Itype references for anonymous
18527         access types created in the package declaration, whose designated types
18528         may have only a limited view.
18529         (Analyze_Package_Specification): For the private part of a nested
18530         package, install private_with_clauses of enclosing compilation unit if
18531         we are in its visible part.
18532         (Declare_Inherited_Private_Subprograms): Complete barrier
18533         to ensure that the primitive operation has an alias to some parent
18534         primitive. This is now required because, after the changes done for the
18535         implementation of abstract interfaces, the contents of the list of
18536         primitives has entities whose alias attribute references entities of
18537         such list of primitives.
18538         (Analyze_Package_Specification): Simplify code that handles parent units
18539         of instances and formal packages.
18540         (Uninstall_Declarations): Check the convention consistency among
18541         primitive overriding operations of a tagged record type.
18542
18543 2006-10-31  Robert Dewar  <dewar@adacore.com>
18544             Hristian Kirtchev  <kirtchev@adacore.com>
18545             Javier Miranda  <miranda@adacore.com>
18546             Ed Schonberg  <schonberg@adacore.com>
18547
18548         * sem_ch8.adb: Minor error msg rewording
18549         (Undefined): When checking for misspellings, invert arguments (to get
18550         expected and found set right)
18551         (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
18552         (Analyze_Generic_Renaming): Same fix
18553         (Use_One_Package): Do not take into account the internal entities of
18554         abstract interfaces during the analysis of entities that are marked
18555         as potentially use-visible.
18556         (Find_Type): Handle the case of an attribute reference for
18557         implementation defined attribute Stub_Type (simply let the analysis of
18558         the attribute reference rewrite it).
18559         (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
18560         type that appears in a Use_Type clause.
18561         (Analyze_Object_Renaming): Add support for renaming of the Priority
18562         attribute.
18563         (Find_Type): In Ada 2005, a task type can be used within its own body,
18564         when it appears in an access definition.
18565         (Analyze_Object_Renaming): Remove warning on null_exclusion.
18566         (Analyze_Object_Renaming): Introduce checks for required null exclusion
18567          in a formal object declaration or in a subtype declaration.
18568         (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
18569         (Check_Null_Exclusion): New local routine to
18570         Analyze_Subprogram_Renaming. Check whether the formals and return
18571         profile of a renamed subprogram have required null exclusions when
18572         their counterparts of the renaming already impose them.
18573         (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
18574         Determine whether an entity is inside a generic scope.
18575         (In_Open_Scope): First pass of documentation update.
18576         (Find_Expanded_Name): Add support for shadow entities associated with
18577         limited withed packages. This is required to handle nested packages.
18578         (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
18579         that makes a renaming of a limited withed package illegal.
18580
18581 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
18582             Ed Schonberg  <schonberg@adacore.com>
18583
18584         * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
18585         Check_Overriding_Indicator.
18586         (Analyze_Task_Definition): Ditto.
18587         (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
18588         (Check_Overriding_Indicator): To find overridden interface operation,
18589         examine only homonyms that have an explicit subprogram declaration, not
18590         inherited operations created by an unrelated type derivation.
18591         (Check_Overriding_Indicator): When checking for the presence of "null"
18592         in a procedure, ensure that the queried node is a procedure
18593         specification.
18594         (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
18595         type when the formal is an access to variable.
18596         (Analyze_Protected_Type): Add check for Preelaborable_Initialization
18597         (Analyze_Task_Type): Same addition
18598         (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
18599         provide navigation capabilities for entries.
18600
18601 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
18602             Ed Schonberg  <schonberg@adacore.com>
18603             Javier Miranda  <miranda@adacore.com>
18604             Gary Dismukes  <dismukes@adacore.com>
18605
18606         * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
18607         inherited from an interface ancestor by another interface in the
18608         context of an instance as 'late'.
18609         (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
18610         of a call to a function that dispatches on access result.
18611         (Check_Dispatching_Operation): In case of late overriding of a primitive
18612         that covers abstract interface subprograms we register it in all the
18613         secondary dispatch tables associated with abstract interfaces.
18614         (Check_Dispatching_Call): Add check that a dispatching call is not made
18615         to a function with a controlling result of a limited type. This is a
18616         current implementation restriction.
18617         (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
18618         (Check_Dispatching_Operation): Do no emit a warning if the controlling
18619         argument is an interface type that is a generic formal.
18620         (Is_Interface_Subprogram): Removed.
18621         (Check_Dispatching_Operation): If the subprogram is not a dispatching
18622         operation, check the formals to handle the case in which it is
18623         associated with an abstract interface type.
18624
18625 2006-10-31  Robert Dewar  <dewar@adacore.com>
18626             Ed Schonberg  <schonberg@adacore.com>
18627
18628         * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
18629         Add new calls to this procedure during traversal
18630         (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
18631         another unit if expansion is disabled.
18632
18633 2006-10-31  Robert Dewar  <dewar@adacore.com>
18634
18635         * sem_eval.adb (Compile_Time_Compare): Make use of information from
18636         Current_Value in the conditional case, to evaluate additional
18637         comparisons at compile time.
18638
18639 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18640             Hristian Kirtchev  <kirtchev@adacore.com>
18641             Javier Miranda  <miranda@adacore.com>
18642
18643         * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
18644         subprogram type to provide better diagnostics in case of ambiguity.
18645         (Covers): Handle coverage of formal and actual anonymous access types in
18646         the context of generic instantiation.
18647         (Covers/Interface_Present_In_Ancestors): Use the base type to manage
18648         abstract interface types; this is required to handle concurrent types
18649         with discriminants and abstract interface types.
18650         (Covers): Include type coverage of both regular incomplete subtypes and
18651         incomplete subtypes of incomplete type visibles through a limited with
18652         clause.
18653
18654 2006-10-31  Robert Dewar  <dewar@adacore.com>
18655             Hristian Kirtchev  <kirtchev@adacore.com>
18656             Ed Schonberg  <schonberg@adacore.com>
18657
18658         * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
18659         messages for entities in packages which are not used.
18660         (Collect_Synchronized_Interfaces): New procedure.
18661         (Overrides_Synchronized_Primitive): New function.
18662         (Denotes_Discriminant): Extend predicate to apply to task types.
18663         Add missing continuation marks in error msgs
18664         (Unqualify): New function for removing zero or more levels of
18665         qualification from an expression. There are numerous places where this
18666         ought to be used, but we currently only deal properly with zero or one
18667         level.
18668         (In_Instance); The analysis of the actuals in the instantiation of a
18669         child unit is not within an instantiation, even though the parent
18670         instance is on the scope stack.
18671         (Safe_To_Capture_Value): Exclude the case of variables that are
18672         renamings.
18673         (Check_Obsolescent): Removed
18674         (Is_Aliased_View): A reference to an enclosing instance in an aggregate
18675         is an aliased view, even when rewritten as a reference to the target
18676         object in an assignment.
18677         (Get_Subprogram_Entity): New function
18678         (Known_To_Be_Assigned): New function
18679         (Type_Access_Level): Compute properly the access level of a return
18680         subtype that is an anonymous access type.
18681         (Explain_Limited_Type): Correct use of "\" for continuation messages.
18682         (Is_Transfer): The new extended_return_statement causes a transfer of
18683         control.
18684         (Has_Preelaborable_Initialization): New function
18685         (Has_Null_Exclusion): New function. Given a node N, determine whether it
18686         has a null exclusion depending on its Nkind.
18687         Change Is_Lvalue to May_Be_Lvalue
18688         (May_Be_Lvalue): Extensive additional code to deal with subprogram
18689         arguments (IN parameters are not Lvalues, IN OUT parameters are).
18690         (Safe_To_Capture_Value): Extend functionality so it can be used for
18691         the current value condition case.
18692         (Has_Compatible_Alignment): New function
18693         (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
18694         objects to handle the Ada 2005 case, where aliasedness no longer implies
18695         that the object is constrained. In particular, for dereferenced names,
18696         the designated object must be assumed to be unconstrained.
18697         (Kill_Current_Values): Properly deal with the case where we encounter
18698         a loop in the scope chain.
18699         (Safe_To_Capture_Value): Do not let a loop stop us from capturing
18700         a value.
18701         (Compile_Time_Constraint_Error): Improve error message in error case
18702
18703         * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
18704         associated with entities of abstract interface primitives.
18705         Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
18706
18707 2006-10-31  Robert Dewar  <dewar@adacore.com>
18708
18709         * s-osinte-tru64.adb:
18710         Mark Asm statements Volatile to prevent warnings (seems a
18711         reasonable change anyway)
18712         Fixes new warnings
18713
18714         * s-mastop-irix.adb: Add Volatile to Asm statements
18715         Suppresses warning, and seems appropriate in any case
18716
18717         * s-osinte-vms.adb: Add Volatile to Asm statement
18718
18719         * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
18720
18721         * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
18722         returned.
18723         Add call to Check_Code_Statement
18724
18725 2006-10-31  Robert Dewar  <dewar@adacore.com>
18726             Ed Schonberg  <schonberg@adacore.com>
18727             Bob Duff  <duff@adacore.com>
18728
18729         * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
18730         Synchronized_Present): Add Formal_Derived_Type_Definition and
18731         Private_Extension_Declaration to the list of assertions.
18732         (Is_Entry_Barrier_Function): New flag
18733         (Has_Self_Reference): New flag on aggregates, to indicate that they
18734         contain a reference to the enclosing type, inserted through a default
18735         initialization.
18736         (Next_Rep_Item): Move from Node4 to Node5.
18737         (Entity): Add this field for N_Attribute_Definition_Clause.
18738         (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
18739         (N_Return_Object_Declaration): Remove this node kind. We now use
18740         N_Object_Declaration instead.
18741         (Actual_Designated_Subtype): Move to a different place to make room in
18742         N_Extended_Return_Statement.
18743         (Procedure_To_Call): Move to a different place to make room in
18744         N_Extended_Return_Statement.
18745         (Return_Type): Removed this field to make room in return statements
18746         (both kinds).
18747         (Return_Statement_Entity): New field in return statements, in part to
18748         replace Return_Type, and in part to support the fact that return
18749         statements are now pushed on the scope stack during semantic analysis.
18750         (Return_Object_Declarations): New field to support extended return
18751         statements.
18752         (N_Extended_Return_Statement): New node for extended_return_statement
18753         nonterminal.
18754         (N_Return_Object_Declaration): New node for part of
18755         extended_return_statement nonterminal. Needed because all the necessary
18756         fields won't fit in N_Extended_Return_Statement.
18757         Generic_associations now carry the Box_Present flag, to indicate a
18758         default for an actual in a partially parametrized formal package.
18759
18760         * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
18761         (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
18762         and for the new predefined dispatching policies: EDF_Across_Priorities,
18763         Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
18764         Introduce new name Stub_Type for implementation defined attribute.
18765         Add pragma Preelaborable_Initialization
18766         Add entry for Priority attribute.
18767         Add Pragma_Wide_Character_Encoding
18768         (Get_Convention_Name): Given a convention id, this function returns the
18769         corresponding name id from the names table.
18770
18771 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18772             Robert Dewar  <dewar@adacore.com>
18773             Bob Duff  <duff@adacore.com>
18774
18775         * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
18776         print null exclusion twice in the case of an access definition,
18777         Implement new -gnatL switch
18778         Remove N_Return_Object_Declaration. We now use
18779         N_Object_Declaration instead. Implement the case for
18780         N_Extended_Return_Statement. Alphabetize the cases.
18781         Add cases for new nodes N_Extended_Return_Statement and
18782         N_Return_Object_Declaration. The code is not yet written.
18783         Update the output for N_Formal_Object_Declaration
18784         and N_Object_Renaming_Declaration.
18785         (Write_Itype): Account for the case of a modular integer subtype whose
18786         base type is private.
18787
18788 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
18789
18790         * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
18791         Remove elaboration code, now done in the binder.
18792
18793         * s-rident.ads: Make this unit Preelaborate.
18794         (No_Restrictions): New constant used to clean up code and follow
18795         preelaborate constraints.
18796
18797         * s-stalib.adb:
18798         Add System.Restrictions dependence, referenced directly from the
18799         binder generated file.
18800
18801 2006-10-31  Gary Dismukes  <dismukes@adacore.com>
18802
18803         * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
18804         True when AAMP extended floating-point is in use (48-bit). Change type
18805         ByteLF to ByteLLF, add new array type ByteLF and condition the size of
18806         the two byte array types on AFloat. Change type of IV_Ilf overlay
18807         variable from Byte8 to ByteLF. Add appropriate initializations of
18808         floating-point overlays for AAMP cases.
18809
18810 2006-10-31  Javier Miranda  <miranda@adacore.com>
18811
18812         * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
18813         (Get_Ceiling): New subprogram that returns
18814         the ceiling priority of the protected object.
18815         (Set_Ceiling): New subprogram that sets the new ceiling priority of
18816         the protected object.
18817
18818         * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
18819
18820         * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
18821
18822 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
18823
18824         * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
18825         requeuing to the same protected object to give higher priority tasks
18826         the opportunity to execute.
18827
18828 2006-10-31  Robert Dewar  <dewar@adacore.com>
18829
18830         * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
18831         add more precise check for the character sequence that follows '[' to
18832         avoid possible confusion in case if '[' is the last character of a
18833         string literals.
18834         (Scan_Wide): Always allow brackets encoding
18835
18836 2006-10-31  Olivier Hainque  <hainque@adacore.com>
18837
18838         * s-stchop.ads: make this unit preelaborate. This is desirable in
18839         general and made mandatory by the use of this unit by s-taprop which
18840         is itself preelaborate.
18841
18842         * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
18843         Td_Events component.
18844
18845 2006-10-31  Vincent Celier  <celier@adacore.com>
18846
18847         * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
18848         in file names.
18849
18850 2006-10-31  Vincent Celier  <celier@adacore.com>
18851
18852         * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
18853
18854 2006-10-31  Vincent Celier  <celier@adacore.com>
18855
18856         * makegpr.adb (Check_Compilation_Needed): Take into account path names
18857         with spaces.
18858         (Check_Compilation_Needed): When checking a C or C++ source, do not
18859         resolve symbolic links.
18860         (Display_Command): New Boolean parameter Ellipse, defaulted to False.
18861         When not in verbose mode and Ellipse is True, display "..." for the
18862         first argument with Display set to False.
18863         (Build_Global_Archive): Always set Display True for the first object
18864         file. Call Display_Command with Ellipse set to True.
18865
18866 2006-10-31  Matt Heaney  <heaney@adacore.com>
18867
18868         * a-crbtgo.ads: Commented each subprogram
18869
18870         * a-crbtgo.adb: Added reference to book from which algorithms were
18871         adapted.
18872
18873         * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
18874         indicate which child.
18875         (Generic_Conditional_Insert): changed parameter name from "Success" to
18876         "Inserted".
18877         (Generic_Unconditional_Insert_With_Hint): improved algorithm
18878
18879         * a-coorse.adb (Replace_Element): changed parameter name in call to
18880         conditional insert operation.
18881
18882         * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
18883
18884         * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
18885         Generic_Iteration
18886
18887         * a-ciorse.adb (Replace_Element): changed parameter name in call to
18888         conditional insert operation.
18889
18890         * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
18891         Generic_Iteration.
18892
18893         * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
18894         instead of mode inout.
18895
18896         * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
18897         draft
18898         (Generic_Read): preserve existing buckets array if possible
18899         (Generic_Write): don't send buckets array length anymore
18900
18901         * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
18902         instead of mode inout.
18903
18904         * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
18905         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
18906
18907         * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
18908         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
18909         (Replace_Element): local operation is now an instantiation
18910
18911         * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
18912         check current length.
18913         (Generic_Replace_Element): new operation
18914
18915 2006-10-31  Doug Rupp  <rupp@adacore.com>
18916
18917         * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
18918         Call TBK$SYMBOLIZE without omitting parameters.
18919
18920 2006-10-31  Vincent Celier  <celier@adacore.com>
18921
18922         * symbols-processing-vms-ia64.adb,
18923         symbols-processing-vms-alpha.adb (Process): Do not include symbols
18924         that come from generic instantiations in bodies.
18925
18926 2006-10-31  Pat Rogers  <rogers@adacore.com>
18927
18928         * a-rttiev.ads, a-rttiev.adb:
18929         This is a significant redesign primarily for the sake of automatic
18930         timer task termination but also to fix a design flaw.
18931         Therefore we are now using an RTS lock, instead of a protected
18932         object, to provide mutual exclusion to the queue of pending events
18933         and the type Timing_Event is no longer a protected type.
18934
18935 2006-10-31  Robert Dewar  <dewar@adacore.com>
18936             Cyrille Comar  <comar@adacore.com>
18937             Ben Brosgol  <brosgol@adacore.com>
18938
18939         * debug.adb:  Update flags documentation
18940
18941         * gnat_ugn.texi: Add documentation for new -gnatwq switch
18942         Clean up documentation for several other warning switches
18943         Clarify how task stack size can be specified with various
18944         versions of Windows.
18945         Add note that -gnatVo includes ranges including loops
18946         Add documentation for -gnatL switch
18947         Add note on elaboration warning for initializing variables
18948         Add documentation for new -gnatwt warning switch
18949         Document new form of pragma Warnings (On|Off, string)
18950         Add comment on use of pragma Warnings to control warnings
18951         Add documentation for -gnatjnn switch
18952         Modify section on interfacing with C for VMS 64-bit.
18953         Add doc for -gnatVe/E
18954         Add documentation of new warning flags -gnatww/-gnatwW
18955         Add warnings about address clause overlays to list of warnings
18956         (Exception Handling Control): Document that the option --RTS must be
18957         used consistently for gcc and gnatbind.
18958         Clarify that inlining is not always possible
18959         Update documentation on pragma Unchecked_Union.
18960
18961         * gnat_rm.texi:
18962         Add documentation for new extended version of pragma Obsolescent
18963         Add documentation for implementation defined attribute 'Stub_Type.
18964         Add note on use of Volatile in asm statements
18965         Add documentation on use of pragma Unreferenced in context clause
18966         Document new form of pragma Warnings (On|Off, pattern)
18967         Document pragma Wide_Character_Encoding
18968         Add note that pragma Restrictions (No_Elaboration_Code) is only fully
18969         enforced if code generation is active.
18970         Add section on pragma Suppress to document GNAT specific check
18971         Alignment_Check
18972         Clarify difference between No_Dispatching_Calls & No_Dispatch.
18973         Add documentation for pragma Restrictions (No_Elaboration_Code)
18974
18975         * gnat-style.texi:
18976         Add comments on layout of subprogram local variables in the
18977         presence of nested subprograms.
18978
18979         * ug_words: Resync.
18980
18981         * elists.ads: Minor reformatting
18982         Node returns Node_Or_Entity_Id (doc change only)
18983
18984         * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
18985
18986         * g-arrspl.ads (Create): Update comments.
18987
18988         * sem.ads: Add details on the handling of the scope stack.
18989
18990         * usage.adb: Update documentation.
18991
18992         * validsw.ads, validsw.adb:
18993         Add definition of Validity_Check_Components and implement -gnatVe/E
18994
18995         * vms_data.ads: Add missing VMS qualifiers.
18996
18997         * s-addope.ads: Add documentation on overflow and divide by zero
18998
18999 2006-10-31  Robert Dewar  <dewar@adacore.com>
19000             Thomas Quinot  <quinot@adacore.com>
19001             Arnaud Charlet  <charlet@adacore.com>
19002
19003         * fmap.adb: Put routines in alpha order
19004
19005         * g-boumai.ads: Remove redundant 'in' keywords
19006
19007         * g-cgi.adb: Minor reformatting
19008
19009         * g-cgi.ads: Remove redundant 'in' keywords
19010
19011         * get_targ.adb: Put routines in alpha order
19012
19013         * prj-attr.ads: Minor reformatting
19014
19015         * s-atacco.ads: Minor reformatting
19016
19017         * scn.adb: Put routines in alpha order
19018
19019         * sinput-l.adb: Minor comment fix
19020
19021         * sinput-p.adb: Minor comment fix
19022
19023         * s-maccod.ads: Minor reformatting
19024
19025         * s-memory.adb: Minor reformatting
19026
19027         * s-htable.adb: Fix typo in comment.
19028
19029         * s-secsta.adb: Minor comment update.
19030
19031         * s-soflin.adb: Minor reformatting
19032
19033         * s-stoele.ads:
19034         Add comment about odd qualification in Storage_Offset declaration
19035
19036         * s-strxdr.adb:
19037         Remove unnecessary 'in' keywords for formal parameters.
19038
19039         * treeprs.adt: Minor reformatting
19040
19041         * urealp.adb: Put routines in alpha order
19042
19043         * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
19044         taking string.
19045
19046         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
19047
19048         * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
19049
19050         * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
19051         workaround as on other platforms.
19052
19053         * g-eacodu-vms.adb: Remove redundant 'in' keywords
19054         * g-expect-vms.adb: Remove redundant 'in' keywords
19055
19056         * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
19057         clear error message if the list-of-files file cannot be opened.
19058
19059         * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
19060         equality operator is always visible.
19061
19062         * lang.opt: Woverlength-strings: New option.
19063
19064         * nmake.adt:
19065         Update copyright, since nmake.ads and nmake.adb have changed.
19066
19067         * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
19068         (Binder_Output_Time_Stamps_Set): removed.
19069         (Old_Binder_Output_Time_Stamp): idem.
19070         (New_Binder_Output_Time_Stamp): idem.
19071         (Recording_Time_From_Last_Bind): idem.
19072         (Recording_Time_From_Last_Bind): Make constant.
19073
19074         * output.ads, output.adb (Write_Str): Allow LF characters
19075         (Write_Spaces): New procedure
19076
19077         * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
19078
19079         * inline.adb: Minor reformatting
19080
19081         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
19082
19083         * s-mastop-vms.adb: Remove redundant 'in' keywords
19084
19085         * s-osprim-vms.adb: Remove redundant 'in' keywords
19086
19087         * s-trafor-default.adb: Remove redundant 'in' keywords
19088
19089         * 9drpc.adb: Remove redundant 'in' keywords
19090
19091         * s-osinte-mingw.ads: Minor reformatting
19092
19093         * s-inmaop-posix.adb: Minor reformatting
19094
19095         * a-direio.ads: Remove quotes from Compile_Time_Warning message
19096
19097         * a-exexda.adb: Minor code reorganization
19098
19099         * a-filico.adb: Minor reformatting
19100
19101         * a-finali.adb: Minor reformatting
19102
19103         * a-nudira.ads: Remove quote from Compile_Time_Warning message
19104
19105         * a-numeri.ads: Minor reformatting
19106
19107         * a-sequio.ads: Remove quotes from Compile_Time_Warning message
19108
19109         * exp_pakd.ads: Fix obsolete comment
19110
19111         * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
19112         a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
19113         Probably not a bug, but certainly neater and more efficient.
19114
19115         * a-tienio.adb: Minor reformatting
19116
19117         * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
19118         Avoid assuming low bound of string is 1.
19119
19120         * gnatbind.adb: Change Bindusg to package and rename procedure as
19121         Display, which now ensures that it only outputs usage information once.
19122         (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
19123
19124         * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
19125         Table'First.
19126
19127         * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
19128         warning.
19129         (Match): Add pragma Assert to ensure that Matches'First is zero
19130
19131         * g-regpat.ads (Match): Document that Matches lower bound must be zero
19132
19133         * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
19134         documented preconditions (also kills warnings about bad indexes).
19135
19136         * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
19137         is 1.
19138         (Build_Import_Library): Ditto;
19139
19140         * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
19141
19142         * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
19143
19144         * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
19145         lower bound of choice table is 1.
19146
19147         * sem_case.ads (Analyze_Choices): Document that lower bound of
19148         Choice_Table is 1.
19149
19150         * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
19151         string is 1.
19152
19153         * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
19154         and add appropriate Assert pragma to suppress warnings.
19155
19156         * atree.h, atree.ads, atree.adb
19157         Change Elist24 to Elist25
19158         Add definitions of Field28 and Node28
19159         (Traverse_Field): Use new syntactic parent table in sinfo.
19160
19161         * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
19162
19163         * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
19164
19165         * exp_tss.adb: Put routines in alpha order
19166
19167         * fe.h: Remove redundant declarations.
19168
19169 2006-10-23 Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
19170
19171         * utils.c (builtin_function): Rename to gnat_builtin_function.
19172         Move common code to add_builtin_function.
19173         * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
19174         gnat_builtin_function.
19175         * gigi.h (builtin_function): Rename to gnat_builtin_function.
19176         Change the signature.
19177
19178 2006-10-16  Brooks Moses  <bmoses@stanford.edu>
19179
19180         * Makefile.in: Add TEXI2PDF definition.
19181         * Make-lang.in: Add "ada.pdf" target.
19182
19183 2006-10-03  Kazu Hirata  <kazu@codesourcery.com>
19184
19185         * decl.c, utils.c: Fix comment typos.
19186         * utils.c: Fix a typo.
19187
19188 2006-09-28  Eric Botcazou  <ebotcazou@adacore.com>
19189
19190         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
19191         on "pure" Ada subprograms if SJLJ exceptions are used.
19192         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
19193         on the declaration node of JMPBUF_SAVE.
19194         * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
19195         of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
19196         * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
19197
19198 2006-08-20  Laurent Guerby  <laurent@guerby.net>
19199
19200         PR ada/28716
19201         g-socket.adb (Bind_Socket): Call Set_Address.
19202
19203 2006-09-15  Eric Botcazou  <ebotcazou@adacore.com>
19204
19205         PR ada/15802
19206         * decl.c (same_discriminant_p): New static function.
19207         (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
19208         subtype and we have discriminants, fix up the COMPONENT_REFs
19209         for the discriminants to make them reference the corresponding
19210         fields of the parent subtype after it has been built.
19211
19212 2006-09-15  Roger Sayle  <roger@eyesopen.com>
19213
19214         PR ada/18817
19215         * utils.c (max_size): Perform constant folding of (A ? B : C) - D
19216         into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
19217
19218 2006-09-13  Olivier Hainque  <hainque@adacore.com>
19219
19220         PR ada/29025
19221         * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
19222         of a SAVE_EXPR, just make the operand addressable/not-readonly and
19223         let the common gimplifier code make and propagate a temporary copy.
19224         (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
19225         out/in-out actuals and defer setting the addressable/readonly bits
19226         to the gimplifier.
19227
19228 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
19229
19230         PR ada/28591
19231         * decl.c (components_to_record): Defer emitting debug info for the
19232         record type associated with the variant until after we are sure to
19233         actually use it.
19234
19235 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
19236
19237         PR ada/21952
19238         * gigi.h (gnat_internal_attribute_table): Declare.
19239         * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
19240         * utils.c (gnat_internal_attribute_table): New global variable.
19241         (builtin_function): Always call decl_attributes on the builtin.
19242         (handle_const_attribute): New static function.
19243         (handle_nothrow_attribute): Likewise.
19244
19245 2006-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
19246
19247         * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
19248
19249 2006-06-23  Olivier Hainque  <hainque@adacore.com>
19250
19251         * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
19252         not been able to get a constant upper bound from TYPE_SIZE_UNIT.
19253
19254 2006-06-20  James A. Morrison  <phython@gcc.gnu.org>
19255             Eric Botcazou  <ebotcazou@adacore.com>
19256
19257         PR ada/18692
19258         * Make-lang.in: Add check-gnat to lang_checks.  Rename existing
19259         check-gnat into check-acats.
19260
19261 2006-06-17  Karl Berry  <karl@gnu.org>
19262
19263         * gnat-style.texi (@dircategory): Use "Software development"
19264         instead of "Programming", following the Free Software Directory.
19265
19266 2006-06-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19267
19268         PR ada/27944
19269         * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
19270
19271 2006-06-06  Laurent Guerby  <laurent@guerby.net>
19272
19273         PR ada/27769
19274         mlib-utl.adb: Use Program_Name.
19275
19276 2006-05-28  Kazu Hirata  <kazu@codesourcery.com>
19277
19278         * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
19279         sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
19280         trans.c, utils.c: Fix comment typos.  Follow spelling
19281         conventions.
19282         * gnat_rm.texi, gnat_ugn.texi, : Fix typos.  Follow spelling
19283         conventions.
19284
19285 2006-05-19  Nicolas Setton  <setton@adacore.com>
19286
19287         * misc.c (gnat_dwarf_name): New function.
19288         (LANG_HOOKS_DWARF_NAME): Define to it.
19289
19290 2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
19291
19292         * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
19293         (ada/misc.o): Likewise.
19294         (ada/utils.o): Likewise.
19295
19296 2006-04-08  Aurelien Jarno  <aurel32@debian.org>
19297
19298         * Makefile.in: Add Ada support for GNU/kFreeBSD.
19299         * s-osinte-kfreebsd-gnu.ads: New file.
19300
19301 2006-03-29  Carlos O'Donell  <carlos@codesourcery.com>
19302
19303         * Make-lang.in: Rename docdir to gcc_docdir.
19304
19305 2006-03-04  Eric Botcazou  <ebotcazou@adacore.com>
19306
19307         * gigi.h (get_ada_base_type): Delete.
19308         * utils2.c (get_ada_base_type): Likewise.
19309         * trans.c (convert_with_check): Operate in the real base type.
19310
19311 2006-03-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19312
19313         * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
19314
19315 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
19316
19317         * utils.c (create_var_decl): Use have_global_bss_p when deciding
19318         whether to make the decl common.
19319
19320 2006-02-20  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
19321
19322         * Make-lang.in (Ada): Remove.
19323         (.PHONY): Remove Ada
19324
19325 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19326
19327         * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
19328         aggregate, check the interpretations of the other operand to find one
19329         that may be a boolean array.
19330
19331         (Analyze_Selected_Component): Fix flow-of-control typo in case where
19332         the prefix is a private extension.
19333
19334 2006-02-17  Eric Botcazou  <botcazou@adacore.com>
19335
19336         PR ada/26315
19337         * utils2.c (find_common_type): If both input types are BLKmode and
19338         have the same constant size, keep using the first one.
19339
19340         * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
19341
19342         * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
19343
19344         * misc.c (gnat_handle_option): New case for -Woverlength-strings.
19345
19346 2006-02-17  Jose Ruiz  <ruiz@adacore.com>
19347
19348         * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
19349         s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
19350         s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
19351         s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
19352         Abort_Defer/Undefer pairs to avoid the possibility of a task being
19353         aborted while owning a lock.
19354
19355 2006-02-17  Javier Miranda  <miranda@adacore.com>
19356             Robert Dewar  <dewar@adacore.com>
19357
19358         * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
19359         through an access to class-wide interface we force the displacement of
19360         the pointer to the allocated object to reference the corresponding
19361         secondary dispatch table.
19362         (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
19363         if Long_Shifts are supported on the target, even if 64 bit divides
19364         are not supported (configurable run time mode).
19365         (Expand_N_Type_Conversion): Do validity check if validity checks on
19366         operands are enabled.
19367         (Expand_N_Qualified_Expression): Do validity check if validity checks
19368         on operands are enabled.
19369
19370 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19371
19372         * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
19373         must be materialized when the renamed expression is an explicit
19374         dereference.
19375
19376 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19377
19378         * freeze.adb (Statically_Discriminated_Components): Return false if
19379         the bounds of the type of the discriminant are not static expressions.
19380
19381         * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
19382         the bounds of the discriminant type are not static.
19383
19384 2006-02-17  Robert Dewar  <dewar@adacore.com>
19385
19386         * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
19387         then we close To if it is valid.
19388
19389 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
19390
19391         * init.c (facility_resignal_table): new array
19392         (__gnat_default_resignal_p): enhance default predicate to resignal if
19393         VMS condition has one of the predefined facility codes.
19394
19395 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
19396
19397         * Makefile.in: Use VMS64 specialized versions of several units in
19398         Interfaces.C hierarchy to be compatible with HP C default size choices.
19399         Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
19400
19401 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19402
19403         * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
19404         instantiation, the corresponding entity is the related_instance of the
19405         wrapper package created for the instance.
19406
19407 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19408
19409         * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
19410         the current instance is nested within another instance in a child unit.
19411
19412 2006-02-17  Javier Miranda  <miranda@adacore.com>
19413             Ed Schonberg  <schonberg@adacore.com>
19414
19415         * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
19416         type we cannot inherit the primitive operations; we inherit the
19417         Corresponding_Record_Type (which has the list of primitive operations).
19418         (Check_Anonymous_Access_Types): When creating anonymous access types for
19419         access components, use Rewrite in order to preserve the tree structure,
19420         for ASIS use.
19421         (Analyze_Object_Declaration): For limited types with access
19422         discriminants with defaults initialized by an aggregate, obtain
19423         subtype from aggregate as for other mutable types.
19424         (Derived_Type_Declaration): If the derived type is a limited interface,
19425         set the corresponding flag (Is_Limited_Record is not sufficient).
19426
19427 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19428
19429         * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
19430         to inline a function that returns an unconstrained type, the return
19431         expression must be the first variable declared in the body of the
19432         function.
19433
19434 2006-02-17  Javier Miranda  <miranda@adacore.com>
19435
19436         * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
19437         abstract interface type, the static analysis is not enough to know if
19438         the interface is implemented or not by the source tagged type. Hence
19439         we must pass the work to the expander to generate the required code to
19440         evaluate the conversion at run-time.
19441         (Resolve_Equality_Op): Do not apply previous
19442         transformation if expansion is disasbled, to prevent anomalies when
19443         locating global references in a generic unit.
19444
19445 2006-02-17  Vincent Celier  <celier@adacore.com>
19446
19447         * snames.ads, snames.adb: New standard names for new project attributes:
19448         archive_builder, archive_indexer, compiler_pic_option,
19449         config_body_file_name, config_body_file_name_pattern,
19450         config_file_switches, config_file_unique, config_spec_file_name,
19451         config_spec_file_name_pattern, default_builder_switches,
19452         default_global_compiler_switches, default_language,
19453         dependency_file_kind, global_compiler_switches, include_path,
19454         include_path_file, language_kind, linker_executable_option,
19455         linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
19456         roots, runtime_project.
19457
19458 2006-02-17  Matthew Heaney  <heaney@adacore.com>
19459
19460         * a-convec.ads, a-convec.adb:
19461         (operator "&"): handle potential overflow for large index types
19462         (Insert): removed Contraint_Error when using large index types
19463         (Insert_Space): removed Constraint_Error for large index types
19464         (Length): moved constraint check from Length to Insert
19465
19466         * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
19467         as not null access.
19468         Explicit raise statements now include an exception message.
19469         (operator "&"): handle potential overflow for large index types
19470         (Insert): removed Contraint_Error when using large index types
19471         (Insert_Space): removed Constraint_Error for large index types
19472         (Length): moved constraint check from Length to Insert
19473
19474 2006-02-17  Robert Dewar  <dewar@adacore.com>
19475
19476         * s-wchcnv.adb: Document handling of [ on output (we do not change
19477         this to ["5B"] and the new comments say why not.
19478
19479         * gnat_ugn.texi:
19480         Add note for -gnatVo that this now includes the cases of type
19481         conversions and qualified expressions.
19482         Add comments on handling of brackets encoding for Text_IO
19483
19484 2006-02-17  Ramon Fernandez  <fernandez@adacore.com>
19485             Thomas Quinot  <quinot@adacore.com>
19486             Robert Dewar  <dewar@adacore.com>
19487             Javier Miranda  <miranda@adacore.com>
19488
19489         * expander.adb: Fix typo in comment
19490
19491         * exp_pakd.adb: Fix typo
19492         Minor comment reformatting.
19493
19494         * g-dyntab.adb: Minor reformatting
19495
19496         * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
19497         aliased subprograms to look for the abstract interface subprogram.
19498
19499 2006-02-16  Eric Botcazou  <ebotcazou@adacore.com>
19500
19501         * env.c (__gnat_setenv): Use size_t.
19502         (__gnat_unsetenv): Likewise.
19503         (__gnat_clearenv): Likewise.
19504
19505 2006-02-16  Arnaud Charlet  <charlet@adacore.com>
19506
19507         * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
19508
19509 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19510
19511         * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
19512         g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
19513         i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
19514         s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
19515         s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
19516         s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
19517         s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
19518         s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
19519         s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
19520         no longer used.
19521
19522 2006-02-13  Jose Ruiz  <ruiz@adacore.com>
19523
19524         * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
19525         protection against race conditions is not needed.
19526         (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
19527         fallback handler.
19528         (Set_Specific_Handler): Add mutual exclusive access to the specific
19529         handler.
19530         (Specific_Handler): Add mutual exclusive access for retrieving the
19531         specific handler.
19532
19533         * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
19534         back handler.
19535
19536         * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
19537         Fall_Back_Handler and Specific_Handler.
19538
19539         * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
19540         termination handlers.
19541         Set two different owerflow depending on the maximal stack size.
19542
19543         * s-solita.adb (Task_Termination_Handler_T): Document why explicit
19544         protection against race conditions is not needed when executing the
19545         task termination handler.
19546
19547 2006-02-13  Robert Dewar  <dewar@adacore.com>
19548
19549         * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
19550         a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
19551         a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
19552         a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
19553         a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
19554         a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
19555         a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
19556         a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
19557         a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
19558         a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
19559         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
19560         a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
19561         a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
19562         a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
19563         a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
19564         a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
19565         a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
19566         a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
19567         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
19568         a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
19569         g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
19570         g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
19571         mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
19572         prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
19573         s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
19574         s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
19575         s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
19576         s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
19577         s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
19578         s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
19579         a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
19580         fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
19581         par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
19582         system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
19583         reformatting.
19584
19585 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
19586
19587         * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
19588         s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
19589         s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
19590         s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
19591         a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
19592         s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
19593         a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
19594         s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
19595         s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
19596
19597 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19598
19599         * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
19600         s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
19601         s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
19602         s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
19603         s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
19604         s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
19605         replaced by anonymous access type.
19606         (pthread_sigmask): Now take an access sigset_t
19607
19608         * s-osinte-hpux.ads:  Ditto.
19609         (pthread_mutex_t, pthread_cond_t): Update definitions to support
19610         properly 32 and 64 bit ABIs.
19611
19612 2006-02-13  Pascal Obry  <obry@adacore.com>
19613
19614         * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
19615         s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
19616         s-taprop-linux.adb, s-taprop-solaris.adb,
19617         s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
19618         adjustement is already done when calling this routine.
19619
19620 2006-02-13  Pascal Obry  <obry@adacore.com>
19621
19622         * system-mingw.ads (Underlying_Priorities): Update the priority mapping
19623         table to take advantage of the 16 priority levels available on Windows
19624         2000 and XP. On NT4 there are only 7 priority levels, this is properly
19625         supported by this new mapping.
19626
19627 2006-02-13  Nicolas Setton  <setton@adacore.com>
19628
19629         * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
19630         (get_encoding): New subprogram. Extracts the encodings from an encoded
19631         Ada name.
19632
19633 2006-02-13  Pascal Obry  <obry@adacore.com>
19634             Nicolas Roche  <roche@adacore.com>
19635             Arnaud Charlet  <charlet@adacore.com>
19636
19637         * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
19638         support.
19639         (__gnat_try_lock): Add unicode support by using a specific section on
19640         Windows.
19641         (__gnat_get_current_dir): Idem.
19642         (__gnat_open_read): Idem.
19643         (__gnat_open_rw): Idem.
19644         (__gnat_open_create): Idem.
19645         (__gnat_create_output_file): Idem.
19646         (__gnat_open_append): Idem.
19647         (__gnat_open_new): Idem.
19648         (__gnat_file_time_name): Idem.
19649         (__gnat_set_file_time_name): Idem.
19650         (__gnat_stat): Idem.
19651         (win32_no_block_spawn): Idem.
19652         (__gnat_locate_exec_on_path): Idem.
19653         (__gnat_opendir): New routine.
19654         (__gnat_closedir): Idem.
19655         (__gnat_readdir): Add new parameter length (pointer to int). Update
19656         implementation to use it and add specific Win32 code for Unicode
19657         support.
19658         (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
19659         (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
19660         (convert_addresses): Do not define this dummy routine on VMS.
19661
19662         * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
19663         runtime Unicode support will be activated.
19664         (S2WS): String to Wide-String conversion. This version just copy a
19665         string in non Unicode version.
19666         (WS2S): Wide-String to String conversion. This version just copy a
19667         string in non Unicode version.
19668
19669         * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
19670         (Open): Now import __gnat_opendir from adaint.c.
19671         (Read): Change the implementation to support unicode characters. It is
19672         not possible to use strlen() on Windows as this version supports only
19673         standard ASCII characters. So the length of the directory entry is now
19674         returned from the imported __gnat_readdir routine.
19675         Update copyright notice.
19676
19677         * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
19678         (opendir): Moved to adaint.c.
19679
19680         * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
19681         (Get_Directory): Fix wrong indexing.
19682         (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
19683         __gnat_getenv from env.c
19684         (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
19685         from env.c
19686
19687         * env.h, env.c: New file.
19688
19689         * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
19690         adaint.c by __gnat_getenv from env.c
19691
19692         * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
19693         adaint.c by __gnat_getenv from env.c
19694
19695         * Make-lang.in: Add env.o in the list of C object needed by gnat1
19696         and gnatbind.
19697         Update dependencies.
19698
19699 2006-02-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19700             Olivier Hainque  <hainque@adacore.com>
19701             Eric Botcazou  <ebotcazou@adacore.com>
19702
19703         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
19704
19705         * gigi.h (value_factor_p): Add prototype and description, now public.
19706
19707         * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
19708         promotion for field with rep clause if the associated size was proven
19709         to be in error.
19710         Expand comments describing attempts to use a packable type.
19711         (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
19712         E_Floating_Point_Subtype>: Inherit alias set of what we are making a
19713         subtype of to ensure conflicts amongst all subtypes in a hierarchy,
19714         necessary since these are not different types and pointers may
19715         actually designate any subtype in this hierarchy.
19716         (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
19717         discriminants but put them into record only if not Unchecked_Union;
19718         pass flag to components_to_record showing Unchecked_Union.
19719         (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
19720         components before variants; don't set TYPE_UNCHECKED_UNION_P.
19721         (components_to_record): New argument UNCHECKED_UNION.
19722         Remove special case code for Unchecked_Union and instead use main code
19723         with small changes.
19724
19725         PR ada/26096
19726         (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
19727         variable with the expression being built, only its inner field.
19728
19729         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
19730         emit_sequence_entry_statements.
19731         (emit_sequence_entry_statements, body_with_handlers_p): Delete.
19732         (establish_gnat_vms_condition_handler): Move before
19733         Subprogram_Body_to_gnu.
19734         (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
19735         for a subprogram if it has a foreign convention or is exported.
19736         (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
19737         substituted for a CONST_DECL.
19738         (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
19739         Etype to assoc_to_constructor.
19740         (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
19741         discriminants of Unchecked_Union.
19742         (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
19743         don't need cluttering preprocessor directives.
19744         (establish_gnat_vms_condition_handler): New function. Establish the GNAT
19745         condition handler as current in the compiled function.
19746         (body_with_handlers_p): New function. Tell whether a given sequence of
19747         statements node is attached to a package or subprogram body and involves
19748         exception handlers possibly nested within inner block statements.
19749         (emit_sequence_entry_statements): New function, to emit special
19750         statements on entry of sequences when necessary. Establish GNAT
19751         condition handler in the proper cases for VMS.
19752         (Handled_Sequence_Of_Statements_to_gnu): Start block code with
19753         emit_sequence_entry_statements.
19754
19755         * utils2.c (find_common_type): If both input types are BLKmode and
19756         have a constant size, use the smaller one.
19757         (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
19758         the same.
19759
19760         * utils.c (value_factor_p): Make public, to allow uses from other gigi
19761         units.
19762         (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
19763         (convert, case UNION_TYPE): Remove special treatment for unchecked
19764         unions.
19765
19766         PR ada/18659
19767         (update_pointer_to): Update variants of pointer types to unconstrained
19768         arrays by attaching the list of fields of the main variant.
19769
19770 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19771             Robert Dewar  <dewar@adacore.com>
19772
19773         * a-exexpr.adb, a-exexpr-gcc.adb
19774         (Process_Raise_Exception): Removed, merged with Propagate_Exception.
19775         (Propagate_Exception): Now take extra From_Signal_Handler parameter.
19776         Remove code unused for exception propagation for the compiler itself
19777         from a-except.adb and update to still share separate packages.
19778
19779         * a-except.ads, a-except.adb: Ditto.
19780         Add comments that this version is now used only by the compiler and
19781         other basic tools. The full version that includes the Ada 2005 stuff
19782         is in separate files a-except-2005.ads/adb. The reason is that we do
19783         not want to cause bootstrap problems with compilers not recognizing
19784         Wide_Wide_String.
19785         Add exception reason code PE_Implicit_Return
19786         Add new exception reason code (Null Exception_Id)
19787
19788         * a-except-2005.adb, a-except-2005.ads: New files.
19789
19790         * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
19791
19792         * s-wchcon.adb: New file.
19793
19794         * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
19795         (traceback.o deps): Likewise.
19796         (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
19797         Activate build of GMEM instrumentation library on VMS targets.
19798         (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
19799         Use a-except-2005.ads/adb for all run-time library builds unless
19800         specified otherwise.
19801         [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
19802         s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
19803         Use s-parame.adb on all native platforms.
19804         Use s-parame-vxworks.adb on all vxworks platforms.
19805         Add env.c env.h in LIBGNAT_SRCS
19806         Add env.o in LIBGNAT_OBJS
19807         (GNATMAKE_OBJS): Remove ctrl_c.o object.
19808         (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
19809         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
19810         supports VxWorks 6 RTPs.
19811         (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
19812         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
19813
19814         * types.h, types.ads (Terminate_Program): New exception
19815         Add comment on modifying multiple versions of a-except.adb when the
19816         table of exception reasons is modified.
19817         Add exception reason code PE_Implicit_Return
19818         Add new exception reason code (Null Exception_Id)
19819
19820         * clean.adb (Initialize): Get the target parameters before checking
19821         if target is OpenVMS. Move the OpenVMS specific code here from package
19822         body elaboration code.
19823
19824 2006-02-13  Thomas Quinot  <quinot@adacore.com>
19825             Vincent Celier  <celier@adacore.com>
19826             Robert Dewar  <dewar@adacore.com>
19827
19828         * ali-util.adb (Get_File_Checksum): Update to account for change in
19829         profile of Initialize_Scanner.
19830
19831         * gprep.adb (Gnatprep): Update to account for change in profile of
19832         Initialize_Scanner.
19833         (Process_One_File): Same.
19834
19835         * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
19836         common code between Get_Code_Unit and Get_Source_Unit. Reimplement
19837         that behaviour using the new Unit information recorded in the source
19838         files table, rather than going through all units every time.
19839         (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
19840         (Get_Source_Unit): Same.
19841
19842         * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
19843         change in profile of Initialize_Scanner.
19844         (Prepare_To_Preprocess): Same.
19845
19846         * lib.ads: Fix typo in comment (templace -> template).
19847
19848         * prj-part.adb (Parse_Single_Project): Update to account for change in
19849         profile of Initialize_Scanner.
19850
19851         * scn.adb (Initialize_Scanner): Account for change in profile of
19852         Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
19853         Also record the association of the given Source_File_Index to the
19854         corresponding Unit_Number_Type.
19855
19856         * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
19857         procedure.
19858         (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
19859         Remove Unit formal for generic scanner: this formal
19860         is only relevant to Scn (the scanner instance used to parse Ada source
19861         files), not to other instances. Update comment accordingly.
19862         (Scan): Use new function Snames.Is_Keyword_Name.
19863
19864         * sinfo-cn.adb: Fix typo in comment.
19865
19866         * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
19867         Unit.
19868
19869         * sinput.ads (Source_File_Record): New component Unit, used to capture
19870         the unit identifier (if any) associated to a source file.
19871
19872         * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
19873         Unit in Source_File_Record.
19874
19875         * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
19876         in profile of Initialize_Scanner.
19877
19878         * scans.adb (Initialize_Ada_Keywords): New procedure
19879
19880         * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
19881         Ada keywords in the Namet table, without the need to call
19882         Initialize_Scanner.
19883
19884         * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
19885         (Is_Keyword_Name): New function
19886
19887         * snames.ads: Add subtype Configuration_Pragma_Names
19888         Add pragma Ada_2005 (synonym for Ada_05)
19889         (Is_Keyword_Name): New function
19890
19891         * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
19892
19893 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19894
19895         * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
19896         index.
19897
19898         * a-stwima.adb (To_Set): Add extra check when N = 0.
19899
19900         * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
19901
19902 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19903
19904         * s-parame-mingw.adb, s-parame-linux.adb,
19905         s-parame-solaris.adb: Removed, replaced by s-parame.adb
19906
19907         * s-parame-vxworks.ads: Fix typo.
19908
19909         * s-parame-vxworks.adb: New file.
19910
19911         * s-parame.adb: Version now used by all native platforms.
19912         (Default_Stack_Size): Use 2 megs for default stack size and use
19913         __gl_default_stack_size when available.
19914         (Minimum_Stack_Size): Use 12K.
19915
19916         * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
19917         (Create_Task): Refine implementation taking advantage of the XP stack
19918         size support. On XP, we now create the thread using the flag
19919         STACK_SIZE_PARAM_IS_A_RESERVATION.
19920
19921         * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
19922
19923         * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
19924         XP and 0 on older Windows versions.
19925
19926         * interfac-vms.ads: Removed, no longer used.
19927
19928 2006-02-13  Matthew Heaney  <heaney@adacore.com>
19929
19930         * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
19931         a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
19932         a-cohase.adb: All explicit raise statements now include an exception
19933         message.
19934
19935         * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
19936         (Update_Element_Preserving_Key): renamed op to just Update_Element.
19937         Explicit raise statements now include an exception message
19938
19939         * a-cihase.ads, a-cohase.ads: Removed comment.
19940
19941         * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
19942         a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
19943         a-szbzha.adb, a-szfzha.ads: New files.
19944
19945 2006-02-13  Matthew Heaney  <heaney@adacore.com>
19946
19947         * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
19948         quicksort.
19949
19950 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
19951
19952         * lang.opt: Wvariadic-macros: New option.
19953         Wold-style-definition: Likewise.
19954         Wmissing-format-attribute: Likewise.
19955
19956         * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
19957         -Wold-style-definition and -Wmissing-format-attribute.
19958
19959 2006-02-13  Robert Dewar  <dewar@adacore.com>
19960
19961         * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
19962
19963         * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
19964
19965 2006-02-13  Nicolas Roche  <roche@adacore.com>
19966
19967         * a-envvar.adb, a-envvar.ads: New files.
19968
19969 2006-02-13  Douglas Rupp  <rupp@adacore.com>
19970
19971         * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
19972
19973         * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
19974
19975 2006-02-13  Pat Rogers  <rogers@adacore.com>
19976
19977         * a-rttiev.adb, a-rttiev.ads: New files.
19978
19979 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
19980
19981         * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
19982         a-wwboio.ads, a-zzboio.adb, a-zzboio.ads:  New files.
19983
19984         * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
19985
19986 2006-02-13  Robert Dewar  <dewar@adacore.com>
19987
19988         * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
19989         sem_case.adb: Minor code reorganization (not Present should be No)
19990
19991 2006-02-13  Geert Bosch  <bosch@adacore.com>
19992             Gary Dismukes  <dismukes@adacore.com>
19993
19994         * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
19995         0, since the lower bound of the actual string may be greater than one.
19996
19997         PR ada/20753
19998         * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
19999         layout is requested.
20000
20001 2006-02-13  Vincent Celier  <celier@adacore.com>
20002
20003         * back_end.adb (Scan_Compiler_Arguments): Check if
20004         Search_Directory_Present is True and, if it is, add the argument in
20005         the source search directory path.
20006
20007         * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
20008         Search_Directory_Present to True.
20009
20010 2006-02-13  Joel Brobecker  <brobecke@adacore.com>
20011
20012         * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
20013         volatile, to tell the compiler to preserve this variable at any level
20014         of optimization.
20015         (Gen_Versions_Ada): Temporarily work around codegen bug.
20016
20017 2006-02-13  Vincent Celier  <celier@adacore.com>
20018
20019         * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
20020         gcc to link with option -shared-libgcc.
20021         (Gnatlink): Remove duplicate switches -shared-libgcc
20022
20023 2006-02-13  Robert Dewar  <dewar@adacore.com>
20024
20025         * gnatvsn.ads (Current_Year): New constant, used to easily update
20026         copyright on all GNAT tools.
20027
20028         * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
20029         copyright notice.
20030
20031 2006-02-13  Robert Dewar  <dewar@adacore.com>
20032
20033         * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
20034         after hyphen (small aesthetic change useful for a range of numbers
20035         using ^-^.
20036         Suppress range checks for a couple of assignments which otherwise
20037         cause validity checks with validity checking turned on.
20038
20039         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
20040         Improvement in error message for object.
20041         (Rep_Item_Too_Late): Remove '!' in warning message.
20042
20043 2006-02-13  Robert Dewar  <dewar@adacore.com>
20044             Eric Botcazou  <ebotcazou@adacore.com>
20045
20046         * err_vars.ads: Suppress range checks for a couple of assignments
20047         which otherwise cause validity checks with validity checking turned on.
20048         Update comments.
20049
20050         * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
20051         Make message unconditional if it is a warning.
20052         (Error_Msg_NEL): Always output warning messages.
20053         Suppress range checks for a couple of assignments which otherwise
20054         cause validity checks with validity checking turned on.
20055
20056         * errout.ads (Message Insertion Characters): Document that '!' is
20057         implied by '?' in error messages.
20058
20059         * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
20060         (Gnat1drv): Use a goto to end of main subprogram instead of
20061         Exit_Program (E_Success) so that finalization can occur normally.
20062
20063 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
20064
20065         * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
20066         wrapped around.
20067
20068 2006-02-13  Vincent Celier  <celier@adacore.com>
20069
20070         * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
20071         Unchecked_Conversion functions.
20072         (Modification_Time): Use direct conversion of OS_Time to Calendar time
20073         when OpenVMS returns False.
20074
20075         * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
20076         a-dirval.adb (OpenVMS): New Boolean function
20077
20078 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20079             Thomas Quinot  <quinot@adacore.com>
20080
20081         * checks.adb (Build_Discriminant_Checks): If the expression being
20082         checks is an aggregate retrieve the values of its discriminants to
20083         generate the check, rather than creating a temporary and a reference
20084         to it.
20085         (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
20086         (Install_Null_Excluding_Check): Ditto
20087         (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
20088         not for the renamed object, so that the actual itype is attached in the
20089         proper context.
20090
20091 2006-02-13  Robert Dewar  <dewar@adacore.com>
20092             Vincent Celier  <celier@adacore.com>
20093
20094         * debug.adb: Eliminate numeric switches for binder/gnatmake
20095
20096         * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
20097         switches for the compiler.
20098         (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
20099         (Scan_Make_Switches): When failing with an illegal switch, output an
20100         error message with the full switch.
20101         Eliminate numeric switches for binder/gnatmake
20102
20103         * switch.ads, switch.adb (Bad_Switch): New procedure
20104
20105         * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
20106         Remove 0-9 as debug flag character possibilities
20107         -d is now controlling the primary stack size when its value is a
20108         positive. Also add checks against invalid values, and support for kb,
20109         mb. Ditto for -D switch.
20110
20111 2006-02-13  Robert Dewar  <dewar@adacore.com>
20112             Serguei Rybin  <rybin@adacore.com>
20113
20114         * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
20115         save/restore routines.
20116         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20117         were not always properly handled previously.
20118         Since we are changing the tree format anyway, also get rid of the
20119         junk obsolete Immediate_Errors flag.
20120         (Tree_Read): Change the way of reading Tree_Version_String - now we
20121         read the version string from the tree even if its length is not the
20122         same as the length of the version string computed from Gnatvsn.
20123         (Search_Directory_Present): New Boolean flag for the compiler.
20124         Define Tree_Version_String as a dynamic string.
20125         (Default_Stack_Size): new variable, used to handle switch -d.
20126
20127         * par-prag.adb:
20128         For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
20129         only for main unit.
20130         Add pragma Ada_2005 (synonym for Ada_05)
20131         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20132         were not always properly handled previously.
20133
20134         * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
20135         explicit Ada_95 to Ada_2005.
20136
20137 2006-02-13  Javier Miranda  <miranda@adacore.com>
20138             Robert Dewar  <dewar@adacore.com>
20139             Ed Schonberg  <schonberg@adacore.com>
20140
20141         * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
20142         against errors in the source program: a private types for which the
20143         corresponding full type declaration is missing and pragma CPP_Virtual
20144         is used.
20145         (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
20146         (Is_Known_Null): New flag
20147         (Has_Pragma_Pure): New flag
20148         (No_Return): Present in all entities, set only for procedures
20149         (Is_Limited_Type): A type whose ancestor is an interface is limited if
20150         explicitly declared limited.
20151         (DT_Offset_To_Top_Func): New attribute that is present in E_Component
20152         entities. Only used for component marked Is_Tag. If present it stores
20153         the Offset_To_Top function used to provide this value in tagged types
20154         whose ancestor has discriminants.
20155
20156         * exp_ch2.adb: Update status of new Is_Known_Null flag
20157
20158         * sem_ch7.adb: Maintain status of new Is_Known_Null flag
20159
20160         * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
20161         the categorization sense if Is_Pure was set by pragma Pure_Function.
20162
20163 2006-02-13  Quentin Ochem  <ochem@adacore.com>
20164             Olivier Hainque  <hainque@adacore.com>
20165
20166         * bindusg.adb: Updated documentation for -d and -D switches.
20167
20168         * raise.h (__gnat_set_globals): added new parameter for
20169         Default_Stack_Size.
20170
20171         * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
20172         (__gnat_handle_vms_condition): Adjust context before raise.
20173         (__gnat_install_handler): Restore the global vector setup for GCC
20174         versions before 3.4, as the frame based circtuitry is not available
20175         in this case.
20176         (__gnat_set_globals): added a parameter default_stack_size
20177         (__gl_default_stack_size): new variable.
20178
20179 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20180
20181         * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
20182         "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
20183         does not exist in the Ada RM.
20184         (Compatible_Int_Bounds): Determine whether two integer range bounds
20185         are of equal length and have the same start and end values.
20186         (Is_Int_Range_Bounds): Determine whether a node is an integer range.
20187         (Build_Record_Aggr_Code): Perform proper sliding of a nested array
20188         aggregate when it is part of an object declaration.
20189         (Build_Record_Aggr_Code)  If the aggregate ttype is a derived type that
20190         constrains discriminants of its parent, add explicitly the discriminant
20191         constraints of the ancestor by retrieving them from the
20192         stored_constraint of the parent.
20193
20194 2006-02-13  Robert Dewar  <dewar@adacore.com>
20195
20196         * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
20197         attribute Mechanism_Code is applied to renamed subprogram, modify
20198         prefix to point to base subprogram.
20199         Max/Min attributes now violate Restriction No_Implicit_Conditionals
20200
20201         * sinfo.ads: Document that Mechanism_Code cannot be applied to
20202         renamed subprograms so that the front-end must replace the prefix
20203         appropriately.
20204
20205 2006-02-13  Javier Miranda  <miranda@adacore.com>
20206             Gary Dismukes  <dismukes@adacore.com>
20207
20208         * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
20209         availability of RE_Interface_Tag.
20210         (Build_Initialization_Call): Fix wrong access to the discriminant value.
20211         (Freeze_Record_Type): Do not generate the tables associated with
20212         timed and conditional dispatching calls through synchronized
20213         interfaces if compiling under No_Dispatching_Calls restriction.
20214         When compiling for Ada 2005, for a nonabstract
20215         type with a null extension, call Make_Controlling_Function_Wrappers
20216         and insert the wrapper function declarations and bodies (the latter
20217         being appended as freeze actions).
20218         (Predefined_Primitive_Bodies): Do not generate the bodies of the
20219         predefined primitives associated with timed and conditional
20220         dispatching calls through synchronized interfaces if we are
20221         compiling under No_Dispatching_Calls.
20222         (Build_Init_Procedure):  Use RTE_Available to check if a run-time
20223         service is available before generating a call.
20224         (Make_Controlling_Function_Wrappers): New procedure.
20225         (Expand_N_Full_Type_Declaration): Create a class-wide master for
20226         access-to-limited-interfaces because they can be used to reference
20227         tasks that implement such limited interface.
20228         (Build_Offset_To_Top_Functions): Build the tree corresponding to the
20229         procedure spec and body of the Offset_To_Top function that is generated
20230         when the parent of a type with discriminants has secondary dispatch
20231         tables.
20232         (Init_Secondary_Tags): Handle the case in which the parent of the type
20233         containing secondary dispatch tables has discriminants to generate the
20234         correct arguments to call Set_Offset_To_Top.
20235         (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
20236
20237         * a-tags.ads, a-tags.adb: (Check_Index): Removed.
20238         Add Wide_[Wide_]Expanded_Name.
20239         (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
20240         the same functionality of Get_Prim_Op_Address but applied to predefined
20241         primitive operations because the pointers to the predefined primitives
20242         are now saved in a separate table.
20243         (Parent_Size): Modified to get access to the separate table of primitive
20244         operations or the parent type.
20245         (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
20246         functionality of Set_Prim_Op_Address but applied to predefined primitive
20247         operations.
20248         (Set_Signature): New subprogram used to store the signature of a DT.
20249         (Displace): If the Offset_To_Top value is not static then call the
20250         function generated by the expander to get such value; otherwise use
20251         the value stored in the table of interfaces.
20252         (Offset_To_Top): The type of the actual has been changed to Address to
20253         give the correct support to tagged types with discriminants. In this
20254         case this value is stored just immediately after the tag field.
20255         (Set_Offset_To_Top): Two new formals have been added to indicate if the
20256         offset_to_top value is static and hence pass this value to the run-time
20257         to store it in the table of interfaces, or else if this value is dynamic
20258         and then pass to the run-time the address of a function that is
20259         generated by the expander to provide this value for each object of the
20260         type.
20261
20262         * rtsfind.ads (Default_Prin_Op_Count): Removed.
20263         (Default_Prim_Op_Count): New entity
20264         (Get_Predefined_Prim_Op_Address): New entity
20265         (Set_Predefined_Prim_Op_Address): New entity
20266         (RE_Set_Signature): New entity
20267
20268 2006-02-13  Thomas Quinot  <quinot@adacore.com>
20269             Ed Schonberg  <schonberg@adacore.com>
20270
20271         * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
20272         Make_Adjust_Call done for a newly-allocated object.
20273
20274         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
20275         in a subprogram are wrapped in a cleanup block, indicate that the
20276         subprogram contains an inner block with an exception handler.
20277         (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
20278         Adjust call is for a newly-allocated object. In that case we must not
20279         assume that the finalization list chain pointers are correct (since they
20280         come from a bit-for-bit copy of the original object's pointers) so if
20281         the attach level would otherwise be zero (no change), we set it to 4
20282         instead to cause the pointers to be reset to null.
20283
20284         * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
20285         reset chain pointers to null.
20286
20287 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20288
20289         * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
20290         string, and the context requires a loop for the assignment (e.g.
20291         because the left-hand side is packed), generate a unique name for the
20292         temporary that holds the string, to prevent spurious name clashes.
20293
20294 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20295             Javier Miranda  <miranda@adacore.com>
20296             Robert Dewar  <dewar@adacore.com>
20297             Gary Dismukes  <dismukes@adacore.com>
20298
20299         * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
20300         return unconstrained arrays.
20301         Update comments.
20302         (Expand_Call):  An indirect call through an access parameter of a
20303         protected operation is not a protected call.
20304         Add circuit to raise CE in Ada 2005 mode following call
20305         to Raise_Exception.
20306         (Register_DT_Entry): Do nothing if
20307         the run-time does not give support to abstract interfaces.
20308         (Freeze_Subprogram): In case of dispatching operations, do not generate
20309         code to register the operation in the dispatch table if the source
20310         is compiled with No_Dispatching_Calls.
20311         (Register_Predefined_DT_Entry): Generate code that calls the new
20312         run-time subprogram Set_Predefined_Prim_Op_Address instead of
20313         Set_Prim_Op_Address.
20314
20315         * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
20316         on array assignments if the right-hand side is a function call that has
20317         been inlined. Check is performed on the assignment in the block.
20318         (Process_Bounds): If bounds and range are overloaded, apply preference
20319         rule for root operations to disambiguate, and diagnose true ambiguity.
20320         (Analyze_Assignment): Propagate the tag for a class-wide assignment with
20321         a tag-indeterminate right-hand side even when Expander_Active is True.
20322         Needed to ensure that dispatching calls to T'Input are allowed and
20323         get the tag of the target class-wide object.
20324
20325         * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
20326         an inherited primitive operation that already overrides several
20327         abstract interface primitives. For transitivity, the new entity must
20328         also override all the abstract interface primitives covered by the
20329         inherited overriden primitive.
20330         Emit warning if new entity differs from homograph in same scope only in
20331         that one has an access parameter and the other one has a parameter of
20332         a general access type with the same designated type, at the same
20333         position in the signature.
20334         (Make_Inequality_Operator): Use source locations of parameters and
20335         subtype marks from corresponding equality operator when creating the
20336         tree structure for the implicit declaration of "/=". This does not
20337         change anything in behaviour except that the decoration of the
20338         components of the subtree created for "/=" allows ASIS to get the
20339         string images of the corresponding identifiers.
20340         (Analyze_Return_Statement): Remove '!' in warning message.
20341         (Check_Statement_Sequence): Likewise.
20342         (Analyze_Subprogram_Body): For an access parameter whose designated type
20343         is an incomplete type imported through a limited_with clause, use the
20344         type of the corresponding formal in the body.
20345         (Check_Returns): Implicit return in No_Return procedure now raises
20346         Program_Error with a compile time warning, instead of beging illegal.
20347         (Has_Single_Return):  Function returning unconstrained type cannot be
20348         inlined if expression in unique return statement is not an identifier.
20349         (Build_Body_To_Inline): It is possible to inline a function call that
20350         returns an unconstrained type if all return statements in the function
20351         return the same local variable. Subsidiary procedure Has_Single_Return
20352         verifies that the body conforms to this restriction.
20353
20354         * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
20355         same type, and  one of them is of an anonymous access type, convert
20356         the other operand to it, so that this is a valid binary operation for
20357         gigi.
20358         (Resolve_Type_Conversion): Handle subtypes of protected types and
20359         task types when accessing to the corresponding record type.
20360         (Resolve_Allocator): Add '\' in 2-line warning message.
20361         Remove '!' in warning message.
20362         (Resolve_Call): Add '\' in 2-line warning message.
20363         (Valid_Conversion): Likewise.
20364         (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
20365         resulting type may be an access type with an implicit dereference.
20366         Obtain the proper component from the designated type.
20367         (Make_Call_Into_Operator): Handle properly a call to predefined equality
20368         given by an expanded name with prefix Standard, when the operands are
20369         of an anonymous access type.
20370         (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
20371         Explicit_Dereference and Resolve_Selected_Component, to verify that the
20372         prefix of the expression is not of an incomplete type. Allows full
20373         diagnoses of all semantic errors.
20374         (Resolve_Actuals): If the actual is an allocator whose directly
20375         designated type is a class-wide interface we build an anonymous
20376         access type to use it as the type of the allocator. Later, when
20377         the subprogram call is expanded, if the interface has a secondary
20378         dispatch table the expander will add a type conversion to force
20379         the displacement of the pointer.
20380         (Resolve_Call): If a function that returns an unconstrained type is
20381         marked Inlined_Always and inlined, the call will be inlined and does
20382         not require the creation of a transient scope.
20383         (Check_Direct_Boolean_Op): Removed
20384         (Resolve_Comparison_Op): Remove call to above
20385         (Resolve_Equality_Op): Remove call to above
20386         (Resolve_Logical_Op): Inline above, since this is only call.
20387         (Valid_Conversion): Handle properly conversions between arrays of
20388         convertible anonymous access types.
20389
20390         PR ada/25885
20391         (Set_Literal_String_Subtype): If the lower bound is not static, wrap
20392         the literal in an unchecked conversion, because GCC 4.x needs a static
20393         value for a string bound.
20394
20395 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20396             Hristian Kirtchev  <kirtchev@adacore.com>
20397
20398         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
20399         components of the corresponding record, take into account component
20400         definitions that are access definitions.
20401         (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
20402         procedure is not considered a dispatching call and will be expanded
20403         properly.
20404
20405 2006-02-13  Javier Miranda  <miranda@adacore.com>
20406
20407         * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
20408         controlling argument of the dispatching call is an abstract interface
20409         class-wide type then we use it directly.
20410         Check No_Dispatching_Calls restriction.
20411         (Default_Prim_Op_Position): Remove the code that looks for the last
20412         entity in the list of aliased subprograms. This code was wrong in
20413         case of renamings.
20414         (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
20415         when the source is compiled with the No_Dispatching_Calls restriction.
20416         (Init_Predefined_Interface_Primitives): No need to inherit primitives
20417         if we are compiling with restriction No_Dispatching_Calls.
20418         (Make_Disp_XXX): Addition of assertion to avoid the use of all these
20419         subprograms if we are compiling under No_Dispatching_Calls restriction.
20420         (Make_DT): Generate a dispatch table with a single dummy entry if
20421         we are compiling with the No_Dispatching_Calls restriction. In
20422         addition, in this case we don't generate code that calls to the
20423         following run-time subprograms: Set_Type_Kind, Inherit_DT.
20424         (Make_Select_Specific_Data_Table): Add assertion to avoid the use
20425         of this subprogram if compiling with the No_Dispatching_Calls
20426         restriction.
20427         (Expand_Type_Conversion): Instead of using the actual parameter,
20428         the argument passed as parameter to the conversion function was
20429         erroneously referenced by the expander.
20430         (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
20431         Set_Predefined_Primitive_Op_Address and Set_Signature.
20432         (Expand_Dispatching_Call): Generate call to
20433         Get_Predefined_Prim_Op_Address for predefined primitives.
20434         (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
20435         predefined primitives.
20436         (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
20437         primitives we reserve one dummy entry to ensure that the tag does not
20438         point to some memory that is associated with some other object. In
20439         addition, remove all the old code that generated the assignments
20440         associated with the signature of the dispatch table and replace them
20441         by a call to the new subprogram Set_Signature.
20442         (Set_All_DT_Position): Change the algorithm because now we have a
20443         separate dispatch table associated with predefined primitive operations.
20444         (Expand_Interface_Conversion): In case of non-static offset_to_top
20445         add explicit dereference to get access to the object after the call
20446         to displace the pointer to the object.
20447         (Expand_Interface_Thunk): Modify the generation of the actual used
20448         in the calls to the run-time function Offset_To_Top to fulfil its
20449         new interface.
20450         (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
20451
20452 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20453
20454         * exp_dist.adb (Copy_Specification): For access parameters, copy
20455         Null_Exclusion flag, which will have been set for stream subprograms
20456         in Ada2005 mode.
20457
20458 2006-02-13  Pascal Obry  <obry@adacore.com>
20459
20460         * expect.c (__gnat_expect_portable_execvp): New implementation. The
20461         previous implementation was using the C runtime spawnve routine but
20462         the corresponding wait was using directly the Win32 API. This was
20463         causing some times a lock when waiting for an event using
20464         WaitForSingleObject in __gnat_waitpid. This new implementation uses
20465         the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
20466         API fixes this problem.
20467
20468 2006-02-13  Robert Dewar  <dewar@adacore.com>
20469
20470         * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
20471         call.
20472
20473 2006-02-13  Thomas Quinot  <quinot@adacore.com>
20474
20475         * exp_pakd.ads: Fix typos in comments.
20476
20477         * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
20478         array reference that is an explicit dereference, mark the converted
20479         (packed) array reference as analyzed to prevent a forthcoming
20480         reanalysis from resetting its type to the original (non-packed) array
20481         type.
20482
20483 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20484             Javier Miranda  <miranda@adacore.com>
20485             Eric Botcazou  <ebotcazou@adacore.com>
20486
20487         * exp_util.ads, exp_util.adb (Find_Prim_Op,
20488         Is_Predefined_Primitive_Operation): When
20489         searching for the predefined equality operator, verify that operands
20490         have the same type.
20491         (Is_Predefined_Dispatching_Operation): Remove the code that looks
20492         for the last entity in the list of aliased subprograms. This code
20493         was wrong in case of renamings.
20494         (Set_Renamed_Subprogram): New procedure
20495         (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
20496         Exp_Type constant computed when entering this subprogram.
20497         (Known_Null): New function
20498         (OK_To_Do_Constant_Replacement): New function
20499         (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
20500         (Side_Effect_Free): An attribute reference 'Input is not free of
20501         side effect, unlike other attributes that are functions. (from code
20502         reading).
20503         (Remove_Side_Effects): Expressions that involve packed arrays or records
20504         are copied at the point of reference, and therefore must be marked as
20505         renamings of objects.
20506         (Is_Predefined_Dispatching_Operation): Return false if the operation is
20507         not a dispatching operation.
20508
20509         PR ada/18819
20510         (Remove_Side_Effects): Lift enclosing type conversion nodes for
20511         elementary types in all cases.
20512
20513 2006-02-13  Javier Miranda  <miranda@adacore.com>
20514
20515         * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
20516         task types when accessing to the corresponding record type.
20517         Remove '!' in warning message.
20518
20519 2006-02-13  Olivier Hainque  <hainque@adacore.com>
20520
20521         * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
20522         to avoid useless and space inefficient overalignments on targets where
20523         Max_Alignment is larger than 16.
20524
20525 2006-02-13  Pascal Obry  <obry@adacore.com>
20526
20527         * g-catiio.adb (Sec_Number): New type used to compute the number of
20528         seconds since 1-1-1970.
20529         (Image) [Natural]: The parameter was an Integer, as we can't deal with
20530         negative numbers (years, months...) it is better to have a Natural here.
20531         Code clean-up.
20532         (Image) [Number]: Change parameter from Long_Integer to Number.
20533         (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
20534         overflow for dates past year 2038.
20535
20536 2006-02-13  Matthew Heaney  <heaney@adacore.com>
20537
20538         *  g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
20539         Constraint_Error.
20540
20541 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
20542
20543         * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
20544         native platforms.
20545         (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
20546         finalization can occur normally.
20547
20548 2006-02-13  Vincent Celier  <celier@adacore.com>
20549
20550         * gnatcmd.adb (Rules_Switches): New table
20551         (Add_To_Rules_Switches): New procedure
20552         (GNATCmd): For command CHECK, put all options following "-rules" in the
20553         Rules_Switches table. Append these -rules switches after the -cargs
20554         switches.
20555
20556 2006-02-13  Robert Dewar  <dewar@adacore.com>
20557
20558         * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
20559         These two cases were generating incorrect output, and if this unit
20560         was built with checks on, generated a discriminant mismatch constraint
20561         error.
20562
20563 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20564             Robert Dewar  <dewar@adacore.com>
20565
20566         * lib-xref.adb (Get_Type_Reference): For a private type whose full
20567         view is an array type, indicate the component type as well, for
20568         navigation purposes.
20569         (Generate_Reference): Don't consider array ref on LHS to be a case
20570         of violating pragma Unreferenced.
20571         Do not give Ada 2005 warning except on real reference.
20572
20573 2006-02-13  Vincent Celier  <celier@adacore.com>
20574
20575         * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
20576         main source, add switch -mdebug-main=_ada_ so that the executable can
20577         be debugged by the standard VMS debugger.
20578         (Gnatmake): Set No_Main_Subprogram to True when there is no main
20579         subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
20580         Exit the Multi_Main_Loop when Unique_Compile is True after compilation
20581         of the last source, as the binding and linking phases are never
20582         performed.
20583         Set all executable obsolete when rebuilding a library.
20584
20585         * makeutl.adb (Linker_Options_Switches): Do not process empty linker
20586         options.
20587
20588 2006-02-13  Javier Miranda  <miranda@adacore.com>
20589
20590         PR ada/23973
20591         * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
20592         code to improve the error message reported when the program has
20593         declarations of abstract interface types and it is not compiled with
20594         the -gnat05 switch.
20595         (P_Access_Definition): Reorganize the code to improve the error
20596         message reported when the new Ada 2005 syntax for anonymous
20597         access types is used and the program is not compiled with the
20598         -gnat05 switch.
20599
20600 2006-02-13  Robert Dewar  <dewar@adacore.com>
20601
20602         * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
20603         stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
20604         (MODE_IN)
20605
20606 2006-02-13  Javier Miranda  <miranda@adacore.com>
20607
20608         * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
20609         against source containing syntax errors.
20610
20611 2006-02-13  Vincent Celier  <celier@adacore.com>
20612
20613         * prj.adb (Reset): Initialize the first element of table Namings with
20614         the standard naming data.
20615
20616 2006-02-13  Vincent Celier  <celier@adacore.com>
20617
20618         * prj.ads (Error_Warning): New enumeration type
20619
20620         * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
20621         unknown, use the location of the project to report the error.
20622         (When_No_Sources): New global variable
20623         (Report_No_Ada_Sources): New procedure
20624         (Check): New parameter When_No_Sources. Set value of global variable
20625         When_No_Sources,
20626         (Find_Sources): Call Report_No_Ada_Sources when appropriate
20627         (Get_Sources_From_File): Ditto
20628         (Warn_If_Not_Sources): Better warning messages indicating the unit name
20629         and the file name.
20630
20631         * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
20632         Call Prj.Proc.Process with parameter When_No_Sources.
20633
20634         * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
20635         Call Recursive_Check with parameter When_No_Sources.
20636         (Recursive_Check): New parameter When_No_Sources. Call itself and
20637         Prj.Nmsc.Check with parameter When_No_Sources.
20638         (Process): New parameter When_No_Sources. Call Check with parameter
20639         When_No_Sources.
20640         (Copy_Package_Declarations): New procedure to copy renamed parameters
20641         and setting the location of the declared attributes to the location
20642         of the renamed package.
20643         (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
20644         packages.
20645
20646 2006-02-13  Vincent Celier  <celier@adacore.com>
20647
20648         * prj-makr.adb (Make): Preserve the comments from the original project
20649         file.
20650         When removing nodes (attributes Source_Dirs, Source_Files,
20651         Source_List_File and package Naming), save the comments and attach the
20652         saved comments to the newly created nodes.
20653         Do not add a with clause for the naming package if one already exists.
20654
20655 2006-02-13  Javier Miranda  <miranda@adacore.com>
20656             Gary Dismukes  <dismukes@adacore.com>
20657             Robert Dewar  <dewar@adacore.com>
20658
20659         * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
20660
20661         * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
20662         aliased entities to look for the overriden abstract interface
20663         subprogram.
20664         (Is_Interface_Subprogram): Complete documentation.
20665         (Check_Dispatching_Operation): Do not generate code to register the
20666         operation in the dispatch table if the source is compiled with
20667         restriction No_Dispatching_Calls.
20668         (Override_Dispatching_Operation): Check for illegal attempt to override
20669         No_Return procedure with procedure that is not No_Return
20670         (Check_Dispatching_Call): Suppress the check for an abstract operation
20671         when the original node of an actual is a tag-indeterminate attribute
20672         call, since the attribute, which must be 'Input, can never be abstract.
20673         (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
20674         call to the Input attribute (even when rewritten).
20675         (Propagate_Tag): Augment comment to indicate the possibility of a call
20676         to an Input attribute.
20677
20678         * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
20679         calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
20680
20681         * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
20682         No_Wide_Characters is no longer partition-wide
20683         No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
20684         rather than GNAT
20685
20686 2006-02-13  Douglas Rupp  <rupp@adacore.com>
20687
20688         * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
20689
20690 2006-02-13  Javier Miranda  <miranda@adacore.com>
20691
20692         * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
20693         handles default-initialized components to keep separate the management
20694         of this feature but also avoid the unrequired resolution and
20695         expansion of components that do not have partially initialized
20696         values.
20697         (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
20698         (Check_Bounds): Likewise.
20699         (Check_Length): Likewise.
20700
20701 2006-02-13  Javier Miranda  <miranda@adacore.com>
20702             Ed Schonberg  <schonberg@adacore.com>
20703
20704         * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
20705         abstract interface type call analyze_and_resolve to expand the type
20706         conversion into the corresponding displacement of the
20707         reference to the base of the object.
20708         (Eval_Attribute, case Width): For systems where IEEE extended precision
20709         is supported, the maximum exponent occupies 4 decimal digits.
20710         (Accessibility_Message): Add '\' in 2-line warning message.
20711         (Resolve_Attribute): Likewise.
20712         (case Attribute_Access): Significantly revise checks
20713         for illegal access-to-subprogram Access attributes to properly enforce
20714         the rules of 3.10.2(32/2).
20715         Diagnose use of current instance with an illegal attribute.
20716
20717         * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
20718         to a Node_Id.
20719         (Enclosing_Generic_Unit): New function to return a node's innermost
20720         enclosing generic declaration node.
20721         (Compile_Time_Constraint_Error): Remove '!' in warning messages.
20722         (Type_Access_Level): The accessibility level of anonymous acccess types
20723         associated with discriminants is that of the current instance of the
20724         type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
20725         (Compile_Time_Constraint_Error): Handle case of conditional expression.
20726         (Kill_Current_Values_For_Entity): New function
20727         (Enter_Name): Change formal type to Entity_Id
20728
20729 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
20730             Ed Schonberg  <schonberg@adacore.com>
20731             Gary Dismukes  <dismukes@adacore.com>
20732
20733         * sem_ch10.adb (Check_Redundant_Withs): New procedure in
20734         Analyze_Compilation_Unit.
20735         Detect and warn on redundant with clauses detected in a package spec
20736         and/or body when -gnatwr is used.
20737         (Analyze_Context): Analyze config pragmas before other items
20738         (Install_Context_Items): Don't analyze config pragmas here
20739         (Install_Limited_Withed_Unit): Set limited entity of package in
20740         with_clause so that cross-reference information or warning messages on
20741         unused packages can be properly generated
20742         (Is_Visible_Through_Renamings): Return false if the limited_with_clause
20743         has Error_Posted set. Prevent infinite loops in illegal programs.
20744         (Check_Private_Child_Unit): Move test for a nonprivate with clause down
20745         to the point of the error test requiring the current unit to be private.
20746         This ensures that private with clauses are not exempted from the basic
20747         checking for being a descendant of the same library unit parent as a
20748         withed private descendant unit.
20749         (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
20750         handle private with clauses properly, as well as to account for cases
20751         where the withed unit is a public descendant of a private ancestor
20752         (in which case the current unit must be a descendant of the private
20753         ancestor's parent). The spec comments were updated accordingly. Also,
20754         the old error message in this subprogram was replaced with error
20755         messages that mirror the errors tested and reported by
20756         Check_Private_Child_Unit.
20757         Parameter and variable names improved for readability.
20758         (Install_Limited_Context_Clauses): Remove test for a withed unit being
20759         private as the precondition for calling
20760         Check_Private_Limited_Withed_Unit since that subprogram has been
20761         revised to test public units as well as private units.
20762
20763 2006-02-13  Thomas Quinot  <quinot@adacore.com>
20764             Robert Dewar  <dewar@adacore.com>
20765             Ed Schonberg  <schonberg@adacore.com>
20766             Javier Miranda  <miranda@adacore.com>
20767
20768         * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
20769         that Scope_Stack.First = 1.
20770         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20771         were not always properly handled previously.
20772         (Formal_Entity): Complete rewrite, to handle properly some complex case
20773         with multiple levels of parametrization by formal packages.
20774         (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
20775         to the corresponding derived type declaration for proper semantics.
20776
20777         * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
20778         (Check_Component): Enforce restriction on components of
20779         unchecked_unions: a component in a variant cannot contain tasks or
20780         controlled types.
20781         (Unchecked_Union): Allow nested variants and multiple discriminants, to
20782         conform to AI-216.
20783         Add pragma Ada_2005 (synonym for Ada_05)
20784         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20785         were not always properly handled previously.
20786         Document that pragma Propagate_Exceptions has no effect
20787         (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
20788         (Set_Convention_From_Pragma): Check that if a convention is
20789         specified for a dispatching operation, then it must be
20790         consistent with the existing convention for the operation.
20791         (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
20792         longer required to specify an vtable-ptr component in the record. For
20793         compatibility reasons we leave the support for the previous definition.
20794         (Analyze_Pragma, case No_Return): Allow multiple arguments
20795
20796         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
20797         non-overrideen inherited operation with a controlling result as
20798         illegal only its implicit declaration comes from the derived type
20799         declaration of its result's type.
20800         (Check_Possible_Deferred_Completion): Relocate the object definition
20801         node of the subtype indication of a deferred constant completion rather
20802         than directly analyzing it. The analysis of the generated subtype will
20803         correctly decorate the GNAT tree.
20804         (Record_Type_Declaration): Check whether this is a declaration for a
20805         limited derived record before analyzing components.
20806         (Analyze_Component_Declaration): Diagnose record types  not explicitly
20807         declared limited when a component has a limited type.
20808         (Build_Derived_Record_Type): Code reorganization to check if some of
20809         the inherited subprograms of a tagged type cover interface primitives.
20810         This check was missing in case of a full-type associated with a private
20811         type declaration.
20812         (Constant_Redeclaration): Check that the subtypes of the partial and the
20813         full view of a constrained deferred constant statically match.
20814         (Mentions_T): A reference to the current type in an anonymous access
20815         component declaration  must be an entity name.
20816         (Make_Incomplete_Type_Declaration): If type is tagged, set type of
20817         class_wide type to refer to full type, not to the incomplete one.
20818         (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
20819         available. Required to give support to the certified run-time.
20820         (Analyze_Component_Declaration): In case of anonymous access components
20821         perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
20822         (Process_Discriminants): For an access discriminant, use the
20823         discriminant specification as the associated_node_for_itype, to
20824         simplify accessibility checks.
20825
20826 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20827             Javier Miranda  <miranda@adacore.com>
20828
20829         * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
20830         abstract interpretations on an operator, remove interpretations that
20831         yield Address or a type derived from it, if one of the operands is an
20832         integer literal.
20833         (Try_Object_Operation.Try_Primitive_Operation,
20834         Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
20835         location when creating the new reference to a primitive or class-wide
20836         operation as a part of rewriting a subprogram call.
20837         (Try_Primitive_Operations): If context requires a function, collect all
20838         interpretations after the first match, because there may be primitive
20839         operations of the same type with the same profile and different return
20840         types. From code reading.
20841         (Try_Primitive_Operation): Use the node kind to choose the proper
20842         operation when a function and a procedure have the same parameter
20843         profile.
20844         (Complete_Object_Operation): If formal is an access parameter and prefix
20845         is an object, rewrite as an Access reference, to match signature of
20846         primitive operation.
20847         (Find_Equality_Type, Find_One_Interp): Handle properly equality given
20848         by an expanded name with prefix Standard, when the operands are of an
20849         anonymous access type.
20850         (Remove_Abstract_Operations): If the operation is abstract because it is
20851         inherited by a user-defined type derived from Address, remove it as
20852         well from the set of candidate interpretations of an overloaded node.
20853         (Analyze_Membership_Op): Membership test not applicable to cpp-class
20854         types.
20855
20856 2006-02-13  Bob Duff  <duff@adacore.com>
20857
20858         * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
20859         redundant use clauses.
20860         In particular, if the scope of two use clauses overlaps, but one is not
20861         entirely included in the other, we should not warn.  This can happen
20862         with nested packages.
20863         (Analyze_Subprogram_Renaming): Protect the compiler against previously
20864         reported errors. The bug was reported when the compiler was built
20865         with assertions enabled.
20866         (Find_Type): If the node is a 'Class reference and the prefix is a
20867         synchronized type without a corresponding record, return the type
20868         itself.
20869
20870 2006-02-13  Javier Miranda  <miranda@adacore.com>
20871
20872         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
20873         if this is the full-declaration associated with a private declaration
20874         that implement interfaces, then the private type declaration must be
20875         limited.
20876         (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
20877         as aliased. The use of the 'access attribute is not available for such
20878         object (for this purpose the object should be explicitly marked as
20879         aliased, but being an anonymous type this is not possible).
20880
20881 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20882             Robert Dewar  <dewar@adacore.com>
20883
20884         * sem_elab.adb (Same_Elaboration_Scope): A package that is a
20885         compilation unit is an elaboration scope.
20886         (Add_Task_Proc): Add '\' in 2-line warning message.
20887         (Activate_All_Desirable): Deal with case of unit with'ed by parent
20888
20889 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20890             Javier Miranda  <miranda@adacore.com>
20891
20892         * sem_type.adb (Write_Overloads): Improve display of candidate
20893         interpretations.
20894         (Add_One_Interp): Do not add to the list of interpretations aliased
20895         entities corresponding with an abstract interface type that is an
20896         immediate ancestor of a tagged type; otherwise we have a dummy
20897         conflict between this entity and the aliased entity.
20898         (Disambiguate): The predefined equality on universal_access is not
20899         usable if there is a user-defined equality with the proper signature,
20900         declared in the same declarative part as the designated type.
20901         (Find_Unique_Type): The universal_access equality operator defined under
20902         AI-230 does not cover pool specific access types.
20903         (Covers): If one of the types is a generic actual subtype, check whether
20904         it matches the partial view of the other type.
20905
20906 2006-02-13  Thomas Quinot  <quinot@adacore.com>
20907
20908         * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
20909         line. This is necessary to allow In_Extended_Main_Unit to provide
20910         correct results for itypes while writing out expanded source.
20911         (Close_File): No need to update the source_index_table here since it's
20912         now done for each line.
20913
20914 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20915             Robert Dewar  <dewar@adacore.com>
20916
20917         * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
20918         preserve the source unit where the itype is declared, and prevent a
20919         backend abort.
20920         (Note_Implicit_Run_Time_Call): New procedure
20921         (Write_Itype): Handle missing cases (E_Class_Wide_Type and
20922         E_Subprogram_Type)
20923
20924         * sprint.ads: Document use of $ for implicit run time routine call
20925
20926 2006-02-13  Quentin Ochem  <ochem@adacore.com>
20927
20928         * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
20929         task name.
20930
20931 2006-02-13  Bob Duff  <duff@adacore.com>
20932
20933         * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
20934         Scan_Unsigned, so we do not scan leading blanks and sign twice.
20935         Integer'Value("- 5") and Integer'Value("-+5") now correctly
20936         raise Constraint_Error.
20937
20938         * s-vallli.adb (Scan_Long_Long_Integer): Call
20939         Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
20940         do not scan leading blanks and sign twice.
20941         Integer'Value("- 5") and Integer'Value("-+5") now correctly
20942         raise Constraint_Error.
20943
20944         * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
20945         Scan_Long_Long_Unsigned): Split out most of the processing from
20946         Scan_Long_Long_Unsigned out into
20947         Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
20948         This prevents scanning leading blanks and sign twice.
20949         Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
20950         See RM-3.5(44).
20951
20952         * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
20953         out most of the processing from Scan_Unsigned out into
20954         Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
20955         This prevents scanning leading blanks and sign twice.
20956
20957         * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
20958         use with Modular'Value attribute.
20959         (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
20960         attribute.
20961
20962 2006-02-13  Robert Dewar  <dewar@adacore.com>
20963
20964         * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
20965
20966 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
20967
20968         * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
20969         (PPC VxWorks): Likewise.
20970         (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
20971         (forced_callee): Make non-inlinable and non-pure.
20972         (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
20973
20974 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
20975             Ben Brosgol  <brosgol@adacore.com>
20976             Robert Dewar  <dewar@adacore.com>
20977
20978         * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
20979         support.
20980         Document that gnatbind -M option is for cross environments only.
20981         Added description of using gnatmem to trace gnat rtl allocs and deallocs
20982         Add note on use of $ to label implicit run time calls
20983         Add documentation for -gnatyI (check mode IN)
20984         Updated chapter on compatibility with HP Ada
20985         VMS-oriented edits.
20986         Ran spell and corrected errors
20987         Add documentation for gnatbind -d and rework documentation of -D
20988         at the same time.
20989         Add subprogram/data elimination section.
20990         Minor editing of annex A.
20991         Add section for gnatcheck.
20992         Add documentation for restriction No_Dispatching_Calls
20993         Add documentation for pragma Ada_2005
20994         Remove mention of obsolete pragma Propagate_Exceptions
20995         Document that pragma Unreferenced can appear after DO in ACCEPT
20996         Clarify Pure_Function for library level units
20997         Mention Max/Min in connection with No_Implicit_Conditionals
20998         No_Wide_Characters restriction is no longer partition-wide
20999         Add a nice example for Universal_Literal_String attribute
21000         Document that pragma No_Return can take multiple arguments
21001
21002         * ug_words: Added entry for gnatcheck
21003
21004         * g-ctrl_c.ads (Install_Handler): Enhance comments
21005
21006         * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
21007
21008         * g-trasym.ads: Add documentation on how to do off line symbolic
21009         traceback computation.
21010
21011         * s-fatgen.adb: Add comments for Unaligned_Valid
21012
21013         * stand.ads: Fix typo in comment
21014
21015 2006-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
21016
21017         * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
21018
21019 2006-02-06  Roger Sayle  <roger@eyesopen.com>
21020
21021         * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
21022
21023 2006-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21024
21025         PR target/25926
21026         * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
21027         implementation that calls __main.
21028
21029 2006-01-25  Peter O'Gorman  <peter@pogma.com>
21030
21031         PR bootstrap/25859
21032         * Makefile.in (GCC_LINK): Remove quotes.
21033         (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
21034         or $(GCC_LINK).
21035
21036         (powerpc-darwin): Pass -shared-libgcc when building shared library.
21037
21038 2006-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21039
21040         PR ada/24533
21041         * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
21042
21043 2005-12-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21044
21045         * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
21046
21047 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
21048
21049         * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
21050         needed.
21051
21052 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
21053
21054         * Make-lang.in: Update dependencies
21055
21056 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
21057
21058         * Make-lang.in: Add rule for ada/exp_sel.o
21059
21060 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
21061
21062         * Makefile.in (mingw section): Remove EH_MECHANISM setting.
21063
21064 2005-12-09  Arnaud Charlet  <charlet@adacore.com>
21065
21066         * gnatvsn.ads (Library_Version): Bump to version 4.2
21067         (ASIS_Version_Number): Bumped.
21068
21069 2005-12-09  Doug Rupp  <rupp@adacore.com>
21070
21071         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
21072         Ada bind file prefix on VMS from b$ to b__.
21073         (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
21074         __init.
21075
21076         * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
21077         Targparm.OpenVMS_On_Target.
21078         (Object_Suffix): Initialize with target object suffix.
21079         (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
21080
21081         * butil.adb: Change some Hostparm.OpenVMS checks to
21082         Targparm.OpenVMS_On_Target.
21083
21084         * clean.adb: Change some Hostparm.OpenVMS checks to
21085         Targparm.OpenVMS_On_Target.
21086         (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
21087         ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
21088         Ada bind file prefix on VMS from b$ to b__.
21089
21090         * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
21091         --GCC so that Get_Target_Parameters can find system.ads.
21092         (Gnatlink): Call Get_Target_Parameters in mainline.
21093         Initialize standard packages for Targparm.
21094         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
21095         (Process_Args): Also Check for object files with target object
21096         extension.
21097         (Make_Binder_File_Names): Create with target object extension.
21098         (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
21099         to b__.
21100
21101         * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
21102         Targparm.OpenVMS_On_Target.
21103         ({declaration},Build_Library,Check_Library): Change Ada bind file
21104         prefix on VMS from b$ to b__.
21105
21106         * osint-b.adb: Change some Hostparm.OpenVMS checks to
21107         Targparm.OpenVMS_On_Target.
21108         (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
21109         b__.
21110
21111         * targext.c: New file.
21112
21113         * Makefile.in: add support for vxworks653 builds
21114         (../../vxaddr2line): gnatlink with targext.o.
21115         (TOOLS_LIBS): Move targext.o to precede libgnat.
21116         (init.o, initialize.o): Minor clean up in dependencies.
21117         (GNATLINK_OBJS): Add targparm.o, snames.o
21118         Add rules fo building targext.o and linking it explicitly with all
21119         tools.
21120         Also add targext.o to gnatlib.
21121
21122         * Make-lang.in: Add rules for building targext.o and linking it in
21123         with gnat1 and gnatbind.
21124         Add entry for exp_sel.o.
21125
21126         * osint.adb Change some Hostparm.OpenVMS checks to
21127         Targparm.OpenVMS_On_Target.
21128         (Object_File_Name): Use target object suffix.
21129
21130         * osint.ads (Object_Suffix): Remove, no longer used.
21131         (Target_Object_Suffix): Initialize with target object suffix.
21132
21133         * rident.ads: Add special exception to license.
21134
21135         * targparm.adb (Get_Target_Parameters): Set the value of
21136         Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
21137         value.
21138         (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
21139
21140         * targparm.ads: Add special exception to license.
21141
21142         * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
21143         function.
21144         (Copy_File): Make sure from file is closed if error on to file
21145         (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
21146
21147         * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
21148         (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
21149
21150         * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
21151         target object suffix.
21152
21153 2005-12-09  Jose Ruiz  <ruiz@adacore.com>
21154             Quentin Ochem  <ochem@adacore.com>
21155             Florian Villoing  <villoing@adacore.com>
21156
21157         * a-taster.ads, a-taster.adb: New files.
21158
21159         * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
21160         link to the version that does nothing. This way the task termination
21161         routine is not executed twice for the environment task when finishing
21162         because of an unhandled exception.
21163
21164         * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
21165         handler because of an unhandled exception.
21166
21167         * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
21168         System.Tasking.Utilities instead of that in System.Tasking.Stages.
21169
21170         * s-finimp.adb (initialization code): Modify the soft link for the
21171         finalization of the global list instead of Adafinal.
21172
21173         * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
21174         non-tasking version of the soft link for task termination. We do
21175         nothing since if we are using the non-tasking version it
21176         means that the task termination functionality is not used.
21177         (Null_Finalize_Global_List): Add this null version for the procedure
21178         in charge of finalizing the global list for controlled objects.
21179         (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
21180         instead for handling run-time termination in a more flexible way.
21181         (Adafinal_NT): This new procedure will take care of finalizing the
21182         global list for controlled objects if needed, but no tasking
21183         finalization.
21184
21185         * s-tarest.adb (Task_Lock): Do not try to lock again the
21186         Global_Task_Lock if we already own it. Otherwise, we get blocked in
21187         some run-time operations.
21188         (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
21189         until all nested locks have been released.
21190         (Task_Wrapper): Call the fall-back task termination handler. It
21191         applies to all tasks but the environment task.
21192         (Finalize_Global_Tasks): Add the call for the task termination
21193         procedure for the environment task.
21194         (Task_Wrapper): suppress warnings around declaration of
21195         Secondary_Stack_Address.
21196
21197         * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
21198         moved to the Common_ATCB record.
21199         (Task_Lock): Global_Task_Lock_Nesting has been moved to the
21200         Common_ATCB record.
21201         (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
21202         Common_ATCB record.
21203
21204         * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
21205         Fall_Back_Handler, and Specific_Handler.
21206
21207         * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
21208         defined in Ada.Task_Termination, to avoid circular dependencies.
21209         (Termination_Handler): Redefine this type here, alredy defined in
21210         Ada.Task_Termination, for avoiding circular dependencies.
21211         (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
21212         for storing task termination handlers. In addition,
21213         Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
21214         Common_ATCB because it is used by both the regular and the restricted
21215         run times.
21216         (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
21217         Common_ATCB because it is used by both the regular and the restricted
21218         run times.
21219         (Common_ATCB): Added a dynamic task analyzer field.
21220
21221         * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
21222         potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
21223         (Task_Wrapper): Call the task termination handler. It applies to all
21224         tasks but the environment task.
21225         (Finalize_Global_Tasks): Call the task termination procedure for the
21226         environment task. The call to Finalize_Global_List is now performed
21227         using the soft links mechanism.
21228         (Task_Wrapper): added dynamic stack analysis.
21229
21230         * s-tasuti.adb (Abort_Tasks): The code in charge of checking
21231         potentially blocking operations has been moved from
21232         System.Tasking.Stages.Abort_Tasks to this procedure. There can be
21233         direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
21234         through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
21235         this run-time check.
21236
21237         * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
21238         of task termination procedure.
21239         (Init_Tasking_Soft_Links): Install the task-safe version of the soft
21240         link for the task termination procedure.
21241
21242         * bindusg.adb: (Bindusg): Added documentation for -u option.
21243
21244         * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
21245         (Get_Main_C): Add handling of dynamic stack analysis.
21246         (Gen_Output_File_C): Add external functions for dynamic stack analysis.
21247
21248         * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
21249         (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
21250         (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
21251
21252         * opt.ads: Added flags used by dynamic stack measurement.
21253         (Max_Line_Length): Remove (not used anymore)
21254
21255         * s-io.ads, s-io.adb (Standard_Error): new subprogram
21256         (Standart_Output): new subprogram
21257         (Set_Output): new subprogram
21258         (Put): now uses the value of Current_Out to know if the output has to be
21259         send to stderr or stdout.
21260
21261         * s-stausa.ads: Complete implementation.
21262
21263         * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
21264
21265         * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
21266         list of Ada 05 files.
21267         (GNAT Library Units): Add AltiVec files.
21268
21269         * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
21270         g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
21271         g-alvety.ads, g-alvevi.ads: New files providing altivec API.
21272
21273 2005-12-09  Nicolas Setton  <setton@adacore.com>
21274
21275         * adaint.c (__gnat_locate_regular_file): Return immediately if
21276         file_name is empty.
21277
21278 2005-12-09  Javier Miranda  <miranda@adacore.com>
21279             Hristian Kirtchev  <kirtchev@adacore.com>
21280
21281         * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
21282         to the specification because the frontend generates code that uses this
21283         subprogram.
21284         (Set_Interface_Table): Add missing assertion.
21285         Update documentation describing the run-time structure.
21286         (Displace): New subprogram that displaces the pointer to the object
21287         to reference one of its secondary dispatch tables.
21288         (IW_Membership): Modified to use the new table of interfaces.
21289         (Inherit_TSD): Modified to use the new table of interfaces.
21290         (Register_Interface_Tag): Use the additional formal to fill the
21291         contents of the new table of interfaces.
21292         (Set_Interface_Table): New subprogram that stores in the TSD the
21293         pointer to the table of interfaces.
21294         (Set_Offset_To_Top): Use the additional formal to save copy of
21295         the offset value in the table of interfaces.
21296         Update structure of GNAT Primary and Secondary dispatch table diagram.
21297         Add comment section on GNAT dispatch table prologue.
21298         (Offset_To_Signature): Update the constant value of the Signature field.
21299         (Dispatch_Table): Update comment on hidden fields in the prologue.
21300         (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
21301         Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
21302         the type of formal parameter T to Tag, introduce additional assertions.
21303         (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
21304         conversion.
21305         (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
21306
21307         * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
21308         in all the calls to Expand_Interface_Thunk. Instead of referencing the
21309         record component containing the tag of the secondary dispatch table we
21310         have to use the Offset_To_Top run-time function to get this information;
21311         otherwise if the pointer to the base of the object has been displace
21312         we get a wrong value if we use the 'position attribute.
21313
21314         * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
21315         all the calls to Expand_Interface_Thunk.
21316         (Make_Secondary_DT): Secondary dispatch tables do not have a table of
21317         interfaces; hence the call to Set_Interface_Table was clearly wrong.
21318         (Collect_All_Interfaces): Modify the internal subprogram Collect to
21319         ensure that the interfaces implemented by the ancestors are placed
21320         at the header of the generated list.
21321         (Expand_Interface_Conversion): Handle the case in which the displacement
21322         associated with the interface conversion is not statically known. In
21323         this case we generate a call to the new run-time subprogram Displace.
21324         (Make_DT): Generate and fill the new table of interfaces.
21325         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
21326         Get_Tagged_Kind and Set_Tagged_Kind.
21327         (Tagged_Kind): New function that determines the tagged kind of a type
21328         with respect to limitedness and concurrency and returns a reference to
21329         RE_Tagged_Kind.
21330         (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
21331         Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
21332         primary dispatch table for a type.
21333         (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
21334         secondary dispatch table respectively of a tagged type.
21335
21336         * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
21337         (Expand_Interface_Conversion): New subprogram to indicate if the
21338         displacement of the type conversion is statically known.
21339         (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
21340
21341         * rtsfind.ads (RE_Offset_To_Top): New entity
21342         (RTU_Id): Add Ada_Task_Termination to the list so that it is made
21343         accessible to users.
21344         (Re_Displace): New entity
21345         (RE_Interface_Data): New entity
21346         (RE_Set_Interface_Data): New_Entity
21347         (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
21348         Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
21349         RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
21350         RE_TK_Tagged, RE_TK_Task.
21351
21352         * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
21353         Init_Secondary_Tags_Internal to allow its use with interface types and
21354         also to generate the code for the new additional actual required
21355         by Set_Offset_To_Top.
21356         (Build_Init_Statements): In case of components associated with abstract
21357         interface types there is no need to generate a call to its IP.
21358         (Freeze_Record_Type): Generate Select Specific Data tables only for
21359         concurrent types.
21360         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
21361         the bodies and specifications of the predefined primitive operations
21362         dealing with dispatching selects and abort, 'Callable, 'Terminated only
21363         for concurrent types.
21364
21365         * exp_sel.ads, exp_sel.adb: New files.
21366
21367         * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
21368         Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
21369         properly protected objects and attach handler in the case of the
21370         restricted profile.
21371         Move embeded package Select_Expansion_Utilities into a separate external
21372         package.
21373         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
21374         Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
21375         (Build_K, Build_S_Assignment): New subprograms, part of the select
21376         expansion utilities.
21377         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
21378         Expand_N_Timed_Entry_Call): Optimize expansion of select statements
21379         where the trigger is a dispatching procedure of a limited tagged type.
21380
21381 2005-12-09  Olivier Hainque  <hainque@adacore.com>
21382
21383         * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
21384         pointer initialization values. Make a SAVE_EXPR instead. Add comments
21385         about the use and expansion of SAVE_EXPRs in the various possible
21386         renaming handling cases.
21387         (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
21388         abusing DECL_FCONTEXT.
21389
21390 2005-12-09  Matthew Heaney  <heaney@adacore.com>
21391
21392         * a-convec.adb (Merge): Added assertions to check whether vector params
21393         are sorted.
21394
21395         * a-coinve.adb (Merge): Added assertions to check whether vector params
21396         are sorted.
21397
21398         * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
21399         draft.
21400         (Cursor'Read): raises PE
21401
21402         * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
21403         to its default value.
21404
21405         * a-cihama.adb: Manually check whether cursor's key and elem are
21406         non-null
21407
21408         * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
21409         (Merge): Assert that target and source lists are in order
21410         (Swap): Declare non-const temporaries, to pass to Splice
21411
21412         * a-cdlili.ads: (Splice): Changed param name and param mode
21413
21414         * a-cdlili.adb: (Splice): Changed param name and param mode
21415         (Merge): Assert that target and source lists are in order
21416         (Swap): Declare non-const temporaries, to pass to Splice
21417
21418         * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
21419         (Write): declare Stream param as not null
21420
21421         * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
21422         an exception message.
21423
21424 2005-12-09  Thomas Quinot  <quinot@adacore.com>
21425             Robert Dewar  <dewar@adacore.com>
21426
21427         * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
21428         which is the absolute maximum length we can support.
21429
21430         * frontend.adb: For the processing of configuration pragma files,
21431         remove references to Opt.Max_Line_Length, which is not checked anymore.
21432
21433         * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
21434         length.
21435
21436         * scn.adb, scng.adb:
21437         Always check line length against the absolute supported maximum,
21438         Hostparm.Max_Line_Length.
21439
21440         * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
21441         value for the maximum line length is Max_Line_Length (not
21442         Column_Number'Last).
21443         Minor error msg update
21444         (Set_Style_Check_Options): New interface returning error msg
21445         Minor code reorganization (processing for 'M' was out of alpha order)
21446
21447         * switch-c.adb: New interface for Set_Style_Check_Options
21448
21449         * stylesw.ads (Set_Style_Check_Options): New interface returning error
21450         msg.
21451
21452 2005-12-09  Javier Miranda  <miranda@adacore.com>
21453
21454         * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
21455         with IP subprogram were only supported if there were limited types.
21456
21457         * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
21458         records with IP subprogram were only supported if there were limited
21459         types.
21460
21461 2005-12-09  Olivier Hainque  <hainque@adacore.com>
21462             Eric Botcazou  <ebotcazou@adacore.com>
21463
21464         * trans.c (tree_transform, emit_check): Adjust calls to
21465         build_call_raise, passing the now expected GNAT_NODE argument.
21466
21467         * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
21468         source line information than what the current global locus indicates
21469         when appropriate.
21470
21471         * utils2.c (build_simple_component_ref): Return 0 if the offset of the
21472         field has overflowed.
21473         (build_call_raise): Add a GNAT_NODE argument to convey better source
21474         line information than what the current global locus indicates when
21475         appropriate.
21476         (build_component_ref): Adjust call to build_call_raise.
21477
21478 2005-12-09  Pascal Obry  <obry@adacore.com>
21479
21480         * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
21481         the iterator is quitting iteration on parent directory.
21482
21483 2005-12-09  Javier Miranda  <miranda@adacore.com>
21484
21485         * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
21486         and the assignment to a class-wide object, before the assignment we
21487         generate a run-time check to ensure that the tag of the Target is
21488         covered by the tag of the source.
21489
21490 2005-12-09  Robert Dewar  <dewar@adacore.com>
21491
21492         * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
21493         parameter in call to Image_Wide_Character.
21494
21495         * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
21496         parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
21497         (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
21498         annoying FFFE/FFFF inconsistency.
21499
21500 2005-12-09  Robert Dewar  <dewar@adacore.com>
21501             Javier Miranda  <miranda@adacore.com>
21502             Ed Schonberg  <schonberg@adacore.com>
21503
21504         * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
21505         of type conversion.
21506         (Find_Interface): New subprogram that given a tagged type and one of its
21507         component associated with the secondary table of an abstract interface
21508         type, return the entity associated with such abstract interface type.
21509         (Make_Subtype_From_Expr): If type has unknown discriminants, always use
21510         base type to create anonymous subtype, because entity may be a locally
21511         declared subtype or generic actual.
21512         (Find_Interface): New subprogram that given a tagged type and one of its
21513         component associated with the secondary table of an abstract interface
21514         type, return the entity associated with such abstract interface type.
21515
21516         * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
21517         conversion cannot be handled at compile time. In this case we pass this
21518         information to the expander to generate the appropriate code.
21519
21520 2005-12-09  Robert Dewar  <dewar@adacore.com>
21521             Ed Schonberg  <schonberg@adacore.com>
21522             Gary Dismukes  <dismukes@adacore.com>
21523             Javier Miranda  <miranda@adacore.com>
21524             Hristian Kirtchev  <kirtchev@adacore.com>
21525
21526         * einfo.adb (Itype_Printed): New flag
21527         (Is_Limited_Type): Derived types do not inherit limitedness from
21528         interface progenitors.
21529         (Is_Return_By_Reference_Type): Predicate does not apply to limited
21530         interfaces.
21531
21532         * einfo.ads (Itype_Printed): New flag
21533         Move Is_Wrapper_Package to proper section
21534         Add missing Inline for Is_Volatile
21535
21536         * output.ads, output.adb (Write_Erase_Char): New procedure
21537         (Save/Restore_Output_Buffer): New procedures
21538         (Save/Restore_Output_Buffer): New procedures
21539
21540         * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
21541         Add missing support for anonymous access type
21542         (Write_Id): Insert calls to Write_Itype
21543         (Write_Itype): New procedure to output itypes
21544
21545         * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
21546         use of "limited" in declaration.
21547
21548         * sinfo.ads, sinfo.adb:
21549         Formal derived types can carry an explicit "limited" indication.
21550
21551         * sem_ch3.adb: Add with and use of Targparm.
21552         (Create_Component): If Frontend_Layout_On_Target is True and the
21553         copied component does not have a known static Esize, then reset
21554         the size and positional fields of the new component.
21555         (Analyze_Component_Declaration): A limited component is
21556         legal within a protected type that implements an interface.
21557         (Collect_Interfaces): Do not add to the list the interfaces that
21558         are implemented by the ancestors.
21559         (Derived_Type_Declaration): If the parent of the full-view is an
21560         interface perform a transformation of the tree to ensure that it has
21561         the same parent than the partial-view. This simplifies the job of the
21562         expander in order to generate the correct object layout, and it is
21563         needed because the list of interfaces of the full-view can be given in
21564         any order.
21565         (Process_Full_View): The parent of the full-view does not need to be
21566         a descendant of the parent of the partial view if both parents are
21567         interfaces.
21568         (Analyze_Private_Extension_Declaration): If declaration has an explicit
21569         "limited" the parent must be a limited type.
21570         (Build_Derived_Record_Type): A derived type that is explicitly limited
21571         must have limited ancestor and progenitors.
21572         (Build_Derived_Type): Ditto.
21573         (Process_Full_View): Verify that explicit uses of "limited" in partial
21574         and full declarations are consistent.
21575         (Find_Ancestor_Interface): Remove function.
21576         (Collect_Implemented_Interfaces): New procedure used to gather all
21577         implemented interfaces by a type.
21578         (Contain_Interface): New function used to check whether an interface is
21579         present in a list.
21580         (Find_Hidden_Interface): New function used to determine whether two
21581         lists of interfaces constitute a set equality. If not, the first
21582         differing interface is returned.
21583         (Process_Full_View): Improve the check for the "no hidden interface"
21584         rule as defined by AI-396.
21585
21586 2005-12-09  Robert Dewar  <dewar@adacore.com>
21587
21588         * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
21589         types, not on record subtypes.
21590         (Freeze_Entity): Code cleanup. Add barrier to the loop
21591         that generates the references for primitive operations. This allows to
21592         remove an unnecessary exception handler.
21593         Code reformatting and comment clean ups.
21594
21595 2005-12-09  Vincent Celier  <celier@adacore.com>
21596
21597         * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
21598         If GNAT CHECK is called with a project file, but with no
21599         source on the command line, call gnatcheck with all the compilable
21600         sources of the project.
21601         Take into account the new command Check, for gnatcheck. Treat as for
21602         other ASIS tools: take into account project, specific package Check and
21603         Compiler switches.
21604         For ASIS tools, add the switches in package Compiler for
21605         the invocation of the compiler.
21606
21607         * prj-attr.adb: Add package Check and its attributes
21608
21609         * vms_conv.ads (Command_Type): New command Check, for gnatcheck
21610
21611         * vms_conv.adb (Initialize): Change Params of command Check to
21612         unlimited files.
21613         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
21614         Add data for new command Check
21615
21616         * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
21617         ELIM.
21618         Add qualifiers for Check command options
21619         (Command_Type): New command Check
21620
21621 2005-12-09  Thomas Quinot  <quinot@adacore.com>
21622
21623         * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
21624         command line switch overruns the output buffer.
21625
21626 2005-12-09  Robert Dewar  <dewar@adacore.com>
21627
21628         * sem_prag.adb: Processing for new pragma Complete_Representation
21629         (Analyze_Pragma, case Debug): Implement two argument form.
21630
21631         * par-prag.adb: Entry for new pragma Complete_Representation
21632         (Prag, case Debug): Recognize two argument form of pragma Debug
21633         New interface for Set_Style_Check_Options.
21634
21635         * sem_ch13.adb: Implement new pragma Complete_Representation.
21636
21637         * snames.adb, snames.ads, snames.h: Entry for new pragma
21638         Complete_Representation.
21639
21640 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
21641
21642         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
21643         available user-specified stream attributes on limited parameters to
21644         also test the type directly rather than only its underlying type (for
21645         Ada 95) and, in the case of Ada 2005, to check that the user-specified
21646         attributes are visible at the point of the subprogram declaration.
21647         For Ada 2005, the error message is modified to indicate that the
21648         type's stream attributes must be visible (again, only for -gnat05).
21649
21650 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
21651
21652         * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
21653         anonymous access types.
21654
21655         * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
21656         matching of anonymous access types and anonymous access to subprogram
21657         types. 'R'M 4.9.1 (2/2).
21658
21659 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
21660
21661         * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
21662         rule prematurely when operands are universal, remaining ambiguities
21663         will be removed during resolution.
21664         Code cleanup.
21665
21666         * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
21667         that are Ada 2005 functions.
21668         (Has_Abstract_Interpretation): Subsidiary to
21669         Remove_Conversions, to remove ambiguities caused by abstract operations
21670         on numeric types when operands are universal.
21671
21672 2005-12-09  Robert Dewar  <dewar@adacore.com>
21673
21674         * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
21675         for case where spec is categorized.
21676
21677 2005-12-09  Javier Miranda  <miranda@adacore.com>
21678
21679         * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
21680         types use the corresponding record type. This was not needed before
21681         the implementation of Ada 2005 synchronized types because
21682         concurrent types were never tagged types in Ada 95.
21683
21684 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
21685
21686         * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
21687         first subtype of the type of the expression to verify that it is a
21688         legal Time type.
21689
21690 2005-12-09  Robert Dewar  <dewar@adacore.com>
21691
21692         * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
21693         decoded names.
21694
21695 2005-12-09  Quentin Ochem  <ochem@adacore.com>
21696             Robert Dewar  <dewar@adacore.com>
21697             Ed Falis  <falis@adacore.com>
21698             Florian Villoing  <villoing@adacore.com>
21699             Thomas Quinot  <quinot@adacore.com>
21700             Arnaud Charlet  <charlet@adacore.com>
21701
21702         * gnat_ugn.texi: Created section "Stack Related Tools"
21703         Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
21704         "Stack Related Tools"
21705         Added subsection "Static Stack Usage Analysis"
21706         Added subsection "Dynamic Stack Usage Analysis"
21707         Include documentation of itypes in sprint listing (-gnatG)
21708         Documented gnatbind -D switch (default sec stack size for fixed sec
21709         stacks).
21710         Added Interrupt_State and Persistent_BSS to list of configuration
21711         pragmas.
21712         Add missing doc for maximum value of nnn in -gnatyMnnn
21713
21714         * gnat_rm.texi: Document the AltiVec binding.
21715         Add documentation for pragma Complete_Representation
21716         Shortened an overly long line (> 79 chars)
21717         Clarify documentation of unchecked conversion in implementation
21718         defined cases.
21719         Document two argument form of pragma Debug
21720
21721         * types.ads (Column_Number): Update documentation.
21722
21723         * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
21724         library level Finalize_Storage_Only objects (these are not attached to
21725         any finalization list).
21726
21727         * system-mingw.ads: (Underlying_Priorities): Update comment.
21728
21729 2005-12-09  Robert Dewar  <dewar@adacore.com>
21730
21731         * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
21732         i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
21733         inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
21734         i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
21735         krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
21736         lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
21737         interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
21738         s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
21739         reformatting.
21740
21741 2005-12-09  Robert Dewar  <dewar@adacore.com>
21742
21743         * s-vaflop-vms-alpha.adb: (Ne_F): New function
21744         (Ne_G): New function
21745
21746         * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
21747         for tag assignment.
21748         (Rewrite_Comparison): Handle case where operation is not a comparison
21749         and ignore, and also handle type conversion case.
21750
21751 2005-12-09  Thomas Quinot  <quinot@adacore.com>
21752
21753         * exp_aggr.ads: Fix typo in comment.
21754         ???-mark Convert_Aggr_In_Assignment as needing documentation.
21755
21756 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
21757
21758         * layout.adb: Replace various uses of byte by storage unit throughout.
21759         (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
21760         static size, convert to storage units before returning, to conform to
21761         spec.
21762
21763 2005-12-09  Matthew Gingell  <gingell@adacore.com>
21764
21765         * g-exctra.ads: Fix typo in comment.
21766
21767 2005-12-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21768
21769         * utils.c: Minor reformatting.
21770
21771 2005-12-09  Robert Dewar  <dewar@adacore.com>
21772
21773         * g-soccon.ads:
21774         Further comment fixes to make the status of the default file clear
21775
21776         * s-bitops.adb: Clarify comment for Bits_Array
21777
21778 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
21779
21780         * Make-lang.in (ada.install-normal): Remove.
21781
21782 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
21783
21784         * Make-lang.in: Remove all dependencies on s-gtype.
21785
21786 2005-12-05  Richard Guenther  <rguenther@suse.de>
21787
21788         * utils.c (convert): Use fold_convert where appropriate.
21789
21790 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
21791
21792         * Makefile.in (gnatlib): Fix regex, using \. instead of . when
21793         a period is meant.
21794
21795 2005-12-02  Richard Guenther  <rguenther@suse.de>
21796
21797         * trans.c (gnat_gimplify_expr): Use buildN instead of build.
21798
21799 2005-12-01  Roger Sayle  <roger@eyesopen.com>
21800
21801         * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
21802         nodes.
21803
21804 2005-11-23  Laurent Guerby  <laurent@guerby.net>
21805
21806         * mlib-prj.adb (Build_Library): Initialize Delete.
21807
21808 2005-11-21  Joel Sherrill  <joel.sherrill@oarcorp.com>
21809
21810         * socket.c: Add extern int h_errno for rtems since networking header
21811         files are not available at this point in a tool bootstrap. Newlib
21812         only has basic C library header files.
21813
21814 2005-11-19  Richard Guenther  <rguenther@suse.de>
21815         Roger Sayle  <roger@eyesopen.com>
21816
21817         PR ada/23717
21818         * misc.c (internal_error_function): Don't use vsprintf to format
21819         the error message text, instead use pp_format_text and the new
21820         pretty printer APIs.  This allows handling of %qs, %w, etc.
21821
21822 2005-11-18  Laurent Guerby  <laurent@guerby.net>
21823
21824         PR ada/24857
21825         * Makefile.in: Use s-auxdec-empty for RTEMS.
21826
21827 2005-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21828
21829         PR ada/22333
21830         * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
21831         a temporary if taking the address of something that is neither
21832         reference, declaration, or constant, since the gimplifier
21833         can't handle that case.
21834
21835 2005-11-17  Laurent Guerby  <laurent@guerby.net>
21836
21837         PR ada/24857
21838         * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
21839
21840 2005-11-16  Richard Guenther  <rguenther@suse.de>
21841
21842         * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
21843
21844 2005-11-16  Joel Sherrill  <joel.sherrill@oarcorp.com>
21845
21846         PR ada/24855
21847         * raise-gcc.c: Add missing stdarg.h include.
21848
21849 2005-11-16  Richard Guenther  <rguenther@suse.de>
21850
21851         * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
21852         (ada/misc.o): Likewise.
21853
21854 2005-11-14  Thomas Quinot  <quinot@adacore.com>
21855
21856         * g-soccon.ads: Minor reformatting. Update comments.
21857
21858         * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
21859         gain visibility on the declaration of struct timeval.
21860
21861         * g-soccon-freebsd.ads,
21862         g-soccon-darwin.ads,
21863         g-soccon-tru64.ads,
21864         g-soccon-aix.ads,
21865         g-soccon-irix.ads,
21866         g-soccon-hpux.ads,
21867         g-soccon-solaris.ads,
21868         g-soccon-vms.ads,
21869         g-soccon-mingw.ads,
21870         g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
21871
21872         * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
21873         g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
21874         g-soccon-linux-x86.ads: New files.
21875
21876         * g-socthi-mingw.adb:
21877         (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
21878
21879         * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
21880         (time_t, suseconds_t): New types constructed to match the tv_sec
21881         and tv_usec fields of C struct timeval.
21882         (Timeval): Construct structure in terms of the new types.
21883         (Host_Errno): New function (imported from socket.c), returns last hosts
21884         database error.
21885
21886         * g-socthi-vxworks.adb:  Add error handling circuitry.
21887
21888         * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
21889         components of struct timeval.
21890         (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
21891         (Check_Selector): In error conditions, clear internal socket sets to
21892         avoid a memory leak.
21893         (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
21894         Send_Timeout, Receive_Timeout.
21895
21896         * g-socthi.ads (time_t, suseconds_t): New types constructed to match
21897         the tv_sec and tv_usec fields of C struct timeval.
21898         (Timeval): Construct structure in terms of the new types.
21899         (Host_Errno): New function (imported from socket.c), returns last hosts
21900         database error.
21901
21902         * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
21903         hosts database last error code.
21904
21905         * gen-soccon.c: Complete value expansion should not be performed on
21906         TARGET, as it has the form of a math expression, and some components
21907         may be platform-defined macros.
21908         For VxWorks, generate the OK and ERROR values.
21909         New constants giving the sizes of the components of C struct timeval.
21910
21911 2005-11-14  Robert Dewar  <dewar@adacore.com>
21912             Ed Schonberg  <schonberg@adacore.com>
21913
21914         PR ada/18434
21915         * types.ads: Include All_Checks in Suppress_Array
21916
21917         * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
21918         not(a=b), since we no longer do this rewriting, and hence it is not
21919         needed.
21920         (Elaboration_Checks_Suppressed): Add special casing to
21921         deal with different cases of static and dynamic elaboration checks (all
21922         checks does not count in the first case, but does in the second).
21923         (Expr_Known_Valid): Do not assume that the result of any arbitrary
21924         function call is valid, since this is not the case.
21925         (Ensure_Valid): Do not apply validity check to a real literal
21926         in a universal or fixed context
21927
21928         * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
21929         elementary types using the operator in standard. It is cleaner not to
21930         modify the programmers intent, especially in the case of floating-point.
21931         (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
21932         it did not matter because we always rewrote a/=b to not(a=b).
21933         (Expand_Allocator_Expression): For an allocator expression whose nominal
21934         subtype is an unconstrained packed type, convert the expression to its
21935         actual constrained subtype.
21936         Implement warning for <= or >= where < or > not possible
21937         Fix to Vax_Float tests (too early in many routines, causing premature
21938         Vax_Float expansions.
21939
21940         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
21941         to be used with packages and generic packages as well as with
21942         subprograms.
21943         (Suppress): Set All_Checks, but not Elaboration_Check, for case
21944         of pragma Suppress (All_Checks)
21945         (Analyze_Pragma, case Warnings): Implement first argument allowed to be
21946         a string literal for precise control over warnings.
21947         Avoid raise of pragma in case of unrecognized pragma and just return
21948         instead.
21949
21950         * sem_prag.ads: Minor reformatting
21951
21952         * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
21953         with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
21954         Switch. Do not handle any exception.
21955         Include -gnatwx as part of -gnatg (warn on redundant parens)
21956         Allow optional = after -gnatm
21957         (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
21958         longer sets Elaboration_Checks.
21959         Code to set warning mode moved to Sem_Warn
21960         so that it can be shared by pragma processing.
21961
21962         * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
21963         statement.
21964
21965         * s-taprop-solaris.adb:
21966         Change some <= to =, to avoid new warning
21967
21968         * a-exexda.adb, prj-proc.adb:
21969         Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
21970         Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
21971
21972 2005-11-14  Robert Dewar  <dewar@adacore.com>
21973
21974         * exp_vfpt.adb: Handle /= case
21975         (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
21976         so that we do not get duplicate scaling for fixed point conversions.
21977
21978         * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
21979
21980 2005-11-14  Matthew Gingell  <gingell@adacore.com>
21981
21982         * system-lynxos-ppc.ads, system-lynxos-x86.ads:
21983         Increase default priority on Lynx from 15 to 17, and meet the Ada
21984         requirement that Default_Priority be ((Priority'First +
21985         Priority'Last) / 2) by increasing the range of Interrupt_Priority.
21986
21987 2005-11-14  Vincent Celier  <celier@adacore.com>
21988
21989         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
21990         mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
21991         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
21992         mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
21993         mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
21994         mlib-tgt-lynxos.adb (DLL_Prefix): New function
21995
21996 2005-11-14  Doug Rupp  <rupp@adacore.com>
21997
21998         * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
21999         private part.
22000
22001 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
22002
22003         * s-traces-default.adb, s-trafor-default.ads,
22004         s-tratas-default.adb: Fix compilation errors.
22005
22006 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
22007
22008         * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
22009         raising the exception so the memory used is freed.
22010
22011 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
22012
22013         * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
22014         (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
22015         (convert_address): Update comments and list of platforms using this.
22016
22017         * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
22018         no longer used.
22019
22020 2005-11-14  Pascal Obry  <obry@adacore.com>
22021             Vincent Celier  <celier@adacore.com>
22022
22023         * gnatdll.adb (Parse_Command_Line): Remove redundant use of
22024         GNAT.Command_Line.
22025
22026         * memroot.adb: Remove redundant with/use clause on
22027         System.Storage_Elements.
22028
22029 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
22030
22031         * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
22032         (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
22033         related code to a-exexpr.adb
22034         (Save_Occurrence_And_Private): Move GCC EH related code to
22035         a-exexpr-gcc.adb
22036         (Raise_Current_Excep): Add new variable Id with pragma
22037         volatile, to ensure that the variable lives on stack.
22038
22039         * a-exexpr-gcc.adb, raise-gcc.c: New file.
22040
22041         * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
22042         from a-except.adb.
22043         Move GCC EH related code to a-exexpr-gcc.adb
22044
22045         * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
22046         64-bit Solaris
22047         Split the Linux version of g-soccon into separate variants for 32 and 64
22048         bit platforms.
22049         (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
22050         vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
22051         install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
22052         of host variable $(RANLIB_FLAGS).
22053         (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
22054         Code clean up: remove unused/obsolete targets.
22055         (EH_MECHANISM): New variable introduced to differenciate between the
22056         two EH mechanisms statically.
22057         (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
22058         (LIBGNAT_OBJS): Add raise-gcc.o
22059         (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
22060         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
22061         supports VxWorks 6 RTPs.
22062         (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
22063         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
22064
22065         * raise.c: Move all GCC EH-related routines to raise-gcc.c
22066
22067 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
22068
22069         * s-tassta.adb (Create_Task): Move the code in charge of resetting the
22070         deferral level, when abort is not allowed, to a later stage (the
22071         Task_Wrapper).
22072         (Task_Wrapper): If Abort is not allowed, reset the deferral level since
22073         it will not get changed by the generated code. It was previously done
22074         in Create_Task.
22075
22076 2005-11-14  Thomas Quinot  <quinot@adacore.com>
22077             Olivier Hainque  <hainque@adacore.com>
22078             Eric Botcazou  <ebotcazou@adacore.com>
22079
22080         * decl.c:
22081         Factor common code to build a storage type for an unconstrained object
22082         from a fat or thin pointer type and a constrained object type.
22083         (annotate_value): Handle BIT_AND_EXPR.
22084         (annotate_rep): Don't restrict the back annotation of inherited
22085         components to the type_annotate_only case.
22086         (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
22087         we are not defining the type.
22088         <E_Record_Type>: Likewise.
22089         (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
22090         to get advantage of the new maybe_stabilize_reference interface, to
22091         ensure that what we reference is indeed stabilized instead of relying
22092         on assumptions on what the stabilizer does.
22093         (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
22094         type imported through a limited_with clause, use its non-limited view.
22095         (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
22096         differentiation.
22097         (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
22098         of #if sections + explicit comparisons of convention identifiers.
22099         (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
22100         before early-returning for certain types when code generation is
22101         disabled.
22102         (gnat_to_gnu_entity) <object>: Adjust comment attached to the
22103         nullification of gnu_expr we do for objects with address clause and
22104         that we are not defining.
22105         (elaborate_expression_1): Do not create constants when creating
22106         variables needed by the debug info: the dwarf2 writer considers that
22107         CONST_DECLs is used only to represent enumeration constants, and emits
22108         nothing for them.
22109         (gnat_to_gnu_entity) <object>: When turning a non-definition of an
22110         object with an address clause into an indirect reference, drop the
22111         initializing expression.
22112         Include "expr.h".
22113         (STACK_CHECK_BUILTIN): Delete.
22114         (STACK_CHECK_PROBE_INTERVAL): Likewise.
22115         (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
22116         (STACK_CHECK_MAX_VAR_SIZE): Likewise.
22117         (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
22118         corresponding to the renamed object as ignored for debugging purposes.
22119
22120         * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
22121         related): For a prefix that is a dereference of a fat or thin pointer,
22122         if there is an actual subtype provided by the front-end, use that
22123         subtype to build an actual type with bounds template.
22124         (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
22125         is provided by the front-end, use that subtype to compute the size of
22126         the deallocated object.
22127         (gnat_to_gnu): When adding a statement into an elaboration procedure,
22128         check for a potential violation of a No_Elaboration_Code restriction.
22129         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
22130         with extra arguments to control whether to recurse through non-values
22131         and to let the caller know if the stabilization has succeeded.
22132         (gnat_stabilize_reference): Now a simple wrapper around
22133         maybe_stabilize, for common uses without restriction on lvalues and
22134         without need to check for the success indication.
22135         (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
22136         pass false instead of 0 as the FORCE argument which is a bool.
22137         (Identifier_to_gnu): Remove checks ensuring that an renamed object
22138         attached to a renaming pointer has been properly stabilized, as no such
22139         object is attached otherwise.
22140         (call_to_gnu): Invoke create_var_decl to create the temporary when the
22141         function uses the "target pointer" return mechanism.
22142         Reinstate conversion of the actual to the type of the formal
22143         parameter before any other specific treatment based on the passing
22144         mechanism. This turns out to be necessary in order for PLACEHOLDER
22145         substitution to work properly when the latter type is unconstrained.
22146
22147         * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
22148         common pattern.
22149         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
22150         with extra arguments to control whether to recurse through non-values
22151         and to let the caller know if the stabilization has succeeded.
22152
22153         * utils2.c (gnat_build_constructor): Only sort the fields for possible
22154         static output of record constructor if all the components are constant.
22155         (gnat_build_constructor): For a record type, sort the list of field
22156         initializers in increasing bit position order.
22157         Factor common code to build a storage type for an unconstrained object
22158         from a fat or thin pointer type and a constrained object type.
22159         (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
22160         types variants, and process special cases of VIEW_CONVERT expressions
22161         as their NOP_EXPR counterpart to ensure we get to the
22162         CORRESPONDING_VARs associated with CONST_DECls.
22163         (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
22164         on the right-hand side.
22165
22166         * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
22167         a common pattern.
22168         (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
22169         are converting back to its original type.
22170         (convert) <JM input>: Fallthrough regular conversion code instead of
22171         extracting the object if converting to a type variant.
22172         (create_var_decl): When a variable has an initializer requiring code
22173         generation and we are at the top level, check for a potential violation
22174         of a No_Elaboration_Code restriction.
22175         (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
22176         SIZE and SIZE_UNIT which we need for later back-annotations.
22177         * utils.c: (convert) <STRING_CST>: Remove obsolete code.
22178         <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
22179         is an unchecked union.
22180         (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
22181         (convert) <VIEW_CONVERT_EXPR>: When the types have the same
22182         main variant, just replace the VIEW_CONVERT_EXPR.
22183         <UNION_TYPE>: Revert 2005-03-02 change.
22184
22185         * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
22186
22187         * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
22188
22189 2005-11-14  Matthew Heaney  <heaney@adacore.com>
22190
22191         * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
22192         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
22193         a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
22194         a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
22195         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
22196         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
22197         Compiles against the spec for ordered maps described in sections
22198         A.18.6 of the most recent (August 2005) AI-302 draft.
22199
22200 2005-11-14  Olivier Hainque  <hainque@adacore.com>
22201
22202         * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
22203         to ensure bias adjustments take place when need be and to prevent
22204         occurrences of intermediate overflows.
22205
22206 2005-11-14  Matthew Gingell  <gingell@adacore.com>
22207             Olivier Hainque  <hainque@adacore.com>
22208
22209         * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
22210         ia64 HP-UX.
22211
22212         * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
22213         tracebacks on ia64 HP-UX and provide explanatory comment.
22214         Enable backtraces on ia64 GNU/Linux.
22215         (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
22216         base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
22217
22218 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
22219             Javier Miranda  <miranda@adacore.com>
22220
22221         * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
22222         exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
22223         exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
22224         einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
22225
22226         * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
22227         properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
22228         assertions).
22229
22230         * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
22231         subprogram that generates the external name associated with a
22232         secondary dispatch table.
22233         (Get_Secondary_DT_External_Name): New subprogram that generates the
22234         external name associated with a secondary dispatch table.
22235
22236 2005-11-14  Emmanuel Briot  <briot@adacore.com>
22237
22238         * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
22239         line in the ALI file to include both an instantiation reference, and a
22240         returned value.
22241
22242 2005-11-14  Vincent Celier  <celier@adacore.com>
22243
22244         * clean.adb (Check_Project): Look for Ada code in extending project,
22245         even if Ada is not specified as a language.
22246         Use new function DLL_Prefix for DLL_Name
22247         (Clean_Interface_Copy_Directory): New procedure
22248         (Clean_Library_Directory): New procedure
22249         (Clean_Directory): Remove procedure, no longer used
22250         (Clean_Project): Do not delete any file in an externally built project
22251
22252         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
22253         directory of an extending project, even when there are no Ada source
22254         present.
22255         (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
22256         (Set_Ada_Paths.Add.Recursive_Add): Ditto
22257
22258         * mlib-prj.adb (Check_Library): For all library projects, get the
22259         library file timestamp.
22260         (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
22261         (Build_Library): Use new function DLL_Prefix for the DLL_Name
22262         (Clean): Remove procedure, no longer used
22263         (Ultimate_Extension_Of): New function
22264         (Build_Library): When cleaning the library directory, only remove an
22265         existing library file and any ALI file of a source of the project.
22266         When cleaning the interface copy directory, remove any source that
22267         could be a source of the project.
22268
22269         * prj.ads, prj.adb (Project_Empty): Add values of new components
22270         Library_TS and All_Imported_Projects.
22271         (Project_Empty): Add values for new components of Project_Data:
22272         Library_ALI_Dir and Display_Library_ALI_Dir
22273
22274         * prj-attr.adb: New project level attribute name Library_ALI_Dir
22275
22276         * prj-nmsc.adb (Check_Library_Attributes): Take into account new
22277         attribute Library_ALI_Dir.
22278         (Check_Library_Attributes): The library directory cannot be the same as
22279         any source directory of the project tree.
22280         (Check_Stand_Alone_Library): The interface copy directory cannot be
22281         the same as any source directory of the project tree.
22282
22283         * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
22284         all temporary files.
22285
22286 2005-11-14  Robert Dewar  <dewar@adacore.com>
22287             Ed Schonberg  <schonberg@adacore.com>
22288
22289         * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22290         (Check_Elab_Call): A call within a protected body is never an
22291         elaboration call, and does not require checking.
22292         (Same_Elaboration_Scope): Take into account protected types for both
22293         entities.
22294         (Activate_Elaborate_All_Desirable): New procedure
22295
22296         * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
22297         desirable
22298
22299         * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
22300         (Elab_Error_Msg): Use -da to include internal unit links, not -de.
22301
22302         * lib-writ.ads, lib-writ.adb:
22303         Implement new AD/ED for Elaborate_All/Elaborate desirable
22304         Use new Elaborate_All_Desirable flag in N_With_Clause node
22305
22306         * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
22307         N_Free_Statement nodes.
22308         Define new class N_Subprogram_Instantiation
22309         Add Elaborate_Desirable flag to N_With_Clause node
22310         Add N_Delay_Statement (covering two kinds of delay)
22311
22312         * debug.adb: Introduce d.f flag for compiler
22313         Add -da switch for binder
22314
22315 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22316             Cyrille Comar  <comar@adacore.com>
22317
22318         * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
22319         for task component, in the case of a limited aggregate. The enclosed
22320         object declaration will create it earlier. Otherwise, in the case of a
22321         nested aggregate, the object may appear in the wrong scope.
22322         (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
22323         (Gen_Assign): If the component being assigned is an array type and the
22324         expression is itself an aggregate, wrap the assignment in a block to
22325         force finalization actions on the temporary created for each row of the
22326         enclosing object.
22327         (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
22328         structures are initialized after all discriminants are set so that
22329         they can be accessed even when their offset is dynamic.
22330
22331 2005-11-14  Robert Dewar  <dewar@adacore.com>
22332             Hristian Kirtchev  <kirtchev@adacore.com>
22333
22334         * sem_attr.adb: Implement Machine_Rounding attribute
22335         (Analyze_Access_Attribute): The access attribute may appear within an
22336         aggregate that has been expanded into a loop.
22337         (Check_Task_Prefix): Add semantic check for attribute 'Callable and
22338         'Terminated whenever the prefix is of a task interface class-wide type.
22339         (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
22340         the prefix is of a task interface class-wide type.
22341
22342         * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
22343         to avoid warnings.
22344
22345         * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
22346         Remove pragma Inline for [Unaligned_]Valid.
22347         Add comments that Valid routines do not work for Vax_Float
22348
22349         * exp_attr.adb: Implement Machine_Rounding attribute
22350
22351         * snames.h: Add entry for Machine_Rounding attribute
22352
22353 2005-11-14  Javier Miranda  <miranda@adacore.com>
22354             Robert Dewar  <dewar@adacore.com>
22355             Hristian Kirtchev  <kirtchev@adacore.com>
22356
22357         * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
22358         and related): For a prefix that is an explicit dereference of an
22359         access to unconstrained packed array type, annotate the dereference
22360         with an actual subtype so GIGI can make a correct size computation.
22361         (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
22362         'Unrestricted_Access, if the designated type is an interface we
22363         add a type conversion to force the displacement of the pointer
22364         to the secondary dispatch table.
22365         Use Universal_Real instead of Long_Long_Float when we need a high
22366         precision float type for the generated code (prevents gratuitous
22367         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
22368         (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
22369         'Terminated for task interface class-wide objects. Generate a call to
22370         the predefined dispatching routine used to retrieve the _task_id from
22371         a task corresponding record.
22372         (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
22373
22374         * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22375         (Check_Dispatching_Operation): Protect the frontend againts
22376         previously detected errors.
22377
22378         * Makefile.rtl: Add new instantiations of system.fat_gen
22379
22380         * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
22381         Change name of instantiated package for better consistency
22382         with newly added system.fat_gen instantiations.
22383
22384         * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
22385         s-fvagfl.ads: New files.
22386
22387 2005-11-14  Cyrille Comar  <comar@adacore.com>
22388             Thomas Quinot  <quinot@adacore.com>
22389
22390         * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
22391         assignment of a value of a tagged type that has been rewritten to a
22392         block statement, it is known by construction that no checks are
22393         necessary for the statements within the block: analyze it with checks
22394         suppressed.
22395         (Expand_N_If_Statement): When killing a dead then-branch in an
22396         if-statement that has elsif_parts, recompute the Current_Value node
22397         for any entity whose value is known from the condition of the first
22398         elsif_part.
22399         (Expand_N_Return_Statement): When returning a mutable record, convert
22400         the return value into its actual subtype in order to help the backend
22401         to return the actual size instead of the maximum. This is another
22402         aftermath of not returning mutable records on the sec-stack anymore.
22403
22404         * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
22405         handling of error msg for suspicious reverse range iteration.
22406         (Check_Possible_Current_Value_Condition): Move declaration from body to
22407         spec, to allow this subprogram to be called from exp_ch5.
22408
22409 2005-11-14  Thomas Quinot  <quinot@adacore.com>
22410
22411         * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
22412         generate a set of nested array aggregates instead of a single flat
22413         aggregate for multi-dimensional arrays.
22414
22415 2005-11-14  Pascal Obry  <obry@adacore.com>
22416
22417         * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
22418         by spawnve is a process handle, no need to convert. Add a parameter
22419         close to control wether the process handle must be closed.
22420         (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
22421         a process handle, not need to convert.
22422         (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
22423
22424         * g-expect.adb: (Kill): Document the new close parameter.
22425         (Close): Do not release the process handle in the kill there as
22426         waitpid() is using it.
22427         (Send_Signal): Release the process handle.
22428
22429 2005-11-14  Robert Dewar  <dewar@adacore.com>
22430
22431         * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
22432         need a high precision float type for the generated code (prevents
22433         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
22434         used).
22435
22436         * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
22437         need a high precision float type for the generated code (prevents
22438         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
22439         used).
22440         (Expand_Width_Attribute): In configurable run-time, the attribute is not
22441         allowed on non-static enumeration subtypes. Force a load error to emit
22442         the correct diagnostic.
22443
22444 2005-11-14  Thomas Quinot  <quinot@adacore.com>
22445             Robert Dewar  <dewar@adacore.com>
22446             Ed Schonberg  <schonberg@adacore.com>
22447
22448         * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
22449         subtype to compute the size of the designated object at run-time,
22450         create such a subtype and store it in the Actual_Designated_Subtype
22451         attribute of the N_Free_Statement.
22452         Generate itype for classwide designated object in both cases of
22453         user-specified storage pool: specific and class-wide, not only in the
22454         specific case.
22455         Raise CE when trying to set a not null access type object to null.
22456         (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
22457         an explicit loop, because freeze nodes make its position variable.
22458
22459         * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
22460         null object.
22461
22462 2005-11-14  Javier Miranda  <miranda@adacore.com>
22463
22464         * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
22465         Build_Stream_Procedure): Add the null-excluding attribute to the first
22466         formal.
22467         This has no semantic meaning under Ada95 mode but it is a
22468         requirement under Ada05 mode.
22469
22470         * par-ch3.adb (P_Access_Definition): Addition of warning message if
22471         the null exclusion is used under Ada95 mode
22472         (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
22473         (P_Access_Definition): Remove assertion that forbids the use of
22474         the null-exclusion feature in Ada95.
22475
22476 2005-11-14  Robert Dewar  <dewar@adacore.com>
22477
22478         * impunit.adb: Exclude container helper units not intended for use by
22479         users.
22480
22481 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22482
22483         * freeze.adb (Freeze_Entity): For an access formal that is an access
22484         to subprogram, freeze the anonymous subprogram type at the same time,
22485         to prevent later freezing in the wrong scope, such as the enclosing
22486         subprogram body.
22487         (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
22488         subprogram whenever available.
22489
22490 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
22491
22492         PR ada/23732
22493         * gnatvsn.ads (Library_Version): Bump to 4.1
22494
22495 2005-11-14  Robert Dewar  <dewar@adacore.com>
22496
22497         * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
22498         Storage_Offset to avoid wrap around causing invalid results.
22499
22500 2005-11-14  Pascal Obry  <obry@adacore.com>
22501
22502         * gnatbind.adb (Is_Cross_Compiler): New function returning True for
22503         cross-compiler.
22504         (Scan_Bind_Arg): Fail with an error message if -M option is used
22505         on a native compiler.
22506
22507 2005-11-14  Robert Dewar  <dewar@adacore.com>
22508             Vincent Celier  <celier@adacore.com>
22509
22510         * gprep.adb: Implement -C switch to scan comments
22511
22512         * scng.adb: Scan comment symbol separately if Replace_In_Comments set
22513
22514         * scans.ads: Comment updates (including new use of Tok_Comment in
22515         preprocessing)
22516
22517         * opt.ads: Add documentation for flags that are used by gprmake,
22518         currently and in the next version of gprmake.
22519         (Verbosity_Level): New variable
22520         Add Replace_In_Comments switch
22521
22522         * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
22523         and -vm.
22524         Add /REPLACE_IN_COMMENTS for gnatprep -C switch
22525
22526 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
22527
22528         * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
22529         message, friendlier.
22530
22531 2005-11-14  Robert Dewar  <dewar@adacore.com>
22532
22533         * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
22534
22535 2005-11-14  Doug Rupp  <rupp@adacore.com>
22536
22537         * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
22538
22539 2005-11-14  Robert Dewar  <dewar@adacore.com>
22540
22541         * interfac.ads: Change declarations of IEEE float types so that we no
22542         longer need a separate version of this package for VMS.
22543
22544 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22545
22546         * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
22547         internal entity created for the declaration of a child subprogram body
22548         with no spec as coming from source, to generate proper cross-reference
22549         information.
22550
22551 2005-11-14  Vincent Celier  <celier@adacore.com>
22552
22553         * make.adb (Compile_Sources): Change verbose message to minimum
22554         verbosity level High for "is in an Ada library", "is a read-only
22555         library" and "is an internal library",
22556         (Create_Binder_Mapping_File): Path name of ALI file for library project
22557         must include the library directory, not the object directory.
22558         (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
22559         for new switches -vl, -vm and -vh.
22560         (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
22561         (Check): Use minimum verbosity Medium for some Verbose_Msg calls
22562         (Compile_Sources): Do not attempt to compile if an ALI file is missing
22563         in a project that is externally built.
22564         (Compute_All_Imported_Projects): New procedure
22565         (Gnatmake): Check if importing libraries should be regenerated because
22566         at least an imported library is more recent.
22567         (Initialize): For each project compute the list of the projects it
22568         imports directly or indirectly.
22569         (Add_Library_Search_Dir): New procedure, used in place of
22570         Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
22571         put in the search paths.
22572         (Add_Source_Search_Dir): New procedure, used in place of
22573         Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
22574         put in the search paths.
22575         (Mark_Directory): Resolve the absolute path the directory before marking
22576         it.
22577
22578         * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
22579         call to new procedure Bad_Switch. Call Scan_Pos with new parameter
22580         Switch. Do not handle any exception.
22581         (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
22582         so that the switch is recognized as valid.
22583         (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
22584
22585 2005-11-14  GNAT Script  <nobody@adacore.com>
22586
22587         * Make-lang.in: Makefile automatically updated
22588
22589 2005-11-14  Pascal Obry  <obry@adacore.com>
22590
22591         * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
22592         used.
22593         (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
22594         In both cases the last argument was dropped.
22595
22596 2005-11-14  Eric Botcazou  <ebotcazou@adacore.com>
22597
22598         * namet.h: (Column_Numbe): New type.
22599         (Get_Column_Number): Define to sinput__get_column_number.
22600         (Instantiation): Define to sinput__instantiation.
22601         (Get_Column_Number): Declare.
22602         (Instantiation): Likewise.
22603
22604 2005-11-14  Robert Dewar  <dewar@adacore.com>
22605
22606         * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
22607         syntax, which could cause compiler hangs.
22608
22609 2005-11-14  Vincent Celier  <celier@adacore.com>
22610
22611         * prj-ext.adb: Take into account new environment variable
22612         GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
22613         are defined.
22614         (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
22615         normalize its path name, making it absolute and resolving symbolic
22616         links, and replace the original if resolved path is different.
22617
22618 2005-11-14  Vincent Celier  <celier@adacore.com>
22619
22620         * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
22621         into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
22622
22623 2005-11-14  Emmanuel Briot  <briot@adacore.com>
22624
22625         * prj-pp.adb (Print): Do not output the with statement if the
22626         associated name is empty, which happens for virtual extending projects.
22627         (Print): Preserve the "extends all" attribute when printing the project.
22628
22629         * prj-tree.ads (String_Value_Of): Add comment about returned value for
22630         a virtual extending project.
22631
22632 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22633
22634         * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
22635         rhs of an assignment even if the type is unconstrained, when the
22636         context is non-expanding.
22637         In an inlined body, if the context type is private,
22638         resolve with its full view, which must be a composite type.
22639
22640 2005-11-14  Robert Dewar  <dewar@adacore.com>
22641             Ed Schonberg  <schonberg@adacore.com>
22642
22643         * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22644         Do not give obsolescent warning on with of subprogram (since we
22645         diagnose calls)
22646         (Analyze_With_Clause): Add test for obsolescent package
22647         (Install_Context_Clauses): If the unit is the body of a child unit, do
22648         not install twice the private declarations of the parents, to prevent
22649         circular lists of Use_Clauses in a parent.
22650         (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
22651         compiling body of child unit.
22652         Use new class N_Subprogram_Instantiation
22653         (Expand_With_Clause): If this is a private with_clause for a child unit,
22654         appearing in the context of a package declaration, then the implicit
22655         with_clauses generated for parent units are private as well.
22656         (License_Check): Do not generate message if with'ed unit is internal
22657
22658 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
22659             Ed Schonberg  <schonberg@adacore.com>
22660             Thomas Quinot  <quinot@adacore.com>
22661
22662         * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
22663         names are internal, because they will not have a corresponding partner
22664         in the actual package.
22665         (Analyze_Formal_Package): Move the setting of the formal package spec's
22666         Generic_Parent field so that it occurs prior to analyzing the package,
22667         to allow proper operation of Install_Parent_Private_Declarations.
22668         (Analyze_Package_Instantiation): Set the instantiated package entity's
22669         Package_Instantiation field.
22670         (Get_Package_Instantiation_Node): Move declaration to package spec.
22671         Retrieve the N_Package_Instantiation node when the Package_Instantiation
22672         field is present.
22673         (Check_Generic_Child_Unit): Within an inlined call, the only possible
22674         instantiation is Unchecked_Conversion, for which no parents are needed.
22675         (Inline_Instance_Body): Deinstall and record the use_clauses for all
22676         parent scopes of a scope being removed prior to inlining an instance
22677         body.
22678         (Analyze_Package_Instantiation): Do not perform front-end inlining when
22679         the current context is itself an instance within a non-instance child
22680         unit, to prevent scope stack errors.
22681         (Save_References): If the node is an aggregate that is an actual in a
22682         call, rewrite as a qualified expression to preserve some type
22683         information, to resolve possible ambiguities in the instance.
22684         (Instance_Parent_Unit): New global variable to record the ultimate
22685         parent unit associated with a generic child unit instance (associated
22686         with the existing Parent_Unit_Visible flag).
22687         (type Instance_Env): New component Instance_Parent_Unit for stacking
22688         parents recorded in the global Instance_Parent_Unit.
22689         (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
22690         stack.
22691         (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
22692         it's not a top-level unit, and only do this if Instance_Parent_Unit is
22693         not already set. Replace test of Is_Child_Unit with test of parent's
22694         scope against package Standard. Add comments and a ??? comment.
22695         (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
22696         on a child instance parent to test that the parent equals
22697         Instance_Parent rather than simply checking that the unit is not a
22698         child unit.
22699         (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
22700         (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
22701         a formal interface are ancestors of the corresponding actual.
22702         (Validate_Formal_Interface_Type): Additional legality checks.
22703         (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
22704         interface types with ancestors.
22705         (Analyze_Formal_Package): If formal is a renaming, use renamed entity
22706         to diagnose attempts to use generic within its own declaration.
22707
22708 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22709             Javier Miranda  <miranda@adacore.com>
22710
22711         * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
22712         discriminant.
22713         (Build_Private_Derived_Type): The entity of the created full view of the
22714         derived type does not come from source. If after installing the private
22715         declarations of the parent scope the parent is still private, use its
22716         full view to construct the full declaration of the derived type.
22717         (Build_Derived_Record_Type): Relax the condition that controls the
22718         execution of the check that verifies that the partial view and
22719         the full view agree in the set of implemented interfaces. In
22720         addition, this test now only takes into account the progenitors.
22721         (Derive_Interface_Subprograms): No need to derive subprograms
22722         of ancestors that are interfaces.
22723         (Derive_Subprograms): Remove formal No_Predefined_Prims and the
22724         associated code.
22725         Change name Is_Package to Is_Package_Or_Generic_Package
22726         (Complete_Subprograms_Derivation): Handle the case in which the full
22727         view is a transitive derivation of the ancestor of the partial view.
22728         (Process_Full_View): Rename local subprogram Find_Interface_In_
22729         Descendant to Find_Ancestor_Interface to leave the code more clear.
22730         Remove wrong code that avoids the generation of an error message
22731         when the immediate ancestor of the partial view is an interface.
22732         In addition some minor reorganization of the code has been done to
22733         leave it more clear.
22734         (Analyze_Type_Declaration): If type has previous incomplete tagged
22735         partial view, inherit properly its primitive operations.
22736         (Collect_Interfaces): Make public, for analysis of formal
22737         interfaces.
22738         (Analyze_Interface_Declaration): New procedure for use for regular and
22739         formal interface declarations.
22740         (Build_Derived_Record_Type): Add support for private types to the code
22741         that checks if a tagged type implements abstract interfaces.
22742         (Check_Aliased_Component_Type): The test applies in the spec of an
22743         instance as well.
22744         (Access_Type_Declaration): Clean up declaration of malformed type
22745         declared as an access to its own classwide type, to prevent cascaded
22746         crash.
22747         (Collect_Interfaces): For private extensions and for derived task types
22748         and derived protected types, the parent may be an interface that must
22749         be included in the interface list.
22750         (Access_Definition): If the designated type is an interface that may
22751         contain tasks, create Master_Id for it before analyzing the expression
22752         of the declaration, which may be an allocator.
22753         (Record_Type_Declaration): Set properly the interface kind, for use
22754         in allocators, the creation of master id's for task interfaces, etc.
22755
22756 2005-11-14  Javier Miranda  <miranda@adacore.com>
22757             Ed Schonberg  <schonberg@adacore.com>
22758
22759         * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
22760         omitted in case of stream attribute subprograms.
22761         (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
22762         appear immediately after a subprogram body, when there is no previous
22763         subprogram declaration.
22764         Change name Is_Package to Is_Package_Or_Generic_Package
22765         (Process_Formals): A non null qualifier on a non null named access
22766         type is not an error, and is a warning only if Redundant_Constructs
22767         are flagged.
22768
22769 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
22770             Ed Schonberg  <schonberg@adacore.com>
22771
22772         * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
22773         nested within Analyze_Package_Specification to install the private
22774         declarations and use clauses within each of the parent units of a
22775         package instance of a generic child package.
22776         (Analyze_Package_Specification): When entering a private part of a
22777         package associated with a generic instance or formal package, the
22778         private declarations of the parent must be installed (by calling new
22779         procedure Install_Parent_Private_Declarations).
22780         Change name Is_Package to Is_Package_Or_Generic_Package
22781         (Preserve_Full_Attributes): For a synchronized type, the corresponding
22782         record is absent in a generic context, which does not indicate a
22783         compiler error.
22784
22785 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22786
22787         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
22788         not try to rewrite a renamed stream attribute, because the operations
22789         on the type may not have been generated.
22790         Handle properly a renaming_as_body generated for a stream operation
22791         whose default is abstract because the object type itself is abstract.
22792         (Find_Type): If the type is incomplete and appears as the prefix of a
22793         'Class reference, it is tagged, and its list of primitive operations
22794         must be initialized properly.
22795         (Chain_Use_Clauses): When chaining the use clauses that appear in the
22796         private declaration of a parent unit, prior to compiling the private
22797         part of a child unit, find on the scope stack the proper parent entity
22798         on which to link the use clause.
22799         (Note_Redundant_Use): Emit a warning when a redundant use clause is
22800         detected.
22801         (Analyze_Object_Renaming): An attribute reference is not a legal object
22802         if it is not a function call.
22803
22804 2005-11-14  Robert Dewar  <dewar@adacore.com>
22805             Ed Schonberg  <schonberg@adacore.com>
22806
22807         * sem_eval.adb: Implement d.f flag
22808         (Subtype_Statically_Match): A generic actual type has unknown
22809         discriminants when the corresponding actual has a similar partial view.
22810         If the routine is called to validate the signature of an inherited
22811         operation in a child instance, the generic actual matches the full view,
22812
22813 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
22814             Ed Schonberg  <schonberg@adacore.com>
22815             Robert Dewar  <dewar@adacore.com>
22816             Thomas Quinot  <quinot@adacore.com>
22817
22818         * sem_res.adb (Resolve_Call): Provide a better error message whenever
22819         a procedure call is used as a select statement trigger and is not an
22820         entry renaming or a primitive of a limited interface.
22821         (Valid_Conversion): If the operand has a single interpretation do not
22822         remove address operations.
22823         (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
22824         statement to inhibit warning.
22825         (Resolve_Unary_Op): Do not produce a warning when
22826         processing an expression of the form -(A mod B)
22827         Use Universal_Real instead of Long_Long_Float when we need a high
22828         precision float type for the generated code (prevents gratuitous
22829         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
22830         (Resolve_Concatenation_Arg): Improve error message when argument is an
22831         ambiguous call to a function that returns an array.
22832         (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
22833         there is an implicit operator in the given scope if we are within an
22834         instance: legality check has been performed on the generic.
22835         (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
22836         after resolving operand, to avoid false warnings on overloaded calls.
22837
22838 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22839             Javier Miranda  <miranda@adacore.com>
22840
22841         PR ada/15604
22842         * sem_type.adb (Covers): In an inlined body, a composite type matches
22843         a private type whose full view is a composite type.
22844         (Interface_Present_In_Ancestor): Protect the frontend against
22845         previously detected errors to ensure that its compilation
22846         with assertions enabled gives the same output that its
22847         compilation without assertions.
22848         (Interface_Present_In_Ancestor): Add support for private types.
22849         Change name In_Actual to In_Generic_Actual (clean up)
22850         (Disambiguate): New predicate In_Actual, to recognize expressions that
22851         appear in the renaming declaration generated for generic actuals, and
22852         which must be resolved in the outer context.
22853
22854 2005-11-14  Robert Dewar  <dewar@adacore.com>
22855             Thomas Quinot  <quinot@adacore.com>
22856             Hristian Kirtchev  <kirtchev@adacore.com>
22857             Ed Schonberg  <schonberg@adacore.com>
22858
22859         * sem_util.ads, sem_util.adb: Change name Is_Package to
22860         Is_Package_Or_Generic_Package.
22861         (Check_Obsolescent): New procedure.
22862         (Set_Is_Public): Remove obsolete junk test.
22863         (Set_Public_Status): Do not set Is_Public on an object whose declaration
22864         occurs within a handled_sequence_of_statemets.
22865         (Is_Controlling_Limited_Procedure): Factor some of the logic, account
22866         for a parameterless procedure.
22867         (Enter_Name): Recognize renaming declarations created for private
22868         component of a protected type within protected operations, so that
22869         the source name of the component can be used in the debugger.
22870
22871 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22872             Robert Dewar  <dewar@adacore.com>
22873
22874         * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
22875         of a generic subprogram are not visible outside the body.
22876         (Set_Warning_Switch): New procedure (code to set warning mode moved
22877         here from Switch.C so that it can be shared by pragma processing.
22878         (Check_References): Special case warning for non-modified non-imported
22879         volatile objects.
22880         * par-prag.adb: Modify processing of pragma Warnings to accomodate new
22881         form with a string literal argument
22882
22883 2005-11-14  Javier Miranda  <miranda@adacore.com>
22884
22885         * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
22886         anonymous access.
22887         (Write): Addition of "not null" to the anonymous access.
22888         (Read): Addition of "not null" to the anonymous access.
22889         (Write): Addition of "not null" to the anonymous access.
22890
22891         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
22892         I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
22893         I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
22894         (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
22895         W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
22896         "not null" to the anonymous access.
22897
22898 2005-11-14  Robert Dewar  <dewar@adacore.com>
22899
22900         * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
22901         offset values
22902
22903 2005-11-14  Vincent Celier  <celier@adacore.com>
22904
22905         * switch.adb (Bad_Switch): New procedure
22906         (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
22907         message when in error.
22908
22909         * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
22910         Too_Many_Output_Files): Remove declarations, no longer used.
22911         (Scan_Nat): New parameter Switch
22912         (Scan_Pos): Ditto
22913         (Bad_Switch): New procedure
22914
22915         * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
22916         with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
22917         new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
22918         to Osint.Fail. Do not handle any exception.
22919
22920 2005-11-14  Vincent Celier  <celier@adacore.com>
22921
22922         * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
22923         designates a non existent directory.
22924
22925 2005-11-14  Robert Dewar  <dewar@adacore.com>
22926
22927         * xgnatugn.adb: Replace invalid membership test by 'Valid
22928
22929 2005-11-14  Vincent Celier  <celier@adacore.com>
22930
22931         * makegpr.adb (Gprmake): Do not attempt to build the global archive if
22932         there is no object directory.
22933
22934 2005-11-14  Robert Dewar  <dewar@adacore.com>
22935
22936         * usage.adb: Minor adjustment to output format, use nn instead of nnn
22937         (so that -gnateInnn does not run into next column)
22938
22939 2005-11-14  Ed Falis  <falis@adacore.com>
22940
22941         * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
22942         "constrained"
22943
22944 2005-11-14  Cyrille Comar  <comar@adacore.com>
22945
22946         * s-chepoo.ads: Add comments on Dereference.
22947         Remove unnecessary inherited abstract primitives.
22948         Cosmetic cleanup.
22949
22950 2005-11-14  Robert Dewar  <dewar@adacore.com>
22951
22952         * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
22953         node parameter, not needed, since it is available as Declaration_Node.
22954
22955 2005-11-14  Geert Bosch  <bosch@adacore.com>
22956
22957         * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
22958         grammatically correct.
22959
22960 2005-11-14  Vincent Celier  <celier@adacore.com>
22961
22962         * s-fileio.ads: Correct spelling error in comment
22963
22964 2005-11-14  Cyrille Comar  <comar@adacore.com>
22965             Robert Dewar  <dewar@adacore.com>
22966             Vincent Celier  <celier@adacore.com>
22967             Ben Brosgol  <brosgol@adacore.com>
22968             Jose Ruiz  <ruiz@adacore.com>
22969             Pascal Obry  <obry@adacore.com>
22970
22971         * gnat_ugn.texi:
22972         Document that -fstack-check is needed for strict compliance with the
22973         Ada 95 Reference Manual.
22974         Correct reference to VAX systems to meet HP guidelines
22975         Add documentation for new gnatmake switches -vl, -vm and -vh
22976         Replace DEC Ada by HP Ada
22977         Replace DIGITAL by HP
22978         Remove empty section on tools in compatibility section
22979         Clarify the Windows convention semantics.
22980         Document the Win32 calling convention.
22981         The Stdcall, Win32 and DLL convention are synonyms.
22982         Add a note in -gnatR description about zero size record components
22983         Note on new >= and <= warnings for -gnatwc
22984         Document that equal sign after -gnatm is optional.
22985         Note that strip is working fine on DLL built with a Library
22986         Project. The restriction apply only to DLL built with gnatdll.
22987         Update section about the way to debug a DLL.
22988         Update information about the DLL convention.
22989         Document -C switch for gnatprep
22990         Document new attribute Library_ALI_Dir
22991         Update elaboration doc to include implicit Elaborate pragmas now
22992         generated for subprogram instantiations.
22993         Document limitation on executable names that include spaces for --GCC,
22994         --GNATBIND, and --GNATLINK switches.
22995         Document that -w causes -gnatws to be added at start of gcc switches
22996
22997         * gnat_rm.texi: Document that -mieee is needed for generating infinite
22998         and NaN values in case of overflow on machines that are not fully
22999         compliant with the IEEE floating-point standard.
23000         Create a section describing the set of compiler options needed for
23001         strict compliance with the Ada 95 Reference Manual.
23002         Add documentation for pragma Obsolescent applied to a package
23003         Clarify potential issues of mixed language programs related to the
23004         I/O buffering enabling in the elaboration of the GNAT runtime.
23005         Add extra documentation for pragma Restrictions (No_Elaboration_Code)
23006         This documentation only patch adds extra documentsion for pragma
23007         Restrictions (No_Elaboration_Code), explaining why it is not possible
23008         to document this restriction in terms of allowed source constructs.
23009         Document string literal form of pragma Warnings
23010         Document new attribute Library_ALI_Dir
23011         Add documentation on stable attributes in project files that was missing
23012
23013         * gnat-style.texi: Indicate that paragraphs within a single comment
23014         should be separated by empty comment lines
23015
23016         * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
23017         /05 respectively)
23018
23019         * bindusg.adb: Minor cleanup, put -m before -M for consistency
23020
23021 2005-11-14  Robert Dewar  <dewar@adacore.com>
23022
23023         * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
23024         a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
23025         a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
23026         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
23027         a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
23028         a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
23029         a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
23030         a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
23031         a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
23032         a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
23033         a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
23034         a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
23035         g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
23036         a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
23037         a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
23038         system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
23039         g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
23040         g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
23041         a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
23042         a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
23043         a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
23044         a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
23045         a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
23046         a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
23047         system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
23048         system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
23049         a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
23050         a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
23051         a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
23052         system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
23053         system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
23054         s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
23055         system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
23056         system-interix.ads, system-solaris-sparc.ads,
23057         system-solaris-sparcv9.ads, s-inmaop-vms.adb,
23058         s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
23059         system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
23060         s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
23061         a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
23062         a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
23063         a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
23064         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
23065         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
23066         a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
23067         a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
23068         a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
23069         a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
23070         a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
23071         a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
23072         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
23073         a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
23074         a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
23075         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
23076         a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
23077         a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
23078         a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
23079         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
23080         a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
23081         a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
23082         a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
23083         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
23084         a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
23085         a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
23086         a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
23087         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
23088         a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
23089         a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
23090         a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
23091         bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
23092         csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
23093         errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
23094         errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
23095         exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
23096         exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
23097         freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
23098         g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
23099         g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
23100         g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
23101         g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
23102         g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
23103         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
23104         g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
23105         g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
23106         gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
23107         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
23108         g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
23109         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
23110         g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
23111         g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
23112         g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
23113         layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
23114         mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
23115         mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
23116         nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
23117         osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
23118         par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
23119         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
23120         par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
23121         prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
23122         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
23123         prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
23124         prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
23125         sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
23126         sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
23127         sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
23128         sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
23129         s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
23130         sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
23131         s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
23132         s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
23133         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
23134         s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
23135         s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
23136         s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
23137         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
23138         s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
23139         s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
23140         s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
23141         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
23142         s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
23143         s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
23144         s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
23145         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
23146         s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
23147         s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
23148         s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
23149         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
23150         s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
23151         s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
23152         s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
23153         s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
23154         s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
23155         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
23156         s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
23157         styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
23158         s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
23159         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
23160         s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
23161         s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
23162         s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
23163         s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
23164         s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
23165         s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
23166         s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
23167         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
23168         table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
23169         tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
23170         ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
23171         usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
23172         xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
23173         xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
23174         a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
23175         a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
23176         a-numaux-darwin.ads, a-numaux-darwin.adb,
23177         a-swuwha.ads, a-stunha.ads: Minor reformatting
23178
23179 2005-11-14  Robert Dewar  <dewar@adacore.com>
23180
23181         PR ada/18434
23182         * osint-m.adb: Add pragma Elaborate_All for Osint
23183
23184 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
23185
23186         PR ada/23995
23187         * trans.c (call_to_gnu): Restore statement lost in translation.
23188
23189 2005-11-08  Eric Botcazou  <ebotcazou@adacore.com>
23190
23191         * init.c: Use the Linux-specific section for the IA-64/Linux target.
23192         (__gnat_adjust_context_for_raise): Add conditional code so that the
23193         IA-64 is also supported.
23194
23195 2005-11-03  James E Wilson  <wilson@specifix.com>
23196
23197         PR ada/23427
23198         * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
23199         TREE_OVERFLOW check.
23200
23201 2005-09-21  Olivier Hainque  <hainque@adacore.com>
23202
23203         PR ada/22418
23204         * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
23205         as we create them to store a size in bits.
23206
23207 2005-10-21  Eric Botcazou  <ebotcazou@adacore.com>
23208
23209         PR ada/21937
23210         PR ada/22328
23211         PR ada/22381
23212         PR ada/22383
23213         PR ada/22419
23214         PR ada/22420
23215         * utils2.c (build_return_expr): New helper function.
23216         * gigi.h (build_return_expr): Declare it.
23217         * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
23218         of manually building the RETURN_EXPR tree.
23219         (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
23220         (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
23221         build_binary_op for the "target pointer" case.  Use build_return_expr
23222         instead of manually building the RETURN_EXPR tree.
23223
23224 2005-09-16  Laurent Guerby  <laurent@guerby.net>
23225
23226         PR ada/23788
23227         * s-tpinop.ads: Make this unit Preelaborate.
23228
23229 2005-09-16  Andreas Jaeger  <aj@suse.de>
23230
23231         * socket.c: Add string.h for memcpy.
23232
23233 2005-09-05  Arnaud Charlet  <charlet@adacore.com>
23234
23235         * dec-io.ads, dec-io.adb: Removed, no longer used.
23236
23237 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23238
23239         * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
23240
23241         * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
23242         s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
23243         s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
23244         s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
23245         dependent units are Preelaborate.
23246         (Initialize): Call Interrupt_Managemeent.Initialize and
23247         OS_Primitives.Initialize to ensure proper initialization of this unit.
23248         Remove use of System.Soft_Links
23249         Make this unit Preelaborate.
23250
23251         * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
23252         s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
23253         s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
23254         s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
23255         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
23256         s-tratas.ads, s-tasinf.ads: Minor reformatting.
23257         Add pragma Preelaborate, since these packages are suitable for this
23258         categorization.
23259         Update comments.
23260
23261         * s-traent-vms.ads, s-intman-dummy.adb,
23262         s-taprop-dummy.adb: Make this unit Preelaborate.
23263
23264         * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
23265         s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
23266         s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
23267         s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
23268         s-intman-solaris.adb, s-intman-irix-athread.adb,
23269         s-intman-irix.adb: Mark this unit Preelaborate.
23270         (Initialize): New procedure.
23271         Update comments.
23272
23273         * s-taspri-linux.ads: Removed.
23274
23275         * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
23276         as done by other implementations (e.g. posix).
23277
23278         * s-taprop.ads (Timed_Delay): Update spec since the caller now is
23279         responsible for deferring abort.
23280         Mark this unit Preelaborate.
23281
23282         * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
23283         proper initialization of the tasking run-time.
23284
23285         * s-tasdeb.ads: Mark this unit Preelaborate.
23286         (Known_Tasks): Add explicit default value to avoid elaboration code.
23287
23288         * s-inmaop-vms.adb (Elaboration code): Add call to
23289         Interrupt_Management.Initialize since the elaboration code depends on
23290         proper initialization of this package.
23291
23292         * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
23293         s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
23294         s-osprim-posix.adb: Make this unit Preelaborate.
23295
23296         * a-calend.adb: Add call to OS_Primitives.Initialize
23297
23298         * a-elchha.adb: Update use of Except.Id.Full_Name.
23299         Minor reformatting.
23300         Remove use of Ada.Exceptions.Traceback when possible, cleaner.
23301
23302         * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
23303         Move with clauses outside Warnings Off now that dependent units are
23304         Preelaborate.
23305         Use raise xxx with "..."; Ada 2005 form.
23306
23307         * a-taside.ads, a-taside.adb:
23308         Remove some dependencies, to make it easier to make this unit truly
23309         Preelaborate.
23310         Rewrite some code to be conformant with Preelaborate rules.
23311
23312         * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
23313         marked Preelaborate in the future.
23314
23315         * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
23316         these units Preelaborate.
23317
23318         * s-exctab.adb: Update use of Except.Id.Full_Name.
23319
23320         * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
23321         (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
23322         Set_Exc_Stack_Addr): Removed, no longer used.
23323         Remove reference to *Machine_State_Addr*, no longer needed.
23324
23325         * s-stalib.ads: Mark this unit as Preelaborate[_05].
23326         (Exception_Data): Full_Name is now a System.Address so that this unit
23327         can be made Preelaborate.
23328         Clean up/simplify code thanks to Full_Name being a System.Address.
23329         Remove obsolete pragma Suppress (All_Checks), no longer needed.
23330
23331         * s-taskin.ads, s-taskin.adb:
23332         Move with clauses outside Warnings Off now that dependent units are
23333         Preelaborate.
23334         Make this unit Preelaborate.
23335         (Initialize): New proceduure, replace elaboration code and makes the
23336         set up of the tasking run-time cleaner.
23337         (Detect_Blocking): Now a function instead of a deferred boolean, to
23338         obey Preelaborate rules.
23339
23340         * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
23341         soft links, no longer used.
23342
23343         * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
23344         packages are suitable for this categorization.
23345
23346         * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
23347         since we compile run-time sources in Ada 2005 mode.
23348         (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
23349         avoid having s-taprop*.adb depend on s-soflin and to avoid code
23350         duplication.
23351         Remove reference to *Machine_State_Addr*, no longer needed.
23352
23353 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23354
23355         * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
23356         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
23357         Remove reference to System.Exceptions.
23358
23359         * s-mastop-x86.adb: Removed, no longer used.
23360
23361         * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
23362
23363         * a-excach.adb: Minor reformatting.
23364
23365         * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
23366         instead fix new warnings that were hidden by this change.
23367         (AAA, ZZZ): Removed, replaced by...
23368         (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
23369         are used instead of constants, to help make Ada.Exception truly
23370         preelaborate.
23371         (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
23372         Raise_Storage_Error): File is now a System.Address, to simplify code.
23373         (Elab code): Removed, no longer used.
23374         (Null_Occurrence): Remove Warnings Off and make this construct
23375         preelaborate.
23376         Remove code related to front-end zero cost exception handling, since
23377         it is no longer used.
23378         Remove -gnatL/-gnatZ switches.
23379
23380         * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
23381         Update use of Except.Msg.
23382
23383         * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
23384         freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
23385         to front-end zero cost exception handling, since it is no longer used.
23386         Remove -gnatL/-gnatZ switches.
23387
23388         * lib-writ.ads: Minor reformatting
23389         Remove doc of UX
23390
23391         * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
23392
23393         * Make-lang.in: Remove references to s-except.ads
23394
23395         * s-except.ads: Removed, no longer used.
23396
23397         * s-mastop.ads, s-mastop.adb:
23398         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
23399         Remove reference to System.Exceptions.
23400
23401         * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
23402         switch-b.adb: Remove code related to front-end zero cost exception
23403         handling, since it is no longer used.
23404         Remove -gnatL/-gnatZ switches.
23405
23406 2005-09-01  Robert Dewar  <dewar@adacore.com>
23407             Gary Dismukes  <dismukes@adacore.com>
23408             Javier Miranda  <miranda@adacore.com>
23409
23410         * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
23411         type by valid test and generate warning.
23412         (Tagged_Membership): Generate call to the run-time
23413         subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
23414         Change formal name Subtype_Mark to Result_Definition in several calls to
23415         Make_Function_Specification.
23416         (Expand_Allocator_Expression): Add tests for suppression of the AI-344
23417         check for proper accessibility of the operand of a class-wide allocator.
23418         The check can be left out if checks are suppressed or if the expression
23419         has a specific tagged type whose level is known to be safe.
23420
23421         * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
23422         generates the run-time check associated with null-excluding entities.
23423         (Expand_N_Return_Statement): Add tests to determine if the accessibility
23424         check on the level of the return expression of a class-wide function
23425         can be elided. The check usually isn't needed if the expression has a
23426         specific type (unless it's a conversion or a formal parameter). Also
23427         add a test for whether accessibility checks are suppressed. Augment
23428         the comments to describe the conditions for performing the check.
23429
23430 2005-09-01  Hristian Kirtchev  <kirtchev@adacore.com>
23431             Javier Miranda  <miranda@adacore.com>
23432             Gary Dismukes  <dismukes@adacore.com>
23433             Ed Schonberg  <schonberg@adacore.com>
23434
23435         * a-tags.adb (IW_Membership): Give support to
23436         "Iface_CW_Typ in T'Class". For this purpose the functionality of this
23437         subprogram has been extended to look for the tag in the ancestors tag
23438         table.
23439         Update the structure of the GNAT Dispatch Table to reflect the
23440         additional two tables used in dispatching selects.
23441         Introduce appropriate array types and record components in
23442         Type_Specific_Data to reflect the two tables.
23443         (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
23444         the TSD of a tag, indexed by position.
23445         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
23446         operation kind in the TSD of a tag, indexed by position.
23447
23448         * a-tags.ads: Introduce an enumeration type to capture different
23449         primitive operation kinds. Define a constant reflecting the number of
23450         predefined primitive operations.
23451         (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
23452         of an entry wrapper.
23453         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
23454         callable entity of a primitive operation.
23455
23456         * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
23457         primitive operations used in dispatching selects for limited
23458         interfaces, limited tagged, task and protected types what implement a
23459         limited interface.
23460         (Freeze_Type): Generate the bodies of the primitive operations used in
23461         dispatching selects for limited tagged, task and protected types that
23462         implement a limited interface. Generate statements to populate the two
23463         auxiliary tables used for dispatching in select statements.
23464         (Freeze_Record_Type): Add call to initialize the dispatch table entries
23465         associated with predefined interface primitive operations.
23466         (Build_Dcheck_Function): Change Set_Subtype_Mark to
23467         Set_Result_Definition.
23468         (Build_Variant_Record_Equality): Change Subtype_Mark to
23469         Result_Definition.
23470         (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
23471         (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
23472         (Build_Assignment): Simplify the code that adds the run-time-check.
23473         (Expand_N_Object_Declaration): Code cleanup.
23474
23475         * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
23476         entries when there is a protected type that implements a limited
23477         interface.
23478
23479         * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
23480         common routines used in expansion of dispatching selects.
23481         (Add_Private_Declarations): Select the appropriate protection type when
23482         there is a protected type that implements a limited interface.
23483         (Build_Parameter_Block): Generate a wrapped parameter block.
23484         (Build_Protected_Subprogram_Body): Select the appropriate type for
23485         locking entries when there is a protected type that implements a
23486         limited interface.
23487         (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
23488         classified as entry wrappers.
23489         (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
23490         asynchronous selects.
23491         (Expand_N_Conditional_Entry_Call): Add support for expansion of
23492         dispatching conditional selects.
23493         (Expand_N_Protected_Type_Declaration): Select the appropriate type for
23494         protection when there is a protected type that implements limited
23495         interfaces.
23496         (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
23497         timed selects.
23498         (Extract_Dispatching_Call): Extract the entity of the name of a
23499         dispatching call, the object parameter, actual parameters and
23500         corresponding formals.
23501         (Make_Initialize_Protection): Correct logic of protection initialization
23502         when there is a protected type that implements a limited interface.
23503         (Parameter_Block_Pack): Populate a wrapped parameter block with the
23504         values of actual parameters.
23505         (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
23506         block and assign them to the original actual parameters.
23507
23508         * exp_ch9.ads (Subprogram_Protection_Mode): New type.
23509         (Build_Protected_Sub_Specification): Change the type and name of the
23510         last formal to account for the increased variety of protection modes.
23511
23512         * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
23513         entities. Used to save the value of the Is_Hidden attribute when the
23514         limited-view is installed.
23515         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
23516         the attribute of procedures classified as entry wrappers.
23517         (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
23518         entity of a primitive wrapper.
23519         (Write_Entity_Flags): Output the name and value of the
23520         Is_Primitive_Wrapper attribute.
23521         (Write_Field27_Name): Output the name and entity of the field Wrapped_
23522         Entity.
23523         (Underlying_Type): If we have an incomplete entity that comes from
23524         the limited view then we return the Underlying_Type of its non-limited
23525         view if it is already available.
23526         (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
23527         including operators.
23528         (Write_Field26_Name): Add entry for Overridden_Operation
23529         (Overridden_Operation): New attribute of functions and procedures.
23530
23531         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
23532         predefined position in the dispatch table for the primitive operations
23533         used in dispatching selects.
23534         (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
23535         predefined primitive operations and replace it with
23536         Default_Prim_Op_Count.
23537         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
23538         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
23539         the names of the generated primitive operations used in dispatching
23540         selects.
23541         (Init_Predefined_Interface_Primitives): No need to inherit primitives in
23542         case of abstract interface types. They will be inherit by the objects
23543         implementing the interface.
23544         (Make_DT): There is no need to inherit the dispatch table of the
23545         ancestor interface for the elaboration of abstract interface types.
23546         The dispatch table will be inherited by the object implementing the
23547         interface.
23548         (Copy_Secondary_DTs): Add documentation.
23549         (Validate_Position): Improve this static check in case of
23550         aliased subprograms because aliased subprograms must have
23551         the same position.
23552         (Init_Predefined_Interface_Primitives): New subprogram that initializes
23553         the entries associated with predefined primitives of all the secondary
23554         dispatch tables.
23555         (Build_Anonymous_Access_Type): Removed.
23556         (Expand_Interface_Actuals): With the previous cleanup there is no need
23557         to build an anonymous access type. This allows further cleanup in the
23558         code generated by the expander.
23559         (Expand_Interface_Conversion): If the actual is an access type then
23560         build an internal function to handle the displacement. If the actual
23561         is null this function returns null because no displacement is
23562         required; otherwise performs a type conversion that will be
23563         expanded in the code that returns the value of the displaced actual.
23564         (Expand_Interface_Actuals): Avoid the generation of unnecessary type
23565         conversions that have no effect in the generated code because no
23566         displacement is required. Code cleanup; use local variables to
23567         avoid repeated calls to the subprogram directly_designated_type().
23568
23569         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
23570         Classify the primitive operations used in dispatching selects as
23571         predefined.
23572         (Implements_Limited_Interface): Determine whether some type either
23573         directly implements a limited interface or extends a type that
23574         implements a limited interface.
23575         (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
23576         (Expand_Subtype_From_Expr): Do not build actual subtype if the
23577         expression is limited.
23578         (Find_Interface_Tag): Add code to handle class-wide types and
23579         entities from the limited-view.
23580
23581         * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
23582         Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
23583         POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
23584         POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
23585         Set_Prim_Op_Kind.
23586
23587         * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
23588         of procedure name or prefix that appears as a trigger in a triggering
23589         alternative.
23590
23591         * uintp.ads: Introduce constants Uint_11 and Uint_13.
23592
23593 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23594
23595         * s-tataat.adb, a-tasatt.adb:
23596         Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
23597
23598         * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
23599         these procedures to body, and renamed Abort_Defer, Abort_Undefer.
23600         (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
23601         longer used.
23602
23603 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23604             Jose Ruiz  <ruiz@adacore.com>
23605
23606         * s-taprop-vxworks.adb:
23607         Move with clauses outside Warnings Off now that dependent units are
23608         Preelaborate.
23609         (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
23610         initialization of this unit.
23611         (Specific): Add new procedures Initialize and Delete so that this
23612         package can be used for VxWorks 5.x and 6.x
23613         (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
23614         differences between VxWorks 5.x and 6.x
23615         Minor reformatting.
23616         (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
23617         caller.
23618         Use only Preelaborate-compatible constructs.
23619
23620         * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
23621         Primitives.Operations.
23622         (Delete, Initialize): New procedures.
23623
23624         * s-osinte-vxworks.adb: Body used to handle differences between
23625         VxWorks 5.x and 6.x
23626         (kill, Set_Time_Slice, VX_FP_TASK): New functions.
23627
23628         * s-osinte-vxworks.ads: Minor reformatting.
23629         Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
23630         (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
23631         and 6.
23632         (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
23633         between Vxworks 5 and 6.
23634         (taskLock, taskUnlock): Removeed, no longer used.
23635
23636         * adaint.c: The wait.h header is not located in the sys directory on
23637         VxWorks when using RTPs.
23638         (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
23639         using RTPs.
23640         (__gnat_dup): dup is available on Vxworks when using RTPs.
23641         (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
23642
23643         * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
23644
23645         * expect.c: The wait.h header is not located in the sys directory on
23646         VxWorks when using RTPs.
23647
23648 2005-09-01  Thomas Quinot  <quinot@adacore.com>
23649
23650         * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
23651
23652         * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
23653
23654         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
23655         g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
23656         g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
23657         g-soccon-freebsd.ads: Add new constants:
23658          IP_MULTICAST_IF
23659          SO_RCVTIMEO/SO_SNDTIMEO
23660          IOV_MAX
23661
23662         * gen-soccon.c:
23663         Move all target-specific file inclusions and macro definitions to
23664         gsocket.h, in order to ensure that any C code in socket.c will see a
23665         set of constants that is consistent with the contents of g-soccon.ads.
23666
23667         * gsocket.h: Code imported from gen-soccon.c:
23668         Move all target-specific file inclusions and macro definitions to
23669         gsocket.h, in order to ensure that any C code in socket.c will see a set
23670         of constants that is consistent with the contents of g-soccon.ads.
23671         This change also makes gen-soccon self-contained (removing dependencies
23672         upon GCC internal headers).
23673
23674         * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
23675         iovecs at a time.
23676         (To_Inet_Addr): Now a procedure instead of a function, more efficient.
23677
23678         * socket.c: Minor reformatting.
23679
23680 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23681             Thomas Quinot  <quinot@adacore.com>
23682
23683         * fname-sf.adb, mlib-tgt.ads,
23684         back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
23685         g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
23686         osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
23687         prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
23688         prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
23689         prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
23690         sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
23691         makegpr.adb: Remove redundant use_clauses.
23692
23693 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23694
23695         * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
23696         s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
23697         s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
23698         s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
23699         s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
23700         s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
23701         s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
23702         table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
23703         s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
23704         s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
23705         a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
23706         a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
23707         a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
23708         a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
23709         system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
23710         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
23711         s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
23712         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
23713         s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
23714         s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
23715         s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
23716         s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
23717         system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
23718         s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
23719         system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
23720         s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
23721         a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
23722         a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
23723         a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
23724         a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
23725         a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
23726         a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
23727         a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
23728         a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
23729         a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
23730         a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
23731         csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
23732         g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
23733         a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
23734         a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
23735         a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
23736         a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
23737         g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
23738         i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
23739         interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
23740         i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
23741         s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
23742         s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
23743         s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
23744         s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
23745         s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
23746         s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
23747         s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
23748         s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
23749         s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
23750         s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
23751         s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
23752         s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
23753         s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
23754         s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
23755         s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
23756         s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
23757         s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
23758         s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
23759         s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
23760         s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
23761         s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
23762         s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
23763         and always use the no parameter form for consistency.
23764
23765         * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
23766
23767 2005-09-01  Robert Dewar  <dewar@adacore.com>
23768
23769         * binde.adb: Minor reformatting
23770         (Find_Elab_Order): Output warning if -p used with static elab order
23771
23772 2005-09-01  Robert Dewar  <dewar@adacore.com>
23773
23774         * checks.adb (Check_Needed): New procedure, deals with removing checks
23775         based on analysis of short-circuited forms. Also generates warnings for
23776         improper use of non-short-circuited forms.
23777         Code clean ups.
23778
23779 2005-09-01  Robert Dewar  <dewar@adacore.com>
23780
23781         * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
23782         with 'Valid tests.
23783
23784 2005-09-01  Robert Dewar  <dewar@adacore.com>
23785
23786         * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
23787         spec.
23788         Implement new insertion char < (conditional warning)
23789         * errutil.adb, erroutc.adb: Implement new insertion char <
23790         (conditional warning).
23791         * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
23792         (Error_Msg_Warn): New variable for < insertion char.
23793         * prj-nmsc.adb: Implement new errout insertion char < (conditional
23794         warning).
23795         (Check_For_Source): Change value of Source_Id only after the current
23796         source has been dealt with.
23797
23798 2005-09-01  Robert Dewar  <dewar@adacore.com>
23799             Doug Rupp  <rupp@adacore.com>
23800
23801         * exp_attr.adb: Handle vax fpt for 'Valid attribute
23802         * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
23803         * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
23804         (Valid_D, Valid_F, Valid_G): New functions
23805
23806 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23807             Hristian Kirtchev  <kirtchev@adacore.com>
23808             Javier Miranda  <miranda@adacore.com>
23809
23810         * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
23811         from object notation, the original node is unanalyzed and carries no
23812         semantic information, so that accessiblity checks must be performed on
23813         the type of the actual itself.
23814         (Expand_N_Subprogram_Declaration): Change last actual parameter for
23815         compatibility with Build_Protected_Sub_Specification.
23816         (Check_Overriding_Inherited_Interfaces): Add suport to handle
23817         overloaded primitives.
23818         (Register_Interface_DT_Entry): Use the new name of the formal
23819         the the calls to Expand_Interface_Thunk
23820
23821         * exp_dbug.ads: Augment comments on encoding of protected types to
23822         include the generation of dispatching subprograms when the type
23823         implements at least one interface.
23824
23825         * lib.ads: Extend information in Load_Stack to include whether a given
23826         load comes from a Limited_With_Clause.
23827
23828         * lib-load.adb (From_Limited_With_Chain): New predicate to determine
23829         whether a potential circularity is harmless, because it includes units
23830         loaded through a limited_with clause. Extends previous treatment which
23831         did not handle properly arbitrary combinations of limited and
23832         non-limited clauses.
23833
23834 2005-09-01  Nicolas Setton  <setton@adacore.com>
23835
23836         * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
23837         to be encoded as typ___XBLU_lowerbound__upperbound instead of
23838         typ___XB_lowerbound__upperbound.
23839
23840 2005-09-01  Thomas Quinot  <quinot@adacore.com>
23841
23842         * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
23843         dummy access formal for RACW/RAS TypeCode TSS.
23844         (Build_TypeCode_Call): Do not generate dummy null access actual for
23845         calls to the TypeCode TSS.
23846
23847 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23848
23849         * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
23850         fully qualified name, to distinguish instances with the same local name.
23851
23852         * g-souinf.ads (Enclosing_Entity): Document that entity name is now
23853         fully qualified.
23854
23855 2005-09-01  Robert Dewar  <dewar@adacore.com>
23856
23857         * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
23858         packed arrays.
23859
23860 2005-09-01  Jerome Lambourg  <lambourg@adacore.com>
23861
23862         * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
23863         (Free): New deallocation procedure for filter elements
23864         (Close): Deallocate any existing filter for the concerned connection
23865
23866 2005-09-01  Laurent Pautet  <pautet@adacore.com>
23867
23868         * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
23869         position set is provided, we compute one in order to reduce the maximum
23870         length of the keys.  This computation first selects a character
23871         position between 1 and the minimum length of the keys in order to
23872         avoid reducing one of the keys to an empty string.
23873         (Initialize, Compute): When the ratio V to K is too low, the algorithm
23874         does not converge. The initialization procedure now comes with a
23875         maximum number of iterations such that when exceeded, an exception is
23876         raised in Compute. The user can initialize this ratio to another value
23877         and try again
23878         Reformating and updated headers.
23879
23880 2005-09-01  Javier Miranda  <miranda@adacore.com>
23881
23882         * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
23883         that given an entity T creates and returns an Itype that duplicates the
23884         contents of T. The returned Itype has the null-exclusion
23885         attribute set to True, and its Etype attribute references T
23886         to keep the association between the two entities.
23887         Update copyright notice
23888
23889         * sem_aggr.adb (Check_Can_Never_Be_Null,
23890         Aggregate_Constraint_Checks, Resolve_Aggregate,
23891         Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
23892
23893         * sem_ch5.adb (Analyze_Assignment): Code cleanup.
23894
23895 2005-09-01  Gary Dismukes  <dismukes@adacore.com>
23896             Robert Dewar  <dewar@adacore.com>
23897             Hristian Kirtchev  <kirtchev@adacore.com>
23898
23899         * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
23900         Result_Definition.
23901
23902         * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
23903         function specs.
23904         Call Set_Result_Definition instead of Set_Subtype_Mark.
23905         (P_Subprogram_Specification): Add parsing of anonymous access result
23906         plus null exclusions. Call Set_Result_Definition instead of
23907         Set_Subtype_Mark.
23908
23909         * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
23910         (P_Access_Type_Definition): Add parsing for an anonymous access result
23911         subtype, plus parsing for null exclusions. Call Set_Result_Definition
23912         instead of Set_Subtype_Mark.
23913
23914         * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
23915         (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
23916         (Result_Definition): New function for N_Function_Specifications.
23917         (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
23918         N_Function_Specification.
23919         (Set_Null_Exclusion_Present): Allow this flag for
23920         N_Function_Specification.
23921         (Set_Result_Definition): New procedure for N_Function_Specifications.
23922         (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
23923         and N_Function_Specification.
23924
23925         * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
23926         Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
23927         Add support for LIMITED NEW for Ada 2005 AI-419
23928         Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
23929         syntax for anonymous access results.
23930         Replace Subtype_Mark field by Result_Definition in
23931         N_Function_Specification and N_Access_Definition specs.
23932         Add Null_Exclusion_Present to spec of N_Function_Specification.
23933         (Result_Definition): New function for N_Function_Specification and
23934         N_Access_Function_Definition.
23935         (Set_Result_Definition): New procedure for N_Function_Specification and
23936         N_Access_Function_Definition.
23937
23938         * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
23939         Result_Definition for cases of N_Access_Function_Definition and
23940         N_Function_Specification.
23941         Print "not null" if Null_Exclusion_Present on N_Function_Specification.
23942
23943 2005-09-01  Vincent Celier  <celier@adacore.com>
23944
23945         * lib-writ.adb: Update Copyright notice
23946         (Write_With_Lines): On platforms where file names are case-insensitive,
23947         record the file names in lower case.
23948         (Write_ALI): For D lines, on platforms where file names are
23949         case-insensitive, record the file names in lower case.
23950
23951 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23952             Emmanuel Briot  <briot@adacore.com>
23953
23954         * lib-xref.adb (Output_Overridden_Op): Display information on
23955         overridden operation.
23956
23957         * lib-xref.ads: Add documentation on overridden operations.
23958
23959         * ali.ads (Xref_Entity_Record): Add support for storing the overriding
23960         information.
23961
23962         * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
23963         overriding entity information.
23964
23965 2005-09-01  Vincent Celier  <celier@adacore.com>
23966
23967         * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
23968         including those that are inherited.
23969
23970 2005-09-01  Robert Dewar  <dewar@adacore.com>
23971
23972         * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
23973
23974         * par-prag.adb: Implement new pragma Debug_Policy
23975
23976         * sem_prag.adb Implement new pragma Debug_Policy
23977         (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
23978         Component_Size attribute specification. Give warning for ignored pragma
23979         Pack.
23980
23981         * snames.h, snames.ads, snames.adb: Introduce entries in
23982         Preset_Names for Name_Disp_Asynchronous_Select,
23983         Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
23984         Name_Disp_Timed_Select.
23985         New pragma Debug_Policy
23986
23987         * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
23988         explicitly.
23989         Switch -gnata also sets Debug_Pragmas_Enabled
23990
23991         * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
23992         handle an explicit -gnata when compiling predefined files.
23993
23994 2005-09-01  Vincent Celier  <celier@adacore.com>
23995
23996         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
23997         directories of projects that have no Ada sources.
23998
23999 2005-09-01  Robert Dewar  <dewar@adacore.com>
24000
24001         * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
24002         (makes a difference for wide characters)
24003
24004         * widechar.adb, widechar.ads:
24005         Add Wide_Char_Byte_Count feature to count chars vs bytes
24006
24007 2005-09-01  Thomas Quinot  <quinot@adacore.com>
24008             Ed Schonberg  <schonberg@adacore.com>
24009             Robert Dewar  <dewar@adacore.com>
24010
24011         * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
24012         'Address attribute reference with an overloaded prefix, use the
24013         location of the prefix (not the location of the attribute reference) as
24014         the error location.
24015         (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
24016         a function renaming thereof, is a valid prefix for 'Size (where it is
24017         intepreted as a function call).
24018         (Statically_Denotes_Entity): New predicate to determine whether the
24019         prefix of an array attribute can be considered static.
24020
24021         PR ada/9087
24022         (Eval_Attr): Fix failure to evaluate Component_Size for
24023         unconstrained arrays (resulted in wrong value in packed case, since
24024         back end cannot handle this case)
24025
24026 2005-09-01  Robert Dewar  <dewar@adacore.com>
24027
24028         * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
24029         error msgs for most common cases.
24030         Use new errout insertion char < (conditional warning)
24031
24032 2005-09-01  Javier Miranda  <miranda@adacore.com>
24033             Ed Schonberg  <schonberg@adacore.com>
24034
24035         * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
24036         become local to the whole package.
24037         (Install_Limited_Withed_Unit): Instead of unchaining real entities if
24038         the package was already analyzed the new algorithm "replaces" the
24039         real entities by the shadow ones. This is required to ensure that
24040         the order of these entities in the homonym chains does not change;
24041         otherwise we can have undefined references at linking time because
24042         in case of conflicts the external name of the entities will have
24043         a suffix that depends on the order of the entities in the chain.
24044         (Remove_Limited_With_Clause): Complementary code that completes the
24045         new algorithm and replaces the shadow entities by the real ones.
24046         (Install_Limited_Withed_Unit): When unchaining entities before the
24047         installation of the shadow entities, only regular entities of the
24048         public part must be taken into account. This is required to
24049         keep this routine in synch with the work done by Remove_Limited_
24050         With_Clause
24051         (Install_Limited_With_Clause): Introduce implicit limited_with_clause
24052         even if unit is analyzed, because the analysis of the unit is
24053         idempotent in any case, and the limited view of the unit may have to
24054         be installed for proper visibility.
24055         (Expand_Limited_With_Clause): Even if the unit in the implicit
24056         with_clause has been analyzed already, a limited view of the package
24057         must be built for the current context, if it does not exist yet.
24058
24059 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24060             Javier Miranda  <miranda@adacore.com>
24061             Gary Dismukes  <dismukes@adacore.com>
24062
24063         * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
24064         defining entity for the instance body, make a new defining identifier
24065         rather than copying the entity of the spec, to prevent accidental
24066         sharing of the entity list.
24067         (Check_Private_View): When exchanging views of private types, build the
24068         list of exchanged views as a stack, to ensure that on exit the exchanges
24069         are undone in the proper order.
24070         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
24071         Restore the compilation environment in case of instantiation_error.
24072         (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
24073         for an anonymous access result.
24074         (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
24075         (Formal_Entity): Handle properly the case of a formal package that
24076         denotes a generic package renaming.
24077
24078 2005-09-01  Thomas Quinot  <quinot@adacore.com>
24079
24080         * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
24081         clause if the array aggregate is surrounded by parentheses.
24082
24083 2005-09-01  Cyrille Comar  <comar@adacore.com>
24084             Gary Dismukes  <dismukes@adacore.com>
24085             Ed Schonberg  <schonberg@adacore.com>
24086             Javier Miranda  <miranda@adacore.com>
24087
24088         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
24089         underlying type
24090         to check if a type is Constrained in cases related to code generation
24091         (rather than semantic checking) since otherwise we do not generate
24092         similar code for mutable private types depending if their
24093         discriminants are visible or not.
24094         (Check_Abstract_Overriding): Do not complain about failure to override
24095         the primitive operations used in dispatching selects since they will
24096         always be overriden at the freeze point of the type.
24097         (Access_Definition): Separate out handling for resetting the scope
24098         of an anonymous access function result type. Retrieve the scope
24099         of the associated function rather than using Current_Scope, which
24100         does not have a consistent value (depends on whether we're in the
24101         middle of analyzing formal parameters). Add ??? comment about
24102         finding a cleaner way to handle the special cases of scope setting.
24103         (Process_Incomplete_Dependents): A protected operation is never a
24104         dispatching operation (only its wrapper may be).
24105         (Build_Derived_Record_Type): In case of tagged private types that
24106         implement interfaces add derivation of predefined primitive
24107         operations.
24108         (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
24109         by two parameters that are used in case of derivation from abstract
24110         interface types: No_Predefined_Prims is used to avoid the derivation
24111         of predefined primitives from the interface, and Predefined
24112         Prims_Only is used to complete the derivation predefined primitives
24113         in case of private tagged types implementing interfaces.
24114         Fix typo in comments
24115         (Find_Interface_In_Descendant): Protect the frontend against
24116         wrong code with large circularity chains.
24117         (Is_Private_Overriding): Add support for entities overriding interface
24118         subprograms. The test failed because Entities associated with overriden
24119         interface subprograms are always marked as hidden (and used to build
24120         the secondary dispatch table); in this case the overriden entity is
24121         available through the field abstract_interface_alias (cf. override_
24122         dispatching_operation)
24123         (Access_Definition): Set the scope of the type to Current_Scope for the
24124         case of a function with an anonymous access result type.
24125         (Access_Subprogram_Declaration): Handle creation of the type entity for
24126         an access-to-function type with an anonymous access result.
24127         (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
24128         in handling for N_Access_Function_Definition.
24129         (Analyze_Subtype_Declaration): Modify the text of error message.
24130         (Derived_Type_Declaration): Modify the text of error message.
24131         (Process_Subtype): Modify the text of error message plus cleanup
24132         of one redundant error message.
24133         (Analyze_Component_Declaration): Code cleanup.
24134         (Analyze_Object_Declaration): Code cleanup.
24135         (Analyze_Subtype_Declaration): Propagate the null-exclusion
24136         attribute in case of access types. Code cleanup.
24137         (Array_Type_Declaration): Code cleanup.
24138         (Process_Discriminants): Create the new null-excluding itype
24139         if required. Code cleanup.
24140         (Process_Subtype): Create the new null-excluding itype if
24141         required. Code cleanup.
24142         (Build_Derived_Record_Type): Code cleanup to avoid calling
24143         twice the subprogram derive_subprograms in case of private
24144         types that implement interfaces. In this particular case the
24145         subprogram Complete_Subprograms_Derivation already does the
24146         job associated with the second call.
24147
24148         * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
24149         conversion to the full view when generating an operation for a
24150         discriminant whose type may currently be private.
24151
24152 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24153             Javier Miranda  <miranda@adacore.com>
24154
24155         * sem_ch4.adb (Transform_Object_Operation): In a context off the form
24156         V (Obj.F), the rewriting does not involve the indexed component, but
24157         only the selected component itself.
24158         Do not apply the transformation if the analyzed node is an actual of a
24159         call to another subprogram.
24160         (Complete_Object_Operation): Retain the entity of the
24161         dispatching operation in the selector of the rewritten node. The
24162         entity will be used in the expansion of dispatching selects.
24163         (Analyze_One_Call): Improve location of the error message associated
24164         with interface.
24165         (Analyze_Selected_Component): No need to resolve prefix when it is a
24166         function call, resolution is done when parent node is resolved, as
24167         usual.
24168         (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
24169         when attempting to resolve a call transformed from its object notation.
24170         (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
24171         of the argument list for each interpretation of the operation.
24172         (Try_Object_Operation): The designated type of an access parameter may
24173         be an incomplete type obtained through a limited_with clause, in which
24174         case the primitive operations of the type are retrieved from its full
24175         view.
24176         (Analyze_Call): If this is an indirect call, and the return type of the
24177         access_to_subprogram is incomplete, use its full view if available.
24178
24179 2005-09-01  Javier Miranda  <miranda@adacore.com>
24180             Gary Dismukes  <dismukes@adacore.com>
24181
24182         * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
24183         access types the null-exclusion and access-to-constant attributes must
24184         also match.
24185         (Analyze_Return_Statement): When the result type is an anonymous access
24186         type, apply a conversion of the return expression to the access type
24187         to ensure that appropriate accessibility checks are performed.
24188         (Analyze_Return_Type): For the case of an anonymous access result type,
24189         generate the Itype and set Is_Local_Anonymous_Access on the type.
24190         Add ??? placeholder for check to disallow returning a limited object
24191         in Ada 2005 unless it's an aggregate or a result of a function call.
24192         Change calls from Subtype_Mark to Result_Definition.
24193         (Analyze_Subprogram_Body): Change formal Subtype_Mark to
24194         Result_Definition in call to Make_Function_Specification.
24195         (Build_Body_To_Inline): Change Set_Subtype_Mark to
24196         Set_Result_Definition.
24197         (Make_Inequality_Operator): Change formal Subtype_Mark to
24198         Result_Definition in call to Make_Function_Specification.
24199         (Process_Formals): Create the new null-excluding itype if required.
24200         (New_Overloaded_Entity): For an entity overriding an interface primitive
24201         check if the entity also covers other abstract subprograms in the same
24202         scope. This is required to handle the general case, that is, overriding
24203         other interface primitives and overriding abstract subprograms inherited
24204         from some abstract ancestor type.
24205         (New_Overloaded_Entity): For an overriding entity that comes from
24206         source, note the operation that it overrides.
24207         (Check_Conformance, Type_Conformant): Addition of one new formal
24208         to skip controlling formals in the analysis. This is used to
24209         handle overloading of abstract interfaces.
24210         (Base_Types_Match): Add missing case for types imported from
24211         limited-with clauses
24212         (New_Overloaded_Entity): Add barrier to protect the use of
24213         the "alias" attribute.
24214
24215 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24216
24217         * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
24218         verify that the procedure and the entry are mode conformant.
24219         (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
24220         as a different operator, which is often a cut-and-paste error.
24221
24222 2005-09-01  Javier Miranda  <miranda@adacore.com>
24223             Ed Schonberg  <schonberg@adacore.com>
24224
24225         * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
24226         used in controlling parameters exclude null because it is necessary to
24227         read the tag to dispatch, and null has no tag.
24228         (Override_Dispatching_Operation): If the previous operation is inherited
24229         from an interface, it becomes hidden  and does not participate in later
24230         name resolution.
24231
24232 2005-09-01  Javier Miranda  <miranda@adacore.com>
24233             Ed Schonberg  <schonberg@adacore.com>
24234             Gary Dismukes  <dismukes@adacore.com>
24235
24236         * sem_res.adb (Resolve_Membership_Op): In case of the membership test
24237         "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
24238         the expander will generate the corresponding run-time check to evaluate
24239         the expression.
24240         (Resolve_Call): Check for legal type of procedure name or prefix that
24241         appears as a trigger in a triggering alternative.
24242         (Valid_Conversion): If expression is ambiguous and the context involves
24243         an extension of System, remove System.Address interpretations.
24244         (Resolve_Qualified_Expression): Reject the case of a specific-type
24245         qualification applied to a class-wide argument. Enhance comment
24246         to explain checking of Original_Node.
24247         (Resolve_Type_Conversion): The location of the error message was not
24248         general enough to handle the general case and hence it has been removed.
24249         In addition, this patch improves the text of the message.
24250         (Resolve_Type_Conversion): Add missing support for access to interface
24251         types.
24252         (Resolve_Type_Conversion): If the target is a class-wide interface type,
24253         do not expand if the expression is the actual in a call, because proper
24254         expansion will take place when the call itself is expanded.
24255         (Resolve_Allocator): If the context is an unchecked conversion, the
24256         allocator inherits its storage pool, if any, from the target type of
24257         the conversion.
24258
24259 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24260             Javier Miranda  <miranda@adacore.com>
24261
24262         * sem_type.adb (Add_One_Interp): If a candidate operation is an
24263         inherited interface operation that has an implementation, use the
24264         implementation to avoid spurious ambiguities.
24265         (Interface_Present_In_Ancestor): In case of concurrent types we can't
24266         use the Corresponding_Record_Typ attribute to look for the interface
24267         because it is set by the expander (and hence it is not always
24268         available). For this reason we traverse the list of interfaces
24269         (available in the parent of the concurrent type).
24270         (Interface_Present_In_Ancestor): Handle entities from the limited view
24271
24272 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24273
24274         * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
24275         from the list of required components.
24276         (Is_Controlling_Limited_Procedure): Determine whether an entity is a
24277         primitive procedure of a limited interface with a controlling first
24278         parameter.
24279         (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
24280         of an entry.
24281         (Safe_To_Capture_Value): A value (such as non_null) is not safe to
24282         capture if it is generated in the second operand of a short-circuit
24283         operation.
24284         Do not capture values for variables with address clauses.
24285         (Is_Object_Reference): Treat a function call as an object reference only
24286         if its type is not Standard_Void_Type.
24287
24288 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24289
24290         * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
24291         to a variable that is statically known to be constant.
24292
24293 2005-09-01  Geert Bosch  <bosch@adacore.com>
24294             Robert Dewar  <dewar@adacore.com>
24295
24296         * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
24297         (VAXGF_Safe_First): Idem.
24298
24299 2005-09-01  Robert Dewar  <dewar@adacore.com>
24300             Arnaud Charlet  <charlet@adacore.com>
24301
24302         * g-dirope.ads: Minor reformatting
24303         Document that bounds of result of Base_Name match the input index
24304         positions.
24305         Add documentation on environment variable syntax for Expand_Path
24306
24307         * gnat_ugn.texi: Update documentation to include mention of -m switches
24308         Document new treatment of wide characters in max line length
24309         style check.
24310         Remove -gnatL/-gnatZ switches, no longer used.
24311         Add note on pragmas Assertion_Policy and Debug_Policy in discussion
24312         of -gnata switch.
24313
24314         * gnat_rm.texi: Add doc for two argument form of pragma
24315         Float_Representation.
24316         Add documentation for pragma No_Strict_Aliasing
24317         Add note that explicit component clause overrides pragma Pack.
24318         Add documentation of pragma Debug_Policy
24319
24320 2005-09-01  Matthew Heaney  <heaney@adacore.com>
24321
24322         * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
24323         a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
24324         a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
24325         a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
24326         draft (Draft 13, August 2005) of Ada Amendment 1.
24327
24328 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
24329
24330         * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
24331         Note that the platform-specific version of g-soccon.ads for VMS is now
24332         named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
24333         really is a package spec).
24334         Replace s-taspri-linux.ads by s-taspri-posix.ads
24335         Remove references to s-mastop-x86.adb
24336
24337         * system-vxworks-xscale.ads: Removed, no longer used.
24338         * s-vxwork-xscale.ads: Removed, no longer used.
24339
24340 2005-09-01  Robert Dewar  <dewar@adacore.com>
24341
24342         * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
24343         g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
24344         g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
24345         exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
24346         g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
24347         g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
24348         g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
24349         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
24350         g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
24351         g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
24352         sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
24353         a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
24354         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
24355         a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
24356         a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
24357         a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
24358         g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
24359         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
24360         g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
24361         i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
24362         a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
24363
24364 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
24365
24366         PR ada/23187
24367         * adaint.c
24368         (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
24369
24370 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
24371             Doug Rupp  <rupp@adacore.com>
24372
24373         * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
24374         when needed.
24375         (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
24376         this code in the GNAT run-time.
24377
24378         * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
24379
24380         PR ada/21053
24381         * init.c (__gnat_error_handler [many]): Mark "msg" as const
24382         (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
24383
24384         (__gnat_inside_elab_final_code): Moved here from
24385         Standard_Library and only defined for the compiler.
24386         __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
24387         (__gnat_inum_to_ivec): Do not define this function on VxWorks when
24388         using RTPs because directly vectored Interrupt routines are not
24389         supported on this configuration.
24390         (getpid): Do not redefine this function on VxWorks when using RTPs
24391         because this primitive is well supported by the RTP libraries.
24392         (copy_msg): Correct the code that checks for buffer overflow.
24393         Discovered during code reading.
24394
24395 2005-08-29  Olivier Hainque  <hainque@adacore.com>
24396
24397         * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
24398         a library level mutable variable with an initializer, tell
24399         build_allocator to ignore the initializer's size. It may not be large
24400         enough for all the values that might be assigned to the variable later
24401         on.
24402
24403 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
24404             Eric Botcazou  <ebotcazou@adacore.com>
24405
24406         * trans.c: Protect < in error msg with quote
24407         Replace GCC_ZCX by Back_End_Exceptions.
24408         (addressable_p) <COMPONENT_REF>: Also return 1 if the field
24409         has been sufficiently aligned in the record.
24410
24411 2005-08-15  James E. Wilson  <wilson@specifix.com>
24412
24413         * system-linux-alpha.ads: Change ia64 to alpha.
24414
24415 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
24416
24417         * decl.c, utils.c: Fix comment typos.
24418
24419 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
24420
24421         * decl.c, init.c, initialize.c: Fix comment typos.
24422
24423 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
24424
24425         Make CONSTRUCTOR use VEC to store initializers.
24426         * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
24427         CONSTRUCTOR_ELTS.
24428         * trans.c (extract_values): Likewise.
24429         * utils.c (convert, remove_conversions): Likewise.
24430         * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
24431         gnat_build_constructor): Likewise.
24432
24433 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
24434
24435         * decl.c (components_to_record): Use DECL_FCONTEXT instead of
24436         DECL_SECTION_NAME.
24437         (compare_field_bitpos): Likewise.
24438
24439 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
24440
24441         * utils.c (create_var_decl): Only set DECL_COMMON on
24442         VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
24443         VAR_OR_FUNCTION_DECL_P.
24444
24445 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
24446
24447         * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
24448         removed.
24449
24450 2005-07-07  Pascal Obry  <obry@adacore.com>
24451
24452         * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
24453         returned type on Windows.
24454
24455         * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
24456         routine.
24457
24458         * g-socket.adb (Inet_Addr): Check for empty Image and raises an
24459         exception in this case.
24460         Simplify the code as "Image (Image'Range)" = "Image".
24461
24462 2005-07-07  Vincent Celier  <celier@adacore.com>
24463
24464         * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
24465         the destructor/constructor attributes for <lib>final/<lib>init.
24466
24467         * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
24468
24469 2005-07-07  Eric Botcazou  <ebotcazou@adacore.com>
24470
24471         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
24472         type if the parameter is not passed by copy but reference by default.
24473
24474 2005-07-07  Javier Miranda  <miranda@adacore.com>
24475
24476         * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
24477         Reimplementation of the support for abstract interface types in order
24478         to leave the code more clear and easy to maintain.
24479
24480         * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
24481         abstract interface types in order to leave the code clearer and easier
24482         to maintain.
24483
24484         * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
24485         is now implemented by the new subprogram Fill_Secondary_DT_Entry.
24486         (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
24487         appropriate entry of the secondary dispatch table.
24488         (Make_DT): Add code to inherit the secondary dispatch tables of
24489         the ancestors.
24490
24491         * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
24492         implementing both functionalities by means of a common routine, each
24493         routine has its own code.
24494
24495 2005-07-07  Javier Miranda  <miranda@adacore.com>
24496
24497         * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
24498
24499         * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
24500         types:
24501         --
24502           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
24503         --
24504
24505         * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
24506         use of tag incomplete types.
24507
24508         * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
24509         give support to tagged incomplete types.
24510
24511         * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
24512         expression is a discriminant reference and its type is private, as can
24513         happen within a stream operation for a mutable record, use the full
24514         view of the type to resolve the case alternatives.
24515         (Analyze_Assignment): Check wrong dereference of incomplete types.
24516
24517         * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
24518         types.
24519
24520         * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
24521         incomplete types.
24522
24523         * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
24524         N_Incomplete_Type_Declaration nodes.
24525
24526         * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
24527         Tag_Present to give support to tagged incomplete types:
24528         --
24529           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
24530         --
24531
24532 2005-07-07  Olivier Hainque  <hainque@adacore.com>
24533
24534         PR ada/22301
24535         * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
24536         definitions for the Unwind wrappers in the compiler case.
24537
24538 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
24539             Javier Miranda  <miranda@adacore.com>
24540
24541         * par-load.adb (Load): If a child unit is loaded through a limited_with
24542         clause, each parent must be loaded as a limited unit as well.
24543
24544         * sem_ch10.adb (Previous_Withed_Unit): Better name for
24545         Check_Withed_Unit. Return true if there is a previous with_clause for
24546         this unit, whether limited or not.
24547         (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
24548         the current unit.
24549         (Is_Visible_Through_Renamings): New local subprogram of install_limited
24550         _withed_unit that checks if some package installed through normal with
24551         clauses has a renaming declaration of package whose limited-view is
24552         ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
24553         of the current Draft document for Ada 2005.
24554         (Analyze_Context): Complete the list of compilation units that
24555         are allowed to contain limited-with clauses. It also contains
24556         checks that were previously done by Install_Limited_Context_Clauses.
24557         This makes the code more clear and easy to maintain.
24558         (Expand_Limited_With_Clause) It is now a local subprogram of
24559         Install_Limited_Context_Clauses, and contains the code that adds
24560         the implicit limited-with clauses for parents of child units.
24561         This functionality was prevously done by Analyze_Context.
24562
24563         * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
24564         incomplete type.
24565
24566         * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
24567         been erroneously named in a limited-with clause of its own context.
24568         In this case the error has been previously notified by Analyze_Context.
24569
24570 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
24571
24572         * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
24573         generic package that contains local declarations with the same name.
24574         (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
24575
24576 2005-07-07  Bernard Banner  <banner@adacore.com>
24577
24578         * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
24579         ia64 platform only on platforms that you the GCC unwind library
24580         rather than the system unwind library.
24581
24582 2005-07-07  Thomas Quinot  <quinot@adacore.com>
24583
24584         * expect.c: Minor reformatting
24585
24586 2005-07-07  Sergey Rybin  <rybin@adacore.com>
24587
24588         * vms_data.ads: Add VMS qualifiers for new gnatpp switch
24589         --no-separate-is
24590
24591         * gnat_ugn.texi: Add description for new gnatpp option
24592         (--no-separate-is)
24593
24594 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24595
24596         * g-expect-vms.adb, g-expect.ads, g-expect.adb
24597         (Get_Command_Output): New subprogram to launch a process and get its
24598         standard output as a string.
24599
24600 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
24601             Olivier Hainque  <hainque@adacore.com>
24602
24603         * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
24604         fetch a code-range descriptor associated with the machine state. On
24605         failure set the machine state's PC to 0; on success, pass the
24606         descriptor to exc_virtual_unwind.
24607
24608         * init.c (Tru64 section): New function __gnat_set_code_loc.
24609
24610 2005-07-04  Vincent Celier  <celier@adacore.com>
24611
24612         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24613         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
24614         mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
24615         Remove all auto-initialization code, as this is now done through the
24616         constructor mechanism.
24617
24618         * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
24619         __gnat_sals_init_using_constructors): New functions.
24620
24621         * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
24622         Linker_Constructor and Linker_Destructor when switch -a is used.
24623
24624         * bindusg.adb: Add line for new switch -a
24625
24626         * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
24627         (Gnatbind): When switch -a is used, check if it is allowed
24628
24629         * switch-b.adb (Scan_Binder_Switches): Process new switch -a
24630
24631 2005-07-04  Joel Brobecker  <brobecker@adacore.com>
24632
24633         * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
24634         This prevents us from hitting a limitation during the debug info
24635         generation when using stabs.
24636         (Prims_Ptr): Likewise.
24637
24638 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
24639             Ed Schonberg  <schonberg@adacore.com>
24640             Javier Miranda  <miranda@adacore.com>
24641
24642         * checks.adb (Null_Exclusion_Static_Checks): In the case of
24643         N_Object_Declaration, only perform the checks if the Object_Definition
24644         is not an Access_Definition.
24645
24646         * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
24647         where the parent of an the access definition is an N_Object_Declaration
24648         when determining the Associated_Node_For_Itype and scope of an
24649         anonymous access-to-subprogram type.
24650
24651         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
24652         Corresponding_Spec on the body created for a null procedure. Add ???
24653         comment. Remove New_Copy_Tree call on body argument to
24654         Set_Body_To_Inline.
24655
24656         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
24657         discriminants, use the type of the actual as well, because the
24658         discriminants may be read by the called subprogram.
24659
24660         * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
24661         access type we do not need to handle non-limited views.
24662         (Build_Derived_Record_Type): Additional check to check that in case of
24663         private types, interfaces are only allowed in private extensions.
24664
24665 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
24666
24667         * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
24668         <Pragma_Linker_Destructor>: Likewise.
24669
24670         * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
24671         Pragma_Linker_Destructor.
24672
24673         * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
24674         ATTR_LINK_DESTRUCTOR.
24675         (static_ctors, static_dtors): New variables.
24676
24677         * misc.c (gnat_expand_body): Output current function as constructor
24678         and destructor if requested.
24679
24680         * par-prag.adb: Add processing for pragma Linker_Constructor and
24681         Linker_Destructor.
24682
24683         * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
24684         extracted from Check_Interrupt_Or_Attach_Handler.
24685         (Check_Interrupt_Or_Attach_Handler): Invoke it.
24686         Implement pragma Linker_Constructor and Linker_Destructor with the
24687         help of Find_Unique_Parameterless_Procedure.
24688         Replace Name_Alias with Name_Target for pragma Linker_Alias.
24689
24690         * snames.h, snames.ads, snames.adb:
24691         Add Name_Linker_Constructor and Name_Linker_Destructor.
24692         Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
24693         * snames.adb: Remove Name_Alias.
24694
24695         * trans.c: Include cgraph.h.
24696         (build_global_cdtor): New function.
24697         (Compilation_Unit_to_gnu): Build global constructor and destructor if
24698         needed.
24699         (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
24700         of objects too.
24701         (addressable_p) <COMPONENT_REF>: Unconditionally test
24702         DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
24703
24704         * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
24705         variable if it is external.
24706
24707         (static_ctors, static_dtors): New global variables.
24708         (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
24709         <ATTR_LINK_DESTRUCTOR>: Likewise.
24710         (end_subprog_body): Chain function as constructor and destructor
24711         if requested.
24712
24713         * exp_util.adb (Force_Evaluation): Unconditionally invoke
24714         Remove_Side_Effects with Variable_Ref set to true.
24715         (Remove_Side_Effects): Handle scalar types first. Use a renaming
24716         for non-scalar types even if Variable_Ref is true and for class-wide
24717         expressions.
24718
24719 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24720
24721         * exp_attr.adb (Mod): Evaluate condition expression with checks off,
24722         to prevent spurious warnings.
24723
24724 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24725
24726         * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
24727         Itypes. Itypes are really unexpected there.
24728         (Build_TypeCode_Function): Generalise special processing for Itypes to
24729         handle the case of numeric implicit base types as well as enumerated
24730         ones.
24731
24732 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24733
24734         * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
24735         controlled, indicate the expected type of the dereference that is
24736         created for the call to Deep_Finalize, to prevent spurious errors when
24737         the designated type is private and completed with a derivation from
24738         another private type.
24739
24740 2005-07-04  Vincent Celier  <celier@adacore.com>
24741
24742         * make.adb (Change_To_Object_Directory): When unable to change the
24743         current dir to the object directory, output the full path of the
24744         directory.
24745
24746 2005-07-04  Matthew Gingell  <gingell@adacore.com>
24747
24748         * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
24749
24750         * indepsw-linux.adb: Replace by...
24751
24752         * indepsw-gnu.adb: ...this new file
24753
24754 2005-07-04  Vincent Celier  <celier@adacore.com>
24755
24756         * mlib-prj.adb (Auto_Initialize): New constant String
24757         (SALs_Use_Constructors): New Boolean function
24758         (Build_Library): Call gnatbind with Auto_Initialize switch when
24759         SALs_Use_Constructors returns True.
24760
24761         * mlib-tgt.ads: Minor reformatting
24762
24763         * mlib-utl.ads: Minor reformatting
24764
24765         * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
24766
24767 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24768
24769         * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
24770         single protected declarations can have an interface list.
24771         (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
24772         with seriously malformed entry declarations, and lead to compilation
24773         abandoned messages.
24774
24775 2005-07-04  Javier Miranda  <miranda@adacore.com>
24776
24777         * par-load.adb: Load the context items in two rounds.
24778
24779 2005-07-04  Robert Dewar  <dewar@adacore.com>
24780
24781         * scng.adb: Do not consider Mod used as an attribute to be a keyword
24782
24783 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24784             Javier Miranda  <miranda@adacore.com>
24785
24786         * sem_ch10.adb (Build_Limited_Views): A type declared with a private
24787         type extension needs a limited view.
24788         Remove previous restriction on private types available through the
24789         limited-view (only tagged private types were previously allowed).
24790         (Install_Withed_Unit): In the code that implements the
24791         legality rule given in AI-377, exclude a child unit with the name
24792         Standard, because it is a homonym of the Standard environment package.
24793
24794 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24795
24796         * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
24797         overloaded function call, carry interpretations from the original tree
24798         to the copy.
24799
24800 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24801
24802         * sem_ch6.adb (Conforming_Types): If the types are anonymous access
24803         types check whether some designated type is a limited view, and use
24804         the non-limited view if available.
24805
24806 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
24807
24808         * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
24809         constraint of full view of a private view T1 if present, when T2 is a
24810         discriminated full view.
24811
24812 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24813
24814         * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
24815         actual that is a view conversion of a bit packed array reference.
24816
24817 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24818
24819         * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
24820         present before checking whether an interface type covers a synchronized
24821         type.
24822
24823 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24824
24825         * sem_util.adb (Is_Object_Reference): An indexed or selected component
24826         whose prefix is an implicit dereference is an object reference. Removes
24827         spurious errors when compiling with -gnatc.
24828
24829 2005-07-04  Robert Dewar  <dewar@adacore.com>
24830
24831         PR ada/22039
24832         * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
24833
24834 2005-07-04  Matthew Gingell  <gingell@adacore.com>
24835
24836         * tracebak.c: Enable tracebacks on ia64 platforms
24837
24838 2005-07-04  Vincent Celier  <celier@adacore.com>
24839
24840         * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
24841         the GNAT BIND command, as gnatbind accepts multiples ALI files with
24842         the -L or -n switches.
24843
24844 2005-07-04  Vincent Celier  <celier@adacore.com>
24845
24846         * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
24847         correctly computed and the main project data is not modified while
24848         doing so.
24849         (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
24850         (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
24851         c++linker as this does not work on some platforms.
24852
24853 2005-07-04  Matthew Heaney  <heaney@adacore.com>
24854
24855         * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
24856         was changed.
24857         * a-coinve.adb: Perform constraint checks explicitly.
24858
24859 2005-07-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24860             Thomas Quinot  <quinot@adacore.com>
24861
24862         * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
24863         new target gen-soccon.
24864
24865 2005-07-04  Robert Dewar  <dewar@adacore.com>
24866
24867         * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
24868
24869 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24870
24871         * g-socket.ads (Check_Selector): Minor rewording of comment.
24872
24873 2005-07-04  Vincent Celier  <celier@adacore.com>
24874
24875         * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
24876
24877 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24878
24879         * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
24880
24881 2005-07-04  Sergey Rybin  <rybin@adacore.com>
24882
24883         * gnat_ugn.texi: Add description of --eol gnatpp option
24884
24885 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
24886             Thomas Quinot  <quinot@adacore.com>
24887
24888         * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
24889         if the user wants all calls of a subprogram to be flagged,
24890         independently of whether they are made from within the same unit or
24891         another unit.
24892         Mention restriction for pragma Linker_Alias on some platforms.
24893         Document pragma Linker_Constructor and Linker_Destructor.
24894         Rewrite documentation of Weak_External, Linker_Section and
24895         Linker_Alias pragmas.
24896
24897 2005-07-04  Arnaud Charlet  <charlet@adacore.com>
24898
24899         * s-stausa.ads, s-stausa.adb: New files.
24900
24901 2005-06-30  Kelley Cook
24902
24903         * all files:  Update FSF address in copyright headers.
24904         * gen-soccon.co (main): Output new FSF address in generated files.
24905
24906 2005-06-28  Paul Brook  <paul@codesourcery.com>
24907
24908         * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
24909
24910 2005-06-14  Olivier Hainque  <hainque@adacore.com>
24911             Eric Botcazou  <ebotcazou@adacore.com>
24912
24913         * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
24914         exc_unwind, now that we are generating proper .debug_frame output for
24915         that target.
24916
24917         * tracebak.c: Remove the mips-irix section, as we are now using the
24918         s-mastop based unwinder again.
24919         Under SPARC/Solaris, take into account the stack bias to compute the
24920         frame offset.  The stack bias is 0 for the V8 ABI and 2047 for the V9
24921         ABI.
24922
24923 2005-06-14  Doug Rupp  <rupp@adacore.com>
24924
24925         * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
24926
24927         * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
24928
24929 2005-06-14  Pascal Obry  <obry@adacore.com>
24930
24931         * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
24932         a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
24933         a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
24934         package name).
24935
24936         * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
24937         a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
24938         a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
24939         a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
24940         a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
24941         a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
24942         a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
24943         s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
24944         s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
24945         s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
24946         s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
24947         s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
24948         s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
24949         s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
24950         s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
24951         s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
24952         s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
24953         s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
24954         s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
24955         s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
24956         s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
24957         s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
24958         s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
24959         s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
24960         s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
24961         s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
24962         s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
24963         s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
24964         s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
24965         s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
24966         a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
24967         a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
24968         a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
24969         a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
24970         a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
24971         a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
24972         a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
24973         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
24974         a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
24975         a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
24976         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
24977         a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
24978         a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
24979         a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
24980         a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
24981         a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
24982         a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
24983         a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
24984         a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
24985         a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
24986         a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
24987         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
24988         a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
24989         a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
24990         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
24991         a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
24992         a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
24993         dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
24994         g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
24995         g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
24996         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
24997         g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
24998         g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
24999         gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
25000         g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
25001         i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
25002         s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
25003         s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
25004         s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
25005         s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
25006         s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
25007         s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
25008         s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
25009         s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
25010         s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
25011         s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
25012         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
25013         s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
25014         s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
25015         s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
25016         s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
25017         s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
25018         s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
25019         s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
25020         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
25021         s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
25022         s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
25023         s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
25024         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
25025         s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
25026         s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
25027         s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
25028         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
25029         s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
25030         s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
25031         s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
25032         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
25033         s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
25034         s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
25035         s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
25036         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
25037         s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
25038         s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
25039         s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
25040         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
25041         s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
25042         s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
25043         s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
25044         s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
25045         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
25046         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
25047         s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
25048         s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
25049         s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
25050         s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
25051         s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
25052         s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
25053         s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
25054         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
25055         s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
25056         s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
25057         s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
25058         s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
25059         a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
25060         a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
25061         a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
25062         a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
25063         a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
25064         a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
25065         a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
25066         a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
25067         a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
25068         "GNU Ada" to GNAT, use proper casing for RUN-TIME.
25069
25070 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
25071             Arnaud Charlet  <charlet@adacore.com>
25072
25073         * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
25074         longer protected objects. They have been replaced by lower-level
25075         suspension objects made up by a mutex and a condition variable (or
25076         their equivalent given a particular OS) plus some internal data to
25077         reflect the state of the suspension object.
25078         (Initialize, Finalize): Add this initialization procedure for
25079         Suspension_Object, which is a controlled type.
25080         (Finalize): Add the finalization procedure for Suspension_Object,
25081         which is a controlled type.
25082
25083         * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
25084         Ada.Synchronous_Task_Control because there is no longer a need for a
25085         VxWorks specific version of this package. Target dependencies
25086         has been moved to System.Task_Primitives.Operations.
25087
25088         * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
25089         longer needed.
25090         (InitializeCriticalSection, EnterCriticalSection,
25091         LeaveCriticalSection, DeleteCriticalSection): Replace the type
25092         pCriticalSection by an anonymous access type so that we avoid problems
25093         of accessibility to local objects.
25094
25095         * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
25096         s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
25097         s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
25098         s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
25099         s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
25100         set the environment task mask here.
25101         (Current_State): Add this function that returns the state of the
25102         suspension object.
25103         (Set_False): Add this procedure that sets the state of the suspension
25104         object to False.
25105         (Set_True): Add this procedure that sets the state of the suspension
25106         object to True, releasing the task that was suspended, if any.
25107         (Suspend_Until_True): Add this procedure that blocks the calling task
25108         until the state of the object is True. Program_Error is raised if
25109         another task is already waiting on that suspension object.
25110         (Initialize): Add this procedure for initializing the suspension
25111         object. It initializes the mutex and the condition variable which are
25112         used for synchronization and queuing, and it sets the internal state
25113         to False.
25114         (Finalize): Add this procedure for finalizing the suspension object,
25115         destroying the mutex and the condition variable.
25116
25117         * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
25118         s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
25119         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
25120         s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
25121         which provides a low-level abstraction (using operating system
25122         primitives) for Ada.Synchronous_Task_Control.
25123         This object is made up by a mutex (for ensuring mutual exclusion), a
25124         condition variable (for queuing threads until the condition is
25125         signaled), a Boolean (State) indicating whether the object is open,
25126         and a Boolean (Waiting) reflecting whether there is a task already
25127         suspended on this object.
25128
25129         * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
25130         s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
25131         s-intman-vms.ads, s-intman-mingw.adb,
25132         (Initialize_Interrupts): Removed, no longer used.
25133
25134         * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
25135         (Setup_Interrupt_Mask): New procedure.
25136
25137         * s-intman-vxworks.ads, s-intman-vxworks.adb:  Update comments.
25138
25139         * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
25140
25141         * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
25142         this is no longer done in the body of s-taprop
25143         (Server_Task): Explicitely test for Pending_Action in case
25144         System.Parameters.No_Abort is True.
25145
25146         * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
25147         is no longer done in the body of s-taprop
25148
25149 2005-06-14  Robert Dewar  <dewar@adacore.com>
25150
25151         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
25152         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
25153         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
25154         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
25155         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
25156         system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
25157         system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
25158         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
25159         system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
25160         system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
25161         system-linux-hppa.ads, system-vms_64.ads,
25162         system-vxworks-alpha.ads: Minor comment update for
25163         AI-362 (unit is Pure).
25164
25165         * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
25166         Add pragma Pure_05 for AI-362
25167         Make remaining conversion functions obsolescent in Ada 95
25168
25169         * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
25170         Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
25171         Add entries for a-wichun and a-zchuni
25172         Add a-widcha a-zchara for AI-395
25173         Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
25174
25175         * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
25176         Add entries for a-wichun.o and a-zchuni.o
25177         Entries for a-widcha.o and a-zchara.o
25178         Add entry for a-chacon.o
25179
25180         * a-ztenau.adb: Add with of Ada.Characters.Conversions
25181
25182         * a-chacon.ads, a-chacon.adb: New files.
25183
25184         * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
25185         categorization violations.
25186
25187         * a-strmap.ads: Add pragma Pure_05 for AI-362
25188         * a-strmap.ads: Add note on implicit categorization for AI-362
25189
25190         * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
25191
25192         * par-prag.adb: Dummy entry for pragma Persistent_BSS
25193         Set Ada_Version_Explicit, for implementation of AI-362
25194         Add processing for pragma Pure_05 and Preelaborate_05
25195         Add entry for Assertion_Policy pragma
25196
25197         * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
25198         when needed for proper processing of categorization stuff
25199
25200         * sem_cat.adb:
25201         For several cases, make errors in preealborate units warnings,
25202         instead of errors, if GNAT_Mode is set. For AI-362.
25203
25204         * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
25205         preelaborate unit is now warning if in GNAT mode
25206
25207         * s-stoele.ads: Document AI-362 for pragma preelaborate
25208
25209 2005-06-14  Doug Rupp  <rupp@adacore.com>
25210
25211         * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
25212         s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
25213         Default_Exception_Msg_Max_Length: new parameter.
25214
25215         * a-except.ads: (Exception_Msg_Max_Length): Set to
25216         System.Parameters.Default_Exception_Msg_Max_Length
25217         Add pragma Preelaborate_05 for AI-362
25218         Add warnings off to allow categorization violations for AI-362
25219
25220 2005-06-14  Vincent Celier  <celier@adacore.com>
25221
25222         * gnatsym.adb: Adapt to modification of package Symbols: procedure
25223         Process is now in package Processing.
25224
25225         * symbols.ads, symbols.adb:
25226         (Processing): New package, containing procedure Process
25227
25228         * symbols-vms-alpha.adb:
25229         Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
25230
25231         * symbols-vms.adb, symbols-processing-vms-alpha.adb,
25232         symbols-processing-vms-ia64.adb: New files.
25233
25234 2005-06-14  Pascal Obry  <obry@adacore.com>
25235
25236         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
25237         implementation. This new version generates the proper DllMain routine
25238         to initialize the SAL. The DllMain is generated in Ada and compiled
25239         before being added as option to the library build command.
25240
25241 2005-06-14  Doug Rupp  <rupp@adacore.com>
25242             Pascal Obry  <obry@adacore.com>
25243
25244         * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
25245         call to decc$translate_vms.
25246         (__gnat_locate_regular_file): Check if the path_val contains quotes. We
25247         need to remove those quotes before catenating the filename.
25248         (__gnat_locate_exec_on_path): improvements to the Win32 section:
25249         * avoid allocating the memory twice for better efficiency;
25250         * allocate 32K buffer for environment expansion as suggested by MSDN;
25251         * prepend ".;" to the path so that current directory is searched too.
25252
25253 2005-06-14  Robert Dewar  <dewar@adacore.com>
25254
25255         * a-except.adb (Exception_Identity): return Null_Id for null occurrence
25256         instead of raising CE (AI-241)
25257         Add warnings off to allow categorization violations for AI-362
25258
25259 2005-06-14  Robert Dewar  <dewar@adacore.com>
25260
25261         * ali-util.adb, gnatbind.adb: Remove references to
25262         Force_RM_Elaboration_Order.
25263
25264         * switch-b.adb: Remove recognition of -f switch
25265
25266 2005-06-14  Pascal Obry  <obry@adacore.com>
25267
25268         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
25269         implementation which is slightly more efficient.
25270
25271 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
25272             Javier Miranda  <miranda@adacore.com>
25273             Ed Schonberg  <schonberg@adacore.com>
25274             Hristian Kirtchev  <kirtchev@adacore.com>
25275
25276         * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
25277         allocator's designated type is a class-wide type, and compiling for
25278         Ada 2005, emit a run-time check that the accessibility level of the
25279         type given in the allocator's expression is not deeper than the level
25280         of the allocator's access type.
25281
25282         (Tagged_Membership): Modified to gives support to abstract interface
25283         types.
25284
25285         * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
25286         Access_Level.
25287         (Descendant_Tag): New predefined function
25288         (Is_Descendant_At_Same_Level): New predefined function
25289         (Get_Access_Level): New private function
25290         (Set_Access_Level): New private procedure
25291         (IW_Membership): New function. Given the tag of an object and the tag
25292         associated with an interface, evaluate if the object implements the
25293         interface.
25294         (Register_Interface_Tag): New procedure used to initialize the table of
25295         interfaces used by the IW_Membership function.
25296         (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
25297         of the dispatch table.
25298         (Inherit_TSD): Modified to copy the table of ancestor tags plus the
25299         table of interfaces of the parent.
25300         (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
25301         (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
25302         (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
25303         and raise Tag_Error if the passed tag equalis No_Tag, to conform with
25304         Ada 2005 semantics for the new predefined function.
25305
25306         * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
25307         call to Descendant_Tag rather than Internal_Tag.
25308         (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
25309         the accessibility level of the attribute's Item parameter is not deeper
25310         than the level of the attribute's prefix type. Tag_Error is raised if
25311         the check fails. The check is only emitted for Ada_05.
25312         (Find_Stream_Subprogram): If a TSS exists on the type itself for the
25313         requested stream attribute, use it.
25314         (Expand_N_Attribute_Reference): If the designated type is an interface
25315         then rewrite the referenced object as a conversion to force the
25316         displacement of the pointer to the secondary dispatch table.
25317         (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
25318         is a dereference of an object with a constrained partial view.
25319
25320         * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
25321         type is a class-wide type, emit a run-time check that the accessibility
25322         level of the returned object is not deeper than the level of the
25323         function's master (only when compiling for Ada 2005).
25324
25325         * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
25326         Action_Nb_Arg): Add entries for new Get_Access_Level and
25327         Set_Access_Level routines in these tables.
25328         (Make_DT): Generate a call to set the accessibility level of the
25329         tagged type in its TSD.
25330         (Make_DT): Code cleanup. The functionality of generating all the
25331         secondary dispatch tables has been moved to freeze_record_type.
25332         (Make_Abstract_Interface_DT): Minor code cleanup.
25333         (Set_All_DT_Position): Code cleanup. As part of the code cleanup
25334         this subprogram implements a new algorithm that provides the
25335         same functionality and it is more clear in case of primitives
25336         associated with abstract interfaces.
25337         (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
25338         clean up, the functionality of this subprogram is now provided
25339         by Set_All_DT_Position.
25340         (Write_DT): New subprogram: a debugging procedure designed to be called
25341         within gdb to display the dispatch tables associated with a tagged
25342         type.
25343         (Collect_All_Interfaces): New subprogram that collects the whole list
25344         of interfaces that are directly or indirectly implemented by a tagged
25345         type.
25346         (Default_Prim_Op_Position): New subprogram that returns the fixed
25347         position in the dispatch table of the default primitive operations.
25348         (Expand_Interface_Actuals): New subprogram to generate code that
25349         displaces all the actuals corresponding to class-wide interfaces to
25350         reference the interface tag of the actual object.
25351         (Expand_Interface_Conversion): New subprogram. Reference the base of
25352         the object to give access to the interface tag associated with the
25353         secondary dispatch table.
25354         (Expand_Interface_Thunk): New subprogram that generates the code of the
25355         thunk. This is required for compatibility with the C+ ABI.
25356         (Make_Abstract_Interface_DT): New subprogram that generate the
25357         declarations for the secondary dispatch tables associated with an
25358         abstract interface.
25359         (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
25360         attribute for each primitive operation covering interface subprograms
25361         (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
25362         These subprograms were upgraded to give support to abstract interfaces
25363
25364         * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
25365         RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
25366         RE_Set_Access_Level.
25367         (RE_Unit_Table): Add entries for new Ada.Tags operations.
25368         Add support to call the followig new run-time subprograms:
25369         IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
25370
25371         * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
25372         match its full declaration when both have an access definition with
25373         statically matching designated subtypes.
25374         (Analyze_Component_Declaration): Delete commented out code that was
25375         incorrectly setting the scope of an anonymous access component's type.
25376         (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
25377         an access discriminant when the containing type is nonlimited.
25378         (Make_Incomplete_Type_Declaration): Create an incomplete type
25379         declaration for a record type that includes self-referential access
25380         components.
25381         (Check_Anonymous_Access_Types): Before full analysis of a record type
25382         declaration, create anonymous access types for each self-referential
25383         access component.
25384         (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
25385         an access component in this context is a Local_Anonymous_Access, for
25386         proper accessibility checks.
25387         (Access_Definition): Set properly the scope of the anonymous access type
25388         created for a stand-alone access object.
25389         (Find_Type_Of_Object): An object declaration may be given with an access
25390         definition.
25391         (Complete_Subprograms_Derivation): New subprogram used to complete
25392         type derivation of private tagged types implementing interfaces.
25393         In this case some interface primitives may have been overriden
25394         with the partial-view and, instead of re-calculating them, they
25395         are included in the list of primitive operations of the full-view.
25396         (Build_Derived_Record_Type): Modified to give support to private
25397         types implemening interfaces.
25398         (Access_Definition): Reject ALL on anonymous access types.
25399         (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
25400         type derivation to occur at a deeper accessibility level than the
25401         parent type.
25402         For the case of derivation within a generic body however, disallow the
25403         derivation if the derived type has an ancestor that is a formal type
25404         declared in the formal part of an enclosing generic.
25405         (Analyze_Object_Declaration): For protected objects, remove the check
25406         that they cannot contain interrupt handlers if not declared at library
25407         level.
25408         (Add_Interface_Tag_Components): New subprogram to add the tag components
25409         corresponding to all the abstract interface types implemented by a
25410         record type or a derived record type.
25411         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
25412         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
25413         Process_Full_View, Record_Type_Declaration): Modified to give
25414         support to abstract interface types
25415         (Collect_Interfaces): New subprogram that collects the list of
25416         interfaces that are not already implemented by the ancestors
25417         (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
25418         when partial view has no discriminants and full view has defaults.
25419         (Constrain_Access): Reject a constraint on a general access type
25420         if the discriminants of the designated type have defaults.
25421         (Access_Subprogram_Declaration): Associate the Itype node with the inner
25422         full-type declaration or subprogram spec. This is required to handle
25423         nested anonymous declarations.
25424         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
25425         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
25426         Process_Full_View, Record_Type_Declaration): Modified to give
25427         support to abstract interface types
25428         (Derive_Subprograms): Addition of a new formal to indicate if
25429         we are in the case of an abstact-interface derivation
25430         (Find_Type_Of_Subtype_Indic): Moved from the body of the package
25431         to the specification because it is requied to analyze all the
25432         identifiers found in a list of interfaces
25433
25434         * debug.adb: Complete documentation of flag "-gnatdZ"
25435
25436         * exp_ch3.adb: Implement config version of persistent_bss pragma
25437         (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
25438         testing for TSS presence to properly enforce visibility rules.
25439         (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
25440         Make_Abstract_Interfaces_DT to generate the secondary tables
25441         associated with abstract interfaces.
25442         (Build_Init_Procedure): Modified to initialize all the tags
25443         corresponding.
25444         (Component_Needs_Simple_Initialization): Similar to other tags,
25445         interface tags do not need initialization.
25446         (Freeze_Record_Type): Modified to give support to abstract interface
25447         types.
25448         (Expand_N_Object_Declaration): Do not generate an initialization for
25449         a scalar temporary marked as internal.
25450
25451         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
25452         in-out parameter that is a component in an initialization procedure,
25453         whose constraint might depend on discriminants, and that may be
25454         misaligned because of packing or representation clauses.
25455         (Is_Legal_Copy): New predicate to determine whether a possibly
25456         misaligned in-out actual can actually be passed by copy/return. This
25457         is an error in case the type is by_reference, and a warning if this is
25458         the consequence of a DEC import pragma on the subprogram.
25459         (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
25460         interface types
25461         (Expand_Inlined_Call): Mark temporary generated for the return value as
25462         internal, so that no useless scalar normalization is generated for it.
25463         (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
25464         null procedure can always be inlined.
25465         (Expand_N_Subprogram_Declaration): If this is the declaration of a null
25466         procedure, generate an explicit empty body for it.
25467
25468         * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
25469         Given a type implementing an interface, returns the corresponding
25470         access_disp_table value.
25471         (Find_Interface_Tag): New subprogram. Given a type implementing an
25472         interface, returns the record component containing the tag of the
25473         interface.
25474         (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
25475         previous ones that return the corresponding tag and access_disp_table
25476         entities.
25477         (Is_Predefined_Dispatching_Operation): Determines if a subprogram
25478         is a predefined primitive operation.
25479         (Expand_Subtype_From_Expr): If the expression is a selected component
25480         within an initialization procedure, compute its actual subtype, because
25481         the component may depend on the discriminants of the enclosing record.
25482
25483         * i-cpp.ads, i-cpp.adb:
25484         This package has been left available for compatibility with previous
25485         versions of the frontend. As part of the new layout this is now a
25486         dummy package that uses declarations available at a-tags.ads
25487
25488         * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
25489         "constant access" and "aliased [constant] access" when not compiling
25490         with -gnat05.
25491         Suppress Ada 2005 keyword warning if -gnatwY used
25492         (P_Identifier_Declarations): Add support for object declarations with
25493         access definitions.
25494         (Private_Extension_Declaration): Complete the documentation
25495         (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
25496         attribute in case of private extension declaration
25497         (P_Type_Declaration): Mark as "abstract" the type declarations
25498         corresponding with protected, synchronized and task interfaces
25499         (P_Declarative_Items): "not" and "overriding" are overriding indicators
25500         for a subprogram or instance declaration.
25501
25502         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
25503         instantiation that is a dispatching operation has controlling access
25504         parameters that are null excluding.
25505         Save and restore Ada_Version_Explicit, for implementation of AI-362
25506         (Validate_Derived_Type_Instance): Add check for abstract interface
25507         types.
25508         (Analyze_Formal_Package): Establish Instantiation source for the copy of
25509         the generic that is created to represent the formal package.
25510         (Analyze_Package_Instantiation): Instantiate body immediately if the
25511         package is a predefined unit that contains inlined subprograms, and
25512         we are compiling for a Configurable_Run_Time.
25513         (Instantiate_Formal_Subprogram): Indicate that null default subprogram
25514         If the program has a null default, generate an empty body for it.
25515
25516         * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
25517         error message condition, null procedures are correctly detected now.
25518         (New_Overloaded_Entity): Bypass trivial overriding indicator check
25519         for subprograms in the context of protected types. Instead, the
25520         indicator is examined in Sem_Ch9 while analysing the subprogram
25521         declaration.
25522         (Check_Overriding_Indicator): Check consistency of overriding indicator
25523         on subprogram stubs as well.
25524         (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
25525         the library level.
25526         (Analize_Subprogram_Specification): When analyzing a subprogram in which
25527         the type of the first formal is a concurrent type, replace this type
25528         by the corresponding record type.
25529         (Analyze_Subprogram_Body): Undo the previous work.
25530         (Analyze_Procedure_Call): If the call has the form Object.Op, the
25531         analysis of the prefix ends up analyzing the call itself, after which
25532         we are done.
25533         (Has_Interface_Formals): New subprogram subsidiary to analyze
25534         subprogram_specification that returns true if some non
25535         class-wide interface subprogram is found
25536         (New_Overloaded_Entity): Modified to give support to abstract
25537         interface types
25538         (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
25539         access to subprograms must be recursive.
25540         (Is_Unchecked_Conversion): Improve the test that recognizes
25541         instantiations of Unchecked_Conversion, and allows them in bodies that
25542         are to be inlined by the front-end. When the body comes from an
25543         instantiation, a reference to Unchecked_Conversion will be an
25544         Expanded_Name, even though the body has not been analyzed yet.
25545         Replace Is_Overriding and Not_Overriding in subprogram_indication with
25546         Must_Override and Must_Not_Override, to better express intent of AI.
25547         (Analyze_Subprogram_Body): If an overriding indicator is given, check
25548         that it is consistent with the overrinding status of the subprogram
25549         at this point.
25550         (Analyze_Subprogram_Declaration): Indicate that a null procedure is
25551         always inlined.
25552         If the subprogram is a null procedure, indicate that it does not need
25553         a completion.
25554
25555         * sem_disp.adb (Check_Controlling_Type): Give support to entities
25556         available through limited-with clauses.
25557         (Check_Dispatching_Operation): A stub acts like a body, and therefore is
25558         allowed as the last primitive of a tagged type if it has no previous
25559         spec.
25560         (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
25561         to give support to abstract interface types
25562
25563         * sem_res.adb (Valid_Conversion): Perform an accessibility level check
25564         in the case where the target type is an anonymous access type of an
25565         object or component (that is, when Is_Local_Anonymous_Access is true).
25566         Prevent the special checks for conversions of access discriminants in
25567         the case where the discriminant belongs to a nonlimited type, since
25568         such discriminants have their accessibility level defined in the same
25569         way as a normal component of an anonymous access type.
25570         (Resolve_Allocator): When an allocator's designated type is a class-wide
25571         type, check that the accessibility level of type given in the
25572         allocator's expression or subtype indication is not statically deeper
25573         than the level of the allocator's access type.
25574         (Check_Discriminant_Use): Diagnose discriminant given by an expanded
25575         name in a discriminant constraint of a record component.
25576         (Resolve_Explicit_Dereference): Do not check whether the type is
25577         incomplete when the dereference is a use of an access discriminant in
25578         an initialization procedure.
25579         (Resolve_Type_Conversion): Handle conversions to abstract interface
25580         types.
25581         (Valid_Tagged_Conversion): The conversion of a tagged type to an
25582         abstract interface type is always valid.
25583         (Valid_Conversion): Modified to give support to abstract interface types
25584         (Resolve_Actuals): Enable full error reporting on view conversions
25585         between unrelated by_reference array types.
25586         The rule for view conversions of arrays with aliased components is
25587         weakened in Ada 2005.
25588         Call to obsolescent subprogram is now considered to be a violation of
25589         pragma Restrictions (No_Obsolescent_Features).
25590         (Check_Direct_Boolean_Operator): If the boolean operation has been
25591         constant-folded, there is nothing to check.
25592         (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
25593         check on possible violation of restriction No_Direct_Boolean_Operators
25594         until after expansion of operands, to prevent spurious errors when
25595         operation is constant-folded.
25596
25597         * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
25598         Has_Compatible_Type): Modified to give support to abstract interface
25599         types.
25600         (Interface_Present_In_Ancestor): New function to theck if some ancestor
25601         of a given type implements a given interface
25602
25603         * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
25604         prefix is a parameterless function that returns an access_to_procedure.
25605         (Transform_Object_Operation): Handle properly function calls of the
25606         form Obj.Op (X), which prior to analysis appear as indexed components.
25607         (Analyze_One_Call): Complete the error notification to help new Ada
25608         2005 users.
25609         (Analyze_Allocator): For an allocator without an initial value, where
25610         the designated type has a constrained partial view, a discriminant
25611         constraint is illegal.
25612
25613 2005-06-14  Robert Dewar  <dewar@adacore.com>
25614
25615         * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
25616         do with treatment of Set_Col when positioned at end of line character.
25617
25618 2005-06-14  Robert Dewar  <dewar@adacore.com>
25619
25620         * atree.adb: (Elist*): Protect against uninitialized field
25621
25622 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25623
25624         * checks.adb (Install_Null_Excluding_Check): Do not generate checks
25625         for an attribute reference that returns an access type.
25626         (Apply_Discriminant_Check): No need for check if (designated) type has
25627         constrained partial view.
25628
25629         (Apply_Float_Conversion_Check): Generate a short-circuit expression for
25630         both bound checks, rather than a conjunction.
25631         (Insert_Valid_Check): If the expression is an actual that is an indexed
25632         component of a bit-packed array, force expansion of the packed element
25633         reference, because it is specifically inhibited elsewhere.
25634
25635 2005-06-14  Vincent Celier  <celier@adacore.com>
25636
25637         * clean.adb (Clean_Project): Correctly delete executable specified as
25638         absolute path names.
25639
25640         * make.adb (Gnatmake): Allow relative executable path names with
25641         directory information even when project files are used.
25642         (Change_To_Object_Directory): Fail gracefully when unable to change
25643         current working directory to object directory of a project.
25644         (Gnatmake): Remove exception handler that could no longer be exercized
25645         (Compile_Sources.Compile): Use deep copies of arguments, as some of them
25646         may be deallocated by Normalize_Arguments.
25647         (Collect_Arguments): Eliminate empty arguments
25648
25649         * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
25650         and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
25651         (Check_Project): Return False when Project is No_Project. Return True
25652         when All_Projects is True.
25653         (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
25654         All_Projects to True.
25655         Minor reformatting
25656
25657 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25658             Javier Miranda  <miranda@adacore.com>
25659             Thomas Quinot  <quinot@adacore.com>
25660             Robert Dewar  <dewar@adacore.com>
25661             Hristian Kirtchev  <kirtchev@adacore.com>
25662             Gary Dismukes  <dismukes@adacore.com>
25663
25664         * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
25665         anonymous access types, to indicate that the accessibility level of
25666         the type is determined by that of the enclosing declaration.
25667         (Has_Persistent_BSS): New flag
25668         (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
25669         of this attribute with functions.
25670         (Is_Primitive_Wrapper): Remove the barrier.
25671         (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
25672         Has_Specified_Stream_Read, Has_Specified_Stream_Write):
25673         New subprograms.
25674         (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
25675         Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
25676         New subprograms.
25677         (Is_Pure_Unit_Access_Type): New flag
25678         (Abstract_Interfaces): Complete the assertion to cover all usages.
25679         (Set_Is_Interface): Complete the assertion to cover all usages.
25680         (Is_Primitive_Wrapper): New attribute.
25681         (Is_Obsolescent): Now applies to all entities (though it is only set
25682         for subprograms currently)
25683         New flag:  Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
25684         which solves various problems concerning access subtypes.
25685         (Has_Persistent_BSS): New flag
25686         (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
25687         Remove these subprograms because this attribute is currently
25688         not used.
25689         New entity flags:
25690         Has_Specified_Stream_Input (Flag190)
25691         Has_Specified_Stream_Output (Flag191)
25692         Has_Specified_Stream_Read (Flag192)
25693         Has_Specified_Stream_Write (Flag193)
25694         Present in all type and subtype entities. Set for a given view if the
25695         corresponding stream-oriented attribute has been defined by an
25696         attribute definition clause. When such a clause occurs, a TSS is set
25697         on the underlying full view; the flags are used to track visibility of
25698         the attribute definition clause for partial or incomplete views.
25699         (Is_Pure_Unit_Access_Type): New flag
25700         Clarify use of Is_Internal.
25701         (Is_Primitive_Wrapper): New attribute present in primitive subprograms
25702         internally generated to wrap the invocation of tasks and protected
25703         types that implement interfaces.
25704         (Implementation_Base_Type): Documentation correction
25705         (Is_Obsolescent): Now applies to all entities (though it is only set
25706         for subprograms currently)
25707         New flag:  Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
25708         which solves various problems concerning access subtypes.
25709
25710         * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
25711         for examined parameters. Identify unequal parameter list lengths as
25712         non-conformant parameters.
25713         (Overriding_Possible): Do not check for "All" qualifier in declaration
25714         of controlling access parameter, following prescription of AI-404.
25715         (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
25716         that build the procedure body that wraps an entry invocation
25717         (Build_Corresponding_Record, Build_Protected_Sub_Specification,
25718         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
25719         Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
25720         give support to abstract interface types
25721
25722         * freeze.adb (Freeze_Entity): Issue error message if
25723         Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
25724         type has no storage pool (Ada 2005) AI-366.
25725         Also modified to give support to abstract interface types
25726         (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
25727         Inline_Always pragma.
25728
25729         * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
25730         now begin an entry declaration.
25731         (P_Entry_Or_Subprogram_With_Indicator): New procedure in
25732         P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
25733         a subprogram declaration preceded by an overriding indicator.
25734         (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
25735         declarations or subprogram declarations preceded by reserved words
25736         "not" or "overriding".
25737         (P_Entry_Declaration): Update comment. Parse and check overriding
25738         indicator, set semantic flags of entry declarations.
25739         (P_Task): New error message in case of private applied
25740         to a task type declaration.
25741         (P_Protected): New error message in case of private applied
25742         to a task type declaration.
25743
25744         * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
25745         in which the full view of a type implementing an interface is a
25746         concurrent type.
25747         (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
25748         Declare_Inherited_Private_Subprograms): If an explicit operation
25749         overrides an operation that is inherited in the private part, mark the
25750         explicit one as overriding, to enable overriding indicator checks.
25751         (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
25752         full view to partial view, to simplify handling in back-end.
25753
25754         * sprint.adb: Print interface lists where needed: derived types,
25755         protected types, task types.
25756         output "is null" for null procedures. Part of implementation of
25757
25758         * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
25759         relaxation of rules for access types in pure, shared passive partitions.
25760
25761         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
25762         first read discriminants into temporary objects, performing checks on
25763         the read values, then possibly performing discriminant checks on the
25764         actual (if it is constrained), and only finally reading the components
25765         into a constrained temporary object.
25766         (Build_Elementary_Input_Call): Adjust the specific circuitry for the
25767         case of reading discriminants of a mutable record type to recognize
25768         the new form of the code generated by
25769         Build_Mutable_Record_Read_Procedure.
25770
25771         * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
25772         of a simple call to Make_TSS_Name.
25773         (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
25774         buffer, in order for Is_TSS to work correctly on local TSS names.
25775
25776         * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
25777         Is_Local_Anonymous_Access to check legaliy of attributes in the
25778         context of  access components and stand-alone access objects.
25779         (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
25780         treated as available for a limited private type if there is an
25781         attribute_definition_clause that applies to its full view, but not in
25782         other cases where the attribute is available for the full view
25783         (specifically, the sole fact that the full view is non-limited does not
25784         make the attribute available for the partial view).
25785         (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
25786         non-overloaded intrinsic subprogram.
25787         (Check_Stream_Attribute): Reject an attribute reference for an
25788         unavailable stream attribute even if the prefix is not a limited type
25789         (case of a 'Input attribute reference for an abstract, non-classwide
25790         type)
25791         (Stream_Attribute_Available): New function to determine whether a stream
25792         attribute is available at a place.
25793         (Check_Attribute): Use Stream_Attribute_Available instead of just
25794         testing for TSS presence on the implementation base type.
25795         (Analyze_Attribute): Modified to give support to task interfaces.
25796         (Analyze_Access_Attribute): Add error check for use of an Access (or
25797         Unrestricted_Access) attribute with a subprogram marked as
25798         Inline_Always.
25799         (Analyze_Attribute, case Attribute_Address): Add error check for use of
25800         an Address attribute with a subprogram marked as Inline_Always.
25801         Update Eval_Attribute to handle new value of Width from AI-395
25802
25803         * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
25804         (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
25805         Factor common code across the stream-oriented attribute circcuits into
25806         a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
25807         processing is functionally identical to the previous duplicated one,
25808         except that an expression that denotes an abstract subprogram will now
25809         be rejected, as mandated by AI-195 item 5.
25810
25811         * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
25812         Is_Local_Anonymous_Access to apply accessibility checks to access
25813         components and stand-alone access objects.
25814         (Has_Discriminant_Dependent_Constraint): Moved to spec for use
25815         elsewhere.
25816         (Is_Potentially_Persistent_Type): New function
25817         (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
25818         a heap-object whose type has a constrained partial view, the object is
25819         unconstrained and the component may depend on a discriminant, making its
25820         renaming illegal.
25821
25822         * sinfo.ads, sinfo.adb
25823         (Must_Not_Override): Flag applicable to N_Entry_Declaration.
25824         (Must_Override): Flag applicable to N_Entry_Declaration.
25825         Indicate that interface_list can appear in single task and single
25826         protected declarations.
25827         Replace Is_Overriding and Not_Overriding with Must_Override and
25828         Must_Not_Override, to better express intent of AI.
25829         Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
25830         of an overriding indicator in a subprogram or instance.
25831         Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
25832         Add the overriding indicator [[not] overriding] construct to the
25833         following grammar productions:
25834          ENTRY_DECLARATION
25835          GENERIC_INSTANTIATION
25836          SUBPROGRAM_SPECIFICATION
25837
25838         * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
25839         can start with an overriding indicator.
25840
25841         * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
25842         flags accordingly on subrogram specifications or instances.
25843
25844         * sem_ch8.adb:
25845         (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
25846         overriding_indicator, if present, is consistent with status of spec.
25847         Improve error message for null-excluding checks on controlling access
25848         parameters.
25849         (Check_In_Previous_With_Clause): Protect the frontend against
25850         previously reported critical errors in the context clauses.
25851         Save and restore Ada_Version_Explicit, for implementation of AI-362
25852         (Analyze_Subprogram_Renaming): If the new entity is a dispatching
25853         operation verify that controlling formals of the renamed entity that
25854         are access parameters are explicitly non-null.
25855         (Find_Expanded_Name): Improve error message when prefix is an illegal
25856         reference to a private child unit.
25857
25858         * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
25859         s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
25860         Rewrite to correspond to new wide character names in AI-395
25861
25862         * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
25863         default procedures.
25864
25865 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25866             Robert Dewar  <dewar@adacore.com>
25867
25868         * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
25869         code, not on the bodies of predefined operations, to cut down on
25870         spurious noise.
25871
25872 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25873
25874         * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
25875         be expanded in place. The size computation does not require a
25876         subtraction, which would raise an exception on a compiler built with
25877         assertions when the upper bound is Integer'first.
25878         (Flatten): For an array of composite components, take into account the
25879         size of the components to determine whether it is safe to expand the
25880         array into a purely positional representation.
25881
25882 2005-06-14  Thomas Quinot  <quinot@adacore.com>
25883
25884         * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
25885         denoting a formal parameter into account.
25886
25887 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25888
25889         * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
25890         the entry_call alternative of a conditional entry call, wrap the
25891         conditional entry call itself.
25892
25893 2005-06-14  Nicolas Setton  <setton@adacore.com>
25894             Ed Schonberg  <schonberg@adacore.com>
25895
25896         * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
25897         the "simple_choice" member in a variant record, in accordance with the
25898         description in the package spec: the information output for a constant
25899         should be "S number", not "SS number".
25900         (Get_Encoded_Name): Return at once if not generating code. Avoids name
25901         overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
25902
25903 2005-06-14  Thomas Quinot  <quinot@adacore.com>
25904
25905         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
25906         RACW without any primitives, do not generate the if statement for
25907         dispatching by name in the PolyORB/DSA case, as it would be malformed
25908         (it would have an Elsif_Parts list that is not No_List, but with a
25909         length of 0).
25910
25911 2005-06-14  Robert Dewar  <dewar@adacore.com>
25912
25913         * exp_intr.adb, par-ch5.adb: Minor fix to error message text
25914
25915 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
25916
25917         * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
25918         can determine whether pragma Suppress_Exception_Locations is in effect.
25919
25920         * utils2.c (build_call_raise): Do not pass the file name to the
25921         exception handler if pragma Suppress_Exception_Locations is in effect.
25922         (build_allocator): Add and process arg IGNORE_INIT_TYPE.
25923
25924 2005-06-14  Emmanuel Briot  <briot@adacore.com>
25925
25926         * g-debpoo.adb (Deallocate, Dereference): Improve output.
25927
25928 2005-06-14  Nicolas Roche  <roche@adacore.com>
25929
25930         * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
25931         to ""
25932         (Next_Level): Fix minor bug in handling of ../dir case
25933         (Read): Add dir separator to Directory name so that "" is understood as
25934          "/"
25935
25936 2005-06-14  Pascal Obry  <obry@adacore.com>
25937
25938         * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
25939         releasing the items.
25940
25941 2005-06-14  Vincent Celier  <celier@adacore.com>
25942             Cyrille Comar  <comar@adacore.com>
25943
25944         * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
25945         with output file descriptor and with output file name.
25946         (Dup, Dup2): Now global procedures as they are used by two subprograms
25947         (Copy): Allocate the 200K buffer on the heap rather than on the stack.
25948
25949 2005-06-14  Thomas Quinot  <quinot@adacore.com>
25950
25951         PR ada/6717
25952         * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
25953         broadcast address.
25954         (Create_Selector): Bind listening socket used to create the signalling
25955         socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
25956         Set listen backlog to 1 to ensure that we detect socket theft by a
25957         failure of our own connect(2) call.
25958         (Check_Selector): Improve documentation of the selector mechanism.
25959         (Broadcast_Inet_Addr): New constant.
25960
25961 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
25962
25963         * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
25964         type which turns out to be an incomplete and incorrect fix.
25965         (Layout_Array_Type): Use Underlying_Type when checking whether the scope
25966         of the type is declared in a record (for determination of insertion
25967         type).
25968         (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
25969         a private type and ensure that the primary entity is used for the type
25970         of the newly created function's V formal by taking the Etype of the
25971         view.
25972
25973 2005-06-14  Javier Miranda  <miranda@adacore.com>
25974             Jose Ruiz  <ruiz@adacore.com>
25975             Robert Dewar  <dewar@adacore.com>
25976             Ed Schonberg  <schonberg@adacore.com>
25977
25978         * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
25979         that indicates if we are parsing a compilation unit found in a
25980         limited-with clause.
25981         It is use to avoid the circularity check.
25982
25983         * par.ads, par.adb (Par): Addition of a new parameter to indicate if
25984         we are parsing a compilation unit found in a limited-with clause. This
25985         is use to avoid the circularity check.
25986
25987         * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
25988         unit as a consequence of parsing a limited-with clause. This is used
25989         to avoid the circularity check.
25990
25991         * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
25992         (Analyze_Context): Limited-with clauses are now allowed
25993         in more compilation units.
25994         (Analyze_Subunit_Context, Check_Parent): Protect the frontend
25995         againts previously reported critical errors in context clauses
25996         (Install_Limited_Withed_Unit): Code cleanup plus static detection
25997         of two further errors: renamed subprograms and renamed packages
25998         are not allowed in limited with clauses.
25999         (Install_Siblings): Do not install private_with_clauses on the package
26000         declaration for a non-private child unit.
26001         (Re_Install_Parents): When a parent of the subunit is reinstalled,
26002         reset visibility of child units properly.
26003         (Install_Withed_Unit): When a child unit appears in a with_clause of its
26004         parent, it is immediately visible.
26005
26006 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
26007             Emmanuel Briot  <briot@adacore.com>
26008
26009         * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
26010         declared within an inlined body as referenced, to prevent spurious
26011         warnings.
26012         (Output_One_Ref): If an entity renames an array component, indicate in
26013         the ALI file that this aliases (renames) the array. Capture as well
26014         function renamings that rename predefined operations.
26015         Add information about generic parent for package and subprogram
26016         instances.
26017         (Get_Type_Reference): For a subtype that is the renaming of an actual in
26018         an instantiation, use the first_subtype to ensure that we don't generate
26019         cross-reference information for internal types.
26020         For objects and parameters of a generic private type, retain the '*'
26021         indicator to distinguish such an entity from its type.
26022
26023         * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
26024         to store information about instantiated entities.
26025
26026         * ali.adb (Scan_ALI): Add support for parsing the reference to the
26027         generic parent
26028
26029         * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
26030         (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
26031         information.
26032
26033 2005-06-10  Doug Rupp  <rupp@adacore.com>
26034             Arnaud Charlet  <charlet@adacore.com>
26035             Olivier Hainque  <hainque@adacore.com>
26036             Jose Ruiz  <ruiz@adacore.com>
26037
26038         * Make-lang.in: Add initialize.o when needed.
26039         Remove obsolete references to RT_FLAGS.
26040         Add missing dependencies for sdefault.o
26041
26042         * initialize.c: New file.
26043
26044         * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
26045         [VMS] cond_signal_table: Fix problem in declaration.
26046         [VMS] __gnat_error_handler: rewrite.
26047         Move all __gnat_initialize() routines to initialize.c
26048         Specialize the former "hpux" section to "hppa hpux", as this is what the
26049         section really is here for and we now have other hpux ports that need
26050         different contents.
26051         (__gnat_adjust_context_for_raise) i386-linux: First version of this
26052         function for this target. Adjust PC by one in the machine context. This
26053         adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
26054         it is more reliable to do that in the signal handler itself.
26055         (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
26056         flags, so that the handler is passed the context structure to adjust
26057         prior to the raise.
26058         (__gnat_error_handler) i386-linux: Adjust the signature to match what a
26059         SA_SIGINFO sigaction should look like. Call
26060         __gnat_adjust_context_for_raise before actually raising. Cleanup unused
26061         Machine_State_Operations stuff.
26062         Add conditional code so that the x86_64 is also supported.
26063
26064 2005-06-14  Pascal Obry  <obry@adacore.com>
26065
26066         * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
26067         the library name.
26068
26069 2005-06-14  Robert Dewar  <dewar@adacore.com>
26070
26071         * opt.ads, opt.adb: New flags for persistent_bss mode
26072         Add Ada_Version_Explicit, for implementation of AI-362
26073         Add Assertions_Enabled_Config and associated handling
26074         Needed since setting can be changed with Assertion_Policy pragma
26075         Add new flag Warn_On_Ada_2005_Compatibility
26076
26077         * switch-c.adb: Recognize -gnatwy/Y
26078         Set Ada_Version_Explicit, for implementation of AI-362
26079         The -gnatg switch now includes -gnatyu
26080
26081         * usage.adb: Add -gnatwy/Y
26082         Remove wrong asterisk on -gnatwX line
26083         Add line for -gnatyu switch
26084
26085 2005-06-14  Vincent Celier  <celier@adacore.com>
26086
26087         * osint.adb (Add_Default_Search_Dirs): Put source and object
26088         directories of project files before directories coming from
26089         ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
26090
26091 2005-06-14  Robert Dewar  <dewar@adacore.com>
26092
26093         PR ada/15613
26094         * par-ch2.adb (Scan_Pragma_Argument): New procedure
26095         (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
26096
26097 2005-06-14  Vincent Celier  <celier@adacore.com>
26098
26099         * prep.adb (Preprocess): Ignore error when scanning the first token of
26100         a line.
26101
26102 2005-06-14  Vincent Celier  <celier@adacore.com>
26103
26104         * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
26105         (Check_Stand_Alone_Library): If the specified reference symbol file does
26106         not exist, only issue a warning when the symbol policy is not
26107         Controlled. And, when symbol policy is Compliant, set the symbol
26108         policy to Autonomous.
26109
26110 2005-06-14  Vincent Celier  <celier@adacore.com>
26111
26112         * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
26113         when the project file in a with clause is not the last one, that is the
26114         project file name is followed by a comma.
26115         * prj-pp.adb: (First_With_In_List): New Boolean global variable
26116         (Print): Issue list of project files separated by commas in with clauses
26117         according to the values returned by Is_Not_Last_In_List.
26118         * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
26119         (Set_Is_Not_Last_In_List): New procedure
26120
26121 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
26122
26123         * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
26124
26125 2005-06-14  Robert Dewar  <dewar@adacore.com>
26126
26127         * scng.adb: Add call to new Check_EOF routine
26128         (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
26129         Add some comments regarding wide character handling
26130
26131         * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
26132
26133         * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
26134
26135         * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
26136         characters are now considered graphic characters and hence yield false
26137         in this call.
26138
26139         * nmake.adt: Modify header so that xnmake does not generate output
26140         files with multiple blank lines.
26141
26142         * treeprs.adt: Remove a blank line so that output from xtreeprs does
26143         not have an extra blank line
26144
26145 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
26146
26147         * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
26148         expression when the component type is an anonymous access type to
26149         ensure that appropriate accessibility checks are done.
26150
26151         * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
26152         expression of an assignment when the target object is of an anonymous
26153         access type. This ensures that required accessibility checks are done.
26154         (One_Bound): Move the check for type Universal_Integer to
26155         Process_Bounds.
26156         (Process_Bounds): Check whether the type of the preanalyzed range is
26157         Universal_Integer, and in that case set Typ to Integer_Type prior
26158         to setting the type of the original range and the calls to One_Bound.
26159
26160 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
26161
26162         * sem_case.adb (Expand_Others_Choice): Improve warning.
26163
26164 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
26165
26166         * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
26167         constraint of full view if present, when other type is discriminated.
26168         (Eval_Relational_Op): Recognize tests of pointer values against Null,
26169         when the pointer is known to be non-null, and emit appropriate warning.
26170
26171 2005-06-14  Robert Dewar  <dewar@adacore.com>
26172             Ed Schonberg  <schonberg@adacore.com>
26173
26174         PR ada/10671
26175         * sem_prag.adb: Implement pragma Persistent_BSS
26176         Remove obsolete pragma Persistent_Data, Persistent_Object
26177         Set Ada_Version_Explicit, for implementation of AI-362
26178         Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
26179         Add processing for pragma Pure_05 and Preelaborate_05
26180         Add processing for Assertion_Policy pragma
26181         Add pragma identifiers for Assert
26182         (Analyze_Pragma, case Assert): Check number of arguments
26183         (Process_Inline): Additional guard against an illegal program, where the
26184         argument of the pragma is undefined, and warnings on redundant
26185         constructs are enabled.
26186         (Analyze_Pragma, case Obsolescent): Allow an optional second argument
26187         Ada_05 to this pragma, specifying that the pragma is only active in
26188         Ada_05 mode.
26189         (Check_Arg_Order): New procedure
26190         Add appropriate calls to this procedure throughout
26191         Also throughout, check entity name before doing any other checks
26192
26193         * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
26194         Remove obsolete pragma Persistent_Data, Persistent_Object
26195         Add entries for pragma Pure_05 and Preelaborate_05
26196         Add entries for Assertion_Policy pragma and associated names
26197         Add some names for pragma argument processing
26198
26199         * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
26200
26201 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
26202
26203         * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
26204         appears within a negation (either from source or as a rewriting of
26205         inequality) adjust text of warning accordingly.
26206
26207 2005-06-14  Thomas Quinot  <quinot@adacore.com>
26208
26209         * s-strxdr.adb: Follow AI95-00132
26210
26211 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
26212
26213         * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
26214
26215 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
26216             Jose Ruiz  <ruiz@adacore.com>
26217
26218         * s-tposen.adb, s-tpobop.adb
26219         (Exceptional_Complete_Rendezvous): Save the occurrence and not only
26220         the exception id.
26221         (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
26222         there is no violation of the Max_Entry_Queue_Length restriction (if it
26223         has been set); Program_Error is raised otherwise.
26224         (Requeue_Call): Before requeuing the task on the target entry queue we
26225         check that there is no violation of the Max_Entry_Queue_Length
26226         restriction (if it has been set); Program_Error is raised otherwise.
26227
26228 2005-06-14  Robert Dewar  <dewar@adacore.com>
26229
26230         * styleg.adb: Fix several remaining problems in -gnatyu switch
26231         Blank line count not reset at start
26232         Scanning outside source buffer in some cases
26233         Confusing message for blanks at end of file
26234         Non-empty blank lines not recognized
26235
26236         * nmake.adt: Modify header so that xnmake does not generate output
26237         files with multiple blank lines.
26238
26239         * treeprs.adt: Remove a blank line so that output from xtreeprs does
26240         not have an extra blank line
26241
26242 2005-06-14  Sergey Rybin  <rybin@adacore.com>
26243
26244         * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
26245
26246 2005-06-14  Doug Rupp  <rupp@adacore.com>
26247             Vincent Celier  <celier@adacore.com>
26248
26249         * vms_conv.ads, vms_conv.adb: Remove "Library" command.
26250         Update copyright.
26251
26252         * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
26253         Remove "Library" command.
26254         Change keyword for style check -gnatyd from NOCRLF to
26255         DOS_LINE_ENDINGS.
26256         Remove useless second style check keyword NONE
26257         Remove help documentation for inexistent style check keyword
26258         RM_COLUMN_LAYOUT.
26259         Add help documentation for style check keywords DOS_LINE_ENDINGS,
26260         UNNECESSARY_BLANK_LINES and XTRA_PARENS
26261         Add UNNECESSARY_BLANK_LINES for -gnatyu
26262         Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
26263
26264         * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
26265
26266 2005-06-14  Vincent Celier  <celier@adacore.com>
26267
26268         * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
26269         gprmake was invoked with -d.
26270         (Compile_Sources): If -d was used, output the "completed ..." message
26271         for each compilation.
26272         (Scan_Arg): Recognize new switch -d
26273         When -c and at least one main is specified, set
26274         Unique_Compile to True to guarantee that no other sources will be
26275         compiled.
26276
26277 2005-06-14  Matthew Heaney  <heaney@adacore.com>
26278
26279         * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
26280         * a-swuwha.ads, a-swuwha.adb: New files
26281
26282         * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
26283         * a-szuzha.ads, a-szuzha.adb: New files.
26284
26285         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
26286         a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
26287         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
26288         a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
26289         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
26290         a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
26291         a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
26292         a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
26293         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
26294         a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
26295         Ada 2005 RM.
26296
26297 2005-06-10  Eric Botcazou  <ebotcazou@adacore.com>
26298             Olivier Hainque  <hainque@adacore.com>
26299             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26300             Pascal Obry  <obry@adacore.com>
26301
26302         * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
26303
26304         * trans.c (call_to_gnu): Issue a warning for users of Starlet when
26305         making a temporary around a procedure call because of non-addressable
26306         actual parameter.
26307         (process_freeze_entity): If entity is a private type, capture size
26308         information that may have been computed for the full view.
26309         (tree_transform, case N_Allocator): If have initializing expression,
26310         check type for Has_Constrained_Partial_View and pass that to
26311         build_allocator.
26312         (tree_transform, case N_Return_Statement): Pass extra arg to
26313         build_allocator.
26314
26315         * decl.c (annotate_value): Remove early return if -gnatR is not
26316         specified.
26317         (gnat_to_gnu_field): Don't make a packable type for a component clause
26318         if the position is byte aligned, the field is aliased, and the clause
26319         size isn't a multiple of the packable alignment. It serves no useful
26320         purpose packing-wise and would be rejected later on.
26321         (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
26322
26323         PR ada/20515
26324         (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
26325         context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
26326         instead.
26327         (create_concat_name): Idem.
26328
26329 2005-06-10  Robert Dewar  <dewar@adacore.com>
26330             Eric Botcazou  <ebotcazou@adacore.com>
26331             Ben Brosgol  <brosgol@adacore.com>
26332             Cyrille Comar  <comar@adacore.com>
26333             Sergey Rybin  <rybin@adacore.com>
26334             Pascal Obry  <obry@adacore.com>
26335
26336         * gnat_rm.texi: Add documentation for pragma Persistent_BSS
26337         Document second argument (Ada_05) of pragma Obsolescent
26338         Add note that call to subprogram marked with pragma Obsolescent
26339         is now considered to be a violation of program Restrictions
26340         (No_Obsolescent_Features).
26341         (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
26342         that only machine-dependent attributes are supported.
26343
26344         * gnat_ugn.texi:
26345         Commented out menu lines and empty section for gnatclean examples
26346         Document -gnatwy/Y
26347         Fix some over long lines
26348         Clarify and enhance documentation of ADA_PROJECT_PATH.
26349         Rework section 2.11.2(3) about linking with a non-GNU compiler.
26350         Mention new switch -fcallgraph-info.
26351         Mention new switch -fstack-usage.
26352         For gnatpp, replace '-notab' with '-N' and add this option to Index
26353         Corrected VMS example.
26354         VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
26355         Minor reformatting
26356         Add documentation for -gnatyu switch (unnecessary blank lines)
26357         Document new switch -U for GNAT PRETTY and GNAT METRIC
26358         Add note about Stdcall being handled as C convention on non Windows OS.
26359         Remove some junk typo in description of gnatbind -S switch
26360         Remove reference to Extensions_Allowed pragma
26361         Document the new order of the directories to be searched (source and
26362         object directories of project files before directories in ADA_*_PATH
26363         environment variables.
26364
26365         * g-trasym.ads: Document that IRIX is supported
26366
26367 2005-06-10  Arnaud Charlet  <charlet@adacore.com>
26368
26369         * Makefile.in: Add initialize.o when needed.
26370         Adapt to new VMS package body Symbols and subunits
26371         No specialized version of a-sytaco is needed for VxWorks.
26372
26373         * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
26374         * a-zchara.ads, a-widcha.ads: New files.
26375
26376         * system-hpux-ia64.ads: New file.
26377
26378         * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
26379         is imported from the VxWorks kernel.
26380
26381 2005-06-14  Robert Dewar  <dewar@adacore.com>
26382
26383         * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
26384         fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
26385         a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
26386         s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
26387         a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
26388         g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
26389         i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
26390         namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
26391         sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
26392         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
26393         s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
26394         xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
26395
26396 2005-06-14  Thomas Quinot  <quinot@adacore.com>
26397
26398         * xeinfo.adb: Fix typo in comment
26399
26400 2005-06-14  Javier Miranda  <miranda@adacore.com>
26401
26402         * repinfo.ads: Fix typo in comment
26403
26404 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
26405
26406         * s-finimp.adb (Parent_Tag): Delete this imported function (function
26407         Parent_Tag is now in the visible part of Ada.Tags).
26408         (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
26409         using imported function.
26410
26411 2005-06-14  Bernard Banner  <banner@adacore.com>
26412
26413         * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
26414         also apply for handling support for VxSim 653.
26415
26416 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
26417
26418         * xsnames.adb: Add automatic generation of snames.h.
26419
26420 2005-06-14  Thomas Quinot  <quinot@adacore.com>
26421
26422         * gen-soccon.c: Add IP_MULTICAST_IF constant
26423         Minor reformatting and adjustments to prevent warnings.
26424
26425 2005-06-14  Pascal Obry  <obry@adacore.com>
26426
26427         * seh_init.c: Do not include <sys/stat.h>. This is not needed.
26428
26429 2005-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
26430
26431         * trans.c (gnat_gimplify_expr): Call
26432         recompute_tree_invarant_for_addr_expr when we change
26433         the operand of the ADDR_EXPR.
26434
26435 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26436
26437         * misc.c: Don't include errors.h.
26438
26439 2005-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26440
26441         * raise.c (db): Add ATTRIBUTE_PRINTF_2.
26442
26443 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
26444
26445         * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
26446         comment typos.
26447         * gnat_rm.texi, gnat_ugn.texi: Fix typos.
26448
26449 2005-05-16  Nathanael Nerode  <neroden@gcc.gnu.org>
26450
26451         PR ada/20270
26452         * Makefile.in: Make TGT_LIB behave correctly.
26453
26454 2005-04-23  DJ Delorie  <dj@redhat.com>
26455
26456         * misc.c: Adjust warning() callers.
26457
26458 2005-04-16  Laurent Guerby  <laurent@guerby.net>
26459
26460         PR ada/18847
26461         * a-nudira.adb (Value): Check for valid string.
26462         * a-nuflra.adb (Value): Likewise.
26463
26464 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
26465
26466         * lang.opt: Refer to the GCC internals documentation instead of c.opt.
26467
26468 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
26469
26470         * adaint.c, init.c, tracebak.c: Fix comment typos.
26471         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
26472
26473 2005-04-07  Laurent Guerby  <laurent@guerby.net>
26474             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26475
26476         * Makefile.in: Add make ifeq define for hppa linux tasking support.
26477         * system-hpux.ads: Define Signed_Zeros to be True.
26478         * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
26479
26480 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
26481
26482         * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
26483         raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
26484         typos.
26485
26486 2005-03-30  Tom Tromey  <tromey@redhat.com>
26487
26488         * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
26489
26490 2005-03-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
26491
26492         * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
26493
26494 2005-03-29  Robert Dewar  <dewar@adacore.com>
26495
26496         * sem_res.adb (Resolve_Real_Literal): Generate warning if static
26497         fixed-point expression has value that is not a multiple of the Small
26498         value.
26499
26500         * opt.ads (Warn_On_Bad_Fixed_Value): New flag
26501
26502         * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
26503         nanoseconds.
26504
26505         * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
26506
26507 2005-03-29  Vincent Celier  <celier@adacore.com>
26508
26509         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
26510         (Build_Dynamic_Library.Version_String): Return the empty string when
26511         Lib_Version is empty or when the symbol policy is not Autonomous.
26512
26513         * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
26514         a symbol is not in the reference symbol file, increase the Major ID
26515         and set the Minor ID to 0.
26516         Use gsmatch=lequal instead of gsmatch=equal
26517
26518 2005-03-29  Doug Rupp  <rupp@adacore.com>
26519
26520         * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
26521         name and translate.
26522
26523 2005-03-29  Javier Miranda  <miranda@adacore.com>
26524
26525         * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
26526         (Inherit_DT): The first formal has been redefined as a Tag.
26527         This allows us the removal of the subprogram Get_TSD.
26528         (TSD): Replace the call to Get_TSD by the actual code.
26529
26530         * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
26531         (Make_DT): Upgrade the call to Inherit_TSD according to the
26532         new interface: the first formal is now a Tag.
26533
26534         * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
26535         redefined as a Tag.
26536         This change allows us to remove the subprogram Get_TSD.
26537         (CPP_Get_TSD): Subprogram removed.
26538         (TSD): Replace the call to CPP_Get_TSD by the actual code.
26539
26540         * rtsfind.ads: Remove support to call the run-time
26541         subprogram Get_TSD
26542
26543 2005-03-29  Robert Dewar  <dewar@adacore.com>
26544
26545         * errutil.adb, errout.adb:
26546         Minor comment updates on Line_Terminator references
26547
26548         * par-ch10.adb: Add ??? comment about line terminator
26549
26550         * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
26551         (check dos line terminator).
26552         (Check_Line_Max_Length): New procedure, split off from the existing
26553         Check_Line_Terminator routine. Separating this out allows -gnatyf to
26554         be properly recognized.
26555
26556         * styleg.adb: Add ??? comment for line terminator reference
26557
26558         * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
26559         (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
26560
26561         * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
26562         (check dos line terminator).
26563         (Check_Line_Max_Length): New procedure, split off from the existing
26564         Check_Line_Terminator routine. Separating this out allows -gnatyf to
26565         be properly recognized.
26566
26567         * stylesw.ads, stylesw.adb:
26568         Add handling for new -gnatyd switch (check dos line terminator)
26569
26570         * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
26571         Recognize -gnatwb/-gnatwB switches
26572         Include Warn_On_Bad_Fixed_Value for -gnatg
26573
26574         * usage.adb:
26575         Add line for new -gnatyd switch (check dos line terminator)
26576
26577         * usage.adb: Add lines for -gnatwb/-gnatwB
26578
26579         * vms_data.ads: Add entry for NOCRLF (-gnatyd)
26580
26581         * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
26582
26583         * gnat_ugn.texi: Fix overlong lines
26584         Document new -gnatyd switch
26585         Document new -gnatwb/-gnatwB switches
26586
26587 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
26588
26589         * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
26590         order to retrieve the component list of the type, before examining
26591         individual components.
26592
26593         * sem_type.adb (Covers): Types are compatible if one is the base type
26594         of the other, even though their base types might differ when private
26595         views are involved.
26596
26597 2005-03-29  Thomas Quinot  <quinot@adacore.com>
26598
26599         * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
26600         To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
26601         of using Set_Renaming_TSS. This ensures that the TSS bodies are not
26602         analyzed if expansion is disabled (which could otherwise cause spurious
26603         error messages if expansion has been disabled due to previous
26604         (unrelated) errors).
26605
26606         * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
26607         is disabled, the entity denoted by the argument is the access type
26608         itself, not an underlying record type, so there is no need to go back
26609         to the Corresponding_Remote_Type.
26610
26611 2005-03-29  Gary Dismukes  <dismukes@adacore.com>
26612             Robert Dewar  <dewar@adacore.com>
26613
26614         * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
26615         expand a call to an instance of
26616         Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
26617         Constructor actual of the instance. A class-wide membership
26618         check is also generated, to ensure that the tag passed to the instance
26619         denotes a type in the class.
26620         (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
26621         of Name_Generic_Dispatching_Constructor.
26622
26623         * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
26624         05 unit for AI-260-02).
26625
26626         * a-tgdico.ads: New file.
26627
26628         * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
26629         predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
26630
26631         * snames.ads, snames.adb (Preset_Names): Add entry for
26632         Generic_Dispatching_Constructor.
26633
26634         PR ada/20300
26635         * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
26636         character type cases.
26637         (Analyze_Subprogram_Renaming): Add special handling for
26638         the case of renaming of stream attributes when the renaming denotes a
26639         generic formal subprogram association for an abstract formal subprogram.
26640         Check that the attribute is a primitive stream attribute (and not
26641         a class-wide stream attribute) and then rewrite the attribute name
26642         as the name of the appropriate compiler-generated stream primitive.
26643
26644 2005-03-29  Robert Dewar  <dewar@adacore.com>
26645
26646         * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
26647         recursive calls.
26648         (Is_Possibly_Unaligned_Object): Correct typo that
26649         resulted in inaccurate result for unaligned scalars within records.
26650
26651 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
26652
26653         * freeze.adb (Freeze_Record_Type): If the type of the component is an
26654         itype whose parent is controlled and not yet frozen, do not create a
26655         freeze node for the itype if expansion is disabled.
26656
26657 2005-03-29  Vincent Celier  <celier@adacore.com>
26658
26659         * make.adb (Gnatmake): Don't fail if the main project file is declared
26660         as having no Ada sources. Do not display message "no sources to
26661         compile" in quiet output.
26662
26663 2005-03-29  Doug Rupp  <rupp@adacore.com>
26664
26665         * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
26666         extra tools.
26667
26668 2005-03-29  Robert Dewar  <dewar@adacore.com>
26669
26670         * par-ch12.adb (P_Generic): Give better msg for illegal private generic
26671         child.
26672
26673 2005-03-29  Robert Dewar  <dewar@adacore.com>
26674
26675         * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
26676         missing TYPE Improve the error message generated when compiling a
26677         limited interface in Ada83 or Ada95 mode.
26678
26679 2005-03-29  Robert Dewar  <dewar@adacore.com>
26680
26681         * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
26682         rather than proceed ahead using a junk attribute name.
26683
26684 2005-03-29  Vincent Celier  <celier@adacore.com>
26685
26686         * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
26687
26688         * prj-part.adb (Parse_Single_Project): Set the location of a project
26689         on its defining identifier, rather than on the reserved word "project".
26690
26691         * prj-proc.adb (Expression): Adapt to the fact that default of external
26692         references may be string expressions, not always literal strings.
26693         (Recursive_Process): Set Display_Name equal to Name
26694         when Location is No_Location, that is when there is no actual file.
26695         Get the Display_Name of the project from the source, when it is not a
26696         virtual project.
26697         (Process): Use the Display_Name in error messages
26698
26699         * prj-strt.adb (External_Reference): Allow default to be string
26700         expressions, not only literal strings.
26701
26702 2005-03-29  Vincent Celier  <celier@adacore.com>
26703
26704         * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
26705         file and the reference symbol file to be the same file.
26706
26707 2005-03-29  Thomas Quinot  <quinot@adacore.com>
26708
26709         * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
26710         forbid conversion of a local access-to-subprogram type to a remote one.
26711
26712         * sem_util.adb (Wrong_Type): For a record type that is the expanded
26713         equivalent type for a remote access-to-subprogram type, go back to the
26714         original RAS entity when displaying an error message, so the casing is
26715         the original source casing.
26716
26717 2005-03-29  Robert Dewar  <dewar@adacore.com>
26718
26719         * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
26720         on param update.
26721
26722 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
26723
26724         * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
26725         subtype if code is being pre-analyzed, to prevent un-expanded
26726         references to protected formals, among others.
26727         (Analyze_Explicit_Dereference): If the overloaded prefix includes some
26728         interpretation that can be a call, include the result of the call as a
26729         possible interpretation of the dereference.
26730
26731         * sem_ch5.adb (Process_Bounds): Determine type of range by
26732         pre-analyzing a copy of the original range, and then analyze the range
26733         with the expected type.
26734
26735         * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
26736         with an overloaded prefix where not all interpretations yield an
26737         access to subprogram, do not rewrite node as a call.
26738         (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
26739         the node as a call once the context identifies the interpretation of
26740         the prefix whose call yields the context type.
26741         (Valid_Conversion): For the case of a conversion between
26742         local access-to-subprogram types, check subtype conformance using
26743         Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
26744         detailed error message.
26745
26746 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
26747
26748         * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
26749         indicator, indicate that the formal can never be null.
26750         (Process_Formals): If a formal has a non_null indicator, insert the
26751         resulting subtype immediately before the enclosing subprogram decl,
26752         and not at the beginning of the corresponding declarative part, to
26753         prevent access before elaboration (Ada2005).
26754
26755 2005-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26756
26757         PR ada/19956
26758         * utils.c (finish_record_type): Use variable_size when setting sizes.
26759
26760 2005-03-29  Robert Dewar  <dewar@adacore.com>
26761
26762         * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
26763         guarantee Unix style line terminators for the output files, even when
26764         running on windows.
26765
26766 2005-03-29  Robert Dewar  <dewar@adacore.com>
26767
26768         * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
26769         buffer if an exception is raised.
26770
26771 2005-03-29  Ed Falis  <falis@adacore.com>
26772
26773         * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
26774         VxWorks 653 1.4
26775
26776 2005-03-29  Robert Dewar  <dewar@adacore.com>
26777
26778         * sem_util.ads: Minor reformatting
26779         * gnat_rm.texi: Minor editing.
26780
26781 2005-03-29  Eric Botcazou  <ebotcazou@adacore.com>
26782
26783         * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
26784         * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
26785
26786 2005-03-24  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
26787
26788         * adaint.c (__gnat_portable_spawn): Adjust cast.
26789
26790 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
26791
26792         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
26793
26794 2005-03-17  Pascal Obry  <obry@adacore.com>
26795
26796         * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
26797         used.
26798
26799         * expect.c (__gnat_waitpid): Moved here from adaint.c.
26800         Reimplement under Win32 using Win32 API.
26801
26802         (__gnat_kill) [Win32]: Properly close the process handle before leaving
26803         this routine.
26804
26805 2005-03-17  Eric Botcazou  <ebotcazou@adacore.com>
26806
26807         * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
26808         (DECL_RENAMED_OBJECT): New accessor macro.
26809         (SET_DECL_RENAMED_OBJECT): New setter macro.
26810
26811         * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
26812         object in all cases.  Attach the renamed object to the VAR_DECL.
26813         (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
26814         field is not prescribed.
26815
26816         * misc.c (gnat_handle_option): Handle -gnatO separately.
26817         (gnat_print_decl) <VAR_DECL>: New case.
26818         Print the DECL_RENAMED_OBJECT node.
26819
26820         * lang.opt:  Declare separate -gnatO option.
26821
26822         * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
26823         pointer, replace it with the renamed object.
26824         <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
26825         pointer type if the source is not a fat pointer type whose underlying
26826         array has the same non-zero alias set as that of the destination array.
26827
26828 2005-03-17  Javier Miranda  <miranda@adacore.com>
26829
26830         * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
26831         (Get_Inheritance_Depth): Removed.
26832         (Set_Inheritance_Depth): Removed.
26833
26834         * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
26835         subprogram Get_Expanded_Name because it is not referenced by the
26836         frontend.
26837
26838         * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
26839         (CPP_Get_Inheritance_Depth): Removed.
26840         (CPP_Set_Inheritance_Depth): Removed.
26841
26842         * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
26843
26844 2005-03-17  Robert Dewar  <dewar@adacore.com>
26845
26846         * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
26847         3, since we now expect GCC 3 to do all the work.
26848
26849 2005-03-17  Javier Miranda  <miranda@adacore.com>
26850
26851         * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
26852         of one barrier to avoid wrong usage of this attribute.
26853
26854         * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
26855         First_Private_Entity.
26856
26857         * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
26858         the subprogram against wrong usage.
26859         Adapt the code to traverse the entities in the
26860         scope of a record_type because in addition to its usage regarding
26861         packages, this subprogram is also called by Expand_N_Freeze_Entity
26862         to install the visible declarations of the enclosing scope of a
26863         record_type_with_private to establish the proper visibility before
26864         freezing the entity and related subprograms.
26865
26866 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
26867
26868         * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
26869         entry formals.
26870
26871 2005-03-17  Thomas Quinot  <quinot@adacore.com>
26872
26873         * exp_ch3.adb (Check_Attr): New subprogram.
26874         (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
26875         into a new Check_Attr subprogram, in order to provide a more
26876         explanatory error message (including the name of the missing attribute).
26877         (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
26878         subprogram determines whether a default implementation exists for a
26879         given stream attribute.
26880         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
26881         Determine whether to generate a default implementation for each stream
26882         attribute separately, as this depends on the specific attribute.
26883
26884         * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
26885         limited extension where a stream attribute is missing for a limited
26886         component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
26887         generate a bogus reference to the missing attribute to prevent
26888         cascaded errors. Instead, generate a null statement.
26889
26890         * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
26891         available for a limited type if it has been specified for an ancestor
26892         of the type.
26893
26894 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
26895
26896         * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
26897         entity is an operator.
26898
26899 2005-03-17  Thomas Quinot  <quinot@adacore.com>
26900
26901         * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
26902         spec, to make this predicate available to other units.
26903
26904         * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
26905         reimplementing it.
26906
26907         * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
26908         when no distribution runtime library is available.
26909
26910         * sem_res.adb, sem_dist.adb: Disable expansion of remote
26911         access-to-subprogram types when no distribution runtime library is
26912         available.
26913         (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
26914         predicate available to other units.
26915
26916         * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
26917         spec, to make this predicate available to other units.
26918
26919 2005-03-17  Vincent Celier  <celier@adacore.com>
26920
26921         * make.adb (Insert_Project_Sources): Make sure the Q is always
26922         initialized.
26923
26924         * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
26925         the default for the tree, not the global default naming.
26926
26927         * prj-proc.adb (Recursive_Process): No need to put the default naming
26928         in the project data, it's already there.
26929
26930 2005-03-17  Doug Rupp  <rupp@adacore.com>
26931
26932         * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
26933
26934         * 5xcrtl.ads: Renamed to...
26935         * s-crtl-vms64.ads: ...this new file
26936
26937 2005-03-17  Robert Dewar  <dewar@adacore.com>
26938
26939         PR ada/19519
26940         * namet.adb (Copy_One_Character): Set proper wide character encoding
26941         for upper half character if we have upper half encoding.
26942
26943 2005-03-17  Robert Dewar  <dewar@adacore.com>
26944
26945         * par.adb (Par): Improved msg for attempt to recompile predefined unit
26946
26947 2005-03-17  Thomas Quinot  <quinot@adacore.com>
26948
26949         * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
26950         tagged limited type, the TSS is a newly built renaming declaration:
26951         insert it using Set_TSS, not Copy_TSS.
26952
26953 2005-03-17  Javier Miranda  <miranda@adacore.com>
26954
26955         * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
26956         Try_Object_Operation): Analyze the object that is accessible
26957         through the prefix of the subprogram call before we apply
26958         the transformation of the object-operation notation.
26959
26960 2005-03-17  Jose Ruiz  <ruiz@adacore.com>
26961
26962         * s-taprob.adb (Initialize_Protection): Initialize the protected
26963         object's owner to Null_Task.
26964         (Lock): If pragma Detect_Blocking is in effect and the caller of this
26965         procedure is already the protected object's owner then Program_Error
26966         is raised. In addition the protected object's owner is updated.
26967         (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
26968         of this procedure is already the protected object's owner then
26969         Program_Error is raised.
26970         In addition the protected object's owner is updated.
26971         (Unlock): Remove the ownership of the protected object.
26972
26973         * s-taprob.ads (Protection): Add the field Owner, used to store the
26974         protected object's owner.
26975         This component is needed for detecting one type of potentially blocking
26976         operations (external calls on a protected subprogram with the same
26977         target object as that of the protected action). Document the rest of
26978         the components.
26979
26980         * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
26981         Initialize the protected object's owner to Null_Task.
26982         (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
26983         caller of this procedure is already the protected object's owner then
26984         Program_Error is raised.
26985         Do not raise Program_Error when this procedure is called from a
26986         protected action.
26987         (Unlock_Entries): Remove the ownership of the protected object.
26988         (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
26989         of this procedure is already the protected object's owner then
26990         Program_Error is raised.
26991         Do not raise Program_Error when this procedure is called from
26992         a protected action.
26993
26994         * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
26995         used to store the protected object's owner.
26996
26997         * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
26998         effect and this procedure (a potentially blocking operation) is called
26999         from whithin a protected action, Program_Error is raised.
27000         (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
27001         and this procedure (a potentially blocking operation) is called from
27002         whithin a protected action, Program_Error is raised.
27003
27004 2005-03-17  Vincent Celier  <celier@adacore.com>
27005             Nicolas Setton  <setton@adacore.com>
27006
27007         * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
27008         switch, not supported by the linker on Darwin. Add '_' before
27009         <library>init, as this character is added unconditionally by the
27010         compiler.
27011         (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
27012         correct one ".dylib". This fixes detection of the archive files when
27013         building library projects.
27014
27015 2005-03-17  Vincent Celier  <celier@adacore.com>
27016
27017         * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
27018         -gnat83, -gnat95 and -gnat05.
27019
27020 2005-03-17  Vasiliy Fofanov  <fofanov@adacore.com>
27021
27022         * gnat_ugn.texi: Document gnatmem restriction
27023
27024 2005-03-17  Thomas Quinot  <quinot@adacore.com>
27025
27026         * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
27027         cleanup
27028
27029 2005-03-17  Robert Dewar  <dewar@adacore.com>
27030
27031         * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
27032         a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
27033         s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
27034
27035         * casing.adb: Comment improvements
27036
27037 2005-03-17  Pascal Obry  <obry@adacore.com>
27038
27039         * g-expect.adb: Minor reformatting.
27040
27041 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
27042
27043         * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
27044         (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
27045         to dependencies.
27046
27047 2005-03-15  Vincent Celier  <celier@adacore.com>
27048
27049         * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
27050         Add new parameter In_Tree to specify the project tree: needed
27051         by the project manager. Adapt to changes in project manager
27052         using new parameter In_Tree.
27053
27054 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
27055
27056         * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
27057         ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
27058         ada/bldtools to avoid make -jN failures.
27059
27060 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
27061
27062         * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
27063         to NULL_TREE on entry.
27064
27065 2005-03-15  Robert Dewar  <dewar@adacore.com>
27066
27067         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
27068         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
27069         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
27070         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
27071         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
27072         system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
27073         system-interix.ads, system-solaris-sparc.ads,
27074         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
27075         system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
27076         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
27077         system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
27078         system-linux-s390.ads, system-linux-s390x.ads: Add line defining
27079         Compiler_System_Version to be False.
27080
27081         * opt.ads: Add new flag Opt.Address_Is_Private
27082
27083         * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
27084         Add new parameter Compiler_System_Version to avoid checking for
27085         completeness of parameters when compiler is compiling itself.
27086         Allows old versions of GNAT to be compiled with new compiler.
27087
27088 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
27089
27090         * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
27091         (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
27092         calling thread.
27093         (Stack_Base_Available): New flag.
27094         (Get_Page_Size): New overloaded functions imported from C.
27095         (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
27096         PROT_ON, PROT_OFF): New constants.
27097         (mprotect): New function imported from C.
27098         (pthread_teb_t): New record type.
27099
27100         * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
27101         (Create_Task): Account for the Yellow Zone and the guard page.
27102
27103 2005-03-15  Vincent Celier  <celier@adacore.com>
27104
27105         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27106         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27107         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
27108         mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
27109         Library_File_Name_For): Add new parameter In_Tree
27110         to specify the project tree: needed by the project manager.
27111         Adapt to changes in project manager using new parameter In_Tree.
27112         Remove local imports, use functions in System.CRTL.
27113
27114         * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
27115         to use the project manager.
27116
27117         * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
27118         In_Tree to designate the project tree. Adapt to changes in the project
27119         manager, using In_Tree.
27120
27121         * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
27122         Copy_Interface_Sources): Add new parameter In_Tree to specify the
27123         project tree: needed by the project manager.
27124         (Build_Library): Check that Arg'Length >= 6 before checking if it
27125         contains "--RTS=...".
27126
27127         * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
27128         Library_File_Name_For): Add new parameter In_Tree to specify the
27129         project tree: needed by the project manager.
27130
27131         * prj.ads, prj.adb: Major modifications to allow several project trees
27132         in memory at the same time.
27133         Change tables to dynamic tables and hash tables to dynamic hash
27134         tables. Move tables and hash tables from Prj.Com (in the visible part)
27135         and Prj.Env (in the private part). Move some constants from the visible
27136         part to the private part. Make other constants deferred.
27137         (Project_Empty): Make it a variable, not a function
27138         (Empty_Project): Add parameter Tree. Returns the data with the default
27139         naming data of the project tree Tree.
27140         (Initialize): After updating Std_Naming_Data, copy its value to the
27141         component Naming of Project Empty.
27142         (Register_Default_Naming_Scheme): Use and update the default naming
27143         component of the project tree, instead of the global variable
27144         Std_Naming_Data.
27145         (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
27146         Tree is not defaulted, return the default naming data of the Tree.
27147         (Initial_Buffer_Size): Constant moved from private part
27148         (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
27149         variables initialized in procedure Initialize.
27150         (Add_To_Buffer): Add two in out parameters to replace global variables
27151         Buffer and Buffer_Last.
27152         (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
27153         functions.
27154         Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
27155         hash tables.
27156         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
27157         for the project tree.
27158         (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
27159         constant at the beginning of the package spec, so that they cane be used
27160         in subprograms before their full declarations.
27161         (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
27162         (Empty_Project): Add parameter of type Project_Node_Ref
27163         (Private_Project_Tree_Data): Add component Default_Naming of type
27164         Naming_Data.
27165         (Buffer, Buffer_Last): remove global variables
27166         (Add_To_Buffer): Add two in out parameters to replace global variables
27167         Buffer and Buffer_Last.
27168         (Current_Packages_To_Check): Remove global variable
27169         (Empty_Name): Move to private part
27170         (No-Symbols): Make it a constant
27171         (Private_Project_Tree_Data): New type for the private part of the
27172         project tree data.
27173         (Project_Tree_Data): New type for the data of a project tree
27174         (Project_Tree_Ref): New type to designate a project tree
27175         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
27176         for the project tree.
27177
27178         * prj-attr.ads: Add with Table; needed, as package Prj no longer
27179         imports package Table.
27180
27181         * prj-com.adb: Remove empty, no longer needed body
27182
27183         * prj-com.ads: Move most of the content of this package to package Prj.
27184
27185         * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
27186         designate the project node tree and Packages_To_Check to replace
27187         global variable Current_Packages_To_Check.
27188         Add new parameters In_Tree and Packages_To_Check to local subprograms,
27189         when needed. Adapt to changes in project manager with project node tree
27190         In_Tree.
27191
27192         * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
27193         project tree to most subprograms. Move tables and hash tables to
27194         private part of package Prj.
27195         Adapt to changes in project manager using project tree In_Tree.
27196
27197         * prj-makr.adb (Tree): New constant to designate the project node tree
27198         Adapt to change in project manager using project node tree Tree
27199
27200         * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
27201         display the Library_Src_Dir and the Library_Dir.
27202         Add new parameter In_Tree to designate the project node tree to most
27203         subprograms. Adapt to changes in the project manager, using project tree
27204         In_Tree.
27205         (Check_Naming_Scheme): Do not alter the casing on platforms where
27206         the casing of file names is not significant.
27207         (Check): Add new parameter In_Tree to designate the
27208
27209         * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
27210         designate the project tree.
27211         Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
27212
27213         * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
27214         to replace those that were in the private part of package Prj.
27215         Add new parameter In__Tree to designate the project node tree to most
27216         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
27217         (Post_Parse_Context_Clause): When specifying the project node of a with
27218         clause, indicate that it is a limited with only if there is "limited"
27219         in the with clause, not necessarily when In_Limited is True.
27220         (Parse): Add new parameter In_Tree to designate the project node tree
27221
27222         * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
27223         designate the project node tree. Adapt to change in Prj.Tree with
27224         project node tree In_Tree.
27225
27226         * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
27227         tree In_Tree in the call to function Empty_Process to give its initial
27228         value to the project data Processed_Data.
27229         Add new parameters In_Tree to designate the project tree and
27230         From_Project_Node_Tree to designate the project node tree to several
27231         subprograms. Adapt to change in project manager with project tree
27232         In_Tree and project node tree From_Project_Node_Tree.
27233
27234         * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
27235         to replace those that were in the private part of package Prj.
27236         Add new parameter In_Tree to designate the project node tree to most
27237         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
27238
27239         * prj-tree.ads, prj-tree.adb: Add new parameter of type
27240         Project_Node_Tree_Ref to most subprograms.
27241         Use this new parameter to store project nodes in the designated project
27242         node tree.
27243         (Project_Node_Tree_Ref): New type to designate a project node tree
27244         (Tree_Private_Part): Change table to dynamic table and hash tables to
27245         dynamic hash tables.
27246
27247         * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
27248         the project tree to most subprograms. Adapt to changes in project
27249         manager using project tree In_Tree.
27250
27251         * makegpr.adb (Project_Tree): New constant needed to use project
27252         manager.
27253
27254 2005-03-15  Olivier Hainque  <hainque@adacore.com>
27255
27256         * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
27257         for sigactions with SA_SIGINFO set. Call
27258         __gnat_adjust_context_for_raise before raising, to perform the
27259         potentially required adjustments to the machine context for the GCC
27260         unwinder.
27261
27262         * raise.h (__gnat_adjust_context_for_raise): New prototype.
27263
27264         * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
27265         Adjust PC by one in the provided machine context.
27266         (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
27267         so that the handler is passed the context structure to adjust prior to
27268         the raise.
27269         (__gnat_error_handler) HPUX: Adjust the signature to match what an
27270         SA_SIGINFO sigaction should look like. Call
27271         __gnat_adjust_context_for_raise before actually raising.
27272         (__gnat_adjust_context_for_raise): Default noop to help PC
27273         adjustments before raise from signal handlers.
27274         (__gnat_error_handler): Indirectly call a predicate function to
27275         determine if a condition should be resignaled or not.
27276         (__gnat_set_resignal_predicate): User interface to modify the predicate.
27277         (__gnat_default_resignal_p): Default GNAT predicate.
27278
27279 2005-03-15  Doug Rupp  <rupp@adacore.com>
27280
27281         * adaint.c: Prefix #include of VMS system header files with vms/
27282         [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
27283         Do not define a dummy function "convert_addresses" under Darwin,
27284         not needed.
27285
27286         * tb-alvms.c, expect.c: Prefix #include of VMS system header files
27287         with vms/
27288
27289 2005-03-15  Nicolas Setton  <setton@adacore.com>
27290
27291         * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
27292         PPC/AIX.
27293
27294 2005-03-15  Robert Dewar  <dewar@adacore.com>
27295
27296         * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
27297         AI-386.
27298
27299         * a-retide.ads: Minor comment changes
27300
27301 2005-03-15  Robert Dewar  <dewar@adacore.com>
27302
27303         * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
27304         a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
27305         Realloc_For_Chunk to private part of package.
27306         New subprograms for AI-301
27307
27308         * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
27309         Get_Line procedure.
27310         Avoid unnecessary use of Get/Set_Wide_String
27311
27312 2005-03-15  Robert Dewar  <dewar@adacore.com>
27313
27314         PR ada/13470
27315         * a-stunau.ads, a-stunau.adb:
27316         Change interface to allow efficient (and correct) implementation
27317         The previous changes to allow extra space in unbounded strings had
27318         left this interface a bit broken.
27319
27320         * a-suteio.adb: Avoid unnecessary use of Get/Set_String
27321
27322         * g-spipat.ads, g-spipat.adb: New interface for Get_String
27323         Minor reformatting (function specs)
27324
27325         * g-spitbo.adb: New interface for Get_String
27326
27327         * g-spitbo.ads: Minor reformatting
27328
27329         * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
27330
27331         * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
27332
27333 2005-03-15  Javier Miranda  <miranda@adacore.com>
27334             Robert Dewar  <dewar@adacore.com>
27335             Thomas Quinot  <quinot@adacore.com>
27336             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27337
27338         * atree.ads, atree.adb: Add support for Elist24 field
27339
27340         * atree.h: Fix wrong definition of Field27
27341         Add support for Elist16 field
27342         Add support for Elist24 field
27343
27344         * einfo.ads, einfo.adb (Abstract_Interfaces,
27345         Set_Abstract_Interfaces): New subprograms.
27346         (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
27347         subprograms.
27348         (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
27349         entities rather than a single node.
27350         (Is_Interface, Set_Is_Interface): New subprogram
27351         (First_Tag_Component): New syntesized attribute
27352         (Next_Tag_Component): New synthesized attribute
27353         (Write_Entity_Flags): Upgraded to write Is_Interface
27354         (Write_Field24_Name): Upgraded to write Abstract_Interfaces
27355         (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
27356         (Task_Body_Procedure): New subprogram to read this attribute.
27357         (Set_Task_Body_Procedure): New subprogram to set this attribute.
27358         (Has_Controlled_Component): Now applies to all entities.
27359         This is only a documentation change, since it always worked to apply
27360         this to other than composite types (yielding false), but now this is
27361         official.
27362         Update documentation on Must_Be_Byte_Aligned for new spec
27363
27364         * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
27365         exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
27366         uses of the Access_Disp_Table attribute to reference the first dispatch
27367         table associated with a tagged type. As
27368         part of the implementation of abstract interface types,
27369         Access_Disp_Table has been redefined to contain a list of dispatch
27370         tables (rather than a single dispatch table).
27371         Similarly, upgrade all the references to Tag_Component by the
27372         new attribute First_Tag_Component.
27373         (Find_Inherited_TSS): Moved to exp_tss.
27374         Clean up test in Expand_N_Object_Declaration for cases
27375         where we need to do a separate assignment of the initial value.
27376         (Expand_N_Object_Declaration): If the expression in the
27377         declaration of a tagged type is an aggregate, no need to generate an
27378         additional tag assignment.
27379         (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
27380         is to be deleted.
27381         Bit packed array ops are only called if operands are known to be
27382         aligned.
27383         (Component_Equality): When returning an N_Raise_Program_Error statement,
27384         ensure that its Etype is set to Empty to avoid confusing GIGI (which
27385         expects that only expressions have a bona fide type).
27386         (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
27387         determine the amount of data to be copied.
27388
27389         * par.adb (P_Interface_Type_Definition): New subprogram that parses the
27390         new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
27391             INTERFACE_TYPE_DEFINITION ::=
27392               [limited | task | protected | synchronized] interface
27393                 [AND interface_list]
27394
27395         * par-ch3.adb (P_Type_Declaration): Modified to give support to
27396         interfaces.
27397         (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
27398         interfaces.
27399         (P_Interface_Type_Definition): New subprogram that parses the new
27400         syntax rule of Ada 2005 interfaces
27401         (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
27402         messages by the correct RENAMES (quotes removed).
27403
27404         * sem_prag.adb: Upgrade all the references to Tag_Component by the new
27405         attribute First_Tag_Component.
27406
27407         * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
27408         (Interface_List, Set_Interface_List): New subprograms.
27409         (Interface_Present, Set_Interface_Present): New subprograms.
27410         (Limited_Present, Set_Limited_Present): Available also in derived
27411         type definition nodes.
27412         (Protected_Present, Set_Protected_Present): Available also in
27413         record type definition and
27414         derived type definition nodes.
27415         (Synchronized_Present, Set_Synchronized_Present): New subprograms.
27416         (Task_Present, Set_Task_Present): New subprogram.
27417         (Task_Body_Procedure): Removed.
27418         (Set_Task_Body_Procedure): Removed.
27419         These subprogram have been removed because the attribute
27420         Task_Body_Procedure has been moved to the corresponding task type
27421         or task subtype entity to leave a field free to store the list
27422         of interfaces implemented by a task (for AI-345)
27423         Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
27424         (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
27425         expression flag Do_Range_Check
27426         (Exception_Junk): Change to Flag7 to accomodate above change
27427         (Box_Present, Default_Name, Specification, Set_Box_Present,
27428         Set_Default_Name, Set_Specification): Expand the expression
27429         "X in N_Formal_Subprogram_Declaration" into the corresponding
27430         two comparisons. Required to use the csinfo tool.
27431
27432         * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
27433         "with string" given.
27434
27435         * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
27436         expression given.
27437
27438         * par-ch11.adb (P_Raise_Statement): Recognize with string expression
27439         in 2005 mode
27440
27441         * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
27442         attribute Task_Body_Procedure rather than the old semantic field that
27443         was available in the task_type_declaration node.
27444
27445         * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
27446         interface type definitions.
27447         (P_Formal_Derived_Type_Definition): Modified to handle the list of
27448         interfaces.
27449
27450         * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
27451         task type declaration.
27452         (P_Protected): Modified to handle the list of interfaces in a
27453         protected type declaration.
27454
27455 2005-03-15  Doug Rupp  <rupp@adacore.com>
27456             Vincent Celier  <celier@adacore.com>
27457
27458         * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
27459         (Gen_Output_File_C): Likewise.
27460         (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
27461
27462 2005-03-15  Thomas Quinot  <quinot@adacore.com>
27463
27464         * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
27465         is an N_Raise_Constraint_Error node, create a new copy of it without
27466         going through a call to Duplicate_Subexpr.
27467
27468 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
27469             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27470             Nicolas Setton  <setton@adacore.com>
27471             Ed Schonberg  <schonberg@adacore.com>
27472
27473         PR ada/19900
27474         PR ada/19408
27475         PR ada/19140
27476         PR ada/20255
27477         * decl.c (gnat_to_gnu_field): Reject aliased components with a
27478         representation clause that prescribes a size not equal to the rounded
27479         size of their types.
27480         (gnat_to_gnu_entity, case E_Component): Always look at
27481         Original_Record_Component if Present and not the entity.
27482         (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
27483         of tagged extension types by not making field for components that are
27484         inside the parent.
27485         (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
27486         (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
27487         expression to the type of the object when the object is constant.
27488         Reverse defer_debug_incomplete_list before traversing it, so that trees
27489         are processed in the order at which they were added to the list. This
27490         order is important when using the stabs debug format.
27491         If we are deferring the output of debug information, also defer this
27492         output for a function return type.
27493         When adding fields to a record, prevent emitting debug information
27494         for incomplete records, emit the information only when the record is
27495         complete.
27496         (components_to_record): New parameter defer_debug.
27497         (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
27498         (gnat_to_gnu_field_decl): New function.
27499         (substitution_list, annotate_rep): Call it.
27500         (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
27501         (gnat_to_gnu_entity, case E_Record_Type): Likewise.
27502         No longer update discriminants to not be a COMPONENT_REF.
27503         (copy_alias_set): Strip padding from input type; also handle
27504         unconstrained arrays properly.
27505
27506         * gigi.h (write_record_type_debug_info): New function.
27507         Convert to use ANSI-style prototypes. Remove unused
27508         declarations for emit_stack_check, elab_all_gnat and
27509         set_second_error_entity.
27510         (gnat_to_gnu_field_decl): New decl.
27511
27512         * utils.c (write_record_type_debug_info): New function.
27513         (finish_record_type): Delegate generation of debug information to
27514         write_record_type_debug_info.
27515         (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
27516         (update_pointer_to): Fix pasto.
27517         (convert) <UNION_TYPE>: Accept slight type variations when
27518         converting to an unchecked union type.
27519
27520         * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
27521         replace the N_Freeze_Entity with a null statement.
27522
27523         * freeze.adb (Freeze_Expression): If the freeze nodes are generated
27524         within a constrained subcomponent of an enclosing record, place the
27525         freeze nodes in the scope stack entry for the enclosing record.
27526         (Undelay_Type): New Subprogram.
27527         (Set_Small_Size): Pass T, the type to modify; all callers changed.
27528         (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
27529         within records; allow them to have freeze nodes if their base types
27530         aren't frozen yet.
27531
27532         * exp_util.adb (Remove_Side_Effects): Properly test for
27533         Expansion_Delayed and handle case when it's inside an
27534         N_Qualified_Expression.
27535
27536         * sem_ch3.adb (Derived_Type_Declaration): New predicate
27537         Comes_From_Generic, to recognize accurately that the parent type in a
27538         derived type declaration can be traced back to a formal type, because
27539         it is one or is derived from one, or because its completion is derived
27540         from one.
27541         (Constrain_Component_Type): If component comes from source and has no
27542         explicit constraint, no need to constrain in in a subtype of the
27543         enclosing record.
27544         (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
27545         Minor change to propagate Is_Ada_2005 flag
27546
27547         * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
27548         Expansion_Delayed is False.
27549         (assoc_to_constructor): Ignore fields that have a
27550         Corresponding_Discriminant.
27551         (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
27552         function returns "by target", dereference the target pointer using the
27553         type of the actual return value.
27554         <all>: Be prepared for a null gnu_result.
27555         (processed_inline_subprograms): Check flag_really_no_inline
27556         instead of flag_no_inline.
27557         (set_second_error_entity): Remove unused function.
27558         (gnat_to_gnu, case N_Selected_Component): Call
27559         gnat_to_gnu_field_decl.
27560         (assoc_to_constructor): Likewise.
27561
27562 2005-03-15  Robert Dewar  <dewar@adacore.com>
27563             Ed Schonberg  <schonberg@adacore.com>
27564             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27565
27566         * exp_pakd.adb (Create_Packed_Array_Type): Do not set
27567         Must_Be_Byte_Aligned for cases where we do not need to use a
27568         System.Pack_nn unit.
27569
27570         * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
27571         as procedures.
27572         Needed now that we do some processing for IN parameters as well. This
27573         may well fix some unrelated errors.
27574         (Expand_Call): Handle case of unaligned objects (in particular those
27575         that come from packed arrays).
27576         (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
27577         renamed entity is an inherited operation, re-expand the call using the
27578         original operation, which is the one to call.
27579         Detect attempt to inline parameterless recursive subprogram.
27580         (Represented_As_Scalar): Fix to work properly with private types
27581         (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
27582         accurate estimate. Yields True in far fewer cases than before,
27583         improving the quality of code that depends on this test.
27584
27585         * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
27586         over both visible and private declarations to remove them from tree,
27587         and mark subprograms declared in package as eliminated, to prevent
27588         spurious use in subsequent compilation of generic units in the context.
27589
27590         * exp_util.ads: Minor cleanup in variable names
27591
27592         * sem_eval.ads, sem_eval.adb: Minor reformatting
27593         (Compile_Time_Known_Bounds): New function
27594
27595 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27596
27597         * exp_ch7.adb (Convert_View): Use base types of underlying types when
27598         determining whether an unchecked conversion is needed for the argument
27599         of an initialization call.
27600
27601 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27602
27603         * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
27604         that appears in the instantiation rather than the internal subtype
27605         generated in the wrapper package, to avoid anomalies in gigi when the
27606         target is derived from a private type whose full view is an access type.
27607
27608 2005-03-15  Robert Dewar  <dewar@adacore.com>
27609
27610         * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
27611         not needed.
27612         Add documentation to replace the use of this flag
27613         Fix kludge for Maximum_Alignment on x86 so that it does not apply to
27614         the x86_64.
27615
27616 2005-03-15  Thomas Quinot  <quinot@adacore.com>
27617
27618         * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
27619         here from exp_attr so it can be shared between exp_attr and exp_dist.
27620         (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
27621         all TSS names, not a subset thereof, and the previous name introduced
27622         an unnecessarily confusion that a distinction might exist between
27623         "OK" TSS names and some "not OK" TSS names.
27624
27625 2005-03-15  Doug Rupp  <rupp@adacore.com>
27626
27627         * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
27628         Command_Name.
27629
27630 2005-03-15  Pascal Obry  <obry@adacore.com>
27631             Eric Botcazou  <ebotcazou@adacore.com>
27632
27633         PR ada/20226
27634         PR ada/20344
27635         * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
27636         when IN_RTS. This is to work around a bootstrap path problem.
27637
27638         * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
27639         table and pass it to __gnat_install_SEH_handler().
27640         (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
27641
27642         * lang.opt: Fix specification of -fRTS=.
27643
27644 2005-03-15  Doug Rupp  <rupp@adacore.com>
27645             Bernard Banner  <banner@adacore.com>
27646             Vincent Celier  <celier@adacore.com>
27647             Arnaud Charlet  <charlet@adacore.com>
27648
27649         PR ada/6852
27650         This change works fine when gnatlib is built from the gcc directory,
27651         but does not work when using the libada Makefile, since GCC_FOR_TARGET
27652         is not passed to ada/Makefile.in, so more work is needed by a
27653         Makefile/configure expert.
27654
27655         * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
27656         set GMEM_LIB on ia64 linux to add optional support for gnatmem.
27657         Setup gnatlink switch -M for x86_64 linux, as it is already setup
27658         for Linux x86.
27659         (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
27660         Run ranlib on libgccprefix.a
27661         Define PREFIX_OBJS for Darwin, to build libgccprefix.
27662         (ADA_INCLUDE_SRCS): Split Ada packages.
27663
27664 2005-03-15  Robert Dewar  <dewar@adacore.com>
27665
27666         * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
27667
27668         * impunit.adb: Add GNAT.UTF_32
27669
27670         * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
27671
27672         * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
27673         now uses GNAT.UTF_32).
27674
27675         * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
27676         capabilities for categorizing characters using Unicode categories
27677
27678 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27679
27680         * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
27681         instantiation that has been rewritten as a package body, retrieve spec
27682         to generate proper name for implicit_with_clause.
27683         (Install_Parents): Recognize a parent that is an instantiation but has
27684         been rewritten as a package declaration during analysis.
27685
27686 2005-03-15  Javier Miranda  <miranda@adacore.com>
27687             Ed Schonberg  <schonberg@adacore.com>
27688
27689         * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
27690         parameter reported some error we immediately return. This improves the
27691         behaviour of the frontend in case of errors.
27692         (Install_Parent, Remove_Parent): Introduce new flag
27693         Parent_Unit_Visible, to preserve the proper visibility of the ultimate
27694         ancestor of a generic child unit, when the child is being instantiated.
27695         (Inline_Instance_Body): If we are compiling the private
27696         part or the body of a child unit, restore the proper visibility of the
27697         parents after compiling the instance body.
27698
27699 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27700             Javier Miranda  <miranda@adacore.com>
27701
27702         PR ada/15608
27703         * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
27704         of a private type, in which case it is underlying_type that denotes
27705         the proper task. Also modified to use the new entity attribute
27706         that is directly available in the task type and task subtype entities
27707         (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
27708         arrays when other dimensions than the first are constrained by
27709         discriminants of an enclosing record.
27710         (Insert_Explicit_Dereference): If the prefix is an indexed component or
27711         a combination of indexed and selected components, find ultimate entity
27712         and generate the appropriate reference for it, to suppress spurious
27713         warnings.
27714         (Note_Possible_Modification): If an entity name has no entity, return.
27715         (Is_Variable): A function call never denotes a variable.
27716         (Requires_Transient_Scope): For record types, recurse only on
27717         components, not on internal subtypes that may have been generated for
27718         constrained components.
27719
27720 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27721
27722         * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
27723         Eliminated as candidates for resolution. Both efficient, and avoids
27724         anomalies with operators declared in deleted code.
27725         (Process_Implicit_Dereference_Prefix): Use this procedure whenever
27726         expansion is disabled (as when compiling a generic) to prevent spurious
27727         warnings on prefixes of selected components.
27728
27729 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27730
27731         * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
27732         attached to a list before checking whether it appears in the private
27733         declarations of the current package.
27734         (Make_Inequality_Operator): Insert declaration in proper declarative
27735         list rather than just setting the Parent field, so that
27736         Is_Private_Declaration can handle it properly.
27737
27738 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27739
27740         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
27741         a renaming a body, check that the renamed subprogram in not intrinsic.
27742         (Find_Direct_Name): If several use_visible entities hide
27743         each other, and the context is a predefined file compiled through
27744         rtsfind, keep only the entity that comes from a predefined file.
27745
27746 2005-03-15  Geert Bosch  <bosch@adacore.com>
27747
27748         * s-fatgen.adb (Valid): Extend special exceptions to account for long
27749         long float padding to also cover AMD64 and IA64.
27750
27751 2005-03-15  Gary Dismukes  <dismukes@adacore.com>
27752
27753         * s-imgwch.adb: Add with and use of Interfaces.
27754         (Img_Wide_Character): Change type of Val to Unsigned_16.
27755         (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
27756
27757 2005-03-15  Matthew Gingell  <gingell@adacore.com>
27758
27759         * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
27760
27761 2005-03-15  Robert Dewar  <dewar@adacore.com>
27762
27763         * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
27764
27765         * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
27766
27767         * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
27768
27769 2005-03-15  Robert Dewar  <dewar@adacore.com>
27770
27771         * s-bitops.adb, s-bitops.ads,
27772         s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
27773         s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
27774         tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
27775         s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
27776         s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
27777         s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
27778         s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
27779         s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
27780         reformatting.
27781
27782 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
27783
27784         * utils2.c (build_binary_op): Fix typo.
27785
27786 2005-03-15  Doug Rupp  <rupp@adacore.com>
27787
27788         * s-crtl.ads (popen,pclose): New imports.
27789
27790 2005-03-15  Cyrille Comar  <comar@adacore.com>
27791
27792         * comperr.adb (Compiler_Abort): remove references to obsolete
27793         procedures in the bug boxes for various GNAT builds.
27794
27795 2005-03-15  Vincent Celier  <celier@adacore.com>
27796
27797         * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
27798
27799 2005-03-15  Geert Bosch  <bosch@adacore.com>
27800             Arnaud Charlet  <charlet@adacore.com>
27801             Robert Dewar  <dewar@adacore.com>
27802             Cyrille Comar  <comar@adacore.com>
27803             Sergey Rybin  <rybin@adacore.com>
27804
27805         * gnat_ugn.texi: Remove extended inline assembly example, as it was far
27806         too specific and long-winded to be appropriate for the GNAT User's
27807         Guide.
27808         Warn about use of GCC switches not documented in the GNAT User's Guide,
27809         as these may cause generated code to not conform to Ada semantics.
27810         Remove mention of -gdwarf-2 for sparc64, since this is now the default.
27811         Add documentation for -gnat95 and -gnat05 switches
27812         Remove paragraph documenting obsolete way to refer to third party
27813         libraries.
27814         Add a few references to Ada_05 that were missing.
27815         Update documentation on -gnatZ/-gnatL.
27816         Document limitation when using -m64 under Solaris.
27817         Change the "Name Casing" subsection of the pretty-printer section
27818         according to the changes in the dictionary processing.
27819
27820         * gnat_rm.texi: Document the Ada_05 pragma.
27821         Section on record representation clauses describes the new more
27822         relaxed rules about placement of large packed bit array components.
27823         Add documentation of GNAT.UTF_32
27824
27825 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
27826
27827         * misc.c (gnat_post_options): Turn off structural
27828         aliasing for now.
27829
27830 2005-03-08  Laurent Guerby  <laurent@guerby.net>
27831
27832         * system-linux-sparc.ads: Fix typo in previous commit.
27833
27834 2005-03-07  James A. Morrison  <phython@gcc.gnu.org>
27835             Laurent Guerby  <laurent@guerby.net>
27836
27837         PR ada/20035
27838         * system-linux-sparc.ads: New.
27839         * Makefile.in: Add sparc linux entry.
27840
27841 2005-02-27  Danny Smith  <dannysmith@users.sourceforge.net>
27842
27843         * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
27844         parameters as unused.
27845
27846 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
27847         Partial merge from libada-gnattools-branch:
27848
27849         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
27850         * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
27851         into code in gnattools/Makefile.in.  Remove direct dependencies on
27852         stamp-tools by tools clauses.
27853         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
27854         * config-lang.in: Add gnattools to $lang_dirs.
27855
27856 2005-02-13  Andrew Pinski  <pinskia@physics.uc.edu>
27857
27858         PR ada/19942
27859         * utils.c (gnat_type_for_mode): Return null instead of ICE because
27860         we asked for an unknown mode.
27861
27862 2005-02-12  Richard Henderson  <rth@redhat.com>
27863
27864         * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
27865         validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
27866
27867 2005-02-10  Andreas Jaeger  <aj@suse.de>
27868
27869         * init.c (__gnat_initialize): Mark parameter as unused.
27870
27871 2005-02-09  Doug Rupp  <rupp@adacore.com>
27872
27873         * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
27874         * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
27875
27876 2005-02-09  Doug Rupp  <rupp@adacore.com>
27877
27878         * gnatchop.adb (dup, dup2),
27879         g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
27880
27881         * gnatlbr.adb (mkdir),
27882         mlib-tgt-vms-ia64.adb (popen, plose):  Import with decc$ prefix.
27883
27884         * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
27885
27886 2005-02-09  Doug Rupp  <rupp@adacore.com>
27887
27888         * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
27889
27890 2005-02-09  Robert Dewar  <dewar@adacore.com>
27891             Thomas Quinot  <quinot@adacore.com>
27892             Javier Miranda  <miranda@adacore.com>
27893             Pascal Obry  <obry@adacore.com>
27894             Ed Schonberg  <schonberg@adacore.com>
27895             Doug Rupp  <rupp@adacore.com>
27896             Gary Dismukes  <dismukes@adacore.com>
27897             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27898
27899         * g-zstspl.ads: New file.
27900
27901         * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
27902
27903         * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
27904         Ada 95 mode
27905         Add definition of Wide_Wide_Space for AI-285
27906
27907         * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
27908         interface (to support Ada 95 and Ada 2005 units).
27909         Add Unbounded_IO files
27910         Add entries for Wide_Wide packages for AI-285
27911         Add list of containers packages to Ada 2005 unit list
27912
27913         * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
27914         support new Unbounded_IO package cleanly.
27915
27916         * g-utf_32.ads, g-utf_32.adb: New files.
27917
27918         * Makefile.rtl: Add entry for g-utf_32
27919         Add new files for Unbounded_IO
27920         Adjust make file for new AI-285 wide wide packages
27921         Add AI-302 containers to the run time.
27922
27923         * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
27924         a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
27925         subprograms for AI-301.
27926
27927         * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
27928
27929         * a-stunau.ads: Minor comment correction
27930
27931         * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
27932         etc.
27933         Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
27934         (Check_RPC): Update to match changes in expanded code.
27935         Clean up unused entity.
27936
27937         * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
27938         was not taken into account.
27939         This includes proper initialization with Normalize_Scalars.
27940         (Get_Simple_Init_Val): Major rewrite for initialize scalars and
27941         normalize scalars cases (particularly the latter) to do a better job
27942         of finding invalid representations.
27943
27944         * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
27945
27946         * s-strops.ads, s-strops.adb: Remove string normalize routines, never
27947         used
27948
27949         * exp_dist.adb: Add support for wide wide character type
27950         (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
27951         private part, generate stub bodies at the end of the private part,
27952         not the visible part.
27953         (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
27954         PolyORB support.
27955         (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
27956         generic wrapper to execute final processing after completing the
27957         expansion of the RPC receiver for an RACW.
27958
27959         * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
27960         packages and attributes.
27961         (Preset_Names): Addition of the new reserved words of Ada 2005,
27962         that is interface, overriding and synchronized.
27963         (Get_Pragma_Id): Give support to the use of the new reserved word
27964         "interface" as a pragma name.
27965         (Is_Pragma_Name): Give support to the use of the new reserved word
27966         "interface" as a pragma name.
27967         (Preset_Names): Add stream_size string for the Stream_Size Ada2005
27968         attribute implementation.
27969
27970         * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
27971         checks to entities that are output parameters of Asm operations.
27972         Handle the Stream_Size attribute.
27973         Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
27974
27975         * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
27976
27977         * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
27978         for second parameter being 0.0.
27979         Add support for wide wide character type.
27980         (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
27981
27982         * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
27983         s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
27984         s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
27985         s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
27986         for wide wide character cases.
27987
27988         * cstand.adb: Create entities for Wide_Wide_Character and
27989         Wide_Wide_String.
27990
27991         * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
27992         accordance with AI-258.
27993         Add new declarations for 16/32 bit C character types (Part of AI285)
27994
27995         * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
27996         (Obsolescent_Warning): New field
27997         (Rep_Clause): New local subprogram used to share code. Returns the rep
27998         clause for which the name is given in parameter.
27999         (Has_Stream_Size_Clause): New routine.
28000         (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
28001         (Address_Clause): Implementation is now using Rep_Clause.
28002         (Alignment_Clause): Idem.
28003         (Size_Clause): Idem.
28004
28005         * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
28006         entity in non-Ada 2005 mode and generate warning.
28007
28008         * par-prag.adb: Add handling of one argument form for pragma Ada_05.
28009         (Prag): Code cleanup. Remove old gnat pragma "overriding"
28010
28011         * sem_prag.adb: Add handling of one argument form for pragma Ada_05
28012         (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
28013         on the named unit if the pragma is not in the current compilation unit,
28014         so that elaboration calls in the current unit can set up an elaboration
28015         dependency on the named unit, as needed.
28016         (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
28017         subprogram as well as for subprograms declared within a package.
28018         (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
28019         pragma overriding.
28020
28021         * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
28022         to z) to avoid some instances of duplication for Wide_Wide packages.
28023
28024         * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
28025         characters.
28026
28027         * scn.adb: Char_Literal_Value field is now a Uint
28028
28029         * scng.adb: Significant rewrite to handle new Ada 2005 features
28030         allowing wide and wide wide characters in program text, e.g. for
28031         identifiers, as described in AI-285.
28032         (Set_Reserved): New procedure, makes setting up keywords cleaner.
28033         (Initialize_Scanner): Register the new reserved words of Ada 2005.
28034         (Scan): Give support to the new reserved words.
28035
28036         * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
28037         warning notifying that interface, overriding, and synchronized are
28038         new reserved words.
28039         (P_Pragma): Allow the use of the new reserved word "interface" as
28040         a pragma name.
28041
28042         * gnatls.adb, gnatbind.adb,
28043         ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
28044         identifiers named "interface" to "SAL_Interface".
28045
28046         * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
28047         (Structured Exception handling).
28048         (Gen_Main_C): Idem.
28049
28050         * bindgen.adb:
28051         (Gen_Main_Ada): Set the default exit code if specified.
28052         (Gen_Main_C): Likewise.
28053         Part of *DC20-006.
28054         (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
28055         Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
28056
28057         * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
28058         new -Xnnn switch.
28059
28060         * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
28061         has a collision with the new Ada 2005 "interface" reserved word.
28062
28063         * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
28064         generate a warning notifying that interface, overriding, and
28065         synchronized are new reserved words.
28066
28067         * scans.ads (Token_Type): Addition of the tokens corresponding to the
28068         new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
28069         and Tok_Synchronized.
28070
28071         * sem_res.adb (Resolve_Actuals): Change error messages to refer to
28072         "dispatching" rather than "primitive" operations, since dispatching
28073         calls are now allowed to abstract formal subprograms (which are not
28074         primitive).
28075         Char_Literal_Value field is now a Uint
28076         (Resolve_Slice): If the prefix is an access to an unconstrained array,
28077         compute the actual subtype of the designated object to impose the proper
28078         index constraints.
28079         (Resolve_Selected_Component): Do not insert an access check if the
28080         prefix is an access type: such a node is expanded into an explicit
28081         dereference, on which the access check is performed anyway. Removes
28082         expensive duplicate checks.
28083         (Resolve_Call): Use new flag Is_Obsolescent and field
28084         Obsolescent_Warning so that pragma Obsolescent works on library
28085         subprograms.
28086         Add support for wide wide character type
28087         (Resolve_Allocator): Replace the error message on wrong null-exclusion
28088         value by a warning message.
28089         (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
28090         as fixed-point, and one of the operands is non-static and universal, it
28091         can only be an illegal exponentiation operation, in which case there is
28092         no real value to retrieve.
28093
28094         * exp_strm.adb: Add support for wide wide character type
28095         (Build_Elementary_Input_Call): Compute the size of the stream element by
28096         querying the rep chain to find the Stream_Attribute attribute value.
28097         (Build_Elementary_Write_Call): Ditto.
28098
28099         * sem_aggr.adb: Char_Literal_Value field is now a Uint
28100         Add support for wide wide character type
28101         Replace the error messages on wrong null-exclusion value by warnings
28102         as described in Ada 2005.
28103         (Resolve_Extension_Aggregate): Document the fact that the error
28104         message on class-wide expressions in extensions aggregates.
28105
28106         * sem_case.adb: Add support for wide wide character type
28107
28108         * sem_ch13.adb: Add support for wide wide character type
28109         (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
28110
28111         * sem_ch3.adb: Add support for wide wide character type
28112         (Process_Subtype): If constraint is illegal for the type, set Ekind of
28113         now-useless Itype, to prevent cascaded errors on a compiler built
28114         without -gnatp.
28115
28116         * sem_ch8.adb: Add with and use of Sem_Disp.
28117         (Analyze_Subprogram_Renaming): Replace unclean uses of
28118         Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
28119         of Corresponding_Spec to Empty).
28120         (Attribute_Renaming): Replace use of Corresponding_Spec with
28121         Corresponding_ Formal_Spec and simplify condition.
28122         (Use_One_Package): Check that scope of homonym of identifier is defined,
28123         before checking whether it is a wrapper package.
28124         Add support for wide wide character type
28125
28126         * sem_eval.adb: Add support for wide wide character type.
28127         (Eval_Arithmetic_Op): Check for compile time known signed integer
28128         overflow in the non-static case.
28129         (Subtypes_Statically_Match): A formal scalar type and its base type do
28130         not statically match.
28131
28132         * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
28133         "not in" for test of N_Formal_Subprogram_Declaration (which is now a
28134         subtype).
28135         (Unit_Declaration_Node): Ditto.
28136         (Is_Variable_Prefix):  For the case of an indexed component whose prefix
28137         has a packed array type, the prefix has been rewritten into a type
28138         conversion. Determine variable-ness from the converted expression.
28139         Handle wide wide character cases.
28140
28141         * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
28142
28143         * stringt.ads, stringt.adb: Handle full UTF-32 range.
28144         Remove ["0A"] from comment, since it can look like a line terminator.
28145         Currently we don't permit this, but this is under discussion by the
28146         ARG, and it is easy enough to use a different example.
28147
28148         * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
28149         handling UTF-32 encoding for wide wide character.
28150         Implement new brackets coding ["hhhhhhhh"]
28151         Add UTF-8 encodings for full UTF-32 range
28152
28153         * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
28154
28155         * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
28156         bit range Add full UTF-32 support.
28157         (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
28158         notify that constraint error will be raised at run-time
28159         because a null value is assigned to a null-excluding object.
28160         Remove some obsolete declarations and make Char_Code
28161         unsigned.
28162
28163         * a-except.adb (Rcheck_30): New subprogram. Addition of the message
28164         corresponding to CE_Null_Not_Allowed, and adjust the output of all the
28165         Rcheck subprograms.
28166
28167         * checks.adb (Check_Null_Not_Allowed): Replace the error message on
28168         wrong null-exclusion value by a warning message.
28169         (Enable_Range_Check): Do range check if the prefix is an
28170         explicit dereference whose designated object is an unconstrained array.
28171         Current algorithm for removing duplicate checks is over-eager in this
28172         case.
28173
28174         * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
28175         null-exclusion value by a warning message
28176
28177         * atree.h, atree.ads, atree.adb: Remove Char_Code field support
28178         completely. Add support for Uint2 field
28179
28180         sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
28181         exp_prag.adb: Char_Literal_Value field is now a Uint.
28182
28183         * exp_util.adb (Insert_Actions): Replace
28184         N_Formal_Subprogram_Declaration by
28185         N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
28186         Char_Literal_Value field is now a Uint.
28187
28188         * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
28189         defined for subprogram renaming declarations. When set, the field
28190         indicates the defining entity of a corresponding formal subprogram
28191         when the renaming corresponds to a formal subprogram association in an
28192         instantiation.
28193         (Set_Corresponding_Formal_Spec): New procedure to return
28194         Corresponding_Formal_Spec field.
28195         Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
28196         (which is now a subtype).
28197         Char_Literal_Value field is now a Uint
28198
28199         * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
28200         pointer to the base of the dispatch table.
28201         Minor changes to comments.
28202         (Controlling_Type): New function for determining the tagged type
28203         associated with a tagged primitive subprogram.
28204         (Expand_Dispatching_Call): Add support for a controlling actual that is
28205         directly a value of type Ada.Tag rather than a tagged object.
28206
28207         * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
28208         describing the new layout.
28209         (Dispatch_Table): The expander computes the actual array size, allocates
28210         the Dispatch_Table record accordingly, and generates code that displaces
28211         the base of the record after the Typeinfo_Ptr component. The access to
28212         these components is done by means of local functions.
28213         (Offset_To_Top): New function.
28214         (Typeinfo_Ptr): New function.
28215         (Get_TSD): Modified to access the new position of the TSD.
28216         (Set_TSD): Modified to save the TSD in its new position.
28217
28218         * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
28219         case of formal abstract subprograms. Add check and message for -gnat05.
28220         Update comments.
28221
28222         * sem_ch12.adb: Add with and use for Sem_Disp.
28223         (Analyze_Associations): Minor change from "=" to "in" for use of
28224         N_Formal_Subtype_Declaration (which is now a subtype).
28225         (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
28226         N_Formal_Subtype_Declaration (which is now a subtype).
28227         (Analyze_Formal_Subprogram): Add handling for
28228         N_Formal_Abstract_Subprogram, marking the formal as abstract and
28229         dispatching, setting the controlling status of the formal parameters
28230         and result, and issuing an error if there is no controlling type for
28231         the formal subprogram.
28232         (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
28233         which is an unclean use of that field, we set the new field
28234         Corresponding_Formal_Spec to make the formal subprogram available to
28235         processing in Analyze_Subprogram_Declaration.
28236         (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
28237         Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
28238         Constrained, so that it is is does not statically match its anonymous
28239         base type.
28240
28241         * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
28242         abstract formal subprograms in error check for functions returning
28243         abstract types. Set scope of new designator for
28244         a parameterless subprogram, so that it is available when checking the
28245         body for nested subprograms, before full analysis of said body.
28246         (Analyze_Subprogram_Body): Warn on inlining bodies with nested
28247         subprogram only if inner one comes from source.
28248         (Analyze_Function_Call): If the call is given in object notation, the
28249         analysis of the name rewrites the node and analyzes it with the proper
28250         argument list. After analyzing the name, if the call has been rewritten
28251         and the result type is set, no further analysis is needed.
28252         (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
28253         mark in function specification, in a context where the formals are
28254         visible and hide outer homographs.
28255
28256         * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
28257         as the tagged type for the cases of abstract formal subprograms and
28258         renamings of those.  Clean up spec comments.
28259         (Check_Dispatching_Context): Add error message to indicate "abstract
28260         procedure", covering the case of a call to a formal abstract procedure
28261         that has statically tagged operands.
28262         (Check_Dispatching_Call): Check for the case of an actual given by
28263         a tag-indeterminate function call whose type is an ancestor of the
28264         containing call's associated tagged type. This situation can occur
28265         for inherited primitives with function defaults. In this case we
28266         use the tagged type's tag directly as the controlling argument for
28267         the calls.
28268         (Expand_Call): Name change on call to Expand_Dispatch_Call.
28269
28270         * sprint.adb (Sprint_Node_Actual): Split
28271         N_Formal_Subprogram_Declaration into two alternatives for the new
28272         cases N_Formal_Abstract_Subprogram_Declaration and
28273         N_Formal_Concrete_Subprogram_Declaration.
28274         Char_Literal_Value field is now a Uint.
28275
28276         * trans.c: Get rid of junk Uint2 reference.
28277         Char_Literal_Value field is now a Uint.
28278         (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
28279         (gigi): Correct third arg to gimplify_body.
28280
28281         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
28282         (TYPE_LANG_FLAG_0): Check for record or union.
28283
28284         * treepr.adb: Char_Literal_Value field is now a Uint
28285
28286         * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
28287         UI_From_CC.
28288
28289         * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
28290         Add full UTF-32 support
28291         Char_Code is now 32 bits
28292
28293         * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
28294         wide character UTF_32 line terminators.
28295         Initialize Main_Source_File to avoid error when no main
28296         source is loaded.
28297
28298         * errout.adb (Finalize): Do not check Num_SRef_Pragmas
28299         (Main_Source_File) when no main source has been loaded, to avoid
28300         potential crash.
28301
28302 2005-02-09  Robert Dewar  <dewar@adacore.com>
28303
28304         * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
28305         Fix name of Set routine
28306
28307         * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
28308         fixed packages.
28309
28310         * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
28311         a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
28312         fixed packages
28313
28314         * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
28315         forms of Get_Line subprograms for AI-301.
28316
28317         * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
28318         a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
28319         a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
28320         a-stwima.ads: Minor reformatting.
28321
28322 2005-02-09  Doug Rupp  <rupp@adacore.com>
28323             Thomas Quinot  <quinot@adacore.com>
28324
28325         * adaint.c, adaint.h
28326         [VMS] (to_ptr32): New function.
28327         (MAYBE_TO_PTR32): New macro.
28328         (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
28329         for pointer size.
28330         [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
28331         [VMS] (#define fork()): Remove since unneccessary.
28332         (__gnat_set_close_on_exec): New routine to support
28333         GNAT.OS_Lib.Set_Close_On_Exec.
28334
28335         * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
28336         the parent side as close-on-exec so that they are not inherited by the
28337         child.
28338
28339         * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
28340         set or clear the FD_CLOEXEC flag on a file descriptor.
28341
28342 2005-02-09  Eric Botcazou  <ebotcazou@adacore.com>
28343             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28344
28345         PR ada/19386
28346         * decl.c:
28347         (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
28348         on the field if Pragma Component_Alignment (Storage_Unit).
28349         (gnat_to_gnu_entity, case object): Do not treat a renaming that has
28350         side-effects as if it were a constant; also make SAVE_EXPR to protect
28351         side-effects.
28352         (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
28353         UNION_TYPE.
28354         (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
28355         (components_to_record): Test it.
28356         Fix improper usage of REFERENCE_CLASS_P.
28357
28358         * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
28359         RECORD_TYPE.
28360
28361         * utils2.c: Minor reformatting.
28362
28363         * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
28364         handle other cases like RECORD_TYPE.
28365
28366         * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
28367
28368 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
28369
28370         * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
28371         component of an array of arrays in an assignment context, and the
28372         aggregate has component associations that require sliding on
28373         assignment, force reanalysis of the aggregate to generate a temporary
28374         before the assignment.
28375         (Must_Slide): Make global to the package, for use in Gen_Assign.
28376
28377 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
28378
28379         * exp_ch4.adb (Expand_Composite_Equality): If a component is an
28380         unchecked union with no inferable discriminants, return a
28381         Raise_Program_Error node, rather than inserting it at the point the
28382         type is frozen.
28383         (Expand_Record_Equality, Component_Equality): Handle properly the case
28384         where some subcomponent is an unchecked union whose generated equality
28385         code raises program error.
28386
28387 2005-02-09  Doug Rupp  <rupp@adacore.com>
28388
28389         * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
28390         [VMS] (#define exit hack): Remove.
28391
28392 2005-02-09  Pascal Obry  <obry@adacore.com>
28393             Arnaud Charlet  <charlet@adacore.com>
28394
28395         * init.c (__gnat_initialize): Add a new parameter eh which contains the
28396         address of the exception registration. The Win32 version of this
28397         routine calls __gnat_install_SEH_handler() to initialize the SEH
28398         (Structured Exception Handling) handler.
28399         (__gnat_error_handler) [Win32]: Removed. Not needed as we use
28400         SEH (Structured Exception Handling) now.
28401         (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
28402         (__gnat_initialize for ppc-vxworks): Adjust comments and the
28403         preprocessor condition protecting the call to the extra eh setup
28404         subprogram, which is only available for the ppc target.
28405         (__gnat_clear_exception_count): replaced reference to
28406         variable taskIdCurrent by call to taskIdSelf(), cleaner.
28407
28408         * seh_init.c: New file.
28409
28410         * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
28411         (GNATBIND_OBJS): Idem.
28412
28413         * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
28414         routine takes a new parameter (a pointer to the exception registration
28415         for the SEH (Structured Exception Handling) support.
28416
28417         * raise.h: (__gnat_install_SEH_handler): New prototype.
28418         Update copyright notice.
28419
28420         * s-tassta.adb (Task_Wrapper): Declare the exception registration
28421         record and initialize it by calling __gnat_install_SEH_handler.
28422
28423 2005-02-09  Vincent Celier  <celier@adacore.com>
28424
28425         * make.adb (Gnatmake): Do not fail when the main project has no object
28426         directory.
28427
28428 2005-02-09  Doug Rupp  <rupp@adacore.com>
28429
28430         * Makefile.in [VMS] (LN,LN_S): Define as cp -p
28431         Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
28432         [VMS]: Add translations for g-enblsp.adb.
28433
28434         * s-asthan-vms.adb: Removed.
28435         * s-asthan-vms-alpha.adb: Added.
28436
28437 2005-02-09  Pascal Obry  <obry@adacore.com>
28438
28439         * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
28440         (LIBGNAT_OBJS): Add seh_init.o.
28441
28442 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28443
28444         PR ada/16592
28445         * Makefile.in: Link all gnat tools with -static-libgcc, since
28446         -shared-libgcc is now used by default on some systems (e.g. linux with
28447         recent binutils).
28448         Remove references to Makefile.prolog/generic, no longer used.
28449
28450 2005-02-09  Vincent Celier  <celier@adacore.com>
28451
28452         * prj-makr.adb (Process_Directory): Put file name in canonical case
28453         before matching against the patterns.
28454         If gnatname has been invoked as <prefix>-gnatname
28455         then invoke the compiler as <prefix>-gcc, not just "gcc".
28456
28457 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
28458
28459         * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
28460         with expansion disabled. The actual subtype is needed among other
28461         places when the selected component appears in the context of a loop
28462         bound, and denotes a packed array.
28463         (Operator_Check): Always use the first subtype in the
28464         error message, to avoid the appearance of internal base types.
28465         (Transform_Object_Operation): Copy each actual in full
28466         to the parameter associations of the constructed call, rather than
28467         using the shallow copy mechanism of New_Copy_List. This ensures that
28468         the chaining of named associations is done properly.
28469         (Complete_Object_Operation): Rewrite node, rather than
28470         replacing it, so that we can trace back to the original selected
28471         component.
28472
28473         * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
28474         and calls that use object notation, if the called function is not
28475         declared  in a withed unit, place the elaboration constraint on the
28476         unit in the context that makes the function accessible.
28477         (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
28478         imposes an elaboration constraint between two packages.
28479
28480 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
28481
28482         * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
28483         views of a private type after handling its private dependents, to
28484         maintain proper stack discipline between entry and exit from the
28485         package.
28486
28487 2005-02-09  Cyrille Comar  <comar@adacore.com>
28488
28489         * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
28490         Minor reformatting.
28491
28492 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28493
28494         * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
28495         fields for foreign threads.
28496
28497 2005-02-09  Doug Rupp  <rupp@adacore.com>
28498
28499         * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
28500         recursion warnings when compiled with -gnatdm.
28501
28502 2005-02-09  Robert Dewar  <dewar@adacore.com>
28503
28504         * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
28505         Slight fix to documentation of -gnaty with no parameters
28506
28507         * xr_tabls.ads: Add ??? comment for missing overall comment
28508
28509         * xsinfo.adb: Make default file name be sinfo.h, since this is what
28510         we now use by default.
28511
28512         * xsnames.adb: Adjust end of file test to look for five space followed
28513         by '#' instead of six spaces. The format of xsnames.adb was modified
28514         in the last update.
28515
28516         * a-numeri.ads: Add reference to AI-388 for greek letter pi
28517         identifier.
28518
28519         * clean.adb: Minor reformatting.
28520
28521         * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
28522         gnatname.adb: Minor reformatting
28523         Add 2005 to copyright output when utility is run
28524
28525         * csets.adb: Eliminate obsolete comment
28526
28527         * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
28528         Update comments.
28529
28530         * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
28531
28532 2005-02-09  Sergey Rybin  <rybin@adacore.com>
28533
28534         * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
28535         the difference between compact and incompact layout and add the record
28536         representation clause to the example illustrating different layouts.
28537         Add the description of '-A5' gnatpp option ("align 'AT' keywords in
28538         component clauses").
28539
28540 2005-02-09  Florian Villoing  <villoing@adacore.com>
28541
28542         * gnat_ugn.texi: Fix typos.
28543         Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
28544         @file.
28545         Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
28546         in the generated documentation.
28547
28548 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28549
28550         * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
28551         longer supported.
28552         Update linker wrapper when linking with non GNU C++.
28553
28554 2005-02-09  Pascal Obry  <obry@adacore.com>
28555
28556         * gnat_ugn.texi:
28557         Document the procedure to debug the DllMain routine on Windows.
28558         Add note about -funwind-tables and mixed Ada and C/C++ programming in
28559         ZCX mode.
28560         Document new BIND qualifer /RETURN_CODES=VMS.
28561
28562 2005-02-09  Ben Brosgol  <brosgol@adacore.com>
28563
28564         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
28565         Edited gnatmetric chapter
28566
28567 2005-02-09  Robert Dewar  <dewar@adacore.com>
28568
28569         * gnat_rm.texi:
28570         Changes to document new wide wide character support
28571         For AI-285
28572         Update documentation on Normalize_Scalars and Initialize_Scalars
28573
28574 2005-02-09  Pascal Obry  <obry@adacore.com>
28575
28576         * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
28577
28578 2005-02-09  Jose Ruiz  <ruiz@adacore.com>
28579
28580         * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
28581         from the VxWorks kernel) that is needed for getting the active
28582         priority of the different tasks.
28583
28584         * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
28585         Use a pragma Elaborate_Body in the spec file instead.
28586         Noticed by code reading.
28587
28588 2005-02-09  Thomas Quinot  <quinot@adacore.com>
28589
28590         * exp_util.ads: Minor correction in comment.
28591
28592 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28593
28594         * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
28595         since this procedure is now too complex to be worth inlining.
28596
28597 2005-02-09  Richard Henderson  <rth@redhat.com>
28598
28599         * utils.c (gnat_define_builtin): Remove.
28600         (gnat_install_builtins): Use build_common_builtin_nodes.
28601
28602 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28603
28604         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
28605         a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
28606         a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
28607         a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
28608         a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
28609         a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
28610         a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
28611         a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
28612         a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
28613         a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
28614         a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
28615         a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
28616         a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
28617         a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
28618         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
28619         a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
28620         a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
28621         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
28622         a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
28623         a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
28624         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
28625         a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
28626         a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
28627         a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
28628         a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
28629         a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
28630         a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
28631         a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
28632         a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
28633         a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
28634         a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
28635         a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
28636         a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
28637         a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
28638         library.
28639
28640 2005-01-27  Laurent Guerby  <laurent@guerby.net>
28641
28642         * Makefile.in: Fix a-intnam.ads from previous commit,
28643         add 2005 to copyright.
28644         * a-intman-rtems.ads: Renamed to...
28645         * a-intnam-rtems.ads:
28646
28647 2005-01-27  Laurent Guerby  <laurent@guerby.net>
28648
28649         * Makefile.in: Rename GNAT RTEMS specific files.
28650         * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
28651         5rosinte.ads, 5rparame.adb: Replaced by files below.
28652         * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
28653         s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
28654
28655 2005-01-27  Joel Sherrill  <joel.sherrill@oarcorp.com>
28656             Laurent Guerby  <laurent@guerby.net>
28657
28658         PR ada/19488
28659         * 5rosinte.ads: Add No_Key constant.
28660         * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
28661         * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
28662
28663 2005-01-26  Laurent Guerby  <laurent@guerby.net>
28664
28665         PR ada/19414
28666         * i-cobol.adb (Valid_Numeric): Handle zero length case.
28667
28668 2005-01-20  Richard Henderson  <rth@redhat.com>
28669
28670         * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
28671         a-intnam-linux.ads and system-linux-alpha.ads.
28672         * a-intnam-linux-alpha.ads: Remove file.
28673         * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
28674         * system-linux-alpha.ads: New file.
28675
28676 2005-01-18  Jakub Jelinek  <jakub@redhat.com>
28677
28678         PR ada/13470
28679         * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
28680         set to the new string.
28681
28682 2005-01-18  Toon Moene  <toon@moene.indiv.nluug.nl>
28683
28684         * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
28685         to True.
28686
28687 2005-01-18  Richard Henderson  <rth@redhat.com>
28688
28689         * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
28690         THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
28691         for alpha-linux.
28692         * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
28693
28694 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
28695
28696         * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
28697         (GCC_ZCX_Support): Likewise.
28698
28699 2005-01-11  Bastian Blank  <waldi@debian.org>
28700
28701         * system-linux-s390.ads: Define Preallocated_Stacks.
28702         * system-linux-s390x.ads: Likewise.
28703
28704 2005-01-04  Arnaud Charlet  <charlet@adacore.com>
28705
28706         * gnat_ugn.texi: Fix texi errors with null variables.
28707
28708 2005-01-03  Thomas Quinot  <quinot@adacore.com>
28709
28710         * gen-soccon.c: New utility program to generate g-soccon.ads
28711         automatically.
28712
28713         * socket.c, gsocket.h: Split inclusion of system header files into a
28714         gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
28715
28716         * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
28717         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
28718         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
28719         g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
28720         should not be edited by hand anymore, but should be regenerated using
28721         gen-soccon.
28722
28723 2005-01-03  Robert Dewar  <dewar@adacore.com>
28724             Ed Schonberg  <schonberg@adacore.com>
28725             Vincent Celier  <celier@adacore.com>
28726
28727         * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
28728         on/off, since this is an obsolescent feature, for which we now generate
28729         a warning.
28730
28731         * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
28732         warning mode is set and obsolescent usage of this attribute occurs.
28733         (Resolve_Access, case 'Access): Note that GNAT uses the context type to
28734         disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
28735         predates, and partly motivates, the adoption of the AI.
28736         Implement new Ada 2005 attribute Mod
28737
28738         * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
28739         attribute Mod.
28740
28741         * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
28742
28743         * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
28744         pragma restrictions.
28745         New entry for Ada 2005 attribute Mod.
28746
28747         * par-prag.adb:
28748         Add recognition of new pragma Restrictions No_Dependence
28749         Recognize restriction No_Obsolescent_Features at parse time
28750
28751         * bcheck.adb: Add circuitry for checking for consistency of
28752         No_Dependence restrictions.
28753
28754         * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
28755         restrictions.
28756
28757         * restrict.ads, restrict.adb: Add subprograms to deal with
28758         No_Dependence restrictions.
28759
28760         * rtsfind.adb: Check that implicit with's do not violate No_Dependence
28761         restrictions.
28762
28763         * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
28764         sem_attr.adb: Add check for new restriction No_Obsolescent_Features
28765
28766         * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
28767         dummy parameter to scng instantiation.
28768         Needed for new restriction No_Obsolescent_Features
28769
28770         * scn.adb: (Obsolescent_Check): New procedure
28771         Needed for new restriction No_Obsolescent_Features
28772
28773         * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
28774         specified by AI-285, needed for implementation of AI-388 (adding greek
28775         pi to Ada.Numerics).
28776         Add new generic formal to scng, needed for new restriction
28777         No_Obsolescent_Features.
28778
28779         * s-rident.ads: Add new restriction No_Obsolescent_Features.
28780
28781         * ali.ads, ali.adb: Adjustments for reading new No_Dependence
28782         restrictions lines.
28783         (Scan_ALI): When finding an unexpected character on an R line, raise
28784         exception Bad_R_Line, instead of calling Fatal_Error, so that, when
28785         Ignore_Errors is True, default restrictions are set and scanning of the
28786         ALI file continues with the next line. Also, when Bad_R_Line is raised
28787         and Ignore_Errors is True, skip to the end of le line.
28788
28789         * sem_ch10.adb: Check that explicit with's do not violate
28790         No_Dependence restrictions.
28791         (Install_Withed_Unit): Add code to implement AI-377 and diagnose
28792         illegal context clauses containing child units of instance.
28793
28794         * sem_prag.adb: Processing and checking for new No_Dependence
28795         restrictions.
28796         (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
28797         analyze and check the External argument.
28798
28799         * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
28800
28801 2005-01-03  Robert Dewar  <dewar@adacore.com>
28802
28803         * atree.adb: Add a fifth component to entities
28804         This allows us to add 32 flags and four new fields
28805
28806         * atree.ads: Add a fifth component to entities
28807         This allows us to add 32 flags and four new fields
28808
28809         * einfo.ads, einfo.adb: Document new fields and new flags now available
28810         Add routines for printing new fields
28811
28812         * treepr.adb: Call routines to print out additional fields if present
28813
28814 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
28815
28816         * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
28817         gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
28818
28819         * Makefile.in: Add support to build shared Ada libraries on solaris x86
28820         Remove gpr2make, replaced by gprmake.
28821         Remove references to gnatmem and libaddr2line.
28822         Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
28823         (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
28824         Add support for specialized version of Ada.Numerics.Aux for Darwin: use
28825         a-numaux-darwin.ads and a-numaux-darwin.adb
28826         Enable mlib-tgt-lynxos.adb on lynxos.
28827
28828         * Make-lang.in: Remove rules for gpr2make.
28829         When generating sdefault.adb, do not call Relocate_Path
28830         on S3 for function Target_Name, as it is not a path.
28831         Remove references to gnatmem and libaddr2line.
28832
28833         * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
28834         files.
28835
28836 2005-01-03  Samuel Tardieu  <tardieu@adacore.com>
28837
28838         * checks.adb (Apply_Alignment_Check): Generate a warning if an object
28839         address is incompatible with its base type alignment constraints when
28840         this can be decided statically.
28841
28842 2005-01-03  Olivier Hainque  <hainque@adacore.com>
28843
28844         * decl.c (compatible_signatures_p): New function. The intended purpose
28845         is to check if two function signatures for a call-site and a callee are
28846         compatible enough for the call to be valid. The underlying purpose is
28847         to check if a call to a mapped builtin is using the right interface.
28848         The current code actually does not check antyhing - this a placeholder
28849         for future refinements.
28850         (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
28851         builtin calls for convention Intrinsic.
28852
28853         * gigi.h (builtin_decl_for): Declare (new function).
28854
28855         * utils.c (gnat_install_builtins): Install the target specific builtins.
28856         (builtin_decl_for): New function, provide a dummy body for now.
28857
28858 2005-01-03  Geert Bosch  <bosch@adacore.com>
28859
28860         * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
28861         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
28862         (Pred): Implement in terms of Succ.
28863
28864         * trans.c (convert_with_check): Reimplement conversion of float to
28865         integer.
28866
28867 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
28868             Vincent Celier  <celier@adacore.com>
28869
28870         * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
28871         bounds can be negative, and must be declared Int, not Nat.
28872
28873         * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
28874         array is checked after using the index in the array.
28875
28876         * makegpr.adb (Add_Switches): Check if there is a package for the
28877         processor. If there is no package, do not look for switches.
28878
28879 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
28880
28881         * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
28882         generation of predefined stream operations (specs and bodies) should
28883         proceed. Under various restrictions these subprograms must not be
28884         generated.
28885
28886 2005-01-03  Thomas Quinot  <quinot@adacore.com>
28887
28888         * exp_dist.adb:
28889         Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
28890         amount of PCS-specific code in RACW stubs generation.
28891         (Copy_Specification): Set Etype on copied formal parameter entities, as
28892         this information is needed for PolyORB stubs generation.
28893         (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
28894         variable Dynamic_Async.
28895         (Build_Subprogram_Receiving_Stubs): Make PCS-specific
28896         (Build_RPC_Receiver_Specification): Make generic again, as recent
28897         changes have allowed RPC receivers to have the same profile for both
28898         variants of the PCS.
28899         Reorganise RPC receiver generation to reduce differences between the
28900         structure of GARLIC and PolyORB RPC receivers.
28901         (Add_Receiving_Stubs_To_Declarations): Make this subprogram
28902         PCS-specific.
28903         Simplify elaboration code for RCI packages.
28904
28905         * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
28906         generation to reduce differences between the structure of GARLIC and
28907         PolyORB RPC receivers.
28908
28909         * s-stratt.adb: Fix typo in comment.
28910
28911 2005-01-03  Thomas Quinot  <quinot@adacore.com>
28912
28913         * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
28914         copied from Make_Init_Call).
28915
28916         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
28917         reads and assignments on a temporary variable declared with appropriate
28918         discriminants.
28919
28920 2005-01-03  Robert Dewar  <dewar@adacore.com>
28921
28922         * i-c.adb (To_C): Raise CE if string is null and Append_Null
28923
28924 2005-01-03  Robert Dewar  <dewar@adacore.com>
28925
28926         * i-cstrin.adb (Update): Do not append a null in form called with a
28927         String. This avoids unintended behavior.
28928
28929 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
28930
28931         PR ada/17527
28932         * init.c: Fix warnings on Free BSD section.
28933
28934 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
28935
28936         PR ada/16949
28937         * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
28938         xsinfo.adb).
28939
28940 2005-01-03  Vincent Celier  <celier@adacore.com>
28941
28942         * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
28943         libraries when Unique_Compile is True (-u switch).
28944         (Gnatmake): ditto.
28945
28946 2005-01-03  Robert Dewar  <dewar@adacore.com>
28947
28948         * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
28949         upper case letter or underscore after W, as allowed by spec.
28950
28951 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
28952
28953         * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
28954         darwin port by using proper type definitions from header files.
28955         Use SIGTERM instead of SIGABRT for SIGADAABORT.
28956
28957 2005-01-03  Robert Dewar  <dewar@adacore.com>
28958
28959         * par.adb: Enhance error message handling for configuration file
28960         pragmas.
28961
28962 2005-01-03  Robert Dewar  <dewar@adacore.com>
28963
28964         * s-arit64.adb (Double_Divide): Put back changes that got accidentally
28965         removed during the previous update (test properly for case of dividing
28966         largest negative number by -1, which generates overflow).
28967
28968 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
28969             Sergey Rybin  <rybin@adacore.com>
28970
28971         * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
28972         to use as the defining identifier for a formal package.
28973         (Remove_Parent): If the instance takes place within (an instance of)
28974         a sibling, preserve private declarations of common parent.
28975
28976 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
28977
28978         * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
28979         to determine whether one of the operands is a fixed-point type for
28980         which a user-defined multiplication or division operation might be
28981         defined.
28982
28983         * sem_res.adb (Valid_Conversion): The legality rules for conversions
28984         of access types are symmetric in Ada 2005: either designated type can
28985         be unconstrained.
28986
28987 2005-01-03  Vincent Celier  <celier@adacore.com>
28988
28989         * s-fileio.adb (Temp_File_Record): Change length of string component
28990         Name from L_tmpnam + 1 to max_path_len + 1.
28991
28992 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
28993
28994         * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
28995         Self_Id.Deferral_Level = 0.
28996         (Do_Pending_Action): Move this function to the spec.
28997
28998         * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
28999         Do_Pending_Action explicitely when needed, in case we're using
29000         No_Abort restrictions.
29001
29002         * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
29003         deferral level since it will not get changed by the generated code.
29004         Keeping a default value of 1 would prevent some operations (e.g.
29005         select or delay) to proceed successfully.
29006
29007 2005-01-03  Ben Brosgol  <brosgol@adacore.com>
29008             Robert Dewar  <dewar@adacore.com>
29009             Cyrille Comar  <comar@adacore.com>
29010
29011         * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
29012         porting guide chapter (vms version).
29013         Revised doc title (removed "for native platforms") and subtitle.
29014         Add discussion on warning flag for obsolescent features. First we
29015         note that it applies to obsolete GNAT features, which was previously
29016         omitted. Second we contrast the behavior with that of the new
29017         Ada 2005 AI-368 restriction No_Obsolescent_Features.
29018         Preliminary rewriting of GNAT & libraries chapter in order to take
29019         into account default project locations & new project manager
29020         capabilities.
29021
29022 2005-01-03  Robert Dewar  <dewar@adacore.com>
29023
29024         * cstand.adb (Create_Operators): Clean up format and documentation of
29025         unary and binary operator result tables. No change in code, just
29026         reformatting and addition of comments.
29027
29028         * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
29029         sem_ch2.adb: Minor reformatting
29030
29031         * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
29032         sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
29033         comments for Tree_Read and Tree_Write.
29034
29035 2005-01-03  Pascal Obry  <obry@adacore.com>
29036
29037         * exp_attr.ads: Minor reformatting.
29038
29039 2005-01-03  Romain Berrendonner  <berrendo@adacore.com>
29040
29041         * comperr.adb (Compiler_Abort): Add specialized message for GAP
29042         versions.
29043
29044 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
29045
29046         * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
29047         whether the ancestor type is private, as may be the case with nested
29048         instantiations.
29049
29050 2004-12-30  Sohail Somani  <sohail@sohailsomani.com>
29051
29052         PR ada/19128
29053         * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
29054
29055 2004-12-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
29056
29057         * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
29058         * utils2.c (build_unary_op): Likewise.
29059
29060 2004-12-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29061
29062         * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
29063
29064 2004-12-19  Richard Henderson  <rth@redhat.com>
29065
29066         * trans.c (gigi): Update gimplify_body call.
29067
29068 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
29069
29070         * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
29071
29072 2004-12-07  Ed Falis  <falis@adacore.com>
29073
29074         * s-intman-vxworks.adb (Notify_Exception): removed useless check for
29075         current task being suspended.
29076
29077         * init.c (__gnat_clear_exception): added to reset VxWorks exception
29078         count.
29079         (__gnat_map_signal): removed test for current task being suspended.
29080
29081 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
29082
29083         * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
29084         from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
29085         targets (such as AAMP).
29086
29087 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
29088
29089         * atree.adb (Visit_Itype): Create a new name for the generated itype,
29090         because the back-end may otherwise treat it as a redefinition of the
29091         old symbol.
29092
29093 2004-12-07  Eric Botcazou  <ebotcazou@adacore.com>
29094
29095         * back_end.adb (Scan_Back_End_Switches): Accept --param.
29096
29097         * lang-specs.h: Accept --param.
29098
29099 2004-12-07  Vincent Celier  <celier@adacore.com>
29100
29101         * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
29102         package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
29103         Current_Body_Suffix => Ada_Body_Suffix).
29104         Take into account Externally_Built attribute.
29105
29106         * clean.adb (In_Extension_Chain): Always return False when one of the
29107         parameter is No_Project.
29108         (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
29109         Ada_Language_Index).
29110         (Gnatclean): Adapt to change in package Prj.Pars (no parameter
29111         Process_Languages for procedure Parse).
29112
29113         * gnatcmd.adb (Carg_Switches): New table.
29114         (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
29115         Adapt to name changes in package Prj (Current_Spec_Suffix =>
29116         Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
29117
29118         * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
29119         Header_Num and function Hash are now declared in package Prj,
29120         not Prj.Com.
29121
29122         * prj.adb (Suffix_Of): New function.
29123         (Set (Suffix)): New procedure.
29124         (Hash): One function moved from Prj.Com
29125         (Is_Present, Language_Processing_Data_Of): New functions
29126         (Set): Two new procedures
29127         (Add_Language_Name, Display_Language_Name): New procedures
29128
29129         * prj.ads: (Suffix_Of): New function
29130         (Set (Suffix)): New procedure
29131         Add several types and tables for multi-language support.
29132         (Header_Num): Type moved from Prj.Com
29133         (Hash): Two functions moved from Prj.Com
29134         (Is_Present, Language_Processing_Data_Of): New functions
29135         (Set): Two new procedures
29136         (Add_Language_Name, Display_Language_Name): New procedures
29137         (Naming): Component name changes:
29138         Current_Spec_Suffix => Ada_Spec_Suffix,
29139         Current_Body_Suffix => Ada_Body_Suffix. Add new components:
29140         Impl_Suffixes, Supp_Suffixes.
29141         (Project_Data): New components: Externally_Built, Supp_Languages,
29142         First_Language_Processing, Supp_Language_Processing, Default_Linker,
29143         Default_Linker_Path.
29144
29145         * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
29146         new package Language_Processing with its attributes (Compiler_Driver,
29147         Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
29148         Binder_Driver, Default_Linker).
29149
29150         * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
29151         (Header_Num): Type moved to package Prj
29152
29153         * prj-env.adb: Adapt to name changes in package Prj
29154         (Current_Spec_Suffix => Ada_Spec_Suffix,
29155         Current_Body_Suffix => Ada_Body_Suffix).
29156
29157         * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
29158         default to the project path, except the "-" is one of the directories
29159         in env var ADA_PROJECT_PATH.
29160         (Current_Project_Path): Global variable, replacing Project_Path
29161         that was in the body of Prj.Part.
29162         (Project_Path): New function
29163         (Set_Project_Path): New procedure
29164         Initialize Current_Project_Path during elaboration of the package
29165         Remove dependency on Prj.Com, no longer needed
29166
29167         * prj-ext.ads (Project_Path): New function
29168         (Set_Project_Path): New procedure
29169
29170         * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
29171         suffix is defined for language <lang>.
29172         (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
29173         accessing directly the components of Naming.
29174         (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
29175         Reorganise of this package.
29176         Break procedure Check in several procedures.
29177
29178         * prj-nmsc.ads: Replace all procedures (Ada_Check,
29179         Other_Languages_Check and Language_Independent_Check) with a single
29180         procedure Check.
29181
29182         * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
29183         Process_Languages, no longer needed.
29184
29185         * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
29186         Current_Project_Path.
29187         Remove elaboration code, moved to the body of Prj.Ext
29188         Use new function Prj.Ext.Project_Path instead of old variable
29189         Project_Path.
29190         (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
29191         When comparing with project paths on the stack, first put the resolved
29192         path in canonical case.
29193         (Parse_Single_Project): Set the path name of the project file in the
29194         tree to the normalized path.
29195
29196         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
29197         parameter Process_Languages, no longer needed.
29198         (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
29199         Other_Languages_Check.
29200
29201         * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
29202         to store the resolved canonical path of the project file.
29203         Remove dependency to Prj.Com, no longer needed
29204
29205         * prj-util.adb: Adapt to name changes in package Prj
29206         (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
29207         Ada_Body_Suffix).
29208
29209         * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
29210         Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
29211         Externally_Built, Include_Option, Language_Processing.
29212
29213         * makegpr.adb: Numerous changes due to changes in packages
29214         Prj and Prj.Nmsc.
29215
29216         * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
29217         default to the project path, except whe "-" is one of the directories
29218         in env var ADA_PROJECT_PATH.
29219         (Gnatls): In verbose mode, add the new section "Project Search Path:"
29220
29221 2004-12-07  Robert Dewar  <dewar@adacore.com>
29222
29223         * debug.adb: Document that -gnatdA automatically sets -gnatR3m
29224
29225         * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
29226         set -gnatR3m mode.
29227
29228         * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
29229         flag. No longer needed now that we handle this in gnat1drv.adb.
29230
29231         * repinfo.ads: Minor reformatting
29232
29233 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29234             Olivier Hainque  <hainque@adacore.com>
29235             Eric Botcazou  <ebotcazou@adacore.com>
29236
29237         * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
29238         TYPE_SIZE_UNIT of result type if SIZE is not specified.
29239         (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
29240         of a bitfield, which we know is useless and causes trouble because of
29241         alignment implications.
29242
29243         * utils.c (create_var_decl): Set DECL_COMMON again on targets without
29244         BSS sections.
29245         (process_attributes): Clear DECL_COMMON again when a section attribute
29246         is present.
29247         (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
29248         SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
29249         (create_field_decl): Special case ADDRESSABLE negative to mean
29250         "no bitfield creation", to be used by make_aligning_type. Don't
29251         restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
29252         fields claimed addressable still have to be bitfields. Use
29253         value_factor_p instead of a raw binop construction to check for the
29254         position's alignment.
29255
29256 2004-12-07  Geert Bosch  <bosch@adacore.com>
29257
29258         * eval_fat.adb: Revert previous change.
29259
29260 2004-12-07  Thomas Quinot  <quinot@adacore.com>
29261             Ed Schonberg  <schonberg@adacore.com>
29262
29263         * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
29264         with an implicit dereference as its prefix, use
29265         Insert_Explicit_Dereference instead of merely rewriting the prefix into
29266         an explicit dereference. This ensures that a reference to the original
29267         prefix is generated, if appropriate.
29268
29269         * sem_util.adb (Insert_Explicit_Dereference): When an implicit
29270         dereference is rewritten to an explicit one, generate a reference to
29271         the entity denoted by its prefix using the original prefix node, so
29272         the dereference can be properly recorded as a read of the denoted
29273         access value, if appropriate.
29274
29275         * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
29276         emitting 'assigned but never read' warning on a variable on the basis
29277         that it has an access type.
29278         (Check_References): Emit unreferenced warning when the scope is a
29279         subprogram body.
29280
29281 2004-12-07  Robert Dewar  <dewar@adacore.com>
29282             Ed Schonberg  <schonberg@adacore.com>
29283
29284         * exp_ch6.adb (Expand_Call): Add comment on handling of back end
29285         intrinsic
29286
29287         * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
29288         leaving call unchanged.
29289         This deals with the case where the pragma Import specified
29290         an external name, to be handled by the back end.
29291
29292         * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
29293         subprogram which is Imported with convention Intrinsic if an
29294         External_Name argument is specified.
29295         (Process_Import_Or_Interface): Properly diagnose link name argument.
29296         (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
29297         with Sem_Ch6.Cannot_Inline.
29298         (Process_Inline): Provide separate warning for inapplicable inline
29299         pragma.
29300         (Cannot_Inline): Reject subprograms that have an at_end handler, so that
29301         treatment is uniform on different targets.
29302
29303 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
29304
29305         * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
29306         construct is rewritten, preserve end label to permit source navigation.
29307
29308 2004-12-07  Thomas Quinot  <quinot@adacore.com>
29309
29310         * exp_dist.adb (Specific_Build_General_Calling_Stubs,
29311         Specific_Build_Stub_Target): New subprograms.
29312         (Build_Subprogram_Calling_Stubs): Make this procedure independent from
29313         the PCS implementation used, using the above PCS-customized subprograms.
29314         Minor reformatting.
29315         (PolyORB_Support.Helpers): New subunit containing supporting subprograms
29316         for generation of DSA code targeted to the PolyORB PCS.
29317         (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
29318         implementation of the partition communication subsystem in ancillary
29319         subprograms.
29320         (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
29321         PolyORB_Support.Build_Stub_Type): New subrograms containing the
29322         PCS-specific part of Add_Stub_Type.
29323         (Insert_Partition_Check): Use runtime library function to perform
29324         E.4(19) check.
29325
29326         * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
29327         (RE_Same_Partition): New entity, from s-parint.
29328
29329         * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
29330
29331 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
29332
29333         * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
29334         Output the copyright message on a separate line from the version
29335         message.
29336
29337 2004-12-07  Joel Brobecker  <brobecker@adacore.com>
29338
29339         * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
29340         compile-time warning.
29341
29342 2004-12-07  Robert Dewar  <dewar@adacore.com>
29343
29344         * g-regpat.adb: (Match): Change a misuse of or to or else
29345
29346 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
29347
29348         * lib-xref.adb:
29349         (Generate_Reference): Handle properly a reference to an entry formal,
29350          when an accept statement has a pragma Unreferenced for it.
29351
29352         * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
29353         and the Has_Pragma_Unreferenced flag for each formal before analyzing
29354         the body, to ensure that warnings are properly emitted for each accept
29355         statement of a given task entry.
29356
29357 2004-12-07  Vasiliy Fofanov  <fofanov@adacore.com>
29358
29359         * Makefile.in: Add support for foreign threads on VMS.
29360
29361 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29362
29363         * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
29364         Remove.
29365         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
29366
29367         * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
29368
29369         * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
29370         exception.
29371         (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
29372
29373 2004-12-07  Robert Dewar  <dewar@adacore.com>
29374
29375         * nlists.adb (Prepend_Debug): Remove parameters and nest within
29376         Prepend.
29377         (Remove_Next_Debug): Same fix
29378
29379         * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
29380         maintain back pointers now, though we did not used to, and comments
29381         were out of date).
29382         (Prepend): Remove pragma Inline.
29383         (Remove_Next): Same cleanup
29384
29385 2004-12-07  Thomas Quinot  <quinot@adacore.com>
29386
29387         * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
29388         used to record an implicit dereference as a read operation on its
29389         prefix when operating under -gnatc. Necessary to avoid spurious
29390         'variable assigned but never read' warnings in that mode.
29391         (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
29392         is a non-overloaded implicit dereference, call the above subprogram to
29393         ensure proper recording of references.
29394
29395 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
29396
29397         * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
29398         to be resolved later as part of Analyze_Iteration_Scheme's call to
29399         Make_Index.
29400
29401 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
29402
29403         * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
29404         prefix is not a scalar type, place error message on prefix, not on
29405         type entity.
29406
29407 2004-12-07  Bernard Banner  <banner@adacore.com>
29408
29409         * vxaddr2line.adb: Add support for x86 vxworks
29410
29411 2004-12-07  Thomas Quinot  <quinot@adacore.com>
29412
29413         * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
29414         documentation of the behaviour of these functions when passed an IP
29415         address that has no record in the system hosts database and no reverse
29416         record in the DNS.
29417
29418         * cstand.adb, a-tags.ads: Fix typos in comment.
29419
29420 2004-12-07  Robert Dewar  <dewar@adacore.com>
29421
29422         * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
29423         exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
29424         sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
29425         s-poosiz.ads: Minor reformatting
29426
29427         * make.adb: Minor reformatting
29428         Add some ??? comments asking for more comments
29429
29430         * s-poosiz.adb: Minor reformatting
29431         Add comments on alignment requirement
29432
29433         * sinfo.ads: Remove obsolete comment and fix typo.
29434
29435 2004-12-07  Vincent Celier  <celier@adacore.com>
29436             Sergey Rybin  <rybin@adacore.com>
29437
29438         * gnat_ugn.texi: Update the section "The GNAT Driver and Project
29439         Files" with the new tool and package names.
29440         Reformatting to suppress most of the warnings for line too long
29441         Document the new section "Project Search Path:" in the output of
29442         gnatls -v.
29443         Add gnatmetric section
29444
29445 2004-12-07  Vincent Celier  <celier@adacore.com>
29446
29447         * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
29448         -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
29449         and -eit to -ept. Added qualifier
29450         /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
29451
29452 2004-11-27  Andreas Schwab  <schwab@suse.de>
29453
29454         * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
29455
29456 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
29457
29458         * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
29459         internal implementation unit GNAT.Sockets.Thin,
29460         as their usage for sockets is non-portable (using the read and write
29461         functions from the system runtime library is fine on UNIX but won't
29462         work under Windows).
29463
29464         * mingw32.h: Update copyright notice.
29465
29466 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
29467
29468         * ada-tree.h: Minor reformatting of previous change to avoid lines
29469         longer than 79 characters.
29470
29471 2004-11-25  Olivier Hainque  <hainque@adacore.com>
29472
29473         * tb-gcc.c: GCC infrastructure based implementation of
29474         __gnat_backtrace.
29475
29476 2004-11-24  Steven Bosscher  <stevenb@suse.de>
29477
29478         * misc.c (gnat_post_options): Don't clear
29479         flag_inline_functions.
29480
29481 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
29482
29483         PR ada/17986
29484         * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
29485         tree.
29486
29487 2004-11-21  Andreas Jaeger  <aj@suse.de>
29488
29489         * stylesw.adb: Change Style_Check_Subprogram_Order to
29490         Style_Check_Order_Subprograms.
29491
29492 2004-11-18  Arnaud Charlet  <charlet@adacore.com>
29493
29494         * adaint.h, adaint.c
29495         (__gnat_portable_spawn): Fix cast of spawnvp third parameter
29496         to avoid warnings.
29497         Add also a cast to kill another warning.
29498         (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
29499         parameter with the priority class of the parent process instead of
29500         always using the NORMAL_PRIORITY_CLASS.
29501         (__gnat_dup): New function.
29502         (__gnat_dup2): New function.
29503         (__gnat_is_symbolic_link): Enable the effective body of this
29504         function when __APPLE__ is defined.
29505
29506         * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
29507         Update comments.
29508
29509 2004-11-18  Olivier Hainque  <hainque@adacore.com>
29510
29511         * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
29512         address of which may be used to represent "others" and "all others"
29513         choices in exception tables, instead of the current harcoded
29514         (void *)0 and (void *)1.
29515         (Setup_Exception): Do nothing in the GNAT SJLJ case.
29516
29517         * gigi.h (others_decl, all_others_decl): New decls representing the
29518         new Others_Value and All_Others_Value objects.
29519         (struct attrib): Rename "arg" component as "args", since GCC expects a
29520         list of arguments in there.
29521
29522         * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
29523         corresponding objects exported by a-exexpr, instead of hardcoded dummy
29524         addresses.
29525
29526         * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
29527         others_decl and all_others_decl instead of hardcoded dummy addresses
29528         to represent "others" and "all others" choices, which is cleaner and
29529         more flexible with respect to the possible eh pointer encoding policies.
29530
29531         * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
29532         (process_attributes): Account for the naming change of the "args"
29533         attribute list entry component.
29534
29535         * decl.c (build_attr_list): Rename into prepend_attributes to allow
29536         cumulating attributes for different entities into a single list.
29537         (gnat_to_gnu_entity): Use prepend_attributes to build the list of
29538         attributes for the current entity and propagate first subtype
29539         attributes to other subtypes.
29540         <E_Procedure>: Attribute arguments are attr->args and not
29541         attr->arg any more.
29542         (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
29543         argument provided, as this is what GCC expects. Use NULL_TREE instead
29544         of 0 for trees.
29545
29546 2004-11-18  Robert Dewar  <dewar@adacore.com>
29547
29548         * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
29549         Minor reformatting througout (including new function specs)
29550         Add ??? comments asking for clarification.
29551
29552 2004-11-18  Thomas Quinot  <quinot@adacore.com>
29553
29554         * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
29555         incomplete duplicate implementation of this subprogram from butil.
29556
29557 2004-11-18  Thomas Quinot  <quinot@adacore.com>
29558
29559         * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
29560         procedures factors the common processing for building an RPC receiver
29561         for an RCI package or an RACW type.
29562         Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
29563         Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
29564         (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
29565         in use.
29566         (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
29567         Add_RACW_Features.
29568         (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
29569         Add_RAST_Features.
29570         (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
29571         distribution subprogram identifiers that are either subprogram numbers
29572         or strings.
29573         (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
29574         string distribution identifiers assigned to a given subprogram.
29575         (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
29576         (Add_RAS_Dereference_TSS): Add comments.
29577         (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
29578         is not referenced yet because it will be used by the PolyORB DSA
29579         implementation.
29580         (Insert_Partition_Check): Remove fossile code.
29581         (First_RCI_Subprogram_Id): Document this constant.
29582         (Add_RAS_Access_TSS): Correct the setting of the Etype of the
29583         RAS_Access TSS.
29584         (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
29585         replaced with calls to Get_Library_Unit_Name_String. Previously there
29586         were several instances of the same code in different locations in the
29587         compiler; this checkin completes the replacement of all of these
29588         instances with calls to a common subprogram.
29589         Minor reformatting.
29590
29591         * sem_dist.adb: Remove comment noting that RPC receiver generation
29592         should be disabled for RACWs that implement RASs.
29593         (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
29594
29595         * sem_util.ads, sem_util.adb (Has_Stream): New function
29596         (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
29597         qualified name of a library unit into the name buffer.
29598         (Note_Possible_Modification): Generate a reference only
29599         if the context comes from source.
29600
29601         * snames.ads (PCS_Names): New subtype corresponding to names of
29602         supported implementations of the Partition Communication Subsystem
29603         (PCS) (i.e. the runtime library support modules for the distributed
29604         systems annex).
29605
29606 2004-11-18  Robert Dewar  <dewar@adacore.com>
29607             Ed Schonberg  <schonberg@adacore.com>
29608
29609         * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
29610         (Has_Rep_Pragma): New function
29611         (Has_Attribute_Definition_Clause): New function
29612         (Record_Rep_Pragma): Moved here from sem_ch13.adb
29613         (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
29614
29615         * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
29616
29617         * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
29618         (Expand_Pragma_Psect_Object): New procedure
29619         These procedures contain the revised and cleaned up processing for
29620         these two pragmas. This processing was formerly in Sem_Prag, but
29621         is more appropriately moved here. The cleanup involves making sure
29622         that the pragmas are properly attached to the tree, and that no
29623         nodes are improperly shared.
29624
29625         * sem_prag.adb: Move expansion of Common_Object and Psect_Object
29626         pragmas to Exp_Prag, which is more appropriate.
29627         Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
29628         check for duplicates Remove use of Is_Psected flag, no longer needed.
29629         Use new Make_String_Literal function with string.
29630
29631         * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
29632         that are functions return universal values, that have to be converted
29633         to the context type.
29634         Use new Make_String_Literal function with string.
29635         (Get_Stream_Convert_Pragma): New function, replaces the use of
29636         Get_Rep_Pragma, which had to be kludged to work in this case.
29637
29638         * freeze.adb: Use new Has_Rep_Pragma function
29639
29640         * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
29641         function with string.
29642         Use new Has_Rep_Pragma function.
29643
29644         * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
29645         string argument.
29646
29647 2004-11-18  Robert Dewar  <dewar@adacore.com>
29648
29649         * errout.ads, errout.adb: (First_Sloc): New function
29650
29651         * par-ch5.adb (P_Condition): Check for redundant parens is now a style
29652         check (-gnatyx) instead of being included as a redundant construct
29653         warning.
29654
29655         * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
29656         Style_Check_Order_Subprograms.
29657
29658         * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
29659         stylesw.adb: Add Style_Check_Xtra_Parens
29660
29661         * usage.adb: Add line for -gnatyx (check extra parens)
29662
29663         * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
29664
29665 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
29666             Robert Dewar  <dewar@adacore.com>
29667
29668         * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
29669         discriminant of a constrained subtype, analyze the copy of the
29670         corresponding constraint, because in some cases it may be only
29671         partially analyzed.
29672         Removes long-lived ??? comments.
29673
29674         * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
29675         handled controlled or secondary-stack expressions within the
29676         iteration_scheme of a loop.
29677
29678         * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
29679         bounds that may contain functions calls, to prevent memory leaks when
29680         the bound contains a call to a function that uses the secondary stack.
29681         (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
29682         generate temporaries for loop bounds that might contain function calls
29683         that require secondary stack and/or finalization actions.
29684
29685         * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
29686         selected component and the selector is overloadable (not just a
29687         function) treat as function call, Analyze_Call will disambiguate if
29688         necessary.
29689         (Analyze_Selected_Component): Do not generate an actual subtype for the
29690         selected component if expansion is disabled. The actual subtype is only
29691         needed for constraint checks.
29692         (Analyze_Allocator): If restriction No_Streams is set, then do
29693         not permit objects to be declared of a stream type, or of a
29694         composite type containing a stream.
29695
29696         * restrict.ads: Remove the a-stream entry from Unit_Array, since
29697         No_Streams no longer prohibits with'ing this package.
29698
29699         * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
29700         discriminants, but the parent base has unknown discriminants, there is
29701         no discriminant constraint to inherit. Such a discrepancy can arise
29702         when the actual for a formal type with unknown discriminants is a
29703         similar private type whose full view has discriminants.
29704         (Analyze_Object_Declaration): If restriction No_Streams is set, then
29705         do not permit objects to be declared of a stream type, or of a
29706         composite type containing a stream.
29707
29708 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
29709
29710         * exp_dbug.ads: Update documentation to reflect simpler encoding for
29711         protected operations.
29712
29713         * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
29714         generated name, it complicates decoding in gdb and hinders debugging
29715         of protected operations.
29716         (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
29717         flag for the protected entry barrier function.
29718         (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
29719         flag for the protected entry function.
29720
29721 2004-11-18  Nicolas Setton  <setton@adacore.com>
29722
29723         * expect.c: Define __unix__ when __APPLE__ is defined.
29724
29725         * Makefile.in: Inform the value of the variable GMEM_LIB in the
29726         Darwin-specific section.
29727
29728         * lang-specs.h: Change the placement of the %1 marker.
29729         Works around the fact that gcc adds -fPIC by default under Darwin.
29730
29731 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
29732
29733         * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
29734         type of the object with the packed array type, set the Analyzed flag
29735         on the object if it is an entity or simple indexed component, to avoid
29736         spurious type errors.
29737
29738 2004-11-18  Gary Dismukes  <dismukes@adacore.com>
29739
29740         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
29741         gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
29742         separate line from the version message.
29743
29744 2004-11-18  Ed Falis  <falis@adacore.com>
29745
29746         * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
29747         vthreads.
29748         (init_float): Eliminate initialization of floating point status for
29749         AE653. The instructions have no effect for vThreads.
29750
29751 2004-11-18  Vincent Celier  <celier@adacore.com>
29752
29753         * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
29754         gnatbind is invoked with -shared.
29755
29756 2004-11-18  Jose Ruiz  <ruiz@adacore.com>
29757
29758         * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
29759         for Detect_Blocking which is redundant with the check done within the
29760         procedure Protected_Single_Entry_Call.
29761         (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
29762         Detect_Blocking which is redundant with the check done within the
29763         procedure Protected_Single_Entry_Call.
29764
29765 2004-11-18  Vincent Celier  <celier@adacore.com>
29766
29767         * makegpr.adb (Compile): Put the compiling switches (in package
29768         Compiler and on the command line) immediately after "-c", instead of
29769         at the end of the command line invocation of the compiler, when
29770         compiling a non-Ada file.
29771         (Build_Global_Archive): When there is no need to rebuild the archive,
29772         set Global_Archive_Exists, so that the archive is passed to the linker
29773         if one is needed.
29774
29775 2004-11-18  Robert Dewar  <dewar@adacore.com>
29776             Sergey Rybin  <rybin@adacore.com>
29777
29778         * gnat_ugn.texi:
29779         Remove extra paren check from list of checks for redundant constructs
29780         Add documentation of new -gnatyx style check (check extra parens)
29781         Remove paragraph about gnatelim debug options.
29782
29783         * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
29784         objects rather than forbidding dependencies on the package Ada.Streams.
29785
29786         * sinfo.ads: Add ??? note that we should document pragmas passed to
29787         back end.
29788
29789         * g-expect.ads: Fix a few typos in the comments.
29790
29791 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
29792
29793         * misc.c (gnat_handle_option): Use %< and %> for quoting in
29794         warning message.
29795
29796 2004-11-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
29797
29798         * a-numaux-x86.adb (Tan): Fix fdivp syntax.
29799
29800 2004-11-07  Andreas Schwab  <schwab@suse.de>
29801
29802         * Makefile.in (install-gnatlib): Remove spurious hyphen.
29803
29804 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
29805
29806         PR ada/18228
29807         * Makefile.in (darwin): Set soext to .dylib.
29808
29809 2004-10-26  Vincent Celier  <celier@gnat.com>
29810             Thomas Quinot   <quinot@act-europe.fr>
29811
29812         * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
29813         (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
29814         there is no use of GNAT.Sockets.Constants.
29815         Remove remaining pragma Import for C_Write
29816         Remove C_Read and C_Write from internal implementation unit
29817         GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
29818         the read and write functions from the system runtime library is fine
29819         on UNIX but won't work under Windows).
29820
29821         * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
29822         (Check_Selector): Use C_Recv instead of C_Read.
29823         Selectors are the GNAT.Sockets abstraction to perform a select()
29824         call on a set of descriptors. To allow abortion of an ongoing
29825         select operation, some data is written to a dedicated socket that
29826         is always monitored.
29827         Under Windows, the write and read library functions cannot operate
29828         on sockets, so we need to use send and recv instead, which is portable
29829         across all supported platforms.
29830
29831         * g-socthi.ads: Remove C_Read and C_Write from internal implementation
29832         unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
29833         (using the read and write functions from the system runtime library is
29834         fine on UNIX but won't work under Windows).
29835
29836 2004-10-26  Nicolas Setton  <setton@act-europe.fr>
29837
29838         * mlib-tgt-darwin.adb: New file.
29839
29840         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29841         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
29842         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
29843         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
29844         subprogram body.
29845
29846         * Makefile.in: Add support for building shared libraries under Darwin.
29847         (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
29848         the low level EH init subprogram to be called from __gnat_initialize.
29849
29850         * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
29851         indicates which options to pass to the archive indexer.
29852
29853         * mlib-utl.adb: Add support for calling ranlib with additional
29854         options. This is needed for instance under Mac OS X.
29855         (Ranlib_Options): New global variable, used to store the potential
29856         options to pass to ranlib.
29857         (Ar): Use Ranlib_Options when spawning ranlib.
29858         (Initialize): Set the value of ranlib option.
29859
29860 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
29861
29862         * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
29863         instead of 8K, to reflect the real potential needs for stack-checking
29864         in the ZCX case.
29865
29866 2004-10-26  Pascal Obry  <obry@gnat.com>
29867
29868         * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
29869
29870         * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
29871         Windows only the initial thread stack size can be set so it is good to
29872         start we a low stack size.
29873         The OS will adjust the size as needed.
29874
29875 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
29876             Nicolas Setton  <setton@act-europe.fr>
29877
29878         * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
29879         "__unix__" instead of "unix".
29880         The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
29881         sections were just mistakenly ignored. The former is
29882         implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
29883         Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
29884         of hpux. This prevents an unwanted definition of the symbol
29885         convert_addresses in adaint.o.
29886
29887 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
29888
29889         * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
29890         compatibility with type Unwind_Word on 16-bit targets such as AAMP.
29891
29892 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
29893
29894         * a-filico.ads, a-filico.adb: fix incorrect header.
29895
29896 2004-10-26  Javier Miranda  <miranda@gnat.com>
29897
29898         * a-ststio.ads: Fix typo in identifier
29899
29900 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
29901
29902         * sem_ch4.adb: Minor reformatting.
29903
29904 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29905
29906         * checks.adb (Expr_Known_Valid): If floating-point validity checks are
29907         enabled, check the result of unary and binary operations when the
29908         expression is the right-hand side of an assignment.
29909
29910 2004-10-26  Vincent Celier  <celier@gnat.com>
29911
29912         * clean.adb (Delete): Do not output warnings when in quiet output and
29913         not in verbose mode.
29914         (Force_Deletions): New Boolean flag, defaulted to False
29915         (Delete): Only delete a file if it is writable, and when
29916         Force_Deletions is True.
29917         (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
29918         (Usage): Line for new switch -f
29919         (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
29920         own.
29921
29922 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
29923
29924         * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
29925         JM type only if its size matches that of the wrapper.  When a size is
29926         prescribed and the field is not aliased, remove the wrapper of a JM
29927         type only if the size is not greater than that of the packed array.
29928         (gnat_to_gnu_entity): Change the extension of packed array wrappers
29929         from LJM to JM.
29930
29931 2004-10-26  Geert Bosch  <bosch@gnat.com>
29932
29933         * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
29934         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
29935         (Pred): Implement in terms of Succ.
29936
29937 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29938
29939         * exp_aggr.adb (Safe_Component): An aggregate component that is an
29940         unchecked conversion is safe for in-place use if the expression of the
29941         conversion is safe.
29942         (Expand_Array_Aggregate): An aggregate that initializes an allocator may
29943         be expandable in place even if the aggregate does not come from source.
29944         (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
29945         designated object of an allocator in place, rather than building it
29946         first on the stack. The previous scheme forces a full copy of the array,
29947         and may be altogether unsusable if the size of the array is too large
29948         for stack allocation.
29949
29950 2004-10-26  Robert Dewar  <dewar@gnat.com>
29951
29952         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
29953         compares if the component is atomic.
29954
29955         * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
29956         array assignment if the component type is atomic.
29957
29958 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29959             Eric Botcazou  <ebotcazou@act-europe.fr>
29960
29961         * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
29962         is aliased and is a by_reference type, do not pass by copy.
29963         (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
29964         detect whether the call is in the right side of an assignment or
29965         the expression of an object declaration.  Recurse on component
29966         association within aggregates.
29967         Call it in the condition that determines whether the temporary is
29968         necessary for correct stack-checking.
29969
29970 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
29971
29972         * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
29973         RACW_Type, used in the PolyORB version.
29974         Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
29975         version and the GARLIC version.
29976
29977         * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
29978         Rename RCI_Info to RCI_Locator for better consistency between the
29979         GARLIC and PolyORB versions of the distributed systems annex.
29980         (DSA_Implementation_Name): This enumeration lists the possible
29981         implementations of the Partition Communication Subsystem for the
29982         Distributed Systems Annex (DSA). The three available implementations
29983         are the dummy stub implementation (No_DSA), and two versions based on
29984         two different distribution runtime libraries: GARLIC and PolyORB. Both
29985         the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
29986         technology.
29987         Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
29988         that organization.
29989
29990         * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
29991         between the GARLIC and PolyORB versions of the distributed systems
29992         annex.
29993         Remove RE_Unbounded_Reclaim_Pool since it is unused.
29994
29995 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
29996
29997         * gnat1drv.adb: Suppress calling the back end when
29998         Frontend_Layout_On_Target is true.
29999
30000 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
30001
30002         * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
30003         Set_Read_Only): New subprograms.
30004         These new routines allow the user to set or unset the Owner execute
30005         and Owner write permission flags on a file.
30006
30007         * makegpr.adb, mlib.adb, mlib-prj.adb: Use
30008         GNAT.OS_Lib.Set_Executable instead of rolling our own.
30009
30010 2004-10-26  Matthew Gingell  <gingell@gnat.com>
30011
30012         * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
30013
30014 2004-10-26  Pascal Obry  <obry@gnat.com>
30015
30016         * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
30017         memory before the faulting page we properly test the process read
30018         access for this address using appropriate Win32 routine.
30019         (HPUX sections): guard with "__hpux__" instead of "hpux".
30020
30021 2004-10-26  Robert Dewar  <dewar@gnat.com>
30022
30023         * lib-xref.adb (Generate_Reference): Don't complain about reference to
30024         entry parameter if pragma Unreferenced set, since we do not properly
30025         handle the case of multiple parameters.
30026
30027 2004-10-26  Vincent Celier  <celier@gnat.com>
30028
30029         * prj-env.adb: (Contains_ALI_Files): New Boolean function
30030         (Ada_Objects_Path.Add): For a library project, add to the object path
30031         the library directory only if there is no object directory or if the
30032         library directory contains ALI files.
30033         (Set_Ada_Paths.Add.Recursive_Add): Ditto
30034
30035 2004-10-26  Vincent Celier  <celier@gnat.com>
30036
30037         * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
30038         extension of library projects.
30039
30040         * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
30041         path defaults to ".:<prefix>/lib/gnat".
30042         (Parse): For an extending all project, allow direct import of a project
30043         that is virtually extended.
30044
30045         * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
30046         the specified name is directly imported, return its ID. Otherwise, if
30047         an extension of this project is imported, return the ID of the
30048         extension.
30049
30050 2004-10-26  Robert Dewar  <dewar@gnat.com>
30051
30052         * s-arit64.adb: (Le3): New function, used by Scaled_Divide
30053         (Sub3): New procedure, used by Scaled_Divide
30054         (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
30055         correct more than one instance of failure to propagate carries
30056         correctly.
30057         (Double_Divide): Handle overflow case of largest negative number
30058         divided by minus one.
30059
30060         * s-arit64.ads (Double_Divide): Document that overflow can occur in
30061         the case of a quotient value out of range.
30062         Fix comments.
30063
30064 2004-10-26  Robert Dewar  <dewar@gnat.com>
30065
30066         * s-bitops.adb (Bit_Eq): Remove redundant check.
30067
30068         * s-bitops.ads: Minor comment updates
30069         Change some occurrences of Address to System.Address
30070
30071         * s-carsi8.ads: Fix minor cut-and-paste error in comments
30072
30073 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30074
30075         * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
30076         accessibility check to prefix that is a protected operation.
30077
30078 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30079
30080         * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
30081         empty, post message on stub.
30082
30083 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30084             Javier Miranda  <miranda@gnat.com>
30085
30086         * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
30087         current instance appears within a unit that is directly in the context
30088         of the main unit.
30089         Used to determine whether the body of the instance should be analyzed
30090         immediately after its spec, to make its subprogram bodies available
30091         for front-end inlining.
30092         (Analyze_Formal_Array_Type): Cleanup condition that checks that range
30093         constraint is not allowed on the component type (AARM 12.5.3(3))
30094
30095 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
30096
30097         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
30098         'Storage_Pool): enhance, document & limit detection of non-sharable
30099         internal pools.
30100
30101         * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
30102
30103         * s-pooglo.ads: Add more documentation now that this pool is properly
30104         documented.
30105
30106 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30107
30108         * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
30109         or protected type with discriminants, do not constrain the
30110         corresponding record type if the subtype declaration has no
30111         discriminant constraints. This can be the case in source code, or in
30112         the subtype declaration created to rename an actual type within an
30113         instantiation.
30114
30115 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30116
30117         * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
30118         different kind of stub (possibly wrong name for file), do not check
30119         for conformance.
30120         (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
30121         includes call to some function that returns an unconstrained type, do
30122         not inline.
30123
30124 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30125
30126         * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
30127         appear in the code for the main unit. Dependencies among units in the
30128         context of the main unit are established when those other units are
30129         compiled. Otherwise spurious elaboration constraints can generate
30130         incorrect elaboration circularities.
30131
30132 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
30133             Ed Schonberg   <schonberg@gnat.com>
30134
30135         * sem_util.adb (Is_Aliased_View): Defend against the case where this
30136         subprogram is called with a parameter that is not an object name. This
30137         situation arises for some cases of illegal code, which is diagnosed
30138         later, and in this case it is wrong to call Is_Aliased, as that might
30139         cause a compiler crash.
30140         (Explain_Limited_Type): Refine previous fix to include
30141         inherited components of derived types, to provide complete information.
30142
30143         * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
30144         is the prival for a protected object.
30145         It is necessary to mark this entity as a variable, in addition to
30146         flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
30147         modified to avoid checking the Aliased flag on entities that are not
30148         objects. (Checking that flag for non-objects is erroneous and could
30149         lead to a compiler crash).
30150
30151 2004-10-26  Robert Dewar  <dewar@gnat.com>
30152
30153         * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
30154         X_Frac = 0.5, then we know that the number X must be positive.
30155         (Succ): Remove the same redundant test, and also fix the primary test
30156         to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
30157         Minor reformatting
30158         (Decompose): Add fuller comments to spec
30159
30160 2004-10-26  Pascal Obry  <obry@gnat.com>
30161
30162         * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
30163         validity (process must have read access). Set to 0 in all other cases.
30164         (STOP_FRAME): Now check for ptr validity to avoid a segmentation
30165         violation on Win32.
30166         (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
30167         segmentation violation.
30168
30169 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
30170
30171         * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
30172         whose type is a constructed subtype of an aliased object with an
30173         unconstrained nominal subtype, convert the actual to the constructed
30174         subtype before taking its address.
30175
30176 2004-10-26  Vincent Celier  <celier@gnat.com>
30177
30178         * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
30179         (Is_Path_Name_Case_Sensitive): New function
30180
30181         * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
30182         (Base_Name, Simple_Name, Current_Directory, Compose,
30183         Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
30184         the result.
30185
30186 2004-10-26  Cyrille Comar    <comar@act-europe.fr>
30187             Vasiliy Fofanov  <fofanov@act-europe.fr>
30188             Vincent Celier   <celier@gnat.com>
30189
30190         * gnat_ugn.texi: Generalize "finding memory problems" section into a
30191         "memory management issues" section and document some of the useful
30192         memory pools provided as part of the GNAT library.
30193         Remove "virtual" from declaration of A::method2 in
30194         the simple example of Ada/C++ mixed system.
30195         Library Projects may be virtually extended: their virtual extensions
30196         are not Library Projects.
30197         Added section on extending project hierarchies.
30198
30199 2004-10-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
30200
30201         * adaint.c (__gnat_get_libraries_from_registry): Cast value
30202         to LPBYTE.
30203         (__gnat_portable_spawn): Remove const.
30204
30205         * mingw32.h (MAXPATHLEN): Check for previous definition.
30206
30207 2004-10-17  Matthias Klose  <doko@debian.org>
30208
30209         * gnatvsn.ads: Set gnat library version to 4.0.
30210
30211 2004-10-05  Vincent Celier  <celier@gnat.com>
30212
30213         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
30214
30215 2004-10-04  Laurent Guerby  <laurent@guerby.net>
30216
30217         PR ada/15156
30218         * Makefile.in: Define and use RANLIB_FLAGS.
30219
30220 2004-10-04  Pascal Obry  <obry@gnat.com>
30221
30222         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
30223         other x86 platforms).
30224
30225 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
30226
30227         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
30228         in general and triggers stack alignment adjustment for thread entry
30229         points on targets where this is necessary.
30230
30231 2004-10-04  Bernard Banner  <banner@gnat.com>
30232
30233         PR ada/13897
30234         * Makefile.in: Add section for powerpc linux
30235         Add variant i-vxwork-x86.ads
30236
30237         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
30238
30239 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
30240
30241         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
30242         table registration calls when need be. Ensures no reference to the crt
30243         ctors symbol are issued in the SJLJ case, which avoids possible
30244         undefined symbol errors in the case of modules to be statically linked
30245         with the kernel.
30246
30247 2004-10-04  Javier Miranda  <miranda@gnat.com>
30248
30249         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
30250         in-line the code corresponding to subprogram Analyze_Actuals. In
30251         addition, analyze the actuals only in case of subprogram call.
30252
30253 2004-10-04  Ed Falis  <falis@gnat.com>
30254
30255         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
30256
30257 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
30258
30259         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
30260         in the documentation.
30261
30262 2004-10-04  Robert Dewar  <dewar@gnat.com>
30263
30264         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
30265         IF and CASE.
30266         (Analyze_Block_Statement): Add circuitry to detect following dead code
30267         (Check_Unreachable_Code): Handle case of block exit
30268
30269 2004-10-04  Robert Dewar  <dewar@gnat.com>
30270
30271         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
30272         (XMatchD): Avoid warning for Logic_Error call
30273
30274 2004-10-04  Robert Dewar  <dewar@gnat.com>
30275
30276         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
30277         consider expressions buried within a procedure actual to be an actual.
30278         This caused some blowups with uses of packed slices within a procedure
30279         actual.
30280
30281 2004-10-04  Robert Dewar  <dewar@gnat.com>
30282
30283         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
30284         longer need to be initialized to zero.
30285         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
30286         initialized to zero.
30287
30288         * checks.adb (Expr_Known_Valid): Packed arrays are now always
30289         considered valid, even if the representation is modular. That's correct
30290         now that we no longer initialize packed modular arrays to zero.
30291
30292         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
30293         suffixes. These are now documented as the only cases in which the
30294         debugger ignores outer records.
30295         Previously, the spec allowed arbitrary suffixes for this purpose.
30296         Change name of LJM to JM for packed array pad records
30297         Create separate section on packed array handling, and add a whole new
30298         set of comments to this section describing the situation with packed
30299         modular types and justification requirements depending on endianness.
30300
30301 2004-10-04  Robert Dewar  <dewar@gnat.com>
30302
30303         * a-except.adb: Add a comment for last change
30304
30305         * einfo.ads: Minor spelling correction in comment
30306
30307         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
30308
30309         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
30310         messages.
30311
30312         * sem_util.ads: Minor comment update
30313
30314 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30315
30316         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
30317         Inline_Always when in Configurable_Run_Time mode.
30318
30319         * sem_prag.adb (Process_Convention): If entity is an inherited
30320         subprogram, apply convention to parent subprogram if in same scope.
30321         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
30322         when in Configurable_Run_Time mode.
30323
30324 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30325
30326         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
30327         class_wide type after component list has been inherited.
30328
30329 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30330
30331         * sem_ch12.adb (Check_Generic_Actuals): New predicate
30332         Denotes_Previous_Actual, to handle properly the case of a private
30333         actual that is also the component type of a subsequent array actual.
30334         The visibility status of the first actual is not affected when the
30335         second is installed.
30336         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
30337         make fully recursive the treatment of formals of packages declared
30338         with a box.
30339         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
30340         the above on exit from an instantiation.
30341         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
30342         current instantiation which is now complete.
30343         (Analyze_Package_Instantiation): No instantiated body is needed if the
30344         main unit is generic. Efficient, and avoid anomalies when a instance
30345         appears in a package accessed through rtsfind.
30346
30347 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30348
30349         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
30350         do not generate a declaration for a temporary if the call is part of a
30351         library-level instantiation.
30352
30353 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30354
30355         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
30356         searching for a limited component to flag.
30357
30358         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
30359         expansion of Input, to account for the fact that the implicit call
30360         generated by the attribute reference must freeze the user-defined
30361         stream subprogram. This is only relevant to 'Input, because it can
30362         appear in an object declaration, prior to the body of the subprogram.
30363
30364         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
30365         expansion can proceed and further errors uncovered.
30366         (Minor clean up): Fix cases of using | instead of \ for continuation
30367         messages.
30368
30369 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30370
30371         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
30372
30373         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
30374         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
30375         Use gcc_assert and gcc_unreachable.
30376
30377         * decl.c (gnat_to_gnu_entity, case object): Check and process a
30378         specified alignment before validating size.
30379         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
30380         stripped-down declaration for the type of the inner field when making
30381         a JM type.
30382
30383         * utils.c (finish_record_type): Do not compute the size in units
30384         incrementally. Instead compute it once for the rep clause case.
30385         Use gcc_assert and gcc_unreachable.
30386
30387 2004-10-04  Vincent Celier  <celier@gnat.com>
30388
30389         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
30390         in file name.
30391         (Is_Valid_Path_Name): Take '/' as a directory separator.
30392
30393 2004-10-04  Vincent Celier  <celier@gnat.com>
30394
30395         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
30396         (Extended_Project) only if Extended_Project is defined, to avoid
30397         assertion error.
30398         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
30399         resolved path.
30400         (Parse_Single_Project): Ditto.
30401
30402         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
30403         Add_To_Project_Path for virtual projects.
30404
30405 2004-10-04  Vincent Celier  <celier@gnat.com>
30406
30407         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30408         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
30409         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
30410         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
30411         parameter Options_2.
30412
30413         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
30414         Build_Dynamic_Library with an empty Options_2.
30415
30416         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
30417         default anymore.
30418
30419         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
30420         directory separator, if any.
30421         (Gprmake): Do not allow mains on the command line for library projects.
30422         Do not attempt to link when the project is a library project.
30423         (Library_Opts): New table to store Library_Options.
30424         (Build_Library): If Library_Options is specified, pass these options
30425         when building a shared library.
30426
30427 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
30428
30429         * s-tposen.adb (Service_Entry): The object must be always unlocked at
30430         the end of this procedure now that the unlock operation was inserted
30431         by the expander.
30432
30433 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
30434
30435         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
30436         corresponding to the Preallocated_Stacks flags in System.
30437         (Get_Target_Parameters): Including the processing for
30438         Preallocated_Stacks.
30439
30440         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
30441         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
30442         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
30443         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
30444         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
30445         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
30446         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
30447         system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
30448         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
30449         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
30450         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
30451         used to signal whether the compiler creates the required stacks and
30452         descriptors for the different tasks (when True) or it is done by the
30453         underlying operating system at run time (when False).
30454         It is initially set to False in all targets.
30455
30456         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
30457         if it is supported by the target.
30458         (Make_Task_Create_Call): Pass the stack address if it has been
30459         previously created. Otherwise pass a Null_Address.
30460
30461         * snames.adb: Add _stack.
30462
30463         * snames.ads: Add Name_uStack. Required to allow the expander to
30464         statically allocated task stacks.
30465
30466         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
30467         Stack_Address argument.
30468         Check that its value is equal to Null_Address because this target does
30469         not support the static stack allocation.
30470
30471 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
30472
30473         * usage.adb: Change "pragma inline" to "pragma Inline" in information
30474         and error messages
30475
30476 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
30477
30478         * exp_dist.adb: Split declaration of asynchronous flag out of
30479         Add_RACW_Read_Attribute.
30480         Minor reformatting for better alignment with PolyORB version.
30481         Store the entity for the asynchronous flag of an RACW, rather than the
30482         expression, in the asynchronous flags table. This will allow this flag
30483         to be used in other subprograms beside Add_RACW_Read_Attribute.
30484
30485 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
30486
30487         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
30488         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
30489         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
30490         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
30491         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
30492         sockets constant MSG_NOSIGNAL (Linux-specific).
30493         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
30494         all Send operations.
30495         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
30496         from trigerring SIGPIPE.
30497         Rename components to avoid clash with Ada 2005 possible reserved
30498         word 'interface'.
30499         (Check_Selector): When the select system call returns with an error
30500         condition, propagate Socket_Error to the caller.
30501
30502 2004-10-01  Jan Hubicka  <jh@suse.cz>
30503
30504         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
30505
30506 2004-09-23  Robert Dewar  <dewar@gnat.com>
30507
30508         PR ada/17540
30509         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
30510         instead do this at freeze time (we won't do it if there is an address
30511         clause).
30512         Change "pragma inline" to "pragma Inline" in information and error
30513         messages.
30514         Minor reformatting.
30515
30516         * freeze.adb (Check_Address_Clause): Remove previous change, not the
30517         right way of doing things after all.
30518         (Freeze_Entity): For object, set Is_Public for imported entities
30519         unless there is an address clause present.
30520
30521 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
30522
30523         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
30524         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
30525         ensures proper handling of types with rep clauses, which might have
30526         their TYPE_SIZE set already.
30527
30528 2004-09-21  Robert Dewar  <dewar@gnat.com>
30529
30530         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
30531         packed array types in both little- and big-endian cases. This change
30532         ensures that we no longer count on the unused bits being initialized
30533         for such types (and in particular ensures that equality testing will
30534         only read the relevant bits).
30535         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
30536         These changes mean that we no longer need to initialize small packed
30537         arrays.
30538         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
30539         optimization to an LJM field as to its parent field.
30540
30541         * ada-tree.h, trans.c, utils.c, utils2.c:
30542         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
30543
30544 2004-09-20  Jan Hubicka  <jh@suse.cz>
30545
30546         * utils.c (gnat_finalize): Remove.
30547         (end_subprog_body): Directly call cgraph_finalize_function;
30548         do not lower the nested functions.
30549
30550 2004-09-20  Robert Dewar  <dewar@gnat.com>
30551
30552         PR ada/17540
30553         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
30554         if an address clause is present, since that means that the Import
30555         should be ignored.
30556
30557 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
30558
30559         * 5tsystem.ads: Removed, no longer used.
30560
30561 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
30562             Zack Weinberg  <zack@codesourcery.com>
30563
30564         * ada-tree.def: Use tree_code_class enumeration constants
30565         instead of code letters.
30566         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
30567         Update for new tree-class enumeration constants.
30568
30569 2004-09-17  Vincent Celier  <celier@gnat.com>
30570
30571         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
30572         capabilities of the general project manager.
30573
30574 2004-09-09  Vincent Celier  <celier@gnat.com>
30575
30576         * a-direct.ads: Add pragma Ada_05
30577         (Directory_Entry_Type): Give default value to component Kind to avoid
30578         not initialized warnings.
30579
30580         * a-direct.adb (Current_Directory): Remove directory separator at the
30581         end.
30582         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
30583         an existing directory.
30584         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
30585         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
30586         Convert the result to File_Size.
30587
30588         * prj.ads: (Project_Error): New exception
30589
30590         * prj-attr.adb: Except in procedure Initialize, Fail comes from
30591         Prj.Com, not from Osint.
30592         (Attrs, Package_Attributes): Tables moved to private part of spec
30593         (Add_Attribute, Add_Unknown_Package): Moved to new child package
30594         Prj.Attr.PM.
30595         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
30596         Prj.Project_Error after call to Fail.
30597         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
30598         Fail. Check that package name is not already in use.
30599
30600         * prj-attr.ads: Comment updates to indicate that all subprograms may be
30601         used by tools, not only by the project manager, and to indicate that
30602         exception Prj.Prj_Error may be raised in case of problem.
30603         (Add_Unknown_Package, Add_Attribute): Moved to new child package
30604         Prj.Attr.PM.
30605         (Attrs, Package_Attributes): Table instantiations moved from the body to
30606         the private part to be accessible from Prj.Attr.PM body.
30607
30608         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
30609         from new package Prj.Attr.PM.
30610         (Parse_Attribute_Declaration): Call Add_Attribute from new package
30611         Prj.Attr.PM.
30612
30613         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
30614
30615         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
30616         instead of Elaboration_Checks).
30617
30618         * a-calend.adb: Minor reformatting
30619
30620 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30621
30622         * gigi.h (maybe_pad_type): New declaration.
30623         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
30624
30625         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
30626
30627         * cuintp.c: Convert to use buildN.
30628
30629         * decl.c (maybe_pad_type): No longer static.
30630         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
30631         target pointer.
30632         Convert to use buildN.
30633
30634         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
30635         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
30636         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
30637         RHS.
30638         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
30639         (gnat_gimplify_expr, case ADDR_EXPR): New case.
30640         Convert to use buildN.
30641
30642         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
30643         TREE_READONLY for const.
30644         Convert to use buildN.
30645
30646         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
30647         (create_var_decl): Refine when TREE_STATIC is set.
30648         Convert to use buildN.
30649
30650 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
30651
30652         * gnat_ugn.texi: Delete text relating to checking of ali and object
30653         consistency.
30654
30655         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
30656         routines.
30657
30658 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
30659
30660         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
30661         pragmas recognized by GNAT.
30662
30663         * gnat_rm.texi: Document pragma Detect_Blocking.
30664
30665         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
30666         raise Program_Error if called from a protected operation.
30667
30668         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
30669         the protected action nesting level.
30670         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
30671         protected action nesting level.
30672         (Unlock): When pragma Detect_Blocking is active decrease the protected
30673         action nesting level.
30674
30675         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
30676         Protected_Action_Nesting.
30677
30678         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
30679         Common_ATCB record. It contains the dynamic level of protected action
30680         nesting for each task. It is needed for checking whether potentially
30681         blocking operations are called from protected operations.
30682         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
30683         Detect_Blocking is active or not in the partition.
30684
30685         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
30686         raise Program_Error if called from a protected operation.
30687         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
30688         Program_Error if called from a protected operation.
30689         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
30690         Program_Error if called from a protected operation.
30691
30692         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
30693         raise Program_Error if called from a protected operation.
30694
30695         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
30696         raise Program_Error if called from a protected operation, and increase
30697         the protected action nesting level.
30698         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
30699         Program_Error if called from a protected operation, and increase the
30700         protected action nesting level.
30701         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
30702         protected action nesting level.
30703
30704         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
30705         raise Program_Error if called from a protected operation, and increase
30706         the protected action nesting level.
30707         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
30708         Program_Error if called from a protected operation, and increase the
30709         protected action nesting level.
30710         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
30711         raise Program_Error if called from a protected operation.
30712         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
30713         active, raise Program_Error if called from a protected operation.
30714         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
30715         protected action nesting level.
30716
30717         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
30718         insertion of the statement raising Program_Error. The run time
30719         contains the required machinery for handling that.
30720
30721         * sem_util.ads: Change comment associated to procedure
30722         Check_Potentially_Blocking_Operation.
30723         This procedure does not insert a call for raising the exception because
30724         that is currently done by the run time.
30725
30726         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
30727
30728         * init.c: Add the global variable __gl_detect_blocking that indicates
30729         whether pragma Detect_Blocking is active (1) or not (0). Needed for
30730         making the pragma available at run time.
30731         (__gnat_set_globals): Pass and update the detect_blocking parameter.
30732
30733         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
30734         pragma Detect_Blocking is active.
30735
30736         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
30737
30738         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
30739         DB is found in the ali file. Any unit compiled with pragma
30740         Detect_Blocking active forces its effect in the whole partition.
30741
30742         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
30743         Detect_Blocking is active and delay is called from a protected
30744         operation.
30745
30746         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
30747         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
30748         Detect_Blocking is active (0 otherwise).
30749         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
30750         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
30751         otherwise).
30752
30753 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
30754
30755         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
30756         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
30757         package.
30758
30759         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
30760         (Register_Receiving_Stub): Add Subp_Info formal parameter.
30761         Update API in placeholder implemetation of s-parint to reflect changes
30762         in distribution runtime library.
30763
30764         * sem_ch3.adb (Expand_Derived_Record): Rename to
30765         Expand_Record_Extension.
30766
30767         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
30768         primitive operations of potentially distributed object types that have
30769         non-controlling anonymous access formals.
30770
30771         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
30772         subprogram.
30773         New implementation of expansion for remote access-to-subprogram types,
30774         based on the RACW infrastructure.
30775         This version of sem_dist is compatible with PolyORB/DSA as well as
30776         GLADE.
30777
30778         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
30779         Asynchrronous that applies to a remote access-to-subprogram type, mark
30780         the underlying RACW type as asynchronous.
30781
30782         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
30783          __gnat_using_gnu_linker to 1.
30784
30785         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
30786         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
30787         GNAT.Perfect_Hash_Generators, and remove the empty
30788         GNAT.Perfect_Hash package.
30789
30790         * atree.adb: Minor reformatting
30791
30792         * exp_ch3.adb (Expand_Derived_Record): Rename to
30793         Expand_Record_Extension.
30794         (Build_Record_Init_Proc.Build_Assignment): The default expression in
30795         a component declaration must remain attached at that point in the
30796         tree so New_Copy_Tree copies it if the enclosing record type is derived.
30797         It is therefore necessary to take a copy of the expression when building
30798         the corresponding assignment statement in the init proc.
30799         As a side effect, in the case of a derived record type, we now see the
30800         original expression, without any rewriting that could have occurred
30801         during expansion of the ancestor type's init proc, and we do not need
30802         to go back to Original_Node.
30803
30804         * exp_ch3.ads (Expand_Derived_Record): Rename to
30805         Expand_Record_Extension.
30806
30807         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
30808         Returns the RACW type used to implement a remote access-to-subprogram
30809         type.
30810         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
30811         New subprograms. Used to create a proxy tagged object for a remote
30812         subprogram. The proxy object is used as the designated object
30813         for RAS values on the same partition (unless All_Calls_Remote applies).
30814         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
30815         System.Partition_Interface.Get_Unique_Remote_Pointer.
30816         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
30817         Renamed from Add_RAS_*_Attribute.
30818         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
30819         subprograms.
30820         New implementation of expansion for remote access-to-subprogram types,
30821         based on the RACW infrastructure.
30822
30823         * exp_dist.ads (Copy_Specification): Update comment to note that this
30824         function can copy the specification from either a subprogram
30825         specification or an access-to-subprogram type definition.
30826
30827 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
30828
30829         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
30830         in an instance, between an explicit subprogram an one inherited from a
30831         type derived from an actual.
30832
30833         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
30834         add a polling call if the subprogram is to be inlined by the back-end,
30835         to avoid repeated calls with multiple inlinings.
30836
30837         * checks.adb (Apply_Alignment_Check): If the expression in the address
30838         clause is a call whose name is not a static entity (e.g. a dispatching
30839         call), treat as dynamic.
30840
30841 2004-09-09  Robert Dewar  <dewar@gnat.com>
30842
30843         * g-trasym.ads: Minor reformatting
30844
30845         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
30846         packed arrays, since unused bits are expected to be zero for a
30847         comparison.
30848
30849 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
30850
30851         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
30852         comment.
30853
30854 2004-09-09  Pascal Obry  <obry@gnat.com>
30855
30856         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
30857         enable map file generation. Add the right option to generate the map
30858         file if Map_File is set to True.
30859
30860         * gnatdll.adb (Gen_Map_File): New variable.
30861         (Syntax): Add info about new -m (Map_File) option.
30862         (Parse_Command_Line): Add support for -m option.
30863         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
30864         Minor reformatting.
30865
30866 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
30867
30868         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
30869         new gnatdist implementation.
30870         Define a subpackage isolating the output routines specific to this
30871         verbose mode.
30872
30873 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
30874
30875         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
30876
30877         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
30878
30879 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
30880
30881         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
30882         internal unit.
30883
30884         * opt.ads: Add Ada_Version_Runtime constant used to decide which
30885         version of the language is used to compile the run time.
30886
30887 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
30888
30889         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
30890         of variable length temporaries for function return now that the
30891         back-end and gigi support it.
30892
30893 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30894
30895         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
30896
30897         * trans.c (struct stmt_group): Delete field GLOBAL.
30898         (gnat_init_stmt_group): Do not initialize it.
30899         (call_to_gnu): Use save_expr, not protect_multiple_eval.
30900         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
30901         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
30902         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
30903         (start_stmt_group): Likewise.
30904         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
30905
30906         * utils2.c (ggc.h): Include.
30907         (build_call_raise): Call build_int_cst, not build_int_2.
30908
30909         * utils.c (gnat_init_decl_processing): Fix arg to
30910         build_common_tree_nodes.
30911         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
30912         (gnat_define_builtin): Set built_in_decls.
30913         (init_gigi_decls): Call build_int_cst, not build_int_2.
30914
30915         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
30916         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
30917         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
30918         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
30919         SET_TYPE_MODULE): Use them.
30920         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
30921         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
30922         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
30923         SET_TYPE_ADA_SIZE): Likewise.
30924         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
30925         (DECL_CONST_CORRESPONDING_VAR,
30926         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
30927         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
30928         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
30929         (TYPE_RM_SIZE_NUM): New macro.
30930         (TYPE_RM_SIZE): Modified to use above.
30931
30932         * cuintp.c: (build_cst_from_int): New function.
30933         (UI_To_gnu): Use it.
30934
30935         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
30936         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
30937         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
30938         MIN_EXPR for the size, copy it into new.
30939
30940 2004-09-01  Robert Dewar  <dewar@gnat.com>
30941
30942         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
30943         packed indexed component where array is an IN OUT formal. This
30944         generated garbage code previously.
30945
30946         * gnat_ugn.texi: Document -fverbose-asm
30947
30948         * gnat-style.texi: Minor updates (note that boolean constants and
30949         variables are joined with AND/OR rather than short circuit forms).
30950
30951 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
30952
30953         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
30954         it is an upward conversion of an untagged type with no representation
30955         change.
30956
30957 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
30958
30959         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
30960         System.Partition_Interface.
30961
30962         * checks.adb (Apply_Access_Checks): Do not generate checks when
30963         expander is not active (but check for unset reference to prefix of
30964         dereference).
30965
30966         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
30967         pragma Debug as an if statement with a constant condition, for
30968         consistent treatment of entity references contained within the
30969         enclosed procedure call.
30970
30971 2004-09-01  Vincent Celier  <celier@gnat.com>
30972
30973         * bindgen.adb: (Set_EA_Last): New procedure
30974         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
30975         Set_EA_Last.
30976         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
30977         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
30978         linked without errors.
30979         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
30980         ST and EA.
30981         (Gen_Exception_Table_C): Correct same bugs
30982
30983         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
30984
30985         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
30986         on Windows, make sure that the drive letter is in upper case.
30987
30988         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
30989         Windows, when the drive letter is added and Case_Sensitive is True, the
30990         drive letter is forced to upper case.
30991
30992         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
30993         to Options_2 for the call to MLib.Utl.Gcc.
30994
30995         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
30996         directory separator when defining BASE_DIR.
30997
30998 2004-09-01  Pascal Obry  <obry@gnat.com>
30999
31000         * gprcmd.adb (Extend): Do not output trailing directory separator. This
31001         is not needed and it confuses Windows GNU/make which does not report
31002         directory terminated by a slash as a directory.
31003         (gprcmd): Idem for "pwd" internal command.
31004
31005         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
31006         target names rewrite to fix regressions with recent version of
31007         GNU/make. Starting with GNU/make 3.80 the pipe character was not
31008         handled properly anymore.
31009
31010 2004-09-01  Andreas Schwab  <schwab@suse.de>
31011
31012         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
31013         * raise.c [!IN_RTS]: Undef abort.
31014
31015 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
31016
31017         * utils2.c (build_allocator): Use ssize_int.
31018
31019         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
31020
31021 2004-08-27  Andreas Schwab  <schwab@suse.de>
31022
31023         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
31024
31025 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
31026             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31027
31028         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
31029
31030 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
31031
31032         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
31033         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
31034         * utils.c (init_gigi_decls): Likewise.
31035         * utils2.c (build_call_raise, build_allocator): Likewise.
31036
31037 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
31038
31039         * utils.c (gnat_init_decl_processing): Adjust
31040         build_common_tree_nodes call.
31041
31042 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
31043
31044         * utils2.c (build_allocator): Use build_int_cst for negative
31045         size types.
31046
31047 2004-08-18  Richard Henderson  <rth@redhat.com>
31048
31049         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
31050
31051 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
31052
31053         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
31054         call.s
31055         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
31056         (gnat_to_gnu): Likewise.
31057
31058 2004-08-16  Pascal Obry  <obry@gnat.com>
31059
31060         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
31061         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
31062         option and not mdll anymore. Update comment.
31063
31064 2004-08-16  Pascal Obry  <obry@gnat.com>
31065
31066         * bld.adb (Put_Include_Project): Properly handle directory separators
31067         on Windows.
31068
31069 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
31070
31071         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
31072         decreasing the number of allocated junk nodes while searching for the
31073         appropriate subprogram.
31074
31075 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
31076
31077         * cuintp.c (UI_To_gnu): Use build_int_cst..
31078         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
31079         * utils.c (init_gigi_decls): Likewise.
31080         * utils2.c (build_call_raise): Likewise.
31081
31082 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
31083
31084         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
31085         for a global aliased object with a variable size and an unconstrained
31086         nominal subtype, pretend there is no initializer if the one we have is
31087         incomplete, and avoid referencing an inexistant component in there. The
31088         part we have will be rebuilt anyway and the reference may confuse
31089         further operations.
31090
31091 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
31092
31093         * einfo.ads: Minor reformatting
31094
31095         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
31096         restrictions in the ALI if we only want to warn about violations.
31097
31098 2004-08-13  Vincent Celier  <celier@gnat.com>
31099
31100         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
31101         when creating a new Unit_Record in table Units.
31102
31103         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
31104         that are violated, if any.
31105
31106         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
31107         add directory separator if path already ends with a directory separator.
31108
31109 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
31110
31111         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
31112         unit, this is an attempt to inline a construct that is not available in
31113         the current restricted mode, so abort rather than trying to continue.
31114
31115         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
31116         discriminants that rename those of the parent, recover names of
31117         original discriminants for the constraint on the full view of the
31118         parent.
31119         (Complete_Private_Subtype): Do not create a subtype declaration if the
31120         subtype is an itype.
31121
31122         * gnat_rm.texi: Added section on implementation of discriminated
31123         records with default values for discriminants.
31124
31125 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
31126
31127         PR ada/15601
31128         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
31129         the second operand is overloaded.
31130
31131 2004-08-10  Richard Henderson  <rth@redhat.com>
31132
31133         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
31134         add __builtin_alloca.
31135
31136 2004-08-10  Richard Henderson  <rth@redhat.com>
31137
31138         * config-lang.in (boot_language): Yes.
31139
31140 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
31141
31142         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
31143         from complaining on potential uninitialized reference.
31144         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
31145         new specification and test explicitly for non-zero return value.
31146
31147         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
31148         returning C.int, to avoid using a derived boolean type.
31149
31150         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
31151         Duplicate_Subexpr_No_Checks in preference to direct use of
31152         Remove_Side_Effects and New_Copy_Tree.
31153         Clear Comes_From_Source on prefix of 'Size attribute reference.
31154
31155         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
31156         g-socthi-vxworks.adb: Change calls to
31157         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
31158         and test explicitly for non-zero return value.
31159
31160         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
31161         (Is_Socket_In_Set): Declare imported function as returning C.int, to
31162         avoid using a derived boolean type.
31163
31164 2004-08-09  Albert Lee  <lee@gnat.com>
31165
31166         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
31167
31168 2004-08-09  Pascal Obry  <obry@gnat.com>
31169
31170         * gnat_ugn.texi: Document new way to build DLLs on Windows using
31171         GCC's -shared option.
31172
31173         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
31174         Options_2 parameter (options put after object files).
31175
31176 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
31177
31178         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
31179         ignore overflows on low and high bounds of an index to also account for
31180         differences in signedness between sizetype and gnu_index_subtype.
31181         These are as legitimate as the ones caused by a lower TYPE_PRECISION
31182         on sizetype.
31183
31184 2004-08-09  Robert Dewar  <dewar@gnat.com>
31185
31186         * s-solita.ads, s-solita.adb: Minor reformatting
31187
31188         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
31189         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
31190         obsolescent section
31191         Add note that No_Implicit_Conditionals does not suppress
31192         run time constraint checks.
31193
31194         * vms_conv.ads: Minor reformatting
31195
31196         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
31197         and necessary for following change).
31198         (Mark): Return new format Mark_Id containing sec stack address
31199         (Release): Use sec stack address from Mark_Id avoiding Self call
31200
31201         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
31202         pointer (cleanup and necessary for following change).
31203         Define Mark_Id as record containing address of secondary stack, that way
31204         Release does not need to find the stack again, decreasing the number of
31205         calls to Self and improving efficiency.
31206
31207         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
31208
31209         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
31210         case variable into the individual case branches when possible.
31211
31212         * sem_ch11.adb: Minor reformatting
31213
31214         * prj.ads: Correct spelling of suffixs
31215
31216         * prj-nmsc.adb: Minor reformatting
31217         Correct spelling suffixs throughout (also in identifiers)
31218
31219         * freeze.adb: Minor spelling correction
31220
31221         * exp_ch2.adb: Cleanups to handling of Current_Value
31222         (no functional effect).
31223
31224         * bld.adb: Correct spelling of suffixs
31225
31226         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
31227
31228 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
31229
31230         PR ada/15408
31231         * sem_ch7.adb (Install_Private_Declarations): In the body of the
31232         package or of a child, private entities are both immediately_visible
31233         and not hidden.
31234
31235 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
31236
31237         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
31238         there are no range checks on the value of the literal.
31239
31240         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
31241         wrapped is the triggering alternative of an asynchronous select, action
31242         statements mustbe inserted before the select itself.
31243
31244         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
31245         case where the prefix is a protected function call.
31246         (Resolve_Attribute, case 'Access): The attribute reference on a
31247         subprogram is legal in a generic body if the subprogram is declared
31248         elsewhere.
31249
31250 2004-08-09  Vincent Celier  <celier@gnat.com>
31251
31252         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
31253         languages, otherwise building the library may fail with unresolved
31254         symbols.
31255         (Compile_Sources): Do not build libraries if -c switch is used
31256
31257         * gnatlink.adb (Process_Args): New switches -M and -Mmap
31258         (Write_Usage): If map file creation is supported, output new switches
31259         -M and -Mmap.
31260         (Gnatlink): When -M is specified, add the necessary switch(es) to the
31261         gcc call, when supported.
31262
31263         * Makefile.in: Added indepsw.o to the object list for gnatlink
31264         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
31265
31266         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
31267         indepsw.adb, indepsw.ads: New files.
31268
31269 2004-08-09  Bernard Banner  <banner@gnat.com>
31270
31271         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
31272
31273         * Makefile.in: add section for vxworks x86
31274
31275 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
31276
31277         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
31278         per-object constrained components where the discriminant is of an
31279         Access type.
31280         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
31281         the parent initialization procedure for derived Unchecked_Unions.
31282         Instead, derived Unchecked_Unions build their own initialization
31283         procedure.
31284         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
31285         Check the body of the subprogram for details.
31286         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
31287         functions for derived Unchecked_Union types by introducing a condition.
31288         Allow the creation of TSS equality functions for Unchecked_Unions.
31289         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
31290         Add formal parameter Discr to function signature. Discr is used to
31291         control the generated case statement for Unchecked_Union types.
31292         (Make_Eq_If): Rename formal parameter Node to E in function signature.
31293
31294         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
31295         Unchecked_Unions.
31296         Check the body of the subprogram for details.
31297         (Expand_Composite_Equality): Augment composite type equality to include
31298         correct handling of Unchecked_Union components.
31299         (Expand_N_In): Add condition to detect illegal membership tests when the
31300         subtype mark is a constrained Unchecked_Union and the expression lacks
31301         inferable discriminants, and build a Raise_Program_Error node.
31302         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
31303         to detect types that contain components of unconstrained Unchecked_Union
31304         subtype. Add condition to detect equality between types that have an
31305         unconstrained Unchecked_Union component, and build a Raise_Program_Error
31306         node. Add condition to detect equality between Unchecked_Union types
31307         that lack inferable discriminants, and build a Raise_Program_Error node.
31308         Otherwise build a TSS equality function call.
31309         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
31310         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
31311         with the operand lacking inferable discriminants, and build a Raise_
31312         Program_Error node.
31313         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
31314         composite equality.
31315         (Has_Inferable_Discriminants): Implement new predicate for objects and
31316         expressions of Unchecked_Union type. Check the body of subprogram for
31317         details.
31318         (Has_Unconstrained_UU_Components): Add function
31319         Component_Is_Unconstrained_UU. It is used to detect whether a single
31320         component is of an unconstrained Unchecked_Union subtype. Add function
31321         Variant_Is_Unconstrained_UU. It is used to detect whether a single
31322         component inside a variant is of an unconstrained Unchecked_Union type.
31323
31324         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
31325         inferred discriminant values. Add condition to generate a case
31326         statement with an inferred discriminant as the switch.
31327         (Make_Component_List_Assign): Introduce a Boolean flag that determines
31328         the behaviour of the subprogram in the presence of an Unchecked_Union.
31329         Add condition to trigger the usage of the inferred discriminant value
31330         as the generated case statement switch.
31331         (Make_Field_Assign): Introduce a Boolean flag that determines the
31332         behaviour of the subprogram in the presence of an Unchecked_Union. Add
31333         condition to trigger the usage of the inferred discriminant value as
31334         the right-hand side of the generated assignment.
31335
31336         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
31337         parameter generation when dealing with Unchecked_Unions.
31338
31339         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
31340         checks for Unchecked_Unions.
31341
31342         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
31343
31344         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
31345         Raise_Program_Error nodes for the execution of Read and Write
31346         attributes of Unchecked_Union types and the execution of Input and
31347         Output attributes of Unchecked_Union types that lack default
31348         discriminant values.
31349
31350         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
31351         Unchecked_Union. Add procedure Check_Component. It is used to inspect
31352         per-object constrained components of Unchecked_Unions for being
31353         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
31354         check individual components withing a variant.
31355
31356         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
31357         comparison of Unchecked_Unions.
31358         (Resolve_Equality_OP): Remove guard that prevents equality between
31359         Unchecked_Unions.
31360
31361         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
31362         of component subtypes for Unchecked_Union components.
31363         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
31364         since it is the actual subtype.
31365
31366         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
31367         pass of Unchecked_Union subtypes as generic actuals to formal types
31368         that lack known_discriminant_parts or that are derived Unchecked_Union
31369         types, and do nothing. In any other case, produce an error message.
31370
31371         * sem_ch3.adb (Analyze_Component_Declaration): Add function
31372         Contains_POC. It determines whether a constraint uses the discriminant
31373         of an enclosing record type.
31374         Add condition to detect per-object constrained component and set the
31375         appropriate flag.
31376         (Derived_Type_Declaration): Remove guard that prevents derivation from
31377         Unchecked_Union types.
31378         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
31379         Union subtypes.
31380
31381         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
31382         references to Unchecked_Union discriminants.
31383
31384         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
31385         formal generation when dealing with Unchecked_Unions.
31386         (Set_Actual_Subtypes): Add condition to prevent generation of actual
31387         subtypes for Unchecked_Unions.
31388
31389         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
31390         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
31391         completions of discriminated partial views by Unchecked_Unions and
31392         produce an error message.
31393
31394 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31395
31396         * trans.c (struct stmt_group): New field, GLOBAL.
31397         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
31398         (struct elab_info): New struct.
31399         (elab_info_list, gnu_elab_proc_stack): New variables.
31400         (Compilation_Unit_to_gnu): New procedure.
31401         (gigi): Call it and also handle elaboration procs we've saved.
31402         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
31403         global field from parent.
31404         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
31405         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
31406         (start_stmt_group): Initialize global field from parent.
31407         (add_decl_expr): Set to global for current statement group.
31408         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
31409         post.
31410
31411         * utils.c (global_bindings_p): True when no current_function_decl; no
31412         longer check current_binding_level.
31413
31414 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
31415
31416         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
31417         choice.
31418
31419         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
31420
31421 2004-08-06  Andreas Schwab  <schwab@suse.de>
31422
31423         * utils.c (gnat_define_builtin): Remove second parameter of
31424         make_decl_rtl.
31425         (begin_subprog_body): Likewise.
31426
31427 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
31428
31429         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
31430         optimization, not supported by the tree-ssa back-end.
31431
31432 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
31433
31434         * s-mastop-irix.adb: Update comments.
31435
31436         * a-except.adb (Exception_Information): Raise Constraint_Error if
31437         exception Id is Null_Id.
31438         This is required behavior, which is more reliably and clearly checked
31439         at the top level interface level.
31440
31441 2004-07-26  Javier Miranda  <miranda@gnat.com>
31442
31443         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
31444         call if a component has no default_expression and the box is used.
31445
31446         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
31447         default_expression and you use box, it behaves as if you had declared a
31448         stand-alone object.
31449         (Resolve_Record_Aggregate): If a component has no default_expression and
31450         you use box, it behaves as if you had declared a stand-alone object.
31451
31452         * sem_ch10.adb (Install_Siblings): Do not make visible the private
31453         entities of private-with siblings.
31454
31455 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
31456
31457         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
31458         for a component of an itype, set the parent pointer for analysis,
31459         there is no list in which to insert it.
31460
31461         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
31462         bona-fide renamings, not for inherited operations.
31463
31464         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
31465         actual for a formal that is an access parameter, create local
31466         finalization list even if the expression is not an aggregate.
31467
31468 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
31469
31470         PR ada/16213
31471         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
31472         Diagnose properly illegal subprogram renamings that are library units.
31473
31474 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
31475
31476         PR ada/15588
31477         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
31478         conversion rewritten as an unchecked conversion, check that original
31479         expression is a variable.
31480
31481         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
31482         unchecked_conversion, create new node rather than rewriting in place,
31483         to preserve original construct.
31484
31485 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31486
31487         * gigi.h (gnat_expand_body): Deleted.
31488
31489         * Make-lang.in: (trans.o): Depends on function.h.
31490
31491         * misc.c: (gnat_expand_body): Moved to here.
31492
31493         * trans.c (gnat_expand_body_1): Deleted.
31494         (gnat_expand_body): Moved from here.
31495         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
31496         (add_stmt): Check for marked visited with global_bindings_p.
31497         (gnat_gimplify_expr, case COMPONENT_REF): New case.
31498         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
31499
31500         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
31501         VIEW_CONVERT_EXPR if not operation type.
31502
31503         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
31504         fat pointer.
31505
31506         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
31507         changes: reformatting of negation operators, removing unneeded
31508         inequality comparison with zero, converting equality comparisons with
31509         zero to negations, changing int/0/1 to bool/false/true, replace calls
31510         to gigi_abort with abort, and various other similar changes.
31511
31512 2004-07-26  Vincent Celier  <celier@gnat.com>
31513
31514         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
31515         "setup".
31516
31517         * make.adb (Gnatmake): Fail when a library is not present and there is
31518         no object directory.
31519
31520         * mlib-prj.adb (Check_Library): No need to check if the library needs
31521         to be rebuilt if there is no object directory, hence no object files
31522         to build the library.
31523
31524         * opt.ads (Setup_Projects): New Boolean flag.
31525
31526         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
31527         Location.
31528         Create directory when Kind /= "" and in "gnat setup". Report error if
31529         directory cannot be created.
31530         (Ada_Check): Create library interface copy dir if it does not exist
31531         and we are in "gnat setup".
31532         (Find_Sources): No error if in "gnat setup" and no Ada sources were
31533         found.
31534         (Language_Independent_Check): Create object directory, exec directory
31535         and/or library directory if they do not exist and we are in
31536         "gnat setup".
31537
31538         * vms_conv.ads: (Command_Type): New command Setup.
31539
31540         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
31541
31542         * vms_data.ads: Add qualifiers/switches for new built-in command
31543         "setup".
31544
31545 2004-07-25  Richard Henderson  <rth@redhat.com>
31546
31547         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
31548         DECL_IGNORED_P on RESULT_DECL.
31549
31550 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
31551
31552         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
31553         allocation and potentially overflowing update with
31554         Tailored_Exception_Information. Use the sec-stack free procedural
31555         interface to output Exception_Information instead.
31556
31557         * a-except.adb (To_Stderr): New subprogram for character, and string
31558         version moved from a-exextr to be visible from other separate units.
31559         (Tailored_Exception_Information): Remove the procedural version,
31560         previously used by the default Last_Chance_Handler and not any more.
31561         Adjust various comments.
31562
31563         * a-exexda.adb: Generalize the exception information procedural
31564         interface, to minimize the use of secondary stack and the need for
31565         local buffers when the info is to be output to stderr:
31566         (Address_Image): Removed.
31567         (Append_Info_Character): New subprogram, checking for overflows and
31568         outputing to stderr if buffer to fill is of length 0.
31569         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
31570         (Append_Info_Address, Append_Info_Exception_Name,
31571         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
31572         Append_Info_Basic_Exception_Traceback,
31573         Append_Info_Exception_Information): New subprograms.
31574         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
31575         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
31576         Exception_Info_Maxlength, Exception_Name_Length,
31577         Exception_Message_Length): New subprograms.
31578         (Exception_Information): Use Append_Info_Exception_Information.
31579         (Tailored_Exception_Information): Use
31580         Append_Info_Basic_Exception_Information.
31581         Export services for the default Last_Chance_Handler.
31582
31583         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
31584         other separate units.
31585
31586 2004-07-20  Vincent Celier  <celier@gnat.com>
31587
31588         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
31589
31590 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
31591
31592         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
31593         emit itype references for the designated types of component types that
31594         are declared outside of the full record declaration, and that may
31595         denote a partial view of that record type.
31596
31597 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
31598
31599         PR ada/15607
31600         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
31601         which is the designated type in an access component declaration, to the
31602         list of incomplete dependents of the parent type, to avoid elaboration
31603         issues with out-of-scope subtypes.
31604         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
31605         full view of the parent.
31606
31607 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
31608
31609         PR ada/15610
31610         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
31611         entities that are hidden, such as references to generic actuals
31612         outside an instance.
31613
31614 2004-07-20  Javier Miranda  <miranda@gnat.com>
31615
31616         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
31617         support to the new notation.
31618         (Analyze_Selected_Component): Add call to Try_Object_Operation.
31619
31620 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
31621
31622         * s-taprob.adb: Adding the elaboration code required for initializing
31623         the tasking soft links that are common to the full and the restricted
31624         run times.
31625
31626         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
31627         restricted run time has been moved to the package
31628         System.Soft_Links.Tasking.
31629
31630         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
31631         restricted run time has been moved to the package
31632         System.Soft_Links.Tasking.
31633
31634         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
31635
31636         * s-solita.ads, s-solita.adb: New files.
31637
31638 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31639
31640         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
31641         Case_Statement_to_gnu): Split off from gnat_to_gnu.
31642         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
31643         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
31644         Exception_Handler_to_gnu_zcx): Likewise.
31645
31646 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
31647
31648         * gigi.h (builtin_function): Declare.
31649
31650 2004-07-15  Robert Dewar  <dewar@gnat.com>
31651
31652         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
31653         reformatting
31654
31655         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
31656         access values as an example of a warning.
31657
31658         * gnat_rm.texi: Document new attribute Has_Access_Values
31659
31660         * gnat-style.texi: Document that box comments belong on nested
31661         subprograms
31662
31663         * sem_util.ads (Has_Access_Values): Improved documentation
31664
31665         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
31666
31667         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
31668         (Process_Interface_Name): Call to this new procedure
31669         (Set_Extended_Import_Export_External_Name): Call to this new procedure
31670
31671         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
31672
31673         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
31674
31675         * einfo.ads: Minor comment typo fixed
31676
31677 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
31678
31679         * snames.adb: Add _atcb.
31680
31681         * snames.ads: Add Name_uATCB.
31682
31683         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
31684         (in the expanded code) when using the restricted run time.
31685
31686         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
31687         a in parameter in order to allow ATCBs to be preallocated (in the
31688         expanded code).
31689
31690         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
31691         order to allow ATCBs to be preallocated. In case of error, the ATCB is
31692         deallocated in System.Tasking.Stages.
31693
31694         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
31695         order to allow ATCBs to be preallocated.
31696
31697         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
31698         here. It was previously done in Initialize_ATCB.
31699
31700         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
31701
31702         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
31703         Restricted run time.
31704
31705         * exp_ch3.adb: When using the Restricted run time, pass the
31706         preallocated Ada_Task_Control_Block when creating a task.
31707
31708 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
31709
31710         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
31711         function call that is itself an actual in an enclosing call, diagnose
31712         problem here rather than assuming that resolution will catch it.
31713
31714         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
31715         the local copy of a generic unit for a formal package, and the generic
31716         is a child unit, install private part of ancestors before compiling
31717         private part of spec.
31718
31719         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
31720         use scope entities rather than tree structures, to handle properly
31721         parent units that are instances rewritten as bodies for inlining
31722         purposes.
31723
31724         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
31725         Remove_Parents): Handle properly a parent unit that is an
31726         instantiation, when the unit has been rewritten as a body for inlining
31727         purposes.
31728
31729         * par.adb (Goto_List): Global variable to collect goto statements in a
31730         given unit, for use in detecting natural loops.
31731
31732         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
31733         use in detecting natural loops.
31734
31735         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
31736         backwards goto's, and rewrite as a infinite loop, to improve locality
31737         of temporaries.
31738
31739         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
31740         subcomponent that includes an indexed reference, to prevent the
31741         generation of copies that would miscompile the desired assignment
31742         statement.
31743         (Build_Task_Image_Decls): Add a numeric suffix to
31744         generated name for string variable, to avoid spurious conflicts with
31745         the name of the type of a single protected object.
31746
31747         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
31748         loop with an explicit exit statement, to avoid generating an
31749         out-of-range value with 'Succ leading to spurious constraint_errors
31750         when compiling with -gnatVo.
31751
31752 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
31753
31754         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
31755         might not be analyzed yet, even if its Etype is already set (case of an
31756         unchecked conversion built using Unchecked_Convert_To, for example).
31757         If the prefix has already been analyzed, this will be a nop anyway.
31758
31759         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
31760         controller type, or an assignment of a record type with controlled
31761         components, copy only user data, and leave the finalization chain
31762         pointers untouched.
31763
31764 2004-07-15  Vincent Celier  <celier@gnat.com>
31765
31766         * make.adb (Collect_Arguments): Improve error message when attempting
31767         to compile a source not part of any project, when -x is not used.
31768
31769         * prj.ads: (Defined_Variable_Kind): New subtype
31770
31771         * prj-attr.adb (Register_New_Package): Two new procedures to register
31772         a package with or without its attributes.
31773         (Register_New_Attribute): Mew procedure to register a new attribute in a
31774         package.
31775         New attribute oriented subprograms: Attribute_Node_Id_Of,
31776         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
31777         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
31778         Next_Attribute.
31779         New package oriented subprograms: Package_Node_Id_Of,
31780         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
31781
31782         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
31783         type.
31784         (Package_Node_Id): Now a private, self initialized type
31785         (Register_New_Package): New procedure to register a package with its
31786         attributes.
31787         New attribute oriented subprograms: Attribute_Node_Id_Of,
31788         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
31789         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
31790         Next_Attribute.
31791         New package oriented subprograms: Package_Node_Id_Of,
31792         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
31793
31794         * prj-dect.adb (Parse_Attribute_Declaration,
31795         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
31796
31797         * prj-makr.adb (Make): Parse existing project file before creating
31798         other files. Fail if there was an error during parsing.
31799
31800         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
31801         new spec of Prj.Attr.
31802
31803         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
31804         to new spec of Prj.Attr.
31805
31806 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31807
31808         * utils2.c: Fix typo in comment.
31809
31810 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31811
31812         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
31813         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
31814
31815 2004-07-14  Andreas Schwab  <schwab@suse.de>
31816
31817         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
31818
31819 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31820
31821         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
31822         object type.
31823         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
31824         TYPE_STUB_DECL.
31825
31826         * misc.c (gnat_types_compatible_p): New function.
31827         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
31828         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
31829
31830         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
31831         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
31832         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
31833         (mark_visited): Don't mark dummy type.
31834         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
31835         parameter, we must remove any LJM building from GNU_NAME.
31836         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
31837         (pos_to_constructor): Use int_const_binop.
31838         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
31839         PARM_DECL.
31840
31841         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
31842         (gnat_pushlevel): Set TREE_USE on BLOCK node.
31843         (gnat_install_builtins): Add __builtin_memset.
31844
31845 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
31846
31847         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
31848         for a renaming, stabilize the initialization expression if we are at a
31849         local level.  At the local level, uses of the renaming may be performed
31850         by a direct dereference of the initializing expression, and we don't
31851         want possible variables there to be evaluated for every use.
31852
31853         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
31854         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
31855         them on the way.  Account for the fact that we may introduce side
31856         effects in the process.
31857
31858 2004-07-13  Richard Henderson  <rth@redhat.com>
31859
31860         * misc.c (default_pass_by_ref): Use pass_by_reference.
31861
31862 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
31863
31864         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
31865         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
31866
31867 2004-07-08  Richard Henderson  <rth@redhat.com>
31868
31869         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
31870         commentary.
31871
31872 2004-07-06  Vincent Celier  <celier@gnat.com>
31873
31874         * vms_conv.ads: Minor reformatting.
31875         Alphabetical order for enumerated values of type Command_Type, to have
31876         the command in alphabetical order for the usage.
31877
31878         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
31879         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
31880
31881         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
31882
31883         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
31884         (Add_Archive_Path): Only add the global archive if there is one.
31885         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
31886         or not any object file to put in the global archive, and don't build
31887         a global archive if there is none.
31888         (X_Switches): New table
31889         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
31890         in the X_Switches table, if any.
31891         (Initialize): Make sure the X_Switches table is empty
31892         (Scan_Arg): Record -X switches in table X_Switches
31893
31894         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
31895
31896         * make.adb: Minor comment fix
31897
31898         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
31899         invoked with directory information, add the directory in front of the
31900         path.
31901
31902         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
31903         invoked with directory information, add the directory in front of the
31904         path.
31905
31906         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
31907         when Keep_Temporary_Files is False.
31908         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
31909         directory information, add the directory in front of the path.
31910         When not on VMS, handle new switch -dn before the command to set
31911         Keep_Temporary_Files to True.
31912         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
31913         everywhere.
31914
31915         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
31916         invoked with directory information, add the directory in front of the
31917         path.
31918
31919 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
31920
31921         * snames.ads, snames.adb (Name_Stub): New name for the distributed
31922         systems annex.
31923
31924         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
31925         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
31926
31927         * g-socket.adb (To_Timeval): Fix incorrect conversion of
31928         Selector_Duration to Timeval for the case of 0.0.
31929
31930         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
31931         documentation from Evolve_And_Then.
31932
31933 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
31934
31935         * s-taprop-tru64.adb, s-taprop-os2.adb,
31936         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
31937
31938 2004-07-06  Robert Dewar  <dewar@gnat.com>
31939
31940         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
31941         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
31942         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
31943         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
31944         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
31945         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
31946         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
31947         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
31948         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
31949         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
31950         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
31951         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
31952         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
31953         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
31954         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
31955         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
31956         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
31957         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
31958         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
31959         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
31960         vms_data.ads: Minor reformatting,
31961         Fix bad box comment format.
31962
31963         * gnat_rm.texi: Fix minor grammatical error
31964
31965         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
31966
31967         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
31968         more cases of discriminated records to be recognized as not needing a
31969         secondary stack.
31970         (Has_Access_Values): New function.
31971
31972         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
31973
31974         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
31975         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
31976         with LRM terminology).
31977         Change terminology in comments primitive type => elementary type.
31978
31979 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
31980
31981         PR ada/15602
31982         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
31983         parameters do not impose any requirements on the presence of a body.
31984
31985 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
31986
31987         PR ada/15593
31988         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
31989         compilation unit and is in an open scope at the point of instantiation,
31990         assume that a body may be present later.
31991
31992 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
31993
31994         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
31995         Improve error message when specified size is not supported.
31996
31997         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
31998         is never a primitive operation.
31999
32000 2004-07-05  Andreas Schwab  <schwab@suse.de>
32001
32002         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
32003         RECORD_OR_UNION_CHECK.
32004         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
32005
32006 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
32007
32008         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
32009         dependency on xgnatugn, instead build it via a submake.
32010         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
32011
32012 2004-07-04  Richard Henderson  <rth@redhat.com>
32013
32014         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
32015
32016 2004-07-01  Richard Henderson  <rth@redhat.com>
32017
32018         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
32019         * utils.c (max_size): Likewise.
32020
32021 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32022
32023         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
32024         and rest_of_type_compilation; add arg to create_*_decl.
32025         (annotate_decl_with_node): Deleted.
32026         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
32027         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
32028         (get_current_block_context, gnat_pushdecl): New declarations.
32029         (gnat_init_stmt_group): Likewise.
32030         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
32031         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
32032         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
32033         (gnat_init): Call gnat_init_stmt_group.
32034         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
32035         (gnu_pending_elaboration_list): Deleted.
32036         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
32037         (gigi): Rearrange initialization calls and move some to last above.
32038         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
32039         Delete calls to add_decl_expr; add arg to create_*_decl.
32040         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
32041         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
32042         begin_subprog_body and call it.
32043         Don't push and pop ggc context.
32044         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
32045         (add_stmt): Remove handling of DECL_EXPR from here.
32046         If not in function, mark visited.
32047         (add_decl_expr): Put global at top level.
32048         Check for cases of DECL_INITIAL we have to handle here.
32049         (process_type): Add extra arg to create_type_decl.
32050         (build_unit_elab): Rework to just gimplify.
32051         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
32052         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
32053         (get_pending_elaborations, pending_elaborations_p): Likewise.
32054         (push_pending_elaborations, pop_pending_elaborations): Likewise.
32055         (get_elaboration_location, insert_elaboration_list): Likewise.
32056         (gnat_binding_level): Renamed from ada_binding_level.
32057         (init_gnat_to_gnu): Don't clear pending_elaborations.
32058         (global_bindings_p): Treat as global if no current_binding_level.
32059         (set_current_block_context): New function.
32060         (gnat_pushdecl): Renamed from pushdecl; major rework.
32061         All callers changed.
32062         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
32063         (finish_record_type): Call call pushdecl for stub decl.
32064         (function_nesting_depth): Deleted.
32065         (begin_subprog_body): Delete obsolete code.
32066         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
32067
32068 2004-06-28  Robert Dewar  <dewar@gnat.com>
32069
32070         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
32071         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
32072         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
32073         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
32074         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
32075
32076         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
32077         deal with problem of inefficient slices on machines with strict
32078         alignment, when the slice is a component of a composite.
32079
32080         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
32081         machines, we need the check there as well.
32082
32083 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
32084
32085         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
32086         determine safe copying direction for overlapping slice assignments
32087         when component is controlled.
32088
32089         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
32090         formal derived type in the actual for a formal package are visible in
32091         the enclosing instance.
32092
32093 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
32094
32095         PR ada/15600
32096         * sem_util.adb (Trace_Components): Diagnose properly an illegal
32097         circularity involving a private type whose completion includes a
32098         self-referential component.
32099         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
32100         renaming or an instantiation from an implicit derived operation.
32101
32102 2004-06-28  Pascal Obry  <obry@gnat.com>
32103
32104         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
32105         DLL.
32106         (Library_File_Name_For): Idem.
32107
32108 2004-06-28  Matthew Gingell  <gingell@gnat.com>
32109
32110         * g-traceb.ads: Add explanatory note on the format of addresses
32111         expected by addr2line.
32112
32113 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
32114
32115         * Makefile.in: Force debugging information on s-tasdeb.adb,
32116         a-except.adb and s-assert.adb needed by the debugger.
32117
32118 2004-06-28  Vincent Celier  <celier@gnat.com>
32119
32120         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
32121         Need_To_Build_Lib.
32122         (Gnatmake): Ditto.
32123
32124         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
32125
32126         * prj.adb: Minor reformatting
32127         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
32128
32129         * prj.ads: Comment updates
32130         Minor reformatting
32131         (Project_Data): Change Flag1 to Need_To_Build_Lib.
32132         Remove Flag2: not used.
32133
32134         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
32135         declaration.
32136
32137         * gnat_ugn.texi: Put a "null;" declaration in one project file example
32138
32139         * gnat_rm.texi: Document Empty declarations "null;".
32140
32141         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
32142         front of the linker options.
32143         (Link_Foreign): Put the global archives and the libraries in front of
32144         the linker options.
32145
32146 2004-06-28  Javier Miranda  <miranda@gnat.com>
32147
32148         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
32149         (RTU_Loaded): Code cleanup
32150         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
32151         withed predefined units.
32152
32153         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
32154         explicitly withed predefined units.
32155         Fix typo in comment
32156
32157         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
32158         explicitly withed predefined units.
32159
32160 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32161
32162         * ada-tree.def (DECL_STMT): Deleted.
32163         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
32164         (DECL_STMT_VAR): Deleted.
32165         * decl.c: add_decl_stmt now add_decl_expr.
32166         * gigi.h: Likewise.
32167         * trans.c: Likewise.
32168         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
32169         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
32170         (add_stmt): Only handle padded type here.
32171         (add_stmt_with_node): Allow gnat_node to not be present.
32172         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
32173         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
32174         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
32175         make a SAVE_EXPR for the entire fat pointer.
32176         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
32177         (create_index_type): Make a DECL_EXPR.
32178         (end_subprog_body): Don't call allocate_struct_function here but
32179         do clear cfun.
32180
32181 2004-06-25  Pascal Obry  <obry@gnat.com>
32182
32183         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
32184         Relocatable from Build_Dynamic_Library call.
32185
32186         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
32187         Relocatable are now synonym.
32188
32189         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
32190
32191         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
32192         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
32193         call.
32194
32195         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
32196         Lib_Address and Relocatable.
32197         (Default_DLL_Address): Removed.
32198
32199         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
32200         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
32201         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
32202         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
32203         (Default_DLL_Address): Removed.
32204
32205         * mlib-tgt-mingw.adb: Ditto.
32206         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
32207
32208         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
32209         the initial thread stack size.
32210
32211         * a-strmap.ads: Move package L to private part as it is not used in
32212         the spec. Found while reading code.
32213
32214 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
32215
32216         * tracebak.c: Introduce support for a GCC infrastructure based
32217         implementation of __gnat_backtrace.
32218
32219         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
32220         any more. Use accessors instead. This eases maintenance and relaxes
32221         some alignment constraints.
32222         (_GNAT_Exception structure): Remove the Ada specific fields
32223         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
32224         a-exexpr.adb.
32225         (is_handled_by, __gnat_eh_personality): Replace component references to
32226         exception structure by use of the new accessors.
32227
32228         * init.c (__gnat_initialize): Adjust comments to match the just
32229         reverted meaning of the -static link-time option.
32230
32231         * adaint.c (convert_addresses): Arrange not to define a stub for
32232         mips-irix any more, as we now want to rely on a real version from a
32233         recent libaddr2line.
32234
32235         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
32236         the personality routine can use them and not have to rely on a C
32237         counterpart of the record anymore. This simplifies maintenance and
32238         relaxes the constraint of having Standard'Maximum_Alignment match
32239         BIGGEST_ALIGNMENT.
32240         Update comments, and add a section on the common header alignment issue.
32241
32242 2004-06-25  Geert Bosch  <bosch@gnat.com>
32243
32244         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
32245         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
32246
32247 2004-06-25  Robert Dewar  <dewar@gnat.com>
32248
32249         * gnat_rm.texi: Fix section on component clauses to indicate that the
32250         restriction on byte boundary placement still applies for bit packed
32251         arrays.
32252         Add comment on stack usage from Initialize_Scalars
32253
32254         * gnat_ugn.texi: Add documentation for -gnatyLnnn
32255
32256         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
32257         limiting nesting level.
32258
32259         * usage.adb: Add line for -gnatyLnnn switch
32260
32261         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
32262         sem_ch13.adb, exp_aggr.adb: Minor reformatting
32263
32264         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
32265         type as well as on the subtype. This corrects a problem in freeze in
32266         setting alignments of atomic types.
32267
32268         * sem_eval.ads: Minor comment typo fixed
32269
32270         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
32271         level.  Minor reformatting.
32272
32273         * fname.adb (Is_Predefined_File_Name): Require a letter after the
32274         minus sign. This means that file names like a--b.adb will not be
32275         considered predefined.
32276
32277         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
32278         record Test new flag and give diagnostic for bad component clause.
32279         (Freeze_Entity): Set alignment of array from component alignment in
32280         cases where this is safe to do.
32281
32282         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
32283         arrays.
32284
32285         * cstand.adb: (Create_Standard): Set alignment of String to 1
32286
32287         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
32288
32289         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
32290         code in the common constrained array cases.
32291
32292         * a-storio.adb: Change implementation to avoid possible alignment
32293         problems on machines requiring strict alignment (data should be moved
32294         as type Buffer, not type Elmt).
32295
32296         * checks.adb (Apply_Array_Size_Check): Improve these checks by
32297         killing the overflow checks which we really do not need (64-bits is
32298         enough).
32299
32300 2004-06-25  Vincent Celier  <celier@gnat.com>
32301
32302         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
32303         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
32304         inconditionally for the main project.
32305         (Recursive_Add_Archives.Add_Archive_Path): New procedure
32306         (Link_Executables.Check_Time_Stamps): New procedure
32307         (Link_Executables.Link_Foreign): New procedure
32308         Changes made to reduce nesting level of this package
32309         (Check): New procedure
32310         (Add_Switches): When not in quiet output, check that a switch is not
32311         the concatenation of several valid switches. If it is, issue a warning.
32312         (Build_Global_Archive): If the global archive is rebuilt, linking need
32313         to be done.
32314         (Compile_Sources): Rebuilding a library archive does not imply
32315         rebuilding the global archive.
32316         (Build_Global_Archive): New procedure
32317         (Build_Library): New name for Build_Archive, now only for library
32318         project
32319         (Check_Archive_Builder): New procedure
32320         (Create_Global_Archive_Dependency_File): New procedure
32321         (Gprmake): Call Build_Global_Archive before linking
32322         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
32323         throughout.
32324         (Scan_Arg): Display the Copyright notice when -v is used
32325
32326         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
32327         for gnatls.
32328
32329         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
32330         COMPILE.
32331         Add new GNAT LIST qualifier /FILES=
32332         Added qualifier /DIRECTORY= to GNAT METRIC
32333         Added qualifier /FILES= to GNAT METRIC
32334         Added qualifier /FILES to GNAT PRETTY
32335
32336         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
32337         to take into account both versions of the switch.
32338
32339         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
32340         always be the last switch to the gcc driver. Disable switch storing so
32341         that switches automatically added by the gcc driver are not put in the
32342         ALI file.
32343
32344         * prj.adb (Project_Empty): Take into account changes in components of
32345         Project_Data.
32346
32347         * prj.ads (Languages_Processed): New enumaration value All_Languages.
32348
32349         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
32350         used. Split Boolean component Ada_Sources_Present in two Boolean
32351         components Ada_Sources_Present and Other_Sources_Present.
32352         Minor reformatting
32353
32354         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
32355         instead of Sources_Present.
32356         (Set_Ada_Paths.Add.Recursive_Add): Ditto
32357
32358         * prj-nmsc.adb: Minor reformatting
32359         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
32360         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
32361         Check_Ada_Naming_Scheme.
32362         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
32363         throughout.
32364
32365         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
32366         In_Limited.
32367         Make sure that all cycles where there is at least one "limited with"
32368         are detected.
32369         (Parse_Single_Project): New Boolean parameter In_Limited
32370
32371         * prj-proc.adb (Recursive_Check): When Process_Languages is
32372         All_Languages, call first Prj.Nmsc.Ada_Check, then
32373         Prj.Nmsc.Other_Languages_Check.
32374
32375         * prj-proc.adb (Process): Use Ada_Sources_Present or
32376         Other_Sources_Present (instead of Sources_Present) depending on
32377         Process_Languages.
32378
32379         * lang-specs.h: Keep -g and -m switches in the same order, and as the
32380         last switches.
32381
32382         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
32383         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
32384         False.
32385         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
32386         False.
32387
32388         * lib.ads (Disable_Switch_Storing): New procedure.
32389
32390         * make.adb: Modifications to reduce nesting level of this package.
32391         (Check_Standard_Library): New procedure
32392         (Gnatmake.Check_Mains): New procedure
32393         (Gnatmake.Create_Binder_Mapping_File): New procedure
32394         (Compile_Sources.Compile): Add switch -gnatez as the last option
32395         (Display): Never display -gnatez
32396
32397         * Makefile.generic:
32398         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
32399
32400         * gnatcmd.adb (Check_Project): New function
32401         (Process_Link): New procedure to reduce nesting depth
32402         (Check_Files): New procedure to reduce the nesting depth.
32403         For GNAT METRIC, include the inherited sources in extending projects.
32404         (GNATCmd): When GNAT LS is invoked with a project file and no files,
32405         add the list of files from the sources of the project file. If this list
32406         is too long, put it in a temp text files and use switch -files=
32407         (Delete_Temp_Config_Files): Delete the temp text file that contains
32408         a list of source for gnatpp or gnatmetric, if one has been created.
32409         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
32410         in the project file is too large, create a temporary text file that
32411         list them and pass it to the tool with "-files=<temp text file>".
32412         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
32413
32414         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
32415         generated file is in not in Ada.
32416
32417         * gnatls.adb: Remove all parameters And_Save that are no longer used.
32418         (Scan_Ls_Arg): Add processing for -files=
32419         (Usage): Add line for -files=
32420
32421         * g-os_lib.adb (On_Windows): New global constant Boolean flag
32422         (Normalize_Pathname): When on Windows and the path starts with a
32423         directory separator, make sure that the resulting path will start with
32424         a drive letter.
32425
32426         * clean.adb (Clean_Archive): New procedure
32427         (Clean_Project): When there is non-Ada code, delete the global archive,
32428         the archive dependency files, the object files and their dependency
32429         files, if they exist.
32430         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
32431
32432 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
32433
32434         * sinfo.ads: Fix typo in comment.
32435
32436         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
32437         the TSS for remote access-to-subprogram types, since these TSS are
32438         always present once the type has been analyzed.
32439         (RAS_E_Dereference): Same.
32440
32441         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
32442         reference raises Bad_Attribute, mark the reference as analyzed so the
32443         node (and any children resulting from rewrites that could have occurred
32444         during the analysis that ultimately failed) is not analyzed again.
32445
32446         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
32447
32448         * exp_dist.adb: Minor comment fix.
32449
32450         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
32451         type is an anonymous access type, no unchecked deallocation of the
32452         allocated object can occur. If the object is controlled, attach it with
32453         a count of 1. This allows attachment to the Global_Final_List, if
32454         no other relevant list is available.
32455         (Get_Allocator_Final_List): For an anonymous access type that is
32456         the type of a discriminant or record component, the corresponding
32457         finalisation list is the one of the scope of the type.
32458
32459 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
32460
32461         * sem_ch3.adb (Replace_Type): When computing the signature of an
32462         inherited subprogram, use the first subtype if the derived type
32463         declaration has no constraint.
32464
32465         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
32466         before applying previous optimization. Minor code cleanup.
32467
32468         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
32469         placed at the beginning of an unpacked record without explicit
32470         alignment, a slice of it will be aligned and does not need a copy when
32471         used as an actual.
32472
32473 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
32474
32475         PR ada/15591
32476         PR ada/15592
32477         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
32478         reference is written with expressions mimicking parameters.
32479
32480 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
32481
32482         PR ada/15589
32483         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
32484         STEP 2a. The constraints of a full type declaration of a derived record
32485         type are checked for conformance with those declared in the
32486         corresponding private extension declaration. The message
32487         "not conformant with previous declaration" is emitted if an error is
32488         detected.
32489
32490 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
32491
32492         * g-traceb.ads: Document the need for -E binder switch in the spec.
32493
32494         * g-trasym.ads: Document the need for -E binder switch in the spec.
32495
32496 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
32497
32498         * sem_prag.adb: Add handling of pragma Detect_Blocking.
32499
32500         * snames.h, snames.ads, snames.adb: Add entry for pragma
32501         Detect_Blocking.
32502
32503         * s-rident.ads: Change reference to pragma Detect_Blocking.
32504
32505         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
32506         system.ads.
32507
32508         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
32509         to indicate whether pragma Detect_Blocking is active.
32510
32511         * par-prag.adb: Add entry for pragma Detect_Blocking.
32512
32513         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
32514         of not handling WITH.
32515         Note that this replaces the previous update which was incorrect.
32516
32517 2004-06-25  Javier Miranda  <miranda@gnat.com>
32518
32519         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
32520         use-clauses to have a clean environment.
32521
32522         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
32523         the installation of the use-clauses to stablish a clean environment in
32524         case of compilation of a separate unit; otherwise the call to
32525         use_one_package is protected by the barrier Applicable_Use.
32526
32527         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
32528         the installation of the use-clauses to stablish a clean environment in
32529         case of compilation of a separate unit.
32530         (End_Use_Clauses): Minor comment cleanup.
32531
32532 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
32533
32534         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
32535
32536 2004-06-23  Richard Henderson  <rth@redhat.com>
32537
32538         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
32539
32540 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32541
32542         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
32543         now bool instead of int.
32544         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
32545         * trans.c (gnu_switch_label_stack): New function.
32546         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
32547         elaboration of renamed entity returns.
32548         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
32549         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
32550         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
32551         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
32552         DECL_SIZE_UNIT and simplify variable-sized case.
32553         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
32554         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
32555         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
32556         (build_unit_elab): Disable for now.
32557         * utils.c (mark_visited): New function.
32558         (pushdecl): Walk tree to call it for global decl.
32559         (update_pointer_to): Update all variants of pointer and ref types.
32560         Add arg to COMPONENT_REF.
32561         (convert): Likewise.
32562         Move check for converting between variants lower down.
32563         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
32564         (build_allocator): Don't force type of MODIFY_EXPR.
32565         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
32566         put_var_into_stack.
32567
32568 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32569
32570         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
32571         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
32572         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
32573         subprograms.
32574         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
32575         all callers changed.
32576         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
32577         the way that EXIT_STMT finds the loop label.
32578         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
32579         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
32580         (add_stmt): Use annotate_with_locus insted of setting directly.
32581         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
32582         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
32583         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
32584         (build_vms_descriptor): Add extra args to ARRAY_REF.
32585         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
32586         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
32587         New cases.
32588         (build_binary_op): Don't make explicit CONVERT_EXPR.
32589         Add extra rgs to ARRAY_REF.
32590
32591 2004-06-14  Pascal Obry  <obry@gnat.com>
32592
32593         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
32594         Windows.  Fix minor typo.
32595
32596         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
32597         which is now supported on Windows. With this implementation using the
32598         Library Project feature is no different on Windows than on UNIX.
32599
32600 2004-06-14  Vincent Celier  <celier@gnat.com>
32601
32602         * makegpr.adb (Compile_Sources): Nothing to do when there are no
32603         non-Ada sources.
32604
32605         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
32606
32607         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
32608         found, show the project name and the path of the previously parsed
32609         project file.
32610
32611 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
32612
32613         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
32614         array, avoid copying the actual before the call.
32615
32616 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
32617
32618         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
32619         Instead, allocate memory on worst-case alignment assumptions, and then
32620         return an aligned address within the allocated zone.
32621
32622 2004-06-14  Robert Dewar  <dewar@gnat.com>
32623
32624         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
32625         elab entities in predefined units in No_Run_Time_Mode.
32626         (Gen_Adainit_C): Same fix
32627         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
32628         units in No_Run_Time_Mode
32629         (Gen_Elab_Calls_C): Same fix
32630
32631         * symbols-vms-alpha.adb: Minor reformatting
32632
32633         * g-debpoo.ads: Minor reformatting
32634
32635         * lib.adb (In_Same_Extended_Unit): Version working on node id's
32636
32637         * lib.ads (In_Same_Extended_Unit): Version working on node id's
32638
32639         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
32640         working on nodes.
32641
32642         * make.adb: Minor reformatting
32643
32644         * par-ch12.adb: Minor reformatting
32645
32646         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
32647
32648         * prj-strt.adb: Minor reformatting
32649
32650         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
32651         be more general.
32652
32653         * sem_attr.adb: Minor reformatting
32654
32655         * sem_ch7.adb: Minor reformatting
32656
32657         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
32658         for type in the same unit as the object declaration.
32659
32660         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
32661         static string expressions and not just string literals.
32662         Minor reformatting
32663         (Set_Warning): Reset restriction warning flag for restriction pragma
32664         Implement pragma Profile_Warnings
32665         Implement pragma Profile (Restricted)
32666         Give obolescent messages for old restrictions and pragmas
32667
32668         * snames.h, snames.ads, snames.adb: Add new entry for pragma
32669         Profile_Warnings.
32670
32671         * s-rident.ads: Add declarations for restrictions required by profile
32672         Restricted and profile Ravenscar.
32673
32674         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
32675
32676         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
32677         configuration pragmas.
32678
32679 2004-06-11  Vincent Celier  <celier@gnat.com>
32680
32681         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
32682         gnatsym, when symbol policy is Restricted.
32683
32684         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
32685         gnatsym, when symbol policy is Restricted.
32686
32687         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
32688         read the symbol file.
32689         (Finalize): Fail in symbol policy Restricted if a symbol in the original
32690         symbol file is not in the object files. Do not create a new symbol file
32691         when symbol policy is Restricted.
32692
32693         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
32694         in Scng.
32695
32696         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
32697         Restricted.
32698         (Usage): Line for new switch -R
32699
32700         * make.adb (Initialize): When the platform is not VMS, add the
32701         directory where gnatmake is invoked in the front of the path, if
32702         gnatmake is invoked with directory information.  Change the Scan_Args
32703         while loop to a for loop.
32704         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
32705         if Depth is equal or greater than the proposed depth, there is nothing
32706         to do.
32707         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
32708         instead of 0.
32709
32710         * prj.ads: Add new symbol policy Restricted.
32711
32712         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
32713         with the new parameters Check_All_Labels and Case_Location.
32714
32715         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
32716         (Library_Symbol_File needs to be defined).
32717
32718         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
32719         and Case_Location If Check_All_Labels is True, check that all values of
32720         the string type are used, and output warning(s) if they are not.
32721
32722         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
32723         and Case_Location.
32724
32725         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
32726
32727         * gnat_ugn.texi: Update documentation about the library directory in
32728         Library Projects.
32729
32730         * makegpr.adb (Display_Command): In verbose mode, also display the
32731         value of the CPATH env var, when the compiler is gcc.
32732         (Initialize): Change the Scan_Args while loop to a for loop
32733         (Compile_Individual_Sources): Change directory to object directory
32734         before compilations.
32735
32736         * symbols.ads: New symbol policy Restricted.
32737
32738 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
32739
32740         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
32741         is now taken care of internally in the Exception_Propagation package
32742         and does not require clients assistance any more.
32743
32744         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
32745         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
32746         functions. Helpers to maintain a predicate required in the handling of
32747         occurrence transfer between tasks.
32748         This is now handled internally and does not require clients assistance
32749         for the setup/propagate separation anymore.
32750         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
32751         allocation strategy, handle the Setup_And_Not_Propagated predicate and
32752         document.
32753
32754         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
32755         raise_after_setup, now that everything is handled internally within the
32756         setup/propagation engine.
32757
32758 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
32759
32760         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
32761         Add additional conditions for the case of an actual being a simple
32762         name or literal. Improve inlining by preventing the generation
32763         of temporaries with a short lifetime (one use).
32764
32765 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
32766
32767         PR ada/15587
32768         * einfo.ads: Minor comment updates for Has_Completion and
32769         E_Constant list of flags.
32770
32771         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
32772         and constant redeclarations now set the Has_Completion flag of their
32773         defining identifiers.
32774
32775         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
32776         Inspect_Deferred_Constant_Completion.
32777         Used to detect private deferred constants that have not been completed
32778         either by a constant redeclaration or pragma Import. Emits error message
32779         "constant declaration requires initialization expression".
32780
32781         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
32782         completes a deferred constant.
32783
32784 2004-06-11  Geert Bosch  <bosch@gnat.com>
32785
32786         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
32787
32788         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
32789         calculating exponent for scaling denormal numbers.
32790         (Leading_Part): Properly raise Constraint_Error for zero or negative
32791         Adjustment.
32792         (Remainder): Properly raise Constraint_Error for zero divisor.
32793
32794 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
32795
32796         * sem_util.adb: Minor reformatting.
32797
32798         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
32799         dereference when accessing the entry parameter record.
32800         (Check_Array_Type): Always check for possible implicit dereference.
32801         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
32802         Abort if a pointer is still present (denoting that an implicit
32803         dereference was left in the tree by the front-end).
32804
32805         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
32806         dereference when accessing the entry parameter record.
32807         (Check_Array_Type): Always check for possible implicit dereference.
32808         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
32809         Abort if a pointer is still present (denoting that an implicit
32810         dereference was left in the tree by the front-end).
32811
32812 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
32813
32814         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
32815         message, like the compiler itself does. Easier to parse the output.
32816
32817         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
32818
32819         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
32820         be base names, and not includes directories.
32821
32822 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
32823
32824         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
32825         so that dependencies are properly taken into account by make.
32826
32827 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
32828
32829         PR ada/15622
32830         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
32831         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
32832
32833 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
32834
32835         * Makefile.in (install-gnatlib): install target-specific run-time files.
32836
32837         * Make-lang.in: Remove obsolete targets.
32838
32839 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
32840
32841         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
32842         specification, to catch misuses of program unit names.
32843
32844         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
32845         superfluous conversions in an instance.
32846
32847 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
32848
32849         PR ada/15403
32850         * sem_ch12.adb (Save_References): If operator node has been folded to
32851         enumeration literal, associated_node must be discarded.
32852
32853 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
32854
32855         * s-stchop-vxworks.adb: Add required pragma Convention to
32856         Task_Descriptor because it is updated by a C function.
32857
32858 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
32859
32860         PR ada/15568
32861         * Makefile.in: Remove target specific SO_OPT on IRIX
32862
32863 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32864
32865         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
32866         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
32867         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
32868         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
32869         (STMT_STMT, USE_STMT): New statement codes.
32870         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
32871         * ada-tree.h: Reflect above changes.
32872         (struct tree_loop_id): Deleted.
32873         (union lang_tree_node, struct lang_decl, struct lang_type):
32874         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
32875         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
32876         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
32877         (IS_ADA_STMT): New macro.
32878         * decl.c (annotate_decl_with_node): New function.
32879         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
32880         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
32881         Call add_stmt_with_node to do needed assignments.
32882         Add call to update setjmp buffer directly, not via EXPR_STMT.
32883         (maybe_variable): Argment GNAT_NODE deleted.
32884         * gigi.h (maybe_variable): Likewise.
32885         (make_transform, add_stmt_with_node, set_block_for_group): New.
32886         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
32887         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
32888         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
32889         (set_lineno, set_lineno_from_sloc): Likewise.
32890         (record_code_position, insert_code_for): Likewise.
32891         (gnat_poplevel): Now returns void.
32892         (end_subprog_body): Now takes argument.
32893         * misc.c (cgraph.h, tree-inline.h): New includes.
32894         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
32895         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
32896         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
32897         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
32898         (gnat_parse_file): Don't set immediate_size_expand.
32899         Call cgraph functions.
32900         (gnat_expand_expr): Remove most cases.
32901         (record_code_position, insert_code_for): Remove from here.
32902         * trans.c (toplev.h, tree-gimple.h): Now included.
32903         (discard_file_names): Deleted.
32904         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
32905         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
32906         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
32907         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
32908         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
32909         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
32910         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
32911         (set_block_for_group, add_stmt_list): Likewise.
32912         (start_stmt_group): Renamed from start_block_stmt.
32913         (end_stmt_group): Likewise, from end_block_stmt.
32914         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
32915         (gigi): Don't set discard_file_names or call set_lineno.
32916         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
32917         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
32918         Numerous changes throughout to reflect new names and complete
32919         function-at-a-time implementation.
32920         (gnat_expand_stmt): Delete or comment out all cases.
32921         (process_inlined_subprograms): Use add_stmt.
32922         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
32923         call set_lineno; also remove unneeded block handling.
32924         (process_type): Remove unneeded block handling.
32925         (build_unit_elab): Remove calls to deleted functions.
32926         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
32927         (tree-dump.h): Likewise.
32928         (struct ada_binding_level): Add field jmpbuf_decl.
32929         (gnat_define_builtin, gnat_install_builtins): New.
32930         (gnat_gimplify_function, gnat_finalize): Likewise.
32931         (gnat_poplevel): No longer return BLOCK, set it instead.
32932         Remove code dealing with nested functions.
32933         (gnat_init_decl_processing): Also set size_type_node.
32934         Call gnat_install_builtins.
32935         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
32936         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
32937         Remove special-case for "main".
32938         (end_subprog_body): Add arg and rework for tree-ssa.
32939         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
32940         Add case for BOOLEAN_TYPE.
32941         * utils2.c (rtl.h): Now include.
32942         (build_call_raise): Test Debug_Flag_NN directly.
32943         (build_call_alloc_dealloc): Don't use local stack allocation for now.
32944         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
32945         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
32946
32947 2004-06-07  Robert Dewar  <dewar@gnat.com>
32948
32949         * a-direct.ads, einfo.ads: Minor comment updates
32950
32951         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
32952         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
32953         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
32954         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
32955         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
32956
32957         * s-interr-sigaction.adb: Remove unreferenced variable
32958         (Attached_Interrupts).  Minor reformatting.
32959         Avoid use of variable I (replace by J).
32960
32961         * par-ch10.adb: Fix text of one error message
32962
32963         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
32964         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
32965         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
32966         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
32967         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
32968         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
32969         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
32970         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
32971         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
32972         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
32973         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
32974         2005 support.
32975
32976 2004-06-07  Doug Rupp  <rupp@gnat.com>
32977
32978         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
32979
32980         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
32981
32982         * mlib-tgt-vms-ia64.adb: New file.
32983
32984         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
32985         Add mlib-tgt-vms-ia64.adb
32986         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
32987         Move to alpha specific ifeq section.
32988         Add VMS specific versions of symbols.adb
32989         Renaming of 5q vms files.
32990
32991         * 5qsystem.ads renamed to system-vms_64.ads.
32992
32993 2004-06-07  Vincent Celier  <celier@gnat.com>
32994
32995         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
32996         explain that when a time of day corresponding to the non existing hour
32997         on the day switching to DST is specified, Split may return a different
32998         value for Seconds.
32999
33000         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
33001         to GNAT PRETTY.
33002
33003         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
33004         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
33005
33006         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
33007         to False.
33008         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
33009         the linking options.
33010         (Build_Library.Check_Libs): On VMS, if there is a dependency on
33011         g-trasym.ads, set Gtrasymobj_Needed to True.
33012
33013         * prj-attr.adb: Add new package Metrics for gnatmetric
33014
33015         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
33016         canonical case to take into account files with upper case characters on
33017         Windows.
33018         (Ada_Check): Load the reference symbol file name in the name buffer to
33019         check it, not the symbol file name.
33020
33021         * snames.ads, snames.adb: Add standard name Metrics (name of project
33022         file package for gnatmetric).
33023
33024         * vms_conv.ads: Add Metric to Comment_Type
33025
33026         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
33027
33028         * vms_data.ads: Add qualifiers for GNAT METRIC
33029
33030         * makegpr.adb (Link_Executables): Take into account the switches
33031         specified in package Linker of the main project.
33032
33033 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
33034
33035         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
33036         the index of the last element is Units.Last, not Units.Table'Last
33037         (which is usually not a valid index within the actually allocated
33038         storage for the table).
33039
33040         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
33041         determines whether to generate a call to a checked storage pool
33042         Dereference action.
33043         Generate such a call only for a dereference that either comes from
33044         source, or is the result of rewriting a dereference that comes from
33045         source.
33046
33047 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
33048
33049         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
33050
33051 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
33052
33053         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
33054         file level, elaborate the stride for inner dimensions in alignment
33055         units, not bytes.
33056
33057         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
33058         in a comment.
33059
33060 2004-06-07  Javier Miranda  <miranda@gnat.com>
33061
33062         * exp_ch6.adb: Correct wrong modification in previous patch
33063
33064 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
33065
33066         * g-trasym.ads: Corrected comment to properly reflect level of support
33067         on VMS.
33068
33069 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
33070
33071         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
33072         includes case of a variable referenced on the left hand side of an
33073         assignment, therefore remove redundant code. Variables and prefixes of
33074         indexed or selected components are now marked as referenced on left
33075         hand side. Warnings are now properly emitted when variables or prefixes
33076         are assigned but not read.
33077
33078         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
33079         left hand side referenced variables. Private access types do not
33080         produce the warning "variable ... is assigned but never read".
33081         Add also additional checks to left hand side referenced variables.
33082         Aliased, renamed objects and access types do not produce the warning
33083         "variable ... is assigned but never read" since other entities may read
33084         the memory location.
33085
33086 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
33087
33088         * Makefile.in: In the powerpc/vxworks-specific section, restore
33089         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
33090         by mistake).
33091
33092 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
33093
33094         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
33095         predefined operators.
33096         Removes spurious type errors from g-trasym-vms.adb.
33097
33098         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
33099         distinct from the operator appearing in the source, call appropriate
33100         routine to insert conversions when needed, and complete resolution of
33101         node.
33102         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
33103         interpretations for rewritten right operand.
33104         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
33105         the other operand is overloaded and the context is a type conversion.
33106
33107 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33108
33109         * ada-tree.def (BLOCK_STMT): Now has two operands.
33110         (BREAK_STMT): New.
33111
33112         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
33113
33114         * gigi.h: (gnat_poplevel): Now returns a tree.
33115
33116         * trans.c (end_block_stmt): Add arg; all callers changed.
33117         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
33118         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
33119         (add_stmt): Set TREE_TYPE.
33120         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
33121         (gnat_expand_stmt, case BREAK_STMT): New case.
33122
33123         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
33124
33125 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
33126
33127         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
33128         procedure Set_Stack_Size that is not needed.
33129
33130 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
33131
33132         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
33133         used for gnatpp input file and for the files upon which it depends
33134
33135 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
33136
33137         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
33138
33139 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
33140
33141         * gnatvsn.ads: Bump version numbers appropriately.
33142         Add new build type.
33143
33144 2004-06-07  Pascal Obry  <obry@gnat.com>
33145
33146         * gnat_ugn.texi: Improve comments about imported names and link names
33147         on Windows. Add a note about the requirement to use -k gnatdll's option
33148         when working with a DLL which has stripped stdcall symbols (no @nn
33149         suffix).
33150
33151 2004-05-27  Vincent Celier  <celier@gnat.com>
33152
33153         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
33154         COMMENTS_LAYOUT=UNTOUCHED
33155
33156         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
33157         symbols-vms-alpha.adb
33158
33159 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
33160
33161         * sem.ads: Clarify documentation on checks suppression.
33162
33163         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
33164
33165 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
33166
33167         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
33168         the case of multiple derivations.
33169         (Is_Object_Reference): For a selected component, verify that the prefix
33170         is itself an object and not a value.
33171
33172         * sem_ch12.adb (Same_Instantiated_Constant): New name for
33173         Same_Instantiated_Entity.
33174         (Same_Instantiated_Variable): Subsidiary to
33175         Check_Formal_Package_Instance, to recognize actuals for in-out generic
33176         formals that are obtained from a previous formal package.
33177         (Instantiate_Subprogram_Body): Emit proper error when
33178         generating code and the proper body of a stub is missing.
33179
33180         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
33181         has a universal interpretation, do the disambiguation here.
33182
33183         * exp_ch4.adb (Expand_N_Type_Conversion,
33184         Expand_N_Unchecked_Type_Conversion): Special handling when target type
33185         is Address, to avoid typing anomalies when Address is a visible integer
33186         type.
33187
33188         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
33189         to determine whether a subprogram should not be marked Pure, even when
33190         declared in a pure package.
33191
33192 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
33193
33194         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
33195
33196         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
33197         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
33198         Update the documentation about the Ravenscar profile, following the
33199         definition found in AI-249.
33200
33201         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
33202         setting the Profile (Ravenscar). This must be done in addition to
33203         setting the required restrictions.
33204
33205         * rtsfind.ads: Add the set of operations defined in package
33206         Ada.Interrupts.
33207
33208         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
33209         restriction.
33210
33211 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
33212
33213         lang-specs.h: Always require -c or -S and always redirect to /dev/null
33214         if -gnatc or -gnats is passed.
33215
33216 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
33217
33218         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
33219         a significant reference. Warnings are now properly emitted when a
33220         discriminated type is not referenced.
33221
33222         * lib-xref.adb (Generate_Reference): A deferred constant completion,
33223         record representation clause or record type discriminant does not
33224         produce a reference to its corresponding entity. Warnings are now
33225         properly emitted when deferred constants and record types are not
33226         referenced.
33227
33228 2004-05-27  Geert Bosch  <bosch@gnat.com>
33229
33230         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
33231         Fixes ACATS Annex G tests.
33232
33233 2004-05-27  Robert Dewar  <dewar@gnat.com>
33234
33235         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
33236         handling WITH
33237
33238 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
33239
33240         * s-interr.adb (Server_Task): Take into account case of early return
33241         from sigwait under e.g. linux.
33242
33243 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
33244
33245         * gnat_ugn.texi: Add description for the new gnatpp options:
33246          -rnb - replace the original source without creating its backup copy
33247          -c0 - do not format comments
33248
33249 2004-05-24  Geert Bosch  <bosch@gnat.com>
33250
33251         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
33252         with 192 bits of precision, sufficient to reduce a double-extended
33253         arguments X with a maximum relative error of T'Machine_Epsilon, for X
33254         in -2.0**32 .. 2.0**32.
33255         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
33256         reduction by the processor, which only uses a 68-bit approximation of
33257         Pi.
33258         (Tan): Always reduce arguments and compute function either using
33259         the processor's fptan instruction, or by dividing sin and cos as needed.
33260
33261 2004-05-24  Doug Rupp  <rupp@gnat.com>
33262
33263         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
33264         gcc error on 32/64 bit VMS.
33265
33266 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
33267
33268         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
33269         since this is what we get for stack overflows although not documented
33270         as such.
33271         Document the issues which may require adjustments to our signal
33272         handlers.
33273
33274 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
33275
33276         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
33277         enclosing dynamic scope if the instantiation is within a generic unit.
33278
33279 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
33280
33281         * exp_dbug.ads: Fix typo.
33282
33283         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
33284         Rename it to its proper name: system-linux-ia64.ads
33285         (stamp-gnatlib1): Remove extra target specific run time files when
33286         setting up the rts directory.
33287
33288 2004-05-24  Javier Miranda  <miranda@gnat.com>
33289
33290         * einfo.ads, einfo.adb (Limited_Views): Removed.
33291         (Limited_View): New attribute that replaces the previous one. It is
33292         now a bona fide package with the limited-view list through the
33293         first_entity and first_private attributes.
33294
33295         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
33296         limited-private-with clause.
33297         (Install_Limited_Withed_Unit): Install the private declarations of a
33298         limited-private-withed package. Update the installation of the shadow
33299         entities according to the new structure (see Build_Limited_Views)
33300         (Build_Limited_Views): Replace the previous implementation of the
33301         limited view by a package entity that references the first shadow
33302         entity plus the first shadow private entity (required for limited-
33303         private-with clause)
33304         (New_Internal_Shadow_Entity): Code cleanup.
33305         (Remove_Limited_With_Clause): Update the implementation to undo the
33306         new work carried out by Build_Limited_Views.
33307         (Build_Chain): Complete documentation.
33308         Replace Ada0Y by Ada 0Y in comments
33309         Minor reformating
33310
33311         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
33312         types the level of accessibility depends on the enclosing type
33313         declaration.
33314
33315         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
33316         entities. Complete documentation of previous change.
33317
33318 2004-05-24  Robert Dewar  <dewar@gnat.com>
33319
33320         * namet.adb: Minor reformatting
33321         Avoid use of name I (replace by J)
33322         Minor code restructuring
33323
33324         * sem_ch6.adb: Minor reformatting
33325
33326         * lib-writ.adb: Do not set restriction as active if this is a
33327         Restriction_Warning case.
33328
33329         * sem_prag.adb: Reset restriction warning flag if real pragma
33330         restriction encountered.
33331
33332         * s-htable.adb: Minor reformatting
33333         Change rotate count to 3 in Hash (improves hash for small strings)
33334
33335         * 5qsystem.ads: Add comments for type Address (no literals allowed).
33336
33337         * gnat_ugn.texi: Add new section of documentation "Code Generation
33338         Control", which describes the use of -m switches.
33339
33340 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
33341
33342         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
33343         through the DECL_INITIAL for renamed variables.
33344
33345 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
33346
33347         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
33348
33349 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
33350
33351         * exp_dbug.ads: Correct comments concerning handling of overloading,
33352         since we no longer use $ anymore.
33353
33354 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
33355
33356         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
33357         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
33358         with illegal subunits.
33359
33360 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
33361
33362         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
33363         body with front-end inlining enabled, check whether an inline pragma
33364         appears immediately after the body and applies to it.
33365
33366         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
33367         enabled and the pragma appears after the body of the subprogram.
33368
33369 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33370
33371         Part of function-at-a-time conversion
33372
33373         * misc.c (adjust_decl_rtl): Deleted.
33374         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
33375         Define.
33376
33377         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
33378         (add_decl_stmt, add_stmt, block_has_vars): New functions.
33379         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
33380
33381         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
33382         when making a decl.
33383         (gnat_to_gnu_entity): Likewise.
33384         Use add_stmt to update setjmp buffer.
33385         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
33386         flush_addressof.
33387         No longer call adjust_decl_rtl.
33388         (DECL_INIT_BY_ASSIGN_P): New macro.
33389         (DECL_STMT_VAR): Likewise.
33390
33391         * trans.c (gigi): Call start_block_stmt to make the outermost
33392         BLOCK_STMT.
33393         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
33394         Call start_block_stmt and end_block_stmt temporarily.
33395         Use gnat_expand_stmt instead of expand_expr_stmt.
33396         (add_decl_stmt): New function.
33397         (tree_transform): Call it.
33398         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
33399         (end_block_stmt): Set type and NULL_STMT.
33400         (gnat_expand_stmt): Make recursize call instead of calling
33401         expand_expr_stmt.
33402         (gnat_expand_stmt, case DECL_STMT): New case.
33403         (set_lineno_from_sloc): Do nothing if global.
33404         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
33405         (start_block_stmt, add_stmt, end_block_stmt): New functions.
33406         (build_block_stmt): Call them.
33407         (gnat_to_code): Don't expand NULL_STMT.
33408         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
33409         args.
33410         (tree_transform): Likewise.
33411         (tree_transform, case N_Null_Statement): Return NULL_STMT.
33412         (gnat_expand_stmt, case NULL_STMT): New case.
33413         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
33414         IF_STMT_TRUE.
33415
33416         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
33417         TREE_ADDRESSABLE.
33418
33419         * utils.c (create_var_decl): Do not call expand_decl or
33420         expand_decl_init.
33421         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
33422         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
33423         here.
33424         (struct e_stack): Add chain_next to GTY.
33425         (struct binding_level): Deleted.
33426         (struct ada_binding_level): New struct.
33427         (free_block_chain): New.
33428         (global_binding_level, clear_binding_level): Deleted.
33429         (global_bindings_p): Rework to see if no chain.
33430         (kept_level_p, set_block): Deleted.
33431         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
33432         new data structure and work directly on BLOCK node.
33433         (gnat_poplevel): Similarly.
33434         (get_decls): Look at BLOCK_VARS.
33435         (insert_block): Work directly on BLOCK node.
33436         (block_has_var): New function.
33437         (pushdecl): Rework for new binding structures.
33438         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
33439         poplevel.
33440         (build_subprog_body): Likewise.
33441         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
33442
33443         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
33444
33445         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
33446         (DECL_STMT_VAR): Likewise.
33447
33448 2004-05-17  Robert Dewar  <dewar@gnat.com>
33449
33450         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
33451         procedure
33452
33453         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
33454         of restriction synonyums by using
33455         Restrict.Process_Restriction_Synonyms.
33456
33457         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
33458
33459         * s-restri.ads (Tasking_Allowed): Correct missing comment
33460
33461         * s-rident.ads: Add entries for restriction synonyms
33462
33463         * ali.adb: Fix some problems with badly formatted ALI files that can
33464         result in infinite loops.
33465
33466         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
33467         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
33468         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
33469         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
33470         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
33471         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
33472         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
33473         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
33474         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
33475         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
33476         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
33477         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
33478         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
33479         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
33480         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
33481         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
33482         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
33483         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
33484         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
33485         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
33486         to Task_Id (minor cleanup).
33487
33488 2004-05-17  Vincent Celier  <celier@gnat.com>
33489
33490         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
33491         directory separator.
33492
33493         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
33494         project being extended, if Languages is not declared in extending
33495         project.
33496
33497 2004-05-17  Javier Miranda  <miranda@gnat.com>
33498
33499         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
33500         limited view of a visible sibling.
33501
33502 2004-05-14  Robert Dewar  <dewar@gnat.com>
33503
33504         * gnat_ugn.texi: Minor change to -gnatS documentation
33505
33506         * sprint.adb: Remove some instances of Assert (False) and for this
33507         purpose replace them by output of a ??? string.
33508
33509         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
33510         Assert (False).
33511
33512         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
33513         flag processing. This was suppressing required dependencies in
33514         No_Run_Time mode and is not needed since the binder does not generate
33515         references for things in libgnat anyway.
33516
33517         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
33518         warning.
33519
33520 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
33521
33522         * gnat_ugn.texi: Document AIX-specific issue with initialization of
33523         resolver library.
33524
33525         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
33526         action for the case of an actual parameter in an init proc call.
33527
33528 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
33529
33530         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
33531         subtype, check visible entities in base type.
33532
33533         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
33534         actions if the object is a renaming.
33535
33536         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
33537         Check_Formal_Package_Instance, to determine more precisely when the
33538         formal and the actual denote the same entity.
33539
33540 2004-05-14  Javier Miranda  <miranda@gnat.com>
33541
33542         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
33543
33544         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
33545         corresponding to a private_with must be removed from visibility; it
33546         will be made visible later, just before we analyze the private part of
33547         the package.
33548         (Check_Private_Child_Unit): Allow private_with clauses in public
33549         siblings.
33550         (Install_Siblings): Make visible the private entities of private-withed
33551         siblings.
33552         (Install_Withed_Unit): Do not install the private withed unit if we
33553         are compiling a package declaration and the Private_With_OK flag was
33554         not set by the caller. These declarations will be installed later,
33555         just before we analyze the private part of the package.
33556
33557         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
33558         during the evaluation of the expression that initializes the object,
33559         decorate it with the expected type to avoid cascade errors.
33560         Code cleanup.
33561
33562         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
33563         subprogram we have to install the private_with clauses after its
33564         specification has been analyzed (as documented in AI-262.TXT).
33565
33566         * sem_ch8.adb (Has_Private_With): New function. Determines if the
33567         current compilation unit has a private with on a given entity.
33568         (Find_Direct_Name): Detect the Beaujolais problem described in
33569         AI-262.TXT
33570
33571         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
33572         provides the functionality of the function Is_Ancestor that was
33573         previously available in sem_ch10. It has been renamed to avoid
33574         overloading.
33575
33576         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
33577
33578 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33579
33580         * utils.c (build_vms_descriptor): Use SImode pointers.
33581
33582 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
33583
33584         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
33585
33586 2004-05-14  GNAT Script  <nobody@gnat.com>
33587
33588         * Make-lang.in: Makefile automatically updated
33589
33590 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
33591
33592         Renaming of target specific files for clarity
33593
33594         * Makefile.in: Rename GNAT target specific files.
33595
33596         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
33597         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
33598         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
33599         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
33600         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
33601         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
33602         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
33603         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
33604         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
33605         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
33606         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
33607         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
33608         51osinte.adb, 51osinte.ads, 51system.ads,
33609         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
33610         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
33611         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
33612         56tpopsp.adb, 57system.ads, 58system.ads,
33613         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
33614         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
33615         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
33616         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
33617         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
33618         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
33619         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
33620         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
33621         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
33622         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
33623         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
33624         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
33625         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
33626         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
33627         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
33628         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
33629         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
33630         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
33631         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
33632         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
33633         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
33634         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
33635         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
33636         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
33637         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
33638         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
33639         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
33640         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
33641         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
33642         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
33643         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
33644         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
33645         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
33646         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
33647         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
33648         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
33649         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
33650         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
33651         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
33652         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
33653
33654         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
33655         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
33656         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
33657         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
33658         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
33659         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
33660         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
33661         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
33662         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
33663         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
33664         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
33665         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
33666         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
33667         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
33668         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
33669         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
33670         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
33671         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
33672         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
33673         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
33674         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
33675         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
33676         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
33677         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
33678         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
33679         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
33680         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
33681         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
33682         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
33683         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
33684         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
33685         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
33686         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
33687         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
33688         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
33689         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
33690         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
33691         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
33692         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
33693         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
33694         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
33695         s-osinte-vms.ads, s-osinte-vxworks.adb,
33696         s-osinte-vxworks.ads, s-osprim-mingw.adb,
33697         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
33698         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
33699         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
33700         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
33701         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
33702         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
33703         s-stchop-vxworks.adb, s-taprop-dummy.adb,
33704         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
33705         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
33706         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
33707         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
33708         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
33709         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
33710         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
33711         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
33712         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
33713         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
33714         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
33715         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
33716         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
33717         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
33718         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
33719         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
33720         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
33721         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
33722         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
33723         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
33724         system-irix-o32.ads, system-linux-x86_64.ads,
33725         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
33726         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
33727         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
33728         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
33729         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
33730         system-vxworks-mips.ads, system-vxworks-ppc.ads,
33731         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
33732         above.
33733
33734 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
33735
33736         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
33737
33738 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
33739
33740         Merge from tree-ssa-20020619-branch.
33741
33742         * config-lang.in (boot_language, build_by_default): Set
33743         to no.
33744         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
33745         (max_size): Add static chain op for call_expr.
33746
33747 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
33748
33749         PR target/15331
33750         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
33751
33752 2004-05-11  Roger Sayle  <roger@eyesopen.com>
33753
33754         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
33755         COND_EXPR.
33756
33757 2004-05-10  Doug Rupp  <rupp@gnat.com>
33758
33759         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
33760         system.aux_dec.
33761
33762         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
33763
33764         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
33765
33766         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
33767         Fixes undefined symbols in IA64 gnatlib.
33768
33769         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
33770
33771         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
33772         Short_Address). This will be moved to system.auxdec.
33773
33774 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
33775
33776         * sem_util.adb: Replace test for presence of a node that is always
33777         present with a call to Discard_Node.
33778
33779         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
33780         Analyze on the library unit node after generation of distribution stub
33781         constructs.  The call was a no-op because Unit_Node has already been
33782         Analyzed, and the tree fragments for the distribution stubs are
33783         analyzed as they are inserted in Exp_Dist.
33784         Update comment regarding to distribution stubs to reflect that we
33785         do not generate stub in separate files anymore.
33786
33787         * einfo.ads: Clarify the fact that a tagged private type has the
33788         E_Record_Type_With_Private Ekind.
33789
33790         * erroutc.adb: Minor reformatting
33791
33792         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
33793         values if line length is increased using -gnatyM (noticed during code
33794         reading).
33795
33796         * eval_fat.adb: Minor reformatting
33797         Put spaces around exponentiation operator
33798
33799 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
33800
33801         PR ada/15005
33802         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
33803         has been rewritten as an explicit dereference, retrieve type of
33804         original node to check for possibly unconstrained record type.
33805
33806 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
33807
33808         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
33809         overriding, use the operation of the parent unconditionally.
33810
33811         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
33812         operation when either operand is a literal, to avoid further
33813         ambiguities.
33814
33815         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
33816         overridden by a previous explicit declaration, mark the previous entity
33817         as overriding.
33818
33819         * sem_disp.adb (Check_Dispatching_Operation): New predicate
33820         Is_Visibly_Controlled, to determine whether a declaration of a
33821         primitive control operation for a derived type overrides an inherited
33822         one. Add warning if the explicit declaration does not override.
33823
33824 2004-05-10  Vincent Celier  <celier@gnat.com>
33825
33826         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
33827         some cases when the sources are no longer present.
33828
33829         * make.adb (Collect_Arguments): Fail if an external source, not part
33830         of any project need to be compiled, when switch -x has not been
33831         specified.
33832
33833         * makeusg.adb: Document new switch -x
33834
33835         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
33836         defaulted to False.
33837
33838         * switch-m.adb (Scan_Make_Switches): New switch -x
33839
33840         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
33841         gnatmake switch -x.
33842
33843         * gnat_ugn.texi: Document new gnatmake switch -x
33844
33845 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
33846
33847         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
33848
33849         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
33850         (process_attributes): Likewise.
33851
33852 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
33853
33854         * s-inmaop.ads: Fix spelling mistake in one of the comments.
33855
33856 2004-05-10  Robert Dewar  <dewar@gnat.com>
33857
33858         * gnat_ugn.texi: Document that for config pragma files, the maximum
33859         line length is always 32767.
33860
33861         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
33862         literals is now allowed.
33863
33864         * gnat-style.texi: Remove statement about splitting long lines before
33865         an operator rather than after, since we do not follow this rule at all.
33866         Clarify rule (really lack of rule) for spaces around exponentiation
33867
33868         * sem_elim.adb: Allow concatenation of string literals as well as a
33869         single string literal for pragma arguments.
33870
33871         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
33872
33873         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
33874         written for append case.
33875
33876         * frontend.adb: Changes to avoid checking max line length in config
33877         pragma files.
33878
33879         * g-os_lib.ads: Minor reformatting
33880
33881         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
33882         wrong in any case. Instead use standard value. Noticed during code
33883         reading.
33884
33885         * opt.ads (Max_Line_Length): New field, used to implement removal of
33886         limitation on length of lines when scanning config pragma files.
33887
33888         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
33889         makeutl.ads, makeutl.adb: Minor reformatting
33890
33891         * scn.adb: Do not check line length while scanning config pragma files
33892         Do not check line length while scanning out license information
33893
33894         * scng.adb: Changes to avoid line length checks while parsing config
33895         pragma files.
33896
33897 2004-05-10  GNAT Script  <nobody@gnat.com>
33898
33899         * Make-lang.in: Makefile automatically updated
33900
33901 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
33902
33903         * osint.adb (Find_Program_Name): Fix handling of VMS version
33904         number.
33905
33906 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
33907
33908         * g-os_lib.ads (Invalid_Time): New constant
33909
33910         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
33911         return OS_Time instead of time_t to match what is imported by Ada.
33912         Now return -1 if the file doesn't exist, instead of a random value
33913
33914 2004-05-05  Robert Dewar  <dewar@gnat.com>
33915
33916         * usage.adb: Add line for -gnatR?s switch
33917
33918         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
33919
33920         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
33921         and for Match (Data_First, Data_last)
33922
33923         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
33924         written when we are dealing with multi-unit files.
33925
33926 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
33927
33928         * Makefile.in: Remove unused targets and variables.
33929
33930 2004-05-05  Vincent Celier  <celier@gnat.com>
33931
33932         * switch-m.adb: New gnatmake switch -eI
33933
33934         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
33935         of new gnatmake switch -eInnn.
33936
33937         * makegpr.adb: Take into account new parameters Index and Src_Index in
33938         Prj.Util.
33939
33940         * clean.adb: Implement support for multi-unit sources, including new
33941         switch -i.
33942
33943         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
33944         Src_Index.
33945
33946         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
33947         (Extract_From_Q): New out parameter Index
33948         (Mark, Is_Marked): Subprograms moved to Makeutl
33949         (Switches_Of): New parameter Source_Index
33950         (Add_Switch): New parameter Index
33951         (Check): New parameter Source_Index
33952         (Collect_Arguments): New parameter Source_Index
33953         (Collect_Arguments_And_Compile): New parameter Source_Index
33954         (Compile): New parameter Source_Index
33955         Put subprograms in alphabetical order
33956         Add support for multi-source sources, including in project files.
33957
33958         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
33959         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
33960         Make.
33961
33962         * makeusg.adb: New gnatmake switch -eInnn
33963
33964         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
33965         Prj.Util.Value_Of.
33966
33967         * opt.ads (Main_Index): New variable, defaulted to 0.
33968
33969         * osint.ads, osinte.adb (Add_File): New parameter Index
33970         (Current_Source_Index): New function
33971
33972         * prj.adb: Take into account new components Index and Src_Index
33973
33974         * prj.ads (String_Element): New component Index
33975         (Variable_Value): New component Index
33976         (Array_Element): New component Src_Index
33977
33978         * prj-attr.adb: Indicate that optional index may be specified for
33979         attributes Main, Executable, Spec, Body and some of Switches.
33980
33981         * prj-attr.ads (Attribute_Kind): New values for optional indexes
33982         (Attribute_Record): New component Optional_Index
33983
33984         * prj-com.ads (File_Name_Data): New component Index
33985
33986         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
33987
33988         * prj-env.adb (Put): Output optional index
33989
33990         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
33991         attributes Spec and Body.
33992
33993         * prj-nmsc.adb: Process optional indexes
33994
33995         * prj-pp.adb: Ouput "at" for optional indexes
33996
33997         * prj-proc.adb: Take into account optional indexes
33998
33999         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
34000         Optional_Index. For string literal,
34001         process optional index when Optional_Index is True.
34002         (Parse_Expresion): New Boolean parameter Optional_Index
34003
34004         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
34005         (Set_Source_Index_Of): New procedure
34006
34007         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
34008         index.
34009
34010         * prj-util.ads (Executable_Of): New parameter Index
34011         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
34012         New parameter Src_Index, defaulted to 0.
34013
34014 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
34015
34016         PR ada/15257
34017         * sem_ch3.adb (Access_Definition): If this is an access parameter
34018         whose designated type is imported through a limited_with clause, do
34019         not add the enclosing subprogram to the list of private dependents of
34020         the type.
34021
34022 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
34023
34024         PR ada/15258
34025         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
34026         a limited_with clause, and the other is its non-limited view.
34027
34028 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
34029
34030         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
34031
34032         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
34033         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
34034         Stand.Boolean_Literals to produce references to entities
34035         Standard_False and Standard_True from compile-time computed boolean
34036         values.
34037
34038         * stand.ads (Boolean_Literals): New variable, provides the entity
34039         values for False and True, for use by the expander.
34040
34041 2004-05-05  Doug Rupp  <rupp@gnat.com>
34042
34043         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
34044         5vinmaop.adb: Unchecked convert Short_Address vice Address
34045
34046         * adaint.c, raise.c: Caste CRTL function return value
34047         to avoid gcc error on 32/64 bit IVMS.
34048
34049         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
34050         target = IA64/VMS.
34051
34052         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
34053
34054         * 5qsystem.ads (Address): Declare as Long_Integer
34055         (Short_Address): Declare as 32 bit subtype of Address
34056         Declare  abstract address operations to avoid gratuitous ambiguities.
34057
34058 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
34059
34060         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
34061         instead of the old Boolean_Entry_Barriers.
34062         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
34063
34064 2004-05-05  GNAT Script  <nobody@gnat.com>
34065
34066         * Make-lang.in: Makefile automatically updated
34067
34068 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
34069
34070         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
34071
34072 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
34073
34074         PR ada/15152
34075         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
34076         alone. Replacing object references by literals is inappropriate in a
34077         so low level context.
34078
34079 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
34080
34081         * a-exexpr.adb: Add comments
34082
34083 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
34084
34085         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
34086         declare the Ancestor_Tags array in Type_Specific_Data with a small size
34087         without risking a bounds check error when accessing one of its
34088         components.
34089         (Type_Specific_Data): Define Ancestor_Tags as a small array.
34090         This prevents us from hitting a limitation during the debug info
34091         generation when using stabs.
34092
34093         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
34094         small array.
34095         This prevents us from hitting a limitation during the debug info
34096         generation when using stabs.
34097
34098 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
34099
34100         lang-specs.h: Remove -gnatz* from specs.
34101
34102 2004-05-03  Vincent Celier  <celier@gnat.com>
34103
34104         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
34105
34106         * Make-lang.in, Makefile.in: Add gprmake
34107
34108 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
34109
34110         * sem_aggr.adb: Fix typo in comment.
34111
34112 2004-05-03  Robert Dewar  <dewar@gnat.com>
34113
34114         * make.adb: Minor reformatting
34115
34116         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
34117
34118         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
34119         so that it works when address is not a private type.
34120
34121         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
34122         properly with rewritten unchecked conversions. This prevents
34123         order-of-elaboration issues that can otherwise arise.
34124         (Minimum_Size): Don't check size of access types under VMS
34125
34126         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
34127         interpretations of integer literals as type System.Address.
34128
34129         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
34130         (Is_Descendent_Of): New function
34131
34132 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
34133
34134         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
34135         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
34136         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
34137
34138         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
34139         of the old Max_Entry_Queue_Depth.
34140
34141         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
34142         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
34143         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
34144
34145         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
34146         New entry for proper handling of Max_Entry_Queue_Depth.
34147         New entry for proper handling of No_Dynamic_Interrupts.
34148
34149         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
34150         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
34151         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
34152         the GNAT specific restriction Max_Entry_Queue_Depth.
34153         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
34154         the GNAT specific restriction No_Dynamic_Interrupts.
34155
34156         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
34157         instead of the old Boolean_Entry_Barriers.
34158         Use the new restriction No_Dynamic_Attachment instead of the old
34159         No_Dynamic_Interrupts.
34160
34161         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
34162         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
34163
34164         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
34165         of the old Max_Entry_Queue_Depth.
34166
34167 2004-05-03  GNAT Script  <nobody@gnat.com>
34168
34169         * Make-lang.in: Makefile automatically updated
34170
34171 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
34172
34173         * checks.adb (Enable_Range_Check): If the prefix of an index component
34174         is an access to an unconstrained array, perform check unconditionally.
34175
34176 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34177
34178         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
34179         Component_Clause.
34180
34181 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
34182
34183         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
34184         alternate stack setting. There was no support for the tasking cases
34185         and the changes eventually caused a number of side-effect failures in
34186         the non-tasking case too.
34187
34188 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
34189
34190         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
34191         -gnats is passed.
34192
34193 2004-04-29  Vincent Celier  <celier@gnat.com>
34194
34195         * make.adb (Gnatmake): Increase max size of argument array for
34196         gnatbind for the potential addition of -F.
34197         If there are Stand-Alone Library projects, invoke gnatbind with -F to
34198         be sure that elaboration flags will be checked.
34199
34200         * switch-c.adb: Correct call to Scan_Pos for -gnateI
34201
34202 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
34203
34204         * sem_warn.adb (Check_References): Move '<access-variable> may be
34205         null' warning out of under Warn_On_No_Value_Assigned.
34206
34207 2004-04-29  Ed Falis  <falis@gnat.com>
34208
34209         * gnat_ugn.texi: Fixed texi error
34210
34211 2004-04-29  Robert Dewar  <dewar@gnat.com>
34212
34213         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
34214         abstract operations if they come from predefined files.
34215
34216         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
34217         Dynamic, not RM).
34218
34219         * s-addope.adb: Correct obvious error in mod function
34220
34221 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
34222
34223         * Makefile.in: Add target pairs for powerpc darwin*
34224         tasking support.
34225
34226         * a-intnam-darwin.ads, s-osinte-darwin.adb,
34227         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
34228
34229 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
34230
34231         * Makefile.in: Add target macro definitions for s390*-linux*.
34232         * system-linux-s390.ads: New file.
34233         * system-linux-s390x.ads: New file.
34234
34235 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
34236
34237         * gnat_ugn.texi: Correct argument to @setfilename.
34238
34239 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
34240
34241         * a-exexpr.adb (Unwind_Word): New data type.
34242         (Unwind_Exception): Use it as type of Private1 and Private2.
34243
34244         * raise.c (db_action_for): Fix debug printf.
34245
34246 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
34247
34248         * a-wtmoio.ads: Formal type must be a modular type, not a signed
34249         integer type.
34250
34251 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34252
34253         * decl.c (gnat_to_gnu_entity, case object): Call
34254         __builtin_update_setjmp_buf.
34255
34256         * gigi.h (update_setjmp_buf): Deleted.
34257         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
34258
34259         * misc.c: (update_setjmp_buf): Deleted.
34260
34261         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
34262         around block of RTL.
34263
34264         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
34265
34266 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
34267
34268         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
34269         subprogram for which no pragma All_Calls_Remote applies, store the
34270         address of the real subprogram in the underlying record type, so local
34271         dereferences do not go through the PCS.
34272
34273 2004-04-26  Robert Dewar  <dewar@gnat.com>
34274
34275         * i-c.ads: Add some type qualifications to avoid ambiguities when
34276         compiling with s-auxdec.ads and a non-private address type.
34277
34278 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
34279
34280         * Makefile.rtl: Fix error in previous check-in:
34281         Add s-addope.o to non tasking object list (rather than tasking object
34282         list).
34283
34284 2004-04-26  Javier Miranda  <miranda@gnat.com>
34285
34286         * sem_aggr.adb: Fix typo in comments
34287         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
34288         Required to check the null-exclusion attribute.
34289
34290         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
34291         case of anonymous access types in record and array components. For a
34292         component definition the level is the same of the enclosing composite
34293         type.
34294
34295         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
34296         that are anonymous access types the level of accessibility depends on
34297         the enclosing type declaration. In order to have this information, set
34298         the scope of the anonymous access type to the enclosing record type
34299         declaration.
34300         (Array_Type_Declaration): In case of components that are anonymous
34301         access types the level of accessibility depends on the enclosing type
34302         declaration. In order to have this information, set the scope of the
34303         anonymous access type to the enclosing array type declaration.
34304
34305         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
34306         access type.
34307
34308         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
34309         renaming of anonymous access-to-constant types allowed if and only if
34310         the renamed object is access-to-constant.
34311
34312         * sem_util.adb (Type_Access_Level): In case of anonymous access types
34313         that are component_definition or discriminants of a nonlimited type,
34314         the level is the same as that of the enclosing component type.
34315
34316 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
34317
34318         * sem_elim.adb: Some minor code reorganization from code reading. Fix
34319         misprint in the function name (File_Name_Match).
34320
34321 2004-04-23  Laurent Guerby  <laurent@guerby.net>
34322
34323         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
34324         install.
34325
34326 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
34327
34328         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
34329
34330 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
34331
34332         * adaint.c (__gnat_try_lock): No longer requires that the parent
34333         directory be writable, the directory itself is enough.
34334         (gnat_is_absolute_path): Change profile, so that the call from
34335         GNAT.OS_Lib can be made more efficient.
34336
34337         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
34338         from GNAT.OS_Lib can be made more efficient.
34339
34340         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
34341         one copy of the file name. Found by code reading.
34342
34343 2004-04-23  Vincent Celier  <celier@gnat.com>
34344
34345         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
34346         Correct documentation on gnatmake switches transmitted to the compiler
34347
34348         * ali.ads: Minor comment fix
34349
34350 2004-04-23  Javier Miranda  <miranda@gnat.com>
34351
34352         * sem_ch6.adb: (Confirming Types): Code cleanup
34353
34354         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
34355         subprogram types: E_Anonymous_Access_Subprogram_Type and
34356         E_Anonymous_Access_Protected_Subprogram_Type.
34357
34358 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
34359
34360         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
34361         whether a pragma All_Calls_Remote applies to the subprogram on which
34362         'Access is taken.
34363         No functional change is introduced by this revision; the new parameter
34364         will be used to allow calls to local RCI subprograms to be optimized
34365         to not use the PCS in the case where no pragma All_Calls_Remote applies,
34366         as is already done in the PolyORB implementation of the DSA.
34367
34368         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
34369         whether a pragma All_Calls_Remote applies to the subprogram on which
34370         'Access is taken.
34371         No functional change is introduced by this revision; the new parameter
34372         will be used to allow calls to local RCI subprograms to be optimized
34373         to not use the PCS in the case where no pragma All_Calls_Remote applies,
34374         as is already done in the PolyORB implementation of the DSA.
34375
34376 2004-04-23  Robert Dewar  <dewar@gnat.com>
34377
34378         * Makefile.rtl: Add entry for s-addope.o in run time library list
34379         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
34380         * s-addope.ads, s-addope.adb: New files.
34381
34382         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
34383         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
34384         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
34385         System.Address to be non-private and signed.
34386
34387         * sem_elim.adb: Minor reformatting (fairly extensive)
34388         Some minor code reorganization from code reading
34389         Add a couple of ??? comments
34390
34391 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34392
34393         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
34394         (tree_transform, case N_If_Statement): Remove non-determinism.
34395
34396         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
34397
34398 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
34399
34400         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
34401         Eliminate' section.
34402
34403         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
34404         no longer used as a parameter name for Eliminate pragma).
34405
34406 2004-04-22  Laurent Guerby  <laurent@guerby.net>
34407
34408         PR optimization/14984
34409         PR optimization/14985
34410         * trans.c (gigi): Fix non determinism leading to bootstrap
34411         comparison failures.
34412
34413 2004-04-21  Pascal Obry  <obry@gnat.com>
34414
34415         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
34416         passed to spawnvp() to properly handle program pathname with spaces on
34417         Win32.
34418
34419 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
34420
34421         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
34422         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
34423         unlocked in case of exceptions.
34424
34425 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
34426
34427         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
34428         This function does not exist anymore.
34429
34430 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
34431
34432         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
34433
34434         * link.c: Move variables to the __gnat name space.
34435
34436         * Makefile.in: list link.o explicitly when needed.
34437
34438         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
34439
34440 2004-04-21  Javier Miranda  <miranda@gnat.com>
34441
34442         * einfo.adb (Original_Access_Type): New subprogram
34443         (Set_Original_Access_Type): New subprogram
34444         (Write_Field21_Name): Write the name of the new field
34445
34446         * einfo.ads (Original_Access_Type): New field present in access to
34447         subprogram types.
34448         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
34449         E_Anonymous_Access_Protected_Subprogram_Type.
34450
34451         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
34452         subprogram types.
34453
34454         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
34455         to anonymous access to subprogram types.
34456
34457         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
34458         to subprogram types.
34459
34460         * sem_ch3.adb (Access_Definition): Complete decoration of entities
34461         corresponding to anonymous access to subprogram types.
34462         (Analyze_Component_Declaration): Add new actual to the call to
34463         subprogram replace_anonymous_access_to_protected_subprogram.
34464         (Array_Type_Declaration): Add new actual to the call to subprogram
34465         replace_anonymous_access_to_protected_subprogram.
34466         (Process_Discriminants): Add new actual to the call to subprogram
34467         replace_anonymous_access_to_protected_subprogram.
34468         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
34469
34470         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
34471         formal.
34472
34473         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
34474         access to subprogram types.
34475
34476         * sem_util.adb (Has_Declarations): Addition of package_specification
34477         nodes.
34478
34479 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
34480
34481         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
34482         inlined flags to renamed entity only if in current unit.
34483
34484 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
34485
34486         * s-parint.ads: Add DSA implementation marker.
34487
34488         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
34489         value of System.Partition_Interface.DSA_Implementation to determine
34490         what version of the distributed systems annex is available (no
34491         implementation, GLADE, or PolyORB).
34492
34493 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
34494
34495         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
34496
34497 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34498
34499         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
34500         with new type if alias sets differ.
34501         Fixes ACATS c41103b.
34502
34503 2004-04-21  Vincent Celier  <celier@gnat.com>
34504
34505         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
34506         Add array Lang_Args for the language specific compiling argument
34507         switches.
34508
34509         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
34510
34511 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
34512
34513         * gnat_rm.texi: Update the descripton of the Eliminate pragma
34514         according to the recent changes in the format of the parameters of the
34515         pragma (replacing Homonym_Number with Source_Location).
34516
34517 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
34518
34519         * 5isystem.ads: Removed, unused.
34520
34521         * gnat_rm.texi: Redo 1.13 change.
34522
34523 2004-04-19  Robert Dewar  <dewar@gnat.com>
34524
34525         * s-stoele.ads: Clean up definition of Storage_Offset (the new
34526         definition is cleaner, avoids the kludge of explicit Standard operator
34527         references, and also is consistent with a visible System.Address with
34528         no visible operations.
34529
34530         * s-geveop.adb: Add declarations to avoid assumption of visible
34531         operations on type System.Address (since these might not be available
34532         if Address is a non-private type for which the operations
34533         are made abstract).
34534
34535         * sem_eval.adb: Minor reformatting
34536
34537         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
34538         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
34539         reformatting (new function spec format).
34540
34541         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
34542         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
34543         s-caun64.adb: Add declarations to avoid assumption of visible
34544         operations on type System.Address (since these might not be available
34545         if Address is a non-private type for which the operations are made
34546         abstract).
34547
34548         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
34549
34550         * exp_intr.adb: Minor comment update
34551
34552         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
34553
34554         * 5omastop.adb: Add declarations to avoid assumption of visible
34555         operations on type System.Address (since these might not be available
34556         if Address is a non-private type for which the operations
34557         are made abstract).
34558
34559 2004-04-19  Vincent Celier  <celier@gnat.com>
34560
34561         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
34562
34563         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
34564         defaulted to Ada.
34565
34566         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
34567         defaulted to Ada.
34568         Call Check with Process_Languages.
34569         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
34570         with Process_Languages.
34571         (Recursive_Check): New Boolean parameter Process_Languages. Call
34572         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
34573         Process_Languages.
34574
34575         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
34576
34577         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
34578         parameter Ada_Main, defaulted to True.
34579         Check for Ada specific characteristics only when Ada_Main is True.
34580
34581         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
34582
34583         * prj.adb: (Project_Empty): Add new Project_Data components.
34584
34585         * prj.ads: New types and tables for non Ada languages.
34586         (Project_Data): New components Languages, Impl_Suffixes,
34587         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
34588         Include_Path, Include_Data_Set.
34589
34590         * prj-env.ads, prj-env.adb: Minor reformatting
34591
34592         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
34593         Put subprograms in alphabetical order
34594
34595         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
34596         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
34597         Opt.Follow_Links.
34598
34599         * mlib-prj.adb: Back out modification in last version, as they are
34600         incorrect.
34601         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
34602
34603         * make.adb: (Mains): Moved to package Makeutl
34604         (Linker_Opts): Moved to package Makeutl
34605         (Is_External_Assignment): Moved to package Makeutl
34606         (Test_If_Relative_Path): Moved to package Makeutl
34607         (Gnatmake): Move sorting of linker options to function
34608         Makeutl.Linker_Options_Switches.
34609
34610         * makeutl.ads, makeutl.adb: New files.
34611
34612         * Makefile.in: Add makeutl.o to the object files for gnatmake
34613
34614         * makeusg.adb: Add line for new switch -eL.
34615
34616         * gnatls.adb (Image): New function.
34617         (Output_Unit): If in verbose mode, output the list of restrictions
34618         specified by pragmas Restrictions.
34619
34620         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
34621         Text_IO.
34622
34623         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
34624         needed, to put it in the range 1970 (included) - 2026 (excluded).
34625         (Time_Of): Do not shift Unix_Min_Year (1970).
34626         Shift the date by multiple of 56 years, if needed, to put it in the
34627         range 1970 (included) - 2026 (excluded).
34628
34629         * adaint.h, adaint.c (__gnat_set_executable): New function.
34630
34631 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34632
34633         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
34634         and pop GC context.
34635         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
34636         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
34637         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
34638         (tree_transform, case N_Code_Statement): Likewise.
34639         (gnat_expand_stmt, case LABEL_STMT): Don't look at
34640         LABEL_STMT_FIRST_IN_EH.
34641         (gnat_expand_stmt, case ASM_STMT): New case.
34642
34643         * utils2.c (build_unary_op): Properly set TREE_READONLY of
34644         UNCONSTRAINED_ARRAY_REF.
34645
34646         * utils.c (poplevel): Temporarily push/pop GC context around inline
34647         function expansion.
34648
34649         * decl.c (maybe_variable): Properly set TREE_READONLY of
34650         UNCONSTRAINED_ARRAY_REF.
34651         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
34652
34653         * ada-tree.def: (ASM_STMT): New.
34654
34655         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
34656         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
34657         ASM_STMT_INPUT): New.
34658         (ASM_STMT_CLOBBER): Likewise.
34659
34660 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
34661
34662         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
34663         general rcheck mechanism to raise Program_Error for E.4(18), instead
34664         of a custom raiser in System.Partition_Interface.
34665         Part of general cleanup work before PolyORB integration.
34666
34667         * snames.ads, snames.adb: Add new runtime library entities and names
34668         for PolyORB DSA.
34669
34670         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
34671         exp_dist.
34672         (Build_Subprogram_Id): New subprogram provided by exp_dist
34673         Code reorganisation in preparation for PolyORB integration.
34674
34675         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
34676         exp_dist.
34677         (Build_Subprogram_Id): New subprogram provided by exp_dist
34678
34679         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
34680         actual parameter types for call to dereference of an
34681         access-to-subprogram type.
34682
34683         * rtsfind.ads: Add new runtime library entities and names for PolyORB
34684         DSA.
34685
34686         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
34687         instead, which has the same behaviour here since we never pass it a
34688         NULL pointer.
34689
34690         * link.c (run_path_option, Solaris case): Use -Wl, as for other
34691         platforms.
34692
34693         * Makefile.in: adjust object file lists for gnatlink and gnatmake
34694         to account for new dependency upon Interfaces.C.Strings + link.o
34695         For x86 FreeBSD, use 86numaux.
34696
34697         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
34698         from Mlib.Tgt to Mlib.
34699
34700         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
34701         target-independent.
34702
34703         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
34704         target-specific versions of this subprogram, now implemented as a
34705         target-independent function in Mlib.
34706
34707         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
34708         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
34709         (Linker_Library_Path_Option): Remove target-specific versions of this
34710         subprogram, now implemented as a target-independent function in Mlib.
34711
34712         * atree.adb: (Allocate_Initialize_Node): New subprogram.
34713         Factors out node table slots allocation.
34714         (Fix_Parents): New subprogram.
34715         Encapsulate the pattern of fixing up parent pointers for syntactic
34716         children of a rewritten node.
34717         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
34718         (Rewrite): Use New_Copy when creating saved copy of original node.
34719         (Replace): Use Copy_Node to copy nodes.
34720
34721 2004-04-19  Javier Miranda  <miranda@gnat.com>
34722
34723         * sprint.adb (Sprint_Node_Actual): Give support to the new
34724         Access_To_Subprogram node available in Access_Definition nodes. In
34725         addition, give support to the AI-231 node fields: null-exclusion,
34726         all-present, constant-present.
34727
34728         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
34729
34730         * sinfo.ads, sinfo.adb:
34731         New field Access_To_Subprogram_Definition in Access_Definition nodes
34732
34733         * sem_ch6.adb (Process_Formals): Move here the code that creates and
34734         decorates internal subtype declaration corresponding to the
34735         null-excluding formal. This code was previously in Set_Actual_Subtypes.
34736         In addition, carry out some code cleanup on this code. In case of
34737         access to protected subprogram call
34738         Replace_Anonymous_Access_To_Protected_Subprogram.
34739         (Set_Actual_Subtypes): Code cleanup.
34740
34741         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
34742         Find_Type in case of anonymous access renamings. Add warning in case of
34743         null-excluding attribute used in anonymous access renaming.
34744
34745         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
34746         subprogram
34747
34748         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
34749         subprogram.
34750         (Access_Definition): In case of anonymous access to subprograms call
34751         the corresponding semantic routine to decorate the node.
34752         (Access_Subprogram_Declaration): Addition of some comments indicating
34753         some code that probably should be added here. Detected by comparison
34754         with the access_definition subprogram.
34755         (Analyze_Component_Declaration): In case of access to protected
34756         subprogram call Replace_Anonymous_Access_To_Protected.
34757         (Array_Type_Declaration): In case of access to protected subprogram call
34758         Replace_Anonymous_Access_To_Protected_Subprogram.
34759         (Process_Discriminants): In case of access to protected subprogram call
34760         Replace_Anonymous_Access_To_Protected_Subprogram.
34761
34762         * par.adb (P_Access_Definition): New formal that indicates if the
34763         null-exclusion part was present.
34764         (P_Access_Type_Definition): New formal that indicates if the caller has
34765         already parsed the null-excluding part.
34766
34767         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
34768         (P_Identifier_Declarations): Code cleanup and give support to renamings
34769         of anonymous access to subprogram types.
34770         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
34771         (P_Array_Type_Definition): Give support to AI-254.
34772         (P_Component_Items): Give support to AI-254.
34773         (P_Access_Definition): New formal that indicates if the header was
34774         already parsed by the caller.
34775         (P_Access_Type_Definition): New formal that indicates if the caller has
34776         already parsed the null-excluding part.
34777
34778         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
34779         call to P_Access_Definition.
34780
34781 2004-04-19  Geert Bosch  <bosch@gnat.com>
34782
34783         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
34784         the delicate semantics of floating-point to integer conversion.
34785         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
34786
34787         * eval_fat.adb (Machine_Mantissa): Moved to spec.
34788         (Machine_Radix): New function.
34789
34790         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
34791         conversion checks.
34792         (Machine_Radix): New function also for use in conversion checks.
34793
34794 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
34795
34796         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
34797
34798         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
34799         to decorate the access-to-protected subprogram and the equivalent type.
34800
34801         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
34802         to anonymous access to subprogram types.
34803
34804         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
34805         constant-folding, for legality checks in contexts that require an RM
34806         static expression.
34807
34808         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
34809         temporary but stack checking is not enabled, increment serial number
34810         to so that symbol generation is consistent with and without stack
34811         checking.
34812
34813         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
34814         independent on whether stack checking is enabled, caller must check
34815         the corresponding flag.
34816
34817         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
34818         range checks.
34819         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
34820         parent if it has discriminants.
34821         (Build_Derived_Private_Type): Constructed full view does
34822         not come from source.
34823         (Process_Discriminants): Default discriminants on a tagged type are
34824         legal if this is the internal completion of a private untagged
34825         derivation.
34826
34827         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
34828         no constraint checks, because it corresponds to an existing object.
34829
34830         * sem_prag.adb (Process_Convention): Pragma applies
34831         only to subprograms in the same declarative part, i.e. the same unit,
34832         not the same scope.
34833
34834         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
34835         ignore type mismatch on a numeric conversion if expression comes from
34836         expansion.
34837
34838 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
34839
34840         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
34841         Homonym_Number parameter, add processing for Source_Location parameter
34842         corresponding.
34843         (Check_Eliminated): Remove the check for homonym numbers, add the check
34844         for source location traces.
34845
34846         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
34847         with Arg_Source_Location corresponding to the changes in the format of
34848         the pragma.
34849
34850         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
34851         Eliminate pragma corresponding to the changes in the format of the
34852         pragma: Homonym_Number is replaced with Source_Location, two ways of
34853         distinguishing homonyms are mutially-exclusive.
34854
34855 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
34856
34857         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
34858
34859         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
34860         No_Dollar_In_Label, no longer necessary, as it is always True.
34861         (Strip_Suffixes): Likewise.
34862
34863 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
34864
34865         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
34866         modulus for compatibility with size clause on targets with 16-bit
34867         Integer.
34868
34869         * layout.adb (Discrimify): In the case of private types, set Vtyp to
34870         full type to fix type mismatches on calls to size functions for
34871         discriminant-dependent array components.
34872
34873 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
34874
34875         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
34876         lib.
34877
34878 2004-04-19  Pascal Obry  <obry@gnat.com>
34879
34880         * mdll-utl.adb (Locate): New version is idempotent.
34881
34882 2004-04-17  Laurent Guerby  <laurent@guerby.net>
34883
34884         PR ada/14988 (partial)
34885         * impunit.adb: Fix typo.
34886
34887 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
34888
34889         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
34890         and install-rts-cert targets.  Remove all gnatlib and gnattools
34891         targets and all other rts-* targets (moved to libada).  Remove (now)
34892         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
34893         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
34894
34895 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34896
34897         * trans.c (tree_transform): Shortcut returning error_mark_node for
34898         statements in annotate_only_mode.
34899         (tree_transform, case N_Label, case N_Return_Statement,
34900         N_Goto_Statement): Make statement tree instead of generating code.
34901         (tree_transform, case N_Assignment_Statement): No longer check
34902         type_annotate_only.
34903         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
34904         RETURN_STMT): New.
34905         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
34906         New fcns.
34907         (gnat_to_gnu): Collect any RTL generated and deal with it.
34908         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
34909         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
34910         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
34911
34912         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
34913
34914         * ada-tree.def (EXPR_STMT): Fix typo in name.
34915         (BLOCK_STMT, IF_STMT): New nodes.
34916
34917         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
34918         LABEL_STMT_FIRST_IN_EH): New macros.
34919         (RETURN_STMT_EXPR): Likewise.
34920
34921         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
34922         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
34923
34924 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
34925
34926         * atree.ads: Correct documentation on extended nodes.
34927
34928         * link.c: Set run_path_option for FreeBSD.
34929
34930 2004-04-08  Vincent Celier  <celier@gnat.com>
34931
34932         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
34933         one of the ALI file, do not link with DEC lib.
34934
34935         * par.adb Remove the last two characters ("%s" or "%b") when checking
34936         if a language defined unit may be recompiled.
34937
34938 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
34939
34940         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
34941         removal of abstract operation leaves no possible interpretation for
34942         expression.
34943
34944         * sem_eval.adb (Eval_Qualified_Expression): Use
34945         Set_Raises_Constraint_Error on node when needed, so that it does not
34946         get optimized away by subsequent optimizations.
34947
34948         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
34949         operands even when they are not wrapped in a type conversion.
34950
34951 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
34952
34953         * sem_prag.adb (Set_Exported): Warn about making static as result of
34954         export only when the export is coming from source. This may be not
34955         be true e.g. on VMS where we expand export pragmas for exception codes
34956         together with imported or exported exceptions, and we don't want the
34957         user to be warned about something he didn't write.
34958
34959 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
34960
34961         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
34962         duplication between normal entities and those declared as renamings.
34963         No functional change.
34964
34965         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
34966         inline functions returning an unconstrained result.
34967
34968 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
34969
34970         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
34971         conform to what other front-ends do.
34972
34973 2004-04-08  Doug Rupp  <rupp@gnat.com>
34974
34975         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
34976         libraries.
34977
34978 2004-04-06  Pascal Obry  <obry@gnat.com>
34979
34980         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
34981
34982         * osint.adb (Program_Name): Do not look past a directory separator.
34983
34984 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
34985
34986         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
34987
34988         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
34989         requirement for preserving a copy of the original assignment node.
34990
34991         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
34992
34993 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
34994
34995         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
34996         when supported.
34997
34998 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
34999
35000         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
35001         operator calls in functional notation, and apply
35002         Universal_Interpretation to operands, not to their type.
35003
35004 2004-04-06  Robert Dewar  <dewar@gnat.com>
35005
35006         * 5wdirval.adb: Minor reformatting
35007
35008 2004-04-06  Ed Falis  <falis@gnat.com>
35009
35010         * gnat_rm.texi: Improve a reference to the GCC manual
35011
35012 2004-04-05  Vincent Celier  <celier@gnat.com>
35013
35014         * adaint.h, adaint.c: Add function __gnat_named_file_length
35015
35016         * impunit.adb: Add Ada.Directories to the list
35017
35018         * Makefile.in: Add VMS and Windows versions of
35019         Ada.Directories.Validity package body.
35020
35021         * Makefile.rtl: Add a-direct and a-dirval
35022
35023         * mlib-tgt.ads: Minor comment update.
35024
35025         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
35026         a-direct.ads, a-direct.adb: New files.
35027
35028 2004-04-05  Vincent Celier  <celier@gnat.com>
35029
35030         PR ada/13620
35031         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
35032         just to the compiler.
35033
35034 2004-04-05  Robert Dewar  <dewar@gnat.com>
35035
35036         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
35037         returned string is 1.
35038
35039         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
35040
35041         * eval_fat.ads: Minor reformatting
35042
35043         * g-curexc.ads: Document that lower bound of returned string values
35044         is always one.
35045
35046         * gnatlink.adb: Add ??? comment for previous change
35047         (need to document why this is VMS specific)
35048
35049         * s-stoele.ads: Minor reformatting
35050
35051         * tbuild.ads: Minor reformatting throughout (new function specs)
35052
35053         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
35054         after WITH.
35055
35056         * scng.adb: Minor reformatting
35057
35058 2004-04-05  Geert Bosch  <bosch@gnat.com>
35059
35060         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
35061         (Leading_Part): Still perform truncation to machine number if the
35062         specified radix_digits is greater or equal to machine_mantissa.
35063
35064 2004-04-05  Javier Miranda  <miranda@gnat.com>
35065
35066         * par-ch3.adb: Complete documentation of previous change
35067         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
35068         (aliased must appear before constant).
35069
35070         * par-ch4.adb: Complete documentation of previous change.
35071
35072         * par-ch6.adb: Complete documentation of previous change.
35073
35074         * sinfo.ads: Fix typo in commment.
35075
35076 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
35077
35078         * sem_ch3.adb (Inherit_Components): If derived type is private and has
35079         stored discriminants, use its discriminants to constrain parent type,
35080         as is done for non-private derived record types.
35081
35082         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
35083         Ada 2005 AI-310: an abstract non-dispatching operation is not a
35084         candidate interpretation in an overloaded call.
35085
35086         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
35087         expression is Null and target type is not an access type (e.g. a
35088         non-private address type).
35089
35090 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
35091
35092         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
35093         statement whose right-hand side is an inlined call, save a copy of the
35094         original assignment subtree to preserve enough consistency for
35095         Analyze_Assignment to proceed.
35096
35097         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
35098         complete assignment subtree which is now unnecessary, as the expansion
35099         of inlined call has been improved to preserve a consistent assignment
35100         tree.  Note_Possible_Modification must be called only
35101         after checks have been applied, or else unnecessary checks will
35102         be generated.
35103
35104         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
35105         of explicit dereferences that do not Come_From_Source:
35106          - be selective on cases where we must go back to the dereferenced
35107            pointer (an assignment to an implicit dereference must not be
35108            recorded as modifying the pointer);
35109          - do not rely on Original_Node being present (Analyze_Assignment
35110            calls Note_Possible_Modification on a copied tree).
35111
35112         * sem_warn.adb (Check_References): When an unset reference to a pointer
35113         that is never assigned is encountered, prefer '<pointer> may be null'
35114         warning over '<pointer> is never assigned a value'.
35115
35116 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
35117
35118         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
35119         the ABI.
35120
35121 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
35122
35123         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
35124         libexc. We currently don't reference anything in this library and
35125         linking it in triggers linker warnings we don't want to see.
35126
35127         * init.c: Update comments.
35128
35129 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35130
35131         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
35132         * utils.c (create_field_decl): Likewise.
35133         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
35134
35135 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
35136
35137         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
35138         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
35139         Add info directory entry and category.
35140
35141 2004-04-02  Jan Hubicka  <jh@suse.cz>
35142
35143         * utils.c: Include function.h
35144         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
35145
35146 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
35147
35148         PR ada/14150
35149         * Make-lang.in: Clean up generation of documentation
35150
35151         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
35152
35153         * xgnatug.adb: Removed, replaced by xgnatugn.adb
35154
35155         * xgnatugn.adb: Replaces xgnatug.adb
35156
35157         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
35158
35159         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
35160
35161         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35162         gnat_ug_wnt.texi: Removed.
35163
35164 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
35165
35166         * utils2.c: Update copyright notice.
35167
35168 2004-04-01  Robert Dewar  <dewar@gnat.com>
35169
35170         * checks.adb: Minor reformatting throughout
35171         Note that prev checkin added RM reference to alignment warning
35172
35173 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
35174
35175         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
35176         non-static when building aggregate for bit-packed array.
35177
35178         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
35179         function call that is itself the actual in a procedure call, build
35180         temporary for it.
35181
35182         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
35183         a string literal, create a temporary for it, constant folding only
35184         handles scalars here.
35185
35186 2004-04-01  Vincent Celier  <celier@gnat.com>
35187
35188         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
35189         Error_Msg_SP): New empty procedures to instantiate the Scanner.
35190         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
35191         tokens.
35192         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
35193         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
35194         and get the checksum.
35195
35196         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
35197         already in the Q.
35198         Increase the Marking_Label at the end of the Multiple_Main_Loop,
35199         instead of at the beginning.
35200
35201         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
35202         directly.
35203         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
35204         on VMS.
35205
35206         * osint.ads (Multi_Unit_Index_Character): New Character global variable
35207
35208         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
35209         not '~' directly.
35210
35211         * par.adb: Remove test on file name to detect language defined units.
35212         Add test on unit name, after parsing, to detect language defined units
35213         that are not compiled with -gnatg (except System.RPC and its children)
35214
35215         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
35216         following units without style checking.
35217
35218         * switch-c.adb: Change -gnatC to -gnateI
35219
35220         * usage.adb: Document new switch -gnateInnn
35221
35222         * scng.adb (Accumulate_Token_Checksum): New procedure
35223         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
35224         word or literal number.
35225         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
35226         numbers.
35227
35228 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
35229
35230         * a-tasatt.adb,
35231         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
35232         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
35233         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
35234         5vtpopde.adb: Add missing 'constant' keywords.
35235
35236 2004-04-01  Javier Miranda  <miranda@gnat.com>
35237
35238         * par-ch4.adb: (P_Allocator): Code cleanup
35239
35240         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
35241         attribute.
35242
35243         * sinfo.ads: Complete documentation of previous change
35244
35245 2004-04-01  Pascal Obry  <obry@gnat.com>
35246
35247         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
35248         only on VMS.  This special handling was done because an old GNU/ld bug
35249         on Windows which has been fixed.
35250
35251 2004-04-01  GNAT Script  <nobody@gnat.com>
35252
35253         * Make-lang.in: Makefile automatically updated
35254
35255 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35256
35257         * decl.c (gnat_to_gnu_entity, make_type_from_size):
35258         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
35259         * trans.c (tree_transform, convert_with_check): Likewise.
35260         * utils.c (gnat_signed_or_unsigned_type): Likewise.
35261         (build_vms_descriptor, unchecked_convert): Likewise.
35262         * utils2.c (nonbinary_modular_operation): Likewise.
35263
35264 2004-03-29  Javier Miranda  <miranda@gnat.com>
35265
35266         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
35267         (Install_Null_Excluding_Check): Local subprogram that determines whether
35268         an access node requires a runtime access check and if so inserts the
35269         appropriate run-time check.
35270         (Apply_Access_Check): Call Install_Null_Excluding check if required
35271         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
35272
35273         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
35274
35275         * einfo.ads: Fix typo in comment
35276
35277         * exp_ch3.adb (Build_Assignment): Generate conversion to the
35278         null-excluding type to force the corresponding run-time check.
35279         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
35280         type to force the corresponding run-time check.
35281
35282         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
35283         the null-excluding type to force the corresponding run-time check.
35284
35285         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
35286         case of access types unless they have the null-excluding attribute.
35287
35288         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
35289         part.
35290
35291         * exp_util.ads: Fix typo in comment
35292
35293         * par.adb (P_Null_Exclusion): New subprogram
35294         (P_Subtype_Indication): New formal that indicates if the null-excluding
35295         part has been scanned-out and it was present
35296
35297         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
35298
35299         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
35300         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
35301         type to force the corresponding run-time check
35302         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
35303         components
35304         (Resolve_Array_Aggregate): Carry out some static checks
35305         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
35306
35307         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
35308         attribute must be set only if specified by means of the null-excluding
35309         part. In addition, we must also propagate the access-constant attribute
35310         if present.
35311         (Access_Subprogram_Declaration, Access_Type_Declaration,
35312         Analyze_Component_Declaration, Analyze_Object_Declaration,
35313         Array_Type_Declaration, Process_Discriminants,
35314         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
35315         and carry out some static checks.
35316         (Build_Derived_Access_Type): Set the null-excluding attribute
35317         (Derived_Type_Declaration, Process_Subtype): Carry out some static
35318         checks.
35319
35320         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
35321
35322         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
35323
35324         * sem_ch6.adb (Process_Formals): Carry out some static checks.
35325         (Set_Actual_Subtypes): Generate null-excluding subtype if the
35326         null-excluding part was present; it is not required to be done here in
35327         case of anonymous access types.
35328         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
35329         value.
35330
35331         * sem_res.adb (Resolve_Actuals): Carry out some static check
35332         (Resolve_Null): Allow null in anonymous access
35333
35334         * sinfo.adb: New subprogram Null_Exclusion_Present
35335         All_Present and Constant_Present available on access_definition nodes
35336
35337         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
35338         object_declaration, derived_type_definition, component_definition,
35339         discriminant_specification, access_to_object_definition,
35340         access_function_definition, allocator, access_procedure_definition,
35341         access_definition, parameter_specification, All_Present and
35342         Constant_Present flags available on access_definition nodes.
35343
35344 2004-03-29  Robert Dewar  <dewar@gnat.com>
35345
35346         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
35347         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
35348         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
35349         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
35350         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
35351         sem_prag.adb: Updates to handle multiple units/file
35352
35353         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
35354
35355         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
35356         sem_util.adb: Minor reformatting
35357
35358         * sem_ch12.adb: Add comment for previous change
35359
35360 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
35361
35362         * osint.adb (Executable_Prefix): Set Exec_Name to the current
35363         executable name when not initialized. Otherwise, use its current value.
35364
35365         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
35366         initialize it to another executable name than the current one. This
35367         allows to configure paths for an executable name (gnatmake) different
35368         from the current one (gnatdist).
35369
35370 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
35371
35372         * exp_ch6.adb (Expand_Call): A call to a function declared in the
35373         current unit cannot be inlined if it appears in the body of a withed
35374         unit, to avoid order of elaboration problems in gigi.
35375
35376         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
35377         information for protected (wrapper) operation as well, to simplify gdb
35378         use.
35379
35380         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
35381         protected body, indicate that the entity for the generated spec comes
35382         from source, to ensure that references are properly generated for it.
35383         (Build_Body_To_Inline): Do not inline a function that returns a
35384         controlled type.
35385
35386         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
35387         apply convention to homonyms that are declared explicitly.
35388
35389         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
35390         that renames an equality operator and the operands are overloaded,
35391         resolve them with the declared formal types, before rewriting as an
35392         operator.
35393
35394 2004-03-29  GNAT Script  <nobody@gnat.com>
35395
35396         * Make-lang.in: Makefile automatically updated
35397
35398 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
35399
35400         * memtrack.adb: Log realloc calls, which are treated as free followed
35401         by alloc.
35402
35403 2004-03-25  Vincent Celier  <celier@gnat.com>
35404
35405         * prj-makr.adb (Process_Directories): Detect when a file contains
35406         several units. Do not include such files in the config pragmas or
35407         in the naming scheme.
35408
35409         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
35410         Resolve links only when not in Trusted_Mode.
35411         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
35412         Do not resolve links for the display names.
35413
35414         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
35415         resolve links when computing the display names.
35416
35417 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
35418
35419         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
35420         attribute reference does not denote a subtype, it can be any
35421         expression that has a classwide type, potentially after an implicit
35422         dereference.  In particular, the prefix can be a view conversion for
35423         a classwide type (for which Is_Object_Reference holds), but it can
35424         also be a value conversion for an access-to-classwide type. In the
35425         latter case, there is an implicit dereference, and the original node
35426         for the prefix does not verify Is_Object_Reference.
35427
35428         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
35429         conversion of a discriminant-dependent component of a mutable object
35430         is one itself.
35431
35432 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
35433
35434         * freeze.adb (Freeze_Entity): When an inherited subprogram is
35435         inherited, has convention C, and has unconstrained array parameters,
35436         place the corresponding warning on the derived type declaration rather
35437         than the original subprogram.
35438
35439         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
35440         indication on renaming declaration, if formal has a box and actual
35441         is absent.
35442
35443         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
35444         determine whether to generate an implicit or explicit reference to
35445         the renamed entity.
35446
35447         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
35448         subprogram renaming comes from a defaulted formal subprogram in an
35449         instance.
35450
35451 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
35452
35453         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
35454         value expressions to ensure that calls within a component definition
35455         will be checked (since those are evaluated during the record type's
35456         elaboration).
35457
35458 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
35459
35460         * s-tpobop.adb: Code clean up:
35461         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
35462         code.
35463         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
35464
35465 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
35466
35467         * Makefile.in: Clean up in the ravenscar run time.
35468
35469 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35470
35471         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
35472         of No_Strict_Aliasing to build_pointer_type_for_mode.
35473         * utils.c (update_pointer_to): Walk pointer and ref chains.
35474
35475 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
35476
35477         * ali.ads: Fix Comment about Dynamic_Elab.
35478
35479         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
35480         Has_RACW, Is_Generic, etc.)
35481         (Output_Object, Gnatls): Take into account ALI files not attached to
35482         an object.
35483
35484 2004-03-22  Vincent Celier  <celier@gnat.com>
35485
35486         * gprep.adb: Change all String_Access to Name_Id
35487         (Is_ASCII_Letter): new function
35488         (Double_File_Name_Buffer): New procedure
35489         (Preprocess_Infile_Name): New procedure
35490         (Process_Files): New procedure
35491         (Gnatprep): Check if output and input are existing directories.
35492         Call Process_Files to do the real job.
35493
35494 2004-03-22  Robert Dewar  <dewar@gnat.com>
35495
35496         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
35497         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
35498
35499 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
35500
35501         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
35502         case when the source contains only comments.
35503
35504 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
35505
35506         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
35507         declaration for a child subprogram body that acts as a spec, indicate
35508         that the entity in the declaration needs debugging information.
35509
35510         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
35511         full view if the subtype is created for a constrained record component;
35512         gigi has enough information to construct the record, and there is no
35513         place in the tree for the declaration.
35514
35515         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
35516         serial number for the dummy body that is built for analysis, to avoid
35517         inconsistencies in the generation of internal names when compiling
35518         with -gnatN.
35519
35520 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
35521
35522         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
35523         object.
35524
35525 2004-03-22  GNAT Script  <nobody@gnat.com>
35526
35527         * Make-lang.in: Makefile automatically updated
35528
35529 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35530
35531         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
35532         * trans.c (tree_transform, emit_index_check): Likewise.
35533         * utils.c (build_template): Likewise.
35534         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
35535         (maybe_unconstrained_array, unchecked_convert): Likewise.
35536         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
35537         (build_unary_op): Likewise.
35538         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
35539         (fill_vms_descriptor): Likewise.
35540         (build_call_alloc_dealloc): Likewise.
35541         ALIGN is unsigned.
35542         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
35543
35544 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
35545
35546         PR other/14630
35547         * gnat_ug.texi: Add info directory category and entry.
35548         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35549         gnat_ug_wnt.texi: Regenerate.
35550
35551 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
35552
35553         * ada-tree.h: Update copyright notice.
35554         Minor reformatting.
35555
35556 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
35557
35558         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
35559         as regular exception objects and not as mere integers representing the
35560         condition code.  The latter approach required some dynamics to mask off
35561         severity bits, which did not fit well into the GCC table based model.
35562         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
35563         exception data objects. We don't it and it would conflict with the other
35564         external symbol we have to generate for such exceptions.
35565
35566         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
35567         the special code for VMS exceptions, since these are now represented
35568         as regular exceptions objects.
35569
35570 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35571
35572         * decl.c (debug_no_type_hash): Remove.
35573         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
35574         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
35575
35576 2004-03-19  Laurent Guerby  <laurent@guerby.net>
35577
35578         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
35579         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
35580
35581 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35582
35583         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
35584         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
35585         (TYPE_RM_SIZE_INT): Directly use type.values.
35586         (TREE_LOOP_ID): Clean up check.
35587         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
35588         TYPE_VALUES, not TYPE_FIELDS.
35589         * trans.c (convert_with_check): Delay access of bounds of basetype
35590         until sure is numeric.
35591
35592 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
35593
35594         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
35595
35596         Code clean up:
35597         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
35598         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
35599         Specific.Set instead of direct call to e.g pthread_setspecific.
35600
35601 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
35602
35603         * adaint.c: Update comments.
35604
35605         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
35606         GNATLIB_SHARED for FreeBSD.
35607
35608 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
35609
35610         * init.c [VxWorks]: Do not fix the stack size for the environment task.
35611         When needed (stack checking) the stack size is retrieved
35612         from the VxWorks kernel.
35613
35614         * Makefile.in: Flag -nostdinc is required when building the run time
35615         for avoiding looking for files in the base compiler.
35616         Add the VxWorks specific version of the package body for
35617         System.Stack_checking.Operations (5zstchop.adb).
35618
35619         * Make-lang.in: Add the object file for
35620         System.Stack_Checking.Operations.
35621
35622         * Makefile.rtl: Add object file for the package
35623         System.Stack_Checking.Operations.
35624
35625         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
35626
35627         * s-stache.ads, s-stache.adb: Move the operations related to stack
35628         checking from this package to package System.Stack_Checking.Operations.
35629         This way, stack checking operations are only linked in the final
35630         executable when using the -fstack-check flag.
35631
35632 2004-03-18  Doug Rupp  <rupp@gnat.com>
35633
35634         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
35635         Reorganize ifeq's.
35636
35637         * 5qsystem.ads, 5xcrtl.ads: New files.
35638
35639 2004-03-18  Vincent Celier  <celier@gnat.com>
35640
35641         * prj.adb (Reset): Reset hash table Files_Htable
35642
35643         * prj-env.adb (Source_Paths, Object_Paths): New tables.
35644         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
35645         the procedures Add_To_Path_File.
35646         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
35647         making sure that each directory is present only once and, for object
35648         dirs, when a directory already present is added, the duplicate is
35649         removed and the directory is always put as the last in the table.
35650         Write the path files at the end of these accumulations.
35651
35652         * prj-nmsc.adb (Record_Source): Add source file name in hash table
35653         Files_Htable for all sources.
35654
35655         * prj-proc.adb (Process): Remove restrictions between not directly
35656         related extending projects.
35657
35658 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
35659
35660         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
35661         (Find_Sources): Minor speed optimization.
35662
35663         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
35664         parameter Trusted_Mode.
35665
35666 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
35667
35668         * scn.adb (Determine_License): Take into account a degenerated case
35669         when the source contains only comments.
35670
35671 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
35672
35673         * sem_warn.adb (Check_References): For a warning on a selected
35674         component that does not come from source, locate an uninitialized
35675         component of the record type to produce a more precise error message.
35676
35677 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
35678
35679         * 3zsoccon.ads: Fix multicast options.
35680
35681         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
35682         in the spec.
35683
35684 2004-03-15  Robert Dewar  <dewar@gnat.com>
35685
35686         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
35687         pragma used for a private type.
35688
35689         * lib-xref.adb (Generate_Reference): Do not generate warning if
35690         reference is in a different unit from the pragma Unreferenced.
35691
35692         * 5vtpopde.adb: Minor reformatting
35693         Fix casing of To_Task_ID
35694
35695         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
35696         flag if we have an unchecked conversion to an access type in the same
35697         unit.
35698
35699 2004-03-15  Geert Bosch  <bosch@gnat.com>
35700
35701         * a-ngcoty.adb (Modulus): In alternate formula for large real or
35702         imaginary parts, use Double precision throughout.
35703
35704         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
35705         we want to be able to compile run-time with -gnata for testing, but
35706         this may also be instantiated in user code that is compiled with -gnata.
35707
35708 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
35709
35710         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
35711         codes. Having a separate type for this is useful to enforce consistency
35712         throughout the various run-time units.
35713         (Exception_Data): Use Exception_Code for Import_Code.
35714
35715         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
35716         Natural and Integer in various places.
35717         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
35718         with the severity bits masked off.
35719         (Register_VMS_Exception): Handle the additional exception data pointer
35720         argument.
35721
35722         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
35723         component, now reflected by an exported accessor.
35724         (is_handled_by): New routine to compute whether the propagated
35725         occurrence matches some handler choice specification. Extracted out of
35726         get_action_description_for, and expanded to take care of the VMS
35727         specifities.
35728         (get_action_description_for): Use is_handled_by instead of an explicit
35729         complex condition to decide if the current choice at hand catches the
35730         propagated occurrence.
35731
35732         * raise.h (Exception_Code): New type for C.
35733
35734         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
35735         System.Standard_Library.Exception_Code, to allow references from the
35736         pragma import/export expander.
35737
35738         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
35739         New accessors to allow easy access to GNAT exception data
35740         characteristics.
35741         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
35742         redundant Handled_By_Others component, helper for the personality
35743         routine which will now be able to call the appropriate exception data
35744         accessor instead.
35745
35746         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
35747         component of Standard_Exception_Type to be the closest possible to
35748         Exception_Code in System.Standard_Library, that we cannot get at this
35749         point. Expand a ??? comment to notify that this type node should
35750         probably be rewritten later on.
35751
35752         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
35753         registration call to include a pointer to the exception object in the
35754         arguments.
35755
35756         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
35757         instead of int and explicit bitmasks.
35758
35759 2004-03-15  Vincent Celier  <celier@gnat.com>
35760
35761         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
35762         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
35763
35764         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
35765         longer needed now that it is in the spec of
35766         System.Tasking.Task_Attributes.
35767
35768         * adaint.h, adaint.c: (__gnat_create_output_file): New function
35769
35770         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
35771
35772         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
35773
35774         * make.adb (Gnatmake): Do not check the executable suffix; it is being
35775         taken care of in Scan_Make_Arg.
35776         (Scan_Make_Arg): Add the executable suffix only if the argument
35777         following -o, in canonical case, does not end with the executable
35778         suffix.  When in verbose mode and executable file name does not end
35779         with executable suffix, output the executable name, in canonical case.
35780
35781         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
35782         to avoid warnings when instantiating Ada.Task_Attributes.
35783         Minor reformating.
35784
35785         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
35786         in the correct order.
35787
35788         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
35789         redirect standard output and error to a file for the invocation of the
35790         compiler, then read the file.
35791
35792         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
35793         directory, instead of the Value.
35794         (Find_Source_Dirs): Remove useless code & comments.
35795
35796 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
35797
35798         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
35799         tagged type is inherited, and the parent operation is not frozen yet,
35800         force generation of a freeze node for the inherited operation, so the
35801         corresponding dispatch entry is properly initialized.
35802         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
35803         when looking for user-defined equality operation.
35804
35805         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
35806         boolean when locating primitive equality of tagged component.
35807
35808         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
35809         bit-aligned field and the right-hand side a string literal, introduce
35810         a temporary before expanding assignment into a loop.
35811
35812         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
35813         priority in full, to ensure that any expanded subepxressions of it are
35814         elaborated in the scope of the init_proc.
35815
35816         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
35817         after object declaration, skipping over code that may have been
35818         generated for validity checks.
35819
35820         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
35821         discriminants, ignore the known discriminants of its full view, if
35822         any, to check legality.
35823
35824         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
35825         component if type has unknown discriminants.
35826         (Analyze_Private_Extension_Declaration): Discriminant constraint is
35827         null if type has unknown discriminants.
35828
35829         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
35830         for end label when present.
35831
35832         * s-fileio.adb (Open): When called with a C_Stream, use given name for
35833         temporary file, rather than an empty string.
35834
35835 2004-03-15  Ed Falis  <falis@gnat.com>
35836
35837         * s-thread.adb: Removed, no longer used.
35838
35839 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35840
35841         * decl.c (target.h): Now include.
35842         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
35843         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
35844         (validate_size): For POINTER_TYPE, get smallest size permitted on
35845         machine.
35846
35847         * fe.h: Sort Einfo decls and add Set_Mechanism.
35848
35849         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
35850         (ada/decl.o): Depends on target.h.
35851
35852         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
35853         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
35854
35855 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
35856
35857         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
35858
35859         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
35860         Insert_Dereference_Action when rewriting an implicit dereference into
35861         an explicit one, this will be taken care of during expansion of the
35862         explicit dereference.
35863         (Expand_N_Slice): Same. Always do the rewriting, even for the case
35864         of non-packed slices, since the dereference action generated by
35865         expansion of the explicit dereference is needed in any case.
35866         (Expand_N_Selected_Component): When rewriting an implicit dereference,
35867         analyze and resolve the rewritten explicit dereference so it is seen
35868         by the expander.
35869         (Insert_Dereference_Action): This procedure is now called only for the
35870         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
35871         dereferences that do not come from source (including explicit
35872         dereferences resulting from rewriting implicit ones), but do not
35873         recursively insert a check for the dereference nodes contained within
35874         the check.
35875         (Insert_Dereference_Action): Clarify and correct comment.
35876
35877 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
35878
35879         PR ada/14131
35880         Move language detection to the top level.
35881         * config-lang.in: Build by default.
35882
35883 2004-03-05  Robert Dewar  <dewar@gnat.com>
35884
35885         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
35886
35887         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
35888         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
35889         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
35890         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
35891         unchecked conversion to spec to avoid warnings.
35892
35893         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
35894         to Task_ID
35895
35896         * 7stpopsp.adb: Correct casing in To_Task_ID call
35897
35898         * a-strsea.ads, a-strsea.adb: Minor reformatting
35899
35900         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
35901
35902         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
35903         Adjust Max_Msg_Length to be clearly large enough.
35904
35905         * fe.h: Define In_Same_Source_Unit
35906
35907         * osint.adb: Add pragma Warnings Off to suppress warnings
35908         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
35909         aliasing warnings.
35910
35911         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
35912
35913         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
35914
35915         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
35916
35917         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
35918
35919         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
35920
35921         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
35922         node. We now do generate them for gcc back end.
35923
35924         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
35925         warning.
35926
35927         * sinput-c.adb: Fix bad name in header.
35928         Add pragma Warnings Off to suppress aliasing warning.
35929
35930         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
35931
35932         * snames.h, snames.ads, snames.adb: Add entry for pragma
35933         No_Strict_Aliasing.
35934
35935 2004-03-05  Vincent Celier  <celier@gnat.com>
35936
35937         * prj-com.ads: Add hash table Files_Htable to check when a file name
35938         is already a source of another project.
35939
35940         * prj-nmsc.adb (Record_Source): Before recording a new source, check
35941         if its file name is not already a source of another project. Report an
35942         error if it is.
35943
35944         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
35945         source file name, call gnatpp with all the sources of the main project.
35946
35947         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
35948         of file names.
35949
35950         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
35951         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
35952         /RUNTIME_SYSTEM=, converted to --RTS=
35953         /NOTABS, converted to -notabs
35954
35955 2004-03-05  Pascal Obry  <obry@gnat.com>
35956
35957         * make.adb: Minor reformatting.
35958
35959 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
35960
35961         Part of implemention of AI-262.
35962         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
35963
35964         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
35965         procedure.
35966
35967         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
35968         when component type is a partially constrained class-wide subtype.
35969         (Constrain_Discriminated_Type): If parent type has unknown
35970         discriminants, a constraint is illegal, even if full view has
35971         discriminants.
35972         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
35973         with unknown discriminants whose full view is a discriminated record.
35974
35975         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
35976         flag, to handle properly derivations of tagged types with unknown
35977         discriminants.
35978         (Analyze_Package_Spec, Analyze_Package_Body): Install
35979         Private_With_Clauses before analyzing private part or body.
35980
35981         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
35982         Has_Discriminants can be true for a given type (documentation).
35983
35984 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
35985
35986         * s-restri.ads: Fix license (GPL->GMGPL).
35987
35988         * s-tassta.adb: Minor reformatting.
35989
35990         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
35991         by calls to Exit_One_ATC_Level, since additional clean up is performed
35992         by this function.
35993
35994         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
35995         by calls to Exit_One_ATC_Level, since additional clean up is performed
35996         by this function.
35997
35998 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35999
36000         * trans.c: Reflect GCC changes to fix bootstrap problem.
36001         Add warning for suspicious aliasing unchecked conversion.
36002
36003 2004-03-05  GNAT Script  <nobody@gnat.com>
36004
36005         * Make-lang.in: Makefile automatically updated
36006
36007 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
36008
36009         * ali.adb (Read_Instantiation_Instance): Do not modify the
36010         current_file_num when reading information about instantiations, since
36011         this corrupts files in later references.
36012
36013 2004-03-02  Vincent Celier  <celier@gnat.com>
36014
36015         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
36016         before checking if it is read-only.
36017
36018         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
36019         of SRC_DIRS and eliminate duplicates.
36020
36021         * gprcmd.adb: Replace command "path" with command "path_sep" to return
36022         the path separator.
36023         (Usage): Document path_sep
36024
36025         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
36026         C++ compiler. No need for a script.
36027         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
36028         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
36029         subst.
36030
36031         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
36032         where there are Ada sources.
36033         (Set_Ada_Paths): Only add to the include path the source dirs of project
36034         with Ada sources.
36035         (Add_To_Path): Add the Display_Values of the directories, not their
36036         Values.
36037
36038         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
36039         data.
36040
36041         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
36042         is not No_Name.
36043         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
36044         Value is canonicalized.
36045         (Language_Independent_Check): Do not copy Value to Display_Value when
36046         canonicalizing Value.
36047
36048         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
36049         path to find limited with cycles.
36050         (Parse_Single_Project): Use canonical cased path to find the end of a
36051         with cycle.
36052
36053 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
36054
36055         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
36056         and not a child unit.
36057
36058         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
36059         appear in a with_clause.
36060
36061         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
36062         only happen in type_annotate mode, do not try to elaborate it.
36063
36064         * exp_util.adb (Force_Evaluation): If expression is a selected
36065         component on the left of an assignment, use a renaming rather than a
36066         temporary to remove side effects.
36067
36068         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
36069         inlined instance body, which is analyzed before the end of the
36070         enclosing scope.
36071
36072 2004-03-02  Robert Dewar  <dewar@gnat.com>
36073
36074         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
36075         sem_ch4.adb: Use new feature for substitution of keywords in VMS
36076
36077         * errout.ads, errout.adb: Implement new circuit for substitution of
36078         keywords in VMS.
36079
36080         * sem_case.adb (Analyze_Choices): Place message properly when case is
36081         a subtype reference rather than an explicit range.
36082
36083         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
36084
36085 2004-03-02  Doug Rupp  <rupp@gnat.com>
36086
36087         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
36088
36089 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
36090
36091         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
36092
36093 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36094
36095         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
36096         BLKmode bitfield.
36097
36098 2004-02-25  Robert Dewar  <dewar@gnat.com>
36099
36100         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
36101         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
36102         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
36103         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
36104         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
36105         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
36106         the defining instance of the type to avoid aliasing problems.
36107         Fix copyright header.  Fix bad comments in package header.
36108
36109         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
36110
36111 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
36112
36113         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
36114         rewritten as references when aliased through an address clause.
36115
36116         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
36117         whether call can be interpreted as an indirect call to the result of a
36118         parameterless function call returning an access subprogram.
36119
36120 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
36121
36122         Code clean up:
36123         * exp_ch7.adb (Make_Clean): Remove generation of calls to
36124         Unlock[_Entries], since this is now done by Service_Entries directly.
36125
36126         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
36127
36128         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
36129         Requeue_Call for better code readability. Change spec and update calls:
36130         PO_Service_Entries now unlock the PO on exit.
36131         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
36132         PO_Service_Entries.
36133
36134         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
36135
36136         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
36137
36138 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
36139
36140         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
36141         protected subprogram call and analyzing the result of such expanding
36142         in case when the called protected subprogram is eliminated.
36143
36144         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
36145         names.
36146
36147 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
36148
36149         * Makefile.in: Clean ups.
36150
36151 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
36152
36153         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
36154         protected operations if original subprogram is flagged as eliminated.
36155         (Expand_N_Subprogram_Body): For a protected operation, create
36156         discriminals for next operation before checking whether the operation
36157         is eliminated.
36158
36159         * exp_ch9.adb (Expand_N_Protected_Body,
36160         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
36161         for internal protected operations if the original subprogram is
36162         eliminated.
36163
36164         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
36165         declared in a single protected object.
36166
36167 2004-02-23  Vincent Celier  <celier@gnat.com>
36168
36169         * prj-attr.adb: Make attribute Builder'Executable an associative array,
36170         case insensitive if file names are case insensitive, instead of a
36171         standard associative array.
36172
36173         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
36174         them as case insensitive on platforms where the file names are case
36175         sensitive.
36176
36177         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
36178         project file has already been parsed that canonical path are compared.
36179
36180 2004-02-23  Robert Dewar  <dewar@gnat.com>
36181
36182         * sinput-c.ads: Correct bad unit title in header
36183
36184         * freeze.adb: Minor reformatting
36185
36186 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36187
36188         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
36189         nonaddressable COMPONENT_REF that is removing padding that we are
36190         taking the address of, take the address of the padded record instead
36191         if item is variable size.
36192
36193 2004-02-20  Robert Dewar  <dewar@gnat.com>
36194
36195         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
36196
36197 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
36198
36199         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
36200         itype references for the constrained designated type of a component
36201         whose base type is already frozen.
36202
36203 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
36204
36205         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
36206         avoid GCC warnings.
36207
36208 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
36209
36210         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
36211         identifier for a phantom package that rewrites the formal package
36212         declaration with a box. The Add semantic decorations for the defining
36213         identifier from the original node (that represents the formal package).
36214
36215 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
36216
36217         * Make-lang.in (ada/stamp-sdefault): Use the top level
36218         move-if-change.
36219
36220 2004-02-19  Richard Henderson  <rth@redhat.com>
36221
36222         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
36223
36224 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
36225
36226         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
36227         Scan_ALI can be used for multiple ALI files without reinitializing
36228         between calls.
36229
36230 2004-02-18  Robert Dewar  <dewar@gnat.com>
36231
36232         * debug.adb: Minor reformatting.
36233
36234 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36235
36236         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
36237         to zero if there is an address clause.
36238
36239 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
36240
36241         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
36242
36243 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
36244
36245         * layout.adb (Layout_Component_List): Revise generation of call to
36246         discriminant-checking function to pass selections of all of the type's
36247         discriminants rather than just the variant-controlling discriminant.
36248
36249 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
36250
36251         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
36252         fail in the current setup and triggers spurious system error messages.
36253         Pretend it occurred and failed instead.
36254
36255 2004-02-18  Vincent Celier  <celier@gnat.com>
36256
36257         * bld.adb: Mark FLDFLAGS as saved
36258         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
36259         it is not the root project.  Put each directory to be
36260         extended between double quotes to prevent it to be expanded on Windows.
36261         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
36262         the project file. Set them back to their initial values if they have not
36263         been set in the project file.
36264
36265         * gprcmd.adb: (Gprdebug, Debug): New global variables
36266         (Display_Command): New procedure
36267         (Usage): Document new command "linkopts"
36268         Call Display_Command when env var GPRDEBUG has the value "TRUE"
36269         Implement new command "linkopts"
36270         Remove quotes that may be around arguments for "extend"
36271         Always call Normalize_Pathname with arguments formatted for the platform
36272
36273         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
36274         Change @echo to @$(display) in target clean to be able to clean silently
36275
36276         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
36277
36278         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
36279         canonical case.
36280
36281         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
36282         = Extending_All when current project is an extending all project.
36283
36284         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
36285         set to True only for LINK command, after Unix switch -o.
36286         (Process_Arguments): Set Output_File_Expected to True for LINK command
36287         after Unix switch -o. When Output_File_Expected is True, never add an
36288         extension to a file name.
36289
36290         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
36291         option file name, only to the --for-linker= switch.
36292         (Option_File_Name): If option file name do not end with ".opt", append
36293         "/OPTIONS".
36294
36295 2004-02-18  GNAT Script  <nobody@gnat.com>
36296
36297         * Make-lang.in: Makefile automatically updated
36298
36299 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
36300
36301         * Make-lang.in (stamp-sdefault): Do not depend on
36302         move-if-change.
36303
36304 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
36305
36306         * config-lang.in: Disable Ada by default until probe logic for
36307         a bootstrap Ada compiler can be moved to the top level configure
36308         script.
36309
36310 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
36311
36312         * decl.c (components_to_record): Don't claim that the internal fields
36313         we make to hold the variant parts are semantically addressable, because
36314         they are not.
36315
36316         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
36317         adjust the comment describing the modular type form when we can use it.
36318         (Install_PAT): Account for the Esiz renaming.
36319
36320         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
36321         sc_onstack context indication before raising the exception to which
36322         the signal is mapped. Allows better handling of later signals possibly
36323         triggered by the resumed user code if the exception is handled.
36324
36325 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
36326
36327         * 5zinit.adb: Removed, no longer used.
36328
36329 2004-02-12  Robert Dewar  <dewar@gnat.com>
36330
36331         * ali.adb: Remove separating space between parameters on R line. Makes
36332         format consistent with format used by the binder for Set_Globals call.
36333
36334         * atree.ads, atree.adb: Minor reformatting (new function header format)
36335
36336         * bindgen.adb: Add Run-Time Globals documentation section containing
36337         detailed documentation of the globals passed from the binder file to
36338         the run time.
36339
36340         * gnatls.adb: Minor reformatting
36341
36342         * init.c (__gnat_set_globals): Add note pointing to documentation in
36343         bindgen.
36344
36345         * lib-writ.ads, lib-writ.adb: Remove separating space between
36346         parameters on R line.
36347         Makes format consistent with format used by the binder for Set_Globals
36348         call.
36349
36350         * osint.ads: Add 2004 to copyright notice
36351         Minor reformatting
36352
36353         * snames.ads: Correct capitalization of FIFO_Within_Priorities
36354         Noticed during code reading, documentation issue only
36355
36356         * usage.adb: Remove junk line for obsolete C switch
36357         Noticed during code reading
36358
36359 2004-02-12  Vincent Celier  <celier@gnat.com>
36360
36361         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
36362         extend for each directory, so that multiple /** directories are
36363         extended individually.
36364         (Recursive_Process): Set the default for LANGUAGES to ada
36365
36366         * gprcmd.adb: Define new command "ignore", to do nothing.
36367         Implement new comment "path".
36368
36369         * Makefile.generic: Suppress output when SILENT is set
36370         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
36371         used, so that the correct compiler is invoked.
36372         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
36373         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
36374
36375 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
36376
36377         * Makefile.in: Clean ups and remove obsolete targets.
36378
36379 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
36380
36381         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
36382         predicate declared in exp_util.
36383
36384         * exp_util.adb: Add comments.
36385
36386         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
36387         visibility before compiling context of the subunit.
36388
36389         * sem_res.adb (Check_Parameterless_Call): If the context expects a
36390         value but the name is a procedure, do not attempt to analyze as a call,
36391         in order to obtain more telling diagnostics.
36392
36393         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
36394         'Access on parameterless function calls.
36395         (Normalize_Actuals): For a parameterless function call with missing
36396         actuals, defer diagnostic until resolution of enclosing call.
36397
36398         * sem_util.adb (Wrong_Type): If the context type is an access to
36399         subprogram and the expression is a procedure name, suggest a missing
36400         'attribute.
36401
36402 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
36403             Nathanael Nerode  <neroden@gcc.gnu.org>
36404
36405         PR ada/6637
36406         PR ada/5911
36407         Merge with libada-branch:
36408         * config-lang.in: Build libada only when ada is built.
36409
36410 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
36411
36412         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
36413         for a tagged type, verify that both formals have the same type.
36414
36415         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
36416         temporary when the formal is an in-parameter and the actual a possibly
36417         unaligned slice.
36418
36419         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
36420         when expansion is disabled, to ensure proper name capture with
36421         overloaded literals.  Condition can be of any boolean type, resolve
36422         accordingly.
36423
36424         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
36425         renaming is for a formal subprogram with a default operator name, and
36426         there is a usable operator that is visible at the point of
36427         instantiation.
36428
36429 2004-02-09  Robert Dewar  <dewar@gnat.com>
36430
36431         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
36432         rewrite to ignore errors in ali files, intended to allow tools downward
36433         compatibility with new versions of ali files.
36434
36435         * ali.ads: Add new parameter Ignore_Errors
36436
36437         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
36438         duplicating the error message giving the file with restrictions.
36439
36440         * debug.adb: Add debug flag I for gnatbind
36441
36442         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
36443         operators for the case where the operator is a defining operator.
36444
36445         * exp_ch3.adb: Minor reformatting (new function spec format).
36446
36447         * exp_ch4.adb: Add comment for previous change, and make minor
36448         adjustment to loop to always check for improper loop termination.
36449         Minor reformatting throughout (new function spec format).
36450
36451         * gnatbind.adb: Implement -di debug flag for gnatbind
36452
36453         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
36454
36455         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
36456
36457         * lib-load.adb: Fix bad assertion.
36458         Found by testing and code reading.
36459         Minor reformatting.
36460
36461         * lib-load.ads: Minor reformatting.
36462
36463         * lib-writ.adb: There is only one R line now.
36464
36465         * lib-writ.ads: Add documentation on making downward compatible changes
36466         to ali files so old tools work with new ali files.
36467         There is only one R line now.
36468         Add documentation on format incompatibilities (with special GPS note)
36469
36470         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
36471
36472         * par-load.adb: Minor reformatting
36473
36474         * sem_ch8.adb: Fix to error message from last update
36475         Minor reformatting and restructuring of code from last update
36476
36477         * par-prag.adb, snames.adb, snames.ads, snames.h,
36478         sem_prag.adb: Implement pragma Profile.
36479
36480         * stylesw.adb: Implement -gnatyN switch to turn off all style check
36481         options.
36482
36483         * usage.adb: Add line for -gnatyN switch
36484
36485         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
36486
36487 2004-02-09  Albert Lee  <lee@gnat.com>
36488
36489         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
36490
36491 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
36492
36493         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
36494         slices.
36495
36496         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
36497         is nested in an instance that is not frozen yet, to avoid
36498         order-of-elaboration problems in gigi.
36499
36500         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
36501         body the attribute is legal.
36502
36503 2004-02-09  Robert Dewar  <dewar@gnat.com>
36504
36505         * s-rident.ads: Minor comment correction
36506
36507         * targparm.adb: Remove dependence on uintp completely. There was
36508         always a bug in Make in that it called Targparm before initializing
36509         the Uint package. The old code appeared to get away with this, but
36510         the new code did not! This caused an assertion error in gnatmake.
36511
36512         * targparm.ads: Fix bad comment, restriction pragmas with parameters
36513         are indeed fully supported.
36514
36515 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
36516
36517         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
36518
36519 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
36520
36521         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
36522         with targetm.calls.promote_prototypes.
36523
36524 2004-02-04  Robert Dewar  <dewar@gnat.com>
36525
36526         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
36527         ali.ads, gprcmd.adb: Minor reformatting
36528
36529         * bindgen.adb: Output restrictions string for new style restrictions
36530         handling
36531
36532         * impunit.adb: Add s-rident.ads (System.Rident) and
36533         s-restri (System.Restrictions)
36534
36535         * lib-writ.adb: Fix bug in writing restrictions string (last few
36536         entries wrong)
36537
36538         * s-restri.ads, s-restri.adb: Change name Restrictions to
36539         Run_Time_Restrictions to avoid conflict with package name.
36540         Add circuit to read and acquire run time restrictions.
36541
36542 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
36543
36544         * restrict.ads, restrict.adb: Use the new restriction
36545         No_Task_Attributes_Package instead of the old No_Task_Attributes.
36546
36547         * sem_prag.adb: No_Task_Attributes is a synonym of
36548         No_Task_Attributes_Package.
36549
36550         * snames.ads, snames.adb: New entry for proper handling of
36551         No_Task_Attributes.
36552
36553         * s-rident.ads: Adding restriction No_Task_Attributes_Package
36554         (AI-00249) that supersedes the GNAT specific restriction
36555         No_Task_Attributes.
36556
36557 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
36558
36559         * sem_prag.adb:
36560         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
36561          body, an identifier may be wrapped in an unchecked conversion.
36562
36563 2004-02-04  Vincent Celier  <celier@gnat.com>
36564
36565         * lib-writ.ads: Comment update for the W lines
36566
36567         * bld.adb: (Expression): An empty string list is static
36568
36569         * fname-uf.adb: Minor comment update
36570
36571         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
36572
36573         * gnatbind.adb: Initialize Cumulative_Restrictions with the
36574         restrictions on the target.
36575
36576 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
36577
36578         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
36579         gen_rtx.
36580
36581 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
36582
36583         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
36584
36585 2004-02-02  Vincent Celier  <celier@gnat.com>
36586
36587         * gprcmd.adb (Check_Args): If condition is false, print the invoked
36588         comment before the usage.
36589         Gprcmd: Fail when command is not recognized.
36590         (Usage): Document command "prefix"
36591
36592         * g-md5.adb (Digest): Process last block.
36593         (Update): Do not process last block. Store remaining characters and
36594         length in Context.
36595
36596         * g-md5.ads (Update): Document that several call to update are
36597         equivalent to one call with the concatenated string.
36598         (Context): Add fields to allow new Update behaviour.
36599
36600         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
36601         defaulted to False.
36602         When May_Fail is True and no existing file can be found, return No_File.
36603
36604         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
36605         functions.
36606
36607         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
36608         spec file name instead on the W line.
36609
36610 2004-02-02  Robert Dewar  <dewar@gnat.com>
36611
36612         * ali.adb: Read and acquire info from new format restrictions lines
36613
36614         * bcheck.adb: Add circuits for checking restrictions with parameters
36615
36616         * bindgen.adb: Output dummy restrictions data
36617         To be changed later
36618
36619         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
36620         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
36621         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
36622         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
36623         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
36624
36625         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
36626         the warning message on access to possibly uninitialized variable S)
36627         Minor changes for new restrictions handling.
36628
36629         * gnatbind.adb: Minor reformatting
36630         Minor changes for new restrictions handling
36631         Move circuit for -r processing here from bcheck (cleaner)
36632
36633         * gnatcmd.adb, gnatlink.adb: Minor reformatting
36634
36635         * lib-writ.adb: Output new format restrictions lines
36636
36637         * lib-writ.ads: Document new R format lines for new restrictions
36638         handling.
36639
36640         * s-restri.ads/adb: New files
36641
36642         * Makefile.rtl: Add entry for s-restri.ads/adb
36643
36644         * par-ch3.adb: Fix bad error messages starting with upper case letter
36645         Minor reformatting
36646
36647         * restrict.adb: Major rewrite throughout for new restrictions handling
36648         Major point is to handle restrictions with parameters
36649
36650         * restrict.ads: Major changes in interface to handle restrictions with
36651         parameters. Also generally simplifies setting of restrictions.
36652
36653         * snames.ads/adb: New entry for proper handling of No_Requeue
36654
36655         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
36656         restriction counting.
36657         Other minor changes for new restrictions handling
36658
36659         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
36660         Restriction_Warnings now allows full parameter notation
36661         Major rewrite of Restrictions for new restrictions handling
36662
36663 2004-02-02  Javier Miranda  <miranda@gnat.com>
36664
36665         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
36666         syntax rule for object renaming declarations.
36667         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
36668         component definitions.
36669
36670         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
36671         components.
36672         (Array_Type_Declaration): Give support to access components. In addition
36673         it was also modified to reflect the name of the object in anonymous
36674         array types. The old code did not take into account that it is possible
36675         to have an unconstrained anonymous array with an initial value.
36676         (Check_Or_Process_Discriminants): Allow access discriminant in
36677         non-limited types.
36678         (Process_Discriminants): Allow access discriminant in non-limited types
36679         Initialize the new Access_Definition field in N_Object_Renaming_Decl
36680         node.  Change Ada0Y to Ada 0Y in comments
36681
36682         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
36683         equality operators.
36684         Change Ada0Y to Ada 0Y in comments
36685
36686         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
36687         renamings Change Ada0Y to Ada 0Y in comments
36688
36689         * sem_type.adb (Find_Unique_Type): Give support to the equality
36690         operators for universal access types
36691         Change Ada0Y to Ada 0Y in comments
36692
36693         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
36694
36695         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
36696         field.
36697         (N_Object_Renaming_Declaration): Addition of Access_Definition field
36698         Change Ada0Y to Ada 0Y in comments
36699
36700         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
36701         component definition and object renaming nodes
36702         Change Ada0Y to Ada 0Y in comments
36703
36704 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
36705
36706         * restrict.adb: Use the new restriction identifier
36707         No_Requeue_Statements instead of the old No_Requeue for defining the
36708         restricted profile.
36709
36710         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
36711         No_Requeue_Statements.
36712
36713         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
36714         that supersedes the GNAT specific restriction No_Requeue. The later is
36715         kept for backward compatibility.
36716
36717 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
36718
36719         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
36720         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
36721         pragma and fix incorrect ones.
36722
36723         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
36724         warning if the pragma is redundant.
36725
36726 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
36727
36728         * 5staprop.adb: Add missing 'constant' keywords.
36729
36730         * Makefile.in: use consistent value for SYMLIB on
36731         platforms where libaddr2line is supported.
36732
36733 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36734
36735         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
36736         annotating types.
36737
36738 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
36739
36740         * init.c (__gnat_install_handler): Setup an alternate stack for signal
36741         handlers in the environment thread. This allows proper propagation of
36742         an exception on stack overflows in this thread even when the builtin
36743         ABI stack-checking scheme is used without support for a stack reserve
36744         region.
36745
36746         * utils.c (create_field_decl): Augment the head comment about bitfield
36747         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
36748         here, because the former is not accurate enough at this point.
36749         Let finish_record_type decide instead.
36750         Don't make a bitfield if the field is to be addressable.
36751         Always set a size for the field if the record is packed, to ensure the
36752         checks for bitfield creation are triggered.
36753         (finish_record_type): During last pass over the fields, clear
36754         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
36755         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
36756         from DECL_BIT_FIELD.
36757
36758 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
36759
36760         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
36761         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
36762         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
36763
36764 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
36765
36766         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
36767
36768         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
36769         (ZCX_By_Default): Likewise.
36770         (Front_End_ZCX_Support): Likewise.
36771
36772         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
36773         (Initialize_Lock): Mark Level unreferenced.
36774         (Sleep): Mark Reason unreferenced.
36775         (Timed_Sleep): Likewise.
36776         (Wakeup): Likewise.
36777         (Exit_Task): Use Result.
36778         (Check_No_Locks): Mark Self_ID unreferenced.
36779
36780         * 5gtasinf.adb (New_Sproc): Make Attr constant.
36781         (Bound_Thread_Attributes): Make Sproc constant.
36782         (New_Bound_Thread_Attributes): Likewise.
36783
36784 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
36785
36786         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
36787         one-dimensional array an slice assignments, when component type is
36788         controlled.
36789
36790         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
36791         component type is controlled, and control_actions are in effect, use
36792         TSS procedure rather than generating inline code.
36793
36794         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
36795         arrays with controlled components.
36796
36797 2004-01-26  Vincent Celier  <celier@gnat.com>
36798
36799         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
36800         command line for the non VMS case.
36801
36802         * gnatlink.adb (Process_Binder_File): When building object file, if
36803         GNU linker is used, put all object paths between quotes, to prevent ld
36804         error when there are unusual characters (such as '!') in the paths.
36805
36806         * Makefile.generic: When there are sources in Ada and the main is in
36807         C/C++, invoke gnatmake with -B, instead of -z.
36808
36809         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
36810         from VMS_Conversion.
36811         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
36812         specification of argument file on the command line.
36813
36814 2004-01-26  Bernard Banner  <banner@gnat.com>
36815
36816         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
36817
36818 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
36819
36820         * snames.adb: Update copyright notice.
36821         Add info on slice assignment for controlled arrays.
36822
36823 2004-01-23  Robert Dewar  <dewar@gnat.com>
36824
36825         * exp_aggr.adb: Minor reformatting
36826
36827         * exp_ch9.adb: Minor code clean up
36828         Minor reformatting
36829         Fix bad character in comment
36830
36831         PR ada/13471
36832         * targparm.adb (Get_Target_Parameters): Give clean abort error on
36833         unexpected end of file, along with more detailed message.
36834
36835 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36836
36837         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
36838         PAT.
36839
36840         * decl.c (copy_alias_set): New function.
36841         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
36842
36843 2004-01-23  Doug Rupp  <rupp@gnat.com>
36844
36845         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
36846         lib$${file} in case subsequent character is not a separator.
36847
36848 2004-01-23  Vincent Celier  <celier@gnat.com>
36849
36850         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
36851         when the GCC version is at least 3.
36852
36853         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
36854         Remove all "Opt.", to prepare for opt split
36855
36856         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
36857         Extends_All. Set to True when the project parsed is an extending all
36858         project. Fails for importing an extending all project only when the
36859         imported project is an extending all project.
36860         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
36861         depending on the value of Extends_All returned.
36862
36863         * prj-proc.adb (Process): Check that no project shares its object
36864         directory with a project that extends it, directly or indirectly,
36865         including a virtual project.
36866         Check that no project extended by another project shares its object
36867         directory with another also extended project.
36868
36869         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
36870         Kind = N_With_Clause
36871
36872         * prj-tree.ads: Minor reformatting
36873         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
36874
36875 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
36876
36877         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
36878         applies to a type with an incomplete view, use full view in Name of
36879         clause, for consistency with uses of Get_Attribute_Definition_Clause.
36880
36881 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
36882
36883         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
36884         SCHED_RR, since other values are not supported by this policy.
36885         (Initialize): Move initialization of mutex attribute to package
36886         elaboration, to prevent early access to this variable.
36887
36888         * Makefile.in: Remove mention of Makefile.adalib, unused.
36889
36890         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
36891         1ssecsta.ads: Removed, unused.
36892
36893 2004-01-21  Javier Miranda  <miranda@gnat.com>
36894
36895         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
36896         entity if already built in the current scope.
36897
36898         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
36899         reminder in internal scopes. Required for nested limited aggregates.
36900
36901 2004-01-21  Doug Rupp  <rupp@gnat.com>
36902
36903         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
36904         VMS. Replace all occurences of libgnat- and libgnarl- with
36905         libgnat$(hyphen) and libgnarl$(hyphen).
36906         Fixed shared library build problem on VMS.
36907
36908 2004-01-21  Robert Dewar  <dewar@gnat.com>
36909
36910         * mlib-prj.adb: Minor reformatting
36911
36912 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
36913
36914         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
36915         'constant' keywords for declaration of pointers that are not modified.
36916
36917         * exp_pakd.adb: Fix English in comment.
36918
36919 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
36920
36921         PR ada/10889
36922         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
36923         copy all attributes of the parent, including the foreign language
36924         convention.
36925
36926 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
36927
36928         PR ada/10565
36929         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
36930         for 'delay until' statement.
36931
36932 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
36933
36934         * Make-lang.in: Replace $(docdir) with doc.
36935         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
36936         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
36937         to use consistent MAKEINFO rule.
36938         (ada.man, ada.srcman): Dummy entry.
36939         (ADA_INFOFILES): Define.
36940         (ada.info, ada.srcinfo): New rules.
36941
36942 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
36943
36944         * utils.c: Update copyright notice, missed in previous change.
36945
36946 2004-01-19  Vincent Celier  <celier@gnat.com>
36947
36948         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
36949         args if Bind is True. Set First_ALI, if not already done.
36950         (Build_Library): For Stand Alone Libraries, extract from one ALI file
36951         an eventual --RTS switch, for gnatbind, and all backend switches +
36952         --RTS, for linking.
36953
36954 2004-01-19  Robert Dewar  <dewar@gnat.com>
36955
36956         * sem_attr.adb, memtrack.adb: Minor reformatting
36957
36958 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
36959
36960         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
36961         that rename enumeration literals. This is properly done in sem_eval.
36962
36963         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
36964         to functions that rename enumeration literals.
36965
36966         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
36967         functions that rename enumeration literals.
36968
36969 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
36970
36971         * Make-lang.in (utils.o): Depend on target.h.
36972         * utils.c: Include target.h.
36973         (process_attributes): Use targetm.have_named_sections instead
36974         of ASM_OUTPUT_SECTION_NAME.
36975
36976 2004-01-16  Andreas Jaeger  <aj@suse.de>
36977
36978         * Makefile.in: Add $(DESTDIR).
36979
36980 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
36981
36982         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
36983         also when not defining if a Size clause applies. That information is
36984         not to be ignored.
36985
36986 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
36987
36988         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
36989         symbolic links for the shared gnat run time when needed.
36990
36991 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
36992
36993         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
36994         for writing, and terminate with an error message if not.
36995
36996 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
36997
36998         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
36999         warning on an access to subprogram in an instance, when the target
37000         type is declared in the same generic unit.
37001         (Eval_Attribute): If 'access is known to fail accessibility check,
37002         rewrite as a raise statement.
37003
37004 2004-01-15  GNAT Script  <nobody@gnat.com>
37005
37006         * Make-lang.in: Makefile automatically updated
37007
37008 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
37009
37010         * Make-lang.in (ada.srcextra): Dummy entry.
37011
37012 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
37013
37014         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
37015
37016 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
37017
37018         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
37019         components that are initialized with aggregates.
37020
37021 2004-01-13  Vincent Celier  <celier@gnat.com>
37022
37023         * gnatlink.adb (Process_Binder_File): To find directory of shared
37024         libgcc, if "gcc-lib" is not a subdirectory, look for the last
37025         subdirectory "lib" in the path of the shared libgnat or libgnarl.
37026
37027         * make.adb (Gnatmake): If GCC version is at least 3, link with
37028         -shared-libgcc, when there is at least one shared library project.
37029
37030         * opt.ads (GCC_Version): New integer constant.
37031
37032         * adaint.c (get_gcc_version): New function.
37033
37034 2004-01-13  Robert Dewar  <dewar@gnat.com>
37035
37036         * sem_dist.adb, sem_res.adb, sem_util.adb,
37037         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
37038         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
37039
37040 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
37041
37042         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
37043         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
37044         declarations.
37045
37046 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
37047
37048         * misc.c: Remove trailing spaces.
37049         Update copyright notice missed in previous change.
37050
37051         PR ada/13572
37052         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
37053         prefix/share/make
37054
37055         * Makefile.generic: Update copyright.
37056         Add license notice.
37057
37058         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
37059         of prefix/share/make.
37060
37061         * Makefile.prolog: Update copyright.
37062         Add license notice.
37063
37064 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
37065
37066         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
37067         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
37068         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
37069         instead of String.
37070
37071         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
37072         signature.
37073
37074 2004-01-12  Javier Miranda  <miranda@gnat.com>
37075
37076         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
37077         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
37078         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
37079         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
37080         Component_Definition node.
37081
37082 2004-01-12  Ed Falis  <falis@gnat.com>
37083
37084         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
37085
37086 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
37087
37088         * link.c: Change default libgnat kind to STATIC for FreeBSD.
37089
37090 2004-01-12  Bernard Banner  <banner@gnat.com>
37091
37092         * Makefile.in: map 86numaux to a-numaux for x86_64
37093
37094 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
37095
37096         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
37097         generated to rename a generic actual, go to the actual itself, the
37098         subtype is not a user-visible entity.
37099
37100         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
37101         part is a private subtype, reset the visibility of its full view, if
37102         any, to be consistent.
37103
37104         PR ada/13417
37105         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
37106         to use a generic package G as a formal package for another generic
37107         declared within G.
37108
37109 2004-01-12  Robert Dewar  <dewar@gnat.com>
37110
37111         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
37112
37113         * usage.adb: Remove mention of obsolete -gnatwb switch
37114         Noticed during code reading
37115
37116 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
37117
37118         * 1ssecsta.adb: Minor changes for -gnatwa warnings
37119
37120 2004-01-12  GNAT Script  <nobody@gnat.com>
37121
37122         * Make-lang.in: Makefile automatically updated
37123
37124 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
37125
37126         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
37127
37128 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
37129
37130         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
37131
37132 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
37133
37134         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
37135         Update comment and copyright date.
37136         * stamp-xgnatug: Delete.
37137
37138 2004-01-05  Robert Dewar  <dewar@gnat.com>
37139
37140         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
37141         be modified by the binder generated main program if the -D switch is
37142         used.
37143
37144         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
37145         imported functions (since now we expect this to be done for imported
37146         functions)
37147
37148         * 5vtaprop.adb: Add several ??? for sections requiring more comments
37149         Minor reformatting throughout
37150
37151         * 5zinit.adb: Minor reformatting
37152         Add 2004 to copyright date
37153         Minor changes to avoid -gnatwa warnings
37154         Correct some instances of using OR instead of OR ELSE (noted while
37155         doing reformatting)
37156
37157         * sprint.adb: Minor updates to avoid -gnatwa warnings
37158
37159         * s-secsta.ads, s-secsta.adb:
37160         (SS_Get_Max): New function to obtain high water mark for ss stack
37161         Default_Secondary_Stack is not a constant since it may be modified by
37162         the binder generated main program if the -D switch is used.
37163
37164         * switch-b.adb: New -Dnnn switch for binder
37165
37166         * switch-c.adb:
37167         Make -gnatg imply all warnings currently in -gnatwa
37168
37169         * vms_conv.adb: Minor reformatting
37170         Add 2004 to copyright notice
37171         Add 2004 to printed copyright notice
37172
37173         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
37174         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
37175         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
37176         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
37177         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
37178         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
37179         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
37180         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
37181         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
37182         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
37183         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
37184         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
37185         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
37186         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
37187         checks.adb, clean.adb, cstand.adb, einfo.ads,
37188         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
37189         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
37190         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
37191         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
37192         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
37193         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
37194         Minor reformatting and code clean ups.
37195         Minor changes to prevent -gnatwa warnings
37196
37197         * ali.adb: Minor reformatting and cleanup of code
37198         Acquire new SS indication of secondary stack use from ali files
37199
37200         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
37201         (since now we expect this to be done for imported functions)
37202
37203         * bindgen.adb: Generate call to modify default secondary stack size if
37204         -Dnnn switch given
37205
37206         * bindusg.adb: Add line for new -D switch
37207
37208         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
37209         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
37210         Add circuitry for both records and arrays to avoid gigi
37211         processing if the type involved has non-bit-aligned components
37212
37213         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
37214         N_String_Literal node always references an E_String_Literal_Subtype
37215         entity. This may not be true in the future.
37216         (Possible_Bit_Aligned_Component): Move processing of
37217         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
37218
37219         * exp_ch6.adb (Expand_Thread_Body): Pick up
37220         Default_Secondary_Stack_Size as variable so that we get value modified
37221         by possible -Dnnn binder parameter.
37222
37223         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
37224         (Type_May_Have_Bit_Aligned_Components): New function.
37225
37226         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
37227         (Type_May_Have_Bit_Aligned_Components): New function.
37228
37229         * fe.h: (Set_Identifier_Casing): Fix prototype.
37230         Add declaration for Sem_Elim.Eliminate_Error_Msg.
37231         Minor reformatting.
37232
37233         * freeze.adb (Freeze_Entity): Add RM reference to error message about
37234         importing constant atomic/volatile objects.
37235         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
37236         unless explicit Pure_Function pragma given, to avoid insidious bug of
37237         call to non-pure imported function getting eliminated.
37238
37239         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
37240         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
37241         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
37242         Add 2004 to printed copyright notice
37243
37244         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
37245         stack used.
37246
37247         * Makefile.rtl: Add entry for g-sestin.o
37248         g-sestin.ads: New file.
37249
37250         * mdll.adb: Minor changes to avoid -gnatwa warnings
37251
37252         * mlib-tgt.adb: Minor reformatting
37253
37254         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
37255         New switch Sec_Stack_Used (GNAT, GNATBIND)
37256         Make Default_Secondary_Stack_Size a variable instead of a constant,
37257         so that it can be modified by the new -Dnnn bind switch.
37258
37259         * rtsfind.adb (Load_Fail): Give full error message in configurable
37260         run-time mode if all_errors mode is set. This was not done in the case
37261         of a file not found, which was an oversight.
37262         Note if secondary stack unit is used by compiler.
37263
37264         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
37265         ineffective elaborate all pragmas on non-visible packages (this
37266         happened when a renamed subprogram was called). Now the elaborate all
37267         always goes on the package containing the renaming rather than the one
37268         containing the renamed subprogram.
37269
37270         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
37271         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
37272
37273         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
37274         has an Etype that references an E_String_Literal.
37275         (Eval_String_Literal): Avoid assumption that N_String_Literal node
37276         always references an E_String_Literal_Subtype entity. This may not
37277         be true in the future.
37278
37279         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
37280         pragma location.
37281
37282         * sem_res.adb (Resolve): Specialize msg for function name used in proc
37283         call.
37284
37285 2004-01-05  Ed Falis  <falis@gnat.com>
37286
37287         * g-debuti.adb: Replaced direct boolean operator with short-circuit
37288         form.
37289
37290 2004-01-05  Vincent Celier  <celier@gnat.com>
37291
37292         * bld.adb: Minor comment updates
37293         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
37294         of Item_Name).
37295
37296         * make.adb (Gnatmake): Special process for files to compile/check when
37297         -B is specified. Fail when there are only foreign mains in attribute
37298         Main of the project file and -B is not specified. Do not skip bind/link
37299         steps when -B is specified.
37300
37301         * makeusg.adb: Document new switch -B
37302
37303         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
37304
37305         * switch-m.adb: (Scan_Make_Switches): Process -B switch
37306
37307         * vms_data.ads: Add new GNAT PRETTY qualifier
37308         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
37309
37310 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37311
37312         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
37313         case.
37314
37315         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
37316         Set_Identifier_Casing.
37317
37318         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
37319         has size that overflows.
37320
37321 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
37322
37323         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
37324         -gnatwa warning on static condition.
37325
37326 2004-01-05  Doug Rupp  <rupp@gnat.com>
37327
37328         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
37329
37330 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
37331
37332         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
37333         all attributes, including read-only attribute.
37334
37335 2004-01-05  Pascal Obry  <obry@gnat.com>
37336
37337         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
37338         library naming scheme.
37339
37340         * mlib-prj.adb (Build_Library): Generate different names for the static
37341         or dynamic version of the GNAT runtime. This is needed to support the
37342         new shared library naming scheme.
37343         (Process_Binder_File): Add detection of shared library in binder file
37344         based on the new naming scheme.
37345
37346         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
37347         scheme for the shared runtime libraries.
37348
37349         * Makefile.in:
37350         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
37351         scheme.
37352         (install-gnatlib): Do not create symlinks for shared libraries.
37353         (gnatlib-shared-default): Idem.
37354         (gnatlib-shared-dual-win32): New target. Not used for now as the
37355         auto-import feature does not support arrays/records.
37356         (gnatlib-shared-win32): Do not create copy for the shared libraries.
37357         (gnatlib-shared-vms): Fix shared runtime libraries names.
37358
37359         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
37360         dependent runtime shared library name.
37361
37362 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
37363
37364         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
37365         than the object.
37366
37367 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
37368
37369         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
37370         protected objects when allocator has a subtype indication, not a
37371         qualified expression. Note that qualified expressions may have to be
37372         checked when limited aggregates are implemented.
37373
37374         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
37375         pure, emit warning.
37376         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
37377         subprogram is imported, remove warning.
37378
37379 2004-01-05  Geert Bosch  <bosch@gnat.com>
37380
37381         * s-poosiz.adb: Update copyright notice.
37382         (Allocate): Use Task_Lock to protect against concurrent access.
37383         (Deallocate): Likewise.
37384
37385 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
37386
37387         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
37388         comment.
37389
37390 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
37391
37392         * gnat_ug.texi: Force a CVS commit by updating copyright.
37393         * gnat_ug_vxw.texi: Regenerate.
37394         * gnat_ug_wnt.texi: Regenerate.
37395         * gnat_ug_vms.texi: Regenerate.
37396         * gnat_ug_unx.texi: Regenerate.
37397
37398 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
37399
37400         * trans.c: Remove uses of "register" specifier in
37401         declarations of local variables.
37402
37403 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
37404
37405         * stamp-xgnatug: New stamp file.
37406         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
37407         (ada/doctools/xgnatug): Add $(build_exeext).
37408         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
37409         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
37410
37411 2003-12-17  Ed Falis  <falis@gnat.com>
37412
37413         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
37414         eliminate warning.
37415
37416         * a-exextr.adb: Add context clause for
37417         Ada.Exceptions.Last_Chance_Handler.
37418
37419 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
37420
37421         * cstand.adb (Create_Standard): Change the way how the declaration of
37422         the Duration type is created (making it the same way as it is for all
37423         the other standard types).
37424
37425 2003-12-17  Robert Dewar  <dewar@gnat.com>
37426
37427         * s-crtl.ads: Fix header format
37428         Change Pure to Preelaborate
37429
37430 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
37431
37432         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
37433         the expression type only if it is declared in the current unit.
37434
37435         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
37436         are universal and already analyzed, as can occur in constrained
37437         subcomponents that depend on discriminants, when one constraint is a
37438         subtype mark.
37439
37440         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
37441         type Any_Fixed is legal as the argument of a conversion, if only one
37442         fixed-point type is in context.
37443
37444 2003-12-17  GNAT Script  <nobody@gnat.com>
37445
37446         * Make-lang.in: Makefile automatically updated
37447
37448 2003-12-15  Robert Dewar  <dewar@gnat.com>
37449
37450         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
37451         sec stack size.
37452
37453 2003-12-15  Vincent Celier  <celier@gnat.com>
37454
37455         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
37456         (Gnatchop): Do not set failure status when reporting the number of
37457         warnings.
37458
37459 2003-12-15  Doug Rupp  <rupp@gnat.com>
37460
37461         * s-ctrl.ads: New file.
37462
37463         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
37464
37465         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
37466         (GNATBIND_OBJS): Add ada/s-crtl.o.
37467
37468         * Makefile.in [VMS]: Clean up ifeq rules.
37469
37470         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
37471         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
37472         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
37473         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
37474         s-tasdeb.adb: Update copyright.
37475         Import System.CRTL.
37476         Make minor modifications to use System.CRTL declared functions instead
37477         of importing locally.
37478
37479 2003-12-15  GNAT Script  <nobody@gnat.com>
37480
37481         * Make-lang.in: Makefile automatically updated
37482
37483 2003-12-11  Ed Falis  <falis@gnat.com>
37484
37485         * 5zinit.adb: Clean up.
37486
37487         * 5zintman.adb (Notify_Exception): replaced case statement with a call
37488         to __gnat_map_signal, imported from init.c to support
37489         signal -> exception mappings that depend on the vxWorks version.
37490
37491         * init.c:
37492         Created and exported __gnat_map_signal to support signal -> exception
37493         mapping that is dependent on the VxWorks version.
37494         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
37495
37496 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
37497
37498         * 5wosinte.ads: Link with -mthreads switch.
37499
37500 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
37501
37502         * init.c (__gnat_install_handler [NetBSD]): Set
37503         __gnat_handler_installed, as done on all other platforms.
37504         Remove duplicated code.
37505
37506 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
37507
37508         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
37509
37510 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
37511
37512         * sinfo.ads: Fix inconsistent example code in comment.
37513
37514 2003-12-11  Robert Dewar  <dewar@gnat.com>
37515
37516         * a-tiinau.adb: Add a couple of comments
37517
37518         * sem_ch3.adb: Minor reformatting
37519
37520         * sem_prag.adb:
37521         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
37522         Minor reformatting throughout
37523
37524 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
37525
37526         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
37527         bounds of a loop, create a separate block in order to generate proper
37528         cleanup actions to prevent memory leaks.
37529
37530         * sem_res.adb (Resolve_Call): After a call to
37531         Establish_Transient_Scope, the call may be rewritten and relocated, in
37532         which case no further processing is needed.
37533
37534         * sem_util.adb: (Wrong_Type): Refine previous fix.
37535          Fixes ACATS regressions.
37536
37537         PR ada/13353
37538         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
37539         be inlined.
37540
37541 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
37542
37543         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
37544         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
37545         obsolete files.
37546
37547         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
37548         (rts-zfp): Ditto.
37549
37550 2003-12-08  Robert Dewar  <dewar@gnat.com>
37551
37552         * 7sintman.adb: Minor reformatting
37553
37554         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
37555         standard linker options to get standard libraries linked. We now plan
37556         to provide dummy versions of these libraries to match the appropriate
37557         configurable run-time (e.g. if a library is not needed at all, provide
37558         a dummy empty library).
37559
37560         * targparm.ads: Configurable_Run_Time mode no longer affects linker
37561         options (-L parameters and standard libraries). What we plan to do is
37562         to provide dummy libraries where the libraries are not required.
37563
37564         * gnatbind.adb: Minor comment improvement
37565
37566 2003-12-08  Javier Miranda  <miranda@gnat.com>
37567
37568         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
37569         aggregate in the parent. Otherwise constants with limited aggregates
37570         are not supported. Add new formal to pass the component type (Ctype).
37571         It is required to call the corresponding IP subprogram in case of
37572         default initialized components.
37573         (Gen_Assign): In case of default-initialized component, generate a
37574         call to the IP subprogram associated with the component.
37575         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
37576         of aggregate with default initialized components.
37577         (Has_Default_Init_Comps): Improve implementation to recursively check
37578         all the present expressions.
37579
37580         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
37581         to indicate that the initialization call corresponds to a
37582         default-initialized component of an aggregate.
37583         In case of default initialized aggregate with tasks this parameter is
37584         used to generate a null string (this is just a workaround that must be
37585         improved later). In case of discriminants, this parameter is used to
37586         generate a selected component node that gives access to the discriminant
37587         value.
37588
37589         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
37590         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
37591         allocated aggregates with default-initialized components.
37592
37593         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
37594         the box notation is used in positional aggregates.
37595
37596 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
37597
37598         * lib.ads: Fix typo in comment
37599
37600 2003-12-08  Vincent Celier  <celier@gnat.com>
37601
37602         * prj.adb (Project_Empty): New component Unkept_Comments
37603         (Scan): Remove procedure; moved to Prj.Err.
37604
37605         * prj.ads (Project_Data): New Boolean component Unkept_Comments
37606         (Scan): Remove procedure; moved to Prj.Err.
37607
37608         * prj-dect.adb: Manage comments for the different declarations.
37609
37610         * prj-part.adb (With_Record): New component Node
37611         (Parse): New Boolean parameter Store_Comments, defaulted to False.
37612         Set the scanner to return ends of line and comments as tokens, if
37613         Store_Comments is True.
37614         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
37615         comments are associated with these nodes. Store the node IDs in the
37616         With_Records.
37617         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
37618         With_Records.
37619         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
37620         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
37621         current project. Call Tree.Restore afterwards. Set the various nodes
37622         for comment storage (Next_End, End_Of_Line, Previous_Line,
37623         Previous_End).
37624
37625         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
37626         defaulted to False.
37627
37628         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
37629         to False. When Truncated is True, truncate the string, never go to the
37630         next line.
37631         (Write_End_Of_Line_Comment): New procedure
37632         (Print): Process comments for nodes N_With_Clause,
37633         N_Package_Declaration, N_String_Type_Declaration,
37634         N_Attribute_Declaration, N_Typed_Variable_Declaration,
37635         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
37636         Process nodes N_Comment.
37637
37638         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
37639         without comments and there are some comments, set the flag
37640         Unkept_Comments to True.
37641         (Scan): If there are comments, set the flag Unkept_Comments to True and
37642         clear the comments.
37643         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
37644         (Next_End_Nodes: New table
37645         (Comment_Zones_Of): New function
37646         (Scan): New procedure; moved from Prj. Accumulate comments in the
37647         Comments table and set end of line comments, comments after, after end
37648         and before end.
37649         (Add_Comments): New procedure
37650         (Save, Restore, Seset_State): New procedures
37651         (There_Are_Unkept_Comments): New function
37652         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
37653         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
37654         procedures.
37655         (First_Comment_After, First_Comment_After_End): New functions
37656         (First_Comment_Before, First_Comment_Before_End): New functions
37657         (Next_Comment): New function
37658         (End_Of_Line_Comment, Follows_Empty_Line,
37659         Is_Followed_By_Empty_Line): New functions
37660         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
37661         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
37662         (Set_Next_Comment): New procedure
37663         (Default_Project_Node): Associate comment before if the node can store
37664         comments.
37665
37666         * scans.ads (Token_Type): New enumeration value Tok_Comment
37667         (Comment_Id): New global variable
37668
37669         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
37670         defaulted to False.
37671         (Scan): Store position of start of comment. If comments are tokens, set
37672         Comment_Id and set Token to Tok_Comment when scanning a comment.
37673         (Set_Comment_As_Token): New procedure
37674
37675         * sinput-p.adb: Update Copyright notice
37676         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
37677         that no longer exists.
37678
37679 2003-12-08  Javier Miranda  <miranda@gnat.com>
37680
37681         * sem_aggr.adb: Add dependence on Exp_Tss package
37682         Correct typo in comment
37683         (Resolve_Aggregate): In case of array aggregates set the estimated
37684         type of the aggregate before calling resolve. This is needed to know
37685         the name of the corresponding IP in case of limited array aggregates.
37686         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
37687         in case of default initialized array components.
37688
37689         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
37690         types. Required to give support to limited aggregates in generic
37691         formals.
37692
37693 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
37694
37695         * sem_ch3.adb (Check_Initialization): For legality purposes, an
37696         inlined body functions like an instantiation.
37697         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
37698         until bounds are analyzed, to diagnose premature use of type.
37699
37700         * sem_util.adb (Wrong_Type): Improve error message when the type of
37701         the expression is used prematurely.
37702
37703 2003-12-08  GNAT Script  <nobody@gnat.com>
37704
37705         * Make-lang.in: Makefile automatically updated
37706
37707 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
37708
37709         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
37710         they are automatically generated by Make-lang.in and cause nothing but
37711         maintenance troubles.
37712
37713 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
37714
37715         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
37716         version of this unit).
37717
37718 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
37719
37720         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
37721         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
37722         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
37723         the body of System.Interrupt_Management common to several targets.
37724         Update copyright notice when appropriate.
37725
37726         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
37727         constant.
37728
37729         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
37730         to ensure that the kernel fills in the interrupted context structure
37731         before calling a signal handler, which is necessary to be able to
37732         unwind past it. Update the copyright notice.
37733
37734 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
37735
37736         * a-elchha.ads: New file.
37737
37738         * a-elchha.adb: New default last chance handler. Contents taken from
37739         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
37740
37741         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
37742         is moved to a-elchha.adb to provide a target-independent default last
37743         chance handler.
37744
37745         * Makefile.rtl: Add a-elchha.o
37746
37747         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
37748
37749 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
37750
37751         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
37752         declared in an instance, do not inline the call if the instance is not
37753         frozen yet, to prevent order of elaboration problems.
37754
37755         * sem_prag.adb: Add comments for previous fix.
37756
37757 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
37758
37759         * g-table.adb: Use the right variable in Set_Item.
37760         Update copyright notice.
37761
37762 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
37763
37764         * Makefile.in: Remove unused rules.
37765
37766 2003-12-05  Vincent Celier  <celier@gnat.com>
37767
37768         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
37769         -nostdlib. Not needed here after all.
37770
37771 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
37772
37773         PR ada/11724
37774         * adaint.h, adaint.c, g-os_lib.ads:
37775         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
37776         on some platforms (including FreeBSD), it is a 64 bit value.
37777         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
37778
37779 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
37780
37781         * gnatvsn.ads (Library_Version): Now contain only the relevant
37782         version info.
37783         (Verbose_Library_Version): New constant.
37784
37785         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
37786         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
37787         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
37788
37789         * gnatlbr.adb: Clean up: replace Library_Version by
37790         Verbose_Library_Version.
37791
37792         * make.adb, lib-writ.adb, exp_attr.adb:
37793         Clean up: replace Library_Version by Verbose_Library_Version.
37794
37795         * 5lintman.adb: Removed.
37796
37797         * Makefile.in:
37798         Update and simplify computation of LIBRARY_VERSION.
37799         Fix computation of GSMATCH_VERSION.
37800         5lintman.adb is no longer used: replaced by 7sintman.adb.
37801
37802 2003-12-03  Robert Dewar  <dewar@gnat.com>
37803
37804         * exp_ch5.adb:
37805         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
37806         name. Modified to consider small non-bit-packed arrays as troublesome
37807         and in need of component-by-component assigment expansion.
37808
37809 2003-12-03  Vincent Celier  <celier@gnat.com>
37810
37811         * lang-specs.h: Process nostdlib as nostdinc
37812
37813         * back_end.adb: Update Copyright notice
37814         (Scan_Compiler_Arguments): Process -nostdlib directly.
37815
37816 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
37817
37818         * Makefile.in:
37819         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
37820         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
37821         included in HIE_NONE_TARGET_PAIRS.
37822
37823 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
37824
37825         * sem_attr.adb:
37826         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
37827         is legal in an instance, because legality is cheched in the template.
37828
37829         * sem_prag.adb:
37830         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
37831         appplied to an unchecked conversion of a formal parameter.
37832
37833         * sem_warn.adb:
37834         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
37835         variables.
37836
37837 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
37838
37839         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
37840         routines. The second one is new functionality to deal with backtracing
37841         through signal handlers.
37842         (unwind): Split into the two separate subroutines above.
37843         Update the documentation, and deal properly with sizeof (REG) different
37844         from sizeof (void*).
37845
37846 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
37847
37848         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
37849         so that the debugger can reliably access the value of the parameter,
37850         and therefore is able to display the exception name when an exception
37851         breakpoint is reached.
37852
37853 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
37854
37855         * fmap.adb: Fix typo in warning message.
37856
37857         * g-socket.ads, g-socket.adb: Make Free a visible instance of
37858         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
37859
37860 2003-12-01  Vincent Celier  <celier@gnat.com>
37861
37862         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
37863         ther is no Afile.
37864         (Build_Library): Get the switches only if Default_Switches is declared
37865         in package Binder.
37866
37867 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
37868
37869         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
37870         actuals that are indexed components, reanalyze actual to ensure that
37871         packed array references are properly expanded.
37872
37873         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
37874         attempted assignment to a discriminant.
37875
37876 2003-12-01  Robert Dewar  <dewar@gnat.com>
37877
37878         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
37879         reformatting.
37880
37881         * switch-c.adb: Minor reformatting of comments
37882
37883 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
37884
37885         * Makefile.in: Clean ups.
37886
37887 2003-12-01  GNAT Script  <nobody@gnat.com>
37888
37889         * Make-lang.in: Makefile automatically updated
37890
37891 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
37892
37893         * 5wsystem.ads: Disable zero cost exception, not ready yet.
37894
37895 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
37896
37897         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
37898         to force serialization.
37899
37900 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
37901
37902         * g-socket.ads, g-socket.adb:
37903         Clarify documentation of function Stream. Introduce a Free procedure
37904         to release the returned Stream once it becomes unused.
37905
37906         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
37907
37908 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
37909
37910         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
37911         since NT 4 cannot handle timeout values that are too large,
37912         e.g. DWORD'Last - 1.
37913
37914 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
37915
37916         * exp_ch4.adb:
37917         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
37918         in procedure calls and whose expansion must be deferred.
37919
37920         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
37921         is in exp_ch4.
37922
37923         * sem_ch3.adb:
37924         (Build_Derived_Array_Type): Create operator for unconstrained type
37925         if ancestor is unconstrained.
37926
37927 2003-11-26  Vincent Celier  <celier@gnat.com>
37928
37929         * make.adb (Project_Object_Directory): New global variable
37930         (Change_To_Object_Directory): New procedure
37931         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
37932         of Change_Dir directly. Do not change working directory to object
37933         directory of main project after each compilation.
37934         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
37935         directly.
37936         Change to object directory of main project before binding step.
37937         (Initialize): Initialize Project_Object_Directory to No_Project
37938
37939         * mlib-prj.adb:
37940         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
37941         binding a Stand-Alone Library.
37942
37943         * output.adb: Update Copyright notice
37944         (Write_Char): Output buffer when full
37945
37946 2003-11-26  Robert Dewar  <dewar@gnat.com>
37947
37948         * sem_ch13.adb: (Check_Size): Reset size if size is too small
37949
37950         * sem_ch13.ads:
37951         (Check_Size): Fix documentation to include bit-packed array case
37952
37953         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
37954
37955         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
37956
37957         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
37958
37959 2003-11-24  Arnaud Charlet  <charlet@act-europe.fr>
37960
37961         PR ada/13142
37962         * utils.c (init_gigi_decls): Change name of built-in setjmp to
37963         __builtin_setjmp, since this is apparently needed by recent
37964         non Ada changes.
37965
37966 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
37967
37968         * adadecode.c: Only include ctype.h if not IN_GCC.
37969         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
37970
37971 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
37972
37973         * Makefile.in:
37974         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
37975         signals and interrupts.
37976
37977         * 5zintman.ads: New File.
37978
37979         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
37980         add exception signals to the set of unmasked signals.
37981
37982         * 5ztaprop.adb:
37983         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
37984         between signals and interrupts.
37985         Add to Unblocked_Signal_Mask the set of signals that are in
37986         Keep_Unmasked.
37987
37988         * 7sinmaop.adb:
37989         Adding a check to see whether the Interrupt_ID we want to unmask is in
37990         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
37991         reason is that the index type of the Keep_Unmasked array is not always
37992         Interrupt_ID; it may be a subtype of Interrupt_ID.
37993
37994 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
37995
37996         * exp_util.adb:
37997         (Remove_Side_Effects): Condition constantness of object created for a
37998          an unchecked type conversion on the constantness of the expression
37999          to ensure the correct value for 'Constrained when passing components
38000          of view-converted class-wide objects.
38001
38002 2003-11-24  Robert Dewar  <dewar@gnat.com>
38003
38004         * par-load.adb (Load): Improve handling of misspelled and missing units
38005         Removes several cases of compilation abandoned messages
38006
38007         * lib.adb: (Remove_Unit): New procedure
38008
38009         * lib.ads: (Remove_Unit): New procedure
38010
38011         * lib-load.adb: Minor reformatting
38012
38013 2003-11-24  Vincent Celier  <celier@gnat.com>
38014
38015         * make.adb:
38016         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
38017         (Marking_Label): Label to mark processed source files. Incremented for
38018         each executable.
38019         (Gnatmake): Increase Marking_Labet for each executable
38020         (Is_Marked): Compare against marking label
38021         (Mark): Mark with marking label
38022
38023 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
38024
38025         * s-thread.ads:
38026         Move the declaration of the TSD for System.Threads to System.Soft_Links.
38027         Add some comments.
38028
38029         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
38030         (rts-cert): build a single relocatable object for the run-time lib.
38031         Fix perms.
38032
38033 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
38034
38035         * Make-lang.in:
38036         Use gnatls rather than gcc to obtain the location of GNAT RTL for
38037         crosstools build.
38038
38039 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
38040
38041         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
38042         can not use it as before (that is, as a variable) when dumping it into
38043         the tree file. Add a local variable to store the result of this
38044         function and to be used as the string to be written into the tree.
38045
38046         * scn.adb (Initialize_Scanner): Add comments explaining the recent
38047         changes.
38048
38049         * sinput.adb (Source_First, Source_Last): In case of
38050         Internal_Source_File, replace returning attributes of
38051         Internal_Source_Ptr (which is wrong) with returning attributes of
38052         Internal_Source.
38053
38054 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
38055
38056         * sem_ch3.adb:
38057         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
38058         used for implicit concatenation operators.
38059         Code cleanup.
38060
38061         * sem_elab.adb:
38062         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
38063         task bodies that are in the scope of a Suppress pragma.
38064         (Check_A Call): Use the flag to prevent spurious elaboration checks.
38065
38066         * sinfo.ads, sinfo.adb:
38067         New flag No_Elaboration_Check on function/procedure calls, to properly
38068         suppress checks on calls in task bodies that are within a local suppress
38069         pragma.
38070
38071         * exp_ch4.adb:
38072         (Expand_Concatenate_Other): Use the proper integer type for the
38073         expression for the upper bound, to avoid universal_integer computations
38074         when possible.
38075
38076 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
38077
38078         * .cvsignore: Delete.
38079
38080 2003-11-21  Andreas Schwab  <schwab@suse.de>
38081
38082         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
38083
38084 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
38085
38086         * 5wsystem.ads: Enable zero cost exception.
38087
38088 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
38089
38090         * 5ztiitho.adb: Remove an unreferenced variable.
38091
38092 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
38093
38094         * adaint.c: For FreeBSD, use mkstemp.
38095
38096 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
38097
38098         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
38099
38100 2003-11-21  Robert Dewar  <dewar@gnat.com>
38101
38102         * bld.adb: Remove useless USE of gnatvsn
38103
38104         * gnatchop.adb: Minor reformatting
38105         Clean up version handling to be more consistent
38106
38107         * gnatxref.adb: Minor reformatting
38108
38109         * gprcmd.adb: Minor reformatting
38110         Fix output of copyright to be more consistent with other tools
38111
38112 2003-11-21  Vincent Celier  <celier@gnat.com>
38113
38114         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
38115
38116 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
38117
38118         * atree.adb (Initialize): Add initializations for global variables
38119         used in New_Copy_Tree.
38120
38121         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
38122         Internal_Source_File as the actual).
38123         Put the set of statements creating Any_Character before the set of
38124         statements creating Any_Array to have Any_Character fully initialized
38125         when it is used in creating Any_Array.
38126
38127         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
38128         not call Scan in case if the actual is Internal_Source_File
38129         Add 2003 to copyright note.
38130
38131         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
38132         processing Internal_Source_File.
38133
38134         * types.ads: Add the constant Internal_Source_File representing the
38135         source buffer for artificial source-code-like strings created within
38136         the compiler (the definition of Source_File_Index is changed).
38137
38138 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
38139
38140         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
38141         56system.ads: New file, FreeBSD version.
38142
38143 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
38144
38145         * Make-lang.in (ada.extraclean): Delete.
38146
38147 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
38148
38149         * gnatmem.adb: Clean up verbose output.
38150
38151         * gprcmd.adb: Change copyright to FSF.
38152
38153 2003-11-19  Vincent Celier  <celier@gnat.com>
38154
38155         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
38156         and Version (ignored).
38157
38158         * symbols.ads: (Policy): New type
38159         (Initialize): New parameter Reference, Symbol_Policy and
38160         Library_Version.
38161         Remove parameter Force.
38162         Minor reformatting.
38163
38164         * snames.ads, snames.adbadb: New standard names
38165         Library_Reference_Symbol_File and Library_Symbol_Policy
38166
38167         * mlib-prj.adb:
38168         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
38169         project.
38170
38171         * mlib-tgt.adb:
38172         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
38173
38174         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
38175
38176         * prj.adb: (Project_Empty): New component Symbol_Data
38177
38178         * prj.ads: (Policy, Symbol_Record): New types
38179         (Project_Data): New component Symbol_Data
38180
38181         * prj-attr.adb:
38182         New attributes Library_Symbol_File, Library_Symbol_Policy and
38183         Library_Reference_Symbol_File.
38184
38185         * prj-nmsc.adb:
38186         (Ada_Check): When project is a Stand-Alone library project, process
38187         attribute Library_Symbol_File, Library_Symbol_Policy and
38188         Library_Reference_Symbol_File.
38189
38190         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
38191         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
38192         5sml-tgt.adb (Build_Dynamic_Library): New parameter
38193         Symbol_Data (ignored).
38194
38195         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
38196         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
38197         functions Option_File_Name and Version_String. Set new options of
38198         gnatsym related to symbol file, symbol policy and reference symbol
38199         file.
38200
38201         * 5vsymbol.adb:
38202         Extensive modifications to take into account the reference symbol file,
38203         the symbol policy, the library version and to put in the symbol file the
38204         minor and major IDs.
38205
38206         * bld.adb (Process_Declarative_Items): Put second argument of
38207         gprcmd to_absolute between single quotes, to avoid problems with
38208         Windows.
38209
38210         * bld-io.adb: Update Copyright notice.
38211         (Flush): Remove last character of a line, if it is a back slash, to
38212         avoid make problems.
38213
38214         * gnatsym.adb:
38215         Implement new scheme with reference symbol file and symbol policy.
38216
38217         * g-os_lib.ads: (Is_Directory): Clarify comment
38218
38219 2003-11-19  Robert Dewar  <dewar@gnat.com>
38220
38221         * atree.adb: Move New_Copy_Tree global variables to head of package
38222
38223         * errout.adb: Minor reformatting
38224
38225 2003-11-19  Javier Miranda  <miranda@gnat.com>
38226
38227         * sem_ch4.adb: (Diagnose_Call): Improve error message.
38228         Add reference to Ada0Y (AI-50217)
38229
38230         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
38231         sem_util.adb: Add reference to AI-50217
38232
38233         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
38234
38235         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
38236
38237         * sem_aggr.adb: Complete documentation of AI-287 changes
38238
38239         * par-ch4.adb: Document previous changes.
38240
38241         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
38242         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
38243         Ada0Y (AI-50217)
38244
38245         * exp_aggr.adb: Add references to AI-287 in previous changes
38246
38247 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
38248
38249         * exp_ch6.adb:
38250         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
38251         in the rewriting is the result of an inlined call.
38252
38253         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
38254         parameter is a type conversion, use original node to construct the
38255         post-call assignment, because expression may have been rewritten, e.g.
38256         if it is a packed array.
38257
38258         * sem_attr.adb:
38259         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
38260         body, just as it is in an instance.
38261         Categorization routines
38262
38263         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
38264         Instantiate_Object): Set proper sloc reference for message on missing
38265         actual.
38266
38267 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
38268
38269         * Makefile.in: Add FreeBSD libgnat pairs.
38270
38271         * usage.adb: Fix typo in usage message.
38272
38273 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
38274
38275         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
38276         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
38277         pragma Thread_Body.
38278         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
38279
38280         * s-thread.adb: This file is now a dummy implementation of
38281         System.Thread.
38282
38283 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
38284
38285         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
38286
38287 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
38288
38289         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
38290         instanciation references in the parent type description.
38291
38292 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38293
38294         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
38295
38296         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
38297         TYPE_PRECISION directly from esize.
38298
38299 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
38300
38301         * cstreams.c:
38302         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
38303
38304         * init.c: Initialization routines for FreeBSD
38305
38306         * link.c: Link info for FreeBSD
38307
38308         * sysdep.c: Add the case of FreeBSD
38309
38310 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
38311
38312         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
38313         already called in System.Threads.
38314
38315         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
38316         environment task, as it has been moved to System.Threads.Initialization.
38317
38318 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
38319
38320         * adaint.c (__gnatlib_install_locks): Only reference
38321         __gnat_install_locks on VMS, since other platforms can avoid using
38322         --enable-threads=gnat
38323
38324 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38325
38326         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
38327
38328         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
38329         TYPE_PACKED_ARRAY_TYPE_P.
38330         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
38331
38332         Part of PR ada/12806
38333         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
38334         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
38335
38336 2003-11-17  Vincent Celier  <celier@gnat.com>
38337
38338         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
38339         to False.
38340         Do not set exit status to Failure when Warning is True.
38341         (Gnatchop): Make errors "no compilation units found" and
38342         "no source files written" warnings only.
38343
38344         * make.adb (Gnatmake): When using a project file, set
38345         Look_In_Primary_Dir to False.
38346         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
38347         and Local_Configuration_Pragmas in the project where they are declared
38348         not an extending project which might have inherited them.
38349
38350         * osint.adb (Locate_File): If Name is already an absolute path, do not
38351         look for a directory.
38352
38353         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
38354         -gnats (Check_Syntax) is used, issue only a warning, not an error.
38355
38356         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
38357         in objects of type Variable_Value.
38358
38359         * prj.ads: (Variable_Value): New component Project
38360
38361         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
38362         is in a project extended by Project.
38363
38364         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
38365         Project of Variable_Values to this new parameter value.
38366         (Expression): Set component Project of Variable_Values.
38367         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
38368         Set the component Project in array elements.
38369
38370 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
38371
38372         * errout.adb: (Initialize): Add initialization for error nodes.
38373
38374         * sem_ch12.adb (Initialize): Add missing initializations for
38375         Exchanged_Views and Hidden_Entities.
38376
38377 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
38378
38379         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
38380         already instantiated tree for use in subsequent inlining.
38381         (Analyze_Associations, Instantiate_Formal_Subprogram,
38382         Instantiate_Object): improve error message for mismatch in
38383         instantiations.
38384
38385         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
38386         instantiations of subprograms declared in instances.
38387
38388 2003-11-17  Javier Miranda  <miranda@gnat.com>
38389
38390         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
38391         executed only under the Extensions_Allowed flag.
38392
38393 2003-11-17  Robert Dewar  <dewar@gnat.com>
38394
38395         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
38396         zeroes suppressed.
38397         (Address_Image): Fix bug of returning 0x instead of 0x0
38398         Minor reformatting (function specs).
38399
38400         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
38401         (missed case of 33-63)
38402
38403         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
38404
38405         * s-thread.adb: Add comments for pragma Restriction
38406
38407         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
38408         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
38409
38410 2003-11-17  Ed Falis  <falis@gnat.com>
38411
38412         * s-thread.adb: Added No_Tasking restriction for this implementation.
38413
38414 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
38415
38416         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
38417         instanciation references in the parent type description.
38418
38419 2003-11-17  GNAT Script  <nobody@gnat.com>
38420
38421         * Make-lang.in: Makefile automatically updated
38422
38423 2003-11-16  Jason Merrill  <jason@redhat.com>
38424
38425         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
38426         and TAGS files that include them for each front end.
38427
38428 2003-11-14  Andreas Jaeger  <aj@suse.de>
38429
38430         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
38431         is the canonical version.
38432         * misc.c (gnat_handle_option): Likewise.
38433
38434         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
38435
38436         * 5nsystem.ads: New file for x86_64-linux-gnu.
38437
38438 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
38439
38440         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
38441
38442         * comperr.adb: Fix logic in previous change.
38443
38444 2003-11-13  Vincent Celier  <celier@gnat.com>
38445
38446         * 5bml-tgt.adb (Build_Dynamic_Library): Use
38447         Osint.Include_Dir_Default_Prefix instead of
38448         Sdefault.Include_Dir_Default_Name.
38449
38450         * gnatlbr.adb: Update Copyright notice
38451         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
38452         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
38453         instead of Sdefault.Object_Dir_Default_Name
38454
38455         * gnatlink.adb:
38456         (Process_Binder_File): Never suppress the option following -Xlinker
38457
38458         * mdll-utl.adb:
38459         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
38460         Sdefault.Object_Dir_Default_Name.
38461
38462         * osint.ads, osint.adb:
38463         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
38464         Minor reformatting.
38465
38466         * vms_conv.ads: Minor reformating
38467         Remove GNAT STANDARD and GNAT PSTA
38468
38469         * vms_conv.adb:
38470         Allow GNAT MAKE to have several files on the command line.
38471         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
38472         Sdefault.Object_Dir_Default_Name.
38473         Minor Reformating
38474         Remove data for GNAT STANDARD
38475
38476         * vms_data.ads:
38477         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
38478         Remove data for GNAT STANDARD
38479         Remove options and documentation for -gnatwb/-gnatwB: these warning
38480         options no longer exist.
38481
38482 2003-11-13  Ed Falis  <falis@gnat.com>
38483
38484         * 5zthrini.adb: (Init_RTS): Made visible
38485
38486         * 5zthrini.adb:
38487         (Register): Removed unnecessary call to taskVarGet that checked whether
38488          an ATSD was already set as a task var for the argument thread.
38489
38490         * s-thread.adb:
38491         Updated comment to reflect that this is a VxWorks version
38492         Added context clause for System.Threads.Initialization
38493         Added call to System.Threads.Initialization.Init_RTS
38494
38495 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
38496
38497         * 5zthrini.adb:
38498         (Init_RTS): New procedure, for the initialization of the run-time lib.
38499
38500         * s-thread.adb:
38501         Remove dependancy on System.Init, so that this file can be used in the
38502         AE653 sequential run-time lib.
38503
38504 2003-11-13  Robert Dewar  <dewar@gnat.com>
38505
38506         * bindgen.adb: Minor reformatting
38507
38508 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
38509
38510         * checks.adb:
38511         (Apply_Discriminant_Check): Do no apply check if target type is derived
38512         from source type with no applicable constraint.
38513
38514         * lib-writ.adb:
38515         (Ensure_System_Dependency): Do not apply the style checks that may have
38516         been specified for the main unit.
38517
38518         * sem_ch8.adb:
38519         (Find_Selected_Component): Further improvement in error message, with
38520         RM reference.
38521
38522         * sem_res.adb:
38523         (Resolve): Handle properly the case of an illegal overloaded protected
38524         procedure.
38525
38526 2003-11-13  Javier Miranda  <miranda@gnat.com>
38527
38528         * exp_aggr.adb:
38529         (Has_Default_Init_Comps): New function to check the presence of
38530         default initialization in an aggregate.
38531         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
38532         extension aggregate of a limited record. In addition, a new formal
38533         was added to do not initialize the record controller (if any) during
38534         this recursive expansion of ancestors.
38535         (Init_Controller): Add support for limited record components.
38536         (Expand_Record_Aggregate): In case of default initialized components
38537         convert the aggregate into a set of assignments.
38538
38539         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
38540         describing the new syntax.
38541         Nothing else needed to be done because this subprogram delegates part of
38542         its work to P_Precord_Or_Array_Component_Association.
38543         (P_Record_Or_Array_Component_Association): Give support to the new
38544         syntax for default initialization of components.
38545
38546         * sem_aggr.adb:
38547         (Resolve_Aggregate): Relax the strictness of the frontend in case of
38548         limited aggregates.
38549         (Resolve_Record_Aggregate): Give support to default initialized
38550         components.
38551         (Get_Value): In case of default initialized components, duplicate
38552         the corresponding default expression (from the record type
38553         declaration). In case of default initialization in the *others*
38554         choice, do not check that all components have the same type.
38555         (Resolve_Extension_Aggregate): Give support to limited extension
38556         aggregates.
38557
38558         * sem_ch3.adb:
38559         (Check_Initialization): Relax the strictness of the front-end in case
38560         of aggregate and extension aggregates. This test is now done in
38561         Get_Value in a per-component manner.
38562
38563         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
38564         expression corresponds to a limited aggregate. This test is now done
38565         in Get_Value.
38566
38567         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
38568         Box_Present flag.
38569
38570         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
38571         present in an N_Component_Association node
38572
38573 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
38574
38575         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
38576         type-conformant entry only if they are homographs.
38577
38578 2003-11-13  GNAT Script  <nobody@gnat.com>
38579
38580         * Make-lang.in: Makefile automatically updated
38581
38582 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38583
38584         * adadecode.c: Use <> form of include for ctype.h.
38585         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
38586
38587 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38588
38589         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
38590         Works around PR middle-end/6552.
38591
38592 2003-11-10  Ed Falis  <falis@gnat.com>
38593
38594         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
38595
38596         * 5zinit.adb: (Install_Handler): Moved back to spec
38597         (Install_Signal_Handlers): Deleted
38598
38599         * 5zthrini.adb: Added context clause for System.Storage_Elements
38600         (Register): Only handles creation of taskVar; initialization moved to
38601         Thread_Body_Enter.
38602         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
38603         Added declaration of environment task secondary stack and
38604         initialization.
38605
38606         * s-thread.adb: Implement bodies for thread body processing
38607
38608         * s-thread.ads:
38609         Added comment identifying supported targets for pragma Thread_Body.
38610
38611 2003-11-10  Pascal Obry  <obry@gnat.com>
38612
38613         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
38614         GNAT_MAX_PATH_LEN.
38615
38616         * s-fileio.adb:
38617         (Open): Properly check for string length before copying into the buffer.
38618         Raises Name_Error if buffer is too small. Note that this was a potential
38619         buffer overflow.
38620
38621 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
38622
38623         * bindgen.adb, comperr.adb: Code clean ups.
38624         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
38625
38626 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
38627
38628         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
38629
38630 2003-11-10  Vincent Celier  <celier@gnat.com>
38631
38632         * gprcmd.adb:
38633         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
38634         installation.
38635
38636         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
38637
38638         * prj.adb: (Project_Empty): Add new boolean component Virtual
38639
38640         * prj.ads: (Virtual_Prefix): New constant string
38641         (Project_Data): New boolean component Virtual
38642
38643         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
38644         a library project is extended by a virtual extending project.
38645
38646         * prj-part.adb:
38647         Modifications throughout to implement extending-all project, including:
38648         (Virtual_Hash, Processed_Hash): New hash tables
38649         (Create_Virtual_Extending_Project): New procedure
38650         (Look_For_Virtual_Projects_For): New procedure
38651
38652         * prj-proc.adb:
38653         (Process): After checking the projects, if main project is an
38654         extending-all project, set the object directory of all virtual extending
38655         project to the object directory of the main project.
38656         Adjust error message when a virtual extending project has the same
38657         object directory as an project being extended.
38658         (Recursive_Process): If name starts with the virtual prefix, set Virtual
38659         to True in the project data.
38660
38661         * prj-tree.adb:
38662         (Default_Project_Node): Add new boolean component Extending_All
38663         (Is_Extending_All): New function
38664         (Set_Is_Extending_All): New procedure
38665
38666         * prj-tree.ads: (Is_Extending_All): New function
38667         (Set_Is_Extending_All): New procedure
38668         (Project_Node_Record): New boolean component Extending_All
38669
38670         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
38671
38672         * vms_data.ads:
38673         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
38674
38675         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
38676         "gprcmd prefix" to define it.
38677
38678 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
38679
38680         * einfo.ads: Fix a typo and remove an extraneous word in comments.
38681
38682         * lib-load.adb:
38683         (Create_Dummy_Package_Unit): Set the scope of the entity for the
38684         created dummy package to Standard_Standard, not to itself, to
38685         defend other parts of the front-end against encoutering a cycle in
38686         the scope chain.
38687
38688         * sem_ch10.adb:
38689         (Analyze_With_Clause): When setting the entities for the successive
38690         N_Expanded_Names that constitute the name of a child unit, do not
38691         attempt to go further than Standard_Standard in the chain of scopes.
38692         This case arises from the placeholder units created by
38693         Create_Dummy_Package_Unit in the case of a with_clause for a
38694         nonexistent child unit.
38695
38696 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
38697
38698         * exp_ch6.adb:
38699         (Expand_Thread_Body): Place subprogram on scope stack, so that new
38700         declarations are given the proper scope.
38701
38702         * sem_ch13.adb:
38703         (Check_Expr_Constants): Reject an expression that contains a constant
38704         created during expansion, and that appears after the object to which
38705         the address clause applies.
38706
38707         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
38708         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
38709         that uses 'Range of a function call with controlled components, so
38710         that the function result can be finalized before starting the loop.
38711
38712         * sem_ch8.adb:
38713         (Find_Selected_Component): Improve error message when prefix is
38714         an implicit dereference of an incomplete type.
38715
38716 2003-11-10  Robert Dewar  <dewar@gnat.com>
38717
38718         * opt.ads: New Print_Standard flag for -gnatS switch
38719
38720         * sem_ch13.adb: Remove some additional checks for unaligned arrays
38721
38722         * cstand.adb (Create_Standard): Print out package standard if -gnatS
38723         switch set
38724
38725         * debug.adb: Update doc for -gnatds to discuss relationship with new
38726         -gnatS flag
38727
38728         * sinfo.adb: Add new field Entity_Or_Associated_Node
38729
38730         * sinfo.ads: Add new field Entity_Or_Associated_Node
38731         Update documentation for Associated_Node and Entity fields to clarify
38732         relationship and usage.
38733
38734         * sprint.adb:
38735         (Write_Id): Properly process Associated_Node field in generic template
38736
38737         * switch-c.adb:
38738         Recognize new -gnatS switch for printing package Standard
38739         This replaces gnatpsta
38740
38741         * usage.adb:
38742         Add line for  new -gnatS switch for printing package Standard
38743         This replaces gnatpsta
38744
38745 2003-11-10  Andreas Jaeger  <aj@suse.de>
38746
38747         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
38748         integer.
38749
38750 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
38751
38752         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
38753         by gnat1.
38754
38755 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
38756
38757         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
38758         no longer needed.
38759
38760         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
38761
38762         * sysdep.c: Add handling of cygwin.
38763
38764 2003-11-10  GNAT Script  <nobody@gnat.com>
38765
38766         * Make-lang.in: Makefile automatically updated
38767
38768 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
38769
38770         PR 12950
38771         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
38772         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
38773         Replace GNAT_ROOT by GCC_ROOT.
38774
38775         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
38776
38777 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
38778
38779         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
38780         and update for changed meaning of GET_MODE_BITSIZE.
38781
38782 2003-11-04  Doug Rupp  <rupp@gnat.com>
38783
38784         * sysdep.c: Problem discovered during IA64 VMS port.
38785         [VMS] #include <unixio.h> to get proper prototypes.
38786
38787         * adaint.c:
38788         Issues discovered/problems fixed during IA64 VMS port.
38789         [VMS] #define _POSIX_EXIT for proper semantics.
38790         [VMS] #include <unixio.h> for proper prototypes.
38791         [VMS] (fork): #define IA64 version.
38792         (__gnat_os_exit): Remove unnecessary VMS specific code.
38793
38794 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38795
38796         Part of PR ada/12806
38797         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
38798         tree, not integer.
38799
38800         * decl.c:
38801         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
38802         not integer.
38803
38804         * targtyps.c, decl.c, misc.c,
38805         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
38806         routines to work around change in FP sizing semantics in GCC.
38807
38808         * utils.c:
38809         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
38810
38811         * gigi.h: (enumerate_modes): New function.
38812
38813         * Make-lang.in: (ada/misc.o): Add real.h.
38814
38815         * misc.c: (enumerate_modes): New function.
38816
38817 2003-11-04  Robert Dewar  <dewar@gnat.com>
38818
38819         * 3vtrasym.adb: Minor reformatting
38820         Use terminology encoded/decoded name, rather than C++ specific notion
38821         of mangling (this is the terminology used throughout GNAT).
38822
38823         * einfo.h: Regenerated
38824
38825         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
38826
38827         * exp_ch6.adb:
38828         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
38829
38830         * par-prag.adb: Add dummy entry for Thread_Body pragma
38831
38832         * rtsfind.ads:
38833         Add entries for System.Threads entities for thread body processing
38834
38835         * sem_attr.adb:
38836         (Analyze_Pragma, Access attributes): Check these are not applied to a
38837         thread body, since this is not permitted
38838
38839         * sem_prag.adb: Add processing for Thread_Body pragma.
38840         Minor comment fix.
38841
38842         * sem_res.adb:
38843         (Resolve_Call): Check for incorrect attempt to call a thread body
38844          procedure with a direct call.
38845
38846         * snames.ads, snames.adb: Add entry for Thread_Body pragma
38847         Add names associated with thread body expansion
38848
38849         * snames.h: Add entry for Thread_Body pragma
38850
38851         * s-thread.adb: Add entries for thread body processing
38852         These are dummy bodies so far
38853
38854         * s-thread.ads: Add documentation on thread body handling.
38855         Add entries for thread body processing.
38856
38857 2003-11-04  Javier Miranda  <miranda@gnat.com>
38858
38859         * sem_ch10.adb:
38860         (Build_Limited_Views): Return after posting an error in case of limited
38861         with_clause on subprograms, generics, instances or generic renamings
38862         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
38863         on subprograms, generics, instances or generic renamings
38864
38865 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
38866
38867         * raise.c (setup_to_install): Correct mistake in last revision; two
38868         arguments out of order.
38869
38870         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
38871         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
38872         notice, missed in previous change.
38873         Remove trailing blanks and other style errors introduced in previous
38874         change.
38875
38876 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
38877
38878         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
38879         rid of the wrapper for a LJM type, ensuring we don't do that if the
38880         field is addressable.  This avoids potential low level type view
38881         mismatches later on, for instance in a by-reference argument passing
38882         process.
38883
38884 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38885
38886         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
38887         aligned at byte boundary.
38888
38889 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
38890
38891         * decl.c (components_to_record): Do not delete the empty variants from
38892         the end of the union type.
38893
38894 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
38895
38896         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
38897         operation for a derived type, an explicit declaration may use a local
38898         subtype of Boolean.
38899
38900 2003-11-04  Vincent Celier  <celier@gnat.com>
38901
38902         * make.adb (Gnatmake): Allow main sources on the command line with a
38903         library project when it is only for compilation (no binding or
38904         linking).
38905
38906 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38907
38908         * Makefile.in: Remove many duplicate variables.
38909
38910 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
38911
38912         * Make-lang.in (dvi): Move targets to $(docobjdir).
38913         (gnat_ug_vms.dvi): Simplify rule and adjust target.
38914         (gnat_ug_wnt.dvi): Likewise.
38915         (gnat_ug_unx.dvi): Likewise.
38916         (gnat_ug_vxw.dvi): Likewise.
38917         (gnat_rm.dvi): Likewise.
38918         (gnat-style.dvi): Likewise.
38919
38920 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
38921
38922         * gigi.h: Missed commit from update for C90.
38923
38924 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
38925
38926         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
38927
38928 2003-10-31  Andreas Schwab  <schwab@suse.de>
38929
38930         * raise.c (get_action_description_for): Fix typo in last change.
38931
38932 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
38933
38934         PR ada/12761
38935         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
38936         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
38937
38938 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
38939
38940         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
38941         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
38942         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
38943         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
38944         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
38945
38946 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
38947
38948         * 3vtrasym.adb:
38949         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
38950         numbers when symbol name is too long.
38951
38952 2003-10-30  Ed Falis  <falis@gnat.com>
38953
38954         * g-signal.ads, g-signal.adb: New files
38955
38956         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
38957
38958         * Makefile.rtl: Introduce GNAT.Signals
38959
38960 2003-10-30  Robert Dewar  <dewar@gnat.com>
38961
38962         * freeze.adb: Minor reformatting
38963
38964         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
38965
38966         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
38967         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
38968         New handling of Id_Check parameter to improve recognition of keywords
38969         used as identifiers.
38970         Update copyright notice to include 2003
38971
38972 2003-10-29  Robert Dewar  <dewar@gnat.com>
38973
38974         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
38975         sem_ch10.adb: Minor reformatting
38976
38977         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
38978         (Expand_Assign_Record): Test right hand side for bit unaligned as well
38979
38980 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
38981
38982         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
38983         Support for TBK$SYMBOLIZE-based symbolic traceback.
38984
38985 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
38986
38987         * exp_disp.adb:
38988         Revert previous change, that did not work well when pragma No_Run_Time
38989         was used in conjunction with a run-time other than ZFP.
38990
38991 2003-10-29  Vincent Celier  <celier@gnat.com>
38992
38993         * make.adb:
38994         (Gnatmake): When there are no Ada mains in attribute Main, disable the
38995          bind and link steps only is switch -z is not used.
38996
38997 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
38998
38999         * Makefile.generic: Remove duplicated setting of CC.
39000
39001         * Makefile.prolog: Set CC to gcc by default, to override make's
39002         default (cc).
39003
39004         * einfo.h: Regenerated.
39005
39006 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
39007
39008         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
39009         current body, after compiling subunit.
39010
39011         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
39012         when in deleted code, because gigi needs properly ordered freeze
39013         actions to annotate types.
39014
39015         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
39016         prevent the premature freezing of record type that contains
39017         subcomponents with a private type that does not yet have a completion.
39018
39019 2003-10-29  Javier Miranda  <miranda@gnat.com>
39020
39021         * sem_ch12.adb:
39022         (Analyze_Package_Instantiation): Check that instances can not be used in
39023         limited with_clauses.
39024
39025         * sem_ch8.adb:
39026         (Analyze_Package_Renaming): Check that limited withed packages cannot
39027         be renamed. Improve text on error messages related to limited
39028         with_clauses.
39029
39030         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
39031
39032         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
39033         Update copyright notice.
39034
39035         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
39036         (Install_Limited_Context_Clauses): New subprogram that isolates all the
39037         checks required for limited context_clauses and installs the limited
39038         view.
39039         (Install_Limited_Withed_Unit): Complete its documentation.
39040         (Analyze_Context): Check that limited with_clauses are only allowed in
39041         package specs.
39042         (Install_Context): Call Install_Limited_Context_Clauses after the
39043         parents have been installed.
39044         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
39045         package as 'From_With_Type'; this mark indicates that the limited view
39046         is installed. Used to check bad usages of limited with_clauses.
39047         (Build_Limited_Views): Do not add shadow entities to the scope's list
39048         of entities. Do not add real entities to the Non_Limited_Views chain.
39049         Improve error notification.
39050         (Remove_Context_Clauses): Remove context clauses in two phases:
39051         limited views first and regular views later (to maintain the
39052         stack model).
39053         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
39054         its visible entities.
39055
39056 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
39057
39058         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
39059         with any type that Is_Fixed_Point_Type.
39060
39061         * sinfo.ads: Fix documentation for Associated_Node attribute.
39062
39063 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
39064
39065         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
39066         both '-gnatc' and '-gnatt' are specified.
39067
39068         * atree.adb (Initialize): Add initialization for Node_Count (set to
39069         zero).
39070
39071 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
39072
39073         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
39074         do not consider as Pure.
39075
39076         Part of implementation of function-at-a-time:
39077
39078         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
39079         (tree_transform): Add new argument to build_component_ref.
39080         (tree_transform, case N_Assignment_Statement): Make and return an
39081         EXPR_STMT.
39082         (tree_transform): If result IS_STMT, set flags and return it.
39083         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
39084
39085         * utils2.c (build_simple_component_ref, build_component_ref): Add new
39086         arg, NO_FOLD_P.
39087         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
39088         (build_allocator): Likewise.
39089
39090         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
39091         Add new arg to build_component_ref.
39092         (maybe_unconstrained_array, unchecked_convert): Likewise.
39093
39094         * ada-tree.def (EXPR_STMT): New code.
39095
39096         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
39097
39098         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
39099         build_component_ref calls.
39100
39101         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
39102
39103         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
39104         (build_component_ref): Add new argument, NO_FOLD_P.
39105
39106 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
39107
39108         * Makefile.generic: Add missing substitution on object_deps handling.
39109
39110         PR ada/5909
39111         * Make-lang.in (check-ada): Enable ACATS test suite.
39112
39113 2003-10-27  Robert Dewar  <dewar@gnat.com>
39114
39115         * exp_ch3.adb:
39116         (Freeze_Array_Type): We do not need an initialization routine for types
39117         derived from String or Wide_String. They should be treated the same
39118         as String and Wide_String themselves. This caused problems with the
39119         use of Initialize_Scalars.
39120
39121         * exp_ch5.adb:
39122         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
39123         composites. This allows use of component clauses that are not byte
39124         aligned.
39125
39126         * sem_prag.adb:
39127         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
39128         is an attempt to pack an array of atomic objects.
39129
39130         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
39131
39132 2003-10-27  Pascal Obry  <obry@gnat.com>
39133
39134         * g-dirope.adb:
39135         (Basename): Check for drive letters in a pathname only on DOS based OS.
39136
39137 2003-10-27  Vincent Celier  <celier@gnat.com>
39138
39139         * make.adb:
39140         (Gnatmake): When unable to change dir to the object dir, display the
39141         content of the parent dir of the obj dir, to try to understand why this
39142         happens.
39143
39144 2003-10-27  GNAT Script  <nobody@gnat.com>
39145
39146         * Make-lang.in: Makefile automatically updated
39147
39148 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
39149
39150         * sem_ch12.adb:
39151         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
39152         should not be done in Save/Restore_Scope_Stack, because it is performed
39153         locally.
39154
39155         * sem_ch8.adb:
39156         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
39157         whether use clauses should be removed/restored.
39158
39159         * sem_ch8.ads:
39160         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
39161         whether use clauses should be removed/restored.
39162
39163 2003-10-26  Andreas Jaeger  <aj@suse.de>
39164
39165         * Makefile.in: Remove duplicated lines.
39166
39167 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
39168
39169         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
39170         minimize the differences with ACT tree.
39171
39172         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
39173         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
39174         Gnatvsn.Gnat_Static_Version_String to reduce differences between
39175         ACT and FSF trees.
39176
39177 2003-10-24  Pascal Obry  <obry@gnat.com>
39178
39179         PR ada/12014
39180         * adadecode.c (ostrcpy): New function.
39181         (__gnat_decode): Use ostrcpy of strcpy.
39182         (has_prefix): Set first parameter a const.
39183         (has_suffix): Set first parameter a const.
39184         Update copyright notice. Fix source name in header.
39185         Removes a trailing space.
39186
39187 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
39188
39189         * exp_disp.adb:
39190         Remove the test against being in No_Run_Time_Mode before generating a
39191         call to Register_Tag. It is redundant with the test against the
39192         availability of the function Register_Tag.
39193
39194 2003-10-24  Vincent Celier  <celier@gnat.com>
39195
39196         * g-catiio.adb: (Month_Name): Correct spelling of February
39197
39198         * make.adb: (Mains): New package
39199         (Initialize): Call Mains.Delete
39200         (Gnatmake): Check that each main on the command line is a source of a
39201         project file and, if there are several mains, each of them is a source
39202         of the same project file.
39203         (Gnatmake): When a foreign language is specified in attribute Languages,
39204         no main is specified on the command line and attribute Mains is not
39205         empty, only build the Ada main. If there is no Ada main, just compile
39206         the Ada sources and their closure.
39207         (Gnatmake): If a main is specified on the command line with directory
39208         information, check that the source exists and, if it does, that the path
39209         is the actual path of a source of a project.
39210
39211         * prj-env.adb:
39212         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
39213         Full_Path is True, return the full path instead of the simple file name.
39214         (Project_Of): New function
39215
39216         * prj-env.ads:
39217         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
39218         defaulted to False.
39219         (Project_Of): New function
39220
39221 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
39222
39223         * Makefile.generic:
39224         Ensure objects of main project are always checked and rebuilt if needed.
39225         Set CC to gcc by default.
39226         Prepare new handling of link by creating a global archive (not activated
39227         yet).
39228
39229         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
39230         stringt.h: Update copyright notice. Remove trailing blanks.
39231         Fix source name in header.
39232
39233 2003-10-24  Robert Dewar  <dewar@gnat.com>
39234
39235         * sem_ch12.adb: Minor reformatting
39236
39237         * sem_ch3.adb:
39238         Minor reformatting (including new function return style throughout)
39239
39240         * sem_ch3.ads:
39241         Minor reformatting (including new function return style throughout)
39242
39243 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
39244
39245         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
39246         stringt.h: Update copyright notice. Remove trailing blanks.
39247         Fix source name in header.
39248
39249 2003-10-24  GNAT Script  <nobody@gnat.com>
39250
39251         * Make-lang.in: Makefile automatically updated
39252
39253 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
39254
39255         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
39256         stringt.h: Convert to ISO C90 declarations and definitions.
39257
39258 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
39259
39260         PR ada/11978
39261         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
39262         External_Tag attribute definition clauses.
39263
39264 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
39265
39266         PR ada/7613
39267         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
39268         child unit, generate a fully qualified name to avoid spurious errors
39269         when the context contains renamings of different child units with
39270         the same simple name.
39271
39272         * exp_dbug.ads: Add documentation on name qualification for renamings
39273         of child units.
39274
39275 2003-10-23  Robert Dewar  <dewar@gnat.com>
39276
39277         * g-regpat.ads, g-regpat.adb: Minor reformatting
39278
39279 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
39280
39281         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
39282
39283 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
39284
39285         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
39286         Machine call.
39287
39288         * urealp.h: (Machine): Update to proper definition.
39289
39290 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
39291
39292         * init.c, adaint.c: Minor reformatting.
39293
39294 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
39295
39296         * adaint.c (w32_epoch_offset): Define static const at file level.
39297         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
39298         rather than t_create, t_access in call to GetFileTime. Use union
39299         to convert between FILETIME and  unsigned long long.
39300         (__gnat_file_time_name): Test for invalid file handle.
39301         (__gnat_set_filetime_name): Support win32 targets using
39302         w32api SetFileTime.
39303
39304 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
39305
39306         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
39307
39308         * ctrl_c.c (__gnat_int_handler): Remove declaration.
39309
39310         * decl.c (creat_concat_name):  Const-ify prefix.
39311
39312         * adaint.c: Include ctype.h if __MINGW32__.
39313         (__gnat_readlink): Mark arguments as possibly unused.
39314         (__gnat_symlink): Likewise.
39315         (__gnat_is_symbolic_link): Likewise.
39316         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
39317         declaration
39318         (__gnat_file_time_name): Don't declare struct stat statbuf when
39319         not needed.
39320         (__gnat_is_absolute_path): Add parenthesis around condition of
39321         'if' statement to avoid warning.
39322         (__gnat_plist_init): Specify void as parameter.
39323         (plist_enter): Likewise.
39324         (plist_leave): Likewise.
39325         (remove_handle): Make static. Initialize prev.
39326
39327 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
39328
39329         PR ada/10110
39330         * Makefile.in: Disable build of gnatpsta.
39331         * cstreams.c (__gnat_full_name): Minor improvements and clean up
39332         of previous change.
39333
39334 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
39335
39336         * tracebak.c (MAX): Avoid redefinition warning.
39337
39338         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
39339         Change msg to const char *.
39340         (__gnat_install_handler): Remove ss, unused.
39341         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
39342         to const char *.
39343         * cstreams.c (__gnat_full_name): Declare p only when used.
39344         (__gnat_full_name) [sgi] Return buffer.
39345
39346 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
39347
39348         * mingw32.h: New file.
39349         * gnat_wrapper.adb: New file.
39350
39351 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
39352
39353         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
39354         string match a pre compiled regular expression (the corresponding
39355         version of the function working on a raw regular expression)
39356         Fix typos in various comments
39357         Update copyright notice in spec
39358
39359 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
39360
39361         * exp_ch3.adb:
39362         (Component_Needs_Simple_Initialization): Return False when the type is a
39363         packed bit array. Revise spec comments to document this case.
39364
39365         * exp_prag.adb:
39366         (Expand_Pragma_Import): Set any expression on the imported object to
39367         empty to avoid initializing imported objects (in particular this
39368         covers the case of zero-initialization of bit arrays).
39369         Update copyright notice.
39370
39371 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
39372
39373         * sem_ch12.adb:
39374         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
39375         a subunit is missing.
39376         (Instantiate_Subprogram_Body): If body of function is missing, set type
39377         of return expression explicitly in dummy body, to prevent cascaded
39378         errors when a subunit is missing.
39379         Fixes PR 5677.
39380
39381         * sem_ch3.adb:
39382         (Access_Subprogram_Declaration): Verify that return type is valid.
39383         Fixes PR 8693.
39384
39385         * sem_elab.adb:
39386         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
39387         generic.
39388         Fixes PR 12318.
39389
39390         * sem_util.adb:
39391         (Corresponding_Discriminant): If the scope of the discriminant is a
39392         private type without discriminant, use its full view.
39393         Fixes PR 8247.
39394
39395 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
39396
39397         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
39398         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
39399         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
39400         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
39401         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
39402         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
39403         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
39404         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
39405         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
39406         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
39407         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
39408         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
39409         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
39410         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
39411         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
39412         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
39413         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
39414         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
39415         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
39416         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
39417         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
39418         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
39419         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
39420         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
39421         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
39422         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
39423         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
39424         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
39425         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
39426         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
39427         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
39428         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
39429         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
39430         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
39431         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
39432         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
39433         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
39434         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
39435         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
39436         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
39437         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
39438         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
39439         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
39440         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
39441         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
39442         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
39443         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
39444         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
39445         vms_conv.ads, vms_conv.adb, vms_data.ads,
39446         vxaddr2line.adb: Files added. Merge with ACT tree.
39447
39448         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
39449         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
39450         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
39451         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
39452         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
39453         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
39454         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
39455         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
39456         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
39457         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
39458
39459         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
39460         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
39461         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
39462         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
39463         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
39464         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
39465         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
39466         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
39467         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
39468         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
39469         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
39470         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
39471         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
39472         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
39473         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
39474         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
39475         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
39476         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
39477         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
39478         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
39479         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
39480         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
39481         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
39482         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
39483         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
39484         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
39485         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
39486         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
39487         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
39488         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
39489         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
39490         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
39491         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
39492         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
39493         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
39494         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
39495         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
39496         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
39497         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
39498         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
39499         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
39500         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
39501         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
39502         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
39503         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
39504         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
39505         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
39506         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
39507         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
39508         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
39509         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
39510         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
39511         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
39512         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
39513         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
39514         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
39515         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
39516         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
39517         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
39518         checks.adb, checks.ads, cio.c, comperr.adb,
39519         comperr.ads, csets.adb, cstand.adb, cstreams.c,
39520         debug_a.adb, debug_a.ads, debug.adb, decl.c,
39521         einfo.adb, einfo.ads, errout.adb, errout.ads,
39522         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
39523         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
39524         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
39525         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
39526         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
39527         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
39528         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
39529         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
39530         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
39531         fe.h, fmap.adb, fmap.ads, fname.adb,
39532         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
39533         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
39534         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
39535         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
39536         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
39537         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
39538         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
39539         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
39540         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
39541         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
39542         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
39543         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
39544         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
39545         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
39546         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
39547         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
39548         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
39549         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
39550         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
39551         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
39552         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
39553         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
39554         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
39555         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
39556         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
39557         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
39558         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
39559         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
39560         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
39561         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
39562         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
39563         layout.adb, lib.adb, lib.ads, lib-list.adb,
39564         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
39565         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
39566         link.c, live.adb, make.adb, make.ads,
39567         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
39568         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
39569         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
39570         misc.c, mkdir.c, mlib.adb, mlib.ads,
39571         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
39572         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
39573         namet.adb, namet.ads, namet.h, nlists.ads,
39574         nlists.h, nmake.adt, opt.adb, opt.ads,
39575         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
39576         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
39577         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
39578         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
39579         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
39580         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
39581         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
39582         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
39583         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
39584         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
39585         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
39586         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
39587         prj-util.adb, prj-util.ads, raise.c, raise.h,
39588         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
39589         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
39590         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
39591         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
39592         scans.ads, scn.adb, scn.ads, s-crc32.adb,
39593         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
39594         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
39595         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
39596         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
39597         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
39598         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
39599         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
39600         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
39601         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
39602         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
39603         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
39604         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
39605         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
39606         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
39607         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
39608         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
39609         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
39610         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
39611         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
39612         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
39613         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
39614         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
39615         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
39616         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
39617         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
39618         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
39619         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
39620         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
39621         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
39622         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
39623         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
39624         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
39625         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
39626         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
39627         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
39628         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
39629         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
39630         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
39631         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
39632         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
39633         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
39634         stringt.adb, stringt.ads, stringt.h, style.ads,
39635         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
39636         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
39637         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
39638         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
39639         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
39640         table.adb, table.ads, targparm.adb, targparm.ads,
39641         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
39642         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
39643         ttypes.ads, types.ads, types.h, uintp.adb,
39644         uintp.ads, uintp.h, uname.adb, urealp.adb,
39645         urealp.ads, urealp.h, usage.adb, utils2.c,
39646         utils.c, validsw.adb, validsw.ads, widechar.adb,
39647         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
39648         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
39649         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
39650         gnatvsn.ads: Merge with ACT tree.
39651
39652         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
39653
39654 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
39655
39656         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
39657         (gnat_ug_vmx.info): Likewise.
39658         (gnat_ug_vxw.info): Likewise.
39659         (gnat_ug_wnt.info): Likewise.
39660         (gnat_rm.info): Likewise.
39661         (gnat-style.info): Likewise.
39662
39663         * Make-lang.in (ada.install-info): Remove target.
39664         (info): New target.
39665         (install-info): Likewise.
39666         (gnat_ug_unx.info): Simplify rule.
39667         (gnat_ug_vmx.info): Likewise.
39668         (gnat_ug_vxw.info): Likewise.
39669         (gnat_ug_wnt.info): Likewise.
39670         (gnat_rm.info): Likewise.
39671         (gnat-style.info): Likewise.
39672
39673 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
39674
39675         * Make-lang.in: Replace uses of $(target_alias) with
39676         $(target_noncanonical).
39677         * ada/Makefile.in: Remove unused mention of $(target_alias).
39678
39679 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
39680
39681         * Make-lang.in (ada.info): Replace with ...
39682         (info): ... this.
39683         (ada.dvi): Replace with ...
39684         (dvi): ... this.
39685
39686 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
39687
39688         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
39689         initialize dconstp5 and dconstmp5.
39690
39691 2003-09-28  Richard Henderson  <rth@redhat.com>
39692
39693         * trans.c (tree_transform): Update call to expand_asm_operands.
39694
39695 2003-09-21  Richard Henderson  <rth@redhat.com>
39696
39697         * trans.c, utils.c: Revert.
39698
39699 2003-09-21  Richard Henderson  <rth@redhat.com>
39700
39701         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
39702         change to const.
39703
39704 2003-09-04  Michael Matz  <matz@suse.de>
39705
39706         * misc.c: Include "target.h".
39707         * Make-lang.in (misc.o): Add dependency on target.h.
39708
39709 2003-09-03  DJ Delorie  <dj@redhat.com>
39710
39711         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
39712         hook.
39713
39714 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
39715
39716         * Makefile.in: Update substitutions to match changes to
39717         configure.  Use include directives instead of @-insertions
39718         to read in host and target fragments.  Add a rule to
39719         regenerate ada/Makefile.
39720
39721 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
39722
39723         * lang-options.h: Remove.
39724         * lang.opt: Add help text.
39725
39726 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
39727
39728         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
39729         calls.
39730
39731 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
39732
39733         * misc.c (gnat_handle_option): Don't handle filenames.
39734
39735 2003-07-04  H.J. Lu  <hongjiu.lu@intel.com>
39736
39737         * Make-lang.in: Replace PWD with PWD_COMMAND.
39738         * Makefile.adalib: Likewise.
39739         * Makefile.in: Likewise.
39740
39741 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
39742
39743         * misc.c (gnat_argv): Revert last change.
39744         (gnat_handle_option, gnat_init_options): Copy arguments.
39745
39746 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
39747
39748         * misc.c (gnat_argv): Make const.
39749
39750 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
39751
39752         * misc.c (save_argc, save_argv): Keep non-static!
39753
39754 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
39755
39756         * misc.c (save_argc, save_argv): Make static.
39757         (gnat_init_options): New prototype.
39758         (gnat_init_options): Update.
39759
39760 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
39761
39762         * gnat_ug.texi: Remove unlikely characters from @vars.
39763         * gnat_ug_vms.texi: Regenerate.
39764
39765 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
39766
39767         * misc.c (record_code_position): Adjust emit_note call.
39768
39769 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
39770
39771         * misc.c (gnat_handle_option): Don't check for missing arguments.
39772
39773 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
39774
39775         * utils.c (end_subprog_body): Adjust expand_function_end call.
39776
39777 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
39778
39779         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
39780         Bind_Main_Program.
39781
39782 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
39783
39784         * lang.opt: Declare Ada.
39785         * misc.c (gnat_init_options): Update.
39786
39787 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
39788
39789         * utils.c (begin_subprog_body): Adjust init_function_start call.
39790
39791 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
39792
39793         * Make-lang.in: Update to use options.c and options.h.
39794         * misc.c: Include options.h not aoptions.h.
39795         (gnat_handle_option): Abort on unrecognized switch.
39796         (gnat_init_options): Request Ada switches.
39797
39798 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
39799
39800         * lang.opt: Add -Wall.
39801         * misc.c (gnat_handle_option): Handle it.
39802
39803 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
39804
39805         * misc.c (gnat_handle_option): Fix warnings.
39806
39807 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
39808
39809         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
39810
39811 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
39812
39813         * Make-lang.in: Update to handle command-line options.
39814         * lang.opt: New file.
39815         * misc.c: Include aoptions.h.
39816         (cl_options_count, cl_options): Remove.
39817         (gnat_handle_option): New.
39818         (gnat_decode_option): Remove.
39819         (LANG_HOOKS_DECODE_OPTION): Remove.
39820         (LANG_HOOKS_HANDLE_OPTION): Override.
39821
39822 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
39823
39824         * init.c, misc.c, trans.c, utils.c: Remove dead code.
39825
39826 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
39827
39828         * Makefile.in: Replace "host_canonical" with "host" for autoconf
39829         substitution.
39830
39831 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
39832
39833         * Make-lang.in: Update.
39834         * misc.c: Include opts.h. Define cl_options_count and cl_options.
39835
39836 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
39837
39838         * misc.c (gnat_init_options): Update.
39839
39840 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
39841
39842         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
39843         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
39844         __attribute__ ((__unused__)).
39845
39846 2003-06-05  Jan Hubicka  <jh@suse.cz>
39847
39848         * Make-lang.in:  Add support for stageprofile and stagefeedback
39849
39850 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
39851
39852         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
39853         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
39854
39855 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
39856
39857         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
39858         Remove non-VMS directive.
39859         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
39860         alternatives.
39861         (Examples of gnatls Usage): Remove VMS alternative.
39862
39863 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
39864
39865         PR ada/9953
39866         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
39867         and turn ZCX_By_Default back to False since the underlying support
39868         is not quite there yet.
39869
39870 2003-06-01  Andreas Jaeger  <aj@suse.de>
39871
39872         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
39873         and ROUND_TYPE_SIZE_UNIT.
39874
39875 2003-05-22   Geert Bosch  <bosch@gnat.com>
39876
39877         * gnat_rm.texi : Remove reference to Ada Core Technologies.
39878
39879 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
39880
39881         * trans.c (tree_transform): Use location_t and input_location
39882         directly.
39883         (build_unit_elab): Likewise.
39884         * utils.c (create_label_decl): Likewise.
39885
39886 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
39887
39888         * trans.c (tree_transform, build_unit_elab,
39889         set_lineno): Rename lineno to input_line.
39890         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
39891         end_subprog_body): Likewise.
39892         * utils2.c (build_call_raise): Likewise.
39893
39894 2003-05-01  Laurent Guerby  <guerby@acm.org>
39895
39896         PR ada/10546
39897         * 5iosinte.ads: Increase pthread_cond_t size to match recent
39898         LinuxThread and NPTL version, merge from ACT.
39899
39900 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
39901
39902         * utils.c (convert): No need to clear TREE_CST_RTL.
39903
39904 2003-04-23   Geert Bosch  <bosch@gnat.com>
39905
39906         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
39907         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
39908         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
39909         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
39910         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
39911         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
39912         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
39913         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
39914         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
39915         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
39916         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
39917         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
39918         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
39919         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
39920         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
39921         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
39922         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
39923         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
39924         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
39925         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
39926         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
39927         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
39928         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
39929         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
39930         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
39931         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
39932         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
39933         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
39934         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
39935         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
39936         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
39937         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
39938         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
39939         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
39940         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
39941         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
39942         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
39943         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
39944         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
39945         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
39946         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
39947         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
39948         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
39949         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
39950         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
39951         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
39952         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
39953         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
39954         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
39955         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
39956         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
39957         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
39958         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
39959         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
39960         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
39961         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
39962         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
39963         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
39964         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
39965         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
39966         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
39967         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
39968         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
39969         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
39970         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
39971         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
39972         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
39973         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
39974         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
39975         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
39976         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
39977         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
39978         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
39979         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
39980         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
39981         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
39982         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
39983         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
39984         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
39985         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
39986         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
39987         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
39988         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
39989         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
39990         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
39991         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
39992         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
39993         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
39994         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
39995         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
39996         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
39997         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
39998         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
39999         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
40000         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
40001         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
40002         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
40003         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
40004         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
40005         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
40006         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
40007         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
40008         ali.adb, ali.ads, alloc.ads, argv.c,
40009         atree.adb, atree.ads, atree.h, aux-io.c,
40010         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
40011         binde.adb, binde.ads, binderr.adb, binderr.ads,
40012         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
40013         butil.adb, butil.ads, cal.c, calendar.ads,
40014         casing.adb, casing.ads, ceinfo.adb, checks.adb,
40015         checks.ads, cio.c, comperr.adb, comperr.ads,
40016         config-lang.in, csets.adb, csets.ads, csinfo.adb,
40017         cstand.adb, cstand.ads, cuintp.c, debug.adb,
40018         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
40019         dec-io.ads, dec.ads, deftarg.c, directio.ads,
40020         einfo.adb, einfo.ads, elists.adb, elists.ads,
40021         elists.h, errno.c, errout.adb, errout.ads,
40022         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
40023         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
40024         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
40025         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
40026         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
40027         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
40028         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
40029         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
40030         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
40031         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
40032         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
40033         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
40034         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
40035         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
40036         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
40037         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
40038         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
40039         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
40040         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
40041         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
40042         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
40043         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
40044         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
40045         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
40046         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
40047         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
40048         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
40049         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
40050         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
40051         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
40052         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
40053         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
40054         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
40055         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
40056         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
40057         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
40058         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
40059         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
40060         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
40061         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
40062         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
40063         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
40064         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
40065         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
40066         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
40067         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
40068         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
40069         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
40070         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
40071         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
40072         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
40073         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
40074         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
40075         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
40076         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
40077         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
40078         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
40079         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
40080         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
40081         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
40082         lib.adb, lib.ads, live.adb, live.ads,
40083         machcode.ads, make.adb, make.ads, makeusg.adb,
40084         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
40085         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
40086         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
40087         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
40088         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
40089         mlib.ads, namet.adb, namet.ads, nlists.adb,
40090         nlists.ads, opt.adb, opt.ads, osint-b.adb,
40091         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
40092         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
40093         osint.ads, output.adb, output.ads, par-ch10.adb,
40094         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
40095         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
40096         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
40097         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
40098         par-tchk.adb, par-util.adb, par.adb, par.ads,
40099         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
40100         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
40101         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
40102         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
40103         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
40104         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
40105         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
40106         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
40107         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
40108         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
40109         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
40110         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
40111         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
40112         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
40113         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
40114         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
40115         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
40116         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
40117         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
40118         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
40119         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
40120         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
40121         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
40122         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
40123         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
40124         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
40125         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
40126         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
40127         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
40128         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
40129         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
40130         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
40131         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
40132         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
40133         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
40134         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
40135         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
40136         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
40137         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
40138         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
40139         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
40140         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
40141         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
40142         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
40143         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
40144         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
40145         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
40146         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
40147         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
40148         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
40149         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
40150         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
40151         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
40152         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
40153         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
40154         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
40155         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
40156         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
40157         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
40158         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
40159         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
40160         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
40161         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
40162         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
40163         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
40164         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
40165         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
40166         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
40167         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
40168         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
40169         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
40170         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
40171         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
40172         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
40173         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
40174         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
40175         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
40176         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
40177         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
40178         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
40179         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
40180         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
40181         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
40182         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
40183         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
40184         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
40185         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
40186         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
40187         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
40188         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
40189         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
40190         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
40191         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
40192         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
40193         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
40194         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
40195         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
40196         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
40197         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
40198         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
40199         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
40200         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
40201         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
40202         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
40203         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
40204         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
40205         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
40206         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
40207         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
40208         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
40209         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
40210         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
40211         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
40212         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
40213         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
40214         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
40215         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
40216         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
40217         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
40218         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
40219         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
40220         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
40221         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
40222         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
40223         snames.ads, sprint.adb, sprint.ads, stand.adb,
40224         stand.ads, stringt.adb, stringt.ads, style.adb,
40225         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
40226         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
40227         switch-m.ads, switch.adb, switch.ads, system.ads,
40228         table.adb, table.ads, targparm.adb, targparm.ads,
40229         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
40230         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
40231         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
40232         ttypef.ads, ttypes.ads, types.adb, types.ads,
40233         uintp.adb, uintp.ads, uname.adb, uname.ads,
40234         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
40235         usage.adb, usage.ads, validsw.adb, validsw.ads,
40236         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
40237         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
40238         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
40239         formatting and other trivial changes from ACT.
40240
40241 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
40242
40243         * gigi.h, utils2.c (build_constructor):
40244         Rename gnat_build_constructor. Use build_constructor.
40245         * decl.c (gnat_to_gnu_entity)
40246         * trans.c (tree_transform, pos_to_constructor, extract_values)
40247         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
40248         (unchecked_convert)
40249         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
40250         (fill_vms_descriptor):
40251         Update to match.
40252
40253 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
40254
40255         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
40256         * misc.c (gnat_tree_size): New function.
40257         (LANG_HOOKS_TREE_SIZE): Override.
40258
40259 2003-04-03  Jason Merrill  <jason@redhat.com>
40260
40261         * misc.c (gnat_adjust_rli): #if 0.
40262
40263 2003-03-31   Geert Bosch  <bosch@gnat.com>
40264
40265         PR ada/10020
40266         * link.c : Fix misspelled "const" keyword
40267
40268 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
40269
40270         PR c++/7086
40271         * utils2.c: Adjust calls to put_var_into_stack.
40272
40273 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
40274
40275         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
40276
40277 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
40278
40279         * misc.c (gnat_init): Update for new prototype.
40280
40281 2003-03-05  Olivier Hainque  <hainque@gnat.com>
40282
40283         ada/9961
40284         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
40285         warning, and fix return type for the IN_RTS && !SJLJ case.
40286
40287 2003-03-04  Tom Tromey  <tromey@redhat.com>
40288
40289         * Make-lang.in (ada.tags): New target.
40290
40291 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
40292
40293         ada/9911
40294         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
40295         wrapper, which name remains constant whatever underlying GCC
40296         scheme.
40297
40298         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
40299         the stable interface needed for a-except.
40300
40301 2003-03-02  Andreas Jaeger  <aj@suse.de>
40302
40303         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40304         gnat_ug_wnt.texi: Regenerate.
40305
40306 2003-03-02  Laurent Guerby  <guerby@acm.org>
40307
40308         * Makefile.in (install-gnatlib): Match previous change there
40309         so it works.
40310
40311 2003-02-28  Andreas Schwab  <schwab@suse.de>
40312
40313         * Make-lang.in (install-gnatlib): Change to ada directory before
40314         running make instead of using ada/Makefile directly.
40315
40316 2003-02-18  Ben Elliston  <bje@redhat.com>
40317
40318         Part of PR ada/9406
40319         * gnat_ug.texi (Binder output file): Grammar fix.
40320
40321 2003-02-18  Ben Elliston  <bje@redhat.com>
40322
40323         PR other/7350
40324         * 5qtaprop.adb (Sleep): Fix typo in comment.
40325
40326 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
40327
40328         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
40329         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40330         gnat_ug_wnt.texi: Regenerate.
40331
40332 2003-02-03  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
40333
40334         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
40335         be created if necessary.
40336         (ada.install-common): Let $(DESTDIR)$(bindir) be created
40337         if necessary.  Remove erroneous and redundant gnatchop
40338         installation commands.  Test for gnatdll before attempting
40339         to install it.
40340         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
40341         and gnatdll from all plausible locations.
40342
40343 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
40344
40345         * utils2.c (build_unary_op): Don't check flag_volatile.
40346         * gnat_ug.texi: Remove -fvolatile from example.
40347         * gnat_ug_vxw.texi: Likewise.
40348
40349 2003-01-29  Laurent Guerby  <guerby@acm.org>
40350
40351         PR ada/8344
40352         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
40353         * Makefile.in: match previous change.
40354         * Make-lang.in: match previous change.
40355
40356 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
40357
40358         * 5rosinte.ads: Add SIGXCPU.
40359         * 5rtpopsp.adb: New file.
40360         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
40361         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
40362         specific file 5rtpopsp.adb.
40363         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
40364         is likely needed for all newlib targets.
40365         * init.c: Add RTEMS specific version of __gnat_initialize().
40366
40367 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40368
40369         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
40370
40371 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40372
40373         * init.c (__gnat_error_handler): Make msg const.
40374
40375         * gmem.c (convert_addresses): Move declaration ...
40376         * adaint.h: ... here.
40377         * adaint.c (convert_addresses): Adapt addrs type to match
40378         prototype.
40379
40380         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
40381
40382 2003-01-24  Andreas Schwab  <schwab@suse.de>
40383
40384         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
40385         size_t to avoid warning.
40386
40387 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
40388
40389         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
40390
40391 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
40392
40393         * gnat_rm.texi: Remove RCS version number.
40394
40395         * ada-tree.h (union lang_tree_node): Add chain_next option.
40396
40397 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
40398
40399         * Make-lang.in (ada.install-info, ada.install-common,
40400         ada.uninstall): Prepend $(DESTDIR) to the destination
40401         directory in all (un)installation commands.
40402         * Makefile.in (install-gnatlib, install-rts): Ditto.
40403
40404 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
40405
40406         * gnat_rm.texi, gnat_ug.texi: Use @copying.
40407         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40408         gnat_ug_wnt.texi: Regenerate.
40409
40410 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
40411
40412         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
40413         only.
40414         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
40415         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
40416         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
40417         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
40418         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
40419         $(srcdir)/doc/include/gcc-common.texi.
40420
40421 2002-12-15   Geert Bosch  <bosch@gnat.com>
40422
40423         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
40424
40425 2002-12-14   Geert Bosch  <bosch@gnat.com>
40426
40427         PR ada/5690
40428         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
40429         case of a body created for a Renaming_As_Body, on which
40430         conformance checks are not performed.
40431
40432 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
40433
40434         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
40435         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
40436         not already included.
40437         * Make-lang.in: Update dependencies.
40438
40439 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
40440         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
40441         solution to buffer overflow bug on GNU/Linux.
40442
40443 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
40444
40445         PR ada/5856
40446         PR ada/6919
40447         * bindgen.adb: Remove all references to Public_Version.
40448         * comperr.adb: Remove all references to Public_Version and
40449         GNATPRO_Version; correct bug reporting instructions.
40450         * comperr.ads: Change to match bug box.
40451         * gnatvsn.ads: Remove all references to Public version and
40452         GNATPRO version.
40453
40454 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
40455
40456         PR ada/6919
40457         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
40458         GNU/Linux.
40459
40460         PR ada/6558
40461         * config-lang.in: Remove diff_excludes.
40462
40463 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
40464
40465         PR ada/8358
40466         * trans.c (gnu_pending_elaboration_lists): New GC root.
40467         (build_unit_elab): Use..
40468
40469 2002-10-30   Geert Bosch  <bosch@gnat.com>
40470
40471         PR ada/6558
40472         * misc.c : Include optabs.h
40473
40474         * Make-lang.in (misc.o): Add dependency on optabs.h
40475
40476 2002-10-29   Geert Bosch  <bosch@gnat.com>
40477
40478         PR ada/6558
40479         * Make-lang.in (gnatbind): Depend on CONFIG_H
40480
40481 2002-10-29  Geert bosch  <bosch@gnat.com>
40482
40483         PR ada/6558
40484         * misc.c: Unrevert misc.c (1.13)
40485
40486 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
40487
40488         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
40489         maintainership comments.
40490
40491 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
40492
40493         PR ada/5904
40494         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
40495         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
40496         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
40497         7staprop.adb: Correct statements in comments about
40498         maintainership of GNAT.
40499
40500         PR ada/5904
40501         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
40502         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
40503         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
40504         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
40505         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
40506         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
40507         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
40508         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
40509         comments about maintainership of GNAT.
40510
40511         PR ada/6919 (forward port of patch for PR ada/5904)
40512         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
40513         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
40514         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
40515         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
40516         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
40517         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
40518         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
40519         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
40520         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
40521         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
40522         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
40523         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
40524         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
40525         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
40526         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
40527         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
40528         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
40529         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
40530         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
40531         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
40532         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
40533         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
40534         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
40535         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
40536         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
40537         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
40538         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
40539         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
40540         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
40541         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
40542         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
40543         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
40544         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
40545         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
40546         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
40547         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
40548         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
40549         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
40550         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
40551         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
40552         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
40553         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
40554         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
40555         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
40556         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
40557         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
40558         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
40559         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
40560         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
40561         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
40562         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
40563         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
40564         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
40565         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
40566         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
40567         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
40568         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
40569         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
40570         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
40571         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
40572         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
40573         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
40574         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
40575         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
40576         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
40577         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
40578         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
40579         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
40580         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
40581         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
40582         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
40583         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
40584         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
40585         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
40586         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
40587         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
40588         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
40589         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
40590         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
40591         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
40592         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
40593         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
40594         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
40595         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
40596         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
40597         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
40598         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
40599         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
40600         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
40601         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
40602         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
40603         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
40604         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
40605         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
40606         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
40607         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
40608         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
40609         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
40610         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
40611         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
40612         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
40613         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
40614         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
40615         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
40616         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
40617         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
40618         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
40619         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
40620         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
40621         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
40622         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
40623         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
40624         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
40625         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
40626         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
40627         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
40628         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
40629         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
40630         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
40631         par-endh.adb par-labl.adb par-load.adb par-prag.adb
40632         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
40633         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
40634         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
40635         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
40636         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
40637         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
40638         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
40639         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
40640         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
40641         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
40642         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
40643         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
40644         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
40645         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
40646         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
40647         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
40648         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
40649         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
40650         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
40651         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
40652         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
40653         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
40654         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
40655         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
40656         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
40657         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
40658         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
40659         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
40660         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
40661         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
40662         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
40663         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
40664         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
40665         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
40666         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
40667         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
40668         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
40669         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
40670         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
40671         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
40672         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
40673         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
40674         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
40675         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
40676         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
40677         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
40678         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
40679         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
40680         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
40681         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
40682         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
40683         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
40684         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
40685         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
40686         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
40687         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
40688         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
40689         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
40690         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
40691         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
40692         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
40693         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
40694         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
40695         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
40696         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
40697         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
40698         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
40699         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
40700         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
40701         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
40702         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
40703         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
40704         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
40705         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
40706         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
40707         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
40708         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
40709         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
40710         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
40711         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
40712         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
40713         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
40714         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
40715         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
40716         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
40717         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
40718         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
40719         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
40720         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
40721         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
40722         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
40723         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
40724         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
40725         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
40726         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
40727         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
40728         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
40729         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
40730         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
40731         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
40732         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
40733         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
40734         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
40735         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
40736         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
40737         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
40738         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
40739         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
40740         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
40741         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
40742         stringt.ads stringt.h style.adb style.ads stylesw.adb
40743         stylesw.ads switch.adb switch.ads sysdep.c system.ads
40744         table.adb table.ads targparm.adb targparm.ads targtyps.c
40745         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
40746         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
40747         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
40748         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
40749         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
40750         usage.ads utils.c utils2.c validsw.adb validsw.ads
40751         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
40752         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
40753         xtreeprs.adb: Correct statements in comments about maintainership
40754         of GNAT.
40755
40756 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
40757
40758         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
40759         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
40760         * gnatvsn.ads: Gnat_Version_String is now a function.
40761         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
40762         copy the C version_string into a String and return it.
40763         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
40764         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
40765         Remove pragma Ident (Gnat_Version_String).  If this was the
40766         sole use of package Gnatvsn, remove the with statement too.
40767         * gnat1drv.adb: Tweak -gnatv output.
40768
40769 2002-09-17  Richard Henderson  <rth@redhat.com>
40770
40771         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
40772         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
40773         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
40774         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
40775         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
40776         and real_2expN instead of a loop.
40777         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
40778         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
40779
40780 2002-08-25  Andre Leis  <a.leis@gmx.net>
40781             David Billinghurst  <David.Billinghurst@riotinto.com>
40782
40783         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
40784
40785 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40786
40787         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
40788         Remove $(CONFIG_H) dependency.
40789
40790 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
40791
40792         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
40793
40794 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
40795
40796         * adadecode.c (ada_demangle): Use xstrdup in lieu of
40797         xmalloc/strcpy.
40798         * misc.c (gnat_decode_option): Likewise.
40799
40800 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
40801
40802         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
40803         function approach did not work well because of a side effect (the
40804         function call could reallocate the table which was being indexed
40805         using its result). Fixes ada/4851. [RESURRECTED]
40806
40807 2002-07-01  Roger Sayle  <roger@eyesopen.com>
40808
40809         * ada/utils.c (builtin_function): Accept an additional parameter.
40810
40811 2002-06-28  Andreas Jaeger  <aj@suse.de>
40812
40813         PR ada/7144
40814         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
40815         <adi@thur.de>.
40816
40817 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
40818
40819         * Makefile.in (SHELL): Set to @SHELL@.
40820
40821 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
40822
40823         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
40824         array size calculation.
40825
40826 2002-06-04  Andreas Jaeger  <aj@suse.de>
40827
40828         * Make-lang.in (gnatbind): Readd rule that has been lost in last
40829         patch.
40830
40831 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
40832
40833         Merge from pch-branch:
40834
40835         * config-lang.in (gtfiles): Add ada-tree.h.
40836         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
40837         (SET_TYPE_MODULUS): New.
40838         (SET_TYPE_INDEX): New.
40839         (SET_TYPE_DIGITS_VALUE): New.
40840         (SET_TYPE_RM_SIZE): New.
40841         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
40842         (SET_TYPE_ADA_SIZE): New.
40843         (SET_TYPE_ACTUAL_BOUNDS): New.
40844         (SET_DECL_CONST_CORRESPONDING_VAR): New.
40845         (SET_DECL_ORIGINAL_FIELD): New.
40846         (TREE_LOOP_ID): Correct typo.
40847         * decl.c: Use new macros.
40848         * utils.c: Include debug.h, use new macros.
40849         * utils2.c: Use new macros.
40850
40851         * ada-tree.h: Update all macros for new tree description.
40852         (struct tree_loop_id): New.
40853         (union lang_tree_node): New.
40854         (struct lang_decl): New.
40855         (struct lang_type): New.
40856         * misc.c (gnat_mark_tree): Delete.
40857         (LANG_HOOKS_MARK_TREE): Delete.
40858         * trans.c (tree_transform): No longer any need to cast
40859         for TREE_LOOP_ID.
40860
40861         * utils.c (struct language_function): New dummy structure.
40862
40863         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
40864         (misc.o): Likewise.
40865         (utils.o): Likewise; also gtype-ada.h.
40866         * Make-lang.in (gnat1): Add dependency on s-gtype.
40867         (gnatbind): Add dependency on $(CONFIG_H).
40868         * utils.c: Correct last #include.
40869         (stuct e_stack): Remove unnecessary 'static'.
40870         (mark_e_stack): Remove unused prototype.
40871
40872         * scn-nlit.adb: Remove whitespace after version number to
40873         keep lines under 80 chars.
40874         * snames.adb: Likewise.
40875         * treepr.ads: Likewise.
40876
40877         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
40878         (misc.o): Likewise.
40879         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
40880         * config-lang.in (gtfiles): New.
40881         * decl.c: Use gengtype for roots.
40882         * gigi.h: Use gengtype for roots.
40883         * trans.c: Use gengtype for roots.
40884         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
40885
40886 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
40887
40888         * misc.c (gnat_init): Adjust setting of internal_error_function.
40889
40890 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
40891
40892         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
40893         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40894         gnat_ug_wnt.texi: Regenerate.
40895
40896 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
40897
40898         * 5ntaprop.adb (with System.OS_Primitives): Remove.
40899
40900         * cstreams.c (max_path_len): Move from here ...
40901         * adaint.c (__gnat_max_path_len): ... to here.
40902         * adaint.c (__gnat_max_path_len): Declare.
40903         * g-dirope.adb (Max_Path): Adjust.
40904         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
40905         * i-cstrea.ads (max_path_len): Adjust.
40906         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
40907         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
40908
40909         * Makefile.in, Make-lang.in: Documentation is now built in
40910         Make-lang.in.  Store Info and generated Texinfo files in the
40911         source directory.
40912         * gnat_ug.texi: Remove CVS keywords, correct version number.
40913         Set file name correctly.
40914
40915         * gnat_ug_*.texi: Add.
40916         * .cvsignore: Ignore generated Texinfo files.
40917
40918 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
40919
40920         * ada.h: Add MI guard macro.
40921         (SUBTYPE): Define constants with an anonymous enum, not static
40922         const variables.
40923         (IN): Cast constants to appropriate type before use.
40924
40925 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
40926
40927         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
40928         (experimental)".
40929
40930 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40931
40932         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
40933         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
40934         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
40935         (ALL_ADA_CFLAGS): Likewise.
40936         (ADA_INCLUDES): Likewise.
40937         Adapt for new working dir.
40938         (GNATBIND): Use Makefile.in version.
40939         (.SUFFIXES): Copy from Makefile.in.
40940         (ada-warn): Define.
40941         (.adb.o, .ads.o): Copy from Makefile.in.
40942         Added $(OUTPUT_OPTION).
40943         (GNAT1_C_OBJS): Moved from Makefile.in.
40944         Prefix with ada subdir.
40945         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
40946         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
40947         Adapt for new working dir.
40948         (EXTRA_GNATBIND_OBJS): Likewise.
40949         (ADA_BACKEND): Moved from Makefile.in.
40950         Renamed to avoid conflict with global BACKEND.
40951         Use that one.
40952         (TARGET_ADA_SRCS): Moved from Makefile.in.
40953         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
40954         Use ADA_BACKEND.
40955         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
40956         (ada_extra_files): Moved from Makefile.in.
40957         Prefix with ada subdir.
40958         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
40959         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
40960         (ada/nmake.ads): Likewise.
40961         (update-sources): Moved from Makefile.in.
40962         Prefix with ada subdir.
40963         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
40964         (ADA_TREE_H): Likewise.
40965         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
40966         (ada/memtrack.o): Likewise.
40967         (ada/adadecode.o): Likewise.
40968         Update dependencies.
40969         (ada/adaint.o): New.
40970         (ada/argv.o): Moved from Makefile.in.
40971         Prefix with ada subdir.
40972         Update dependencies.
40973         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
40974         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
40975         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
40976         Prefix with ada subdir.
40977         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
40978         (GNAT DEPENDENCIES): Regenerate.
40979         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
40980         toplevel Makefile.in.
40981         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
40982         (TARGET_ADA_SRCS): Removed.
40983         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
40984         (GNATBIND_OBJS): Likewise.
40985         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
40986         (BACKEND): Removed.
40987         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
40988         (TREE_H): Likewise.
40989         (ada_extra_files): Likewise.
40990         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
40991         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
40992         (update-sources): Likewise.
40993         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
40994         (ADA_TREE_H): Likewise.
40995         (adadecoce.o): Likewise.
40996         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
40997         (GNAT DEPENDENCIES): Likewise.
40998
40999 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
41000
41001         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
41002         * Makefile.in: Likewise.
41003
41004 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
41005
41006         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
41007         Restore $(CONFIG_H) and prefix.o dependencies.
41008         (ada.stage[1-4]): Depend on stage?-start.
41009
41010         * Makefile.in (b_gnatb.c): Depend on interfac.o.
41011
41012 2002-05-02  Jim Wilson  <wilson@redhat.com>
41013
41014         * utils.c (finish_record_type): Change record_size to record_type.
41015
41016 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
41017
41018         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
41019         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
41020         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
41021
41022 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
41023
41024         * misc.c (gnat_parse_file): Update.
41025
41026 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
41027
41028         * misc.c (gnat_init): Don't set lang_attribute_common.
41029
41030 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
41031
41032         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
41033
41034 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
41035
41036         * gnat_ug.texi: New file.
41037
41038         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
41039         instead of gfdl.texi
41040
41041         * xgnatug.adb, ug_words: New files.
41042
41043         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
41044         gnat_rm and gnat-style manuals.
41045
41046 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
41047
41048         * gigi.h (incomplete_type_error): Remove.
41049         * utils.c (incomplete_type_error): Remove.
41050
41051 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
41052
41053         * trans.c (tree_transform): Add has_scope argument to
41054         expand_start_stmt_expr.
41055
41056 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
41057
41058         * gigi.h (truthvalue_conversion): Rename.
41059         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
41060         * trans.c (tree_transform): Update.
41061         * utils2.c (truthvalue_conversion): Rename, update.
41062         (build_binary_op, build_unary_op): Update.
41063
41064 2002-04-04  Laurent Guerby  <guerby@acm.org>
41065
41066         * make.adb: Implement -margs, remove restriction about file name placement.
41067         * makeusg.adb: Documentation update.
41068         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
41069         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
41070
41071 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
41072
41073         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
41074         (builtin_function): Similarly.
41075
41076 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
41077
41078         * decl.c (gnat_to_gnu_entity): Update.
41079         * gigi.h (mark_addressable): Rename.
41080         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
41081         * trans.c (tree_transform): Update.
41082         * utils.c (create_var_decl): Update.
41083         * util2.c (build_binary_op, build_unary_op,
41084         fill_vms_descriptor): Update.
41085         (mark_addressable): Rename, update.
41086
41087 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
41088
41089         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
41090         Rename.
41091         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
41092         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
41093         * trans.c (tree_transform, convert_with_check): Update.
41094         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
41095         Rename.
41096
41097 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
41098
41099         * gigi.h (finish_incomplete_decl): Rename.
41100         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
41101         * utils.c (gnat_init_decl_processing): Don't set hook.
41102         (finish_incomplete_decl): Rename.
41103
41104 2002-03-29  Andreas Schwab  <schwab@suse.de>
41105
41106         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
41107         directory.
41108
41109 2001-03-28  Robert Dewar  <dewar@gnat.com>
41110
41111         * checks.ads:
41112         (Remove_Checks): New procedure
41113
41114         * checks.adb:
41115         (Remove_Checks): New procedure
41116
41117         * exp_util.adb:
41118         Use new Duplicate_Subexpr functions
41119         (Duplicate_Subexpr_No_Checks): New procedure
41120         (Duplicate_Subexpr_No_Checks_Orig): New procedure
41121         (Duplicate_Subexpr): Restore original form (checks duplicated)
41122         (Duplicate_Subexpr): Call Remove_Checks
41123
41124         * exp_util.ads:
41125         (Duplicate_Subexpr_No_Checks): New procedure
41126         (Duplicate_Subexpr_No_Checks_Orig): New procedure
41127         Add 2002 to copyright notice
41128
41129         * sem_util.adb: Use new Duplicate_Subexpr functions
41130
41131         * sem_eval.adb:
41132         (Eval_Indexed_Component): This is the place to call
41133         Constant_Array_Ref and to replace the value. We simply merge
41134         the code of this function in here, since it is now no longer
41135         used elsewhere. This fixes the problem of the back end not
41136         realizing we were clever enough to see that this was
41137         constant.
41138         (Expr_Val): Remove call to Constant_Array_Ref
41139         (Expr_Rep_Val): Remove call to Constant_Array_Ref
41140         Minor reformatting
41141         (Constant_Array_Ref): Deal with string literals (patch
41142         suggested by Zack Weinberg on the gcc list)
41143
41144 2001-03-28  Ed Schonberg  <schonber@gnat.com>
41145
41146         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
41147         Duplicate_Subexpr_Move_Checks.
41148
41149         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
41150         Duplicate_Subexpr_Move_Checks.
41151
41152         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
41153         value of array exists before retrieving it (it may a private
41154         protected component in a function).
41155
41156 2002-03-28   Geert Bosch  <bosch@gnat.com>
41157
41158         * prj-pp.adb : New file.
41159
41160         * prj-pp.ads : New file.
41161
41162 2002-03-28  Andreas Jaeger  <aj@suse.de>
41163
41164         * Makefile.in (stamp-sdefault): Fix path for Makefile.
41165
41166 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
41167
41168         * misc.c (gnat_expand_expr): Move prototype.
41169
41170 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
41171
41172         * misc.c (insert_default_attributes): Remove.
41173
41174 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
41175
41176         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
41177         (gnat_init): Don't set hook.
41178         (gnat_expand_expr): Fix prototype.
41179
41180 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
41181
41182         * misc.c (ggc_p): Remove.
41183
41184 2002-03-27  Geert Bosch  <bosch@gnat.com>
41185
41186         * prj-makr.ads, prj-makr.adb : New files.
41187
41188 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
41189
41190         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
41191         (lang_mark_tree): Make static, rename.
41192
41193 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
41194
41195         * misc.c (maybe_build_cleanup): Remove.
41196
41197 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
41198
41199         * gigi.h (yyparse): Remove.
41200
41201 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
41202
41203         From Ben Brosgol  <brosgol@gnat.com>
41204         * gnat_rm.texi: Sync with ACT version.
41205
41206 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
41207
41208         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
41209         (gnat_init): Remove old hook.
41210
41211 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
41212
41213         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
41214         (yyparse): Rename gnat_parse_file.
41215
41216 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
41217
41218         Delete all lines containing "$Revision:".
41219         * xeinfo.adb: Don't look for revision numbers.
41220         * xnmake.adb: Likewise.
41221         * xsinfo.adb: Likewise.
41222         * xsnames.adb: Likewise.
41223         * xtreeprs.adb: Likewise.
41224
41225 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
41226
41227         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
41228         gnat_tree_code_name): Delete.
41229         (tree_code_type, tree_code_length, tree_code_name): Define.
41230         (gnat_init): Don't try to copy into the various tree_code
41231         arrays.
41232
41233 2002-03-11  Richard Henderson  <rth@redhat.com>
41234
41235         * Makefile.in (.NOTPARALLEL): Add fake tag.
41236
41237 2002-03-07  Geert Bosch  <bosch@gnat.com>
41238
41239         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
41240         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
41241         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
41242         switch-m.adb, switch-m.ads : New files.
41243
41244 2002-03-07  Geert Bosch  <bosch@gnat.com>
41245
41246         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
41247         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
41248         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
41249         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
41250         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
41251         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
41252         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
41253         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
41254         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
41255         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
41256         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
41257         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
41258         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
41259         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
41260         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
41261         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
41262         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
41263         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
41264         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
41265         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
41266         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
41267         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
41268         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
41269         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
41270         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
41271         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
41272         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
41273         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
41274         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
41275         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
41276         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
41277         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
41278         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
41279         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
41280         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
41281         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
41282         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
41283         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
41284         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
41285         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
41286         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
41287         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
41288         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
41289         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
41290         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
41291         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
41292         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
41293         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
41294         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
41295         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
41296         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
41297         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
41298         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
41299         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
41300         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
41301         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
41302         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
41303         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
41304         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
41305         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
41306         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
41307         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
41308         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
41309         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
41310         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
41311         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
41312         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
41313         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
41314         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
41315         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
41316         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
41317         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
41318         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
41319         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
41320         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
41321         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
41322         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
41323         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
41324         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
41325         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
41326         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
41327         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
41328         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
41329         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
41330         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
41331         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
41332         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
41333         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
41334         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
41335         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
41336         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
41337         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
41338         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
41339         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
41340         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
41341         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
41342         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
41343
41344         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
41345         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
41346         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
41347         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
41348
41349         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
41350         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
41351
41352         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
41353         to mdll-fil.ad[bs] and mdll-util.ad[bs]
41354
41355         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
41356         from mdllfile.ad[bs] and mdlltool.ad[bs]
41357
41358 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
41359
41360         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
41361         lieu of explicit sizeof/sizeof.
41362
41363 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
41364
41365         * misc.c (copy_lang_decl): Remove.
41366
41367 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
41368
41369         * misc.c: Delete traditional-mode-related code copied from the
41370         C front end but not used, or used only to permit the compiler
41371         to link.
41372
41373 2002-02-07  Richard Henderson  <rth@redhat.com>
41374
41375         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
41376         * adaint.h (__gnat_to_gm_time): Update prototype.
41377
41378 2002-01-30  Richard Henderson  <rth@redhat.com>
41379
41380         * trans.c (tree_transform) [N_Loop_Statement]: Use
41381         expand_exit_loop_top_cond.
41382
41383 2001-12-23  Richard Henderson  <rth@redhat.com>
41384
41385         * utils.c (end_subprog_body): Push GC context around
41386         rest_of_compilation for nested functions.
41387
41388 2001-12-23  Richard Henderson  <rth@redhat.com>
41389
41390         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
41391
41392 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
41393
41394         * gnat-style.texi (Declarations and Types): Remove ancient style
41395         rule which was mandated by code generation issues.
41396
41397         * gnat-style.texi (header): Add @dircategory, @direntry.
41398         (title page): Remove date.
41399         (general) Add @./@: where approriate, and two spaces after the
41400         full stop at the end of a sentence.  Use @samp markup when
41401         referring concrete lexical entities (keywords, attribute names
41402         etc.), and @syntax for ARM grammar elements. Use @r for English
41403         text in comments.  Use @emph for emphasis.  Change "if-statements"
41404         etc. to "if statements" (without @samp). Break long lines.  Make
41405         casing of section names consistent.
41406         (Identifiers): Use @samp markup for variable names.
41407         (Comments): Use @samp markup for comment characters. Line-end
41408         comments may follow any Ada code, not just statements.  Fix
41409         misspelling of "Integer" as "integer".
41410         (Loop statements): Do not use variable name "I", use "J".
41411         (Subprogram Declarations): Document alignment.
41412         (Subprogram Bodies, Block statements): Document empty line before
41413         "begin".
41414
41415 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
41416
41417         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
41418         function approach did not work well because of a side effect (the
41419         function call could reallocate the table which was being indexed
41420         using its result). Fixes ada/4851.
41421
41422 2001-12-19  Robert Dewar  <dewar@gnat.com>
41423
41424         * bindgen.adb: Minor reformatting
41425
41426         * cstand.adb: Minor reformatting
41427
41428         * fmap.adb: Minor reformatting
41429         Change name from Add for Add_To_File_Map (Add is much too generic)
41430         Change Path_Name_Of to Mapped_Path_Name
41431         Change File_Name_Of to Mapped_File_Name
41432         Fix copyright dates in header
41433
41434         * fmap.ads:
41435         Change name from Add for Add_To_File_Map (Add is much too generic)
41436         Change Path_Name_Of to Mapped_Path_Name
41437         Change File_Name_Of to Mapped_File_Name
41438         Fix copyright dates in header
41439
41440         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
41441         Add use clause for Fmap.
41442
41443         * make.adb: Minor reformatting
41444
41445         * osint.adb: Minor reformatting.  Change of names in Fmap.
41446         Add use clause for Fmap.
41447
41448         * prj-env.adb: Minor reformatting
41449
41450         * prj-env.ads: Minor reformatting
41451
41452         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
41453         error found (there were odd exceptions to this general rule in
41454         -gnatec/-gnatem processing)
41455
41456 2001-12-19  Olivier Hainque  <hainque@gnat.com>
41457
41458         * raise.c (__gnat_eh_personality): Exception handling personality
41459         routine for Ada.  Still in rough state, inspired from the C++ version
41460         and still containing a bunch of debugging artifacts.
41461         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
41462         inspired from the C++ library.
41463
41464         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
41465         exception handling integration.
41466
41467 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
41468
41469         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
41470         (HIE_SOURCES): Add s-secsta.ad{s,b}.
41471         (HIE_OBJS): Add s-fat*.o
41472         (RAVEN_SOURCES): Remove files that are no longer required. Add
41473         interrupt handling files.
41474         (RAVEN_MOD): Removed, no longer needed.
41475
41476 2001-12-19  Robert Dewar  <dewar@gnat.com>
41477
41478         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
41479         Add 2001 to copyright date
41480
41481         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
41482         need to force universal inlining for these cases.
41483
41484 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
41485
41486         * s-taprob.adb: Minor clean ups so that this unit can be used in
41487         Ravenscar HI.
41488
41489         * exp_ch7.adb: Allow use of secondary stack in HI mode.
41490         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
41491
41492 2001-12-19  Vincent Celier  <celier@gnat.com>
41493
41494         * prj-tree.ads (Project_Node_Record): Add comments for components
41495         Pkg_Id and Case_Insensitive.
41496
41497 2001-12-19  Pascal Obry  <obry@gnat.com>
41498
41499         * g-socket.adb: Minor reformatting. Found while reading code.
41500
41501 2001-12-19  Robert Dewar  <dewar@gnat.com>
41502
41503         * prj-tree.ads: Minor reformatting
41504
41505 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
41506
41507         * config-lang.in (diff_excludes): Remove.
41508
41509 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41510
41511         * sem_res.adb (Resolve_Selected_Component): do not generate a
41512         discriminant check if the selected component is a component of
41513         the argument of an initialization procedure.
41514
41515         * trans.c (tree_transform, case of arithmetic operators): If result
41516         type is private, the gnu_type is the base type of the full view,
41517         given that the full view itself may be a subtype.
41518
41519 2001-12-17  Robert Dewar  <dewar@gnat.com>
41520
41521         * sem_res.adb: Minor reformatting
41522
41523         * trans.c (tree_transform, case N_Real_Literal): Add missing third
41524         parameter in call to Machine (unknown horrible effects from this
41525         omission).
41526
41527         * urealp.h: Add definition of Round_Even for call to Machine
41528         Add third parameter for Machine
41529
41530 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41531
41532         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
41533         predefined units in No_Run_Time mode.
41534
41535 2001-12-17  Richard Kenner  <kenner@gnat.com>
41536
41537         * misc.c (insn-codes.h): Now include.
41538
41539 2001-12-17  Olivier Hainque  <hainque@gnat.com>
41540
41541         * a-except.adb: Preparation work for future integration of the GCC 3
41542         exception handling mechanism
41543         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
41544         to factorize previous code sequences and make them externally callable,
41545         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
41546         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
41547         Use the new notification routines.
41548
41549 2001-12-17  Emmanuel Briot  <briot@gnat.com>
41550
41551         * prj-tree.ads (First_Choice_Of): Document the when others case
41552
41553 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
41554
41555         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
41556         HI-E mode, in order to support Ravenscar profile properly.
41557
41558         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
41559         mode on 32 bits targets.
41560
41561 2001-12-17  Vincent Celier  <celier@gnat.com>
41562
41563         * fmap.adb: Initial version.
41564
41565         * fmap.ads: Initial version.
41566
41567         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
41568         If search is successfully done, add to mapping.
41569
41570         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
41571
41572         * make.adb:
41573         (Gnatmake): Add new local variable Mapping_File_Name.
41574          Create mapping file when using project file(s).
41575          Delete mapping file before exiting.
41576
41577         * opt.ads (Mapping_File_Name): New variable
41578
41579         * osint.adb (Find_File): Use path name found in mapping, if any.
41580
41581         * prj-env.adb (Create_Mapping_File): New procedure
41582
41583         * prj-env.ads (Create_Mapping_File): New procedure.
41584
41585         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
41586         (Mapping_File)
41587
41588         * usage.adb: Add entry for new switch -gnatem.
41589
41590         * Makefile.in: Add dependencies for fmap.o.
41591
41592 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41593
41594         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
41595         is a package instantiation rewritten as a package body.
41596         (Install_Withed_Unit): Undo previous change, now redundant.
41597
41598 2001-12-17  Gary Dismuke  <dismukes@gnat.com>
41599
41600         * layout.adb:
41601         (Compute_Length): Move conversion to Unsigned to callers.
41602         (Get_Max_Size): Convert Len expression to Unsigned after calls to
41603         Compute_Length and Determine_Range.
41604         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
41605         Compute_Length and Determine_Range.
41606         Above changes fix problem with length computation for supernull arrays
41607         where Max (Len, 0) wasn't getting applied due to the Unsigned
41608         conversion used by Compute_Length.
41609
41610 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
41611
41612         * rtsfind.ads:
41613         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
41614          System.Secondary_Stack.
41615         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
41616          in HI-E mode.
41617         Remove unused entity RE_Exception_Data.
41618
41619         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
41620
41621         * rident.ads (No_Secondary_Stack): New restriction.
41622
41623 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
41624
41625         * gnat_rm.texi: Fix minor typos. Found while reading the section
41626         regarding "Bit_Order Clauses" that was sent to a customer.
41627         Very interesting documentation!
41628
41629 2001-12-17  Robert Dewar  <dewar@gnat.com>
41630
41631         * sem_case.adb (Choice_Image): Avoid creating improper character
41632         literal names by using the routine Set_Character_Literal_Name. This
41633         fixes bombs in certain error message cases.
41634
41635 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
41636
41637         * a-reatim.adb: Minor reformatting.
41638
41639 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41640
41641         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
41642         case where the formal is an extension of another formal in the current
41643         unit or in a parent generic unit.
41644
41645 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
41646
41647         * s-tposen.adb: Update comments.  Minor reformatting.
41648         Minor code clean up.
41649
41650         * s-tarest.adb: Update comments.  Minor code reorganization.
41651
41652 2001-12-17  Gary Dismukes  <dismukes@gnat.com>
41653
41654         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
41655         when Java_VM.
41656
41657 2001-12-17  Robert Dewa  <dewar@gnat.com>
41658
41659         * exp_attr.adb: Minor reformatting
41660
41661 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41662
41663         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
41664         derivations nested within a child unit: verify that the parent
41665         type is declared in an outer scope.
41666
41667 2001-12-17  Robert Dewar  <dewar@gnat.com>
41668
41669         * sem_ch12.adb: Minor reformatting
41670
41671 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41672
41673         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
41674         warning if current unit is a predefined one, from which bodies may
41675         have been deleted.
41676
41677 2001-12-17  Robert Dewar  <dewar@gnat.com>
41678
41679         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
41680         Fix header format. Add 2001 to copyright date.
41681
41682         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
41683         which caused CE during compilation if checks were enabled.
41684
41685 2001-12-17  Vincent Celier  <celier@gnat.com>
41686
41687         * make.adb:
41688         (Switches_Of): New function
41689         (Test_If_Relative_Path): New procedure
41690         (Add_Switches): Use new function Switches_Of
41691         (Collect_Arguments_And_Compile): Use new function Switches_Of.
41692         When using a project file, test if there are any relative
41693         search path. Fail if there are any.
41694         (Gnatmake): Only add switches for the primary directory when not using
41695         a project file. When using a project file, change directory to the
41696         object directory of the main project file. When using a project file,
41697         test if there are any relative search path. Fail if there are any.
41698         When using a project file, fail if specified executable is relative
41699         path with directory information, and prepend executable, if not
41700         specified as an absolute path, with the exec directory.  Make sure
41701         that only one -o switch is transmitted to the linker.
41702
41703         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
41704
41705         * prj-nmsc.adb:
41706         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
41707         when using a non standard naming scheme.
41708         (Check_Ada_Naming_Scheme): Make sure that error messages
41709         do not raise exceptions.
41710         (Is_Illegal_Append): Return True if there is no dot in the suffix.
41711         (Language_Independent_Check): Check the exec directory.
41712
41713         * prj.adb (Project_Empty): Add new component Exec_Directory
41714
41715         * prj.ads:
41716         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
41717         (Project_Data): Add component Exec_Directory
41718
41719         * snames.adb: Updated to match snames.ads revision 1.215
41720
41721         * snames.ads: Added Exec_Dir
41722
41723 2001-12-17  Robert Dewar  <dewar@gnat.com>
41724
41725         * make.adb: Minor reformatting
41726
41727         * prj-nmsc.adb: Minor reformatting
41728
41729         * snames.adb: Updated to match snames.ads
41730
41731         * snames.ads: Alphebetize entries for project file
41732
41733 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41734
41735         * trans.c (process_freeze_entity): Do nothing if the entity is a
41736         subprogram that was already elaborated.
41737
41738 2001-12-17  Richard Kenner  <kenner@gnat.com>
41739
41740         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
41741         and Esize if object is referenced via pointer.
41742
41743 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41744
41745         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
41746         is discrete before analyzing choices.
41747
41748 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
41749
41750         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
41751         containing the name of the Ada Main Program. This string is mainly
41752         intended for the debugger.
41753         (Gen_Output_File_C): Do the equivalent change when generating a C file.
41754
41755 2001-12-17  Robert Dewar  <dewar@gnat.com>
41756
41757         * ali.adb: Set new Dummy_Entry field in dependency entry
41758
41759         * ali.ads: Add Dummy_Entry field to source dependency table
41760
41761         * bcheck.adb (Check_Consistency): Ignore dummy D lines
41762
41763         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
41764
41765         * lib-writ.ads: Document dummy D lines for missing files.
41766
41767         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
41768
41769 2001-12-17  Robert Dewar  <dewar@gnat.com>
41770
41771         * ali.adb: Type reference does not reset current file.
41772
41773         * ali.adb: Recognize and scan renaming reference
41774
41775         * ali.ads: Add spec for storing renaming references.
41776
41777         * lib-xref.ads: Add documentation for handling of renaming references
41778
41779         * lib-xref.adb: Implement output of renaming reference.
41780
41781         * checks.adb:
41782         (Determine_Range): Document local variables
41783         (Determine_Range): Make sure Hbound is initialized. It looks as though
41784          there could be a real problem here with an uninitialized reference
41785          to Hbound, but no actual example of failure has been found.
41786
41787 2001-12-17  Laurent Pautet  <pautet@gnat.com>
41788
41789         * g-socket.ads:
41790         Fix comment of Shutdown_Socket and Close_Socket. These functions
41791         should not fail silently because if they are called twice, this
41792         probably means that there is a race condition in the user program.
41793         Anyway, this behaviour is consistent with the rest of this unit.
41794         When an error occurs, an exception is raised with the error message
41795         as exception message.
41796
41797 2001-12-17  Robert Dewar  <dewar@gnat.com>
41798
41799         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
41800         that it happens before modification of Sloc values for -gnatD.
41801
41802         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
41803         so that it happens before modification of Sloc values for -gnatD.
41804
41805         * switch.adb: Minor reformatting
41806
41807 2001-12-15  Richard Henderson  <rth@redhat.com>
41808
41809         * sem_ch7.adb: Wrap comment.
41810
41811 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
41812
41813         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
41814         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
41815         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
41816         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
41817         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
41818         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
41819         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
41820         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
41821         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
41822         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
41823         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
41824         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
41825         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
41826         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
41827         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
41828         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
41829         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
41830         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
41831         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
41832         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
41833         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
41834         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
41835         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
41836         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
41837         spelling errors.
41838
41839 2001-12-14  Vincent Celier  <celier@gnat.com>
41840
41841         * osint.adb(Create_Debug_File): When an object file is specified,
41842         put the .dg file in the same directory as the object file.
41843
41844 2001-12-14  Robert Dewar  <dewar@gnat.com>
41845
41846         * osint.adb: Minor reformatting
41847
41848         * lib-xref.adb (Output_Instantiation): New procedure to generate
41849         instantiation references.
41850
41851         * lib-xref.ads: Add documentation of handling of generic references.
41852
41853         * ali.adb (Read_Instantiation_Ref): New procedure to read
41854         instantiation references
41855
41856         * ali.ads: Add spec for storing instantiation references
41857
41858         * bindusg.adb: Minor reformatting
41859
41860         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41861
41862         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41863
41864         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41865
41866         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41867
41868         * csets.ads:
41869         Fix header format
41870         Add 2001 to copyright date
41871         Add entry for Latin-5 (Cyrillic ISO-8859-5)
41872
41873 2001-12-14  Matt Gingell  <gingell@gnat.com>
41874
41875         * adaint.c: mktemp is a macro on Lynx and can not be used as an
41876         expression.
41877
41878 2001-12-14  Richard Kenner  <kenner@gnat.com>
41879
41880         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
41881         if operand is CONSTRUCTOR.
41882
41883 2001-12-14  Ed Schonberg  <schonber@gnat.com>
41884
41885         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
41886         before emiting check on right-hand side, so that exception information
41887         is correct.
41888
41889 2001-12-14  Richard Kenner  <kenner@gnat.com>
41890
41891         * utils.c (create_var_decl): Throw away initializing expression
41892         if just annotating types and non-constant.
41893
41894 2001-12-14  Vincent Celier  <celier@gnat.com>
41895
41896         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
41897         Default_Ada_...
41898
41899         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
41900         Remove functions.
41901         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
41902
41903         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
41904         Remove functions.
41905         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
41906
41907 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
41908
41909         * ChangeLog: Remove piece of diff output.
41910
41911 2001-12-14  Geert Bosch  <bosch@gnat.com>
41912
41913         * config-lang.in: Update copyright notice
41914
41915         * layout.adb: Remove commented out code.
41916
41917         * mdllfile.ads: Update copyright notice. Fix header format.
41918
41919         * sem_case.ads: Likewise.
41920
41921         * sem_ch3.adb: Minor reformatting.
41922
41923 2001-12-12  Geert Bosch  <bosch@gnat.com>
41924
41925         * freeze.ads: Update copyright date.
41926
41927         * g-comlin.ads: Minor reformatting.
41928
41929         * gnat-style.texi: Fix typo.
41930
41931 2001-12-12  Geert Bosch  <bosch@gnat.com>
41932
41933         *  einfo.h: Regenerate.
41934
41935 2001-12-12  Ed Schonberg  <schonber@gnat.com>
41936
41937         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
41938         on known node types, rather than untyped fields. Further cleanups.
41939
41940 2001-12-12  Robert Dewar  <dewar@gnat.com>
41941
41942         * sem_ch12.adb:
41943         (Save_Entity_Descendant): Minor comment update.
41944         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
41945          of an N_Attribute_Reference node. As per note below, this does not
41946         eliminate need for Associated_Node in attribute ref nodes.
41947         (Associated_Node): Documentation explicitly mentions attribute
41948         reference nodes, since this field is used in such nodes.
41949
41950         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
41951
41952 2001-12-12  Robert Dewar  <dewar@gnat.com>
41953
41954         * s-stalib.adb: Add more comments on with statements being needed
41955
41956         * par-ch12.adb: Minor reformatting
41957
41958         * prj-dect.ads: Fix copyright header
41959
41960         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
41961         inputs fit in 32 bits, but the result still overflows.
41962
41963         * s-fatgen.ads: Minor comment improvement
41964
41965 2001-12-12  Ed Schonberg  <schonber@gnat.com>
41966
41967         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
41968         formal derived type, look for an inherited component from the full
41969         view of the parent, if any.
41970
41971 2001-12-12  Robert Dewar  <dewar@gnat.com>
41972
41973         * checks.ads (Apply_Alignment_Check): New procedure.
41974
41975         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
41976         ensure that the alignment of objects with address clauses is
41977         appropriate, and raise PE if not.
41978
41979         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
41980         Exp_Pakd.Known_Aligned_Enough
41981
41982         * mdllfile.ads: Minor reformatting
41983
41984         * mlib-fil.ads: Minor reformatting
41985
41986 2001-12-12  Ed Schonberg  <schonber@gnat.com>
41987
41988         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
41989         fix to any component reference if enclosing record has non-standard
41990         representation.
41991
41992 2001-12-12  Vincent Celier  <celier@gnat.com>
41993
41994         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
41995         Iteration
41996
41997 2001-12-12  Ed Schonberg  <schonber@gnat.com>
41998
41999         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
42000         sem_attr.
42001
42002 2001-12-12  Robert Dewar  <dewar@gnat.com>
42003
42004         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
42005
42006 2001-12-12  Emmanuel Briot  <briot@gnat.com>
42007
42008         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
42009         and it adds dependencies to system.io.
42010
42011 2001-12-12  Pascal Obry  <obry@gnat.com>
42012
42013         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
42014         variable name.
42015
42016 2001-12-11  Ed Schonberg  <schonber@gnat.com>
42017
42018         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
42019         that is the parent of other generics, the instance body replaces the
42020         instance node.  Retrieve the instance of the spec, which is the one
42021         that is visible in clients and within the body.
42022
42023 2001-12-11  Vincent Celier  <celier@gnat.com>
42024
42025         * gnatmain.adb: Initial version.
42026
42027         * gnatmain.ads: Initial version.
42028
42029         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
42030
42031         * snames.adb: Updated to match snames.ads.
42032
42033         * snames.ads: Added Gnatstub.
42034
42035 2001-12-11  Vincent Celier  <celier@gnat.com>
42036
42037         * prj-attr.adb (Initialization_Data): Change name from
42038         Initialisation_Data.
42039
42040 2001-12-11  Emmanuel Briot  <briot@gnat.com>
42041
42042         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
42043         + and * applied to backslashed expressions like \r.
42044
42045 2001-12-11  Vasiliy Fofanov  <fofanov@gnat.com>
42046
42047         * g-os_lib.ads: String_List type added, Argument_List type is now
42048         subtype of String_List.
42049
42050 2001-12-11  Robert Dewar  <dewar@gnat.com>
42051
42052         * g-os_lib.ads: Change copyright to FSF
42053         Add comments for String_List type
42054
42055 2001-12-11  Vincent Celier  <celier@gnat.com>
42056
42057         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
42058         string to the buffer).
42059
42060 2001-12-11  Ed Schonberg  <schonber@gnat.com>
42061
42062         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
42063         sem_attr.
42064
42065         * sem_attr.adb: Simplify previous fix for Address.
42066         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
42067         to avoid anomalies where the bound of the type appears to raise
42068         constraint error.
42069
42070 2001-12-11  Robert Dewar  <dewar@gnat.com>
42071
42072         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
42073         handled.
42074
42075 2001-12-11  Ed Schonber   <schonber@gnat.com>
42076
42077         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
42078         renamed unit before checking for recursive instantiations.
42079
42080 2001-12-11  Emmanuel Briot  <briot@gnat.com>
42081
42082         * prj.ads: Add comments for some of the fields.
42083
42084 2001-12-11  Robert Dewar  <dewar@gnat.com>
42085
42086         * lib-xref.adb (Output_Refs): Don't output type references outside
42087         the main unit if they are not otherwise referenced.
42088
42089 2001-12-11  Ed Schonberg  <schonber@gnat.com>
42090
42091         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
42092         code and diagnose additional illegal uses
42093
42094         * sem_util.adb (Is_Object_Reference): An indexed component is an
42095         object only if the prefix is.
42096
42097 2001-12-11  Vincent Celier  <celier@gnat.com>
42098
42099         * g-diopit.adb: Initial version.
42100
42101         * g-diopit.ads: Initial version.
42102
42103         * g-dirope.adb:
42104         (Expand_Path): Avoid use of Unbounded_String
42105         (Find, Wildcard_Iterator): Moved to child package Iteration
42106
42107         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
42108
42109 2001-12-11  Robert Dewar  <dewar@gnat.com>
42110
42111         * sem_attr.adb: Minor reformatting
42112
42113 2001-12-11  Ed Schonberg  <schonber@gnat.com>
42114
42115         * sem_ch3.adb: Clarify some ???.
42116
42117 2001-12-11  Robert Dewar  <dewar@gnat.com>
42118
42119         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
42120         Exp_Pakd.Known_Aligned_Enough
42121
42122         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
42123         version is moved to Exp_Ch13.
42124
42125 2001-12-11  Robert Dewar  <dewar@gnat.com>
42126
42127         * einfo.ads: Minor reformatting
42128
42129         * exp_ch5.adb: Add comment for previous.change
42130
42131         * ali.adb: New interface for extended typeref stuff.
42132
42133         * ali.ads: New interface for typeref stuff.
42134
42135         * checks.adb (Apply_Alignment_Check): New procedure.
42136
42137         * debug.adb: Add -gnatdM for modified ALI output
42138
42139         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
42140
42141         * lib-xref.adb: Extend generation of <..> notation to cover
42142         subtype/object types. Note that this is a complete rewrite,
42143         getting rid of the very nasty quadratic algorithm previously
42144         used for derived type output.
42145
42146         * lib-xref.ads: Extend description of <..> notation to cover
42147         subtype/object types. Uses {..} for these other cases.
42148         Also use (..) for pointer types.
42149
42150         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
42151
42152         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
42153         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
42154
42155 2001-12-11  Vincent Celier  <celier@gnat.com>
42156
42157         * gnatcmd.adb:
42158         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
42159         Changed /BIND_ONLY to /ACTIONS=BIND
42160         Changed /LINK_ONLY to /ACTIONS=LINK
42161
42162 2001-12-11  Ed Schonberg  <schonber@gnat.com>
42163
42164         * sem_ch8.adb (Find_Selected_Component): improved search for a
42165         candidate package in case of error.
42166
42167         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
42168         chain back on scope stack before reinstalling use clauses.
42169
42170         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
42171         is enabled, do not kill the code for the condition, to preserve
42172         warning.
42173
42174 2001-12-11  Robert Dewar  <dewar@gnat.com>
42175
42176         * checks.adb (Insert_Valid_Check): Apply validity check to expression
42177         of conversion, not to result of conversion.
42178
42179 2001-12-11  Ed Schonberg  <schonber@gnat.com>
42180
42181         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
42182         before freezing parent. If the declarations are mutually recursive,
42183         an access to the current record type may be frozen before the
42184         derivation is complete.
42185
42186 2001-12-05  Vincent Celier  <celier@gnat.com>
42187
42188         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
42189         -c /COMPILE_ONLY, -l /LINK_ONLY
42190
42191         * opt.ads:
42192         (Bind_Only): New Flag
42193         (Link_Only): New flag
42194
42195         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
42196         and -l (Link_Only)
42197
42198         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
42199
42200         * make.adb:
42201         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
42202         (Gnatmake): Set the step flags. Only perform a step if the
42203         corresponding step flag is True.
42204         (Scan_Make_Arg): Reset the bind and link step flags when -u
42205         or -gnatc has been specified.
42206
42207 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42208
42209         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
42210         get bounds from right operand.
42211
42212         * sem_eval.adb: Minor reformatting
42213
42214         * exp_util.adb (Make_Literal_Range): use bound of literal rather
42215         than Index'First, its lower bound may be different from 1.
42216
42217         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
42218         and C48009J
42219
42220 2001-12-05  Vincent Celier  <celier@gnat.com>
42221
42222         * prj-nmsc.adb Minor reformatting
42223
42224         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
42225         set and libraries are not supported.
42226
42227 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42228
42229         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
42230         private view explicitly, so the back-end can treat as a global
42231         when appropriate.
42232
42233 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42234
42235         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
42236          unit, always replace instance node with new body, for ASIS use.
42237
42238 2001-12-05  Vincent Celier  <celier@gnat.com>
42239
42240         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
42241         libraries are not supported and both attributes Library_Name and
42242         Library_Dir are specified.
42243
42244         * prj-proc.adb (Expression): Set location of Result to location of
42245         first term.
42246
42247         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
42248         (prj-nmsc is now importing MLib.Tgt)
42249
42250         * prj-proc.adb: Put the change indicated above that was forgotten.
42251
42252 2001-12-05  Robert Dewar  <dewar@gnat.com>
42253
42254         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
42255
42256 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42257
42258         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
42259         constraint, introduce explicit subtype declaration and derive from it.
42260
42261         * sem_ch3.adb: Minor reformatting
42262
42263 2001-12-05  Robert Dewar  <dewar@gnat.com>
42264
42265         * checks.adb (Determine_Range): Increase cache size for checks.
42266         Minor reformatting
42267
42268         * exp_ch6.adb: Minor reformatting
42269         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
42270         a parameter whose root type is System.Address, since treating such
42271         subprograms as pure in the code generator is almost surely a mistake
42272         that will lead to unexpected results.
42273
42274         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
42275         change handling of conversions.
42276
42277         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
42278
42279 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42280
42281         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
42282         aggregate with static wrong size, attach generated Raise node to
42283         declaration.
42284
42285 2001-12-05  Robert Dewar  <dewar@gnat.com>
42286
42287         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
42288         Fixes compilation abandoned bomb in B24009B.
42289
42290 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42291
42292         * sem_ch12.adb:
42293         Document use of Associated_Node on Selected_Components.
42294         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
42295         to clarify use of untyped descendant fields.
42296
42297 2001-12-05  Robert Dewar  <dewar@gnat.com>
42298
42299         * prj-dect.ads: Add ??? comment
42300         Add 2001 to copyright notice (was not done in after all)
42301
42302         * prj-part.adb: Minor reformatting. Reword one awkward error message.
42303
42304         * prj.ads: Minor reformatting throughout, and add some ??? comments
42305
42306         * snames.ads: Minor reformatting
42307
42308 2001-12-05  Geert Bosch  <bosch@gnat.com>
42309
42310         * snames.adb: Autoupdate
42311
42312 2001-12-05  Vincent Celier  <celier@gnat.com>
42313
42314         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
42315
42316         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
42317
42318         * prj-env.adb: Minor comment changes (modifying -> extends).
42319
42320         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
42321
42322         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
42323         Tok_Extends.
42324
42325         * prj.adb (Initialize): Change Modifying to Extends.
42326
42327         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
42328
42329         * prj.ads: Minor comment change (Modifying -> extending).
42330
42331         * snames.ads: Change modifying to extends.
42332
42333 2001-12-05  Robert Dewar  <dewar@gnat.com>
42334
42335         * sem_warn.adb: Remove stuff for conditionals, we are not going to
42336         do this after all.
42337
42338         * sem_warn.ads: Remove stuff for conditionals, we are not going to
42339         do this after all.  Add 2001 to copyright notice
42340
42341 2001-12-04  Geert Bosch  <bosch@gnat.com>
42342
42343         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
42344
42345 2001-12-04  Robert Dewar  <dewar@gnat.com>
42346
42347         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
42348         location if we already have errors. Stops some cases of cascaded
42349         errors.
42350
42351         * errout.adb: Improve comment.
42352
42353 2001-12-04  Robert Dewar  <dewar@gnat.com>
42354
42355         * sem_ch12.adb:
42356         (Analyze_Formal_Type_Definition): Defend against Error.
42357         (Analyze_Formal_Subprogram): Defend against Error.
42358
42359         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
42360         remove following semicolon if present. Removes cascaded error.
42361
42362 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
42363
42364         * bindgen.adb:
42365         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
42366          exceptions equals 0.
42367         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
42368         Fixes PIWG E tests (which have to be run with -gnatL).
42369
42370 2001-12-04  Robert Dewar  <dewar@gnat.com>
42371
42372         * einfo.ads: Minor reformatting
42373
42374 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42375
42376         * einfo.ads: Block_Node points to the identifier of the block, not to
42377         the block node itself, to preserve the link when the block is
42378         rewritten, e.g. within an if-statement with a static condition.
42379
42380         * inline.adb (Cleanup_Scopes): recover block statement from block
42381         entity using new meaning of Block_Node.
42382
42383         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
42384         identifier of block node, rather than to node itself.
42385
42386 2001-12-04  Gary Dismukes  <dismukes@gnat.com>
42387
42388         * layout.adb:
42389         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
42390         (Discrimify): Go back to setting the Etypes of the selected component
42391         because the Vname component does not exist at this point and will
42392         fail name resolution. Also set Analyzed.
42393         Remove with and use of Sem_Res.
42394
42395 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
42396
42397         * Makefile.in: (HIE_SOURCES): add s-fat*.
42398
42399 2001-12-04  Robert Dewar  <dewar@gnat.com>
42400
42401         * sem_attr.adb:
42402         (Compile_Time_Known_Attribute): New procedure.
42403         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
42404          proper range check.
42405
42406 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42407
42408         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
42409         processing discriminants to diagnose illegal default values.
42410
42411 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42412
42413         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
42414         access discriminant within a type extension that constrains its
42415         parent discriminants.
42416
42417 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42418
42419         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
42420         is malformed, use instance of Any_Id to allow analysis to proceed.
42421
42422         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
42423         type definition is illegal.
42424         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
42425         misplaced.
42426
42427 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42428
42429         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
42430         constants.
42431
42432 2001-12-04  Robert Dewar  <dewar@gnat.com>
42433
42434         * errout.adb: Minor reformatting
42435
42436 2001-12-04  Robert Dewar  <dewar@gnat.com>
42437
42438         * exp_util.adb: Minor reformatting from last change
42439
42440         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
42441         which is a rewriting of an expression, traverse the original
42442         expression to remove warnings that may have been posted on it.
42443
42444 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42445
42446         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
42447         record that has other packed components.
42448
42449 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
42450
42451         * adaint.c: Minor cleanups.
42452
42453 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
42454
42455         * adaint.c: Do not use utime.h on vxworks.
42456
42457 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
42458
42459         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
42460         more confusion than it solves.
42461
42462 2001-12-04  Geert bosch  <bosch@gnat.com>
42463
42464         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
42465
42466 2001-12-04  Geert Bosch  <bosch@gnat.com>
42467
42468         * Makefile.in (update-sources): New target.
42469         For use by gcc_release script.
42470
42471 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42472
42473         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
42474         a configuration pragma, it is now legal wherever a pragma can appear.
42475
42476 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
42477
42478         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
42479         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
42480         is now @CROSS@ -DIN_GCC; update comment.
42481
42482 2001-12-04  Robert Dewar  <dewar@gnat.com>
42483
42484         * einfo.adb (Has_Pragma_Pure_Function): New flag.
42485         Fix problem that stopped ceinfo from working
42486
42487         * einfo.ads (Has_Pragma_Pure_Function): New flag.
42488
42489         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
42490
42491 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
42492
42493         * gnatchop.adb:
42494         (File_Time_Stamp): New procedure.
42495         (Preserve_Mode): New boolean.
42496         (Write_Unit): Pass time stamp.
42497         Implement -p switch (preserve time stamps).
42498
42499         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
42500
42501         * gnatchop.adb: Do usage info for -p switch
42502
42503         * adaint.h (__gnat_set_file_time_name): New function
42504
42505         * adaint.c (__gnat_set_file_time_name): Implement
42506
42507         * adaint.h: Fix typo
42508
42509 2001-12-03  Robert Dewar  <dewar@gnat.com>
42510
42511         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
42512         have Associated_Node.
42513
42514 2001-12-03  Robert Dewar  <dewar@gnat.com>
42515
42516         * prj-proc.adb: Minor reformatting
42517
42518         * make.adb: Minor reformatting
42519
42520 2001-12-03  Geert Bosch  <bosch@gnat.com>
42521
42522         * make.adb: Minor reformatting.
42523
42524 2001-12-03 Robert Dewar  <dewar@gnat.com>
42525
42526         * sem_ch12.adb: Minor reformatting
42527
42528 2001-12-03  Ed Schonberg  <schonber@gnat.com>
42529
42530         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
42531         push Standard on the stack before analyzing the instance body,
42532         in order to have a clean visibility environment.
42533
42534         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
42535
42536 2001-12-03  Ed Schonberg  <schonber@gnat.com>
42537
42538         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
42539         instantiation of a body that contains an inlined body.
42540
42541 2001-12-03  Ed Schonberg  <schonber@gnat.com>
42542
42543         * sem_ch12.adb:
42544         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
42545         to prevent freezing within formal packages.
42546         (Freeze_Subprogram_Body): If body comes from another instance that
42547         appeared before its own body, place freeze node at end of current
42548         declarative part, to prevent a back-end crash.
42549         (Inline_Instance_Body): Handle properly a package instance within
42550         a subprogram instance that is a child unit.
42551
42552 2001-12-01  Graham Stott  <grahams@redhat.com>
42553
42554         * Makefile.in (misc.o): Add missing $(srcdir) prefix
42555         and add optabs.h dependency.
42556
42557         * misc.c: Include optabs.h
42558         (gnat_tree_code_type): Make static and const.
42559         (gnat_tree_code_length): Likewise.
42560         (gnat_tree_code_name): Likewise.
42561         (update_setjmp_buf): Obtain operands mode from insn_data.
42562
42563 2001-11-29  Richard Henderson  <rth@redhat.com>
42564
42565         * init.c: Remove obsolete dwarf2 frame.h section.
42566
42567 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
42568
42569         * Make-lang.in (ada.generated-manpages): New dummy target.
42570
42571 2001-11-29  Ed Schonberg  <schonber@gnat.com>
42572
42573         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
42574         into Command, an array conversion is illegal here. Uncovered by
42575         ACATS B460005.
42576
42577 2001-11-28  Geert Bosch  <bosch@gnat.com>
42578
42579         * init.c: Minor whitespace changes.
42580
42581 2001-11-28  Doug Rupp  <rupp@gnat.com>
42582
42583         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
42584         signal stack.
42585
42586 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
42587
42588         * misc.c (gnat_expand_constant): Move declaration above
42589         definition of lang_hooks.
42590         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
42591         (gnat_init): lang_expand_constant no longer exists.
42592
42593         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
42594         always have vprintf.
42595         (gnat_init): Always call set_internal_error_function.
42596
42597 2001-11-27  Andreas Jaeger  <aj@suse.de>
42598
42599         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
42600
42601 2001-11-27  Laurent Guerby  <guerby@acm.org>
42602
42603         * Makefile.in: Regenerate Ada dependencies.
42604
42605 2001-11-26  Richard Henderson  <rth@redhat.com>
42606
42607         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
42608         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
42609         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
42610
42611 2001-11-25  Laurent Guerby  <guerby@acm.org>
42612
42613         * sysdep.c (rts_get_*): Fix style.
42614
42615 2001-11-19  Laurent Guerby  <guerby@acm.org>
42616
42617         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
42618         since it is of no apparent use and cause warnings.
42619
42620 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
42621
42622         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
42623         static too.
42624         (gnat_init): Don't return NULL.
42625         (finish_parse): Remove.
42626
42627 2001-11-17  Laurent Guerby  <guerby@acm.org>
42628
42629         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
42630         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
42631         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
42632         * lang-spec.h: Add missing struct field to silence warnings.
42633         * sysdep.c (rts_get_*): Provide K&R prototype.
42634         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
42635         * traceback.c (Unlock_Task, Lock_Task): Likewise.
42636         * tracebak.c (__gnat_backtrace): Remove unused variable.
42637         * utils.c (end_subprog_body): Move to K&R style.
42638
42639 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
42640
42641         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
42642
42643 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
42644
42645         * misc.c (gnat_init): Change prototype.  Include the
42646         functionality of the old init_parse and init_decl_processing.
42647         (gnat_init_decl_processing): New prototype.
42648         (init_parse): Remove.
42649         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
42650
42651 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
42652
42653         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
42654         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
42655         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
42656         set_yydebug): Remove.
42657
42658 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
42659
42660         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
42661         (struct lang_hooks): Constify.
42662         (language_string, lang_identify): Remove.
42663         * utils.c (init_decl_processing): Update.
42664
42665 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
42666
42667         * misc.c: Include langhooks-def.h.
42668         * Makefile.in: Update.
42669
42670 2001-10-30  Robert Dewar  <dewar@gnat.com>
42671
42672         * style.adb:
42673         (Check_Identifier): Rewrite circuit to be compatible with use of letters
42674         in the upper half of ASCII.
42675         (Check_Identifier): Minor reformatting
42676
42677 2001-10-30  Geert Bosch  <bosch@gnat.com>
42678
42679         * (Associated_Node, Set_Associated_Node): Do not check for
42680         Freeze_Entity.
42681
42682 2001-10-30  Robert Dewar  <dewar@gnat.com>
42683
42684         * a-reatim.ads: Minor reformatting
42685
42686 2001-10-30  Robert Dewar  <dewar@gnat.com>
42687
42688         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
42689         undocumented declarations.
42690
42691 2001-10-30  Pascal Obry  <obry@gnat.com>
42692
42693         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
42694         to the binder and linker.
42695         Minor style fix.
42696
42697         * mdll.ads: Fix layout.  Update copyright notice.
42698
42699         * mdll.adb: Fix layout.  Update copyright notice.
42700
42701 2001-10-30  Robert Dewar  <dewar@gnat.com>
42702
42703         * usage.adb: Minor fix to output for -gnaty.
42704
42705 2001-10-30  Ed Schonberg  <schonber@gnat.com>
42706
42707         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
42708         to accommodate all its possible values.
42709
42710         * a-reatim.adb (Split): Special-case handling of Time_Span_First
42711         and of small absolute values of T.
42712
42713 2001-10-30  Richard Kenner  <kenner@gnat.com>
42714
42715         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
42716         set_mem_attributes since not needed and wrong if RESULT if a REG;
42717         fixes ACATS failures.
42718
42719 2001-10-30  Geert Bosch  <bosch@gnat.com>
42720
42721         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
42722         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
42723
42724 2001-10-30  Robert Dewar  <dewar@gnat.com>
42725
42726         * bindusg.adb: Undocument -f switch.
42727
42728         * gnatcmd.adb: Remove /FULL_ELABORATION.
42729
42730         * opt.ads (Force_RM_Elaboration_Order): Document that this is
42731         obsolescent.
42732
42733         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
42734
42735         * gnatbind.adb: Minor update of warning msg.
42736
42737 2001-10-30  Vincent Celier  <celier@gnat.com>
42738
42739         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
42740         for project file switches (-P (/PROJECT_FILE=),
42741          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
42742         or MEDIUM or HIGH)
42743
42744 2001-10-30  Geert Bosch  <bosch@gnat.com>
42745
42746         * decl.c: Minor whitespace fixes.
42747
42748 2001-10-30  Richard Kenner  <kenner@gnat.com>
42749
42750         * utils2.c (build_allocator): Test for SIZE overflow in array case too
42751
42752 2001-10-30  Geert Bosch  <bosch@gnat.com>
42753
42754         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
42755         Found due to GCC 3.0 warning of using uninitialized value.
42756
42757         * layout.adb:
42758         (Get_Max_Size): Use variant record for tracking value/expression.
42759          Makes logic clearer and prevents warnings for uninitialized variables.
42760         (Layout_Array_Type): Use variant record for tracking value/expression.
42761          Makes logic clearer and prevents warnings for uninitialized variables.
42762
42763 2001-10-30  Robert Dewar  <dewar@gnat.com>
42764
42765         * lib.adb: Minor reformatting
42766
42767         * s-taprop.ads: Minor reformatting
42768
42769 2001-10-29  Laurent Guerby  <guerby@acm.org>
42770
42771         * init.c:
42772         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
42773         const.
42774         (_gnat_error_handler): Make MSG const.
42775
42776 2001-10-29  Richard Kenner  <kenner@gnat.com>
42777
42778         * sysdep.c: Fix localtime_r problem on LynxOS.
42779         Also remove #elif to avoid warnings.
42780
42781         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
42782         used by this.
42783
42784         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
42785
42786 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
42787
42788         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
42789         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
42790         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
42791         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
42792         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
42793         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
42794         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
42795         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
42796         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
42797         types.ads, urealp.adb: Fix spelling errors.
42798
42799 2001-10-27  Laurent Guerby  <guerby@acm.org>
42800
42801         * trans.c (gigi): Fix non determinism leading to bootstrap
42802         comparison failures for debugging information.
42803
42804 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
42805
42806         * gnat_rm.texi: Use @./@: where appropriate.
42807
42808 2001-10-26  Robert Dewar  <dewar@gnat.com>
42809
42810         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
42811
42812 2001-10-26  Richard Kenner  <kenner@gnat.com>
42813
42814         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
42815
42816 2001-10-26  Richard Kenner  <kenner@gnat.com>
42817
42818         * decl.c (validate_size): Modify message for bad size to avoid
42819         implication that compiler is modifying the size.
42820
42821 2001-10-26  Robert Dewar  <dewar@gnat.com>
42822
42823         * prj-util.adb: Minor reformatting. Fix bad header format.
42824
42825 2001-10-26  Robert Dewar  <dewar@gnat.com>
42826
42827         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
42828
42829         * sinfo.ads: Clarify use of Associated_Node (documentation only).
42830
42831         * sem_ch12.adb: Change Node4 to Associated_Node. Change
42832         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
42833         much more narrowly in places where needed. These are cleanups.
42834
42835 2001-10-26  Joel Brobecker  <brobecke@gnat.com>
42836
42837         * 5zosinte.ads (null_pthread): new constant.
42838
42839         * 5ztaprop.adb:
42840         (Initialize_TCB): Initialize thread ID to null, to be able to verify
42841          later that this field has been set.
42842         (Finalize_TCB): ditto.
42843         (Suspend_Task): Verify that the thread ID is not null before using it.
42844         (Resume_Task): ditto.
42845
42846         * s-tasdeb.adb:
42847         (Resume_All_Tasks): Lock the tasks list before using it.
42848         (Suspend_All_Tasks): ditto.
42849
42850 2001-10-26  Richard Kenner  <kenner@gnat.com>
42851
42852         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
42853         Make constant variant of designated type for Is_Access_Constant.
42854         Call update_pointer_to with main variant.
42855
42856         * trans.c (process_freeze_entity, process_type):
42857         Call update_pointer_to on main variant.
42858
42859         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
42860         If main variant, update all other variants.
42861
42862         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
42863         TREE_STATIC.
42864
42865 2001-10-26  Robert Dewar  <dewar@gnat.com>
42866
42867         * prj-util.adb: Minor reformatting
42868
42869 2001-10-26  Robert Dewar  <dewar@gnat.com>
42870
42871         * prj-util.adb: Minor reformatting
42872
42873 2001-10-26  Robert Dewar  <dewar@gnat.com>
42874
42875         * prj-attr.adb: Minor reformatting throughout
42876
42877 2001-10-26  Robert Dewar  <dewar@gnat.com>
42878
42879         * prj-attr.ads: Minor reformatting
42880         Add ??? comment (this whole spec has almost no comments)
42881
42882 2001-10-26  Vincent Celier  <celier@gnat.com>
42883
42884         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
42885         ("//") that precede the drive letter on Interix.
42886
42887 2001-10-26  Geert Bosch  <bosch@gnat.com>
42888
42889         * gnat_rm.texi: Add GNAT Reference Manual.
42890
42891 2001-10-25  Robert Dewar  <dewar@gnat.com>
42892
42893         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
42894         is Error. Similar change for other renaming cases.
42895
42896 2001-10-25  Robert Dewar  <dewar@gnat.com>
42897
42898         * s-atacco.ads: Add pragma Inline_Always for functions.
42899         Fix header format. Add copyright 2001
42900
42901 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42902
42903         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
42904         return Error rather than Empty so that analysis can proceed.
42905
42906 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42907
42908         * sem_util.adb (Enter_Name): better handling of cascaded error
42909         messages when a unit appears in its own context.
42910
42911 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42912
42913         * sem_util.adb (Defining_Entity): in case of error, attach created
42914         entity to specification, so that semantic analysis can proceed.
42915
42916 2001-10-25  Robert Dewar  <dewar@gnat.com>
42917
42918         * sem_util.adb
42919         (Defining_Entity): Deal with Error.
42920         (Process_End_Label): Deal with bad end label for.
42921
42922 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42923
42924         * sem_elab.adb (Check_A_Call): refine message when call is in an
42925         instance but callee is not declared in the generic unit.
42926
42927 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42928
42929         * sem_elab.adb (Check_A_Call): check for renaming before finding the
42930         enclosing unit, which may already be different from the calling unit.
42931
42932 2001-10-25  Geert Bosch  <bosch@gnat.com>
42933
42934         * 4gintnam.ads: fix header format.
42935
42936 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42937
42938         * sem_res.adb (Resolve_Call): if the call is actually an indexing
42939         operation on the result of a parameterless call, perform elaboration
42940         check after the node has been properly rewritten.
42941
42942         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
42943         inlined within the generic tree, the defining identifier is not a
42944         compilation_unit.
42945
42946 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42947
42948         * sem_res.adb (Resolve): special-case resolution of Null in an
42949          instance or an inlined body to avoid view conflicts.
42950
42951         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
42952          compatibility by retrieving the access type of the generic copy.
42953
42954 2001-10-25  Robert Dewar  <dewar@gnat.com>
42955
42956         * sem_ch3.adb:
42957         (Analyze_Number_Declaration): Handle error expression.
42958         (Signed_Integer_Type_Declaration): Handle error bound.
42959         (Analyze_Subtype_Indication): Handle error range.
42960
42961         * sem_util.adb (Get_Index_Bounds): Check for Error.
42962
42963 2001-10-25  Robert Dewar  <dewar@gnat.com>
42964
42965         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
42966         in no run time mode.
42967
42968 2001-10-25  Pascal Obry  <obry@gnat.com>
42969
42970         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
42971         mode case for ALLOC case.
42972
42973         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
42974         all platforms. Improvement of last change.
42975
42976 2001-10-25  Robert Dewar  <dewar@gnat.com>
42977
42978         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
42979
42980 2001-10-25  Geert Bosch  <bosch@gnat.com>
42981
42982         * osint.adb (Is_Relative): Remove duplicate.
42983
42984 2001-10-25  Pascal Obry  <obry@gnat.com>
42985
42986         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
42987         pathnames in UNIX and DOS style with drive letter.
42988         (Is_Relative): new routine.
42989
42990         * osint.adb: Minor reformatting
42991
42992         * osint.adb (Is_Relative): implementation using
42993         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
42994
42995 2001-10-25  Pascal Obry  <obry@gnat.com>
42996
42997         * g-dirope.adb (Basename): correctly compute offset between the
42998         original Path and the translated one.
42999
43000         * g-dirope.adb: (Base_Name): add some comments.
43001
43002 2001-10-25  Robert Dewar  <dewar@gnat.com>
43003
43004         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
43005         in HIE mode, avoids compilation abandoned message
43006
43007         * exp_imgv.adb: Correct typo in previous change
43008
43009         * exp_imgv.adb: Correct typo in previous change (not my day!)
43010
43011 2001-10-25  Robert Dewar  <dewar@gnat.com>
43012
43013         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
43014
43015 2001-10-25  Pascal Obry  <obry@gnat.com>
43016
43017         * g-awk.ads: Move all pragma inlines next to the routine
43018          declarations. This is more uniform with other GNAT spec.
43019
43020 2001-10-22  Geert Bosch  <bosch@gnat.com>
43021
43022         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
43023
43024 2001-10-19  Geert Bosch  <bosch@gnat.com>
43025
43026         * Makefile.in (tools, gnattools): Remove gnatmem.
43027
43028 2001-10-17  Richard Henderson  <rth@redhat.com>
43029
43030         * Makefile.in (misc.o): Depend on langhooks.h.
43031         * misc.c: Include it.
43032         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
43033         (LANG_HOOKS_DECODE_OPTION): New.
43034         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
43035
43036 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
43037
43038         * trans.c (tree_transform): Adjust to recent change in
43039         expand_asm_operands to implement named asm operands.
43040
43041 2001-10-11  Ed Schonberg  <schonber@gnat.com>
43042
43043         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
43044         renaming of discriminant for mutable record type.
43045
43046 2001-10-11  Robert Dewar  <dewar@gnat.com>
43047
43048         * validsw.adb: Properly save -gnatVn status.
43049
43050 2001-10-11  Robert Dewar  <dewar@gnat.com>
43051
43052         * usage.adb: Add lines for V switch.
43053
43054         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
43055         (/VALIDITY_CHECKING).
43056
43057 2001-10-11  Ed Schonberg  <schonber@gnat.com>
43058
43059         * sem_type.adb (Add_One_Interp): an operator for a type declared in
43060         an extension of System is known to be visible.
43061
43062 2001-10-11  Ed Schonberg  <schonber@gnat.com>
43063
43064         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
43065         properly. Fixes regression on ACATS C34005G.
43066
43067 2001-10-11  Robert Dewar  <dewar@gnat.com>
43068
43069         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
43070         loop in generic instance, since this is likely not very useful.
43071
43072 2001-10-11  Robert Dewar  <dewar@gnat.com>
43073
43074         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
43075         the error message for high integrity mode.
43076
43077         * rtsfind.adb (RTE): Give message if we try to find an entity that
43078         is not available in high integrity mode.
43079
43080         * rtsfind.ads:
43081         (OK_To_Use_In_HIE_Mode): New array.
43082         (RTE): May return Empty in high integrity mode.
43083
43084         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
43085         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
43086
43087         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
43088         unit if not inlined always and in no runtime mode. Fixes problem
43089         caused by new Rtsfind changes.
43090
43091         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
43092         body is deleted.
43093
43094         * rtsfind.adb (RTE): Make sure we do not try to load unit after
43095         giving message for entity not available in high integrity mode.
43096
43097 2001-10-11  Pascal Obry  <obry@gnat.com>
43098
43099         * impunit.adb: Add GNAT.CRC32.
43100
43101 2001-10-11  Ed Schonberg  <schonber@gnat.com>
43102
43103         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
43104         properly the case where one universal operand in a non-static
43105         exponentiation of a real literal.
43106
43107 2001-10-11  Ed Schonberg  <schonber@gnat.com>
43108
43109         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
43110         clause, return the gobal finalization list, for lack of anthing else.
43111
43112 2001-10-11  Ed Schonberg  <schonber@gnat.com>
43113
43114         * exp_ch7.adb (Make_Transient_Block): if statement is within
43115         exception handler, always use new transient scope to place Clean
43116         procedure.
43117
43118 2001-10-11  Pascal Obry  <obry@gnat.com>
43119
43120         * Makefile.in:
43121         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
43122         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
43123         (GNATLS_RTL_OBJS): add g-crc32.o
43124         (GNATMAKE_RTL_OBJS): add g-crc32.o
43125
43126         * ali-util.adb:
43127         (CRC_Match): new function.
43128         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
43129         instead of the previous simple checksum algorithm.
43130         (Time_Stamp_Mismatch): use CRC_Match for comparison.
43131         (Set_Source_Table): idem.
43132
43133         * ali-util.ads:
43134         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
43135         instead of simple checksum.
43136         (CRC_Match): new function.
43137         (CRC_Error): new constant.
43138
43139         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
43140         a CRC now and not a simple checksum. A CRC uses lower-case hex
43141         letters, fixes ambiguity in parsing.
43142
43143         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
43144         is what this variable will store.
43145
43146         * bcheck.adb: Change reference to chechsum in comments by CRC.
43147         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
43148         rename All_Checksum_Match to All_CRC_Match. Change due to API
43149         renaming since now GNAT does not use a simple checksum but a
43150         CRC using GNAT.CRC32.
43151
43152         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
43153         now and not anymore a simple checksum.
43154
43155         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
43156         places.
43157
43158         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
43159
43160         * scans.adb:
43161         (Restore_Scan_State): rename Checksum to CRC.
43162         (Save_Scan_State): idem.
43163
43164         * scans.ads:
43165         With GNAT.CRC32.
43166         (Checksum): rename to CRC.
43167         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
43168
43169         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
43170         GNAT.CRC32).  Update copyright notice.
43171
43172         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
43173         GNAT.CRC32).  Update copyright notice.
43174
43175         * scn.adb:
43176         (Accumulate_Checksum): removed.
43177         (Update): new procedure. Add a wide-character into the CRC.
43178
43179         * sinput-l.adb:
43180         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
43181         (Load_File): fix initialization of S (change Source_Checksum to
43182         Source_CRC)
43183
43184         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
43185         Source_CRC in S initialization.
43186
43187         * sinput.adb (Source_Checksum): renamed to Source_CRC.
43188
43189         * sinput.ads (Source_Checksum): renamed to Source_CRC.
43190         Update comments for the CRC.
43191
43192         * types.adb (Hex): Use lowercase for the letter part.
43193
43194         * types.ads (Get_Hex_String): Returns the hexadecimal representation
43195         for a word. This is currently used only for CRC. In previous version,
43196         the checksum was using a representation with all letter being
43197         upper-case. With the new implementation (using CRC) we do not remove
43198         the 32th bit of the CRC, so we can have an upper-case starting letter
43199         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
43200         It is ambigous since the CRC was optional and could be followed by
43201         options like EB, EE. So now this routines uses lower-case letter for
43202         the hexadecimal representation. Strange enough only lower case letters
43203         where checked in Scan_ALI (even if this was not a possible case).
43204
43205         * gnatvsn.ads (Library_Version): changed to 3.15a.
43206
43207         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
43208         for the compiler.
43209
43210         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
43211         for the compiler.
43212
43213         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
43214         Add 2001 to copyright notice
43215         (Accumulate_Checksum): Modify to use System.CRC32.
43216
43217         * ali-util.ads: Redo changes of previous revision to continue to use
43218         the word Checksum. Add 2001 to copyright notice.
43219
43220         * ali.adb: Undo some of previous changes, not needed.
43221         Keep the change for lower case letters in the checksum.
43222
43223         * ali.ads: Undo previous change not needed.
43224
43225         * bcheck.adb: Undo most of previous change, not needed.
43226         But do use Checksums_Match for checksum comparison.
43227
43228         * gnatls.adb: Undo most of previous change, not needed.
43229         But do use Checksums_Match for comparing checksums.
43230
43231         * lib-load.adb: Undo previous change, not needed.
43232
43233         * lib-writ.adb: Undo previous change, not needed.
43234
43235         * lib-writ.ads: Document that checksums use lower case,
43236         not upper case letters.
43237
43238         * scans.adb: Undo previous change, not needed
43239
43240         * scans.ads: Undo previous change, not needed.
43241
43242         * scn-nlit.adb: Undo previous changes, not needed.
43243
43244         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
43245
43246         * scn.adb:
43247         (Accumulate_Checksum): Use System.CRC32.
43248         (Initialize_Checksum): New procedure.
43249         Remove other changes of previous revision.
43250
43251         * sinput-p.adb: Undo previous change, not needed.
43252
43253         * sinput.adb: Undo previous change, not needed.
43254
43255         * sinput-l.adb: Undo previous change, not needed.
43256
43257         * sinput.ads: Undo previous change, not needed.  Keep only comment
43258         on new checksum algorithm
43259
43260         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
43261         Also remove a-tags and a-stream from GNAT sources.
43262
43263         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
43264
43265         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
43266
43267 2001-10-11  Geert Bosch  <bosch@gnat.com>
43268
43269         * einfo.h: Regenerate.
43270
43271         * nmake.ads: Regenerate.
43272
43273         * nmake.adb: Regenerate.
43274
43275         * sinfo.h: Regenerate.
43276
43277         * treeprs.adb: Regenerate.
43278
43279 2001-10-10  Geert Bosch  <bosch@gnat.com>
43280
43281         * gnat-style.texi: New file describing coding guidelines for Ada.
43282
43283 2001-10-10  Ed Schonberg  <schonber@gnat.com>
43284
43285         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
43286         is Flag174.
43287
43288 2001-10-10  Geert Bosch  <bosch@gnat.com>
43289
43290         * snames.ads: Add new names for project facility.
43291
43292         * snames.adb: Update to reflect snames.ads changes.
43293
43294         * snames.h: Update to reflect snames.ads changes.
43295
43296 2001-10-10  Vincent Celier  <celier@gnat.com>
43297
43298         * make.adb:
43299         (Add_Switches): reflect the changes for the switches attributes
43300         Default_Switches indexed by the programming language,
43301         Switches indexed by the file name.
43302         (Collect_Arguments_And_Compile): Idem.
43303         Reflect the attribute name changes.
43304
43305         * prj-attr.adb:
43306         (Initialisation_Data): Change the names of some packages and
43307         attributes.
43308         (Initialize): process case insensitive associative arrays.
43309
43310         * prj-attr.ads:
43311         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
43312
43313         * prj-dect.adb:
43314         (Parse_Attribute_Declaration): For case insensitive associative
43315          arrays, set the index string to lower case.
43316
43317         * prj-env.adb:
43318         Reflect the changes of the project attributes.
43319
43320         * prj-nmsc.adb:
43321         Replace Check_Naming_Scheme by Ada_Check and
43322         Language_Independent_Check.
43323
43324         * prj-nmsc.ads:
43325         Replaced Check_Naming_Scheme by 2 procedures:
43326         Ada_Check and Language_Independent_Check.
43327
43328         * prj-proc.adb:
43329         (Process_Declarative_Items): For case-insensitive associative
43330         arrays, set the index string to lower case.
43331         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
43332         Prj.Nmsc.Check_Naming_Scheme.
43333
43334         * prj-tree.adb:
43335         (Case_Insensitive): New function
43336         (Set_Case_Insensitive): New procedure
43337
43338         * prj-tree.ads:
43339         (Case_Insensitive): New function
43340         (Set_Case_Insensitive): New procedure
43341         (Project_Node_Record): New flag Case_Insensitive.
43342
43343         * prj-util.adb:
43344         (Value_Of): new function to get the string value of a single
43345         string variable or attribute.
43346
43347         * prj-util.ads:
43348         (Value_Of): new function to get the string value of a single
43349         string variable or attribute.
43350
43351         * prj.adb:
43352         (Ada_Default_Spec_Suffix): New function
43353         (Ada_Default_Impl_Suffix): New function
43354         Change definitions of several constants to reflect
43355         new components of record types.
43356
43357         * prj.ads:
43358         (Naming_Data): Change several components to reflect new
43359         elements of naming schemes.
43360         (Project_Data): New flags Sources_Present and
43361         Language_Independent_Checked.
43362         (Ada_Default_Spec_Suffix): New function.
43363         (Ada_Default_Impl_Suffix): New function.
43364
43365         * snames.ads:
43366         Modification of predefined names for project manager: added
43367         Implementation, Specification_Exceptions, Implementation_Exceptions,
43368         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
43369         Default_Switches, _Languages, Builder, Cross_Reference,
43370         Finder. Removed Body_Part, Specification_Append, Body_Append,
43371         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
43372         Gnatlink.
43373
43374         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
43375         Add comments.
43376
43377         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
43378         not that it is Nil_Variable_Value.
43379
43380         * prj.ads: Add ??? for uncommented declarations
43381
43382 2001-10-10  Ed Schonberg  <schonber@gnat.com>
43383
43384         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
43385         constant, do not indicate possible modification, so that gigi can
43386         treat it as a bona fide constant.
43387
43388 2001-10-10  Robert Dewar  <dewar@gnat.com>
43389
43390         * sem_prag.adb: Add processing for pragma External.
43391
43392         * snames.ads: Add entry for pragma External.
43393
43394         * par-prag.adb: Add pragma External.
43395
43396         * snames.adb: Updated to match snames.ads.
43397
43398 2001-10-10  Ed Schonberg  <schonber@gnat.com>
43399
43400         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
43401         a dynamic task if the allocator appears in an indexed assignment
43402         or selected component assignment.
43403
43404         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
43405         For a dynamic task in an assignment statement, use target of
43406         assignment to generate meaningful name.
43407
43408 2001-10-10  Ed Schonberg  <schonber@gnat.com>
43409
43410         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
43411         a generic package.
43412
43413         * einfo.ads: Body_Entity is also defined for generic package.
43414         Documentation change only
43415
43416         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
43417         others_choice for a discriminated component initialization,
43418         convert discriminant references into the corresponding discriminals.
43419
43420         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
43421         only if original type is private and expression has to be wrapped
43422         in a conversion.
43423
43424         * checks.adb:
43425         (Apply_Constraint_Check): Do not perform length check
43426         if expression is an aggregate with only an others_choice.
43427         (Length_N_Cond): two references to the same in_parameter
43428         (typically the discriminal in an init_proc) denote the same value.
43429         Two useful optimization uncovered by bugfixes above.
43430
43431 2001-10-10  Robert Dewar  <dewar@gnat.com>
43432
43433         * xeinfo.adb: Change int to char in translation of enumeration types.
43434         This fixes a problem in the C representation of component alignment.
43435         Add 2001 to copyright notice
43436
43437 2001-10-10  Richard Kenner  <kenner@gnat.com>
43438
43439         * decl.c: (validate_size): Do check size of object of integral type
43440         if it is a packed array type.
43441
43442 2001-10-10  Richard Kenner  <kenner@gnat.com>
43443
43444         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
43445         VAR_DECL for constant if not Is_Public but -O0.
43446
43447 2001-10-10  Richard Kenner  <kenner@gnat.com>
43448
43449         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
43450
43451 2001-10-10  Geert Bosch  <bosch@gnat.com>
43452
43453         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
43454         use '/' as switch character, allowing for absolute file names.
43455
43456 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
43457
43458         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
43459         FSF address.
43460
43461 2001-10-08  Geert Bosch  <bosch@gnat.com>
43462
43463         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
43464         Automatically build utilities when files need to be regenerated.
43465
43466 2001-10-08  Geert Bosch  <bosch@gnat.com>
43467
43468         * xsnames.adb: New utility for updating snames.ads and snames.adb
43469
43470 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
43471
43472         * Make-lang.in (ADAFLAGS): Add -W -Wall.
43473         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
43474         (gnat1): Also depend on attribs.o.
43475         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
43476         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
43477         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
43478         (ADAFLAGS): Add -W -Wall.
43479         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
43480         take out CFLAGS.
43481
43482         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
43483         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
43484         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
43485         Use $(ADAC), not $(CC), as compilation command.
43486
43487         (gnattools): Depend directly on tools to build, don't use
43488         recursive make.
43489         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
43490
43491         * einfo.h, sinfo.h: New files (autogenerated).
43492
43493 2001-10-08  Richard Henderson  <rth@redhat.com>
43494
43495         * comperr.adb (Abort_In_Progress): New.
43496         (Compiler_Abort): Use it to prevent recursion.
43497
43498 2001-10-08  Robert Dewar  <dewar@gnat.com>
43499
43500         * atree.adb: Set Error_Posted in Error node, helps error recovery.
43501
43502         * par-endh.adb (Output_End_Expected): We should also not test
43503         Error_Posted on the Error node, since now it is always set.
43504
43505         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
43506         to help error recovery. Part of general work on 9407-004.
43507
43508         * par.adb: Add ??? for misuse of error
43509
43510         * sem_res.adb:
43511         (Resolve): Defend against Error, fixes 9407-003.
43512         (Resolve_Discrete_Subtype_Indication): Defend against Error.
43513
43514         * sinfo.ads (N_Error): Now has Etype field (which will be set
43515         to Any_Type to help error recovery).
43516
43517 2001-10-08  Richard Kenner  <kenner@gnat.com>
43518
43519         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
43520         Consistently set MEM attributes from expression; fixes
43521         bootstrap failure on x86.
43522
43523 2001-10-08  Geert Bosch  <bosch@gnat.com>
43524
43525         * 5oosinte.adb: Add 2001 to copyright notice.
43526
43527 2001-10-08  Geert Bosch  <bosch@gnat.com>
43528
43529         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
43530
43531         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
43532
43533 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
43534
43535         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
43536
43537 2001-10-05  Geert Bosch  <bosch@gnat.com>
43538
43539         * adaint.h: Small formatting fix.
43540
43541 2001-10-04  Geert Bosch  <bosch@gnat.com>
43542
43543         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
43544         Arg is int, not FILE *, in dummy version of functions.
43545
43546         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
43547         Arg is int, not FILE *.
43548
43549 2001-10-04  Geert Bosch  <bosch@gnat.com>
43550
43551         * 3lsoccon.ads: Added file, missed with initial check ins.
43552
43553         * 4lintnam.ads: Fix header format.
43554         Change Linux to GNU/Linux.
43555
43556         * 5iosinte.adb: Change Linux to GNU/Linux.
43557
43558         * 5iosinte.ads: Change Linux to GNU/Linux.
43559
43560         * 5itaprop.adb: Change Linux to GNU/Linux.
43561
43562         * 5itaspri.ads: Change Linux to GNU/Linux.
43563         Update copyright notice.
43564
43565         * 5lintman.adb: Change Linux to GNU/Linux.
43566
43567         * 5lml-tgt.adb: Change Linux to GNU/Linux.
43568
43569         * 5losinte.ads: Change Linux to GNU/Linux.
43570
43571         * 5lsystem.ads: Change Linux to GNU/Linux.
43572
43573         * 5qosinte.adb: Change Linux to GNU/Linux.
43574
43575         * 5qosinte.ads: Change Linux to GNU/Linux.
43576
43577         * 5qparame.ads: Change Linux to GNU/Linux.
43578
43579         * 5qtaprop.adb: Change Linux to GNU/Linux.
43580
43581         * 5qtaspri.ads: Change Linux to GNU/Linux.
43582         Add 2001 to copyright notice.
43583
43584         * 5vintman.ads: Change Linux to GNU/Linux.
43585         Fix header format.  Add 2001 to copyright notice.
43586
43587         * g-soccon.ads: Change Linux to GNU/Linux.
43588
43589         * g-trasym.ads: Change Linux to GNU/Linux.
43590         Add 2001 to copyright notice.
43591
43592         * memtrack.adb: Change Linux to GNU/Linux.
43593
43594         * s-intman.ads: Change Linux to GNU/Linux.
43595         Add 2001 to copyright notice.  Fix header format.
43596
43597         * s-stache.adb: Change Linux to GNU/Linux.
43598
43599         * adaint.c: Change Linux to GNU/Linux.
43600
43601         * cio.c: Change Linux to GNU/Linux.
43602
43603         * cstreams.c: Change Linux to GNU/Linux.
43604
43605         * init.c: Change Linux to GNU/Linux.
43606
43607         * gmem.c: Change Linux to GNU/Linux.
43608
43609         * tracebak.c: Change Linux to GNU/Linux.
43610
43611
43612 2001-10-02  Geert Bosch  <bosch@gnat.com>
43613
43614         * misc.c (insert_default_attributes): Add dummy version.