OSDN Git Service

2008-10-06 Eric Botcazou <ebotcazou@adacore.com>
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2008-10-06  Eric Botcazou  <ebotcazou@adacore.com>
2
3         * gcc-interface/utils.c (can_fold_for_view_convert_p): New predicate.
4         (unchecked_convert): Use it to disable problematic folding with
5         VIEW_CONVERT_EXPR in the general case.  Always disable it for the
6         special VIEW_CONVERT_EXPR built for integral types and cope with
7         its addressability issues by preserving the first conversion.
8
9 2008-10-01  Andreas Schwab  <schwab@suse.de>
10
11         * system-linux-ppc64.ads: New file.
12         * gcc-interface/Makefile.in: Add multilib handling for
13         powerpc-linux.
14
15 2008-09-26  Eric Botcazou  <ebotcazou@adacore.com>
16
17         * decl.c (gnat_to_gnu_entity) <object>: Cap the alignment promotion
18         to that of ptr_mode instead of word_mode.
19
20 2008-09-26  Eric Botcazou  <ebotcazou@adacore.com>
21
22         PR ada/5911
23         * gcc-interface/Makefile.in (SPARC/Solaris): Add multilib support.
24
25 2008-09-25  Samuel Tardieu  <sam@rfc1149.net>
26
27         PR ada/37641
28         * adaint.c (__gnat_set_non_writable): Use FILE_WRITE_EA
29         instead of deprecated FILE_WRITE_PROPERTIES.
30
31 2008-09-22  Olivier Hainque  <hainque@adacore.com>
32
33         * gcc-interface/decl.c (gnat_to_gnu_entity): Even when they
34         are never assigned, volatile entities are not constant for code
35         generation purposes.
36
37 2008-09-21  Laurent Guerby  <laurent@guerby.net>
38
39         PR ada/5911
40         * gcc-interface/Makefile.in: Add multilib handling for x86_64
41         and sparc.
42         * system-linux-sparcv9.ads: New file.
43
44 2008-09-20  Eric Botcazou  <ebotcazou@adacore.com>
45
46         * exp_dbug.ads: Document new convention for the XVZ variable.
47         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Generate
48         debug info if necessary for the type padding the component type.
49         <E_Array_Subtype>: Likewise.
50         (maybe_pad_type): Emit the XVZ variable in units.
51         * gcc-interface/trans.c (Loop_Statement_to_gnu): Fix formatting nits.
52         (Subprogram_Body_to_gnu): Set the source line of the subprogram's node
53         on statements generated to initialize the parameter attributes cache.
54         Set the source line of the end label of the body on the special return
55         statement built for a procedure with copy-in copy-out parameters.
56
57 2008-09-20  Eric Botcazou  <ebotcazou@adacore.com>
58
59         PR ada/37585
60         * gcc-interface/utils.c (create_subprog_decl): Disable inlining for
61         inlined external functions if they contain a nested function not
62         declared inline.
63
64 2008-09-18  Jan Hubicka  <jh@suse.cz>
65
66         * gcc-interface/utils.c (create_subprog_decl): Use DECL_DECLARED_INLINE_P.
67         (end_subprog_body): Do not set DECL_INLINE.
68
69 2008-09-17  Pascal Rigaux  <pixel@mandriva.com>
70
71         PR ada/21327
72         * gnat_ugn.texi: Use proper format in direntry.
73
74 2008-09-15  Eric Botcazou  <ebotcazou@adacore.com>
75
76         * gcc-interface/trans.c (gigi): Declare the name of the compilation
77         unit as the first global name.
78
79 2008-09-14  Jan Hubicka  <jh@suse.cz>
80
81         * gcc-interface/Make-lang.in (gnat1): Add CFLAGS.
82
83 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84
85         * a-crbtgk.adb, a-direct.ads, a-tasatt.adb, ali.ads,
86         bindgen.adb, checks.adb, einfo.ads, exp_aggr.adb, exp_ch11.adb,
87         exp_ch3.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb,
88         exp_dbug.ads, exp_disp.adb, exp_dist.adb, exp_pakd.adb,
89         exp_util.adb, g-alveop.ads, g-comlin.adb, g-comlin.ads,
90         g-diopit.adb, g-socket.ads, gcc-interface/decl.c,
91         gcc-interface/gigi.h, gcc-interface/trans.c,
92         lib-load.adb, lib-xref.ads, make.adb, mlib-prj.adb, nlists.ads,
93         opt.ads, par-ch10.adb, par-ch5.adb, par.adb, s-os_lib.ads,
94         s-oscons-tmplt.c, s-parint.ads, s-regpat.ads, s-shasto.ads,
95         s-stausa.ads, s-taprop-vms.adb, sem.adb, sem_ch10.adb,
96         sem_ch11.adb, sem_ch12.adb, sem_ch13.adb, sem_ch3.adb,
97         sem_ch3.ads, sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
98         sem_elim.adb, sem_prag.adb, sem_util.adb, sem_util.ads,
99         sem_warn.adb, sinfo.ads, styleg.adb, vms_data.ads: Fix typos in
100         comments.
101         * gnathtml.pl: Fix typos.
102
103 2008-09-10  Joel Sherrill <joel.sherrill@oarcorp.com>
104
105         * gcc-interface/Makefile.in: Switch RTEMS to s-interr-hwint.adb.
106         * s-osinte-rtems.ads: Add shared hardware interrupt adapter
107         layer. RTEMS binds to OS provided adapter routines so there are
108         no modifications to s-osinte-rtems.adb.
109
110 2008-09-09  Arnaud Charlet  <charlet@adacore.com>
111             Joel Sherrill  <joel.sherrill@oarcorp.com>
112
113        * gcc-interface/Makefile.in: Switch VxWorks to s-interr-hwint.adb.
114
115        * s-interr-vxworks.adb: Renamed to s-interr-hwint.adb
116
117        * s-interr-hwint.adb: New file.
118
119         * s-osinte-vxworks.ads, s-osinte-vxworks.adb: Add new functions
120         needed by s-interr-hwint.adb.
121
122         * s-osinte-vxworks-kernel.adb: New file.
123
124 2008-09-05  Joel Sherrill <joel.sherrill@oarcorp.com>
125
126         * s-stchop-rtems.adb: Add file missed in early commit.  Already
127         referenced in gcc-interface/Makefile.in.
128
129 2008-08-30  Thomas Quinot  <quinot@adacore.com>
130
131         * gcc-interface/Make-lang.in: Allow s-oscons.{o,ali} to
132         be built even without a separate libada directory.
133
134 2008-08-22  Arnaud Charlet  <charlet@adacore.com>
135
136         * lib-xref.ads: Fix typo in subprogram reference definition.
137
138 2008-08-22  Robert Dewar  <dewar@adacore.com>
139
140         * s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-strops.adb: Minor code fix
141         to avoid warning.
142
143         * g-trasym.adb: Ditto
144
145         * s-utf_32.adb (Get_Category): Fix obvious typo
146
147         * s-wwdcha.adb: Minor code reorganization
148         Remove dead code
149
150 2008-08-22  Robert Dewar  <dewar@adacore.com>
151
152         * checks.adb (Determine_Range): Deal with values that might be invalid
153
154         * opt.adb, opt.ads (Assume_No_Invalid_Values[_Config]): New
155         configuration switches.
156
157         * par-prag.adb: Dummy entry for pragma Assume_No_Invalid_Values
158
159         * sem_prag.adb: Implement pragma Assume_No_Default_Values
160
161         * snames.adb, snames.ads, snames.h:
162         Add entries for pragma Assume_No_Invalid_Values
163
164         * switch-c.adb: Add processing for -gnatB switch
165
166         * usage.adb: Add entry for flag -gnatB (no bad invalid values)
167
168 2008-08-22  Javier Miranda  <miranda@adacore.com>
169
170         * exp_ch3.adb (Build_Init_Statements): Transfer to the body of the
171         init procedure all the expanded code associated with the spec of
172         task types and protected types.
173
174 2008-08-22  Gary Dismukes  <dismukes@adacore.com>
175
176         * exp_aggr.adb (Static_Array_Aggregate): Call Analyze_And_Resolve on the
177         component expression copies rather than directly setting Etype and
178         Is_Static_Expression.
179
180 2008-08-22  Gary Dismukes  <dismukes@adacore.com>
181
182         * sem_util.adb (Has_Preelaborable_Initialization): Revise checking of
183         private types to allow for types derived from a private type with
184         preelaborable initialization, but return False for a private extension
185         (unless it has the pragma).
186
187 2008-08-22  Robert Dewar  <dewar@adacore.com>
188
189         * opt.ads: Minor code reorganization (put entries in alpha order)
190
191 2008-08-22  Pascal Obry  <obry@adacore.com>
192
193         * initialize.c, adaint.c: Use Lock_Task and Unlock_Task for non-blocking
194         spawn.
195
196 2008-08-22  Geert Bosch  <bosch@adacore.com>
197
198         * gcc-interface/trans.c: Define FP_ARITH_MAY_WIDEN
199         (convert_with_check): Only use longest_float_type if FP_ARITH_MAY_WIDEN is 0
200
201 2008-08-22  Doug Rupp  <rupp@adacore.com>
202
203         * bindgen.adb [VMS] (Gen_Adainit_Ada, Gen_Adainit_C): Import and call
204         __gnat_set_features.
205
206         * init.c
207         (__gnat_set_features): New function.
208         (__gnat_features_set): New tracking variable.
209         (__gl_no_malloc_64): New feature global variable
210
211 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
212
213         * sem_ch8.adb (Use_One_Type): Do not emit warning message about redundant
214         use_type_clause in an instance.
215
216 2008-08-22  Bob Duff  <duff@adacore.com>
217
218         * exp_ch6.ads: Remove pragma Precondition, since it breaks some builds.
219
220 2008-08-22  Robert Dewar  <dewar@adacore.com>
221
222         * exp_ch6.adb: Minor reformatting
223
224         * exp_ch7.adb: Minor reformatting
225
226         * exp_ch7.ads: Put routines in proper alpha order
227
228         * exp_dist.adb: Minor reformatting
229
230 2008-08-22  Vincent Celier  <celier@adacore.com>
231
232         * prj.ads: Minor comment update
233
234 2008-08-22  Robert Dewar  <dewar@adacore.com>
235
236         * sem_ch5.adb (One_Bound): Fix latent bug involving secondary stack
237
238 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
239
240         * exp_tss.adb:
241         (Base_Init_Proc): For a protected subtype, use the base type of the
242         corresponding record to locate the propoer initialization procedure.
243
244 2008-08-22  Robert Dewar  <dewar@adacore.com>
245
246         * checks.adb:
247         (In_Subrange_Of): New calling sequence
248         (Determine_Range): Prepare for new processing using base type
249
250         * exp_ch4.adb:
251         (Compile_Time_Compare): Use new calling sequence
252
253         * exp_ch5.adb:
254         (Compile_Time_Compare): Use new calling sequence
255
256         * sem_eval.adb:
257         (Compile_Time_Compare): New calling sequence allows dealing with
258         invalid values.
259         (In_Subrange_Of): Ditto
260
261         * sem_eval.ads:
262         (Compile_Time_Compare): New calling sequence allows dealing with
263         invalid values.
264         (In_Subrange_Of): Ditto
265
266 2008-08-22  Pascal Obry  <obry@adacore.com>
267
268         * adaint.c: Fix possible race condition on win32_wait().
269
270 2008-08-22  Bob Duff  <duff@adacore.com>
271
272         * exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb, freeze.adb,
273         exp_ch4.adb, exp_ch6.ads, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
274         exp_intr.adb, exp_ch3.adb: Rename:
275         Exp_Ch7.Controlled_Type => Needs_Finalization
276         Exp_Ch7.CW_Or_Controlled_Type => CW_Or_Has_Controlled_Part
277         Exp_Ch5.Expand_N_Extended_Return_Statement.Controlled_Type =>
278          Has_Controlled_Parts
279         (Has_Some_Controlled_Component): Fix bug in array case.
280
281 2008-08-22  Robert Dewar  <dewar@adacore.com>
282
283         * sem_ch8.adb: Minor reformatting
284
285 2008-08-22  Kevin Pouget  <pouget@adacore.com>
286
287         * s-shasto.ads, s-shasto.adb: Move Shared_Var_ROpen, Shared_Var_WOpen and
288         Shared_Var_Close procedure specifications from package spec to package body.
289
290         * rtsfind.ads: Remove RE_Shared_Var_Close, RE_Shared_Var_ROpen,
291         RE_Shared_Var_WOpen entries.
292
293         * exp_dist.adb: Update RE_Any_Content_Ptr to RE_Any_Container_Ptr in
294         Build_To_Any_Call, Build_TypeCode_Call and Build_From_Any_Call procedures.
295
296 2008-08-22  Eric Botcazou  <ebotcazou@adacore.com>
297
298         * init.c: adjust EH support code on Alpha/Tru64 as well.
299
300         * raise-gcc.c: Add back a couple of comments.
301
302 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
303
304         * exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is
305         involved and the return type is class-wide, use the type of the expression
306         for the generated access type. Suppress useless discriminant checks on the
307         allocator.
308
309 2008-08-22  Bob Duff  <duff@adacore.com>
310
311         * exp_ch7.adb: Minor comment fix
312
313         * exp_ch6.ads: Minor comment fix
314
315 2008-08-22  Thomas Quinot  <quinot@adacore.com>
316
317         * sem_ch8.adb: Minor reformatting
318         Minor code reorganization (introduce subprogram to factor duplicated
319         code).
320
321 2008-08-22  Sergey Rybin  <rybin@adacore.com>
322
323         * gnat_ugn.texi: Change the description of gnatcheck default rule
324         settings.
325
326 2008-08-22  Eric Botcazou  <ebotcazou@adacore.com>
327
328         * init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX,
329         Solaris, FreeBSD, VxWorks and PowerPC/Linux.  For x86{-64}/Linux,
330         do not adjust the PC anymore.
331         (__gnat_error_handler): Do not call __gnat_adjust_context_for_raise
332         on AIX, HP-UX, Solaris, FreeBSD and VxWorks.
333
334         * raise-gcc.c (get_call_site_action_for): Use _Unwind_GetIPInfo
335         instead of _Unwind_GetIP.
336
337 2008-08-22  Gary Dismukes  <dismukes@adacore.com>
338
339         * exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate
340         with a range is transformed into a positional aggregate, any copied
341         component literals should be marked Is_Static_Expression.
342
343         * sem_eval.adb (Compile_Time_Known_Value): Don't treat null literals as
344         not being known at at compile time when Configurable_Run_Time_Mode is
345         true.
346
347 2008-08-22  Robert Dewar  <dewar@adacore.com>
348
349         * exp_attr.adb:
350         (Expand_N_Attribute_Reference): No validity checking on OUT parameter of
351         Read or Input attribute.
352
353 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
354
355         * sem_ch8.adb (Use_One_Type): when checking which of two use_type
356         clauses in related units is redundant, if one of the units is a package
357         instantiation, use its instance_spec to determine which unit is the
358         ancestor of the other.
359
360 2008-08-22  Javier Miranda  <miranda@adacore.com>
361
362         * exp_attr.adb (Expand_N_Attribute_Reference): In case of access
363         attributes add missing support to handle designated types that come
364         from the limited view.
365
366         * exp_disp.adb (Expand_Interface_Conversion): Remove wrong assertion.
367
368 2008-08-22  Sergey Rybin  <rybin@adacore.com>
369
370         * vms_data.ads: Add entry for new gnatcheck -mNNN option
371
372         * gnat_ugn.texi: Add description for gnatcheck option '-m'
373
374 2008-08-22  Sergey Rybin  <rybin@adacore.com>
375
376         * gnat_ugn.texi: Update the gnatcheck subsection for metric rules
377         acoording to the latest changes in the metric rule interface
378
379 2008-08-22  Vincent Celier  <celier@adacore.com>
380
381         * make.adb (Check.File_Not_A_Source_Of): New Boolean function
382         (Check): Check if the file names registered in the ALI file for the
383         spec, the body and each of the subunits are the ones expected.
384
385 2008-08-22  Robert Dewar  <dewar@adacore.com>
386
387         * g-catiio.adb: Code cleanup.
388
389 2008-08-20  Vincent Celier  <celier@adacore.com>
390
391         * make.adb (Gnatmake): Remove extra space in version line
392
393         * ali.adb:
394         (Scan_ALI): Use Name_Find, not Name_Enter to get the name of a subunit,
395         as the name may already have been entered in the table by the Project
396         Manager.
397
398 2008-08-20  Jose Ruiz  <ruiz@adacore.com>
399
400         * errno.c (__get_errno, __set_errno for MaRTE): Transform then into
401         weak symbols so we use the version provided by MaRTE when available.
402
403 2008-08-20  Emmanuel Briot  <briot@adacore.com>
404
405         * g-catiio.ads, g-catiio.adb:
406         (Value): Avoid an unnecessary system call to Clock in most cases.
407         This call is only needed when only the time is provided in the string,
408         and ignored in all other cases. This is more efficient.
409
410 2008-08-20  Eric Botcazou  <ebotcazou@adacore.com>
411
412         * raise-gcc.c: Fix formatting nits.
413
414 2008-08-20  Robert Dewar  <dewar@adacore.com>
415
416         * sem_ch13.adb:
417         (Adjust_Record_For_Reverse_Bit_Order): Do not access First_Bit for
418         non-existing component clause.
419
420         * exp_ch5.adb: Minor reformatting
421
422         * g-comlin.adb: Minor reformatting
423
424         * make.adb: Minor reformatting
425
426         * prj-proc.adb: Minor reformatting
427
428         * stylesw.ads: Minor reformatting
429
430 2008-08-20  Vincent Celier  <celier@adacore.com>
431
432         * make.adb (Gnatmake_Switch_Found): New Boolean global variable
433         (Switch_May_Be_Passed_To_The_Compiler): New Boolean global variable
434         (Add_Switches): New Boolean parameter Unknown_Switches_To_The_Compiler
435          defaulted to True. Fail when Unknown_Switches_To_The_Compiler is False
436         and a switch is not recognized by gnatmake.
437         (Gnatmake): Implement new scheme for gnatmake switches and global
438         compilation switches.
439         (Switches_Of): Try successively Switches (<file name>),
440         Switches ("Ada"), Switches (others) and Default_Switches ("Ada").
441
442 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
443
444         * styleg-c.ads, styleg-c.adb (Missing_Overriding): new procedure to
445         implement style check that overriding operations are explicitly marked
446         at such.
447
448         * style.ads (Missing_Overriding): new procedure that provides interface
449         to previous one.
450
451         * stylesw.ads, stylesw.adb: New style switch -gnatyO, to enable check
452         that the declaration or body of overriding operations carries an
453         explicit overriding indicator.
454
455         * sem_ch8.adb
456         (Analyze_Subprogram_Renaming): if operation is overriding, check whether
457         explicit indicator should be present.
458
459         * sem_ch6.adb (Verify_Overriding_Indicator,
460         Check_Overriding_Indicator): If operation is overriding, check whether
461         declaration and/or body of subprogram should be present
462
463 2008-08-20  Vincent Celier  <celier@adacore.com>
464
465         * prj-nmsc.adb (Check_Naming_Schemes): Accept source file names for
466         gprbuild when casing is MixedCase, whatever the casing of the letters
467         in the file name.
468
469 2008-08-20  Gary Dismukes  <dismukes@adacore.com>
470
471         * exp_ch3.adb (Build_Array_Init_Proc): Clarify comment related to
472         creating dummy init proc.
473         (Requires_Init_Proc): Return False in the case No_Default_Initialization
474         is in force and the type does not have associated default
475         initialization. Move test of Is_Public (with tests of restrictions
476         No_Initialize_Scalars and No_Default_Initialization) to end, past tests
477         for default initialization.
478
479 2008-08-20  Jerome Lambourg  <lambourg@adacore.com>
480
481         * g-comlin.adb (For_Each_Simple_Switch): Take care of switches not part
482         of any alias or prefix but having attached parameters (as \"-O2\").
483
484 2008-08-20  Robert Dewar  <dewar@adacore.com>
485
486         * s-fileio.adb: Minor reformatting
487
488 2008-08-20  Thomas Quinot  <quinot@adacore.com>
489
490         * exp_strm.adb (Build_Elementary_Input_Call,
491         Build_Elementary_Write_Call): Fix incorrect condition in circuitry that
492         selects the stream attribute routines for long float types.
493
494 2008-08-20  Vincent Celier  <celier@adacore.com>
495
496         * prj-proc.adb (Process_Declarative_Items): Add Location for Array_Data
497
498         * prj.ads (Array_Data): Add a component Location
499
500 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
501
502         * sem_prag.adb:
503         (Analyze_Pragma, case Obsolescent): Add entity information on the pragma
504         argument for ASIS and navigation use.
505
506 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
507
508         * einfo.ads: Add comment.
509
510 2008-08-20  Bob Duff  <duff@adacore.com>
511
512         * sem_eval.ads: Minor comment fix.
513
514 2008-08-20  Bob Duff  <duff@adacore.com>
515
516         * exp_ch4.adb (Expand_N_And_Then, Expand_N_Or_Else): Improve constant
517         folding. We were folding things like "False and then ...", but not
518         "X and then ..." where X is a constant whose value is known at compile
519         time.
520
521 2008-08-20  Hristian Kirtchev  <kirtchev@adacore.com>
522
523         * exp_ch5.adb (Controlled_Type): New routine.
524         (Expand_N_Extended_Return_Statement): When generating a move of the
525         final list in extended return statements, check the type of the
526         function and in the case of double expanded return statements, the type
527         of the returned object.
528         (Expand_Simple_Function_Return): Perform an interface conversion when
529         the type of the returned object is an interface and the context is an
530         extended return statement.
531
532 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
533
534         * sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type
535         and the full view is visible, set flag on full view as well.
536
537 2008-08-20  Thomas Quinot  <quinot@adacore.com>
538
539         * g-comlin.adb: Minor reformatting
540         Minor code reorganization.
541
542         * freeze.adb: Minor reformatting
543
544 2008-08-20  Vincent Celier  <celier@adacore.com>
545
546         * prj-nmsc.adb (Check_File): An excluded Ada source file may be a
547         source of another project.
548
549 2008-08-20  Pascal Obry  <obry@adacore.com>
550
551         * s-os_lib.ads: Minor reformatting.
552
553 2008-08-20  Arnaud Charlet  <charlet@adacore.com>
554
555         * gnatvsn.ads: Minor reformatting.
556
557 2008-08-20  Arnaud Charlet  <charlet@adacore.com>
558
559         * a-crbtgk.adb, repinfo.adb, g-traceb.ads, repinfo.ads,
560         system-linux-s390x.ads, s-fatflt.ads, s-parame-ae653.ads, g-spipat.adb,
561         g-spipat.ads, g-tasloc.adb, g-debpoo.adb, g-except.ads, g-debpoo.ads,
562         mdll-utl.adb, g-string.adb, g-soliop-solaris.ads, par-sync.adb,
563         exp_ch6.ads, a-cihama.ads, g-curexc.ads, system-linux-sh4.ads,
564         g-utf_32.adb, g-hesorg.adb, s-proinf-irix-athread.ads, s-parint.adb,
565         s-parint.ads, exp_ch7.ads, system-linux-alpha.ads, g-dirope.adb,
566         sinfo-cn.adb, par-labl.adb, a-ciorse.adb, g-calend.adb,
567         s-parame-vms-alpha.ads, nlists.h, exp_imgv.adb, exp_fixd.ads,
568         g-calend.ads, gnatcmd.ads, g-table.adb, s-memory-mingw.adb,
569         g-alveop.ads, g-memdum.ads, g-altive.ads, initialize.c, g-regpat.adb,
570         g-busorg.ads, g-regpat.ads, g-encstr.ads, g-regexp.adb, g-regexp.ads,
571         live.ads, g-dyntab.adb, prj-nmsc.ads, par-ch12.adb, 9drpc.adb,
572         g-alvevi.ads, s-memory.adb, math_lib.adb, s-parame.ads, s-memory.ads,
573         s-regexp.adb, a-exexda.adb, i-cstrea-vms.adb, a-exexpr.adb,
574         g-soliop-mingw.ads, s-imgrea.adb, namet.adb, system-vms.ads,
575         s-inmaop-dummy.adb, s-finroo.ads, a-ngcefu.adb, s-hibaen.ads,
576         g-soliop.ads, s-auxdec.adb, g-locfil.ads, gnatxref.adb, memroot.adb,
577         osint-b.ads, memroot.ads, s-parame-hpux.ads, errutil.adb,
578         system-linux-s390.ads, par-util.adb, osint-c.ads, exp_pakd.ads,
579         i-pacdec.ads, par-endh.adb, mlib-tgt.ads, prj-strt.ads,
580         s-osprim-vms.adb, s-proinf.ads, output.ads, g-moreex.ads,
581         a-finali.ads, s-fatlfl.ads, namet.h, mdll.ads, g-dynhta.ads,
582         s-imgenu.ads, par-tchk.adb, g-excact.ads, memtrack.adb, s-fatgen.adb,
583         a-exexpr-gcc.adb, g-arrspl.adb, par-ch4.adb, g-cgideb.adb, freeze.ads,
584         g-altcon.adb, s-fatllf.ads, gnatfind.adb, s-osinte-lynxos-3.adb,
585         a-exextr.adb, g-htable.ads, a-calfor.adb, s-imgcha.adb, argv.c,
586         a-chahan.ads, g-hesora.adb, system-vms_64.ads, par-ch5.adb, g-md5.adb,
587         lib-xref.ads, g-md5.ads, g-casuti.ads, s-fatsfl.ads, exp_dbug.ads,
588         s-htable.ads, a-ngcoar.adb, s-arit64.ads, a-ngelfu.adb, a-filico.ads,
589         par-ch6.adb, s-inmaop.ads, s-parame-vxworks.ads, s-casuti.ads,
590         a-numaux-darwin.adb, a-cohama.ads, system-linux-sparc.ads, g-os_lib.adb,
591         system-vms-ia64.ads, s-parame-vms-restrict.ads, a-clrefi.ads,
592         s-parame-vms-ia64.ads, a-strfix.adb, a-coorse.adb, a-comlin.ads,
593         a-chtgke.adb, s-imgint.adb, g-expect.ads, exp_ch4.ads, s-finimp.adb,
594         mingw32.h, g-heasor.adb, g-alleve.adb, a-ngrear.adb, s-mastop-irix.adb,
595         s-poosiz.adb, link.c: Fix copyright notice.
596
597 2008-08-20  Arnaud Charlet  <charlet@adacore.com>
598
599         * g-comlin.ads: Update comments.
600
601 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
602
603         * sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag.
604
605 2008-08-20  Gary Dismukes  <dismukes@adacore.com>
606
607         * exp_ch11.adb:
608         (Expand_Exception_Handlers): Call Make_Exception_Handler instead of
609         Make_Implicit_Exception_Handler when rewriting an exception handler with
610         a choice parameter, and pass the handler's Sloc instead of that of the
611         handled sequence of statements. Make_Implicit_Exception_Handler sets the
612         Sloc to No_Location (unless debugging generated code), which we don't
613         want for the case of a user handler.
614
615 2008-08-20  Robert Dewar  <dewar@adacore.com>
616
617         * freeze.adb (Freeze_Record_Type): Improve msg for non-contiguous field
618
619         * sem_ch13.adb:
620         (Adjust_Record_For_Reverse_Bit_Order): Messages about layout are
621         now labeled as info msgs, not warnings.
622
623         * tbuild.ads: Clarify documentation of Make_Implicit_Exception_Handler
624
625         * usage.adb: Minor change to avoid overlong line for -gnatwz/Z
626
627         * a-textio.adb: Remove redundant test.
628
629         * a-witeio.adb: Minor code reorganization
630         Remove redundant test found working on another issue
631
632         * a-ztexio.adb: Minor code reorganization
633         Remove redundant test found working on another issue
634
635 2008-08-20  Thomas Quinot  <quinot@adacore.com>
636
637         * s-fileio.adb (Open) Use C helper function to determine whether a
638         given errno value corresponds to a "file not found" error.
639
640         * sysdep.c (__gnat_is_file_not_found_error): New C helper function.
641
642 2008-08-20  Jose Ruiz  <ruiz@adacore.com>
643
644         * errno.c (__get_errno for MaRTE): Use the MaRTE function pthread_errno
645         to get access to the per-task errno variable.
646         (__set_errno for MaRTE): Do not redefine this function here since it is
647         already defined in MaRTE.
648
649 2008-08-20  Tristan Gingold  <gingold@adacore.com>
650
651         * gnat_ugn.texi: Gcov is not supported on static library on AIX.
652
653 2008-08-20  Robert Dewar  <dewar@adacore.com>
654
655         * freeze.adb: Minor reformatting
656
657         * g-comlin.adb: Minor reformatting
658
659         * g-socket.adb: Minor reformatting
660
661         * g-socthi-mingw.adb: Minor reformatting
662
663         * g-stheme.adb: Minor reformatting
664
665 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
666
667         * sem_aggr.adb, sem_type.adb, exp_ch9.ads, einfo.ads,
668         exp_ch6.adb, exp_aggr.adb (Valid_Ancestor): Resolve
669         confusion between partial and full views of an ancestor of the context
670         type when the parent is a private extension declared in a parent unit,
671         and full views are available for the context type.
672
673 2008-08-18  Samuel Tardieu  <sam@rfc1149.net>
674             Robert Dewar  <dewar@adacore.com>
675
676         PR ada/30827
677         * bindgen.adb (Gen_Output_File_Ada): Zero-terminate the
678         version string.
679         Move comment in the right place.
680         * g-comver.adb (Version): Look for a zero-termination in
681         addition to a closing parenthesis.
682
683 2008-08-18  Samuel Tardieu  <sam@rfc1149.net>
684
685         * exp_ch13.adb, exp_disp.adb, sem_cat.adb, sem_ch10.adb,
686         * sem_ch12.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
687         * sem_prag.adb, sem_util.adb, sem_warn.adb: Use
688         Is_Package_Or_Generic_Package instead of hand-crafted tests.
689
690 2008-08-18  Samuel Tardieu  <sam@rfc1149.net>
691
692         PR ada/15808
693         * sem_ch6.adb (Check_Private_Overriding): Check for generic packages
694         as well.
695
696 2008-08-17  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
697
698         * adaint.c (_gnat_set_close_on_exec) [_WIN32]: Implement.
699
700 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
701
702         * gcc-interface/trans.c (call_to_gnu): Use the Sloc of the call
703         for back-copy statements in lieu of that of the actual.
704
705 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
706
707         PR ada/20548
708         * gcc-interface/decl.c (gnat_to_gnu_entity): Use DECL_SIZE_UNIT in the
709         setjmp test consistently.  Adjust for new behavior of flag_stack_check.
710         * gcc-interface/utils2.c (build_call_alloc_dealloc): Remove redundant
711         test of flag_stack_check.  Adjust for new behavior of flag_stack_check.
712
713 2008-08-13  Samuel Tardieu  <sam@rfc1149.net>
714
715         PR ada/36777
716         * sem_util.ads, sem_util.adb (Is_Protected_Self_Reference): New.
717         * sem_attr.adb (Check_Type): The current instance of a protected
718         object is not a type name.
719         (Analyze_Access_Attribute): Accept instances of protected objects.
720         (Analyze_Attribute, Attribute_Address clause): Ditto.
721         * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite
722         the prefix as being the current instance if needed.
723
724 2008-08-12  Danny Smith  <danyssmith@users.sourceforge.net>
725
726         * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) [WINDOWS]:
727         Remove duplicate s-win32.o. Add s-winext.o.
728
729 2008-08-12  Danny Smith  <danyssmith@users.sourceforge.net>
730
731         * g-stsifd-sockets.adb (Create): Replace Constants.SOCK_STREAM
732         with SOSC.SOCK__STREAM.
733         * g-socthi-mingw.adb (C_Select) Replace Constants.MSG_OOB with
734         SOSC.MSG_OOB.
735
736 2008-08-11  Joel Sherrill  <joel.sherrill@oarcorp.com>
737
738         * s-oscons-tmplt.c: RTEMS defines AF_INET6 but does support it.
739         * gsocket.h, socket.c: Update to support RTEMS.
740         * gcc-interface/Make-lang.in: Include CFLAGS_FOR_TARGET when cross.
741
742 2008-08-10  Samuel Tardieu  <sam@rfc1149.net>
743             Robert Dewar <dewar@adacore.com>
744
745         * exp_ch4.adb (Expand_N_Op_Expon): Force evaluation of
746         left argument even when right argument is 0.
747         (Expand_N_Op_Mod): Ditto when right argument is 1.
748         (Expand_N_Op_Multiply): Ditto when any argument is 0.
749         (Expand_N_Op_Rem): Ditto when right argument is 1.
750
751 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
752
753         * gcc-interface/misc.c (gnat_handle_option): Replace set_Wunused
754         by warn_unused.
755
756 2008-08-08  Ed Schonberg  <schonberg@adacore.com>
757
758         * freeze.adb (Generate_Prim_Op_References): New procedure, abstracted
759         from Freeze_Entity. Used to generate cross-reference information for
760         types declared in generic packages.
761
762 2008-08-08  Thomas Quinot  <quinot@adacore.com>
763
764         * gcc-interface/Makefile.in: Reintroduce g-soccon.ads as a
765         compatibility shim.
766
767 2008-08-08  Thomas Quinot  <quinot@adacore.com>
768
769         * gsocket.h:
770         On Windows, include <errno.h> and redefine only selected errno values
771         from their <winsock2.h> definitions.
772
773         * s-osinte-freebsd.ads: Minor reformatting
774
775         * s-osinte-hpux.ads, s-osinte-irix.ads: Minor reformatting
776
777         * g-soccon.ads: New file.
778
779         * g-stheme.adb, g-socthi-vms.adb, g-socthi-vxworks.adb,
780         g-socthi-mingw.adb, g-sttsne-vxworks.adb, g-socthi.adb,
781         g-stsifd-sockets.adb, g-socket.adb, g-socket.ads,
782         g-sothco.adb, g-sothco.ads: Add back GNAT.Sockets.Constants as a child
783         unit, to allow building software that depends on this internal unit
784         with both older and newer compilers.
785
786 2008-08-08  Robert Dewar  <dewar@adacore.com>
787
788         * s-strxdr.adb: Minor reformatting
789
790 2008-08-08  Bob Duff  <duff@adacore.com>
791
792         * gnat_ugn.texi: The "Run-Time Checks" section said "arithmetic overflow
793         checking for integer operations (including division by zero)", which
794         is wrong -- divide by zero is not part of overflow checking.
795         Also added misc clarification about what check-suppression means.
796
797         * gnat_rm.texi: Clarify the meaning of pragma Suppress.
798
799 2008-08-08  Jerome Lambourg  <lambourg@adacore.com>
800
801         * g-comlin.adb (Add_Switch): Handle addition of switches at the
802         begining of the command line.
803         (Append, Add): Renaming of Append to Add as this now allows addition
804         at the begining of the list.
805
806         * g-comlin.ads (Add_Switch): Handle addition of switches at the
807         begining of the command line.
808
809 2008-08-08  Thomas Quinot  <quinot@adacore.com>
810
811         * g-sercom.ads:
812         (Name): Document application scope (only legacy PC serial ports on
813         Linux and Windows).
814
815 2008-08-08  Thomas Quinot  <quinot@adacore.com>
816
817         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Revert
818         previous change, not needed after all.
819
820 2008-08-08  Ed Schonberg  <schonberg@adacore.com>
821
822         * exp_ch4.adb (Expand_Allocator_Expression): add check if null
823         exclusion indicator is present
824
825 2008-08-08  Robert Dewar  <dewar@adacore.com>
826
827         * g-comlin.adb: Minor code reorganization
828         Minor reformatting
829
830         * g-comlin.ads: Minor reformatting
831
832         * s-fileio.adb: Minor reformatting
833
834         * sem_attr.adb: Minor code reorganization (use Nkind_In)
835         Minor reformatting
836
837 2008-08-06  Samuel Tardieu  <sam@rfc1149.net>
838
839         * gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing
840         with s-oscons-tmplt.i.
841
842 2008-08-06  Samuel Tardieu  <sam@rfc1149.net>
843
844         * gcc-interface/Make-lang.in (OSCONS_CPPFLAGS): Remove.
845
846 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
847
848         * sem_ch3.adb (Analyze_Component_Declaration): Protect against misuse
849         of incomplete type.
850
851         * sem_ch8.adb (Analyze_Object_Renaming): Diagnose properly a renaming
852         of a formal parameter of an incomplete type. Improve error message for
853         other improper uses of incomplete types.
854
855 2008-08-06  Robert Dewar  <dewar@adacore.com>
856
857         * gnat_ugn.texi: Clarify -gnato documentation
858
859 2008-08-06  Thomas Quinot  <quinot@adacore.com>
860
861         * gcc-interface/Makefile.in,
862         g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb,
863         g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads,
864         g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads,
865         g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads,
866         g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads,
867         g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads,
868         g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads,
869         g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads,
870         g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads:
871         Remove GNAT.Sockets.Constants. This internal package is replaced by
872         System.OS_Constants.
873
874 2008-08-06  Thomas Quinot  <quinot@adacore.com>
875
876         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
877         Remove obsolete targets referencing gen-soccon
878         When generating s-oscons.ads, use a file name that includes the
879         THREAD_KIND, to ensure that the (potentially different) version from a
880         previous build with a different threads flavour does not get reused.
881
882 2008-08-06  Thomas Quinot  <quinot@adacore.com>
883
884         * sem_res.adb: Minor reformatting
885
886         * s-fileio.adb (Open): When file open operation fails, raise Name_Error
887         only when the operating system reports a non-existing file or directory
888         (ENOENT), otherwise raise Name_Error.
889
890         * exp_ch11.adb: Minor reformatting
891
892 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
893
894         * sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
895         incomplete, add the access_to_subprogram type to the list of private
896         dependents only if the incomplete type will be completed in the current
897         scope.
898         (Build_Discriminant_Constraints): If the type of the discriminant is
899         access_to_variable, reject a constraint that is access_to_constant.
900
901 2008-08-06  Thomas Quinot  <quinot@adacore.com>
902
903         * g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb,
904         g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads,
905         g-sttsne-dummy.ads: New files.
906
907         * gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources
908         with pragma Unimplemented_Unit for sockets packages on Nucleus.
909
910 2008-08-06  Pascal Obry  <obry@adacore.com>
911
912         * adaint.c: Another fix for ACL support on Windows.
913
914 2008-08-06  Javier Miranda  <miranda@adacore.com>
915
916         * exp_disp (Expand_Interface_Actuals): Adds missing support for
917         expansion of calls to subprograms using selected components.
918
919 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
920
921         * sem_res.adb (Resolve_Call): Use base type to determine whether a
922         dereference is needed because a subtype of an access_to_subprogram is
923         simply an access-subtype
924
925 2008-08-06  Jerome Lambourg  <lambourg@adacore.com>
926
927         * g-comlin.adb (Set_Command_Line): Now that aliases can contain
928         parameters, always specify the expected separator.
929
930 2008-08-06  Thomas Quinot  <quinot@adacore.com>
931
932         * xnmake.adb: Use new XUtil package for platform independent text
933         output.
934
935 2008-08-06  Vincent Celier  <celier@adacore.com>
936
937         * gnat_ugn.texi: Document compiler switch -gnateG
938
939 2008-08-06  Quentin Ochem  <ochem@adacore.com>
940
941         * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark
942         in the case of an empty pattern size.
943         (Compute_Result): Do not do any computation in the case of an empty
944         pattern size.
945         (Report_Result): Fixed computation of the overflow guard.
946
947 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
948
949         * g-awk.adb (Finalize): Do not use directly objects of the type in the
950         finalization routine to prevent elaboration order anomalies in new
951         finalization scheme.
952
953 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
954
955         * sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
956         declaration for the same type.
957
958 2008-08-06  Thomas Quinot  <quinot@adacore.com>
959
960         * sem.adb: Minor rewording (comment)
961
962 2008-08-06  Jerome Lambourg  <lambourg@adacore.com>
963
964         * g-comlin.adb (Define_Switch, Get_Switches): New.
965         (Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
966         ungrouping switches.
967         (For_Each_Simple_Switch): Allow more control over parameters handling.
968         This generic method now allows ungrouping of switches with parameters
969         and switches with more than one letter after the prefix.
970         (Set_Command_Line): Take care of switches that are prefixed with a
971         switch handling parameters without delimiter (-gnatya and -gnaty3 for
972         example).
973         (Add_Switch, Remove_Switch): Handle parameters possibly present inside
974         a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
975         the operation.
976         (Start, Alias_Switches, Group_Switches): Take care of parameters
977         possibly present inside a group.
978
979         * g-comlin.ads (Define_Switch): New method used to define a list of
980         expected switches, that are necessary for correctly ungrouping switches
981         with more that one character after the prefix.
982         (Get_Switches): Method that builds a getopt string from the list of
983         switches as set previously by Define_Switch.
984         (Add_Switch, Remove_Switch): New versions of the methods, reporting the
985         status of the operation. Also allow the removal of switches with
986         parameters only.
987         (Command_Line_Configuration_Record): Maintain a list of expected
988         switches.
989
990 2008-08-06  Doug Rupp  <rupp@adacore.com>
991
992         * gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if
993         TARGET_MALLOC64 clear.
994
995         * gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc
996         if TARGET_MALLOC64 clear.
997
998         * gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c
999         (TARGET_MALLC64): New macro. Default to clear.
1000
1001 2008-08-06  Doug Rupp  <rupp@adacore.com>
1002
1003         * gcc-interface/utils2.c (snames.h) Include
1004         (TARGET_ABI_OPEN_VMS): Initialize.
1005         (build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap
1006         for Convention C.
1007
1008 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
1009
1010         * sem_ch3.adb (Process_Discriminants): diagnose redundant or improper
1011         null exclusion in a discriminant declaration
1012
1013         * sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion
1014         indicators when type is not an access type.
1015
1016         * sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion
1017         indicators when type is not an access type.
1018
1019 2008-08-06  Javier Miranda  <miranda@adacore.com>
1020
1021         * exp_disp (Expand_Interface_Conversion): Freeze the entity associated
1022         with the target interface before expanding the code of the interface
1023         conversion.
1024
1025 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
1026
1027         * freeze.adb:
1028         (Freeze_Entity): A deferred constant does not violate the restriction
1029         No_Default_Initialization,
1030
1031         * sem_ch3.adb (Process_Subtype): An allocator is a valid construct that
1032         can carry a null exclusion indicator, and on which an error may be
1033         posted if the indicator is redundant.
1034
1035         * sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion
1036         does not apply to a subtype mark that already excludes null.
1037
1038         * sem_ch12.adb (Formal_Object_Declaration): Verify that a null
1039         exclusion does not apply to a subtype mark that already excludes null.
1040
1041 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1042
1043         * Makefile.rtl: Compile s-oscons.ads as part of the runtime library.
1044
1045 2008-08-05  Doug Rupp  <rupp@adacore.com>
1046
1047         * vms_data.ads: Translation for /POINTER_SIZE qualifier.
1048
1049 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1050
1051         * gsocket.h: Make this file includable in a Nucleus environment, which
1052         does not support sockets.
1053
1054         * socket.c: Remove Nucleus-specific hack.
1055
1056 2008-08-05  Pascal Obry  <obry@adacore.com>
1057
1058         * adaint.c: Remove support for readable attribute on vxworks and nucleus
1059
1060 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
1061
1062         * sem_attr.adb:
1063         (Analyze_Attribute, case 'Result): handle properly the case where some
1064         operand of the expression in a post-condition generates a transient
1065         block.
1066
1067         * sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to
1068         right-hand side when it is an anonymous access_to_subprogram, to force
1069         static accessibility check when needed.
1070
1071 2008-08-05  Sergey Rybin  <rybin@adacore.com>
1072
1073         * gnat_ugn.texi: Changing the description of the gnatcheck metrics
1074         rule according to the change in the rule option.
1075         Add documentation for -gnatw.b/-gnatw.B
1076
1077 2008-08-05  Robert Dewar  <dewar@adacore.com>
1078
1079         * ug_words: Add entries for -gnatw.b/-gnatw.B
1080
1081         * vms_data.ads: Add entries for -gnatw.b/-gnatw.B
1082
1083 2008-08-05  Vincent Celier  <celier@adacore.com>
1084
1085         * a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
1086         (File).
1087
1088         * a-ztdeio.adb: Ditto.
1089
1090 2008-08-05  Pascal Obry  <obry@adacore.com>
1091
1092         * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
1093         readable attribute.
1094
1095 2008-08-05  Vincent Celier  <celier@adacore.com>
1096
1097         * s-wchwts.adb:
1098         (Wide_String_To_String): Returns a String with the same 'First as its
1099         parameter S.
1100         (Wide_Wide_String_To_String): Ditto
1101
1102         * s-wchwts.ads:
1103         (Wide_String_To_String): Document that the lowest index of the returned
1104         String is equal to S'First.
1105
1106 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1107
1108         * xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.
1109
1110         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
1111         s-oscons.ads
1112
1113 2008-08-05  Robert Dewar  <dewar@adacore.com>
1114
1115         * opt.ads (Warn_On_Biased_Representation): New flag
1116
1117         * sem_ch13.adb:
1118         (Analyze_Attribute_Definition_Clause): Issue warning when biased
1119         representation is required.
1120         (Minimum_Size): Don't allow biasing if enum rep clause case
1121
1122         * sem_warn.adb:
1123         (Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
1124         (Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
1125
1126         * usage.adb: Add lines for -gnatw.b/B switches
1127
1128 2008-08-05  Pascal Obry  <obry@adacore.com>
1129
1130         * a-coinve.adb: Reorder the code to avoid uninitialized warning.
1131
1132         * adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
1133
1134 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1135
1136         * socket.c: Minor reformatting.
1137
1138 2008-08-05  Robert Dewar  <dewar@adacore.com>
1139
1140         * sem_ch3.adb: Minor reformatting
1141
1142         * prj-nmsc.adb: Minor reformatting
1143
1144 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
1145
1146         * sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
1147         visibility check on the component type if the simple test fails.
1148
1149 2008-08-05  Jose Ruiz  <ruiz@adacore.com>
1150
1151         * init.c (__gnat_install_handler for linux): If we are building the
1152         Xenomai run time then we need to do two additional things: avoid
1153         memory swapping and transform the Linux environment task into a native
1154         Xenomai task.
1155
1156         * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
1157         time): Use interface to Xenomai native skin and avoid linux-specific
1158         way of setting CPU affinity.
1159         (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.
1160
1161 2008-08-05  Bob Duff  <duff@adacore.com>
1162
1163         * checks.ads: Minor comment fix
1164
1165 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1166
1167         * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
1168         g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
1169         CS8.
1170
1171 2008-08-05  Robert Dewar  <dewar@adacore.com>
1172
1173         * mlib.adb: Minor code reorganization
1174         Minor reformatting
1175
1176         * make.adb: Minor reformatting
1177
1178         * prj-attr.ads: Minor reformatting
1179
1180         * s-os_lib.adb: Minor reformatting
1181
1182         * s-fileio.adb: Minor code reorganization
1183         Minor reformatting
1184
1185         * prj.ads: Minor reformatting
1186
1187 2008-08-05  Bob Duff  <duff@adacore.com>
1188
1189         * sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
1190         unresolved initial value of "null", because it causes implicitly
1191         generated "=" operators to be ambiguous, and because this type should
1192         not be passed to gigi.
1193
1194 2008-08-05  Vincent Celier  <celier@adacore.com>
1195
1196         * mlib.adb: Update comments.
1197
1198         * make.adb (Switches_Of): Check for Switches (others), before checking
1199         for Default_Switches ("Ada").
1200         (Gnatmake): Use Builder'Switches (others) in preference to
1201         Builder'Default_Switches ("Ada") if there are several mains.
1202
1203         * prj-attr-pm.adb:
1204         (Add_Attribute): Add component Others_Allowed in Attribute_Record
1205         aggregate.
1206
1207         * prj-attr.adb:
1208         Add markers to indicates that attributes Switches allow others as index
1209         (Others_Allowed_For): New Boolean function, returning True for
1210         attributes with the mark.
1211         (Initialize): Recognize optional letter 'O' as the marker for
1212         associative array attributes where others is allowed as the index.
1213
1214         * prj-attr.ads:
1215         (Others_Allowed_For): New Boolean function
1216         (Attribute_Record): New Boolean component Others_Allowed
1217
1218         * prj-dect.adb:
1219         (Parse_Attribute_Declaration): For associative array attribute where
1220         others is allowed as the index, allow others as an index.
1221
1222         * prj-nmsc.adb:
1223         (Process_Binder): Skip associative array attributes with index others
1224         (Process_Compiler): Ditto
1225
1226         * prj-util.adb:
1227         (Value_Of (Index, In_Array)): Make no attempt to put in lower case when
1228         index is All_Other_Names.
1229
1230         * prj.ads:
1231         (All_Other_Names): New constant
1232
1233         * prj-proc.adb:
1234         (Process_Declarative_Items): Skip associative array attribute when index
1235         is reserved word "others".
1236
1237 2008-08-05  Vasiliy Fofanov  <fofanov@adacore.com>
1238
1239         * gen-oscons.c: Adapt for VMS where termios.h is not available.
1240
1241 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1242
1243         * a-rttiev.adb: Minor reformatting (comments)
1244
1245         * gen-soccon.c: Rename to gen-oscons.c
1246
1247         * gen-oscons.c: New file. Now generate System.OS_Constants instead of
1248         GNAT.Sockets.Constants.
1249         Add new constants for GNAT.Serial_Communications and System.File_IO.
1250
1251 2008-08-05  Javier Miranda  <miranda@adacore.com>
1252
1253         * sem_util.adb (Collect_Interfaces_Info): Minor reformating.
1254         * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
1255         implementation of this routine has been simplified.
1256
1257 2008-08-05  Pascal Obry  <obry@adacore.com>
1258
1259         * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
1260         Set_Read_Only Win32 implementation.
1261
1262 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1263
1264         * exp_strm.adb: Minor reformatting (comments)
1265
1266         * sem_ch12.adb: Minor reformatting.
1267
1268 2008-08-05  Robert Dewar  <dewar@adacore.com>
1269
1270         * sem_ch3.adb: Minor reformatting
1271
1272         * checks.adb: Minor reformatting
1273
1274 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1275
1276         * tbuild.ads (New_External_Name): Update spec to reflect relaxed
1277         restriction on Prefix.
1278
1279 2008-08-05  Jerome Lambourg  <lambourg@adacore.com>
1280
1281         * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
1282         methods needed to handle switch sections when building a command line.
1283         (Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
1284         Current_Section): New public methods or methods modified to handle
1285         building command lines with sections.
1286         (Set_Command_Line): Take into account sections when analysing a switch
1287         string.
1288         (Start): Sort the switches by sections before iterating the command line
1289         elements.
1290
1291         * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
1292         Is_New_Section, Current_Section): New methods or methods modified to
1293         handle building command lines with sections.
1294
1295 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
1296
1297         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
1298         discriminants, indicate that the corresponding object declaration has
1299         no initialization, to prevent spurious warnings when the access type is
1300         null-excluding.
1301
1302 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
1303
1304         * sem_res.adb (Resolve_Call): If this is a call to the predefined
1305         Abort_Task, warn if the call appears within a protected operation.
1306
1307 2008-08-04  Robert Dewar  <dewar@adacore.com>
1308
1309         * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
1310
1311 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1312
1313         * sem_ch3.adb:
1314         (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
1315         anonymous access to protected subprogram that is the return type of the
1316         specification of a subprogram body.
1317
1318         * sem_ch6.adb:
1319         (Analyze_Subprogram_Body): if the return type is an anonymous access to
1320         subprogram, freeze it now to prevent access anomalies in the back-end.
1321
1322         * exp_ch9.adb: Minor code cleanup.
1323         Make sure that new declarations are inserted into the tree before
1324         analysis (from code reading).
1325
1326 2008-08-04  Robert Dewar  <dewar@adacore.com>
1327
1328         * exp_ch5.adb:
1329         (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
1330         at point of return.
1331
1332 2008-08-04  Thomas Quinot  <quinot@adacore.com>
1333
1334         * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
1335
1336 2008-08-04  Vasiliy Fofanov  <fofanov@adacore.com>
1337
1338         * g-soccon-mingw.ads: Fix value for MSG_WAITALL
1339
1340 2008-08-04  Javier Miranda  <miranda@adacore.com>
1341
1342         * sem_prag.adb (Process_Convention): Add missing support for
1343          N_Private_Extension_Declaration nodes.
1344
1345 2008-08-04  Robert Dewar  <dewar@adacore.com>
1346
1347         * exp_ch4.adb: Minor reformatting
1348
1349 2008-08-04  Pascal Obry  <obry@adacore.com>
1350
1351         * adaint.h: Add missing prototype.
1352
1353         * adaint.c: Refine support for Windows file attributes.
1354
1355 2008-08-04  Robert Dewar  <dewar@adacore.com>
1356
1357         * sem_res.adb:
1358         (Valid_Conversion): Catch case of designated types having different
1359         sizes, even though they statically match.
1360
1361 2008-08-04  Javier Miranda  <miranda@adacore.com>
1362
1363         * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
1364         added in previous patch to handle access to subprograms.
1365
1366 2008-08-04  Robert Dewar  <dewar@adacore.com>
1367
1368         * freeze.adb:
1369         (Freeze_Entity): Only check No_Default_Initialization restriction for
1370         constructs that come from source
1371
1372 2008-08-04  Thomas Quinot  <quinot@adacore.com>
1373
1374         * exp_ch6.adb: Minor comment fix.
1375
1376         * sem_ch4.adb: Minor reformatting.
1377
1378 2008-08-04  Robert Dewar  <dewar@adacore.com>
1379
1380         * sem_res.adb: (Large_Storage_Type): Improve previous change.
1381
1382 2008-08-04  Pascal Obry  <obry@adacore.com>
1383
1384         * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
1385         file attributes.
1386
1387 2008-08-04  Javier Miranda  <miranda@adacore.com>
1388
1389         * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
1390         for N_Formal_Object_Declaration nodes. Adding kludge required by
1391         First_Formal to provide its functionality with access to functions.
1392         (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
1393         for anonymous access types returned by functions.
1394
1395         * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
1396         conversion of null-excluding access types (required only once to force
1397         the generation of the required runtime check).
1398
1399         * sem_type.adb (Covers): minor reformating
1400
1401         * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
1402         with internally generated nodes. Avoid generating the error inside init
1403         procs.
1404
1405         * sem_res.adb (Resolve_Membership_Test): Minor reformating.
1406         (Resolve_Null): Generate the null-excluding check in case of assignment
1407         to a null-excluding object.
1408         (Valid_Conversion): Add missing support for anonymous access to
1409         subprograms.
1410
1411         * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
1412         anonymous access types whose designated type is an itype. This case
1413         occurs with anonymous access to protected subprograms types.
1414         (Analyze_Return_Type):  Add missing support for anonymous access to
1415         protected subprogram.
1416
1417         * sem_eval.adb (Subtypes_Statically_Match): In case of access to
1418         subprograms addition of missing check on matching convention. Required
1419         to properly handle access to protected subprogram types.
1420
1421         * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
1422         null excluding access types.
1423
1424 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1425
1426         * sem_ch12.adb: Add comments
1427
1428         * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
1429         access type and the allocator is not initialized, warn rather than
1430         reporting an error.
1431
1432 2008-08-04  Robert Dewar  <dewar@adacore.com>
1433
1434         * exp_ch4.adb: Minor reformatting
1435
1436         * exp_dist.adb: Minor reformatting
1437
1438         * g-comlin.adb: Minor reformatting
1439
1440 2008-08-04  Gary Dismukes  <dismukes@adacore.com>
1441
1442         * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
1443         target to the type of the aggregate in the case where the target object
1444         is class-wide.
1445
1446         * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
1447         result type is class-wide and inherently limited, and the expression
1448         has a specific type, create a return object of the specific type, for
1449         more efficient handling of returns of build-in-place aggregates (avoids
1450         conversions of the class-wide return object to the specific type on
1451         component assignments).
1452
1453         * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
1454         about a type mismatch for a class-wide function with a return object
1455         having a specific type when the object declaration doesn't come from
1456         source. Such an object can result from the expansion of a simple return.
1457
1458 2008-08-04  Vasiliy Fofanov  <fofanov@adacore.com>
1459
1460         * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
1461
1462         * gcc-interface/Makefile.in: Use 64bit-specific system files when
1463         compiling for 64bit windows.
1464
1465 2008-08-04  Jerome Lambourg  <lambourg@adacore.com>
1466
1467         * g-comlin.adb (Group_Switches): Preserve the switch order when
1468         grouping and allow switch grouping of switches with more than one
1469         character extension (e.g. gnatw.x).
1470         (Args_From_Expanded): Remove this now obsolete method.
1471
1472 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1473
1474         * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
1475         chain at once, to ensure that type is properly decorated for back-end,
1476         when allocator appears within a loop.
1477
1478 2008-08-04  Kevin Pouget  <pouget@adacore.com>
1479
1480         * snames.h, snames.adb, snames.ads:
1481         Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
1482
1483         * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
1484         Build_To_Any_Call and Build_TypeCode_Call procedures.
1485
1486         * exp_attr.adb, sem_attr.adb: Add corresponding cases.
1487
1488         * rtsfind.ads: Add corresponding names.
1489
1490         * tbuild.adb: Update prefix restrictions to allow '_' character.
1491
1492 2008-08-04  Doug Rupp  <rupp@adacore.com>
1493
1494         * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
1495         * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
1496         * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
1497         use it.  Calculate pointer range overflow using 64bit types.
1498
1499 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1500
1501         * sem_ch3.adb (Access_Definition): A formal object declaration is a
1502         legal context for an anonymous access to subprogram.
1503
1504         * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
1505         indirect call, report success to the caller to include possible
1506         interpretation.
1507
1508         * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
1509         check when the type
1510         of the extended return is an anonymous access_to_subprogram type.
1511
1512         * sem_res.adb:
1513         (Resolve_Call): Insert a dereference if the type of the subprogram is an
1514         access_to_subprogram and the context requires its return type, and a
1515         dereference has not been introduced previously.
1516
1517 2008-08-04  Arnaud Charlet  <charlet@adacore.com>
1518
1519         * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
1520         gnatcheck support in GPS.
1521
1522 2008-08-04  Vincent Celier  <celier@adacore.com>
1523
1524         * mlib.adb (Create_Sym_Links): Create relative symbolic links when
1525         requested
1526
1527 2008-08-04  Vincent Celier  <celier@adacore.com>
1528
1529         * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
1530         variable, but don't check the resulting value as it has no impact on
1531         the processing.
1532
1533         * opt.ads:
1534         (Generate_Processed_File): New Boolean flag, set to True in the compiler
1535         when switch -gnateG is used.
1536
1537         * prep.adb:
1538         (Preprocess): new Boolean out parameter Source_Modified. Set it to True
1539         when the source is modified by the preprocessor and there is no
1540         preprocessing errors.
1541
1542         * prep.ads (Preprocess): new Boolean out parameter Source_Modified
1543
1544         * sinput-l.adb:
1545         (Load_File): Output the result of preprocessing if the source text was
1546         modified.
1547
1548         * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
1549
1550         * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
1551
1552         * ug_words: Add VMS equivalent for -gnateG
1553
1554         * vms_data.ads:
1555         Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
1556
1557 2008-08-04  Doug Rupp  <rupp@adacore.com>
1558
1559         * gcc-interface/utils2.c:
1560         (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
1561         in 32bit descriptor.
1562
1563 2008-08-04  Robert Dewar  <dewar@adacore.com>
1564
1565         * par-ch10.adb: Minor reformatting
1566
1567         * i-cobol.adb: Minor reformatting.
1568
1569 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1570
1571         * sem_ch3.adb (Access_Definition): Create an itype reference for an
1572         anonymous access return type of a regular function that is not a
1573         compilation unit.
1574
1575 2008-08-04  Vincent Celier  <celier@adacore.com>
1576
1577         * prj-attr.adb: New Builder attribute Global_Compilation_Switches
1578
1579         * snames.adb: New standard name Global_Compilation_Switches
1580
1581         * snames.ads: New standard name Global_Compilation_Switches
1582
1583         * make.adb: Correct spelling error in comment
1584
1585 2008-08-04  Arnaud Charlet  <charlet@adacore.com>
1586
1587         * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
1588         target.
1589
1590 2008-08-04  Thomas Quinot  <quinot@adacore.com>
1591
1592         * sem_ch10.adb: Minor comment fix.
1593
1594 2008-08-04  Robert Dewar  <dewar@adacore.com>
1595
1596         * restrict.adb: Improved messages for restriction warnings
1597
1598         * restrict.ads: Improved messages for restriction messages
1599
1600         * s-rident.ads (Profile_Name): Add No_Profile
1601
1602 2008-08-04  Robert Dewar  <dewar@adacore.com>
1603
1604         * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
1605
1606 2008-08-04  Robert Dewar  <dewar@adacore.com>
1607
1608         * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
1609
1610 2008-08-04  Vincent Celier  <celier@adacore.com>
1611
1612         * prj-proc.adb:
1613         (Copy_Package_Declarations): When inheriting package Naming from a
1614         project being extended, do not inherit source exception names.
1615
1616 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1617
1618         * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
1619         list of declaration to find previous subprogram, do not go to the
1620         original node of a generic unit.
1621
1622 2008-08-02  Eric Botcazou  <ebotcazou@adacore.com>
1623
1624         * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
1625         New case.  Convert BOOLEAN_TYPE operation to the default integer type.
1626
1627 2008-08-01  Eric Botcazou  <ebotcazou@adacore.com>
1628
1629         * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
1630         * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
1631         and adjust for above renaming.
1632         * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
1633         gnu_expr_alt_type parameter.  Convert the expression to it instead
1634         of changing its type in place.
1635         (build_function_stub): Adjust call to above function.
1636
1637 2008-08-01  Eric Botcazou  <ebotcazou@adacore.com>
1638
1639         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
1640         code.  Do not get full definition of deferred constants with address
1641         clause for a use.  Do not ignore deferred constant definitions with
1642         address clause.  Ignore constant definitions already marked with the
1643         error node.
1644         <object>: Remove obsolete comment.  For a deferred constant with
1645         address clause, get the initializer from the full view.
1646         * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
1647         Rework and remove obsolete comment.
1648         <N_Object_Declaration>: For a deferred constant with address clause,
1649         mark the full view with the error node.
1650         * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
1651         formatting nits.
1652
1653 2008-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
1654
1655         * rtsfind.ads: Add block IO versions of stream routines for Strings.
1656
1657         * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
1658         sem_prag.adb, snames.adb, snames.ads, snames.h,
1659         par-prag.adb: Undo previous stream related changes.
1660
1661         * s-rident.ads: Add new restriction No_Stream_Optimizations.
1662
1663         * s-ststop.ads, s-ststop.adb: Comment reformatting.
1664         Define enumeration type to designate different IO mechanisms.
1665         Enchance generic package Stream_Ops_Internal to include an
1666         implementation of Input and Output.
1667
1668         * exp_attr.adb (Find_Stream_Subprogram): If restriction
1669         No_Stream_Optimization is active, choose the default byte IO
1670         implementations of stream attributes for Strings.
1671         Otherwise use the corresponding block IO version.
1672
1673 2008-08-01  Olivier Hainque  <hainque@adacore.com>
1674
1675         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
1676         turn Ada Pure into GCC const, now implicitely implying nothrow as well.
1677
1678 2008-08-01  Robert Dewar  <dewar@adacore.com>
1679
1680         * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
1681         convert plain identifier into defining identifier.
1682
1683 2008-08-01  Robert Dewar  <dewar@adacore.com>
1684
1685         * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
1686         warnings
1687
1688         * lib-xref.adb: Add error defense.
1689
1690 2008-08-01  Bob Duff  <duff@adacore.com>
1691
1692         * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
1693
1694 2008-08-01  Gary Dismukes  <dismukes@adacore.com>
1695
1696         * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
1697         correct accessibility levels. In the "when others" case, retrieve the
1698         access level of the Etype of Prev rather than Prev_Orig, because the
1699         original exression has not always been analyzed.
1700
1701 2008-08-01  Robert Dewar  <dewar@adacore.com>
1702
1703         * prj-nmsc.adb: Minor reformatting
1704
1705         * sem_ch4.adb: Minor reformatting
1706         Minor code reorganization
1707
1708         * prj.ads: Minor reformatting
1709
1710         * s-os_lib.adb: Minor reformatting
1711
1712         * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
1713         half encodings
1714
1715         * scans.ads: Minor reformatting.
1716
1717         * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
1718         (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
1719
1720         * sem_res.adb:
1721         (Resolve_Call): Check violation of No_Specific_Termination_Handlers
1722
1723         * sem_ch12.adb: Minor comment reformatting
1724
1725         * par-ch3.adb (P_Type_Declaration): Properly handle missing type
1726         keyword
1727
1728 2008-08-01  Robert Dewar  <dewar@adacore.com>
1729
1730         * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
1731         generating code
1732
1733 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
1734
1735         * checks.adb (Apply_Float_Conversion_Check): If the expression to be
1736         converted is a real literal and the target type has static bounds,
1737         perform the conversion exactly to prevent floating-point anomalies on
1738         some targets.
1739
1740 2008-08-01  Vincent Celier  <celier@adacore.com>
1741
1742         * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
1743
1744         * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
1745
1746         * prj.adb (Object_Exist_For): Use Object_Generated, not
1747         Objects_Generated that is removed and was never modified anyway.
1748
1749         * prj.ads:
1750         (Path_Syntax_Kind): New enumeration type
1751         (Language_Config): New component Path_Syntax, defaulted to Host.
1752         Components PIC_Option and Objects_Generated removed, as they are not
1753         used.
1754
1755         * snames.adb: New standard name Path_Syntax
1756
1757         * snames.ads: New standard name Path_Syntax
1758
1759 2008-08-01  Vincent Celier  <celier@adacore.com>
1760
1761         * mlib-utl.adb:
1762         (Adalib_Path): New variable to store the path of the adalib directory
1763         when procedure Specify_Adalib_Dir is called.
1764         (Lib_Directory): If Adalib_Path is not null, return its value
1765         (Specify_Adalib_Dir): New procedure
1766
1767         * mlib-utl.ads (Specify_Adalib_Dir): New procedure
1768
1769 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
1770
1771         * sem_prag.adb:
1772         (Check_Precondition_Postcondition): If not generating code, analyze the
1773         expression in a postcondition that appears in a subprogram body, so that
1774         it is properly decorated for ASIS use.
1775
1776 2008-08-01  Gary Dismukes  <dismukes@adacore.com>
1777
1778         * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
1779         Orig_Prev to Prev in the case where the actual is N_Function_Call or
1780         N_Identifier. This was interfering with other cases that are rewritten
1781         as N_Identifier, such as allocators, resulting in passing of the wrong
1782         accessibility level, and based on testing this code is apparently no
1783         longer needed at all.
1784
1785 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
1786
1787         * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
1788         procedure call whose prefix
1789         is a parameterless function call that returns an access_to_procedure.
1790
1791 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
1792
1793         * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
1794         for RTX. Adding a suffix that is incremented at each iteration.
1795
1796 2008-08-01  Robert Dewar  <dewar@adacore.com>
1797
1798         * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
1799         Raise_Exception
1800
1801 2008-08-01  Jerome Lambourg  <lambourg@adacore.com>
1802
1803         * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
1804         paths, which are authorized by Windows but can lead to errors when used
1805         elsewhere.
1806
1807 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
1808
1809         * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
1810         a pending instantiation for the body of a subprogram that is to be
1811         inlined.
1812
1813         * sem_ch12.adb:
1814         (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
1815
1816         * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
1817         create a pending instance for its body, so that calls to the subprogram
1818         can be inlined by the back-end.
1819
1820 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
1821
1822         * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
1823         rts-rtx-w32).
1824
1825 2008-08-01  Robert Dewar  <dewar@adacore.com>
1826
1827         * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
1828
1829 2008-08-01  Doug Rupp  <rupp@adacore.com>
1830
1831         * gnat_rm.texi: Document new mechanism Short_Descriptor.
1832
1833         * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
1834         mechanism values.
1835
1836         * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
1837         mechanism and Short_Descriptor mechanism values.
1838
1839         * snames.adb (preset_names): Add short_descriptor entry.
1840
1841         * snames.ads: Add Name_Short_Descriptor.
1842
1843         * types.h: Add new By_Short_Descriptor mechanism values.
1844
1845         * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
1846         mechanism and Short_Descriptor mechanism values.
1847
1848         * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
1849         values.
1850         (Descriptor_Codes): Modify range for new mechanism values.
1851
1852         * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
1853         mechanism values.
1854
1855         * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
1856         (gnat_to_gnu_param): Handle By_Short_Descriptor.
1857
1858         * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
1859         (build_vms_descriptor32): New prototype.
1860         (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
1861
1862         * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
1863         argument in call fill_vms_descriptor.
1864
1865         * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
1866         build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
1867         (build_vms_descriptor): Renamed from build_vms_descriptor64.
1868         (convert_vms_descriptor32): New function.
1869         (convert_vms_descriptor64): New function.
1870         (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
1871         descriptors.
1872
1873         * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
1874         no longer needed.
1875
1876 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
1877
1878         * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
1879         nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
1880         name.
1881
1882 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
1883
1884         * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
1885         current directory so only fully qualified names are allowed.
1886
1887 2008-08-01  Robert Dewar  <dewar@adacore.com>
1888
1889         * gnat_ugn.texi:
1890         Minor editing, remove uncomfortable use of semicolon
1891
1892         * s-ststop.adb: Add some ??? comments
1893
1894         * sem_ch10.adb: Minor reformatting
1895
1896         * snames.ads:
1897         Minor comment fixes, some pragmas were not properly
1898         categorized in the comments, documentation change only
1899
1900         * xref_lib.adb: Minor reformatting
1901
1902         * sinput.adb: Minor reformatting
1903
1904         * gnatchop.adb: Minor reformatting
1905
1906         * sem_util.ads: Minor reformatting.
1907
1908         * opt.ads: Minor documentation fix
1909
1910         * scng.adb: Minor reformatting
1911
1912         * prj-part.adb: Update comments
1913
1914 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
1915
1916         * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
1917         tagged synchronized type, use corresponding record type.
1918
1919 2008-08-01  Doug Rupp  <rupp@adacore.com>
1920
1921         * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
1922         dummy transfer address for debugging.
1923
1924         * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
1925
1926         * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
1927
1928 2008-07-31  Eric Botcazou  <ebotcazou@adacore.com>
1929
1930         * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
1931         * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
1932
1933 2008-07-31  Pascal Obry  <obry@adacore.com>
1934
1935         * prj-nmsc.adb: Keep Object and Exec directory casing.
1936
1937 2008-07-31  Jose Ruiz  <ruiz@adacore.com>
1938
1939         * system-rtx-rtss.ads
1940         Change the default stack size. It is important to set the commit part.
1941
1942         * s-taprop-rtx.adb
1943         (Initialize): Get the clock resolution.
1944         (RT_Resolution): Return the clock resolution that is indicated by the
1945         system.
1946
1947         * s-parame-vxworks.adb
1948         Document that this body is used for RTX in RTSS (kernel) mode.
1949
1950         * gcc-interface/Makefile.in
1951         (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
1952         s-parame-vxworks.adb body in order to have reasonable stack sizes in
1953         RTX RTSS kernel mode. Virtual memory is not used in that case, so we
1954         cannot ask for too big values.
1955
1956 2008-07-31  Robert Dewar  <dewar@adacore.com>
1957
1958         * exp_aggr.adb: Minor reformatting
1959
1960         * makeutl.adb: Minor reformatting
1961
1962         * prj-env.adb: Minor reformatting
1963
1964 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
1965
1966         * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
1967         tagged type is completed by a concurrent type.
1968
1969 2008-07-31  Gary Dismukes  <dismukes@adacore.com>
1970
1971         * sem_aggr.adb:
1972         (Resolve_Record_Aggregate): Bypass error that a type without
1973         components must have a "null record" aggregate when compiling for Ada
1974         2005, since it's legal to give an aggregate of form (others => <>)
1975         for such a type.
1976
1977 2008-07-31  Javier Miranda  <miranda@adacore.com>
1978
1979         * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
1980         handle synchronized types. Required to handle well the object.operation
1981         notation applied to synchronized types.
1982
1983 2008-07-31  Quentin Ochem  <ochem@adacore.com>
1984
1985         * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
1986         anymore - just used internally.
1987         Added handling of very small tasks - when the theoretical size is
1988         already full at the point of the call.
1989         (Report_Result): Fixed result computation, Stack_Used_When_Filling does
1990         not need to be added to the result.
1991
1992 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
1993
1994         * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
1995         corresponding spec is a primitive wrapper. Update comment.
1996
1997 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
1998
1999         * bindgen.adb Comment reformatting. Update the list of run-time globals.
2000         (Gen_Adainit_Ada): Add the declaration, import and value set for
2001         configuration flag Canonical_Streams.
2002         (Gen_Adainit_C): Add the declaration and initial value of external
2003         symbol __gl_canonical_streams.
2004
2005         * init.c: Update the list of global values computed by the binder.
2006
2007         * opt.ads: Add flag Canonical_Streams.
2008
2009         * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
2010         semantically handled pragmas.
2011
2012         * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
2013         (Analyze_Pragma): Add case for pragma Canonical_Streams.
2014
2015         * snames.adb: Add character value for name Canonical_Streams.
2016
2017         * snames.ads:
2018         Add Name_Canonical_Streams to the list of configuration pragmas.
2019         Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
2020
2021         * snames.h: Add a definition for Pragma_Canonical_Streams.
2022
2023         * s-ststop.adb:
2024         Add a flag and import to seize the value of external symbol
2025         __gl_canonical_streams. Update comment and initial value of constant
2026         Use_Block_IO.
2027
2028         * gnat_rm.texi: Add section of pragma Canonical_Streams.
2029
2030         * gnat_ugn.texi:
2031         Add pragma Canonical_Streams to the list of configuration pragmas.
2032
2033 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
2034
2035         * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
2036         has the form A.B.C and B is a unit renaming, analyze its compilation
2037         unit and add a with_clause on A.b to the context.
2038
2039 2008-07-31  Vincent Celier  <celier@adacore.com>
2040
2041         * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
2042         return the empty string, instead of raising Constraint_Error.
2043
2044 2008-07-31  Gary Dismukes  <dismukes@adacore.com>
2045
2046         * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
2047
2048         * checks.adb (Apply_Accessibility_Check): Insert the check on
2049         Insert_Node.
2050
2051         * exp_attr.adb:
2052         (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
2053         to new parameter Insert_Node on call to Apply_Accessibility_Check.
2054         Necessary to distinguish the insertion node because the dereferenced
2055         formal may come from a rename, but the check must be inserted in
2056         front of the attribute.
2057
2058         * exp_ch4.adb:
2059         (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
2060         call to Apply_Accessibility_Check.
2061         (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
2062         on call to Apply_Accessibility_Check.
2063         Minor reformatting
2064
2065 2008-07-31  Javier Miranda  <miranda@adacore.com>
2066
2067         * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
2068         types when the candidate type is a synchronized type.
2069
2070         * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
2071         types, and complete management of synchronized types adding missing
2072         code to handle formal that is a synchronized type.
2073
2074         * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
2075         are not available and cause the compiler to blowup. Found compiling
2076         test with switch -gnatc
2077
2078         * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
2079         Has_Correct_Formal_Mode plus code cleanup.
2080
2081 2008-07-31  Bob Duff  <duff@adacore.com>
2082
2083         * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
2084         recognized as two end-of-lines, but it should be just one.
2085
2086 2008-07-31  Thomas Quinot  <quinot@adacore.com>
2087
2088         * exp_ch9.adb: Minor reformatting
2089
2090         * tbuild.ads: Fix several occurrences of incorrectly referring to
2091         Name_Find as Find_Name.
2092
2093 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
2094
2095         * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
2096         and the context is an object declaration with non-static bounds, treat
2097         the aggregate as non-static.
2098
2099 2008-07-31  Vincent Celier  <celier@adacore.com>
2100
2101         * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
2102         Move back spec of Parse_Single_Project to body, as it is not called
2103         outside of package Prj.Part.
2104         (Project_Data): Remove components Linker_Name, Linker_Path and
2105         Minimum_Linker_Options as they are no longer set.
2106         Remove function There_Are_Ada_Sources from package Prj and move code
2107         in the only place it was used, in Prj.Env.Set_Ada_Paths.
2108
2109 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
2110
2111         * mlib-utl.ads: Fix typo.
2112
2113 2008-07-31  Robert Dewar  <dewar@adacore.com>
2114
2115         * sem_ch12.adb: Minor reformatting
2116
2117 2008-07-31  Sergey Rybin  <rybin@adacore.com>
2118
2119         * gnat_ugn.texi: Change the description of the
2120         Overly_Nested_Control_Structures: now the rule always requires a
2121         positive parameter for '+R' option
2122
2123 2008-07-31  Thomas Quinot  <quinot@adacore.com>
2124
2125         * g-pehage.adb: Minor reformatting
2126
2127 2008-07-31  Pascal Obry  <obry@adacore.com>
2128
2129         * s-finimp.ads: Minor reformatting.
2130
2131 2008-07-31  Vincent Celier  <celier@adacore.com>
2132
2133         * s-regexp.ads: Minor comment fix
2134
2135 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
2136
2137         * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
2138         so that we can compile this file successfully with -gnatc.
2139
2140 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
2141
2142         * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
2143         of the type when looking for stream subprograms for type String,
2144         Wide_String and Wide_Wide_String.
2145
2146         * s-ststop.adb: Change the initialization expression of constant
2147         Use_Block_IO.
2148
2149 2008-07-31  Geert Bosch  <bosch@adacore.com>
2150
2151         * arit64.c:
2152         New file implementing __gnat_mulv64 signed integer multiplication with
2153         overflow checking
2154
2155         * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
2156
2157         * gcc-interface/gigi.h:
2158         (standard_types): Add ADT_mulv64_decl
2159         (mulv64_decl): Define subprogram declaration for __gnat_mulv64
2160
2161         * gcc-interface/utils.c:
2162         (init_gigi_decls): Add initialization of mulv64_decl
2163
2164         * gcc-interface/trans.c:
2165         (build_unary_op_trapv): New function
2166         (build_binary_op_trapv): New function
2167         (gnat_to_gnu): Use the above functions instead of
2168         build_{unary,binary}_op
2169
2170         * gcc-interface/Makefile.in
2171         (LIBGNAT_SRCS): Add arit64.c
2172         (LIBGNAT_OBJS): Add arit64.o
2173
2174 2008-07-31  Vincent Celier  <celier@adacore.com>
2175
2176         * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
2177         Linker'Default_Switches are declared. Warn if they are declared.
2178
2179 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
2180
2181         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
2182         Insert_Actions to place the pointer declaration in the code, rather
2183         than Insert_Before_And_Analyze, so that insertions of temporaries are
2184         kept in the proper order when transient scopes are present.
2185
2186
2187 2008-07-31  Robert Dewar  <dewar@adacore.com>
2188
2189         * einfo.adb (Spec_PPC): Now defined for generic subprograms
2190
2191         * einfo.ads (Spec_PPC): Now defined for generic subprograms
2192
2193         * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
2194         subprogram case
2195
2196 2008-07-31  Vincent Celier  <celier@adacore.com>
2197
2198         * s-os_lib.adb: Minor comment fix
2199
2200 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
2201
2202         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
2203         transfer pre/postconditions from generic copy to original tree, so that
2204         they will appear in each instance.
2205         (Process_PPCs): Do not transform postconditions into a procedure in a
2206         generic context, to prevent double expansion of check pragmas.
2207
2208         * sem_attr.adb: In an instance, the prefix of the 'result attribute
2209         can be the renaming of the
2210         current instance, so check validity of the name accordingly.
2211
2212 2008-07-31  Robert Dewar  <dewar@adacore.com>
2213
2214         * mlib-utl.ads: Minor reformatting
2215
2216 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
2217
2218         sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
2219         from context. This attribute must be usable in Ada95 mode.
2220         The attribute can appear in the body of a function marked
2221         Inline_Always, but in this case the postocondition is not enforced.
2222
2223         sem_prag.adb (Check_Precondition_Postcondition): within the expansion
2224         of an inlined call pre- and postconditions are legal
2225
2226 2008-07-31  Vincent Celier  <celier@adacore.com>
2227
2228         * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
2229         were for gprmake only
2230
2231 2008-07-31  Robert Dewar  <dewar@adacore.com>
2232
2233         * gnat_ugn.texi: Update -gnatN documentation.
2234
2235         * gnat_rm.texi: Add note about pre/postcondition
2236         pragmas not checked in conjunction with front-end inlining.
2237
2238 2008-07-31  Robert Dewar  <dewar@adacore.com>
2239
2240         * g-pehage.adb, g-pehage.ads: Minor reformatting
2241
2242 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
2243
2244         * mlib-utl.ads, prj-makr.ads: Add comments.
2245
2246 2008-07-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2247
2248         * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS)
2249         [WINDOWS]: Add s-winext.o.
2250
2251 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
2252
2253         PR ada/36554
2254         * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
2255         * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
2256         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
2257         Set precision to 1 for subtype of BOOLEAN_TYPE.
2258         (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
2259         (make_type_from_size): Deal with BOOLEAN_TYPE.
2260         * gcc-interface/misc.c (gnat_print_type): Likewise.
2261         * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
2262         Set boolean_type_node as its translation in the table, as well
2263         as boolean_false_node for False and boolean_true_node for True.
2264         * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
2265         8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
2266         (create_param_decl): Deal with BOOLEAN_TYPE.
2267         (build_vms_descriptor): Likewise.
2268         (build_vms_descriptor64): Likewise.
2269         (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
2270
2271 2008-07-30  Robert Dewar  <dewar@adacore.com>
2272
2273         * exp_ch9.adb: Minor reformatting
2274
2275         * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
2276         if no primitive operation is found.
2277
2278         * exp_util.adb: (Find_Prim_Op): Add comments for previous change
2279
2280         * sem_ch8.adb: Minor reformatting
2281
2282 2008-07-30  Laurent Pautet  <pautet@adacore.com>
2283
2284         * g-pehage.adb:
2285         Remove a limitation on the length of the words handled by the minimal
2286         perfect hash function generator.
2287
2288         * g-pehage.ads:
2289         Detail the use of subprograms Insert, Initialize, Compute and Finalize.
2290         Fix some typos.
2291
2292 2008-07-30  Robert Dewar  <dewar@adacore.com>
2293
2294         * gnatlink.adb: Minor reformatting
2295
2296 2008-07-30  Thomas Quinot  <quinot@adacore.com>
2297
2298         * rtsfind.adb (Check_RPC): Check version consistency even when not
2299         generating RCI stubs. Provide more detailed error message in case of
2300         mismatch.
2301
2302 2008-07-30  Ed Schonberg  <schonberg@adacore.com>
2303
2304         * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
2305         as a actual in an instance, check for a missing attribute to prevent
2306         program_error on an illegal program.
2307
2308         * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
2309         error if primitive is not found, so that exception can be handled
2310         elsewhere on illegal programs.
2311
2312 2008-07-30  Robert Dewar  <dewar@adacore.com>
2313
2314         * uintp.adb (UI_GCD): Fix potential overflow
2315
2316 2008-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
2317
2318         * einfo.adb: Flag245 is now used.
2319         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
2320         check to include functions.
2321         (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
2322         (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
2323         include functions.
2324         (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
2325         to the list of displayed flags.
2326
2327         * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
2328         Wrapped_Entity. These two flags are now present in functions.
2329         New flag Is_Private_Primitive.
2330         (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
2331
2332         * exp_ch9.adb:
2333         (Build_Wrapper_Bodies): New subprogram.
2334         (Build_Wrapper_Body): The spec and body have been moved to in
2335         Build_Wrapper_ Bodies. Code cleanup.
2336         (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
2337         Wrappers are now generated for primitives declared between the private
2338         and full view of a concurrent type that implements an interface.
2339         (Build_Wrapper_Specs): New subprogram.
2340         (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
2341         creation mechanism with a call to Build_Wrapper_Bodies.
2342         (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
2343         wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
2344         (Expand_N_Task_Body): Replace the wrapper body creation
2345         mechanism with a call to Build_Wrapper_Bodies.
2346         (Expand_N_Task_Type_Declaration): Replace the wrapper spec
2347         creation mechanism with a call to Build_Wrapper_Specs.
2348         (Is_Private_Primitive_Subprogram): New subprogram.
2349         (Overriding_Possible): Code cleanup.
2350         (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
2351
2352         * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
2353
2354         * sem_ch3.adb: Add with and use clause for Exp_Ch9.
2355         (Process_Full_View): Build wrapper specs for all primitives
2356         that belong to a private view completed by a concurrent type
2357         implementing an interface.
2358
2359         * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
2360         is a primitive of a
2361         concurrent type with a private view that implements an interface, try to
2362         find the proper spec.
2363         (Analyze_Subprogram_Declaration): Mark a subprogram as a private
2364         primitive if the type of its first parameter is a non-generic tagged
2365         private type.
2366         (Analyze_Subprogram_Specification): Code reformatting.
2367         (Disambiguate_Spec): New routine.
2368         (Find_Corresponding_Spec): Add a flag to controll the output of errors.
2369         (Is_Private_Concurrent_Primitive): New routine.
2370
2371         * sem_ch6.ads:
2372         (Find_Corresponding_Spec): Add a formal to control the output of errors.
2373
2374 2008-07-30  Doug Rupp  <rupp@adacore.com>
2375
2376         * gigi.h (build_vms_descriptor64): New function prototype.
2377         (fill_vms_descriptor): Modified function prototype.
2378
2379         * utils.c (build_vms_descriptor64): New function.
2380
2381         * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
2382
2383         * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
2384         argument.
2385
2386         * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
2387         64bit and 32bit descriptor and save the 64bit version as an alternate
2388         TREE_TYPE in the parameter.
2389         (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
2390         thin pointer.
2391
2392         * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
2393
2394 2008-07-30  Robert Dewar  <dewar@adacore.com>
2395
2396         * make.adb: Minor reformatting
2397
2398         * mlib-utl.adb: Minor reformatting
2399
2400         * osint.ads: Minor reformatting
2401
2402 2008-07-30  Jose Ruiz  <ruiz@adacore.com>
2403
2404         * adaint.c
2405         (__gnat_file_exists): Do not use __gnat_stat for RTX.
2406         (__main for RTX in RTSS mode): Create this dummy procedure symbol to
2407         avoid the use of this symbol from libgcc.a in RTX kernel mode.
2408
2409         * cio.c
2410         (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
2411         the function RtPrintf for console output.
2412
2413         * argv.c Do not use the environ variable for RTX.
2414
2415         * gnatlink.adb (gnatlink): The part that handles the --RTS option has
2416         been moved before the call to Osint.Add_Default_Search_Dirs in order
2417         to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
2418         from the appropriate run time.
2419
2420         * targparm.ads
2421         (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
2422         target is a RTSS module for RTX.
2423
2424         * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
2425         RTX_RTSS_Kernel_Module
2426         (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
2427
2428         * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
2429         exception handling mechanism for Windows and RTX in Win32 mode, but
2430         not for RTX in kernel mode (RTSS).
2431         (LIBGNAT_SRCS): Remove ada.h
2432
2433 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
2434
2435         * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
2436         T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
2437         (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
2438         * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
2439         X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
2440         ALL_ADA_CFLAGS): Remove.
2441         (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
2442         replace ALL_ADA_CFLAGS with ADA_CFLAGS.
2443         (GCC_CFLAGS): Remove X_CFLAGS.
2444         (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
2445         (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
2446         (ADA_CFLAGS): Substitute.
2447
2448 2008-07-30  Laurent Guerby  <laurent@guerby.net>
2449
2450         PR ada/5911
2451         * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
2452         Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
2453         Replace stamp-gnatlib* by stamp-gnatlib*-rts.
2454         * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
2455         by stamp-gnatlib2-rts.
2456
2457 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2458
2459         PR documentation/15479
2460         * gnat-style.texi: Remove AdaCore copyright statement and GPL
2461         statement for GNAT.  Add @copying stanza, use it.  Update to
2462         GFDL 1.2.  Do not list GFDL as Invariant Section, do not list
2463         title as Front-Cover Text.
2464         * gnat_rm.texi: Likewise.
2465         * gnat_ugn.texi: Likewise.
2466
2467 2008-07-29  Jan Hubicka  <jh@suse.cz>
2468
2469         * trans.c (process_inlined_subprograms): Remove tree_really_inline
2470         check.
2471
2472 2008-07-29  Arnaud Charlet  <charlet@adacore.com>
2473
2474         * gcc-interface: New directory.
2475
2476         * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
2477         utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
2478         config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
2479         to gcc-interface subdirectory.
2480
2481 2008-07-29  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2482
2483         * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
2484
2485 2008-07-28  Jan Hubicka  <jh@suse.cz>
2486
2487         * misc.c (gnat_post_options): Do not set flag_no_inline.
2488
2489 2008-07-28  Richard Guenther  <rguenther@suse.de>
2490
2491         Merge from gimple-tuples-branch.
2492
2493         2008-07-22  Olivier Hainque  <hainque@adacore.com>
2494
2495         * gigi.h (end_subprog_body): New ELAB_P argument, saying if
2496         this is called for an elab proc to be discarded if empty.
2497         * utils.c (end_subprog_body): Honor ELAB_P.
2498         (build_function_stub): Adjust call to end_subprog_body.
2499         * trans.c (Subprogram_Body_to_gnu): Likewise.
2500         (gigi): Reorganize processing of elab procs to prevent
2501         gimplifying twice, using the new end_subprog_body argument.
2502
2503         2008-07-19  Richard Guenther  <rguenther@suse.de>
2504
2505         * Make-lang.in (trans.o): Add tree-iterator.h dependency.
2506         (utils.o): Likewise.
2507         * trans.c: Include tree-iterator.h.
2508         (gnat_gimplify_expr): Adjust prototype.  Fix typo.
2509         (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
2510         (set_expr_location_from_node): Likewise.
2511         (gigi): Tuplify.
2512         * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
2513         of GENERIC_NEXT.
2514         * utils.c: Include tree-iterator.h.
2515         * gigi.h (gnat_gimplify_expr): Adjust prototype.
2516
2517         2008-07-18  Aldy Hernandez  <aldyh@redhat.com>
2518
2519         * trans.c: Include gimple.h instead of tree-gimple.h.
2520         * utils.c: Same.
2521
2522         2008-07-14  Aldy Hernandez  <aldyh@redhat.com>
2523
2524         * trans.c (gnat_gimplify_expr): Use gimplify_assign.
2525
2526 2008-07-25  Jan Hubicka  <jh@suse.cz>
2527
2528         * utils.c (end_subprog_body): Remove inline trees check.
2529         * misc.c (gnat_post_options): Do not set flag_inline_trees.
2530
2531 2008-07-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2532
2533         * raise-gcc.c: Move tsystem.h before tm.h.
2534
2535 2008-07-20  Arnaud Charlet  <charlet@adacore.com>
2536
2537         * gnathtml.pl: New file.
2538
2539 2008-07-19  Olivier Hainque  <hainque@adacore.com>
2540
2541         * targtyps.c (get_target_default_allocator_alignment): Use
2542         MALLOC_ABI_ALIGNMENT.
2543
2544 2008-07-17  Olivier Hainque  <hainque@adacore.com>
2545
2546         * adaint.c (__MINGW32__ section): Include ctype.h and define
2547         a fallback ISALPHA if IN_RTS.
2548         (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
2549
2550 2008-07-17  Olivier Hainque  <hainque@adacore.com>
2551
2552         * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
2553         argument, to apply to references in addition to definitions.  Prevent
2554         setting TREE_STATIC on externals.
2555         (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
2556
2557 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2558
2559         PR documentation/15479
2560         * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
2561         Replace backets around optional parameters with @ovar
2562         where possible, use @r{[}, @r{]} otherwise.
2563         Replace some @r, @i, and @emph with @var where appropriate.
2564
2565 2008-07-02  Eric Botcazou  <ebotcazou@adacore.com>
2566
2567         * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
2568
2569 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2570
2571         * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
2572         -Wc++-compat warnings.
2573         * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
2574         __gnat_locate_exec_on_path): Likewise.
2575         * decl.c (annotate_value): Likewise.
2576         * misc.c (gnat_handle_option): Likewise.
2577         * trans.c (gnat_to_gnu, extract_encoding, decode_name,
2578         post_error_ne_tree): Likewise.
2579
2580 2008-06-27  Eric Botcazou  <ebotcazou@adacore.com>
2581
2582         * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
2583         version of its type, attempt to first convert its elements.
2584
2585 2008-06-26  Chris Proctor  <chrisp_42@bigpond.com>
2586
2587         * Makefile.in: Fix *86 kfreebsd target specific pairs.
2588
2589 2008-06-25  Samuel Tardieu  <sam@rfc1149.net>
2590
2591         * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
2592
2593 2008-06-24  Eric Botcazou  <ebotcazou@adacore.com>
2594
2595         * utils2.c (known_alignment): Derive the alignment from pointed-to
2596         types only if it is otherwise unknown.
2597         <INTEGER_CST>: Tidy.
2598         <MULT_EXPR>: Likewise.
2599         <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
2600         that of the base.
2601
2602 2008-06-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2603
2604         PR ada/36573
2605         * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
2606
2607 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2608
2609         * gnat_rm.texi (Implementation Defined Characteristics)
2610         (Standard Library Routines): Use @smallexample for indented
2611         text.  Drop Indentation outside examples.
2612         * gnat_ugn.texi: Likewise.
2613
2614 2008-06-13  Olivier Hainque  <hainque@adacore.com>
2615
2616         * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
2617         if undefined.
2618         (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
2619         realignment with force_align_arg_pointer attribute on foreign
2620         convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
2621
2622 2008-06-13  Olivier Hainque  <hainque@adacore.com>
2623
2624         * utils.c (rest_of_record_type_compilation): When computing
2625         encodings for the components of a variable size type, early
2626         strip conversions on the current position expression to make
2627         sure it's shape is visible.  Use remove_conversions for this
2628         purpose.
2629
2630 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
2631
2632         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
2633         constrained subtype of a discriminated type, discard the fields that
2634         are beyond its limits according to its size.
2635
2636 2008-06-10  Olivier Hainque  <hainque@adacore.com>
2637
2638         * utils.c (create_subprog_decl): If this is for the 'main' entry
2639         point according to the asm name, redirect main_identifier_node.
2640
2641 2008-06-09  Eric Botcazou  <ebotcazou@adacore.com>
2642
2643         * decl.c (components_to_record): Adjust the packedness for the
2644         qualified union as well.
2645
2646 2008-06-09  Arnaud Charlet  <charlet@adacore.com>
2647
2648         * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
2649         checks non fatal.
2650
2651 2008-06-07  Samuel Tardieu  <sam@rfc1149.net>
2652
2653         * sem_res.adb (Large_Storage_Type): A type is large if it
2654         requires as many bits as Positive to store its values and its
2655         bounds are known at compile time.
2656         * sem_ch13.adb (Minimum_Size): Note that this function returns
2657         0 if the size is not known at compile time.
2658
2659 2008-06-06  Nicolas Setton  <setton@adacore.com>
2660             Olivier Hainque  <hainque@adacore.com>
2661
2662         * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
2663         attribute, parallel descriptive type attached to another
2664         type for debug info generation purposes.
2665         * utils.c (add_parallel_type): New function, register
2666         parallel type to be attached to a type.
2667         (get_parallel_type): New function, fetch a registered
2668         parallel type, if any.
2669         (rest_of_record_type_compilation): Register the parallel
2670         type we make for variable size records.
2671         * gigi.h (add_parallel_type, get_parallel_type): Declare.
2672         * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
2673         parallel debug types we make.
2674         * trans.c (extract_encoding, decode_name): New functions.
2675         (gigi): If the DWARF attribute extensions are available, setup
2676         to use them.
2677         * lang.opt: Register language specific processing request
2678         for -gdwarf+.
2679         * misc.c (gnat_dwarf_extensions): New global variable. How much
2680         do we want of our DWARF extensions. 0 by default.
2681         (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
2682         (gnat_post_options): Map gnat_dwarf_extensions to the
2683         commonuse_gnu_debug_info_extensions for later processing.
2684
2685 2008-06-04  Samuel Tardieu  <sam@rfc1149.net>
2686
2687         * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
2688
2689 2008-06-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2690
2691         * Makefile.in (common_tools): Fix typos in $(exeext) extension.
2692         * gnat_ugn.texi (Style Checking)
2693         (Adding the Results of Compiler Checks to gnatcheck Output)
2694         (Example of Binder Output File): Fix typos.
2695         * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
2696         exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
2697         s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
2698         s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
2699         sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
2700         sinfo.ads, utils.c: Fix typos in comments.
2701         * sem_ch6.adb, vms_data.ads: Fix typos in strings.
2702
2703 2008-05-29  Thomas Quinot  <quinot@adacore.com>
2704
2705         * sem_eval.adb: Minor reformatting
2706
2707 2008-05-29  Ed Schonberg  <schonberg@adacore.com>
2708
2709         * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
2710         is abstract, do not apply abstractness check on subprogram if this is
2711         a renaming declaration.
2712
2713 2008-05-29  Arnaud Charlet  <charlet@adacore.com>
2714
2715         PR ada/864
2716         * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
2717         allow recognition of program suffix in addition to prefix.
2718
2719         * gnatchop.adb (Locate_Executable): Add support for prefix.
2720
2721         * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
2722         mlib-utl.adb: Adjust calls to Program_Name.
2723
2724 2008-05-29  Robert Dewar  <dewar@adacore.com>
2725
2726         * sem_ch3.adb: Minor reformatting
2727         * sem_prag.adb: Minor reformatting
2728         * sem_res.adb: Minor reformatting
2729         * sinput-p.ads: Minor reformatting
2730
2731 2008-05-29  Javier Miranda  <miranda@adacore.com>
2732
2733         * sem_util.adb:
2734         (Abstract_Interface_List): Add missing support for full type-declaration
2735         associated with synchronized types.
2736
2737 2008-05-29  Robert Dewar  <dewar@adacore.com>
2738
2739         * sem_eval.adb (Is_Same_Value): Take care of several more cases
2740
2741 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
2742
2743         * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
2744         access type, wrap the expression in a conversion to force an
2745         accessibility check.
2746
2747         * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
2748         accessibility checks even when expansion is disabled in order to
2749         generate messages in the presence of previous errors or in
2750         semantics-only mode.
2751
2752 2008-05-28  Eric Botcazou  <ebotcazou@adacore.com>
2753
2754         * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
2755         * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
2756
2757 2008-05-28  Vincent Celier  <celier@adacore.com>
2758
2759         PR ada/34446
2760         * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
2761         preprocessing expressions
2762
2763 2008-05-28  Vincent Celier  <celier@adacore.com>
2764
2765         * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
2766         for preprocessing
2767
2768         * sinput-p.ads: Minor comment update and reformatting
2769
2770 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
2771
2772         * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
2773         type has a deeper level than any master only when it is the type of an
2774         access parameter.
2775
2776 2008-05-28  Javier Miranda  <miranda@adacore.com>
2777
2778         * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
2779
2780 2008-05-28  Javier Miranda  <miranda@adacore.com>
2781
2782         * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
2783         * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
2784         * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
2785         Add code that was previously located in
2786         Find_Overridden_Synchronized_Primitive because it is only used here.
2787
2788 2008-05-28  Sergey Rybin  <rybin@adacore.com>
2789
2790         * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
2791         Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
2792
2793 2008-05-28  Robert Dewar  <dewar@adacore.com>
2794
2795         * restrict.ads:
2796         Add missing restrictions, and properly label all GNAT defined ones
2797
2798         * rtsfind.ads:
2799         Add entry for Ada_Real_Time.Timing_Events.Timing_Event
2800         Add entry for Ada.Task_Termination.Set_Specific_Handler
2801         Add entry for Ada.Task_Termination.Specific_Handler
2802
2803         * s-rident.ads:
2804         Add missing restrictions and properly mark all gnat defined ones
2805
2806         * sem_ch3.adb:
2807         (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
2808
2809         * sem_res.adb:
2810         (Resolve_Call): Check violation of No_Specific_Termination_Handlers
2811
2812         * gnat_rm.texi: Add missing restrictions, and properly label all
2813         GNAT defined ones
2814
2815 2008-05-28  Robert Dewar  <dewar@adacore.com>
2816
2817         * restrict.adb:
2818         (Check_Restriction): violation of restriction No_Finalization is
2819         treated as a serious error to stop expansion
2820
2821 2008-05-28  Robert Dewar  <dewar@adacore.com>
2822
2823         * exp_util.adb: Minor reformatting
2824         * exp_util.ads: Minor reformatting.
2825
2826 2008-05-28  Arnaud Charlet  <charlet@adacore.com>
2827
2828         * Make-lang.in: Remove gprmake.
2829
2830         * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
2831
2832 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
2833
2834         * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
2835         improper progenitor names, and avoid cascaded errors.
2836
2837 2008-05-28  Robert Dewar  <dewar@adacore.com>
2838
2839         * gnat_rm.texi: Add note on Old giving warning when applied to constant
2840
2841         * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
2842         a constant
2843
2844 2008-05-28  Robert Dewar  <dewar@adacore.com>
2845
2846         * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
2847         size
2848
2849 2008-05-28  Robert Dewar  <dewar@adacore.com>
2850
2851         * exp_ch5.adb:
2852         (Expand_Simple_Function_Return): Copy unaligned result into temporary
2853
2854 2008-05-28  Javier Miranda  <miranda@adacore.com>
2855
2856         * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
2857         for user-defined predefined primitives.
2858
2859         * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
2860         (Find_Overridden_Synchronized_Primitive): Ditto.
2861
2862         * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
2863
2864 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
2865
2866         * a-ststio.adb, s-direio.adb:
2867         Further code clean up of previous change.
2868         Update comments.
2869
2870 2008-05-27  Vincent Celier  <celier@adacore.com>
2871
2872         * prj-nmsc.adb: Minor reformatting
2873
2874 2008-05-27  Bob Duff  <duff@adacore.com>
2875
2876         * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
2877         untagged private type with a tagged full type, where the full type has
2878         a self reference, create the corresponding class-wide type early, in
2879         case the self reference is "access T'Class".
2880
2881 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
2882
2883         * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
2884         tasks and context is an object declaration. create master entity before
2885         expansion.
2886
2887 2008-05-27  Robert Dewar  <dewar@adacore.com>
2888
2889         * mlib-prj.adb: Minor reformatting
2890
2891         * prj-part.adb: Minor reformatting
2892
2893         * prj.ads: Minor reformatting
2894
2895         * exp_ch3.adb: Minor reformatting.
2896
2897         * sem_ch3.ads: Minor reformatting
2898
2899         * sem_eval.adb: Minor reformatting
2900
2901 2008-05-27  Vincent Celier  <celier@adacore.com>
2902
2903         * gnatcmd.adb:
2904         <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
2905
2906 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
2907
2908         * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
2909         tasks, create an activation chain now, before the expansion into
2910         assignments and build-in-place calls that require the presence of an
2911         activation chain.
2912         (Backend_Processing_Possible): If the component type is inherently
2913         limited, the aggregate must be expanded into individual built-in-place
2914         assignments.
2915
2916         * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
2917         determine whether an allocation extra parameter must be built, to
2918         handle case of a private type whose full type is a discriminated type
2919         with defaults.
2920
2921 2008-05-27  Bob Duff  <duff@adacore.com>
2922
2923         * gnat_rm.texi:
2924         Document the new behavior regarding trampolines.
2925
2926 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
2927
2928         * a-direio.adb, a-sequio.adb: Replace address clause by
2929         unrestricted_access, simpler and compatible with .NET.
2930
2931 2008-05-27  Vincent Celier  <celier@adacore.com>
2932
2933         * prj-part.adb:
2934         (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
2935         a project file, so that symbolic links are not resolved.
2936
2937 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
2938
2939         * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
2940         Replace heavy address clause by 'Unrestricted_Access, cleaner and more
2941         portable across GNAT targets, since this kind of address clause is not
2942         supported by VM back-ends (.NET/JGNAT).
2943
2944 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
2945
2946         * bindgen.adb: Update comments.
2947
2948         * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
2949
2950 2008-05-27  Vincent Celier  <celier@adacore.com>
2951
2952         * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
2953         prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
2954         mlib-tgt.adb, prj-env.adb, prj-env.ads:
2955         (Path_Information): New record type
2956         Use component of type Path_Information when there are two paths, one in
2957         canonical format and one in display format.
2958         Update the project manager to these new components.
2959
2960 2008-05-27  Robert Dewar  <dewar@adacore.com>
2961
2962         * makeutl.adb: Minor reformatting
2963         * prj-nmsc.adb: Minor reformatting
2964         * s-stausa.adb: Minor reformatting
2965         * s-stausa.ads: Minor reformatting
2966         * sem_ch6.adb: Minor reformatting
2967
2968 2008-05-27  Thomas Quinot  <quinot@adacore.com>
2969
2970         * sem_res.adb: Minor comment fixes
2971
2972 2008-05-27  Thomas Quinot  <quinot@adacore.com>
2973
2974         * makeutl.adb: Minor code reorganization
2975
2976         * exp_aggr.adb: Add ??? comment
2977         Fix typo
2978
2979         * exp_ch6.adb: Minor reformatting
2980
2981 2008-05-27  Quentin Ochem  <ochem@adacore.com>
2982
2983         * s-stausa.adb (Initialize): Updated result initialization, and
2984         initialization of environment stack.
2985         (Fill_Stack): Improved computation of the pattern zone, taking into
2986         account already filled at the calling point.
2987         (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
2988         Measure and Overflow_Guard.
2989         (Report_Result): Fixed computation of the result using new fields of
2990         Stack_Analyzer.
2991
2992         * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
2993         params by more explicit Stack_Size / Max_Pattern_Size params.
2994         (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
2995         Added Stack_Used_When_Filling field.
2996         (Task_Result): Replaced Measure / Overflow_Guard by more explicit
2997         Min_Measure and Max_Measure fields.
2998
2999         * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
3000
3001 2008-05-27  Vincent Celier  <celier@adacore.com>
3002
3003         * prj-nmsc.adb:
3004         (Check_File): Make sure that a unit that replaces the same unit in a
3005          project being extended is properly processed.
3006
3007 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
3008
3009         * sem_ch3.adb:
3010         (Get_Discr_Value): Remove obsolete code that failed to find the value
3011         of a discriminant for an inherited task component appearing in a type
3012         extension.
3013
3014 2008-05-27  Thomas Quinot  <quinot@adacore.com>
3015
3016         (System.File_IO.{Close, Delete, Reset}):
3017         Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
3018
3019         (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
3020         Pass File parameter by reference.
3021
3022 2008-05-27  Vincent Celier  <celier@adacore.com>
3023
3024         * prj-nmsc.adb:
3025         (Process_Sources_In_Multi_Language_Mode): Check that there are not two
3026         sources of the same project that have the same object file name.
3027         (Find_Explicit_Sources): Always remove a source exception that was not
3028         found.
3029
3030 2008-05-27  Thomas Quinot  <quinot@adacore.com>
3031
3032         * sem_ch3.adb: Minor reformatting
3033
3034 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
3035
3036         * sem_ch6.adb:
3037         (Is_Interface_Conformant): Handle properly a primitive operation that
3038         overrides an interface function with a controlling access result.
3039         (Type_Conformance): If Skip_Controlling_Formals is true, when matching
3040         inherited and overriding operations, omit as well the conformance check
3041         on result types, to prevent spurious errors.
3042
3043 2008-05-27  Vincent Celier  <celier@adacore.com>
3044
3045         * makeutl.ads, makeutl.adb:
3046         (Set_Location): New procedure
3047         (Get_Location): New function
3048         (Update_Main): New procedure
3049
3050 2008-05-27  Vincent Celier  <celier@adacore.com>
3051
3052         * prj-nmsc.adb:
3053         (Check_Library): Allow standard project to be extended as a static
3054         library project.
3055         (Get_Mains): Do not inherit attribute Main in an extending library
3056         project.
3057
3058 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
3059
3060         * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
3061         * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
3062         * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
3063         * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
3064         * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
3065         * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
3066         * system-mingw.ads (Always_Compatible_Rep): Likewise.
3067         * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
3068         * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
3069         * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
3070
3071 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
3072
3073         * sem_attr.adb: add guard to previous patch.
3074
3075 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
3076
3077         * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
3078         a synchronized tagged type, do not attempt to build dispatch table for
3079         full view. The table is built for the corresponding record type, which
3080         has its own declaration.
3081
3082 2008-05-27  Gary Dismukes  <dismukes@adacore.com>
3083
3084         * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
3085         to the known type entity E, rather than setting it to Any_Type. Fixes
3086         possible blowup in function Base_Init_Proc, as called from Freeze_Entity
3087         for objects whose type had an illegal constraint.
3088
3089 2008-05-27  Vincent Celier  <celier@adacore.com>
3090
3091         * gnat_ugn.texi:
3092         Add succinct documentation for attribute Excluded_Source_List_File
3093
3094 2008-05-27  Vincent Celier  <celier@adacore.com>
3095
3096         * prj-attr.adb: Add new project level attribute Map_File_Option
3097
3098         * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
3099
3100         * prj.ads: Minor reformatting and comment update
3101         (Project_Configuration): New component Map_File_Option
3102
3103         * snames.adb: New standard name Map_File_Option
3104
3105         * snames.ads: New standard name Map_File_Option
3106
3107 2008-05-27  Vincent Celier  <celier@adacore.com>
3108
3109         * xsnames.adb: Remove unused variable Oname
3110
3111 2008-05-27  Doug Rupp  <rupp@adacore.com>
3112
3113         * exp_ch6.adb:
3114         (Expand_N_Function_Call): Fix comments. Minor reformatting.
3115
3116         * exp_vfpt.ads:
3117         (Expand_Vax_Foreign_Return): Fix comments.
3118
3119 2008-05-27  Thomas Quinot  <quinot@adacore.com>
3120
3121         * exp_dist.adb: Minor reformating
3122
3123 2008-05-26  Gary Dismukes  <dismukes@adacore.com>
3124
3125         * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
3126         No_Default_Initialization, which is now delayed until the freeze point
3127         of the object. Add a comment about deferral of the check.
3128
3129         * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
3130         on objects is moved here.
3131
3132 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
3133
3134         * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
3135         (Compare_Array_S16): Adjust for above change.
3136         * s-casi32.adb (Uword): Likewise.
3137         (Compare_Array_S32): Likewise.
3138         * s-casi64.adb (Uword): Likewise.
3139         (Compare_Array_S64): Likewise.
3140         * s-caun16.adb (Uhalf): Likewise.
3141         (Compare_Array_U16): Likewise.
3142         * s-caun32.adb (Uword): Likewise.
3143         (Compare_Array_U32): Likewise.
3144         * s-caun64.adb (Uword): Likewise.
3145         (Compare_Array_U64): Likewise.
3146
3147 2008-05-26  Robert Dewar  <dewar@adacore.com>
3148
3149         * exp_ch6.adb: Add ??? comment for previous change
3150
3151         * exp_vfpt.adb: Minor reformatting
3152
3153         * exp_vfpt.ads: Add ??? comment for last change
3154
3155         * sem_attr.adb: Add some ??? comments for previous change
3156
3157         * s-vaflop.ads: Add comments for previous change
3158
3159 2008-05-26  Doug Rupp  <rupp@adacore.com>
3160
3161         * s-vaflop-vms-alpha.adb:
3162         Remove System.IO use clause, to prevent spurious ambiguities when
3163         package is access through rtsfind.
3164
3165 2008-05-26  Sergey Rybin  <rybin@adacore.com>
3166
3167         * tree_io.ads (ASIS_Version_Number): Update because of the changes
3168         made in front-end
3169
3170 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3171
3172         * sem_attr.adb:
3173         (Resolve_Attribute, case 'address):  S (A .. B)' address can be safely
3174         converted to S (A)'address only if A .. B is known to be a non-null
3175         range.
3176
3177 2008-05-26  Doug Rupp  <rupp@adacore.com>
3178
3179         * s-vaflop.adb:
3180         (Return_D, Return_F, Return_G): New functions.
3181
3182         * s-vaflop.ads:
3183         (Return_D, Return_F, Return_G): New functions.
3184
3185         * exp_vfpt.adb:
3186         (Expand_Vax_Foreign_Return): New procedure
3187
3188         * exp_vfpt.ads:
3189         (Expand_Vax_Foreign_Return): New procedure
3190
3191         * rtsfind.ads:
3192         (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
3193         (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
3194
3195         * exp_ch6.adb:
3196         Import Exp_Vfpt
3197         (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
3198
3199         * s-vaflop-vms-alpha.adb:
3200         (Return_D, Return_F, Return_G): New functions.
3201
3202 2008-05-26  Gary Dismukes  <dismukes@adacore.com>
3203
3204         * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
3205         init proc entity when there is actual default initialization associated
3206         with the component type, to avoid spurious errors on objects of scalar
3207         array types that are marked Is_Public when No_Default_Initialization
3208         applies.
3209
3210 2008-05-26  Thomas Quinot  <quinot@adacore.com>
3211
3212         * rtsfind.ads, rtsfind.adb:
3213         (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
3214         (Check_RPC): Support per-PCS-kind API versioning.
3215
3216         exp_dist.ads, exp_dist.adb:
3217         (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
3218         (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
3219          library function Get_RACW.
3220         (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
3221         library function Get_Reference.
3222         (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
3223         through an intermediate Any.
3224         (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
3225         going through an intermediate Any.
3226
3227         * sem_dist.adb: Minor reformatting.
3228
3229 2008-05-26  Javier Miranda  <miranda@adacore.com>
3230
3231         * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
3232         (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
3233         (Is_Internal): Adding documentation on internal entities that have
3234         attribute Interface_Alias (old attribute Abstract_Interface_Alias)
3235
3236         * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
3237         (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
3238         Added assertion to force entities with this attribute to have
3239         attribute Is_Internal set to True.
3240         (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
3241
3242         * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
3243         renamed as Derive_Progenitor_Subprograms. In addition, its code is
3244         a new implementation.
3245         (Add_Interface_Tag_Components): Remove special management of
3246         synchronized interfaces.
3247         (Analyze_Interface_Declaration): Minor reformating
3248         (Build_Derived_Record_Type): Minor reformating
3249         (Check_Abstract_Overriding): Avoid reporting error in case of abstract
3250         predefined primitive inherited from interface type because the body of
3251         internally generated predefined primitives of tagged types are generated
3252         later by Freeze_Type
3253         (Derive_Subprogram): Avoid generating an internal name if the parent
3254         subprogram overrides an interface primitive.
3255         (Derive_Subprograms): New implementation that keeps separate the
3256         management of tagged types not implementing interfaces, from tagged
3257         types that implement interfaces.
3258         (Is_Progenitor): New implementation.
3259         (Process_Full_View): Add documentation
3260         (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
3261         by call to Derive_Progenitor_Subprograms.
3262
3263         * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
3264         (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
3265         Skip_Controlling_Formals.
3266
3267         * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
3268         (Check_Conventions): New implementation. Remove local subprogram
3269         Skip_Check. Remove formal Search_From of routine Check_Convention.
3270         (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
3271         Skip_Controlling_Formals.
3272         (New_Overloaded_Entity): Enable addition of predefined dispatching
3273         operations.
3274
3275         * sem_disp.ads
3276         (Find_Primitive_Covering_Interface): New subprogram.
3277
3278         * sem_disp.adb (Check_Dispatching_Operation): Disable registering
3279         the task body procedure as a primitive of the corresponding tagged
3280         type.
3281         (Check_Operation_From_Private_Type): Avoid adding twice an entity
3282         to the list of primitives.
3283         (Find_Primitive_Covering_Interface): New subprogram.
3284         (Override_Dispatching_Operation): Add documentation.
3285
3286         * sem_type.adb (Covers): Minor reformatings
3287
3288         * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
3289         Collect_Interfaces.
3290         Rename formal.
3291         (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
3292         (Implements_Interface): New subprogram.
3293         (Is_Parent): Removed.
3294         (Primitive_Names_Match): New subprogram.
3295         (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
3296         (Ultimate_Alias): New subprogram.
3297
3298         * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
3299         Collect_Interfaces.
3300         Remove special management for synchronized types. Rename formal. Remove
3301         internal subprograms Interface_Present_In_Parent and Add_Interface.
3302         (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
3303         on non-record types by code to return false in such case.
3304         (Implements_Interface): New subprogram.
3305         (Is_Parent): Removed. No special management is now required for
3306         synchronized types covering interfaces.
3307         (Primitive_Names_Match): New subprogram.
3308         (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
3309         (Ultimate_Alias): New subprogram.
3310
3311         * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
3312         Add internal entities associated with secondary dispatch tables to
3313         the list of tagged type primitives that are not interfaces.
3314         (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
3315         (Make_Predefined_Primitive_Specs): Code reorganization to improve
3316         the management of predefined equality operator. In addition, if
3317         the type has an equality function corresponding with a primitive
3318         defined in an interface type, the inherited equality is abstract
3319         as well, and no body can be created for it.
3320
3321         * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
3322         exp_util to exp_disp.
3323         (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
3324         an entity corresponds with one of the predefined primitives required
3325         to implement interfaces.
3326         Update copyright notice.
3327
3328         * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
3329         final check on abstract subprograms all the primitives associated with
3330         interface primitives because they must be visible in the public and
3331         private part.
3332         (Write_DT): Use Find_Dispatching_Type to locate the name of the
3333         interface type. This allows the use of this routine, for debugging
3334         purposes, when the tagged type is not fully decorated.
3335         (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
3336         Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
3337         (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
3338         entity corresponds with one of the predefined primitives required to
3339         implement interfaces.
3340
3341         * exp_util.adb (Find_Interface_ADT): New implementation
3342         (Find_Interface): Removed.
3343
3344         * sprint.adb (Sprint_Node_Actual): Generate missing output for the
3345         list of interfaces associated with nodes
3346         N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
3347
3348 2008-05-26  Thomas Quinot  <quinot@adacore.com>
3349
3350         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
3351         condition for assignment to temporary.
3352
3353 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3354
3355         * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
3356         checks on the upper bound if the index type is a modular type, to
3357         prevent wrap-around computations when size is close to upper bound of
3358         type.
3359
3360 2008-05-26  Robert Dewar  <dewar@adacore.com>
3361
3362         * sem_ch3.adb: Minor reformatting
3363
3364 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3365
3366         * sem_ch12.adb (Remove_Parent): Use specification of instance
3367         to retrieve generic parent,
3368         to handle properly the case where the instance is a child unit.
3369         Add guard to handle properly wrapper packages.
3370         Minor reformatting
3371
3372 2008-05-26  Thomas Quinot  <quinot@adacore.com>
3373
3374         * sinfo.ads: Minor reformatting
3375
3376 2008-05-26  Hristian Kirtchev  <kirtchev@adacore.com>
3377
3378         * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
3379         Generate a tag check when the result subtype of a function, defined by
3380         an access definition, designates a specific tagged type.
3381         (Make_Tag_Check): New routine.
3382
3383 2008-05-26  Arnaud Charlet  <charlet@adacore.com>
3384
3385         * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
3386
3387 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
3388
3389         * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
3390         (builtin_decl_for): Likewise.
3391         * trans.c (gigi): Likewise.
3392         * utils.c (def_builtin_1): Fix formatting.
3393
3394 2008-05-26  Hristian Kirtchev  <kirtchev@adacore.com>
3395
3396         * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
3397         Create the statements which map a string name to protected or task
3398         entry indix.
3399
3400         * exp_ch9.adb: Add with and use clause for Stringt.
3401         Minor code reformatting.
3402         (Build_Entry_Names): New routine.
3403         (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
3404         for flag Build_Entry_Names which controls the allocation of the data
3405         structure for the string names of entries.
3406
3407         * exp_ch9.ads (Build_Entry_Names): New subprogram.
3408
3409         * exp_util.adb (Entry_Names_OK): New function.
3410
3411         * exp_util.ads (Entry_Names_OK): New function.
3412
3413         * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
3414         enumerations RE_Id and RE_Unit_Table.
3415
3416         * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
3417         (Free_Entry_Names_Array): New routine.
3418
3419         * s-taskin.ads: Comment reformatting.
3420         Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
3421         Add component Entry_Names to record Ada_Task_Control_Block.
3422         (Free_Entry_Names_Array): New routine.
3423
3424         * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
3425         dynamically allocate an array
3426         of string pointers. This structure holds string entry names.
3427         (Free_Entry_Names): New routine.
3428         (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
3429         (Set_Entry_Names): New routine.
3430
3431         * s-tassta.ads:
3432         (Create_Task): Add formal Build_Entry_Names. The flag is used to
3433         control the allocation of the data structure which stores entry names.
3434         (Set_Entry_Name): New routine.
3435
3436         * s-tpoben.adb:
3437         Add with and use clause for Ada.Unchecked_Conversion.
3438         (Finalize): Deallocate the entry names array.
3439         (Free_Entry_Names): New routine.
3440         (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
3441         create an array of string pointers to hold the entry names.
3442         (Set_Entry_Name): New routine.
3443
3444         * s-tpoben.ads:
3445         Add field Entry_Names to record Protection_Entries.
3446         (Initialize_Protection_Entries): Add formal Build_Entry_Names.
3447         (Set_Entry_Name): New routine.
3448
3449 2008-05-26  Vincent Celier  <celier@adacore.com>
3450
3451         * prj-nmsc.adb:
3452         (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
3453
3454         * prj.ads:
3455         (Project_Configuration): New component Shared_Lib_Driver
3456
3457 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3458
3459         * inline.adb:
3460         (Cleanup_Scopes): For a protected operation, transfer finalization list
3461         to protected body subprogram, to force cleanup actions when needed.
3462
3463 2008-05-26  Robert Dewar  <dewar@adacore.com>
3464
3465         * sem_cat.adb: Minor reformatting
3466
3467         * gnatname.adb: Minor reformatting
3468
3469         * osint.ads: Minor reformatting
3470
3471         * s-carun8.ads: Minor reformatting
3472
3473         * g-heasor.ads: Minor comment fix (unit is now pure)
3474
3475 2008-05-26  Robert Dewar  <dewar@adacore.com>
3476
3477         * exp_ch2.adb:
3478         (Expand_Current_Value): Properly type generated integer literal
3479
3480 2008-05-26  Sergey Rybin  <rybin@adacore.com>
3481
3482         * gnat_ugn.texi: Add description for the new gnatcheck rule -
3483         Separate_Numeric_Error_Handlers.
3484
3485 2008-05-26  Pascal Obry  <obry@adacore.com>
3486
3487         * sem_aggr.adb: Minor reformatting.
3488
3489 2008-05-26  Jose Ruiz  <ruiz@adacore.com>
3490
3491         * s-osinte-aix.adb:
3492         (To_Target_Priority): Setting the time slice value to 0 or greater sets
3493         the scheduling policy to FIFO within priorities or round-robin
3494         respectively.
3495         Hence, the priority must be set in this case to the one selected by the
3496         user.
3497
3498 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3499
3500         * sem_ch12.adb:
3501         (Remove_Parent): If the enclosing scope is an instance whose generic
3502         parent is declared within some parent scope of the just completed
3503         instance, make full views of the entities in that parent visible, when
3504         applicable.
3505
3506 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
3507
3508         * mingw32.h (STD_MINGW): Set to true for target w64.
3509
3510 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
3511
3512         * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
3513         instead of TREE_STATIC on the ADDR_EXPR.
3514
3515 2008-05-24  Eric Botcazou  <ebotcazou@adacore.com>
3516
3517         * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
3518         (Sloc_to_locus): Do not overwrite known GCC locations when translating
3519         GNAT standard locations.
3520
3521 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
3522
3523         * gigi.h (mark_visited): Declare.
3524         * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
3525         only the topmost node of expressions.
3526         (elaborate_expression_1): Look deeper for read-only variables.
3527         * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
3528         (mark_visited): Move logic to mark_visited_r.  Invoke walk_tree.
3529         (mark_visited_r): New function.
3530
3531 2008-05-23  Vincent Celier  <celier@adacore.com>
3532
3533         * snames.adb: New standard name Excluded_Source_List_File.
3534
3535         * snames.ads: New standard name Excluded_Source_List_File.
3536
3537         * prj-attr.adb: New project level attribute Excluded_Source_List_File.
3538
3539         * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
3540         Get excluded sources from
3541         file indicated by attribute Excluded_Source_List_File, when present and
3542         neither Excluded_Source_Files nor Locally_Removed_Files are declared.
3543
3544 2008-05-23  Robert Dewar  <dewar@adacore.com>
3545
3546         * exp_dist.adb: Minor reformatting
3547
3548 2008-05-23  Ed Schonberg  <schonberg@adacore.com>
3549
3550         * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
3551         slice, convert it to an indexed component, which is equivalent, more
3552         efficient, and usable even if the slice itself is not addressable.
3553
3554 2008-05-23  Olivier Hainque  <hainque@adacore.com>
3555
3556         * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
3557         convention also allows access to named compiler built-in subprograms
3558         such as the GCC __builtin family.
3559
3560 2008-05-23  Vincent Celier  <celier@adacore.com>
3561
3562         * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
3563         sep. If there are several possibilities, choose the one with the
3564         longer prefix.
3565
3566 2008-05-23  Vincent Celier  <celier@adacore.com>
3567
3568         * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
3569         back end switches when executable specified with --GCC= is same as
3570         default, even if there are additional options.
3571
3572         * gnat_ugn.texi:
3573         Document when the back end switches from the ALI file are taken into
3574         account when gnatlink is invoked with --GCC=
3575
3576 2008-05-23  Thomas Quinot  <quinot@adacore.com>
3577
3578         * s-os_lib.adb:
3579         (copy_File): Do not open destination file if source file is unreadable.
3580
3581 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
3582
3583         * utils.c (handle_type_generic_attribute): Adjust to accept
3584         fixed arguments before an elipsis.
3585
3586 2008-05-21  Thomas Quinot  <quinot@adacore.com>
3587
3588         * g-sothco.ads, g-sothco.adb: New files.
3589
3590 2008-05-20  Thomas Quinot  <quinot@adacore.com>
3591
3592         * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
3593
3594         * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
3595         Add missing "with" of Ada.Unchecked_Conversion
3596
3597         * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
3598         g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
3599         g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
3600         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
3601         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
3602         g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
3603         Move common code out of GNAT.Sockets.Thin implementations and into
3604         Thin_Common.
3605         New constant SIZEOF_fd_set
3606         New flag Has_Sockaddr_Len
3607         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3608
3609         * g-stsifd-sockets.adb
3610         (Create): Remove call to Set_Length; use Set_Family to set the family
3611         and (on appropriate platforms) length fields in struct sockaddr.
3612
3613         * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
3614         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
3615         g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
3616         Move common code out of GNAT.Sockets.Thin implementations and into
3617         Thin_Common.
3618
3619         * g-socket.ads, g-socket.adb:
3620         Move common code out of GNAT.Sockets.Thin implementations and into
3621         Thin_Common.
3622         (Connect_Socket, Accept_Socket): Provide new versions of these two
3623         routines that operate with a user specified timeout.
3624         (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
3625         this is now handled automatically by Set_Family on platforms that
3626         require it.
3627
3628         * gen-soccon.c:
3629         Move common code out of GNAT.Sockets.Thin implementations and into
3630         Thin_Common.
3631         (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
3632         this constant to 0 (not -1) because we use it to initialize an
3633         unsigned_char value.
3634         Align values for numeric constants only.
3635         Handle the case of systems that do not support AF_INET6.
3636         New constant SIZEOF_fd_set
3637         New flag Has_Sockaddr_Len
3638         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3639
3640         * gsocket.h: New flag Has_Sockaddr_Len
3641         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3642
3643 2008-05-20  Santiago Uruena  <uruena@adacore.com>
3644
3645         * i-cobol.ads: Interfaces.COBOL should be preelaborate.
3646
3647 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
3648
3649         * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
3650         the underlying issue with malloc/free has been fixed. Remove associated
3651         comments.
3652         Minor reformatting.
3653         Related to PR ada/24533
3654
3655 2008-05-20  Robert Dewar  <dewar@adacore.com>
3656
3657         * ali.adb: Correct casing of ASCII.NUL
3658
3659         * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
3660         properly.
3661
3662 2008-05-20  Robert Dewar  <dewar@adacore.com>
3663             Gary Dismukes  <dismukes@adacore.com>
3664
3665         * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
3666         overflow if result converted to wider integer type.
3667         (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
3668         discriminated types when discriminant checks are suppressed.
3669
3670 2008-05-20  Vincent Celier  <celier@adacore.com>
3671
3672         * cstand.adb (Print_Standard): Issue the correct Size clause for type
3673         Wide_Wide_Character.
3674
3675 2008-05-20  Tristan Gingold  <gingold@adacore.com>
3676
3677         * decl.c: Do not emit a variable for a object that has an address
3678         representation clause whose value is known at compile time.
3679         When a variable has an address clause whose value is known at compile
3680         time, refer to this variable by using directly the address instead of
3681         dereferencing a pointer.
3682
3683 2008-05-20  Robert Dewar  <dewar@adacore.com>
3684
3685         PR ada/30740
3686         * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
3687         subtypes, always False for non-modular types.
3688         Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
3689         entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
3690         for Shared_Storage package.
3691         (Is_RACW_Stub_Type): New entity flag.
3692
3693         * exp_ch4.adb
3694         (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
3695         case where we have a modular type with a non-binary modules.
3696         Comments reformattings.
3697
3698         * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
3699         all types.
3700
3701 2008-05-20  Javier Miranda  <miranda@adacore.com>
3702
3703         * exp_aggr.adb
3704         (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
3705         tests did not covered the case in which the type of the aggregate has
3706         no progenitors but some its parents has progenitors.
3707
3708 2008-05-20  Gary Dismukes  <dismukes@adacore.com>
3709             Hristian Kirtchev  <kirtchev@adacore.com>
3710
3711         * exp_ch3.adb
3712         (Expand_N_Object_Declaration): Correct the condition which triggers the
3713         generation of a call to Displace when initializing a class-wide object.
3714         (Build_Dcheck_Functions): Build discriminant-checking for null variants
3715         when Frontend_Layout_On_Target is true to ensure that they're available
3716         for calling when a record variant size function is built in Layout.
3717
3718 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3719
3720         * exp_ch5.adb (Expand_Assign_Record): Within an initialization
3721         procedure for a derived type retrieve the discriminant values from the
3722         parent using the corresponding discriminant.
3723         (Expand_N_Assignment_Statement): Skip generation of implicit
3724         if-statement associated with controlled types if we are
3725         compiling with restriction No_Finalization.
3726
3727 2008-05-20  Vincent Celier  <celier@adacore.com>
3728
3729         * prj.adb (Hash (Project_Id)): New function
3730         (Project_Empty): Add new component Interfaces_Defined
3731
3732         * prj.ads (Source_Data): New component Object_Linked
3733         (Language_Config): New components Object_Generated and Objects_Linked
3734         (Hash (Project_Id)): New function
3735         (Source_Data): New Boolean components In_Interfaces and
3736         Declared_In_Interfaces.
3737         (Project_Data): New Boolean component Interfaces_Defined
3738
3739         * prj-attr.adb:
3740         New project level attribute Object_Generated and Objects_Linked
3741         Add new project level attribute Interfaces
3742
3743         * prj-dect.adb: Use functions Present and No throughout
3744         (Parse_Variable_Declaration): If a string type is specified as a simple
3745         name and is not found in the current project, look for it also in the
3746         ancestors of the project.
3747
3748         * prj-makr.adb:
3749         Replace procedure Make with procedures Initialize, Process and Finalize
3750         to implement H414-023: process different directories with different
3751         patterns.
3752         Use functions Present and No throughout
3753
3754         * prj-makr.ads:
3755         Replace procedure Make with procedures Initialize, Process and Finalize
3756
3757         * prj-nmsc.adb
3758         (Add_Source): Set component Object_Exists and Object_Linked accordnig to
3759         the language configuration.
3760         (Process_Project_Level_Array_Attributes): Process new attributes
3761         Object_Generated and Object_Linked.
3762         (Report_No_Sources): New Boolean parameter Continuation, defaulted to
3763         False, to indicate that the erreor/warning is a continuation.
3764         (Check): Call Report_No_Sources with Contnuation = True after the first
3765         call.
3766         (Error_Msg): Process successively contnuation character and warning
3767         character.
3768         (Find_Explicit_Sources): Check that all declared sources have been found
3769         (Check_File): Indicate in hash table Source_Names when a declared source
3770         is found.
3771         (Check_File): Set Other_Part when found
3772         (Find_Explicit_Sources): In multi language mode, check if all exceptions
3773         to the naming scheme have been found. For Ada, report an error if an
3774         exception has not been found. Otherwise, disregard the exception.
3775         (Check_Interfaces): New procedure
3776         (Add_Source): When Other_Part is defined, set mutual pointers in spec
3777         and body.
3778         (Check): In multi-language mode, call Check_Interfaces
3779         (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
3780         for an excluded source.
3781         (Remove_Source): A source replacing a source in the interfaces is also
3782         in the interfaces.
3783
3784         * prj-pars.adb: Use function Present
3785
3786         * prj-part.adb: Use functions Present and No throughout
3787         (Parse_Single_Project): Set the parent project for child projects
3788         (Create_Virtual_Extending_Project): Register project with no qualifier
3789         (Parse_Single_Project): Allow an abstract project to be extend several
3790         times. Do not allow an abstract project to extend a non abstract
3791         project.
3792
3793         * prj-pp.adb: Use functions Present and No throughout
3794         (Print): Take into account the full associative array attribute
3795         declarations.
3796
3797         * prj-proc.adb: Use functions Present and No throughout
3798         (Expression): Call itself with the same From_Project_Node for the
3799         default value of an external reference.
3800
3801         * prj-strt.adb: Use functions Present and No throughout
3802         (Parse_Variable_Reference): If a variable is specified as a simple name
3803         and is not found in the current project, look for it also in the
3804         ancestors of the project.
3805
3806         * prj-tree.ads, prj-tree.adb (Present): New function
3807         (No): New function
3808         Use functions Present and No throughout
3809         (Parent_Project_Of): New function
3810         (Set_Parent_Project_Of): New procedure
3811
3812         * snames.ads, snames.adb:
3813         Add new standard names Object_Generated and Objects_Linked
3814
3815 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
3816
3817         * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
3818         and the derived type are of the same kind.
3819         (Expand_Call): Generate type conversions for actuals of
3820         record or array types when the parent and the derived types differ in
3821         size and/or packed status.
3822
3823 2008-05-20  Javier Miranda  <miranda@adacore.com>
3824             Ed Schonberg  <schonberg@adacore.com>
3825
3826         * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
3827         generating dispatch tables of locally defined tagged types statically.
3828         Remove implicit if-statement that is no longer required.
3829         (Expand_Dispatching_Call): If this is a call to an instance of the
3830         generic dispatching constructor, the type of the first argument may be
3831         a subtype of Tag, so always use the base type to recognize this case.
3832
3833 2008-05-20  Thomas Quinot  <quinot@adacore.com>
3834
3835         * exp_dist.adb
3836         (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
3837         and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
3838         assigning NULL into the result, to avoid a spurious warning.
3839         (Add_RACW_Features, case Same_Scope): Add assertion that designated type
3840         is not frozen.
3841         (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
3842         type.
3843         (Build_From_Any_Function, Build_To_Any_Function,
3844         Build_TypeCode_Function): For a type that has user-specified stream
3845         attributes, use an opaque sequence of octets as the representation.
3846
3847 2008-05-20  Kevin Pouget  <pouget@adacore.com>
3848
3849         * exp_smem.ads, exp_smem.adb: Construction of access and assign
3850         routines has been replaced by an instantiation of
3851         System.Shared_Storage.Shared_Var_Procs generic package, while expanding
3852         shared variable declaration.
3853         Calls to access and assign routines have been replaced by calls to
3854         Read/Write routines of System.Shared_Storage.Shared_Var_Procs
3855         instantiated package.
3856
3857         * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
3858         It identifies the new generic package added in s-shasto.
3859
3860         * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
3861         is instantiated for each shared passive variable. It provides
3862         supporting procedures called upon each read or write access by the
3863         expanded code.
3864
3865         * sem_attr.adb:
3866         For this runtime unit (always compiled in GNAT mode), we allow
3867         stream attributes references for limited types for the case where
3868         shared passive objects are implemented using stream attributes,
3869         which is the default in GNAT's persistent storage implementation.
3870
3871 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3872
3873         * freeze.adb
3874         (Freeze_Enumeration_Type): For a subtype that inherits a foreign
3875         convention from its base type, do not set the type to that of integer,
3876         because it may inherit a size clause.
3877         Warn on a size clause with a size different
3878         from that of Integer, if the type has convention C.
3879
3880 2008-05-20  Vincent Celier  <celier@adacore.com>
3881
3882         * gnatname.adb
3883         (Scan_Args): Rewrite to take into account new switch --and to separate
3884         arguments into sections.
3885         (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
3886         section, then Finalize.
3887
3888 2008-05-20  Tristan Gingold  <gingold@adacore.com>
3889
3890         * init.c: Enable stack probing on ppc-linux.
3891
3892         * tracebak.c: Add symbolic traceback for ppc-linux.
3893
3894         * system-linux-ppc.ads: Enable stack probing on ppc-linux.
3895
3896 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
3897
3898         * Makefile.in
3899         (common-tools): New rule, to avoid parallel build failure on gnat tools.
3900         Reenable parallel builds on this Makefile.
3901
3902         * Make-lang.in: Update dependencies.
3903
3904 2008-05-20  Robert Dewar  <dewar@adacore.com>
3905
3906         * opt.ads (Treat_Restrictions_As_Warnings): New switch
3907
3908         * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
3909         Treat_Restrictions_As_Warnings.
3910
3911         * switch-c.adb: Recognize new switch -gnatr
3912
3913         * usage.adb: Add line for -gnatr
3914
3915 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
3916
3917         * par-ch3.adb
3918         (P_Access_Definition): Change the error message when parsing "access
3919         all" in Ada 95 mode. The message no longer forces the user to recompile
3920         in 05 mode only to discover that anonymous access types are not allowed
3921         to have "all".
3922
3923 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
3924
3925         * par-ch9.adb
3926         (P_Protected): Update the error message on missing "-gnat05" switch when
3927         using interfaces in conjunction with protected types. Remove the
3928         incorrect error message associated with the presence of "private" after
3929         a "with".
3930
3931 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3932
3933         * sem_aggr.adb: Update comments.
3934         Improve previous change for PR ada/17985
3935
3936 2008-05-20  Thomas Quinot  <quinot@adacore.com>
3937
3938         * sem_cat.adb
3939         (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
3940         the visible part of the spec of a remote types unit.
3941         (Validate_Remote_Access_Object_Type_Declaration):
3942         New local subprogram Is_Valid_Remote_Object_Type, replaces
3943         Is_Recursively_Limited_Private.
3944         (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
3945         non-controlling formals (and the return type, even though this is not
3946         explicit in the standard) must support external streaming.
3947         (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
3948         as above for of RAS types and RCI subprograms. (The return type is not
3949         checked yet).
3950         Update comments related to RACWs designating limited interfaces per
3951         ARG ruling on AI05-060.
3952
3953         * sem_util.ads, sem_util.adb
3954         (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
3955         Is_Remote_Call_Interface to identify RACW types in a stable and
3956         consistent way. We used to rely in this predicate on the privateness of
3957         the designated type and its ancestors, but depending on the currently
3958         visible private parts, this caused false negatives. We now uniformly
3959         rely on checks made at the point where the RACW type is declared.
3960         (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
3961
3962 2008-05-20  Javier Miranda  <miranda@adacore.com>
3963             Ed Schonberg  <schonberg@adacore.com>
3964             Hristian Kirtchev  <kirtchev@adacore.com>
3965
3966         * sem_ch3.adb
3967         (Analyze_Object_Declaration): Fix over-conservative condition
3968         restricting use of predefined assignment with tagged types that have
3969         convention CPP.
3970         (Analyze_Object_Declaration): Relax the check regarding deferred
3971         constants declared in scopes other than packages since they can be
3972         completed with pragma Import.
3973         Add missing escaping of all-caps word 'CPP' in error messages.
3974         (Build_Discriminated_Subtype): Do not inherit representation clauses
3975         from parent type if subtype already carries them, because they are
3976         inherited earlier during derivation and already include those that may
3977         come from a partial view.
3978
3979         * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
3980         Check the declarations of a subprogram body for proper deferred
3981         constant completion.
3982
3983         * sem_ch7.ads, sem_ch7.adb
3984         (Inspect_Deferred_Constant_Completion): Moved to sem_util.
3985
3986 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3987             Thomas Quinot  <quinot@adacore.com>
3988
3989         * sem_ch4.adb
3990         (Try_Indexed_Call): Handle properly a construct of the form F(S) where
3991         F is a parameterless function that returns an array, and S is a subtype
3992         mark.
3993         (Analyze_Call): Insert dereference when the prefix is a parameterless
3994         function that returns an access to subprogram and the call has
3995         parameters.
3996         Reject a non-overloaded call whose name resolves to denote
3997         a primitive operation of the stub type generated to support a remote
3998         access-to-class-wide type.
3999
4000 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
4001
4002         * sem_ch8.adb
4003         (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
4004         when there is a use clause for the same entity in the context.
4005         (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
4006         created for a stream attribute of an abstract type or interface type.
4007
4008 2008-05-20  Thomas Quinot  <quinot@adacore.com>
4009
4010         * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
4011         subprogram.
4012
4013         * sem_type.adb
4014         (Add_One_Interp): Ignore any interpretation that is a primitive
4015         operation of an RACW stub type (these primitives are only executed
4016         through dispatching, never through static calls).
4017         (Collect_Interps): When only one interpretation has been found, set N's
4018         Entity and Etype to that interpretation, otherwise Entity and Etype may
4019         still refer to an interpretation that was ignored by Add_One_Interp,
4020         in which case would end up with being marked as not overloaded but with
4021         an Entity attribute not pointing to its (unique) correct interpretation.
4022
4023 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
4024
4025         * sem_eval.adb
4026         (Eval_Slice): Warn when a slice whose discrete range is a subtype name
4027         denotes the whole array of its prefix.
4028
4029 2008-05-20  Robert Dewar  <dewar@adacore.com>
4030
4031         * sem_res.adb (Resolve_Op_Not): Warn on double negation
4032
4033 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
4034
4035         * sprint.adb
4036         (Print_Itype): Do not modify the sloc of the component type of a
4037         (packed) array itype, because it is an unrelated type whose source
4038         location is independent of the point of creation of the itype itself.
4039
4040 2008-05-20  Thomas Quinot  <quinot@adacore.com>
4041
4042         * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
4043         Append.
4044
4045 2008-05-20  Robert Dewar  <dewar@adacore.com>
4046             Vincent Celier  <celier@adacore.com>
4047
4048         * vms_data.ads: Add entry for -gnatr
4049         Put GNAT SYNC section in proper alpha order
4050         Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
4051
4052         * gnat_ugn.texi: Add documentation for new gnatname switch --and
4053         Update the style checks section
4054         Add documentation of -gnatr
4055         Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
4056         subsection the explanation how compiler checks should be disabled for
4057         gnatcheck.
4058         Update the list of Ada 95 reserved words used by in the project language
4059         Add documentation for project qualifiers.
4060         Document that abstract projects may be extended by different projects in
4061         the same project tree.
4062         Add documentation for gnatmake switch -d
4063
4064         * ug_words: Add -gnatyy VMS equivalence string.
4065         Add entry for -gnatr
4066
4067 2008-05-20  Bob Duff  <duff@adacore.com>
4068
4069         * a-rttiev.adb
4070         (Set_Handler): Remove code from both of these that implements
4071         RM-D.15(15/2), because it causes a race condition and potential
4072         deadlock.
4073         (Process_Queued_Events): Add comment explaining "exception when others
4074         => null". Add clarifying ".all", even though implicit .all is legal
4075         here.
4076
4077 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
4078
4079         * s-winext.ads: Replace representation clause by pragma Pack. Gives
4080         equivalent representation, but has the advantage of allowing
4081         compilation of this file under 64 bits platforms.
4082
4083         * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
4084
4085         * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
4086
4087         * adaint.c:
4088         Don't define dummy implementation of convert_addresses on ppc-linux.
4089
4090 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
4091
4092         * exp_ch7.adb
4093         (Expand_Ctrl_Function_Call): Do not attach result to finalization list
4094         if expression is aggregate component.
4095
4096 2008-05-20  Robert Dewar  <dewar@adacore.com>
4097
4098         * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
4099         sem_ch12.adb: Update comments. Minor reformatting.
4100
4101         * exp_ch2.adb: Typo
4102
4103         * s-unstyp.ads: Fixed some typos in comments.
4104
4105 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
4106
4107         * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
4108         type/constant.
4109
4110         * g-socthi-vxworks.ads: Update to latest socket changes.
4111
4112         * a-caldel-vms.adb: Resync with a-caldel spec.
4113
4114         * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
4115         Update comments.
4116
4117 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
4118
4119         * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
4120         for dummy types pointed to by the converted pointer types.
4121
4122 2008-05-15  Eric Botcazou  <ebotcazou@adacore.com>
4123
4124         * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
4125         of records and unions.
4126         (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
4127
4128 2008-05-14  Samuel Tardieu  <sam@rfc1149.net>
4129             Robert Dewar <dewar@adacore.com>
4130
4131         * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
4132         restrictions to the prefix of 'Old.
4133         * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
4134         * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
4135         variables.
4136
4137 2008-05-13  Eric Botcazou  <ebotcazou@adacore.com>
4138
4139         PR ada/24880
4140         PR ada/26635
4141         * utils.c (convert) <INTEGER_TYPE>: When converting an additive
4142         expression to an integral type with lower precision, use NOP_EXPR
4143         directly in a couple of special cases.
4144
4145 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
4146             Ed Schonberg <schonberg@adacore.com>
4147
4148         * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
4149         constraint expressions.
4150
4151 2008-05-12  Tomas Bily  <tbily@suse.cz>
4152
4153         * utils2.c (known_alignment, contains_save_expr_p)
4154         (gnat_mark_addressable): Use CASE_CONVERT.
4155         * decl.c (annotate_value): Likewise.
4156         * trans.c (maybe_stabilize_reference): Likewise.
4157         * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
4158         * utils.c (rest_of_record_type_compilation): Likewise.
4159         * trans.c (protect_multiple_eval, Attribute_to_gnu)
4160         (protect_multiple_eval): Likewise.
4161
4162 2008-05-08  Andreas Schwab  <schwab@suse.de>
4163
4164         * utils.c (handle_pure_attribute, init_gigi_decls): Rename
4165         DECL_IS_PURE to DECL_PURE_P.
4166
4167 2008-05-05  Eric Botcazou  <ebotcazou@adacore.com>
4168
4169         * decl.c (maybe_pad_type): Add ??? comment.
4170
4171 2008-05-03  Eric Botcazou  <ebotcazou@adacore.com>
4172
4173         * decl.c (components_to_record): Zero the alignment of the qualified
4174         union built for the variant part upon creating it.
4175
4176 2008-05-03  Eric Botcazou  <ebotcazou@adacore.com>
4177
4178         * decl.c (maybe_pad_type): Try to get a form of the type with integral
4179         mode even if the alignment is not a factor of the original size.  But
4180         make sure to create the inner field with the original size.  Reorder.
4181         * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
4182         record as always addressable.
4183         * utils.c (convert): Deal specially with conversions between original
4184         and packable versions of a record type.
4185         * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
4186         recognizing an assignment between padded objects.
4187
4188 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
4189
4190         * decl.c (make_packable_type): Resize the last component to its RM size
4191         only if it is of an aggregate type.
4192         * trans.c (call_to_gnu): Fix nit in comment.
4193         (gnat_to_gnu): Likewise.
4194
4195 2008-04-30  Samuel Tardieu  <sam@rfc1149.net>
4196
4197         * Makefile.in: Adapt sh4-linux target.
4198
4199 2008-04-29  Ed Schonberg  <schonberg@adacore.com>
4200
4201         PR ada/35792
4202         * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
4203         tagged type by an untagged protected or task type.
4204
4205 2008-04-28  Eric Botcazou  <ebotcazou@adacore.com>
4206             Tristan Gingold  <gingold@adacore.com>
4207
4208         PR ada/36007
4209         * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
4210         of aliased objects with an unconstrained nominal subtype.
4211         Cap the promotion to the effective alignment of the word mode.
4212
4213 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4214
4215         * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
4216         (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
4217         Use '&&' instead of ';'.
4218
4219 2008-04-24  Olivier Hainque  <hainque@adacore.com>
4220
4221         * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
4222         doesn't require signed arithmetic anymore.
4223
4224 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
4225
4226         * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
4227         (call_to_gnu): Don't set TREE_INVARIANT.
4228         * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
4229
4230 2008-04-22  Joel Sherrill <joel.sherrill@oarcorp.com>
4231
4232         * s-osinte-rtems.adb: Add sigalstack function.
4233         * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
4234         function. Add Alternate_Stack and Alternate_Stack_Size.
4235         Add missing process_shared field to pthread_condattr_t
4236         and change ss_low_priority to int from timespec.
4237
4238 2008-04-22  Samuel Tardieu  <sam@rfc1149.net>
4239
4240         * i-forbla.adb: Link against -llapack and -lblas by default
4241         instead of the private -lgnalasup.
4242
4243 2008-04-21  Olivier Hainque  <hainque@adacore.com>
4244
4245         Access to most C builtins from Ada
4246         * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
4247         (handle_pure_attribute, handle_novops_attribute,
4248         handle_nonnull_attribute, handle_sentinel_attribute,
4249         handle_noreturn_attribute, handle_malloc_attribute,
4250         handle_type_generic_attribute): New attribute handlers, from C fe.
4251         (gnat_internal_attribute_table): Map the new handlers.
4252         (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
4253         (init_gigi_decls): ... here.
4254         (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
4255         Move to a section dedicated to builtins processing.
4256         (build_void_list_node, builtin_type_for_size): New functions.
4257         (def_fn_type, get_nonnull_operand): Likewise.
4258         (install_builtin_elementary_type, install_builtin_function_types,
4259         install_builtin_attributes): Likewise.
4260         (fake_attribute_handler): Fake handler for attributes we don't
4261         support in Ada.
4262         (def_builtin_1): New function, worker for DEF_BUILTIN.
4263         (install_builtin_functions): New function.
4264         (gnat_install_builtins): Move to the builtins processing section.
4265         Now calling the newly introduced installers.
4266
4267 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
4268
4269         * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
4270         constant objects, but not exceptions.
4271         * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
4272         compatibility test.
4273         * utils.c (create_var_decl_1): Likewise.
4274         * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
4275         the type when copying to padded object and the source is a constructor.
4276
4277 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4278
4279         * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
4280         alignment, reset it to zero if it would end up not being greater
4281         than that of the type.
4282
4283 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4284
4285         * decl.c (maybe_pad_type): Only generate the XVS parallel type if
4286         the padded type has a variable size.
4287
4288 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4289
4290         * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
4291         target pointer mechanism as soon as the size is not constant.
4292
4293 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4294
4295         * gigi.h (create_var_decl_1): Declare.
4296         (create_var_decl): Turn into a macro invoking create_var_decl_1.
4297         (create_true_var_decl): Likewise.
4298         * utils.c (create_var_decl_1): Make global and reorder parameters.
4299         (create_var_decl): Delete.
4300         (create_true_var_decl): Likewise.
4301
4302 2008-04-17  Eric Botcazou  <ebotcazou@adacore.com>
4303
4304         * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
4305         objects by default.
4306         * fe.h (Debug_Flag_Dot_A): Delete.
4307         * debug.adb (-gnatd.a): Update documentation.
4308
4309 2008-04-17  Samuel Tardieu  <sam@rfc1149.net>
4310
4311         * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
4312         "not null" parameter.
4313
4314 2008-04-17  Samuel Tardieu  <sam@rfc1149.net>
4315
4316         * g-socket.adb: Add a message "IPv6 not supported" to the
4317         Socket_Error exception.
4318
4319 2008-04-16  Samuel Tardieu  <sam@rfc1149.net>
4320
4321         PR ada/29015
4322         * sem_ch12.adb (Instantiate_Type): Check whether the full view of
4323         the type is known instead of the underlying type.
4324
4325 2008-04-15  Ed Schonberg  <schonberg@adacore.com>
4326
4327         PR ada/22387
4328         * exp_ch5.adb (Expand_Assign_Record): Within an initialization
4329         procedure for a derived type retrieve the discriminant values from
4330         the parent using the corresponding discriminant.
4331
4332 2008-04-15  Samuel Tardieu  <sam@rfc1149.net>
4333             Gary Dismukes  <dismukes@adacore.com>
4334
4335         PR ada/28733
4336         * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
4337         which is not an entity (and hence not a package).
4338         (End_Use_Package): Ditto.
4339
4340 2008-04-15  Ed Schonberg  <schonberg@adacore.com>
4341
4342         PR ada/16086
4343         * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
4344         protected operation that matches the signature, not only an entry, a
4345         regular subprogram or a literal.
4346
4347 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4348
4349         * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
4350         * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
4351         if a size or alignment is specified.  Do not take into account
4352         alignment promotions for the computation of the object's size.
4353         <type>: Call maybe_pad_type only if a size or alignment is specified.
4354         (maybe_pad_type): Really reuse the RM_Size of the original type if
4355         requested.
4356         * trans.c (Attribute_to_gnu): Fix a couple of nits.
4357         * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
4358         statements.  Use the padded view of the type when copying between
4359         padded objects of the same underlying type.
4360
4361 2008-04-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4362
4363         * vms_data.ads: Fix typo in constant.
4364         * gen-soccon.c: Fix typo in error string.
4365         * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
4366         Fix typos.
4367         * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
4368         bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
4369         erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
4370         exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
4371         exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
4372         g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
4373         mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
4374         s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
4375         s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
4376         sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
4377         sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
4378         sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
4379         sinfo.ads: Fix typos in comments.
4380
4381 2008-04-14  Robert Dewar  <dewar@adacore.com>
4382
4383         * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
4384         to every non-object and change error message.
4385
4386 2008-04-14  Robert Dewar  <dewar@adacore.com>
4387
4388         * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
4389         * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
4390         directly.
4391
4392 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4393
4394         PR ada/18680
4395         * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
4396         apply pragma Linker_Section on type.
4397
4398 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4399
4400         PR ada/16098
4401         * sem_prag.adb (Error_Pragma_Ref): New.
4402         (Process_Convention): Specialized message for non-local
4403         subprogram renaming. Detect the problem in homonyms as well.
4404
4405 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4406
4407         PR ada/15915
4408         * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
4409         * sem_ch12.adb (Instantiate_Object): Use it.
4410         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
4411         storage pool denotes a variable as per RM 13.11(15).
4412
4413 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4414
4415         * sem_util.ads, sem_util.adb (In_Subprogram): New function.
4416         * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
4417
4418 2008-04-14  Rolf Ebert  <rolf.ebert.gcc@gmx.de>
4419
4420         PR ada/20822
4421         * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
4422         line endings even on non-Unix platforms.
4423
4424 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4425
4426         PR ada/35050
4427         * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
4428         renaming information.
4429
4430 2008-04-13  Samuel Tardieu  <sam@rfc1149.net>
4431
4432         PR ada/17985
4433         * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
4434         itself.
4435
4436 2008-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4437
4438         * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
4439         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
4440         snames.ads, sprint.adb, stand.ads, stringt.ads,
4441         styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
4442         switch.ads, sysdep.c, table.adb, table.ads,
4443         targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
4444         trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
4445         uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
4446         vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
4447         widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
4448         xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
4449         Fix comment typos.
4450
4451         * sem_ch10.adb, sem_ch10.ads,
4452         sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
4453         sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
4454         sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
4455         sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
4456         sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
4457         sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
4458         sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
4459         sem_warn.ads: Fix comment typos.
4460
4461         * s-secsta.adb, s-sequio.ads, s-shasto.ads,
4462         s-soflin.ads, s-stalib.ads, s-stausa.adb,
4463         s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
4464         s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
4465         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
4466         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
4467         s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
4468         s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
4469         s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
4470         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
4471         s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
4472         s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
4473         s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
4474         s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
4475         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
4476         scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
4477         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
4478         sem_cat.adb, sem_cat.ads: Fix comment typos.
4479
4480 2008-04-12  Joel Sherrill  <joel@oarcorp.com>
4481
4482         PR ada/35825
4483         * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
4484
4485 2008-04-12  Arnaud Charlet  <charlet@adacore.com>
4486
4487         * s-linux-hppa.ads: Fix syntax errors.
4488
4489 2008-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4490
4491         * gnat_ugn.texi: Fix typos.
4492         * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
4493         restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
4494         s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
4495         s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
4496         s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
4497         s-finimp.adb, s-finroo.ads, s-fishfl.ads,
4498         s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
4499         s-hibaen.ads, s-htable.ads, s-imgcha.adb,
4500         s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
4501         s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
4502         s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
4503         s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
4504         s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
4505         s-osinte-darwin.ads, s-osinte-freebsd.ads,
4506         s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
4507         s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
4508         s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
4509         s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
4510         s-parame-hpux.ads, s-parame-vms-alpha.ads,
4511         s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
4512         s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
4513         s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
4514         s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
4515         s-rident.ads: Fix comment typos.
4516
4517 2008-04-09  Samuel Tardieu  <sam@rfc1149.net>
4518
4519         PR ada/28305
4520         * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
4521         environment if generic instance is a top-level one.
4522
4523 2008-04-09  Doug Rupp  <rupp@adacore.com>
4524
4525         * decl.c (validate_size): Set minimum size for fat pointers same as
4526         access types. Code clean ups.
4527
4528         * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
4529         (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
4530
4531         * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
4532
4533         * s-crtl.ads (malloc32) New function, alias for malloc
4534         (realloc32) New function, alias for realloc
4535
4536         * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
4537
4538         * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
4539         allocator size is 32 and default pointer size is 64.
4540         (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
4541         lhs type if smaller, whatever the modes.
4542
4543         * gigi.h (malloc32_decl): New macro definition
4544
4545         * utils.c (init_gigi_decls): New malloc32_decl
4546         Various code clean ups.
4547
4548         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
4549         Task_Address vice System.Address.
4550
4551         * s-taspri-vms.ads: Import System.Aux_DEC
4552         (Task_Address): New subtype of System.Aux_DEC.Short_Address
4553         (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
4554
4555         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
4556         Task_Address vice System.Address.
4557
4558         * s-inmaop-vms.adb: Import System.Task_Primitives
4559         (To_Address): Unchecked convert to Task_Address vice System.Address
4560
4561         * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
4562         expires now.
4563         (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
4564         (To_Address) Unchecked convert to Task_Address vice System.Address
4565
4566         * s-tpopde-vms.adb: Remove unnecessary warning pragmas
4567
4568         * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
4569
4570 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4571
4572         * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
4573         (fdesc_type_node): Define.
4574         (null_fdesc_node): Likewise.
4575         * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
4576         uses descriptors for vtables and the type comes from a dispatch table,
4577         return the descriptor type.
4578         * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
4579         uses descriptors for vtables and the type comes from a dispatch table,
4580         build a descriptor in the static case and copy the existing one in the
4581         non-static case.
4582         (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
4583         the type is a pointer-to-subprogram coming from a dispatch table,
4584         return the null descriptor.
4585         <N_Unchecked_Type_Conversion>: If the target uses descriptors for
4586         vtables, the source type is the descriptor type and the target type
4587         is a pointer type, first build the pointer.
4588         * utils.c (init_gigi_decls): If the target uses descriptors for vtables
4589         build the descriptor type and the null descriptor.
4590
4591 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4592
4593         * decl.c (prepend_attributes): Fix typo.
4594         * trans.c (Pragma_to_gnu): Likewise.
4595         * utils.c (gnat_genericize): Likewise.
4596
4597 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4598             Richard Kenner  <kenner@adacore.com>
4599
4600         * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
4601         * decl.c (gnat_to_gnu_entity): Adjust for above change.
4602         <E_Record_Type>: Try to get a better form of the component for
4603         packing, even if it has an integral mode.
4604         <E_Record_Subtype>: Likewise.
4605         * trans.c (gnat_to_gnu): Do not require BLKmode for the special
4606         exception suppressing the final conversion between record types.
4607
4608 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4609
4610         * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
4611         alignment for space, promote the alignment of non-scalar variables with
4612         no size and alignment.
4613         * gigi.h (gnat_types_compatible_p): Declare.
4614         * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
4615         * trans.c (gnat_to_gnu): Revert revision 129339 change.  Minor cleanup.
4616         * utils.c (gnat_types_compatible_p) : New predicate.
4617         (convert): Use it throughout to test for cases where a mere view
4618         conversion is sufficient.
4619         * utils2.c (build_binary_op): Minor tweaks.
4620         (build_unary_op): Likewise.
4621
4622 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4623
4624         * decl.c (adjust_packed): Expand comment.
4625
4626 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
4627
4628         * s-tasuti.ads: Use Task_Address instead of System.Address.
4629
4630         * makeutl.adb (Path_Or_File_Name): New function
4631
4632         * nlists.ads, itypes.ads: Update comments.
4633
4634         * s-crtl.ads (malloc32, realloc32): New functions.
4635
4636         * s-auxdec.ads (Short_Address_Size): New constant.
4637
4638         * a-taside.adb, s-tasdeb.adb: Use Task_Address.
4639
4640         * s-ststop.ads, s-ststop.adb: New file.
4641
4642         * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
4643         Minor reformatting.
4644
4645 2008-04-08  Pascal Obry  <obry@adacore.com>
4646
4647         * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
4648         (Stop_Bits_Number): New type.
4649         (Parity_Check): Likewise.
4650         (Set): Add parameter to set the number of stop bits and
4651         the parity. Parameter timeout is now a duration instead
4652         of a plain integer.
4653
4654         * g-sercom-linux.adb:
4655         Implement the stop bits and parity support for GNU/Linux.
4656         Fix handling of timeout, it must be given in tenth of seconds.
4657
4658         * g-sercom-mingw.adb:
4659         Implement the stop bits and parity support for Windows.
4660         Use new s-win32.ads unit instead of declaring Win32 services
4661         directly into this body.
4662         Update handling of timeout as now a duration.
4663
4664         * s-win32.ads, s-winext.ads: New files.
4665
4666 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4667             Arnaud Charlet  <charlet@adacore.com>
4668
4669         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
4670
4671         s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
4672         s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
4673
4674         * s-osinte-lynxos-3.ads,
4675         (Alternate_Stack): Remove when not needed. Simplify declaration
4676         otherwise.
4677         (Alternate_Stack_Size): New constant.
4678
4679         s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
4680         'Unrestricted_Access.
4681
4682         * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
4683         s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
4684         s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
4685         s-osinte-solaris.ads, s-osinte-vms.ads
4686         (SA_ONSTACK): New constant.
4687         (stack_t): New record type.
4688         (sigaltstack): New imported function.
4689         (Alternate_Stack): New imported variable.
4690         (Alternate_Stack_Size): New constant.
4691
4692         * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
4693
4694         * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
4695         s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
4696         s-taspri-vms.ads (Task_Address): New subtype of System.Address
4697         (Task_Address_Size): New constant size of System.Address
4698         (Alternate_Stack_Size): New constant.
4699
4700         * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
4701         (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
4702         Establish the alternate stack if the platform makes use of n alternate
4703         signal stack for stack overflows.
4704         (Create_Task): Take into account the alternate stack in the stack size.
4705         (Initialize): Save the address of the alternate stack into the ATCB for
4706         the environment task.
4707         (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
4708
4709         * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
4710
4711         * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
4712
4713         * s-intman-posix.adb:
4714         (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
4715         alternate signal stack for stack overflows.
4716
4717         * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
4718         x86-64, adjust the saved value of the stack pointer if the signal was
4719         raised by a stack checking probe.
4720         (HP-UX section): Use global __gnat_alternate_stack as signal handler
4721         stack and only for SIGSEGV.
4722         (Linux section): Likewise on x86 and x86-64.
4723         [VxWorks section]
4724         (__gnat_map_signal): Now static.
4725         (__gnat_error_handler): Not static any more.
4726         (__gnat_adjust_context_for_raise): New function. Signal context
4727         adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
4728         propagation circuitry.
4729         (__gnat_error_handler): Second argument of a sigaction handler is a
4730         pointer, not an int, and is unused.
4731         Adjust signal context before mapping to exception.
4732         Install signal handlers for LynxOS case.
4733
4734         * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
4735         (Task_Id): Set size to Task_Address_Size
4736         (To_Task_id): Unchecked convert from Task_Address vice System.Address
4737         (To_Address): Unchecked convert to Task_Address vice System.Address
4738
4739         * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
4740         address into the ATCB if the platform makes use of an alternate signal
4741         stack for stack overflows.
4742         (Free_Task): Add call to Finalize_Attributes_Link.
4743         Add argument Relative_Deadline to pass the value specified for
4744         the task. This is not yet used for any target.
4745
4746         * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
4747         the value specified for the task.
4748
4749 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
4750
4751         (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
4752         (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
4753         s-vxwext-rtp.adb): New files.
4754
4755         * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
4756         Minor updates to accomodate changes above.
4757
4758 2008-04-08  Pascal Obry  <obry@adacore.com>
4759
4760         * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
4761         s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
4762         Use new s-win32.ads unit instead of declaration
4763         from s-osinte-mingw.ads.
4764
4765         * s-osinte-mingw.ads:
4766         Move all non tasking based interface to s-win32.ads.
4767
4768         * s-osprim-mingw.adb:
4769         Remove duplicated declarations and use s-win32.ads
4770         unit instead.
4771
4772 2008-04-08  Vincent Celier  <celier@adacore.com>
4773             Arnaud Charlet  <charlet@adacore.com>
4774
4775         * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
4776         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
4777         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
4778         mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
4779         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
4780
4781         * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
4782         mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
4783         mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
4784         mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
4785         mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
4786         mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
4787         mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
4788         mlib-tgt-specific-mingw.adb: New names.
4789
4790         * Makefile.in:
4791         On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
4792         Get rid of gnatbl.
4793         (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
4794         Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
4795         Minor updates for VMS
4796
4797         * gnatbl.c: Removed.
4798
4799 2008-04-08  Thomas Quinot  <quinot@adacore.com>
4800
4801         * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
4802         g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
4803         gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
4804         a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
4805         s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
4806         ASCII.NUL throughout.
4807
4808 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
4809             Matthew Heaney  <heaney@adacore.com>
4810
4811         * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
4812         renaming.
4813
4814         * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
4815         a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
4816         to convention for non-RM specs.
4817         Add descriptive header, and documented each operation
4818         document each operation
4819
4820 2008-04-08  Robert Dewar  <dewar@adacore.com>
4821             Bob Duff  <duff@adacore.com>
4822             Gary Dismukes  <dismukes@adacore.com>
4823             Ed Schonberg  <schonberg@adacore.com>
4824
4825         * alloc.ads: Add entries for Obsolescent_Warnings table
4826
4827         * einfo.ads, einfo.adb: Minor reformatting.
4828         (Is_Discriminal): New subprogram.
4829         (Is_Prival): New subprogram.
4830         (Is_Protected_Component): New subprogram.
4831         (Is_Protected_Private): Removed.
4832         (Object_Ref, Set_Object_Ref): Removed.
4833         (Prival, Set_Prival): Change assertion.
4834         (Privals_Chain, Set_Privals_Chain): Removed.
4835         (Prival_Link, Set_Prival_Link): New subprogram.
4836         (Protected_Operation, Set_Protected_Operation): Removed.
4837         (Protection_Object, Set_Protection_Object): New subprogram.
4838         (Write_Field17_Name): Remove case for Object_Ref.
4839         (Write_Field20_Name): Add case for Prival_Link.
4840         (Write_Field22_Name): Remove case for Protected_Operation,
4841         Privals_Chain.
4842         Add case for Protection_Object.
4843         (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
4844         so clients
4845         (Overlays_Constant): New flag
4846         (Is_Constant_Object): New predicate
4847         (Is_Standard_Character_Type): New predicate
4848         (Optimize_Alignment_Space): New flag
4849         (Optimize_Alignment_Time): New flag
4850         (Has_Postconditions): New flag
4851         (Obsolescent_Warrning): Field removed
4852         (Spec_PPC_List): New field
4853         (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
4854         subprograms to get and set the relative deadline associated to a task.
4855
4856         * exp_attr.adb (May_Be_External_Call): Account for the case where the
4857         Access attribute is part of a named parameter association.
4858         (Expand_Access_To_Protected_Op): Test for the attribute occurring
4859         within an init proc and use that directly as the scope rather than
4860         traversing up to the protected operation's enclosing scope. Only apply
4861         assertion on Is_Open_Scopes in the case the scope traversal is done.
4862         For the init proc case use the address of the first formal (_init) as
4863         the protected object reference.
4864         Implement Invalid_Value attribute
4865         (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
4866         contents of the dispatch table there is no need to duplicate the
4867         itypes associated with record types (i.e. the implicit full view
4868         of private types).
4869         Implement Enum_Val attribute
4870         (Expand_N_Attribute_Reference, case Old): Properly handle appearence
4871         within _Postconditions procedure
4872         (Expand_N_Attribute_Reference, case Result): Implement new attribute
4873
4874         * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
4875         a return statement calls a function that is not available in
4876         configurable runtime.
4877         (Analyze_If_Statement): don't optimize simple True/False cases in -O0
4878         (Expand_Non_Function_Return): Generate call to _Postconditions proc
4879         (Expand_Simple_Function_Return): Ditto
4880
4881         * frontend.adb: Add call to Sem_Aux.Initialize
4882
4883         * sem_aux.ads, sem_aux.adb: New file.
4884
4885         * par-prag.adb: Add entries for pragmas Precondition/Postcondition
4886         Add new Pragma_Relative_Deadline.
4887         Add support for pragmas Check and Check_Policy
4888
4889         * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
4890         (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
4891         (Analyze_Attribute): In case of attributes 'Alignment and 'size add
4892         missing check because they are not allowed in CPP tagged types.
4893         Add Sure parameter to Note_Possible_Modification calls
4894         Add implementation of Invalid_Value attribute
4895         Implement new attribute Has_Tagged_Values
4896         Implement Enum_Val attribute
4897         (Analyze_Attribute, case Range): Set Name_Req True for prefix of
4898         generated attributes.
4899         (Analyze_Attribute, case Result): If prefix of the attribute is
4900         overloaded, it always resolves to the enclosing function.
4901         (Analyze_Attribute, case Result): Properly deal with analysis when
4902         Postconditions are not active.
4903         (Resolve_Attribute, case Result): Properly deal with appearence during
4904         preanalysis in spec.
4905         Add processing for attribute Result
4906
4907         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
4908         for operators.
4909         (Analyze_Subprogram_Body): Install private_with_clauses when the body
4910         acts as a spec.
4911         (Check_Inline_Pragma): recognize an inline pragma that appears within
4912         the subprogram body to which it applies.
4913         (Analyze_Function_Return): Check that type of the expression of a return
4914         statement in a function with a class-wide result is not declared at a
4915         deeper level than the function.
4916         (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
4917         (Verify_Overriding_Indicator): Handle properly subprogram bodies for
4918         user- defined operators.
4919         (Install_Formals): Moved to spec to allow use from Sem_Prag for
4920         analysis of precondition/postcondition pragmas.
4921         (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
4922         Last_Formal, along with lots of comments on what this is about
4923         (Analyze_Subprogram_Body): Fix case where we move entities from the
4924         spec to the body when there are no body entities (now possible with
4925         precondition and postcondition pragmas).
4926         (Process_PPCs): New procedure
4927         (Analyze_Subprogram_Body): Add call to Process_PPCs
4928
4929         * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
4930         clause.
4931         (Pop_Scope): Restore Check_Policy_List on scope exit
4932         (Push_Scope): Save Check_Policy_List on scope entry
4933         Change name In_Default_Expression      => In_Spec_Expression
4934         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
4935         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
4936         (Analyze_Object_Renaming): Allow 'Reference as object
4937         (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
4938         (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
4939         of restriction identifier.
4940         Add Sure parameter to Note_Possible_Modication calls
4941
4942         * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
4943         Don't check for primitive operations when calling Rep_Item_Too_Late.
4944         (Process_Import_Or_Interface): Do not place flag on formal
4945         subprograms.
4946         (Analyze_Pragma, case Export): If the entity is a deferred constant,
4947         propagate information to full view, which is the one elaborated by the
4948         back-end.
4949         (Make_Inline): the pragma is effective if it applies to an internally
4950         generated subprogram declaration for a body that carries the pragma.
4951         (Analyze_Pragma, case Optimize_Alignment): Set new flag
4952         Optimize_Alignment_Local.
4953         (Analyze_PPC_In_Decl_Part): New procedure
4954         (Get_Pragma_Arg): Moved to outer level
4955         (Check_Precondition_Postcondition): Change to allow new visibility
4956         rules for package spec
4957         (Analyze_Pragma, case Check_Policy): Change placement rules to be
4958         same as pragma Suppress/Unsuppress.
4959         Change name In_Default_Expression      => In_Spec_Expression
4960         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
4961         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
4962         (Check_Precondition_Postcondition): Do proper visibility preanalysis
4963         for the case of these pragmas appearing in the spec.
4964         (Check_Enabled): New function
4965         (Initialize): New procedure
4966         (Tree_Read): New procedure
4967         (Tree_Write): New procedure
4968         (Check_Precondition_Postcondition): New procedure
4969         Implement pragmas Check and Check_Policy
4970         Merge Assert processing with Check
4971
4972         * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
4973         New warning flag -gnatw.e
4974
4975         * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
4976         returning whether a task (or main procedure) has a pragma
4977         Relative_Deadline.
4978         (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
4979         (or main procedure) has a pragma Relative_Deadline.
4980         Add Next_Pragma field to N_Pragma node
4981         (PPC_Enabled): New flag
4982         (Next_Pragma): Now used for Pre/Postcondition processing
4983
4984         * snames.h, snames.ads, snames.adb: New standard name
4985         Inherit_Source_Path
4986         Add entry for 'Invalid_Value attribute
4987         Add entry for new attribute Has_Tagged_Values
4988         Add entry for Enum_Val attribute
4989         Add new standard names Aggregate, Configuration and Library.
4990         Add _Postconditions
4991         Add _Result
4992         Add Pragma_Precondition
4993         Add Pragma_Postcondition
4994         Add Attribute_Result
4995         New standard name Archive_Builder_Append_Option
4996         (Preset_Names): Add _relative_deadline and relative_deadline definitions
4997         There was also a missing non_preemptive_within_priorities.
4998         (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
4999         Relative_Deadline.
5000         Add support for pragmas Check and Check_Policy
5001
5002         * tree_gen.adb: Call Sem_Aux.Tree_Write
5003
5004         * tree_in.adb: Call Sem_Aux.Tree_Read
5005
5006         * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
5007         sequence
5008
5009         * exp_intr.adb (Expand_Source_Info): New Build_Location calling
5010         sequence
5011
5012         * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
5013         (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
5014         Relative_Deadline.
5015         (Expand_Pragma_Check): New procedure
5016
5017         * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
5018         buffer.
5019
5020         * sinfo.adb (PPC_Enabled): New flag
5021
5022 2008-04-08  Robert Dewar  <dewar@adacore.com>
5023             Gary Dismukes  <dismukes@adacore.com>
5024             Javier Miranda  <miranda@adacore.com>
5025             Ed Schonberg  <schonberg@adacore.com>
5026
5027         * fe.h: Remove global Optimize_Alignment flag, no longer used
5028
5029         * layout.adb: Test Optimize_Alignment flags rather than global switch
5030
5031         * lib.ads, lib.adb: New OA_Setting field in library record
5032
5033         * lib-load.adb: New OA_Setting field in library record
5034
5035         * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
5036         units mentioned in limited_with_ clauses in the ali file, with an
5037         'Y' marker.
5038         New Ox fields in U line
5039
5040         * opt.adb: New flag Optimize_Alignment_Local
5041         (Check_Policy_List[_Config]): New flags
5042
5043         * opt.ads (Invalid_Value_Used): New flag
5044         New switch Optimize_Alignment_Local
5045         (Warn_On_Parameter_Order): New flag
5046         (Check_Policy_List[_Config]): New flags
5047
5048         * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
5049         limited_with clauses.
5050         New data structures for Optimize_Alignment
5051
5052         * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
5053         New procedure
5054         (Check_Consistent_Optimize_Alignment): Rework for new structure
5055         (Check_Consistent_Restrictions): Fix incorrect error message
5056
5057         sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
5058         created class-wide type (to the Parent field of the specific type).
5059         (Install_Siblings): Handle properly private_with_clauses on subprogram
5060         bodies and on generic units.
5061         (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
5062         illegal limited_with_clause that names a non-existent package.
5063         (Check_Body_Required): Determine whether a unit named a limited_with
5064         clause needs a body.
5065         (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
5066         Capture Optimize_Alignment settings to set new OA_Setting field in
5067         library record.
5068         (Build_Limited_Views): Include task and protected type declarations.
5069
5070         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
5071         case of a possible constant redeclaration where the current object is
5072         an entry index constant.
5073         (Analyze_Object_Declaration): Generate an error in case of CPP
5074         class-wide object initialization.
5075         (Analyze_Object_Declaration): Add extra information on warnings for
5076         declaration of unconstrained objects.
5077         (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
5078         conflicts with the setting of Stored_Constraint in the case where the
5079         access type entity has already been created as an E_Incomplete_Type due
5080         to a limited with clause.
5081         Use new Is_Standard_Character_Type predicate
5082         (Analyze_Object_Declaration): Apply access_constant check only after
5083         expression has been resolved, given that it may be overloaded with
5084         several access types.
5085         (Constant_Redeclaration): Additional legality checks for deferred
5086         constant declarations tha involve anonymous access types and/or null
5087         exclusion indicators.
5088         (Analyze_Type_Declaration): Set Optimize_Alignment flags
5089         (Analyze_Subtype_Declaration): Ditto
5090         (Analyze_Object_Declaration): Ditto
5091         (Analyze_Object_Declaration): Don't count tasks in generics
5092         Change name In_Default_Expression      => In_Spec_Expression
5093         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5094         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
5095         (Process_Discriminants): Additional check for illegal use of default
5096         expressions in access discriminant specifications in a type that is not
5097         explicitly limited.
5098         (Check_Abstract_Overriding): If an inherited function dispaches on an
5099         access result, it must be overridden, even if the type is a null
5100         extension.
5101         (Derive_Subprogram): The formals of the derived subprogram have the
5102         names and defaults of the parent subprogram, even if the type is
5103         obtained from the actual subprogram.
5104         (Derive_Subprogram): In the presence of interfaces, a formal of an
5105         inherited operation has the derived type not only if it descends from
5106         the type of the formal of the parent operation, but also if it
5107         implements it. This is relevant for the renamings created for the
5108         primitive operations of the actual for a formal derived type.
5109         (Is_Progenitor): New predicate, to determine whether the type of a
5110         formal in the parent operation must be replaced by the derived type.
5111
5112         * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
5113         predicate recursive to handle components that have a user-defined
5114         Initialize procedure. Handle controlled derived types whose ancestor
5115         has a user-defined Initialize procedured.
5116         (Note_Possible_Modification): Add Sure parameter, generate warning if
5117         sure modification of constant
5118         Use new Is_Standard_Character_Type predicate
5119         (Find_Parameter_Type): when determining whether a protected operation
5120         implements an interface operation, retrieve the type of the formal from
5121         the entity when the formal is an access parameter or an
5122         anonymous-access-to-subprogram.
5123         Move Copy_Parameter_List to sem_util, for use when building stubbed
5124         subprogram bodies.
5125         (Has_Access_Values): Tagged types now return False
5126         (Within_HSS_Or_If): New procedure
5127         (Set_Optimize_Alignment_Flags): New procedure
5128         Change name In_Default_Expression      => In_Spec_Expression
5129         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5130         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
5131
5132 2008-04-08  Tristan Gingold  <gingold@adacore.com>
5133
5134         * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
5135
5136 2008-04-08  Tristan Gingold  <gingold@adacore.com>
5137
5138 PR ada/10768
5139
5140         * cuintp.c: Fix 16 bits issue for AVR.
5141         On AVR, integer is 16 bits, so it can't be used to do math with
5142         Base (=32768).
5143         So use long_integer instead.
5144
5145 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5146
5147         * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
5148         System.OS_Primitives.
5149         Change type of various constants, parameters and local variables from
5150         Time to representation type OS_Time.
5151         (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
5152         Remove the declaration of constant Mili_F from several routines. New
5153         body for internal package Conversions_Operations.
5154         (Time_Of): Add default parameters for several formals.
5155
5156         * a-caldel.adb: Minor reformatting
5157
5158         * a-calend.ads, a-calend.adb: New body for internal package
5159         Conversions_Operations.
5160         (Time_Of): Add default parameters for several formals.
5161
5162         * Makefile.rtl: Add a-ststop
5163         Add Ada.Calendar.Conversions to the list of runtime files.
5164         Add g-timsta
5165
5166         * a-calcon.adb, a-calcon.ads: New files.
5167
5168 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
5169             Tristan Gingold  <gingold@adacore.com>
5170
5171         * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
5172         (Install_Restricted_Handlers): New procedure
5173         which is a simplified version of Install_Handlers that does not store
5174         previously installed.
5175
5176         * s-interr-vxworks.adb: Fix ACATS cxc3001
5177         On VxWorks interrupts can't be detached.
5178         (Install_Restricted_Handlers): New procedure.
5179
5180         * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
5181         procedure.
5182
5183 2008-04-08  Olivier Hainque  <hainque@adacore.com>
5184
5185         * s-intman-vxworks.ads, s-intman-vxworks.adb
5186         (Map_And_Raise_Exception): Remove. Was an import of only part of the
5187         required services already implemented elsewhere.
5188         (Notify_Exception): Delete body, import __gnat_error_handler instead.
5189         (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
5190         argument passed to the handler, which we need for ZCX propagation
5191         purposes.
5192
5193 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5194
5195         * adaint.h, adaint.c (__gnat_current_time_string): New routine.
5196
5197         * g-timsta.adb, g-timsta.ads: New files.
5198
5199 2008-04-08  Robert Dewar  <dewar@adacore.com>
5200
5201         * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
5202         (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
5203         (Raise_Exception_Always): Fix documentation accordingly
5204
5205 2008-04-08  Robert Dewar  <dewar@adacore.com>
5206
5207         * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
5208         Stream_Convert)
5209
5210         * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
5211         FOnly
5212
5213 2008-04-08  Javier Miranda  <miranda@adacore.com>
5214             Robert Dewar  <dewar@adacore.com>
5215             Ed Schonberg  <schonberg@adacore.com>
5216
5217         * a-tags.adb (Register_Interface_Offset): New subprogram.
5218         (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
5219         (To_Predef_Prims_Table_Ptr): Removed.
5220         (Acc_Size): Removed.
5221         (To_Acc_Size): Removed.
5222         (Parent_Size): Modified to the call the subprogram returning the size of
5223         the parent by means of the new TSD component Size_Func.
5224
5225         * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
5226         (DT_Offset_To_Top_Offset): New constant value that is used to generate
5227         code referencing the Offset_To_Top component of the dispatch table's
5228         prologue.
5229         (Prim_Ptr): New declaration of access to procedure. Used to avoid the
5230         use of 'address to initialize dispatch table slots.
5231         (Size_Func): New component of the TSD. Used by the run-time to call the
5232         size primitive of the tagged type.
5233
5234         * checks.adb (Apply_Access_Check): Avoid check when accessing the
5235         Offset_To_Top component of a dispatch table.
5236         (Null_Exclusion_Static_Checks): If the non-null access type appears in a
5237         deferred constant declaration. do not add a null expression, to prevent
5238         spurious errors when full declaration is analyzed.
5239         (Apply_Discriminant_Check): If both discriminant constraints share a
5240         node which is not static but has no side effects, do not generate a
5241         check for that discriminant.
5242         (Generate_Index_Checks): Set Name_Req to true in call to duplicate
5243         subexpr, since the prefix of an attribute is a name.
5244
5245         * checks.ads: Fix nit in comment.
5246
5247         * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
5248         and body of predefined primitives in case of CPP tagged type
5249         derivations.
5250         (Freeze_Type): Deal properly with no storage pool case
5251         (Make_Predefined_Primitive_Specs): Generate specification of abstract
5252         primitive Deep_Adjust if a nonlimited interface is derived from a
5253         limited interface.
5254         (Build_Dcheck_Functions): Create discriminant-checking functions only
5255         for variants that have some component(s).
5256         (Build_Slice_Assignment): In expanded code for slice assignment, handle
5257         properly the case where the slice bounds extend to the last value of the
5258         underlying representation.
5259         (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
5260         (Is_Variable_Size_Record): An array component has a static size if
5261         index bounds are enumeration literals.
5262
5263         * exp_disp.adb (Make_DT): Use the first subtype to determine whether
5264         an external tag has been specified for the type.
5265         (Building_Static_DT): Add missing support for private types.
5266         (Make_DT): Add declaration of Parent_Typ to ensure consistent access
5267         to the entity associated with the parent of Typ. This is done to
5268         avoid wrong access when the parent is a private type.
5269         (Expand_Interface_Conversion): Improve error message when the
5270         configurable runtime has no support for dynamic interface conversion.
5271         (Expand_Interface_Thunk): Add missing support to interface types in
5272         configurable runtime.
5273         (Expand_Dispatching_Call): remove obsolete code.
5274         (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
5275         ensure that all subtypes and aggregates associated with dispatch
5276         tables have the attribute Is_Dispatch_Table_Entity set to true.
5277         (Register_Primitive): Rename one variable to improve code reading.
5278         Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
5279         of the pointer to the 'size primitive in the TSD.
5280
5281         * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
5282         (RE_Offset_To_Top_Ptr): New entity.
5283         (RE_Register_Interface_Offset): New entity.
5284         (RE_Set_Dynamic_Offset_To_Top): New entity.
5285         (RE_Set_Offset_To_Top): Removed entity.
5286         (RE_Prim_Ptr): New entity
5287         (RE_Size_Func): New entity
5288         (RE_Size_Ptr): New entity
5289         (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
5290         (Ada_Dispatching_Child): Define this new subrange.
5291         (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
5292          RE_Time_Span, and RE_Time_Span_Zero).
5293         (RE_Unit_Table): Add new required run-time calls
5294
5295         * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
5296         children.
5297
5298         * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
5299         (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
5300          initializes the Offset_To_Top component of a dispatch table.
5301         (Build_Predef_Prims): Removed.
5302         (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
5303          its actual code.
5304         (Build_Set_Size_Function): New subprogram.
5305
5306         * exp_ch13.adb: Do not generate storage variable for storage_size zero
5307         (Expand): Handle setting/restoring flag Inside_Freezing_Actions
5308
5309 2008-04-08  Robert Dewar  <dewar@adacore.com>
5310
5311         * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
5312         computing Fore when Exp > 0
5313
5314 2008-04-08  Robert Dewar  <dewar@adacore.com>
5315
5316         * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
5317
5318         * errout.adb: Remove Big_String_Ptr declarations (now in Types)
5319         Change name Is_Style_Msg to Is_Style_Or_Info_Msg
5320
5321         * fmap.adb: Remove Big_String declarations (now in Types)
5322         (No_Mapping_File): New Boolean global variable
5323         (Initialize): When mapping file cannot be read, set No_Mapping_File to
5324         False.
5325         (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
5326         tables were empty before adding entries, open the mapping file
5327         with Truncate = True, instead of delete/re-create.
5328
5329         * fname-sf.adb: Remove Big_String declarations (now in Types)
5330
5331         * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
5332         s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
5333         big pointer types
5334
5335         * table.ads: Add for Table_Ptr'Storage_Size use 0
5336
5337         * types.ads: Add Big_String declarations
5338         Add Size_Clause of zero for big pointer types
5339
5340 2008-04-08  Vincent Celier  <celier@adacore.com>
5341
5342         * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
5343         (Usage): Add line for switch --subdirs=
5344         Add new switch -eL, to follow symbolic links when processing project
5345         files.
5346
5347         * gnatcmd.adb: Process switches -eL and --subdirs=
5348         (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
5349         Program_Name to get proper tool names when AAMP_On_Target is set.
5350         (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
5351         AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
5352         Osint.Program_Name).
5353
5354         * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
5355         (Usage): Add lines for switches -eL and --subdirs=
5356
5357         * makeusg.adb: Add line for switch --subdirs=
5358
5359         * prj.ads:
5360         (Source_Data): New Boolean component Compiled, defaulted to True
5361         (Empty_File_Name: New global variable in private part, initialized in
5362         procedure Initialize.
5363         (Subdirs_Option): New constant string
5364         (Subdirs): New String_Ptr global variable
5365         (Language_Config): New component Include_Compatible_Languages
5366         (Project_Qualifier): New type for project qualifiers
5367         (Project_Data): New component Qualifier
5368         (Project_Configuration): New component Archive_Builder_Append_Option
5369
5370         * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
5371         another imported project indicate the name of this imported project.
5372         (Check_File): When a unit is in two project files, indicate the project
5373         names and the paths of the source files for each project.
5374         (Add_Source): Set Compiled to False if compiler driver is empty. Only
5375         set object, dependency and switches file names if Compiled is True.
5376         (Process_Compiler): Allow the empty string for value of attribute Driver
5377         (Get_Directories): When Subdirs is not null and Object_Dir is not
5378          specified, locate and create if necessary the actual object dir.
5379         (Locate_Directory): When Subdirs is not empty and Create is not the
5380         empty string, locate and create if necessary the actual directory
5381         as a subdirectory of directory Name.
5382         (Check_Library_Attributes.Check_Library): Allow a project where the only
5383         "sources" are header files of file based languages to be imported by
5384         library projects, in multi-language mode (gprbuild).
5385         (Check_Library_Attributes.Check_Library): In multi-language mode
5386         (gprbuild), allow a library project to import a project with no
5387         sources, even when this is not declared explicitly.
5388         (Check_If_Externally_Built): A virtual project extending an externally
5389         built project is also externally built.
5390         (Check_Library_Attributes): For a virtual project extending a library
5391         project, inherit the library directory.
5392         (Process_Project_Level_Array_Attributes): Process new attribute
5393         Inherit_Source_Path.
5394         For projects with specified qualifiers "standard", "library" or
5395         "abstract", check that the project conforms to the qualifier.
5396         (Process_Project_Level_Simple_Attributes): Process new attribute
5397          Archive_Builder_Append_Option.
5398
5399         * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
5400         (Normalize_Compiler_Switches): Only keep compiler switches that are
5401         passed to gnat1 by the gcc driver and that are stored in the ALI file
5402         by gnat1.
5403         Do not take into account switc -save-temps
5404
5405         * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
5406         gprmake is called with -eL.
5407         (Scan_Arg): Recognize switch -eL
5408         (Usage): Add line for switch -eL
5409
5410         * prj.adb (Initialize): Initialize Empty_File_Name
5411         (Project_Empty): New component Qualifier
5412
5413         * prj-attr.ads, prj-attr.adb: New project level attribute
5414         Inherit_Source_Path.
5415         New project level attribute Archive_Builder_Append_Option
5416
5417         * prj-dect.adb: Replace System.Strings by GNAT.Strings.
5418
5419         * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
5420         <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
5421         upward compatibility.
5422
5423         * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
5424         each Trying ..." on different lines.
5425         (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
5426         is "configuration" when not in configuration. Fail when in configuration
5427         when a specified qualifier is other than "configuration".
5428
5429         * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
5430         full associative array together.
5431         (Recursive_Process): Put the project qualifier in the project data
5432
5433         * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
5434         (Set_Project_Qualifier_Of): New procedure
5435
5436 2008-04-08  Robert Dewar  <dewar@adacore.com>
5437
5438         * errout.ads: Update comments for new handling of info: messages
5439
5440         * erroutc.adb (Matches): New procedure
5441         (Warning_Specifically_Suppressed): Modified to handle multiple * chars
5442         (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
5443          info messages as well as style messages.
5444
5445         * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
5446
5447         * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
5448         subprograms.
5449         (Check_A_Call): Special "info: " warnings now have ? in the text
5450         (Elab_Warning): Use info message in static case
5451
5452 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5453
5454         * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
5455         whether an array aggregate with static bounds and scalar components
5456         should be expanded into a static constant.
5457
5458 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
5459             Ed Schonberg  <schonberg@adacore.com>
5460             Robert Dewar  <dewar@adacore.com>
5461
5462         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
5463         Has_Stream_Attribute_ Definition when checking for available stream
5464         attributes on parameters of a limited type in Ada 2005. Necessary for
5465         proper recognition of visible stream attribute clauses.
5466         (Has_Stream_Attribute_Definition): If the type is derived from a
5467         private type, then use the derived type's underlying type for checking
5468         whether it has stream attributes.
5469         (Validate_Object_Declaration): The check for a user-defined Initialize
5470         procedure applies also to types with controlled components or a
5471         controlled ancestor.
5472         Reject an object declaration in a preelaborated unit if the type is a
5473         controlled type with an overriding Initialize procedure.
5474         (Validate_Remote_Access_To_Class_Wide_Type): Return without further
5475         checking when the parent of a dereference is a selected component and
5476         the name has not been analyzed.
5477
5478         * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
5479         prefixes that are invalid explicit dereferences of remote
5480         access-to-class-wide values, first checking whether the selected
5481         component is a prefixed form of call to a tagged operation.
5482         (Analyze_Call): Remove code that issues an error for limited function
5483         calls in illegal contexts, as we now support all of the contexts that
5484         were forbidden here.
5485         Allow a function call that returns a task.and appears as the
5486         prefix of a selected component.
5487         (Analyze_Reference): Give error message if we try to make a 'Reference
5488         for an object that is atomic/aliased without its type having the
5489         corresponding attribute.
5490         (Analyze_Call): Remove condition checking for attributes to allow
5491         calls to functions with inherently limited results as prefixes of
5492         attributes. Remove related comment about Class attributes.
5493         (Analyze_Selected_Component): If the prefix is a remote type, check
5494         whether this is a prefixed call before reporting an error.
5495         (Complete_Object_Operation): If the controlling formal is an access to
5496         variable reject an actual that is a constant or an access to one.
5497         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
5498         primitive operations from base type.
5499
5500         * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
5501         build-in-place
5502         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
5503         (Expand_N_Selected_Component): Test for prefix that is a build-in-place
5504         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
5505         (Expand_N_Slice): Test for prefix that is a build-in-place function call
5506         and call Make_Build_In_Place_Call_In_Anonymous_Context.
5507         (Analyze_Call): Remove code that issues an error for limited function
5508         calls in illegal contexts, as we now support all of the contexts that
5509         were forbidden here.
5510         New calling sequence for Get_Simple_Init_Val
5511         (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
5512         (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
5513
5514 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5515             Ed Schonberg  <schonberg@adacore.com>
5516             Robert Dewar  <dewar@adacore.com>
5517
5518         * exp_ch2.adb: Minor reformatting.
5519         (Expand_Entry_Index_Parameter): Set the type of the identifier.
5520         (Expand_Entry_Reference): Add call to Expand_Protected_Component.
5521         (Expand_Protected_Component): New routine.
5522         (Expand_Protected_Private): Removed.
5523         Add Sure parameter to Note_Possible_Modification calls
5524
5525         * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
5526         generated subprogram declaration must inherit the overriding indicator
5527         from the instantiation node.
5528         (Validate_Access_Type_Instance): If the designated type of the actual is
5529         a limited view, use the available view in all cases, not only if the
5530         type is an incomplete type.
5531         (Instantiate_Object):  Actual is illegal if the formal is null-excluding
5532         and the actual subtype does not exclude null.
5533         (Process_Default): Handle properly abstract formal subprograms.
5534         (Check_Formal_Package_Instance): Handle properly defaulted formal
5535         subprograms in a partially parameterized formal package.
5536         Add Sure parameter to Note_Possible_Modification calls
5537         (Validate_Derived_Type_Instance): if the formal is non-limited, the
5538         actual cannot be limited.
5539         (Collect_Previous_Instances): Generate instance bodies for subprograms
5540         as well.
5541
5542         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
5543         try to set RM_Size.
5544         Add Sure parameter to Note_Possible_Modification calls
5545         (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
5546         (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
5547         constant overlaid by variable and issue warning.
5548         Use new Is_Standard_Character_Type predicate
5549         (Analyze_Record_Representation_Clause): Check that the specified
5550         Last_Bit is not less than First_Bit - 1.
5551         (Analyze_Attribute_Definition_Clause, case Address): Check for
5552         self-referential address clause
5553
5554         * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
5555         detection mechanism when the lhs is a prival.
5556         (Analyze_Assignment): Call Check_Unprotected_Access to detect
5557         assignment of a pointer to protected data, to an object declared
5558         outside of the protected object.
5559         (Analyze_Loop_Statement): Check for unreachable code after loop
5560         Add Sure parameter to Note_Possible_Modication calls
5561         Protect analysis from previous syntax error such as a scope mismatch
5562         or a missing begin.
5563         (Analyze_Assignment_Statement): The assignment is illegal if the
5564         left-hand is an interface.
5565
5566         * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
5567         violation of restriction No_Implicit_Conditionals
5568         Add Sure parameter to Note_Possible_Modication calls
5569         Use new Is_Standard_Character_Type predicate
5570         (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
5571         call as operator. Fixes problems (e.g. validity checking) which
5572         come from the result looking as though it does not come from source).
5573         (Resolve_Call): Check case of name in named parameter if style checks
5574         are enabled.
5575         (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
5576         from the checking that such calls should not occur from an entry body.
5577         (Resolve_Call): If the return type of an Inline_Always function
5578         requires the secondary stack, create a transient scope for the call
5579         if the body of the function is not available for inlining.
5580         (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
5581         that are actuals for in-out formals.
5582         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
5583         primitive operations from base type.
5584         (Analyze_Selected_Component): If the context is a call to a protected
5585         operation the parent may be an indexed component prior to expansion.
5586         (Resolve_Actuals): If an actual is of a protected subtype, use its
5587         base type to determine whether a conversion to the corresponding record
5588         is needed.
5589         (Resolve_Short_Circuit): Handle pragma Check
5590
5591         * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
5592         Use new Is_Standard_Character_Type predicate
5593         (Eval_Relational_Op): Catch more cases of string comparison
5594
5595 2008-04-08  Robert Dewar  <dewar@adacore.com>
5596             Gary Dismukes  <dismukes@adacore.com>
5597
5598         * s-rident.ads: Add No_Default_Initialization restriction
5599
5600         * exp_tss.adb:
5601         (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
5602         (Set_TSS): Handle No_Default_Initialization case
5603
5604         * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
5605         No_Default_Initialization
5606         (Expand_N_Subprogram_Body): Remove redundant initialization of out
5607         parameters when Normalize_Scalars is active.
5608         (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
5609         Fix casing error in formal parameter name in call
5610         (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
5611         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
5612         dispatching call on VM targets.
5613
5614 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
5615             Thomas Quinot  <quinot@adacore.com>
5616
5617         * exp_ch7.adb (Find_Final_List): Change the test for generating a
5618         selected component from an access type's Associated_Final_Chain to
5619         check for the presence of that field, rather than assuming it exists
5620         for all named access types.
5621         (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
5622         procedure to call at the end of the generated cleanup procedure.
5623         (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
5624         and an At_End_Proc already exists in the handled sequence of statements
5625         for which cleanup actions are being expanded, the original cleanup
5626         action must be preserved.
5627
5628 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5629             Ed Schonberg  <schonberg@adacore.com>
5630             Robert Dewar  <dewar@adacore.com>
5631             Gary Dismukes  <dismukes@adacore.com>
5632
5633         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
5634         Build_Unprotected_Subprogram_Body): Generate debug info for
5635         declarations related to the handling of private data in task and
5636         protected types.
5637         (Debug_Private_Data_Declarations): New subprogram.
5638         (Install_Private_Data_Declarations): Remove all debug info flagging.
5639         This is now done by Debug_Private_Data_Declarations at the correct
5640         stage of expansion.
5641         (Build_Simple_Entry_Call): If the task name is a function call, expand
5642         the prefix into an object declaration, and make the surrounding block a
5643         task master.
5644         (Build_Master_Entity): An internal block is a master if it wraps a call.
5645         Code reformatting, update comments. Code clean up.
5646         (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
5647         (Replicate_Entry_Formals): If the formal is an access parameter or
5648         anonymous access to subprogram, copy the original tree to create new
5649         entities for the formals of the subprogram.
5650         (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
5651         for tasks to store the value passed using pragma Relative_Deadline.
5652         (Make_Task_Create_Call): Add the Relative_Deadline argument to the
5653         run-time call to create a task.
5654         (Build_Wrapper_Spec): If the controlling argument of the interface
5655         operation is an access parameter with a non-null indicator, use the
5656         non-null indicator on the wrapper.
5657
5658         * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
5659         present, which it may not be in the case where the type entity is an
5660         incomplete view brought in by a limited with.
5661         (Analyze_Task_Type): Only retrieve the full view when present, which it
5662         may not be in the case where the type entity is an incomplete view brought
5663         in by a limited with.
5664         (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
5665         private components of a protected type, to prevent the generation of freeze
5666         nodes for which there is no proper scope of elaboration.
5667
5668         * exp_util.ads, exp_util.adb
5669         (Remove_Side_Effects): If the expression is a function call that returns a
5670         task, expand into a declaration to invoke the build_in_place machinery.
5671         (Find_Protection_Object): New routine.
5672         (Remove_Side_Effects): Also make a copy of the value
5673         for attributes whose result is of an elementary type.
5674         (Silly_Boolean_Array_Not_Test): New procedure
5675         (Silly_Boolean_Array_Xor_Test): New procedure
5676         (Is_Volatile_Reference): New function
5677         (Remove_Side_Effects): Use Is_Volatile_Reference
5678         (Possible_Bit_Aligned_Component): Handle slice case properly
5679
5680         * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
5681         case test to Exp_Util
5682         (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
5683
5684 2008-04-08  Thomas Quinot  <quinot@adacore.com>
5685
5686         * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
5687         in call
5688         (Add_RACW_Features): When processing an RACW in another unit than the
5689         main unit, set Body_Decls to No_List to indicate that the bodies of
5690         the type's TSS must not be generated.
5691         (GARLIC_Support.Add_RACW_Read_Attribute,
5692         GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
5693         Body_Decls is No_List.
5694         (PolyORB_Support.Add_RACW_Read_Attribute,
5695         PolyORB_Support.Add_RACW_Write_Attribute,
5696         PolyORB_Support.Add_RACW_From_Any,
5697         PolyORB_Support.Add_RACW_To_Any,
5698         PolyORB_Support.Add_RACW_TypeCode): Same.
5699         (Transmit_As_Unconstrained): New function.
5700         (Build_Ordered_Parameters_List): Use the above to order parameters.
5701         (GARLIC_Support.Build_General_Calling_Stubs):
5702         Use the above to determine which parameters to unmarshall using 'Input
5703         at the point where their temporary is declared (as opposed to later on
5704         with a 'Read call).
5705         (PolyORB_Support.Build_General_Calling_Stubs):
5706         Use the above to determine which parameters to unmarshall using From_Any
5707         at the point where their temporary is declared (as opposed to later on
5708         with an assignment).
5709
5710 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5711
5712         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
5713         an Input function for an access type, do not perform default
5714         initialization on the local variable that receives the value, to
5715         prevent spurious warnings when the type is null-excluding.
5716
5717 2008-04-08  Robert Dewar  <dewar@adacore.com>
5718             Ed Schonberg  <schonberg@adacore.com>
5719
5720         * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
5721         units.
5722         (Size_Known): Generic formal scalar types have known at compile
5723         time size, so remove check.
5724         Fix casing error in formal parameter name in call
5725         (Freeze_Subprogram): If the subprogram is a user-defined operator,
5726         recheck its overriding indication.
5727
5728 2008-04-08  Vincent Celier  <celier@adacore.com>
5729
5730         * gnat1drv.adb: Send all messages indicating an error to standard error
5731
5732 2008-04-08  Robert Dewar  <dewar@adacore.com>
5733
5734         * gnatbind.adb (Restriction_Could_Be_Set): New procedure
5735         (List_Applicable_Restrictions): Do not list existing restrictions
5736
5737 2008-04-08  Thomas Quinot  <quinot@adacore.com>
5738
5739         * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
5740         add a pointer to generic sockets literature
5741         do not mention that the given example is "typical" usage.
5742         Remove obsolete comment about multicast not being supported on Windows.
5743         (Connect_Socket): Make Server mode IN rather than IN OUT
5744         since this formal is never modified.
5745
5746 2008-04-08  Robert Dewar  <dewar@adacore.com>
5747
5748         * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
5749         the declaration for some different entity.
5750         (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
5751         list is precent (following the parent subtype indication), display
5752         appropriate "and" keyword.
5753
5754         * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
5755         Remove unnecessary calls to Init_Size_Align and Init_Esize.
5756         Add notes on use of Parent field of an Itype
5757
5758 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5759             Robert Dewar  <dewar@adacore.com>
5760             Gary Dismukes  <dismukes@adacore.com>
5761
5762         * lib-xref.adb (Is_On_LHS): Remove dead code
5763         (Output_Overriden_Op): If the overridden operation is itself inherited,
5764         list the ancestor operation, which is the one whose body or absstract
5765         specification is actually being overridden. For source navigation
5766         purposes.
5767
5768         * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
5769         operation is primitive for the type.
5770         (Declare_Inherited_Private_Subprograms): If the new operation overrides
5771         an inherited private subprogram, set properly the Overridden_Operation
5772         attribute, for better cross-reference information.
5773         (Analyze_Package_Specification): Do late analysis of spec PPCs
5774         (Install_Private_Declaration, Uninstall_Declarations): Save/restore
5775         properly the full view and underlying full views of a private type in a
5776         child unit, whose full view is derived from a private type in a parent
5777         unit, and whose own full view becomes visible in the child body.
5778
5779         * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
5780         primitive operation after the type has been frozen, add an explicit
5781         reference to the type and the operation, because other primitive
5782         references have been emitted already.
5783         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
5784         dispatching call on VM targets.
5785
5786 2008-04-08  Vincent Celier  <celier@adacore.com>
5787             Thomas Quinot  <quinot@adacore.com>
5788
5789         * make.adb: (Gnatmake_Called): Remove, no longer necessary
5790         (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
5791         is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
5792         (Insert_Project_Sources): Take into account index in multi-unit source
5793         files.
5794         After building a library project, delete all temporary files.
5795         (Initialize): Reset current output after parsing project file.
5796         (Collect_Arguments_And_Compile): Never insert in the queue the sources
5797         of library projects that are externally built.
5798         Put file name in error and inform messages if -df is used
5799         (Display): If invoked with -d7, do not display path names, but only
5800         file names.
5801
5802         * makeutl.ads (Path_Or_File_Name): New function
5803         (Path_Or_File_Name): New function
5804
5805 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
5806
5807         * Make-lang.in: Disable warnings during first stage of bootstrap
5808         Get rid of gnatbl.
5809         Update dependencies.
5810
5811 2008-04-08  Vincent Celier  <celier@adacore.com>
5812
5813         * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
5814         case to decide if ALI object file is included in library.
5815         (Build_Library): Never attempt to build a library if the project is
5816         externally built.
5817
5818 2008-04-08  Thomas Quinot  <quinot@adacore.com>
5819
5820         * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
5821         (No_List) is defined to return Empty.
5822
5823 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
5824
5825         * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
5826         documentation.
5827         Update comments.
5828         (Read_Default_Search_Dirs): Do not consider spaces as path separators
5829         because spaces may be part of legal paths.
5830
5831 2008-04-08  Robert Dewar  <dewar@adacore.com>
5832
5833         * par-ch11.adb (P_Exception_Handler): Check indentation level for
5834         handler
5835
5836 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5837
5838         * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
5839         in a type declaration, if this is not an interface declaration or
5840         private type extension.
5841
5842 2008-04-08  Vincent Celier  <celier@adacore.com>
5843
5844         * prj-util.adb (Executable_Of): New String parameter Language. When
5845         Ada_Main is False and Language is not empty, attempt to remove the body
5846         suffix or the spec suffix of the language to get the base of the
5847         executable file name.
5848         (Put): New Boolean parameter Lower_Case, defauilted to False. When
5849         Lower_Case is True, put the value in lower case in the name list.
5850         (Executable_Of): If there is no executable suffix in the configuration,
5851         then do not modify Executable_Extension_On_Target.
5852
5853         * prj-util.ads (Executable_Of): New String parameter Language,
5854         defaulted to the empty string.
5855         (Put): New Boolean parameter Lower_Case, defauilted to False
5856
5857 2008-04-08  Robert Dewar  <dewar@adacore.com>
5858
5859         * scng.adb (Scan_Identifier): Handle case of identifier starting with
5860         wide character using UTF-8 encoding.
5861
5862 2008-04-08  Javier Miranda  <miranda@adacore.com>
5863
5864         * sem.adb (Analyze): Consider case in which we analyze an empty node
5865         that was generated by a call to a runtime function that is not
5866         available under the configurable runtime.
5867
5868         * sem.ads (Inside_Freezing_Actions): New flag.
5869         (Save_Check_Policy_List): New field in scope stack entry
5870
5871 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5872             Robert Dewar  <dewar@adacore.com>
5873
5874         * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
5875         the ancestor part of an extension aggregate for a limited type.
5876         (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
5877         enumeration index bounds.
5878         (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
5879         when array is too short.
5880         (Check_Expr_OK_In_Limited_Aggregate): Move function
5881         Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
5882         change name).
5883         (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
5884         Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
5885         component associations.
5886         (Check_Non_Limited_Type): Moved to outer level and renamed.
5887         (Resolve_Record_Aggregate): In an extension aggregate, an association
5888         with a box initialization can only designate a component of the
5889         extension, not a component inherited from the given ancestor
5890
5891         * sem_case.adb: Use new Is_Standard_Character_Type predicate
5892
5893 2008-04-08  Robert Dewar  <dewar@adacore.com>
5894
5895         * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
5896         negative scale
5897         (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
5898         Properly handle case where Aft > Scale and input number is less than
5899         one.
5900
5901 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5902
5903         * s-stoele.ads, s-soflin.ads: Move the location of
5904         Dummy_Communication_Block from System.Storage_Elements to
5905         System.Soft_Links.
5906
5907         * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
5908         emulate Communication_Block in certain scenarios.
5909
5910 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5911
5912         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
5913         subprogram.
5914         Add new subtype S_WWC, unchecked conversion routines From_WWC and
5915         To_WWC.
5916         (I_WWC, O_WWC): New routines for input and output of
5917         Wide_Wide_Character.
5918
5919 2008-04-08  Robert Dewar  <dewar@adacore.com>
5920
5921         * stringt.adb (Write_String_Table_Entry): Handle wide characters
5922         properly
5923
5924 2008-04-08  Robert Dewar  <dewar@adacore.com>
5925
5926         * styleg.adb (Check_Comment): Allow special char after -- in
5927         non-end-of-line case
5928
5929 2008-04-08  Robert Dewar  <dewar@adacore.com>
5930
5931         * stylesw.adb: Implement -gnaty + - y options
5932         (Set_GNAT_Style_Check_Options): Includ I in style check string
5933
5934         * stylesw.ads: Add comments for new style switch options
5935
5936 2008-04-08  Sergey Rybin  <rybin@adacore.com>
5937
5938         * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
5939         to the set of the GNAT components needed by ASIS.
5940
5941 2008-04-08  Bob Duff  <duff@adacore.com>
5942
5943         * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
5944
5945 2008-04-08  Tristan Gingold  <gingold@adacore.com>
5946
5947         * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
5948         Improve error message generation.
5949
5950 2008-04-08  Vincent Celier  <celier@adacore.com>
5951
5952         * a-direct.adb (Start_Search): Check for Name_Error before checking for
5953         Use_Error, as specified in the RM. Check if directory is open and raise
5954         Use_Error if it is not.
5955
5956 2008-04-08  Vincent Celier  <celier@adacore.com>
5957             Robert Dewar  <dewar@adacore.com>
5958
5959         * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
5960         AAMP_On_Target is set.
5961
5962         * vms_data.ads: Add NOxxx to style check switch list
5963         Add entry COMPONENTS for -gnatVe
5964         Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
5965         (/SUBDIRS=).
5966         (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
5967         Add qualifiers for gnatmetric coupling options
5968         Add note that -gnata enables all checks
5969         Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
5970         Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
5971         New warning flag -gnatw.e
5972
5973         * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
5974         Add entry for -gnatyN (forgotten before)
5975         Line for new warning switch -gnatw.p
5976         New warning flag -gnatw.e
5977
5978         * gnat_ugn.texi: Add documentation fpr project file switch -aP
5979         Document -gnaty - + y
5980         Replace occurences of "package specification" with "package spec"
5981         Define preprocessing symbols in documentation of gnatprep
5982         Clarify reason for distinguishing overflow checking
5983         Add documentation for project-aware tool switches -eL and --subdirs=
5984         Complete list of configuration pragmas
5985         Specify that, even when gnatmake switch -x is used, mains on the command
5986         line need to be sources of project files.
5987         Editing of gnatcheck/gnatmetric doc.
5988         Add documentation for -gnatw.p/-gnatw.P
5989         Add missing documentation for -fno-inline-functions.
5990         Add documentation for -gnatw.e
5991
5992         * gnat_rm.texi: Add documentation for No_Default_Initialization
5993         Replace occurences of "package specification" with "package spec"
5994         Document use of * in Warnings Off string
5995         Update documentation of alignment/component clauses.
5996         Add documentation for Invalid_Value
5997         Document new consistency rule for Optimize_Alignment
5998         Add documentation for Precondition and Postcondition pragmas
5999         Add documentation for Check and Check_Policy pragmas
6000         Document new Enum_Val attribute
6001         Remove requirement for static string in pragma Assert
6002         Add documentation on GNAT.Time_Stamp
6003
6004         * ug_words: add entry for -gnatVe
6005         Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
6006         Add entry for -gnatw.e
6007
6008         * debug.adb: Add missing documentation for d.a flag
6009         Document new -gnatd.a switch.
6010         Add documentation for new gnatmake debug switch -df
6011
6012 2008-04-08  Thomas Quinot  <quinot@adacore.com>
6013
6014         * gen-soccon.c: Bump year in copyright notices.
6015
6016         * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
6017
6018 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
6019
6020         * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
6021         Minor reformatting.
6022
6023 2008-04-08  Robert Dewar  <dewar@adacore.com>
6024             Bob Duff  <duff@adacore.com>
6025
6026         * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
6027         Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
6028
6029         * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
6030
6031         * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
6032
6033         * g-trasym.ads: Minor comment improvements
6034
6035         * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
6036
6037         * a-sequio.ads, a-direio.ads: improve message for tagged type
6038
6039         * a-strunb.ads: Minor reformatting
6040
6041         * a-tifiio.adb: Minor reformatting
6042
6043         * atree.adb (Fix_Parents): Use clearer names for formals
6044         Cleanup and simplify code
6045         Use named notation in calls
6046
6047         * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
6048         confusing calls
6049
6050         * uintp.adb: Used named notation for some confusing calls
6051
6052         * bindusg.adb: Minor change in one line of output
6053
6054         * cstand.adb: Minor reformatting of src representation of Standard
6055
6056         * a-assert.ads: Add comment.
6057
6058         * g-decstr.adb: Fix bad indentation
6059
6060         * expander.ads, expander.adb: Code clean up.
6061
6062         * sem_dist.ads: Minor comment improvement
6063
6064         * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
6065         s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
6066
6067         * i-cstrin.adb: Fix casing error in formal parameter name in call
6068
6069 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
6070
6071         * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
6072         mentioned in limited_with_clauses to do create semantic dependencies
6073         even though they appear in the ali file.
6074
6075 2008-04-08  Emmanuel Briot  <briot@adacore.com>
6076
6077         * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
6078         statement.
6079         (Get_Configuration): New subprogram.
6080
6081         * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
6082         These optional parameters help preserve the casing of the project's name
6083         when pretty-printing.
6084
6085 2008-04-08  Jerome Lambourg  <lambourg@adacore.com>
6086             Arnaud Charlet  <charlet@adacore.com>
6087
6088         * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
6089         then use __gnat_set_exit_status to report the returned status code.
6090
6091         * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
6092         messages on .NET, since some constructs of the language are not
6093         properly supported.
6094
6095         * gnatlink.adb (Gnatlink): In case the command line is too long for the
6096         .NET linker, gnatlink now concatenate all .il files and pass this to
6097         ilasm.
6098
6099 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
6100             Xavier Grave  <grave@ipno.in2p3.fr>
6101
6102         * Makefile.in: Add make ifeq define for mips/mipsel support.
6103         * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
6104         system-linux-mips.ads: New files.
6105
6106 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
6107
6108         * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
6109         detect systems using GNU libc.
6110         * gsocket.h: ditto.
6111         * socket.c: ditto.
6112         * adaint.c: ditto.
6113         * link.c: ditto.
6114
6115 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
6116
6117         * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
6118         constant constant for sysconf call.
6119         (bit_field): New packed boolean type used by cpu_set_t.
6120         (cpu_set_t): New type corresponding to the C type with
6121         the same name. Note that on the Ada side we use a bit
6122         field array for the affinity mask. There is not need
6123         for the C macro for setting individual bit.
6124         (pthread_setaffinity_np): New imported routine.
6125         * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
6126         on GNU/kFreeBSD.
6127
6128 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
6129
6130         * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
6131
6132 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
6133
6134         * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
6135         * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
6136         * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
6137         * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
6138         Return by Depressed Stack Pointer.
6139
6140 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6141
6142         * decl.c (is_variable_size): Do not unconditionally return false
6143         on non-strict alignment platforms.
6144
6145 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6146
6147         * decl.c (rest_of_type_decl_compilation_no_defer): New local function
6148         used to process all the variants of the specified type.
6149         (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
6150         types too.  Call rest_of_type_decl_compilation_no_defer if undeferring.
6151         (rest_of_type_decl_compilation): Likewise.
6152         * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
6153
6154 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
6155
6156         * gigi.h (insert_block): Kill.
6157         * utils.c (insert_block): Kill.
6158
6159 2008-04-02  Eric Botcazou  <ebotcazou@adacore.com>
6160
6161         * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
6162         type has self-referential size, get the size from the initializing
6163         expression directly if it is also a constant whose nominal type
6164         has self-referential size.
6165
6166 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6167
6168         PR ada/33688
6169         * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
6170
6171         PR ada/33857
6172         * env.c: Always include crt_externs.h if __APPLE__ is defined.
6173         (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
6174
6175 2008-04-01  Andreas Jaeger  <aj@suse.de>
6176
6177         * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
6178         IP_PKTINFO.
6179
6180 2008-03-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6181
6182         * g-table.adb, g-tasloc.adb, g-traceb.ads,
6183         g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
6184         gnatbind.adb, gnatchop.adb, gnatcmd.adb,
6185         gnatcmd.ads, gnatdll.adb, gnatfind.adb,
6186         gnatlink.adb, gnatmem.adb, gprep.adb,
6187         i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
6188         i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
6189         layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
6190         lib-xref.ads, lib.adb, link.c, live.ads,
6191         make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
6192         mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
6193         misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
6194         mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
6195         namet.adb, namet.h, nlists.adb, nlists.ads,
6196         nlists.h, opt.ads, osint-b.ads, osint-c.adb,
6197         osint-c.ads, osint.adb, osint.ads, output.ads,
6198         par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
6199         par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
6200         par-endh.adb, par-labl.adb, par-prag.adb,
6201         par-sync.adb, par-tchk.adb, par-util.adb,
6202         par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
6203         prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
6204         prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
6205         prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
6206
6207 2008-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6208
6209         * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
6210         size if it has overflowed.
6211
6212 2008-03-31  Olivier Hainque  <hainque@adacore.com>
6213             Eric Botcazou  <ebotcazou@adacore.com>
6214
6215         * utils2.c (find_common_type): Document assumption on t1/t2 vs
6216         lhs/rhs. Force use of lhs type if smaller, whatever the modes.
6217
6218 2008-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6219
6220         * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
6221         einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
6222         exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
6223         exp_pakd.ads, exp_prag.adb, exp_smem.adb,
6224         exp_tss.ads, exp_util.adb, exp_util.ads,
6225         exp_vfpt.adb, freeze.adb, freeze.ads,
6226         frontend.adb, g-alleve.adb, g-altcon.adb,
6227         g-altive.ads, g-alveop.ads, g-alvevi.ads,
6228         g-arrspl.adb, g-busorg.ads, g-calend.adb,
6229         g-calend.ads, g-casuti.ads, g-cgideb.adb,
6230         g-comlin.adb, g-comlin.ads, g-curexc.ads,
6231         g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
6232         g-dirope.adb, g-dirope.ads, g-dynhta.ads,
6233         g-dyntab.adb, g-encstr.ads, g-excact.ads,
6234         g-except.ads, g-expect.ads, g-heasor.adb,
6235         g-hesora.adb, g-hesorg.adb, g-htable.ads,
6236         g-locfil.ads, g-md5.adb, g-md5.ads,
6237         g-memdum.ads, g-moreex.ads, g-os_lib.adb,
6238         g-pehage.adb, g-pehage.ads, g-regexp.adb,
6239         g-regexp.ads, g-regpat.adb, g-regpat.ads,
6240         g-soccon-aix.ads, g-soccon-darwin.ads,
6241         g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
6242         g-soccon-hpux.ads, g-soccon-irix.ads,
6243         g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
6244         g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
6245         g-soccon-mingw.ads, g-soccon-solaris-64.ads,
6246         g-soccon-solaris.ads, g-soccon-tru64.ads,
6247         g-soccon-vms.ads, g-soccon-vxworks.ads,
6248         g-soccon.ads, g-socket.adb, g-socket.ads,
6249         g-socthi-mingw.adb, g-socthi-vms.adb,
6250         g-socthi-vxworks.adb, g-soliop-mingw.ads,
6251         g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
6252         g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
6253         typos.
6254
6255 2008-03-27  Eric Botcazou  <ebotcazou@adacore.com>
6256
6257         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
6258         if the procedure is imported.
6259
6260 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6261
6262         * adaint.c: Fix warnings.
6263
6264 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6265
6266         * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
6267
6268 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6269
6270         * a-witeio.adb: Fix problem with Current_Output (introduce Self).
6271         Fix problem of status check for null file
6272
6273 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6274
6275         * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
6276         s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
6277         s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
6278         i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
6279         s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
6280         comments.
6281
6282 2008-03-26  Thomas Quinot  <quinot@adacore.com>
6283
6284         PR ada/33688
6285         * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
6286         Get_Socket_Option): Add support for Receive_Packet_Info.
6287
6288         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
6289         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
6290         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
6291         g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
6292         g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
6293         new constants SO_REUSEPORT and IP_PKTINFO
6294
6295 2008-03-26  Robert Dewar  <dewar@adacore.com>
6296
6297         * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
6298         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
6299         a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
6300         a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
6301         a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
6302         a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
6303         s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
6304         s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
6305         a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
6306         s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
6307         s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
6308         s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
6309         s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
6310         s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
6311         s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
6312         s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
6313         s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
6314         s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
6315         s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
6316         s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
6317         a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
6318         a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
6319         s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
6320         s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
6321         s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
6322         s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
6323         s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
6324         a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
6325         a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
6326         s-tasloc.adb: Minor reformatting.
6327         Update comments.
6328         Remove "used for" sections from comments.
6329
6330 2008-03-26  Robert Dewar  <dewar@adacore.com>
6331
6332         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
6333         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
6334         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
6335         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
6336         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
6337         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
6338         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
6339         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
6340         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
6341         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
6342         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
6343         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
6344         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
6345         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
6346         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
6347         double spaced if it fits on one line and otherwise single spaced.
6348
6349 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6350
6351         * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
6352         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
6353         s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
6354         or task info if the thread could not be created.
6355
6356 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6357
6358         * gnatvsn.ads (Library_Version): Bump to 4.4.
6359         (Current_Year): Bump to 2008.
6360
6361 2008-03-26  Robert Dewar  <dewar@adacore.com>
6362
6363         * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
6364
6365         * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
6366
6367         * debug.adb: Add debug flags d.r and d.v
6368         Add debug flag .T (Optimize_Alignment (Time))
6369         Add debug flag .S (Optimize_Alignment (Space))
6370
6371         * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
6372         depending on setting of relevant debug flags.
6373         Replace use of Warnings_Off by Has_Warnings_Off
6374         (Freeze_Entity): In circuit for warning on suspicious convention
6375         actuals, do not give warning if subprogram has same entity as formal
6376         type, or if subprogram does not come from source.
6377         (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
6378         if Optimize_Alignment set to Space.
6379
6380         * frontend.adb: Add call to Sem_Warn.Initialize
6381         Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
6382         Reset Optimize_Alignment mode from debug switches .S and .T
6383
6384         * layout.adb (Layout_Composite_Object): Rewritten for
6385         Optimize_Aligment pragma.
6386
6387         * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
6388         mode.
6389
6390         * opt.ads, opt.adb: (Optimize_Alignment): New global switch
6391
6392         * par-prag.adb (N_Pragma): Chars field removed, use Chars
6393         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
6394         this change. Add entry for pragma Optimize_Alignment
6395
6396         * sem_prag.adb (N_Pragma): Chars field removed, use Chars
6397         (Pragma_Identifier (..
6398         instead, adjustments throughout to accomodate this change.
6399         (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
6400         (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
6401         Add implementation of pragma Optimize_Alignment
6402
6403 2008-03-26  Vincent Celier  <celier@adacore.com>
6404
6405         * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
6406         Improve memory usage to avoid use of stack.
6407
6408 2008-03-26  Robert Dewar  <dewar@adacore.com>
6409
6410         * a-teioed.ads: Correct value of Default_Fill
6411
6412         * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
6413
6414 2008-03-26  Robert Dewar  <dewar@adacore.com>
6415
6416         * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
6417         with Current_Output (introduce Self).
6418
6419 2008-03-26  Robert Dewar  <dewar@adacore.com>
6420
6421         * checks.adb (Ensure_Valid): Capture valid status if possible
6422         (eliminate checks)
6423
6424 2008-03-26  Robert Dewar  <dewar@adacore.com>
6425
6426         * stand.ads: Deal with reordering of package standard declarations
6427
6428         * cstand.adb: Put package Standard declarations in proper order
6429
6430 2008-03-26  Robert Dewar  <dewar@adacore.com>
6431
6432         * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
6433         (Pragma_Identifier (.. instead.
6434         (OK_To_Reorder_Components): New flag
6435         (Has_Entries): Code cleanup.
6436         (Warnings_Off_Used): New flag
6437         (Warnings_Off_Used_Unmodified): New flag
6438         (Warnings_Off_Used_Unreferenced): New flag
6439         (Has_Warnings_Off): New function
6440         (Has_Unmodified): New function
6441         (Has_Unreferenced): New function
6442         (Is_Trivial_Subprogram): New flag
6443         (Is_Static_Dispatch_Table_Entity): New attribute.
6444         Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
6445         (more consistent with other similar names)
6446         (Access_Subprogram_Type): New classification function
6447
6448 2008-03-26  Robert Dewar  <dewar@adacore.com>
6449
6450         * errout.ads: Document new !! insertion sequence
6451
6452         * errout.adb (N_Pragma): Chars field removed, use Chars
6453         (Pragma_Identifier (..  instead.
6454         Replace use of Warnings_Off by Has_Warnings_Off
6455         (Error_Msg_Internal): Don't delete warning ending in !!
6456
6457 2008-03-26  Robert Dewar  <dewar@adacore.com>
6458
6459         * par.adb (Check_No_Right_Paren): Removed no longer used
6460
6461         * par-ch10.adb (N_Pragma): Chars field removed, use Chars
6462         (Pragma_Identifier (..  instead.
6463
6464         * par-ch10.adb (P_Subunit): Improvement in error recovery and message
6465
6466         * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
6467         par-ch4.adb: Minor improvements in error recovery and messages.
6468
6469         * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
6470         non-serious
6471
6472         * par-ch9.adb: Minor improvements in error recovery and messages
6473         (P_Protected): Better error recovery for "protected type x;"
6474
6475         * par-util.adb: Minor improvements in error recovery and messages
6476         (Check_No_Right_Paren): Removed no longer used
6477
6478 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6479
6480         * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
6481         that the prefix of an attribute is the type of the aggregate being
6482         expanded.
6483
6484 2008-03-26  Javier Miranda  <miranda@adacore.com>
6485             Robert Dewar  <dewar@adacore.com>
6486
6487         * exp_attr.adb (N_Pragma): Chars field removed.
6488         (Expand_N_Attribute_Reference): If the designated type associated with
6489         attribute 'Unrestricted_Access is a subprogram entity then replace it
6490         by an E_Subprogram_Type itype.
6491         Implement attribute Old
6492
6493         * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
6494
6495         * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
6496         Replace call to
6497         New_Internal_Entity by call to Create_Itype to centralize calls
6498         building itypes, ad propagate the convention of the designated
6499         subprogram. In addition, disable the machinery cleaning constant
6500         indications from all entities in current scope when 'Unrestricted_Access
6501         corresponds with a node initializing a dispatch table slot.
6502         (Analyze_Attribute): Parameterless attributes returning a string or a
6503         type will not be called with improper arguments, so we can remove junk
6504         code that was dealing with this case.
6505         Implement attribute Old
6506
6507         * snames.ads, snames.h, snames.adb: Add entries for attribute Old
6508         Add entry for pragma Optimize_Alignment
6509         New standard names Sync and Synchronize
6510
6511 2008-03-26  Robert Dewar  <dewar@adacore.com>
6512             Arnaud Charlet  <charlet@adacore.com>
6513
6514         * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
6515         stmt.
6516         (No_Exception_Propagation_Active): New function.
6517         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
6518         Update comments, and review all uses of No_Exception_Propagation, which
6519         are now correct and in sync with what gigi expects.
6520
6521         * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
6522         function.
6523         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
6524         Update comments, and review all uses of No_Exception_Propagation, which
6525         are now correct and in sync with what gigi expects.
6526
6527 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6528
6529         * sem_ch3.adb (Access_Definition): If the access type is the return
6530         result of a protected function, create an itype reference for it
6531         because usage will be in an inner scope from the point of declaration.
6532         (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
6533         OK_To_Reorder_Components.
6534         (Make_Index): If an overloaded range includes a universal integer
6535         interpretation, resolve to Standard.Integer.
6536         (Analyze_Subtype_Indication): Copy Convention to subtype
6537         (Check_Abstract_Interfaces): Complete semantic checks on the legality of
6538         limited an synchronized progenitors in type declaration and private
6539         extension declarations.
6540
6541         * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
6542         protected subprogram body, determine proper scope from subprogram
6543         declaration.
6544
6545 2008-03-26  Robert Dewar  <dewar@adacore.com>
6546
6547         * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
6548         No_Run_Time_Mode
6549
6550 2008-03-26  Gary Dismukes  <dismukes@adacore.com>
6551
6552         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
6553         of a heap allocator for a limited unconstrained function return when
6554         resstriction No_Allocators is active.
6555         (Analyze_Allocator): The restriction No_Allocators is now only checked
6556         on allocators that have Comes_From_Source set, as per RM-H.4(7).
6557
6558         * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
6559         of a heap allocator for a limited unconstrained function return when
6560         resstriction No_Allocators is active.
6561         (Analyze_Allocator): The restriction No_Allocators is now only checked
6562         on allocators that have Comes_From_Source set, as per RM-H.4(7).
6563         (Has_Fixed_Op):  If the name in a function call is Standard."*" and the
6564         operands are fixed-point types, the universal_fixed predefined operation
6565         is used, regardless of whether the operand type (s) have a primitive
6566         operation of the same name.
6567
6568 2008-03-26  Javier Miranda  <miranda@adacore.com>
6569
6570         * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
6571         Is_Static_Dispatch_Table
6572         (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
6573         to Exchange_Declarations to exchange the private and full-view. Bug
6574         found working in this issue.
6575         (Expand_Dispatching_Call): Propagate the convention of the subprogram
6576         to the subprogram pointer type.
6577         (Make_Secondary_DT): Replace generation of Prim'Address by
6578         Address (Prim'Unrestricted_Access)
6579         (Make_DT): Replace generation of Prim'Address by
6580         Address (Prim'Unrestricted_Access)
6581         (Make_Disp_*_Bodies): When compiling for a restricted profile, use
6582         simple call form for single entry.
6583         (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
6584         tables of predefined primitives).
6585         (Make_Secondary_DT): Add support to handle access to dispatch tables of
6586         predefined primitives.
6587         (Make_Tags): Add entities to Access_Dispatch_Table associated with
6588         access to dispatch tables containing predefined primitives.
6589
6590         * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
6591         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
6592         this change.
6593         (Register_Predefined_DT_Entry): Updated to handle the new contents
6594         of attribute Access_Disp_Table (pointers to dispatch tables containing
6595         predefined primitives).
6596
6597         * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
6598         subprogram.
6599         (Find_Interface_ADT): Updated to skip the new contents of attribute
6600         Access_Dispatch_Table (pointers to dispatch tables containing predefined
6601         primitives).
6602
6603         * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
6604         concurrent types.
6605         (Set_Convention): Use new function Is_Access_Subprogram_Type
6606         (Collect_Interfaces_Info): Updated to skip the new contents of attribute
6607         Access_Dispatch_Table (pointers to dispatch tables containing predefined
6608         primitives).
6609
6610         * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
6611         expanded code avoiding calls to Build_Predef_Prims.
6612         (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
6613         call to Build_Get_Predefined_Prim_Op_Address.
6614
6615 2008-03-26  Javier Miranda  <miranda@adacore.com>
6616
6617         * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
6618         subprogram Corresponding_Runtime_Package to know the runtime package
6619         that will provide support to a given protected type.
6620
6621         * exp_ch9.adb (Add_Private_Declarations,
6622         Build_Protected_Subprogram_Call,
6623         Build_Protected_Entry, Build_Simple_Entry_Call,
6624         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
6625         Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
6626         cleanup using the new centralized subprogram Corresponding_Runtime
6627         Package to know the runtime package that provides support to
6628         a given protected type.
6629
6630 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6631
6632         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
6633         assignment is within the initialization procedure for a packed array,
6634         and Initialize_Scalars is enabled, compile right-hand side with checks
6635         off, because the value is purposely out of range.
6636
6637 2008-03-26  Vincent Celier  <celier@adacore.com>
6638
6639         * gnatcmd.adb: Add processing for GNAT SYNC
6640
6641         * vms_conv.ads: (Command_Type): Add command Sync
6642
6643         * vms_conv.adb (Initialize): Add Command_List data for new command Sync
6644
6645         * vms_data.ads: Add entries for -gnatw.w
6646         Add qualifier for gnatstub --header-file option
6647         Add switches for GNAT SYNC
6648
6649         * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
6650         (Add_Package_Name): New procedure
6651         (Package_Name_List): New function
6652         (Initialize): Add known package names to the list
6653         (Register_New_Package): Add the new package name to the list
6654
6655 2008-03-26  Robert Dewar  <dewar@adacore.com>
6656
6657         * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
6658         s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
6659         Raise_Exception by "raise with" construct.
6660
6661 2008-03-26  Pascal Obry  <obry@adacore.com>
6662
6663         * Makefile.in: Add proper GNAT.Serial_Communications implementation on
6664         supported platforms.
6665
6666         * Makefile.rtl: Add g-sercom.o.
6667
6668         * impunit.adb: Add g-sercom.adb.
6669
6670         * s-crtl.ads (open): New routine.
6671         (close): Likewise.
6672         (write): Likewise.
6673
6674         * s-osinte-mingw.ads (BYTE): New type.
6675         (CHAR): Likewise.
6676         (OVERLAPPED): Likewise.
6677         (GENERIC_READ): New constant.
6678         (GENERIC_WRITE): Likewise.
6679         (OPEN_EXISTING): Likewise.
6680         (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
6681         type instead.
6682         (CreateFile): New routine.
6683         (WriteFile): Likewise.
6684         (ReadFile): Likewise.
6685         (CloseHandle): Move next to the other file oriented routines.
6686
6687         * g-sercom.ads: New unit.
6688
6689         * g-sercom.adb: Default implementation, calls to this unit will raise
6690         a program error exception.
6691
6692         * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
6693         GNU/Linux implementations.
6694
6695 2008-03-26  Robert Dewar  <dewar@adacore.com>
6696
6697         * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
6698
6699         * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
6700         unchecked conversion for different conventions only for subprogram
6701         pointers or on VMS.
6702
6703 2008-03-26  Vincent Celier  <celier@adacore.com>
6704
6705         * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
6706         to check if the specified object file is correct.
6707
6708 2008-03-26  Thomas Quinot  <quinot@adacore.com>
6709
6710         * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
6711         Comes_From_Source to exclude primitives from being checked. We want to
6712         exclude predefined primitives only, so use the appropriate specific
6713         predicate. Also, flag a formal parameter of an anonymous
6714         access-to-subprogram type as illegal for a primitive operation of a
6715         remote access to class-wide type.
6716
6717 2008-03-26  Vincent Celier  <celier@adacore.com>
6718
6719         * prj-dect.adb (Parse_Package_Declaration): When a package name is not
6720         known, check if it may be a missspelling of a known package name. In
6721         not verbose, not mode, issue warnings only if the package name is a
6722         possible misspelling.
6723         In verbose mode, always issue a warning for a not known package name,
6724         plus a warning if the name is a misspelling of a known package name.
6725
6726         * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
6727         limited withs or limited withs are parse during one call.
6728         (Parse_Single_Project): Post parse context clause in two passes: non
6729         limited withs before current project and limited withs after current
6730         project.
6731
6732         * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
6733         project with the name With_Name, even if it is only extended indirectly.
6734         (Recursive_Process): Process projects in order: first single withs, then
6735         current project, then limited withs.
6736
6737         * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
6738         project with the name With_Name, even if it is only extended indirectly.
6739
6740 2008-03-26  Robert Dewar  <dewar@adacore.com>
6741
6742         * scn.adb (Initialize_Scanner): Format messages belong on standard error
6743
6744 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6745
6746         * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
6747         a generic subprogram that is imported, do not attempt to compile
6748         non-existent body.
6749
6750         * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
6751         imported, do not generate a raise_program_error for the non-existent
6752         body.
6753         (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
6754         perform minimal name resolution on the generic to avoid spurious
6755         warnings.
6756         (Find_Actual_Type): the designated type of the actual in a child unit
6757         may be declared in a parent unit without being an actual.
6758
6759 2008-03-26  Robert Dewar  <dewar@adacore.com>
6760
6761         * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
6762         * sinfo.ads, sinfo.adb (From_At_End): New flag
6763
6764 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6765
6766         * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
6767         operations that have an interface parameter.
6768         (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
6769         Don't treat No_Return call as raise.
6770
6771         * sem_disp.adb (Check_Dispatching_Operations): apply check for
6772         non-primitive interface primitives to access parameters, not to all
6773         parameters of an access type.
6774
6775 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6776
6777         * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
6778         declarations of a parent unit are made visible when compiling a child
6779         instance, the parent is not a hidden open scope, even though it may
6780         contain other pending instance.
6781
6782         * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
6783         hidden open scope for some child instance, it does affect the
6784         visibility status of other stach entries.
6785         (Analyze_Object_Renaming): Check that a class-wide object cannot be
6786         renamed as an object of a specific type.
6787
6788 2008-03-26  Robert Dewar  <dewar@adacore.com>
6789
6790         * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
6791         recursion and raise SE directly.
6792         (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
6793         set for formal type for IN mode parameter.
6794
6795 2008-03-26  Robert Dewar  <dewar@adacore.com>
6796
6797         * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
6798         (Initialize): New procedure
6799         (Output_Warnings_Off_Warnings): New procedure
6800         (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
6801         (Output_Non_Modifed_In_Out_Warnings): Ditto
6802         (Warn_On_Unreferenced_Entity): Ditto
6803
6804 2008-03-26  Vincent Celier  <celier@adacore.com>
6805
6806         * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
6807         readable.
6808
6809 2008-03-26  Matthew Heaney  <heaney@adacore.com>
6810
6811         * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
6812         a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
6813         Marked with clauses as private, and controlled operations as overriding
6814
6815 2008-03-26  Robert Dewar  <dewar@adacore.com>
6816
6817         * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
6818
6819 2008-03-26  Robert Dewar  <dewar@adacore.com>
6820
6821         * back_end.adb, back_end.ads: Minor reformatting
6822
6823         * bindgen.adb: Minor clarification of comments
6824
6825         * fname.ads: Minor comment fixes
6826
6827         * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
6828         prj-nmsc.adb, sem_aggr.adb: Minor reformatting
6829
6830         * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
6831         xsnames.adb: Remove warnings off pragma no longer needed
6832
6833         * a-catizo.ads, a-calari.ads, a-calfor.adb,
6834         a-calfor.ads: Fix header.
6835
6836 2008-03-26  Tristan Gingold  <gingold@adacore.com>
6837
6838         * init.c: Do not adjust pc for HPARITH on alpha/vms.
6839
6840 2008-03-26  Robert Dewar  <dewar@adacore.com>
6841
6842         * lib-xref.adb: (OK_To_Set_Reference): New function
6843         (Generate_Reference): Don't set referenced from occurrence in Warnings,
6844         Unmodified, or Unreferenced pragma
6845
6846 2008-03-26  Robert Dewar  <dewar@adacore.com>
6847
6848         * alloc.ads: Add entries for Warnings_Off_Pragmas table
6849
6850 2008-03-26  GNAT Script  <nobody@adacore.com>
6851
6852         * Make-lang.in: Makefile automatically updated
6853
6854 2008-03-26  Robert Dewar  <dewar@adacore.com>
6855
6856         * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
6857         par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
6858         removed, use Chars (Pragma_Identifier (..  instead, adjustments
6859         throughout to accomodate this change.
6860
6861         * s-pooglo.ads, s-pooloc.ads: Minor comment updates
6862
6863         * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
6864         Einfo.Set_Needs_Debug_Info)
6865
6866 2008-03-26  Robert Dewar  <dewar@adacore.com>
6867
6868         * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
6869         Add description for the new gnatstub option '--header-file'
6870         clarification of -gnatwz/-gnatwZ
6871         Add a "Irix-Specific Considerations" section to document the need to
6872         set LD_LIBRARY_PATH when using the default shared runtime library.
6873         Added documentation for both gcov and gprof.
6874
6875         * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
6876         messages that are not suppressed when clients are compiled.
6877         Add documentation of s-pooglo s-pooloc
6878         Document the new GNAT.Serial_Communications API.
6879         Add documentation for 'Old attribute
6880         Add description of pragma Optimize_Alignment
6881
6882         * ug_words: Add entries for -gnatw.w -gnatw.W
6883
6884         * usage.adb: Add line for -gnatw.w (warn on warnings off)
6885
6886 2008-03-25  Eric Botcazou  <ebotcazou@adacore.com>
6887
6888         Revert
6889         2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
6890         PR ada/35186
6891         * decl.c (maybe_pad_type): Avoid padding an integral type when
6892         bumping its alignment is sufficient.
6893
6894 2008-03-25  Arnaud Charlet  <charlet@adacore.com>
6895
6896         * exp_ch6.adb, exp_disp.adb: Update copyright notice.
6897         Fix wrong formatting (lines too long)
6898
6899 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6900
6901         * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
6902         a-calend-vms.adb, a-calend.adb, a-calend.ads,
6903         a-calfor.adb, a-chahan.ads, a-chtgke.adb,
6904         a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
6905         a-cohama.ads, a-comlin.ads, a-coorse.adb,
6906         a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
6907         a-except-2005.ads, a-except.adb, a-except.ads,
6908         a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
6909         a-exextr.adb, a-filico.ads, a-finali.ads,
6910         a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
6911         a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
6912         a-sequio.ads, a-strbou.ads, a-strfix.adb,
6913         checks.adb, exp_ch3.adb, exp_ch4.adb,
6914         exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
6915         exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
6916         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
6917         exp_dbug.ads, exp_disp.adb, exp_dist.adb,
6918         exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
6919
6920 2008-03-24  Robert Dewar  <dewar@adacore.com>
6921
6922         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
6923         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
6924         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
6925         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
6926         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
6927         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
6928         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
6929         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
6930         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
6931         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
6932         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
6933         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
6934         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
6935         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
6936         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
6937         double spaced if it fits on one line and otherwise single spaced.
6938
6939 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6940
6941         PR documentation/15479
6942         * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
6943         (doc/gnat_ugn_unw.texi): ... this, and adjusted.
6944         (doc/gnat_ugn.info): Renamed from ...
6945         (doc/gnat_ugn_unw.info): ... this.
6946         (doc/gnat_ugn.dvi): Renamed from ...
6947         (doc/gnat_ugn_unw.dvi): ... this.
6948         (doc/gnat_ugn.pdf): Renamed from ...
6949         (doc/gnat_ugn_unw.pdf): ... this.
6950         (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
6951         Adjusted.
6952         * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
6953         unconditionally to gnat_ugn.info.  Fix cross references to the
6954         GNAT Reference Manual.  Convert links to the GCC, GDB, Emacs,
6955         and GNU make manuals to be proper texinfo links.
6956         * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
6957
6958 2008-03-21  Olivier Hainque  <hainque@adacore.com>
6959
6960         * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
6961         ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
6962
6963 2008-03-21  Eric Botcazou  <ebotcazou@adacore.com>
6964
6965         * trans.c (addressable_p): Add notes on addressability issues.
6966
6967 2008-03-21  Olivier Hainque  <hainque@adacore.com>
6968             Ed Schonberg  <schonberg@adacore.com>
6969
6970         * trans.c (addressable_p): Accept COND_EXPR when both arms
6971         are addressable.
6972         (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
6973         (call_to_gnu): Do not use name reference in the error message
6974         for a misaligned by_reference_parameter. The actual may be a
6975         general expression.
6976
6977 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
6978
6979         * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
6980
6981 2008-03-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6982
6983         * gnat_rm.texi (Implementation Defined Characteristics)
6984         (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
6985         appropriate.
6986         * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
6987         (Switches for gnatchop, Installing a library): Likewise.
6988
6989 2008-03-10  Eric Botcazou  <ebotcazou@adacore.com>
6990
6991         * trans.c (emit_range_check): Do not emit the check if the base type
6992         of the expression is the type against which its range must be checked.
6993
6994 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6995
6996         * decl.c (maybe_pad_type): Use value_factor_p.
6997
6998 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6999
7000         * lang.opt (nostdlib): Move around.
7001         * misc.c (gnat_handle_option): Fix formatting.
7002         (gnat_dwarf_name): Move around.
7003         * trans.c (Case_Statement_to_gnu): Fix formatting.
7004         (gnat_to_gnu): Likewise.
7005         * utils.c (aggregate_type_contains_array_p): Likewise.
7006         (create_subprog_decl): Likewise.
7007
7008 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7009
7010         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
7011         bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
7012
7013 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7014
7015         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
7016         BIGGEST_ALIGNMENT when capping the alignment of records with
7017         strict alignment and size clause.
7018
7019 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7020
7021         * lang-specs.h: Pass -gnatwa if -Wall is passed.
7022         * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
7023         and -Wuninitialized.
7024         (gnat_post_options): Clear warn_unused_parameter.
7025
7026 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7027
7028         * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
7029         aligned bit-fields, bumping the alignment of the record type if deemed
7030         profitable.
7031         (value_factor_p): Return false instead of 0.
7032
7033 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7034
7035         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
7036         for scalar types with small alignment.
7037
7038 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7039
7040         * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
7041         from that of the front-end's end label.
7042         (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
7043         from that of the loop label.
7044
7045 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
7046
7047         * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
7048         comment for the packed array type case.
7049         * utils.c (build_template): Use a loop to strip padding or
7050         containing records for justified modular types.
7051
7052 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
7053
7054         * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
7055         large alignments specified for types.
7056         (validate_alignment): Minor cleanup.
7057
7058 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
7059
7060         * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
7061         (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
7062         the component for packing, if possible, as well as if a component
7063         size clause is specified.
7064         <E_Record_Subtype>: For an array type used to implement a packed
7065         array, get the component type from the original array type.
7066         Try to get a smaller form of the component for packing, if possible,
7067         as well as if a component size clause is specified.
7068         (round_up_to_align): New function.
7069         (make_packable_type): Add in_record parameter.
7070         For a padding record, preserve the size.  If not in_record and the
7071         size is too large for an integral mode, attempt to shrink the size
7072         by lowering the alignment.
7073         Ditch the padding bits of the last component.
7074         Compute sizes and mode manually, and propagate the RM size.
7075         Return a BLKmode record type if its size has shrunk.
7076         (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
7077         Use Original_Array_Type to retrieve the type in case of an error.
7078         Adjust call to make_packable_type.
7079         (gnat_to_gnu_field): Likewise.
7080         (concat_id_with_name): Minor tweak.
7081         * trans.c (larger_record_type_p): New predicate.
7082         (call_to_gnu): Compute the nominal type of the object only if the
7083         parameter is by-reference.  Do the conversion actual type -> nominal
7084         type if the nominal type is a larger record.
7085         (gnat_to_gnu): Do not require integral modes on the source type to
7086         avoid the conversion for types with identical names.
7087         (addressable_p): Add gnu_type parameter.  If it is specified, do not
7088         return true if the expression is not addressable in gnu_type.
7089         Adjust recursive calls.
7090         * utils.c (finish_record_type): Remove dead code.
7091
7092 2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
7093
7094         PR ada/35186
7095         * decl.c (maybe_pad_type): Avoid padding an integral type when
7096         bumping its alignment is sufficient.
7097
7098 2008-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7099
7100         * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
7101         * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
7102         statement.
7103         * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
7104         gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
7105         sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
7106         code output strings.
7107         * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
7108         system-vms_64.ads: Fix typos in ada source code comments.
7109         * sinfo-cn.adb: Remove incomplete sentence.
7110
7111         PR documentation/15479
7112         * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
7113
7114 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
7115
7116         PR ada/22255
7117         * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
7118
7119 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
7120
7121         PR ada/34799
7122         * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
7123         that underlying type is present.
7124
7125 2008-02-26  Tom Tromey  <tromey@redhat.com>
7126
7127         * misc.c (internal_error_function): Remove test of
7128         USE_MAPPED_LOCATION.
7129         * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
7130         (Sloc_to_locus): Remove old location code.
7131
7132 2008-02-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7133
7134         * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
7135         `i.e.' by adding comma or `@:' as appropriate.
7136         * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
7137         plain characters `C', use `@samp{C}'.
7138         * gnat_ugn.texi (File Naming Rules, About gnatkr)
7139         (Krunching Method): Likewise.
7140
7141         * gnat_ugn.texi (Conventions): List environment variables and
7142         metasyntactic variables.
7143         (Compiling Programs): Fix notation of metasyntactic variables.
7144         Add @file where appropriate.  Use @file for file extensions,
7145         @samp for strings.
7146         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
7147         instead of @file, @env instead of @code.
7148
7149 2008-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7150
7151         PR documentation/15479
7152         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
7153         and `...' with `@dots{}' or `@enddots{}'.
7154
7155         PR documentation/15479
7156         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
7157         use @command instead of @code, @option instead of @samp or @code,
7158         @code instead of @var, @samp instead of @file.
7159
7160         PR documentation/15479
7161         * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
7162         in Makefile rules, by using `&&' rather than `;'.
7163
7164 2008-02-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7165
7166         PR documentation/15479
7167         * gnat_ugn.texi: In non-code, avoid space before colon.
7168         (Regular Expressions in gnatfind and gnatxref): Fix indentation.
7169         (Examples of gnatxref Usage): Use @command{vi} instead of
7170         @file{vi}.
7171         (Character Set Control): Do not use @code for UTF-8.
7172         (Validity Checking): Fix typo "NaNs" instead of "NaN's".  Do not
7173         use @code for IEEE.
7174         * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
7175         sample.
7176         * gnat_rm.texi, gnat_ugn.texi: Fix typos.  Bump copyright years.
7177
7178 2008-02-11  Joel Sherrill  <joel.sherrill@oarcorp.com>
7179
7180         PR ada/35143
7181         * env.c: Add __rtems__ to if defined.
7182         * s-osinte-rtems.adb: Add To_Target_Priority.  Fix formatting.
7183         * s-osinte-rtems.ads: Add To_Target_Priority prototype and
7184         PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants.  Add
7185         pragma Convention as required.
7186         * gsocket.h: Make compile in and out of RTS.
7187         * Makefile.in: Add system-rtems.ads.  Build DEC extensions.
7188         Use g-soccon-rtems.ads.
7189         * g-soccon-rtems.ads, system-rtems.ads: New files.
7190
7191 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7192
7193         PR other/35107
7194         * Make-lang.in (gnat1): Add $(GMPLIBS).
7195
7196 2008-01-26  Eric Botcazou  <ebotcazou@adacore.com>
7197
7198         * decl.c (components_to_record): Improve comment.
7199
7200 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
7201
7202         * decl.c (components_to_record): Do not reuse the empty union type
7203         if there is a representation clause on the record.
7204         * trans.c (addressable_p): Return true for INTEGER_CST.
7205
7206 2008-01-21  Eric Botcazou  <ebotcazou@adacore.com>
7207
7208         * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
7209         in pointer arithmetics.
7210         * utils2.c (build_allocator): Likewise.
7211
7212 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
7213
7214         * utils.c (build_function_stub): Properly build the call expression.
7215
7216 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
7217
7218         * decl.c (gnat_to_gnu_entity) <object>: Process renamings
7219         before converting the expression to the type of the object.
7220         * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
7221         Stabilize constructors for special wrapping types.
7222
7223 2008-01-13  Eric Botcazou  <ebotcazou@adacore.com>
7224
7225         * trans.c (call_to_gnu): Invoke the addressable_p predicate only
7226         when necessary.  Merge some conditional statements.  Update comments.
7227         Rename unchecked_convert_p local variable to suppress_type_conversion.
7228         Do not suppress conversions in the In case.
7229         (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
7230         into account on non strict-alignment platforms.
7231
7232 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
7233
7234         * utils.c (aggregate_type_contains_array_p): New predicate.
7235         (create_field_decl): In a packed record, force byte alignment
7236         for fields without specified position that contain an array.
7237
7238 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
7239
7240         * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
7241
7242 2008-01-10  John David Anglin  <dave.anglin.@nrc-cnrc.gc.ca>
7243
7244         PR ada/34466
7245         * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
7246         sysconf call.
7247         (bit_field): New packed boolean type used by cpu_set_t.
7248         (cpu_set_t): New type corresponding to the C type with
7249         the same name. Note that on the Ada side we use a bit
7250         field array for the affinity mask. There is not need
7251         for the C macro for setting individual bit.
7252         (pthread_setaffinity_np): New imported routine.
7253
7254 2008-01-03  Tero Koskinen  <tero.koskinen@iki.fi>
7255
7256         PR ada/34647
7257         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
7258         on OpenBSD as is done on other BSD systems.
7259
7260         PR ada/34645
7261         * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
7262         getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
7263         I/O.
7264
7265         PR ada/34644
7266         * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
7267         clearenv().
7268
7269         PR ada/34646
7270         * init.c (__gnat_error_handler, __gnat_install_handler,
7271         __gnat_init_float): Define for OpenBSD.
7272
7273         * initialize.c (__gnat_initialize): Define for OpenBSD.
7274
7275 2007-12-27  Samuel Tardieu  <sam@rfc1149.net>
7276
7277         PR ada/34553
7278         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
7279         instead of mktemp() or tmpnam() on NetBSD.
7280
7281 2007-12-23  Eric Botcazou  <ebotcazou@adacore.com>
7282
7283         * trans.c (call_to_gnu): Make the temporary for non-addressable
7284         In parameters passed by reference.
7285         (addressable_p): Return true for STRING_CST and CALL_EXPR.
7286
7287 2007-12-19  Robert Dewar  <dewar@adacore.com>
7288
7289         * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
7290         Add pragma Warnings (Off) for unassigned IN OUT arguments
7291
7292         * sem_warn.adb (Output_Reference): Suppress messages for internal names
7293         (Check_References): Extensive changes to tune up warnings
7294         (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
7295         (Has_Pragma_Unmodifed_Check_Spec): New function
7296         (Check_References): Implement pragma Unmodified
7297         (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
7298
7299         * par-prag.adb: Dummy entry for pragma Unmodified
7300
7301         * sem_prag.adb: Implement pragma Unmodified
7302
7303         * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
7304         (Proc_Next_Component_Or_Discriminant): Fix typo.
7305         Update comments.
7306
7307         * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
7308         Unmodified.
7309         (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
7310         because the former already takes care of discarding the result.
7311         (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
7312         Add comment.
7313
7314         * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
7315
7316 2007-12-19  Eric Botcazou  <ebotcazou@adacore.com>
7317
7318         * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
7319         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
7320         system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
7321         system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
7322         system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7323         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7324         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
7325         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
7326         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7327         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
7328         (Dynamic_Trampolines_Used): Delete.
7329
7330         * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
7331         Turn on stack probing mechanism on LynxOS.
7332
7333 2007-12-19  Bob Duff  <duff@adacore.com>
7334
7335         * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
7336         the resulting tail recursion by hand. This prevents running out of
7337         memory on deeply nested concatenations, since Field2 is where the left
7338         operand of concatenations is stored.
7339         Fix bug (was returning OK_Orig in some cases). Fix return subtype to
7340         clarify that it can only return OK or Abandon.
7341
7342         * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
7343         operand by iteration, in order to avoid running out of memory on
7344         deeply-nested concatenations. Use the Parent pointer to get back up the
7345         tree.
7346         (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
7347          Resolve_Op_Concat_Rest): New procedures split out of
7348         Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
7349         clearer.
7350
7351         * checks.adb (Remove_Checks): Use Traverse_Proc instead of
7352         Traverse_Func, because the former already takes care of discarding the
7353         result.
7354
7355         * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
7356         because the former already takes care of discarding the result.
7357         (Remove_Warning_Messages): Use appropriate subtype for Status and
7358         Discard
7359
7360 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7361
7362         * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
7363         discriminants forces expansion of the aggregate into assignments.
7364         (Init_Record_Controller):  If the type of the aggregate is untagged and
7365         is not inherently limited, the record controller is not limited either.
7366
7367 2007-12-19  Robert Dewar  <dewar@adacore.com>
7368
7369         * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
7370         handling compile time known size of record or array (case of front end
7371         layout active, e.g. in GNAAMP).
7372
7373 2007-12-19  Javier Miranda  <miranda@adacore.com>
7374
7375         * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
7376         that forces the construction of static dispatch tables in case of
7377         record subtypes.
7378
7379 2007-12-19  Robert Dewar  <dewar@adacore.com>
7380
7381         * exp_ch9.adb (Null_Statements): Moved to library level
7382         (Trivial_Accept_OK): New function
7383         (Expand_Accept_Declaration): Use Trivial_Accept_OK
7384         (Expand_N_Accept_Statement): Use Trivial_Accept_OK
7385
7386 2007-12-19  Robert Dewar  <dewar@adacore.com>
7387
7388         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
7389         in complex case where array is Volatile.
7390
7391 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7392
7393         * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
7394         properly the Ada2005 rules concerning when the current instance of a
7395         record type is aliased.
7396
7397 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7398
7399         * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
7400         mangled declaration
7401         (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
7402         declarations.
7403         (P_Variant_Part): Cleaner patch for parenthesized discriminant
7404
7405 2007-12-19  Vincent Celier  <celier@adacore.com>
7406
7407         * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
7408         package is not known
7409
7410         * prj-attr.ads (Unknown_Package): New constant
7411         Do not crash when an unknown package is in several projects
7412
7413         * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
7414         ignored
7415
7416         * prj-nmsc.adb (Check): Remove obsolete code related to no longer
7417         existing package Language_Processing.
7418
7419 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7420             Gary Dismukes  <dismukes@adacore.com>
7421             Samuel Tardieu  <sam@rfc1149.net>
7422
7423         PR ada/15803, ada/15805
7424         * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
7425         illegal access subtypes when there is a constrained partial view.
7426         (Check_For_Premature_Usage): New procedure inside
7427         Access_Subprogram_Declaration for checking that an access-to-subprogram
7428         type doesn't reference its own name within any formal parameters or
7429         result type (including within nested anonymous access types).
7430         (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
7431         (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
7432         context is an access_to_variable, the expression cannot be an
7433         access_to_constant.
7434
7435 2007-12-19  Bob Duff  <duff@adacore.com>
7436
7437         * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
7438         (Analyze_Concatenation): Use iteration instead of recursion in order
7439         to avoid running out of stack space for deeply nested concatenations.
7440
7441 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7442             Gary Dismukes  <dismukes@adacore.com>
7443
7444         * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
7445         whose renamed entity is a subprogram that requires overriding.
7446         (Premature_Usage): Test for the case of N_Full_Type_Declaration when
7447         issuing an error for premature usage and issue a message that says
7448         'type' rather than 'object'.
7449
7450 2007-12-19  Gary Dismukes  <dismukes@adacore.com>
7451
7452         PR ada/34149
7453         * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
7454         presence of a statically tagged operand (Present (Static_Tag)) with
7455         test for Indeterm_Ancestor_Call when determining whether to propagate
7456         the static tag to tag-indeterminate operands (which forces dispatching
7457         on such calls).
7458         (Check_Controlling_Formals): Ada2005, access parameters can have
7459         defaults.
7460         (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
7461         not insert subprogram in list of primitive operations if already there.
7462
7463 2007-12-19  Tristan Gingold  <gingold@adacore.com>
7464
7465         * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
7466         global variable.
7467
7468 2007-12-19  Thomas Quinot  <quinot@adacore.com>
7469
7470         Part of PR ada/33688
7471         * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
7472         datagram info on Linux.
7473
7474 2007-12-19  Vincent Celier  <celier@adacore.com>
7475
7476         * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
7477         that the source path name is always found in the dependencies.
7478
7479 2007-12-19  Robert Dewar  <dewar@adacore.com>
7480
7481         * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
7482         Fix name of Wide_Wide_Latin_1/9 file names
7483         Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
7484         Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
7485         Add missing documentation for Ada.Command_Line.Response_File
7486         Update list of warning letters for Warnings pragma
7487         Add documentation for pragma Unmodified
7488
7489 2007-12-19  Samuel Tardieu  <sam@rfc1149.net>
7490
7491         * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
7492
7493 2007-12-17  Arnaud Charlet  <charlet@adacore.com>
7494
7495         * s-vxwork-alpha.ads: Removed, no longer used.
7496
7497 2007-12-15  Jakub Jelinek  <jakub@redhat.com>
7498
7499         * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
7500
7501 2007-12-13  Samuel Tardieu  <sam@rfc1149.net>
7502
7503         PR ada/34360
7504         * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
7505         mlib-tgt-specific.adb.
7506
7507 2007-12-13  Bob Duff  <duff@adacore.com>
7508
7509         * trans.c (Attribute_to_gnu): Check for violations of the
7510         No_Implicit_Dynamic_Code restriction. This checking used to be done in
7511         the front end, but is moved here so we can make it more accurate.
7512
7513 2007-12-13  Pascal Obry  <obry@adacore.com>
7514
7515         * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
7516          version is provided for older GNU/Linux distribution not
7517          supporting thread affinity sets.
7518
7519         * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
7520         call.
7521         (bit_field): New packed boolean type used by cpu_set_t.
7522         (cpu_set_t): New type corresponding to the C type with
7523         the same name. Note that on the Ada side we use a bit
7524         field array for the affinity mask. There is not need
7525         for the C macro for setting individual bit.
7526         (pthread_setaffinity_np): New imported routine.
7527
7528         * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
7529         no null.
7530         (Create_Task): Set the processor affinity mask if information
7531         is present.
7532
7533         * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
7534
7535 2007-12-13  Robert Dewar  <dewar@adacore.com>
7536
7537         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
7538         s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
7539         s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
7540         s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
7541         s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
7542         s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
7543         s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
7544         i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
7545         for subprogram pointers.
7546
7547         * g-ctrl_c.adb: New file.
7548
7549         * g-ctrl_c.ads (Install_Handler): New body.
7550
7551         * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
7552         instead of obsolete function Is_Always_Inlined.
7553         (Freeze_Entity): check for tagged type in imported C subprogram
7554         (Freeze_Entity): check for 8-bit boolean in imported C subprogram
7555         (Freeze_Entity): check for convention Ada subprogram pointer in
7556         imported C subprogram.
7557         (Freeze_Fixed_Point_Type): In the case of a base type where the low
7558         bound would be chopped off and go from negative to zero, force
7559         Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
7560         bound) so that the size computation for the base type will take
7561         negative values into account.
7562
7563 2007-12-13  Eric Botcazou  <ebotcazou@adacore.com>
7564             Bob Duff  <duff@adacore.com>
7565             Tristan Gingold  <gingold@adacore.com>
7566
7567         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
7568         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7569         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7570         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
7571         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
7572         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7573         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
7574         system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
7575         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
7576         system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
7577         system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
7578         (Always_Compatible_Rep): New flag to control trampolines globally.
7579         (Dynamic_Trampolines_Used): New flag for implementing the
7580         No_Implicit_Dynamic_Code restriction more correctly (not yet used,
7581         and not yet set correctly for some targets).
7582
7583         * s-taprop-vxworks.adb: Use stack limit method of stack checking.
7584         Simply indirectly call s-stchop when a task is created.
7585
7586         * ali.ads:
7587         New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
7588         appears as an argument (entries A) in an ALI file.
7589
7590         * fe.h (Stack_Check_Limits): Declare new target parameter.
7591         (Check_Implicit_Dynamic_Code_Allowed): New procedure.
7592
7593         * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
7594         This variable is declared in C to be sure not subject to elaboration
7595         code.
7596         (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
7597         Storage_Error.
7598
7599         * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
7600         (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
7601
7602         * s-stchop.ads: Add comments.
7603
7604         * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
7605         limit method of stack checking.
7606
7607         * s-stchop-limit.ads: New file.
7608
7609 2007-12-13  Robert Dewar  <dewar@adacore.com>
7610
7611         * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
7612         a-cihama.adb, g-awk.adb,
7613         s-inmaop-posix.adb: Update handling of assigned value/unreferenced
7614         warnings
7615
7616         * exp_smem.adb: Update handling of assigned value/unreferenced warnings
7617
7618         * sem.adb: Update handling of assigned value/unreferenced warnings
7619
7620         * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
7621
7622         * lib-xref.ads: Improve documentation for k xref type
7623
7624         * lib-xref.adb:
7625         Update handling of assigned value/unreferenced warnings
7626         (Generate_Reference): Warning for reference to entity for which a
7627         pragma Unreferenced has been given should be unconditional.
7628         If the entity is a discriminal, mark the original
7629         discriminant as referenced.
7630
7631         * sem_warn.ads, sem_warn.adb
7632         (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
7633         no entities referenced in package
7634         (Check_One_Unit): Don't give message about no entities referenced in
7635         a package if a pragma Unreferenced has appeared.
7636         Handle new warning flag -gnatw.a/-gnatw.A
7637         Update handling of assigned value/unreferenced warnings
7638
7639         * atree.h: Add flags up to Flag247
7640         (Flag231): New macro.
7641
7642 2007-12-13  Jose Ruiz  <ruiz@adacore.com>
7643
7644         * adaint.h: (__gnat_plist_init): Not defined for RTX.
7645
7646         * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
7647         RTX systems.
7648
7649         * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
7650         (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
7651         EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
7652         GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
7653
7654         * mingw32.h:
7655         Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
7656
7657         * sysdep.c (winflush_function for RTX): Procedure that does nothing
7658         since we only have problems with Windows 95/98, which are not
7659         supported by RTX.
7660         (__gnat_ttyname): Return the empty string on Nucleus, just as
7661         done on vxworks.
7662
7663 2007-12-13  Robert Dewar  <dewar@adacore.com>
7664
7665         * a-textio.adb, a-textio.ads:
7666         Extensive changes to private part for wide character encoding
7667
7668         * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
7669         (Look_Ahead): Fix mishandling of encoded sequences
7670         Move declaration of Wch_Con to private part (should not be visible)
7671
7672         * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
7673         UTF-8. Probably this is never used, but if it is, brackets is
7674         clearly correct.
7675
7676         * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
7677         setting wide character encoding for no main program case and when
7678         encoding is specified using -W?
7679         Initialize stack limit of environment task if stack limit method of
7680         stack checking is enabled.
7681         (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
7682         (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
7683         (Get_Main_Unit_Name): New function.
7684         (Gen_Adainit_Ada): Add call to main program for .NET when needed.
7685         (Gen_Output_File): Set Bind_Main_Program to True for .NET
7686
7687         * bindusg.adb: Add line for -Wx switch
7688
7689         * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
7690         Add comments
7691         Add new useful constant WC_Longest_Sequences
7692
7693         * switch-b.adb: Clean up handling of -Wx switch
7694         For -gnatWx, set Wide_Character_Encoding_Method_Specified
7695
7696         * switch-c.adb: -gnatg activates warning on assertion errors
7697         For -gnatWx, set Wide_Character_Encoding_Method_Specified
7698
7699         * s-wchcon.adb: (Is_Start_Of_Encoding): New function
7700
7701 2007-12-13  Robert Dewar  <dewar@adacore.com>
7702             Ed Schonberg  <schonberg@adacore.com>
7703
7704         * a-ngcoty.adb: New pragma Fast_Math
7705
7706         * opt.adb: New pragma Fast_Math
7707
7708         * par-prag.adb:
7709         Add Implemented_By_Entry to the list of pragmas which do not require any
7710         special processing.
7711         (Favor_Top_Level): New pragma.
7712         New pragma Fast_Math
7713
7714         * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
7715         (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
7716         Expand_Allocator_Expression): Take into account VM_Target
7717         (Expand_Attribute, case 'Identity):  Handle properly the case where
7718         the prefix is a task interface.
7719         New pragma Fast_Math
7720
7721         * par.adb (Next_Token_Is): New function
7722         (P_Pragma): Add Skipping parameter
7723         (U_Left_Paren): New procedure
7724         (U_Right_Paren): New procedure
7725         New pragma Fast_Math
7726
7727         * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
7728         subunit
7729         New pragma Fast_Math
7730
7731         * sem_prag.adb: Add significance value to table Sig_Flag for pragma
7732         Implemented_By_Entry.
7733         (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
7734         (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
7735         items, since it can apply to more than one overloadable entity. Set
7736         new flag Has_Pragma_Inline_Always for Inline_Always case.
7737         (Analyze_Pragma, case Complex_Representation): Improve error message.
7738         (Analyze_Pragma, case Assert): When assertions are disabled build the
7739         rewritten code with Sloc of expression rather than pragma, so new
7740         warning about failing is not deleted.
7741         (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
7742         protected types and update error message to reflect that. Test whether
7743         the protected type is allowed for the pragma (an error is issued if the
7744         type has any entries, or components that do not have preelaborable
7745         initialization).
7746         New pragma Fast_Math
7747         (Analyze_Pragma, case No_Return): Handle generic instance
7748
7749         * snames.h, snames.ads, snames.adb:
7750         Add new predefined name for interface primitive _Disp_Requeue.
7751         New pragma Fast_Math
7752
7753         * a-tags.ads, a-tags.adb: New calling sequence for
7754         String_To_Wide_[Wide_]String
7755         (Secondary_Tag): New subprogram.
7756
7757         * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
7758         from Exp_Attr
7759         New calling sequence for String_To_Wide_[Wide_]String
7760         (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
7761         the use of the secondary stack for image routines.
7762
7763         * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
7764         calling sequence for String_To_Wide_[Wide_]String
7765
7766         * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
7767         Ada 95 mode
7768         (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
7769         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7770
7771         * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
7772         (P_Formal_Part): Use Skipping parameter in P_Pragma call
7773         to improve error recovery
7774
7775         * par-util.adb (Next_Token_Is): New function
7776         (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
7777
7778         * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
7779         semicolon if missing
7780         (P_Pragma): Implement new Skipping parameter
7781         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7782         Fix location of flag for unrecognized pragma message
7783
7784         * par-tchk.adb (U_Left_Paren): New procedure
7785         (U_Right_Paren): New procedure
7786
7787 2007-12-13  Geert Bosch  <bosch@adacore.com>
7788
7789         * a-tifiio.adb:
7790         (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
7791         the second or later Scaled_Divide would omit leading zeroes,
7792         resulting in too few digits produced and a Layout_Error as result.
7793         (Put): Initialize Pos.
7794
7795 2007-12-13  Robert Dewar  <dewar@adacore.com>
7796
7797         atree.ads, atree.adb (Flag231..Flag247): New functions
7798         (Set_Flag231..Set_Flag247): New procedures
7799         (Basic_Set_Convention): Rename Set_Convention to be
7800         Basic_Set_Convention
7801         (Nkind_In): New functions
7802         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7803
7804         * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
7805         instead
7806          of obsolete function Is_Always_Inlined
7807         (Register_Predefined_DT_Entry): Initialize slots of the second
7808         secondary dispatch table.
7809         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7810         (Expand_N_Function_Call): Remove special provision for stack checking.
7811
7812         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
7813         Include _Disp_Requeue in the list of predefined operations.
7814         (Find_Interface_ADT): Modified to fulfill the new specification.
7815         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7816
7817         * par-ch4.adb, nlists.ads, nlists.adb:
7818         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7819
7820         * sinfo.ads, sinfo.adb: (Nkind_In): New functions
7821         Fix location of flag for unrecognized pragma message
7822
7823         * sem_ch7.adb: Use Nkind_In
7824
7825 2007-12-13  Vincent Celier  <celier@adacore.com>
7826
7827         * opt.ads:
7828         Indicate what flags are used by the Project Manager, gprbuild and
7829         gprclean.
7830         (Opt.Follow_Links_For_Dirs): New flag
7831         (Warn_On_Assertion_Failure): New flag
7832         (Wide_Character_Encoding_Method_Specified): New flag
7833         (Suppress_All_Inlining): New switch set by -fno-inline
7834         (Real_VMS_Target): New flag
7835         New pragma Fast_Math
7836
7837 2007-12-13  Robert Dewar  <dewar@adacore.com>
7838
7839         * back_end.adb: Recognize -fno-inline
7840
7841 2007-12-13  Robert Dewar  <dewar@adacore.com>
7842
7843         * checks.adb: Fix optimization problem with short-circuited form
7844
7845 2007-12-13  Bob Duff  <duff@adacore.com>
7846
7847         * clean.adb (Usage): Add line for -aP
7848         (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
7849         with a parameter "procedure Usage", instead of passing a pointer to a
7850         procedure. This is to eliminate trampolines (since the Usage procedure
7851         is often nested in a main procedure, and it would be inconvenient to
7852         unnest it).
7853
7854         * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
7855         to be generic, with a parameter "procedure Callback (...)", instead of
7856         passing a pointer to a procedure. This is to eliminate trampolines
7857         (since the Callback procedure is usually nested).
7858
7859         * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
7860         gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
7861         (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
7862
7863         * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
7864         Use the generic Heap_Sort_G instead of Heap_Sort_A.
7865
7866 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7867
7868         * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
7869         (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
7870         (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
7871         (Renamed_In_Spec): New flag
7872         (Has_Pragma_Inline_Always): New flag
7873         Add missing doc for pragma Obsolescent_Warning
7874         Add missing doc for 17 additional unused flags (230-247)
7875         (Is_Derived_Type): Remove condition "not Is_Generic_Type".
7876         Alphabetize with clauses.
7877         Separate Is_Thunk and Has_Thunks flags
7878         (Write_Entity_Flags): Add forgotten entry for Has_Thunks
7879         (Related_Interface): Renamed to Related_Type.
7880         (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
7881         (Set_Is_Flag): Restrict the assertion.
7882
7883 2007-12-13  Vincent Celier  <celier@adacore.com>
7884
7885         * errout.adb (Output_Source_Line): Do not keep a trailing space after
7886         the source line number if the source line is empty.
7887
7888 2007-12-13  Geert Bosch  <bosch@adacore.com>
7889
7890         * eval_fat.adb (Decompose_Int): Handle argument of zero.
7891         (Compose): Remove special casing of zero.
7892         (Exponent): Likewise.
7893         (Fraction): Likewise.
7894         (Machine): Likewise.
7895         (Decompose): Update comment.
7896
7897 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
7898
7899         * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
7900         limited ancestor part, initialize controllers of enclosing record
7901         before expanding ancestor aggregate.
7902         (Gen_Assign): If a component of the aggregate is box-initialized, add
7903         code to call Initialize if the component is controlled, and explicit
7904         assignment of null if the component is an access type.
7905
7906         Handle properly aggregates for limited types that appear in object
7907         declarations when the aggregate contains controlled values such as
7908         protected types.
7909         When expanding limited aggregates into individual components, do not
7910         call Adjust on controlled components that are limited.
7911
7912 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
7913
7914         * expander.adb: Take into account N_Subprogram_Renaming_Declaration
7915
7916 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7917
7918         * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
7919         predefined primitive _Disp_Requeue.
7920         (Make_Predefined_Primitive_Specs): Create the spec for predefined
7921         primitive _Disp_Requeue.
7922         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
7923         type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
7924         (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
7925         an interface type. In case of limited interfaces we now declare all the
7926         predefined primitives associated with synchronized interfaces as
7927         abstract.
7928         (Predef_Spec_Or_Body): For interface types generate abstract subprogram
7929         declarations.
7930         (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
7931         tagged type is an interface type and there is no user-defined equality
7932         function.
7933         Add also bodies of predefined primitives associated with synchronized
7934         interfaces.
7935         (Freeze_Record_Type): Do not build bodies of predefined primitives of
7936         interface types because they are now defined abstract.
7937         Add missing documentation.
7938         (Expand_Record_Controller): Update occurrence of Related_Interface
7939         to Related_Type.
7940         (Build_Offset_To_Top_Functions): Do nothing in case of VM.
7941         (Expand_N_Object_Declaration): Take into account VM_Target when handling
7942         class wide interface object declaration.
7943         (Expand_Previous_Access_Type): Do not create a duplicate master entity
7944         if the access type already has one.
7945         (Expand_N_Object_Declaration): Defend against attempt to validity check
7946         generic types. Noticed for -gnatVcf specified with previous errors.
7947
7948 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
7949
7950         * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
7951         Expand_Allocator_Expression): Take into account VM_Target
7952
7953         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
7954         secondary stack when VM_Target /= No_VM
7955
7956 2007-12-13  Javier Miranda  <miranda@adacore.com>
7957             Ed Schonberg  <schonberg@adacore.com>
7958
7959         * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
7960         Is_Complation_Unit by Is_Library_Level_Entity in the code
7961         that decides if the static dispatch tables need to be built.
7962         (Wrap_Transient_Declaration): Do not generate a finalization call if
7963         this is a renaming declaration and the renamed object is a component
7964         of a controlled type.
7965
7966 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
7967
7968         * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
7969         In the case where the renamed subprogram is a dereference, call
7970         Force_Evaluation on the prefix.
7971
7972 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7973             Ed Schonberg  <schonberg@adacore.com>
7974
7975         * exp_ch9.adb (Expand_N_Asynchronous_Select,
7976         Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
7977         comment reformatting.
7978         (Set_Privals): Inherit aliased flag from formal. From code reading.
7979         (Build_Simple_Entry_Call): Out parameters of an access type are passed
7980         by copy and initialized from the actual. This includes entry parameters.
7981         (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
7982         and Ada 2005 models of requeue.
7983         (Null_Statements): Still connsider do-end block null if it contains
7984         Unreferenced and Warnings pragmas.
7985         (Expand_N_Accept_Statement): Do not optimize away null do end if
7986         dispatching policy is other than defaulted.
7987         (Expand_N_Timed_Entry_Call): When the triggering statement is a
7988         dispatching call, manually analyze the delay statement.
7989         (Find_Parameter_Type): Move subprogram to Sem_Util.
7990
7991 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7992             Javier Miranda  <miranda@adacore.com>
7993
7994         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
7995         _Disp_Requeue occupies dispatch table slot number 15. Move
7996         _Disp_Timed_Select to slot 16.
7997         (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
7998         generate the spec and body of _Disp_Reqeueue.
7999         (Make_DT): Build and initialize the second dispatch table.
8000         Handle initialization of RC_Offset when the parent
8001         is a private type with variable size components.
8002         (Make_Secondary_DT): Complete documentation. Add support to
8003         initialize the second dispatch table.
8004         (Make_Tags): Generate the tag of the second dispatch table.
8005         (Register_Primitive): Add support to register primitives in the
8006         second dispatch table.
8007
8008 2007-12-13  Pascal Obry  <obry@adacore.com>
8009
8010         * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
8011         Windows. This signal is used by gnatmake to kill child processes for
8012         example.
8013
8014 2007-12-13  Javier Miranda  <miranda@adacore.com>
8015
8016         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
8017         support for generic dispatching constructor calls in which we need to
8018         locate the tag of a secondary dispatch table associated with an
8019         interface type to properly dispatch the call.
8020         (Expand_N_Attribute_Reference [case Address],
8021         Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
8022         handling of VM targets.
8023
8024 2007-12-13  Robert Dewar  <dewar@adacore.com>
8025             Ed Schonberg  <schonberg@adacore.com>
8026
8027         * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
8028         assert fail
8029
8030         * ug_words: Add entries for -gnatw.a -gnatw.A
8031
8032         * sem_res.adb (Set_String_Literal_Subtype): If the context of the
8033         literal is a subtype with non-static constraints, use the base type of
8034         the context as the base of the string subtype, to prevent type
8035         mismatches in gigi.
8036         (Resolve_Actuals): If the actual is an entity name, generate a
8037         reference before the actual is resolved and expanded, to prevent
8038         spurious warnings on formals of enclosing protected operations.
8039         (Analyze_Overloaded_Selected_Component): If type of prefix if
8040         class-wide, use visible components of base type.
8041         (Resolve_Selected_Component): Ditto.
8042         (Resolve_Short_Circuit): Detect case of pragma Assert argument
8043         evaluating to False, and issue warning message.
8044
8045         * usage.adb: Add lines for -gnatw.a and -gnatw.A
8046
8047 2007-12-13  Emmanuel Briot  <briot@adacore.com>
8048
8049         * g-calend.ads (No_Time): New constant, to represent an uninitialized
8050         time value
8051
8052         * g-catiio.ads, g-catiio.adb (Value): Added support for more date
8053         formats.
8054         (Month_Name_To_Number): New subprogram
8055
8056         * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
8057         letter to upper-case.
8058
8059 2007-12-13  Robert Dewar  <dewar@adacore.com>
8060             Ed Schonberg  <schonberg@adacore.com>
8061
8062         * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
8063
8064         * layout.adb (Resolve_Attribute, case 'Access): If designated type of
8065         context is a limited view, use non-limited view when available. If the
8066         non-limited view is an unconstrained array, this enforces consistency
8067         requirements in 3.10.2 (27).
8068         (Layout_Type): For an access type whose designated type is a limited
8069         view, examine its declaration to determine if it is an unconstrained
8070         array, and size the access type accordingly.
8071         (Layout_Type): Do not force 32-bits for convention c subprogram
8072         pointers in -gnatdm mode, only if real vms target.
8073
8074         * sem_attr.adb (Analyze_Access_Attribute): Use new flag
8075         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
8076         (Analyze_Access_Attribute,Attribute_Address): Remove checks for
8077         violations of the No_Implicit_Dynamic_Code restriction.
8078         (Resolve_Attribute, case 'Access): If designated type of context is a
8079         limited view, use non-limited view when available. If the non-limited
8080         view is an unconstrained array, this enforces consistency requirements
8081         in 3.10.2 (27).
8082         (Layout_Type): For an access type whose designated type is a limited
8083         view, examine its declaration to determine if it is an unconstrained
8084         array, and size the access type accordingly.
8085
8086 2007-12-13  Vincent Celier  <celier@adacore.com>
8087
8088         * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
8089         object directory of main project does not exist.
8090         On VMS, correctly set then environment variable for the source
8091         directories.
8092
8093 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
8094
8095         * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
8096         set to True this procedure will create the value of type REG_EXPAND_SZ.
8097         It was only possible to create REG_SZ values before.
8098
8099 2007-12-13  Robert Dewar  <dewar@adacore.com>
8100
8101         * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
8102         g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
8103         namet-sp.adb, namet-sp.ads: New files.
8104
8105         * g-speche.adb: Use generic routine in g-spchge
8106
8107         * s-wchcnv.ads, s-wchcnv.adb:
8108         Minor code cleanup (make formal type consistent with spec)
8109
8110         * namet.adb: Update comments.
8111
8112         * par-endh.adb (Evaluate_End_Entry): Use new
8113         Namet.Sp.Is_Bad_Spelling_Of function
8114
8115         * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
8116
8117         * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
8118         ancestor is an access type initialized with a box, set its type
8119         explicitly, for use in subsequent expansion.
8120         (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
8121         function
8122
8123 2007-12-13  Robert Dewar  <dewar@adacore.com>
8124
8125         * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
8126         access Vstring)
8127
8128 2007-12-13  Robert Dewar  <dewar@adacore.com>
8129
8130         * inline.adb (Back_End_Cannot_Inline): Use new flag
8131         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
8132
8133         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
8134         Has_Pragma_Inline_Always instead.
8135         of obsolete function Is_Always_Inlined
8136         (Build_Body_To_Inline): Same change
8137         (Cannot_Inline): Same change
8138         Do not give warning on exception raise in No_Return function
8139
8140         * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
8141         component has two inconsistent component clauses in the same record
8142         representation clause, favor the message that complains about
8143         duplication rather than inconsistency.
8144         Update comments.
8145         (Record_Representation_Clause): Do not warn on missing component
8146         clauses for inherited components of a type extension.
8147         (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
8148         an overloadable item if it is a pragma that can apply to multiple
8149         overloadable entities (e.g. Inline) because a pragma cannot be on
8150         more than one chain at a time.
8151         (Validate_Unchecked_Conversion): Add code to warn on unchecked
8152         conversion where one of the operands is Ada.Calendar.Time.
8153         (Analyze_Attribute_Definition_Clause): Fix typo in error message.
8154         For now, ignore Component_Size clause on VM targets, as done for
8155         pragma Pack.
8156
8157 2007-12-13  Emmanuel Briot  <briot@adacore.com>
8158             Vincent Celier  <celier@adacore.com>
8159
8160         * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
8161         string
8162         (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
8163         prj.ads
8164         (Hash): Move instantiation of System.HTable.Hash from spec to body
8165         (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
8166         systems, since we do not need to recompute the Name_Id for the canonical
8167         file name.
8168         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
8169         as a parameter. This parameter is in fact always "ada" in all calls, and
8170         we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
8171         while loading a project with 40000 files
8172
8173         * prj-attr.adb: Fix name of attribute Dependency_Driver
8174         Change the kind of indexing for attribute Root
8175
8176         * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
8177         variables already declared, in case constructions.
8178
8179         * prj-env.adb (Initialize): Reset Current_Source_Path_File and
8180         Current_Object_Path_File to No_Path.
8181
8182         * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
8183         ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
8184
8185         * prj-makr.adb: new parameter Current_Dir
8186
8187         * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
8188         Ada sources when language is not Ada.
8189         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
8190         (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
8191         (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
8192         (Locate_Directory): Always resolve links when computing Canonical_Path
8193         (Look_For_Sources): Make sure that Name_Buffer contains the file name
8194         in Source_Files before checking for the presence of a directory
8195         separator.
8196         Optimize calls to Name_Find when on case sensitive systems.
8197         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
8198         as a parameter.
8199         (Prj.Nmsc.Check): new parameter Current_Dir
8200         (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
8201         cannot be empty and the spec suffix cannot be the same as the body or
8202         separate suffix.
8203         (Get_Unit): When a file name can be of several unit kinds (spec, body or
8204         subunit), always consider the longest suffix.
8205         (Check_Configuration): Do not issue an error if there is no compiler
8206         for a language. Just issue a warning and ignore the sources for the
8207         language.
8208         (Check_Library_Attributes): Only check Library_Dir if Library_Name is
8209         not empty.
8210         (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
8211         (Unit_Exceptions): New hash table
8212         (Check_Naming_Schemes): Check if a file that could be a unit because of
8213         the naming scheme is not in fact a source because there is an exception
8214         for the unit.
8215         (Look_For_Sources): Put the unit exceptions in hash table
8216         Unit_Exceptions
8217         (Get_Unit_Exceptions): Give initial value No_Source to local variable
8218         Other_Part to avoid exception when code is compiled with validity
8219         checking.
8220         (Get_Sources_From_File): Check that there is no directory information
8221         in the file names.
8222         (Look_For_Sources): Check that there is no directory information in the
8223         list of file names in Source_Files.
8224         (Look_For_Sources): In multi-language mode, do not allow exception file
8225         names that are excluded.
8226         (Excluded_Sources_Htable): New hash table
8227         (Search_Directories.Check_File): New procedure to simplify
8228         Search_Directories.
8229         (Search_Directories): Do not consider excluded sources
8230         (Look_For_Sources): Populate Excluded_Sources_Htable before calling
8231         Search_Directories.
8232         (Get_Exceptions): Set component Lang_Kind of Source_Data
8233         (Get_Unit_Exceptions): Ditto
8234         (Search_Directories): Ditto
8235
8236         * prj-pars.adb: new parameter Current_Dir
8237
8238         * prj-part.ads, prj-part.adb:
8239         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
8240         (Opt.Follow_Links_For_Dirs): New flag
8241         (Project_Path_Name_Of): Cache information returned by this routine as
8242         Locate_Regular_File is a costly routine. The code to output a log
8243         information and the effective call to Locate_Regular_File is now
8244         factorized into a routine (code clean-up).
8245         (Parse, Parse_Single_Project): new parameter Current_Dir
8246         When main project file cannot be found, indicate in the error
8247         message the project path that was used to do the search.
8248
8249         * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
8250         (Prj.Proc.Process*): new parameter Current_Dir
8251
8252         * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
8253
8254 2007-12-13  Bob Duff  <duff@adacore.com>
8255
8256         * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
8257         procedure to be called from the back end to check the
8258         No_Implicit_Dynamic_Code restriction.
8259
8260 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
8261
8262         * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
8263         Fixes another case where RTE_Available_Call was ignored instead of being
8264         taken into account.
8265         (Load_Fail): Ditto.
8266
8267         * rtsfind.ads: Add new entries.
8268
8269 2007-12-13  Robert Dewar  <dewar@adacore.com>
8270
8271         * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
8272         g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
8273
8274         * scn.adb: Implement BOM recognition
8275
8276 2007-12-13  Thomas Quinot  <quinot@adacore.com>
8277             Ed Schonberg  <schonberg@adacore.com>
8278
8279         * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
8280         subprogram body that acts as its own spec may not have a non-private
8281         WITH clause on a private sibling.
8282         (Build_Unit_Name): If the parent unit in the name in a with_clause on a
8283         child unit is a renaming, create an implicit with_clause on that
8284         parent, and not on the unit it renames, to prevent visibility errors
8285         in the current unit.
8286
8287 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
8288
8289         * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
8290         renaming declaration, use the Slocs of the formal parameters from the
8291         declaration of the formal subprogram when creating the formal parameter
8292         entities in the renaming declaration.
8293         (Analyze_Formal_Type_Declaration): Change the placement of the error
8294         message concerning illegal known discriminants. It is now posted on the
8295         type rather than on the first discriminant. This change ensures early
8296         error report.
8297         (Freeze_Subprogram_Body): If the generic subprogram is nested within
8298         the package body that contains the instance, do not generate an
8299         out-of-place freeze node for the enclosing package.
8300         (Collect_Previous_Instantiations): Ignore internal instantiations
8301         generated for formal packages.
8302         (Validate_Derived_Type_Instance): Add a check that when a formal
8303         derived type is Known_To_Have_Preelab_Init then the actual type must
8304         have preelaborable initialization, and issue an error when this
8305         condition is violated.
8306
8307 2007-12-13  Robert Dewar  <dewar@adacore.com>
8308
8309         * s-imenne.adb, s-imenne.ads: New files.
8310
8311         * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
8312         s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
8313         s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
8314         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
8315         s-imgwch.ads: New calling sequence for Image routines to avoid sec
8316         stack usage.
8317
8318 2007-12-13  Javier Miranda  <miranda@adacore.com>
8319             Ed Schonberg  <schonberg@adacore.com>
8320
8321         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
8322         generation of spurious error if parent is an interface type; caused
8323         because predefined primitive bodies will be generated later by
8324         Freeze_Record_Type.
8325         (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
8326         flag.
8327         (Derive_Subprograms): Handle derivations of predefined primitives
8328         after all the user-defined primitives to ensure that they are
8329         found in proper order in instantiations.
8330         (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
8331         of Related_Interface to Related_Type.
8332         (Record_Type_Declaration): Minor reordering of calls to decorate the
8333         Tag component because the entity must have set its Ekind attribute
8334         before setting its Is_Tag attribute.
8335         (Analyze_Subtype_Declaration): In the case of subtypes with
8336         Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
8337
8338 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8339             Ed Schonberg  <schonberg@adacore.com>
8340
8341         * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
8342         statement to the list of contexts where a selected component with a
8343         concurrent tagged type prefix should yield a primitive operation.
8344         (Find_Primitive_Operation): Handle case of class-wide types.
8345         (Analyze_Overloaded_Selected_Component): If type of prefix is
8346         class-wide, use visible components of base type.
8347         (Resolve_Selected_Component): Ditto.
8348         (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
8349         formal of a generic subprogram. find candidate interpretations by
8350         scanning the list of generic formal declarations.:
8351         (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
8352         type from a limited_with_clause, and the full view is available, use it
8353         for subsequent semantic checks.
8354         (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
8355         (Find_Primitive_Operation): New function.
8356         (Analyze_Overloaded_Selected_Component): insert explicit dereference
8357         only once if several interpretations of the prefix yield an access type.
8358         (Try_Object_Operation): Code and comment cleanup.
8359         (Analyze_Selected_Component): Reorder local variables. Minot comment and
8360         code reformatting. When the type of the prefix is tagged concurrent, a
8361         correct interpretation might be available in the primitive and
8362         class-wide operations of the type.
8363
8364 2007-12-13  Robert Dewar  <dewar@adacore.com>
8365             Ed Schonberg  <schonberg@adacore.com>
8366
8367         * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
8368         renaming entry as subprogram using rename-as-body if subprogram spec
8369         frozen.
8370         (Use_One_Type): The clause is legal on an access type whose designated
8371         type has a limited view.
8372         (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
8373         (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
8374         (Analyze_Renamed_Primitive_Operation): new procedure to determine the
8375         operation denoted by a selected component.
8376         (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
8377         it can be an expression, possibly overloaded, that returns a task or
8378         an access to one.
8379
8380 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8381             Gary Dismukes  <dismukes@adacore.com>
8382
8383         * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
8384         requeue statement is dispatching. Do not emit an error when the name is
8385         not an entry and the context is a dispatching select. Add code to
8386         perform subtype conformance between the formals of the current entry
8387         and those of the target interface primitive.
8388         (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
8389         Timed_Entry_Call): Analyze the triggering statement as the first step of
8390         the processing. If this is a dispatching select, postpone the analysis
8391         of all select statements until the Expander transforms the select. This
8392         approach avoids generating duplicate identifiers after the Expander has
8393         replicated some of the select statements. In case the Expander is
8394         disabled, perform regular analysis.
8395         (Check_Triggering_Statement): New routine.
8396         (Analyze_Requeue): Exclude any interpretations that are not entries when
8397         checking overloaded names in a requeue. Also test type conformance for
8398         matching interpretations rather than requiring subtype conformance at
8399         that point to conform with the RM's resolution rule for requeues.
8400
8401 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
8402
8403         * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
8404         inherited operation is a defaulted tag-indeterminate call, and there is
8405         a statically tagged actual, use the static tag as a controlling actual
8406         for the defaulted actual.
8407
8408 2007-12-13  Geert Bosch  <bosch@adacore.com>
8409
8410         * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
8411         context, so do not call Check_Non_Static_Context.
8412
8413 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8414
8415         * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
8416         whether formal E is an entity which may have parameters.
8417
8418 2007-12-13  Bob Duff  <duff@adacore.com>
8419             Javier Miranda  <miranda@adacore.com>
8420             Robert Dewar  <dewar@adacore.com>
8421
8422         * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
8423         (Set_Convention): New procedure to set the Convention flag, and in
8424         addition make sure the Favor_Top_Level flag is kept in sync (all
8425         foreign-language conventions require Favor_Top_Level = True).
8426         (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
8427         to Related_Type.
8428         (Collect_Interfaces_Info): Minor update to handle the two secondary
8429         dispatch tables. Update occurrence of Related_Interface to Related_Type.
8430         (Generate_Parent_Ref): Add parameter to specify entity to check
8431         (Is_Preelaborable_Expression): Allow the name of a discriminant to
8432         initialize a component of a type with preelaborable initialization.
8433         This includes the case of a discriminal used in such a context.
8434         (Is_Dependent_Component_Of_Mutable_Object): Take into account the
8435         latest Ada 2005 rules about renaming and 'Access of
8436         discriminant-dependent components.
8437         (Check_Nested_Access): Add handling when there are no enclosing
8438         subprograms (e.g. case of a package body).
8439         (Find_Parameter_Type): Factor routine from several other compiler files.
8440         Remove routine from Find_Overridden_Synchronized_Primitive.
8441
8442 2007-12-13  Thomas Quinot  <quinot@adacore.com>
8443
8444         * sinput.adb (Get_Source_File_Index): Add assertion to guard against
8445         an invalid access to an uninitialized slot in the
8446         Source_File_Index_Table.
8447
8448 2007-12-13  Thomas Quinot  <quinot@adacore.com>
8449
8450         * sinput-l.adb (Load_File): Disable style checks when preprocessing.
8451
8452 2007-12-13  Bob Duff  <duff@adacore.com>
8453
8454         * s-soflin.ads: Apply new pragma Favor_Top_Level to all
8455         access-to-subprogram types in this package.
8456
8457 2007-12-13  Olivier Hainque  <hainque@adacore.com>
8458
8459         * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
8460         with Stack_Grows_Down in System.Parameters. Rename Array_Address into
8461         Stack_Overlay_Address and document that we are using an internal
8462         abstraction.
8463         (Byte_Size, Unsigned_32_Size): Remove, now useless.
8464         (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
8465         consistently throughout the various implementation pieces.
8466
8467         * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
8468         overlay we are using to fill the stack area with patterns.
8469         (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
8470         (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
8471         (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
8472
8473 2007-12-13  Robert Dewar  <dewar@adacore.com>
8474
8475         * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
8476
8477 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
8478
8479         * s-tassta.adb:
8480         (Create_Task): Take into account tasks created by foreign threads.
8481         Code clean up: use constants instead of hard coded values.
8482
8483 2007-12-13  Robert Dewar  <dewar@adacore.com>
8484
8485         * styleg.adb (Check_Comment): More liberal rules for comment placement
8486
8487 2007-12-13  Olivier Hainque  <hainque@adacore.com>
8488
8489         * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
8490         of Procedure Value instead of Frame Pointer as the invocation
8491         identifier associated with the instruction pointer in each traceback
8492         entry.
8493
8494         * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
8495         TB_Entry_For): Revert back to use of Procedure Value instead of Frame
8496         Pointer as the invocation identifier passed to tbk$symbolize.
8497
8498         * s-traent-vms.ads, s-traent-vms.adb
8499         (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
8500         Procedure Value instead of Frame Pointer as the invocation identifier
8501         passed to tbk$symbolize.
8502
8503 2007-12-13  Robert Dewar  <dewar@adacore.com>
8504
8505         * tbuild.ads, tbuild.adb:
8506         Fix location of flag for unrecognized pragma message
8507
8508 2007-12-13  Robert Dewar  <dewar@adacore.com>
8509
8510         * treepr.ads, treepr.adb: (pl): implement use of positive value
8511         shorthands
8512
8513 2007-12-13  Robert Dewar  <dewar@adacore.com>
8514
8515         * xeinfo.adb: Remove warnings
8516         * xnmake.adb: Remove warnings
8517         * xsinfo.adb: Remove warnings
8518         * xtreeprs.adb: Remove warnings
8519         * xsnames.adb: Remove warnings
8520
8521         * a-ngcoar.adb: Fix typo.
8522         * s-interr.adb: Minor reformatting
8523         * env.c: Minor reformatting.
8524         * g-bytswa.adb: Minor reformatting.
8525         * g-rannum.ads: Minor documentation improvements
8526         * s-tasinf-mingw.adb: Minor header fix
8527         * a-clrefi.adb: Minor reformatting
8528         * g-sttsne.ads: Minor documentation improvement
8529         * g-sttsne-locking.ads: Minor documentation improvement
8530         * g-soliop-solaris.ads: Minor documentation improvement
8531         * g-soliop-mingw.ads: Minor documentation improvement
8532         * g-soliop.ads: Minor documentation improvement
8533         * exp_aggr.ads: Minor reformatting
8534         * debug.adb: Add documentation for the gprbuild debug flags
8535         * exp_ch2.adb: Use Nkind_In to simplify code throughout
8536         * exp_pakd.adb: Minor reformatting
8537
8538         * g-altive.ads, g-alleve.adb: Remove assertions.
8539         Add comment about minor differences between targets regarding
8540         floating-point operations.
8541
8542         * g-thread.adb: Remove pragma unreferenced.
8543         * lib.ads: Minor reformatting
8544         * par-ch9.adb: Minor reformatting of error messages
8545         * sem_case.adb: Minor reformatting
8546         * s-fileio.adb: Minor reformattinng
8547         * s-vmexta.ads: Minor typo
8548         * vxaddr2line.adb:
8549         Take into account 'Success' value as per new GNAT warning.
8550
8551 2007-12-13  Vincent Celier  <celier@adacore.com>
8552
8553         * a-direct.adb (Create_Path): Always take '/' as a directory separator,
8554         even on Windows
8555
8556 2007-12-13  Robert Dewar  <dewar@adacore.com>
8557             Bob Duff  <duff@adacore.com>
8558
8559         * gnat_ugn.texi: Dcoument new rules for style check comment alignment
8560         Document that suffixes may be terminations of each others
8561         Add doc for -gnatw.a and -gnatw.A
8562         Document gnatbind -Wx switch
8563         Document BOM recognition
8564         Document pragma Implemented_By_Entry.
8565         Document new units.
8566
8567         * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
8568         Add doc for pragma Unreferenced suppressing no entities referenced msg
8569         Add documentation of GNAT.Directory_Operations.Iteration
8570         Add documentation of GNAT.Random_Numbers
8571         Add documentation for pragma Shared.
8572         Correct documentation for Bit_Order
8573         Add documentation for the Pool_Address attribute.
8574         Fix and improve documentation of pragma machine_attribute.
8575         New pragma Fast_Math
8576         Document BOM recognition
8577
8578         * vms_data.ads: Add entries for -gnatw.a -gnatw.A
8579         Add /Wide_Character_Encoding for binder
8580         Add qualifier for the new gnatpp option --no-separate-loop-then
8581
8582 2007-12-13  Matthew Heaney  <heaney@adacore.com>
8583
8584         * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
8585         which generic formal operations are called for each operation.
8586
8587 2007-12-13  Olivier Hainque  <hainque@adacore.com>
8588
8589         * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
8590         (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
8591
8592 2007-12-13  Emmanuel Briot  <briot@adacore.com>
8593
8594         * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
8595         Reference_Dir unless we actually need it.
8596
8597 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
8598             Tristan Gingold  <gingold@adacore.com>
8599
8600         * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
8601
8602         * s-osprim-vms.adb,
8603         a-calend-vms.adb: Remove pragma warning off and add pragma
8604         unreferenced.
8605
8606 2007-12-13  Robert Dewar  <dewar@adacore.com>
8607
8608         * impunit.adb: Add entries for missing units
8609
8610         * Makefile.rtl: Add new run-time units.
8611
8612         * Make-lang.in:  Update dependencies.
8613
8614 2007-12-13  Bob Duff  <duff@adacore.com>
8615
8616         * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
8617         types, set Can_Use_Internal_Rep appropriately, based on
8618         Always_Compatible_Rep_On_Target.
8619
8620 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
8621             Arnaud Charlet  <charlet@adacore.com>
8622
8623         * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
8624         it to the front end and setting the aamp_target environment variable
8625         to the switch's argument to ensure that gnaampbind and gnaamplink will
8626         take the specified library into account.
8627         (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
8628         target, since the CIL compiler supports an "object" file (.il files).
8629
8630 2007-12-13  Vincent Celier  <celier@adacore.com>
8631
8632         * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
8633         (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
8634
8635 2007-12-13  Geert Bosch  <bosch@adacore.com>
8636
8637         * s-parame-vxworks.adb:
8638         Update comments to reflect usage of this package by Nucleus.
8639
8640 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
8641
8642         * i-vxwork.ads: Kill new warning on Convention C, since changing the
8643         spec would break code.
8644
8645         * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
8646
8647         * system-vxworks-alpha.ads: Removed.
8648
8649 2007-12-10  Eric Botcazou  <ebotcazou@adacore.com>
8650
8651         * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
8652
8653 2007-12-09  Samuel Tardieu  <sam@rfc1149.net>
8654
8655         PR ada/34366
8656         * sem_ch3.adb (Designates_T): New function.
8657         (Mentions_T): Factor reusable part of the logic into Designates_T.
8658         Consider non-access parameters and access and non-access result.
8659         (Check_Anonymous_Access_Components): Set ekind of anonymous access to
8660         E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
8661
8662         * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
8663
8664 2007-12-07  Ludovic Brenta  <ludovic@ludovic-brenta.org>
8665
8666         PR ada/34361
8667         * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
8668         the new implementation of target-specific calls.
8669
8670 2007-12-07  Olivier Hainque  <hainque@adacore.com>
8671
8672         * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
8673         the designated full view, only follow a second level Full_View link
8674         for Non_Limited_Views of from_limited_with references.
8675
8676 2007-12-07  Samuel Tardieu  <sam@rfc1149.net>
8677
8678         PR ada/15805
8679         * sem_ch6.adb (Process_Formals): Prevent an access type formal
8680         to be initialized with an access to constant object.
8681
8682         * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
8683         when an access to constant is used to initialize an access
8684         value.
8685
8686         PR ada/21346
8687         * a-direct.adb (Compose): Containing_Directory can be an empty string.
8688
8689 2007-12-07  Olivier Hainque  <hainque@adacore.com>
8690
8691         PR ada/34173
8692         * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
8693         the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
8694         this is from an alignment clause on the GNAT entity.
8695         * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
8696         to distinguish the case where we set it from the type's alignment.
8697         When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
8698         whether this alignment was set from an explicit alignment clause.
8699
8700 2007-12-06  Eric Botcazou  <ebotcazou@adacore.com>
8701
8702         * decl.c (make_packable_type): Revert last change.
8703         (gnat_to_gnu_field): Avoid setting size and position multiple times.
8704         * utils.c (finish_record_type): Retrieve the real name of the type.
8705
8706 2007-12-05  Eric Botcazou  <ebotcazou@adacore.com>
8707
8708         * trans.c (lvalue_required_p): Take base node directly instead
8709         of its parent.  Rename second parameter to 'gnu_type'.
8710         <N_Indexed_Component>: Return 0 if the node isn't the prefix.
8711         <N_Slice>: Likewise.
8712         (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
8713         Adjust calls to lvalue_required_p.
8714
8715 2007-12-05  Samuel Tardieu  <sam@rfc1149.net>
8716
8717         PR ada/21489
8718         * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
8719         parameters of an entry call.
8720
8721 2007-12-03  Robert Dewar  <dewar@adacore.com>
8722             Samuel Tardieu  <sam@rfc1149.net>
8723
8724         PR ada/34287
8725         * sem_util.adb (Safe_To_Capture_Value): Do not capture values
8726         of variables declared in a library-level package.
8727
8728 2007-12-02  Samuel Tardieu  <sam@rfc1149.net>
8729
8730         * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
8731         of Empty_String'Unchecked_Access.
8732
8733         * Makefile.in: Add support for sh4-linux.
8734
8735         * system-linux-sh4.ads: New file.
8736
8737 2007-12-01  Kostik Belousov  <kostikbel@ukr.net>
8738
8739         PR ada/33722
8740         * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
8741         and its argument must not be free()ed.
8742
8743 2007-11-29  Eric Botcazou  <ebotcazou@adacore.com>
8744
8745         * decl.c (make_packable_type): Retrieve the real name of the type.
8746         (maybe_pad_type): Simplify similar code.
8747
8748 2007-11-28  Samuel Tardieu  <sam@rfc1149.net>
8749
8750         PR ada/15804
8751         * par-ch3.adb (P_Variant_Part): Signal an error when anything other
8752         than an identifier is used after "case" in a variant_part.
8753
8754         PR ada/17318
8755         * par-ch4.adb (Is_Parameterless_Attribute): New map.
8756         (P_Name, Scan_Apostrophe block): Parse left parenthesis following
8757         attribute name or not depending on the new map.
8758
8759         * sem-attr.adb (Analyze_Attribute): Parameterless attributes
8760         returning a string or a type will not be called with improper
8761         arguments.
8762
8763         * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
8764
8765         * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
8766
8767         PR ada/32792
8768         * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
8769         Signal an error when attribute argument is a fixed-point value of
8770         an unknown type.
8771
8772         PR ada/22559
8773         * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
8774         a derived ordinary fixed point type.
8775
8776         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
8777         RM_Size when a Small clause is found.
8778
8779 2007-11-26  Andreas Krebbel  <krebbel1@de.ibm.com>
8780
8781         PR 34081/C++
8782         * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
8783         Pass 'false' for the new allocate_struct_function parameter.
8784         * utils.c (build_function_stub): Likewise.
8785
8786 2007-11-25  Richard Guenther  <rguenther@suse.de>
8787
8788         * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
8789         (gnat_poplevel): Likewise.
8790
8791 2007-11-25  Eric Botcazou  <ebotcazou@adacore.com>
8792
8793         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
8794         strict alignment, no alignment clause and a known static size, cap
8795         the type alignment to the greatest power of 2 factor of the size.
8796         (gnat_to_gnu_field): If the field has a component clause, is aliased
8797         or of a type with strict alignment, require that its size be equal to
8798         that of the type.
8799         (validate_size): Use the type size as the minimum size for a type with
8800         strict alignment.
8801
8802 2007-11-23  Samuel Tardieu  <sam@rfc1149.net>
8803
8804         * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
8805         s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
8806         s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
8807         Use 'Access instead of 'Unchecked_Access in second and third
8808         arguments of pthread_sigmask.
8809
8810 2007-11-23  Eric Botcazou  <ebotcazou@adacore.com>
8811
8812         * decl.c (ceil_alignment): New function.
8813         (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
8814         (make_packable_type): Likewise.
8815
8816 2007-11-22  Olivier Hainque  <hainque@adacore.com>
8817
8818         * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
8819         to fit in 80 columns.
8820
8821 2007-11-21  Aurelien Jarno  <aurelien@aurel32.net>
8822
8823         * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
8824         * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
8825
8826 2007-11-19  Eric Botcazou  <ebotcazou@adacore.com>
8827
8828         PR ada/34098
8829         * misc.c (gnat_adjust_rli): Delete.
8830         (gnat_init): Do not initialize the translation code here.
8831         Do not call set_lang_adjust_rli.
8832         * trans.c (init_code_table): Make static.
8833         (gnat_init_stmt_group): Delete.
8834         (gigi): Initialize the translation code entirely here.
8835         Emit debug info for the common types here instead of...
8836         * utils.c (gnat_init_decl_processing): ...here.
8837         * gigi.h (init_code_table): Delete.
8838         (gnat_init_stmt_group): Likewise.
8839
8840 2007-11-16  Olivier Hainque  <hainque@adacore.com>
8841
8842         * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
8843         retrieving an allocator return value from a super-aligned address from
8844         here to ...
8845         * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
8846         expect a super-aligned address for a fat or thin pointer.
8847
8848 2007-11-14  Eric Botcazou  <ebotcazou@adacore.com>
8849
8850         * trans.c (call_to_gnu): Always set the source location on the call
8851         expression.  If the function returns-by-target, also set it on the
8852         address expression.
8853
8854 2007-11-14  Samuel Tardieu  <sam@rfc1149.net>
8855
8856         * adaint.c, init.c, initialize.c, link.c: Remove system-specific
8857         sections of non-supported Interix target.
8858
8859         * s-osinte-interix.ads: Removed.
8860
8861         * i-cstrin.ads (chars_ptr): Make it a C convention type.
8862
8863 2007-11-13  Samuel Tardieu  <sam@rfc1149.net>
8864
8865         * a-tasatt.adb: Add a comment at the beginning of the package
8866         explaining why in general 'Unchecked_Access must be used instead
8867         of 'Access.
8868
8869         * sem_prag.adb (Process_Convention): Move the test for the
8870         entity on which the Convention pragma applies down to also
8871         forbid pragma Convention on enumeration literals reached
8872         through renamings.
8873
8874 2007-11-10  Samuel Tardieu  <sam@rfc1149.net>
8875
8876         * a-tasatt.adb: Revert previous change for this file as it will
8877         generate an error when this package is instantiated from a
8878         local context.
8879
8880 2007-11-07  Samuel Tardieu  <sam@rfc1149.net>
8881
8882         * a-tasatt.adb: Type Wrapper should be declared in comment instead
8883         of already declared type Node_Access.
8884         Use 'Access instead of 'Unchecked_Access when applicable. Local
8885         lifetime is the one of the package.
8886         (Set_Value): W is allocated on the heap.
8887
8888         * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
8889         applicable.
8890         (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
8891         access type.
8892         (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
8893         access type.
8894
8895         * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
8896         applicable.
8897         (elaboration code): Timer_Queue lifetime is the one of the
8898         package.
8899
8900         * tracebak.c (i386 alternative): Remove useless comparaison
8901         which is always false; LOWEST_ADDRESS is 0 and is never greater
8902         than an unsigned integer.
8903
8904         * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
8905         embedded check for "Ada_Version >= Ada_05".
8906
8907 2007-11-07  Olivier Hainque  <hainque@adacore.com>
8908
8909         * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
8910         craft and expand comment.
8911
8912 2007-11-01  Eric Botcazou  <ebotcazou@adacore.com>
8913
8914         * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
8915
8916 2007-10-23  Eric Botcazou  <ebotcazou@adacore.com>
8917
8918         * misc.c (gnat_handle_option): Replace call to abort with
8919         call to gcc_unreachable.
8920         (gnat_init): Likewise.
8921         (gnat_expand_expr): Likewise.
8922         (fp_prec_to_size): Likewise.
8923         (fp_size_to_prec): Likewise.
8924
8925 2007-10-23  Richard Guenther  <rguenther@suse.de>
8926
8927         PR bootstrap/33608
8928         * tracebak.c: #undef abort after including system.h.
8929
8930 2007-10-20  Danny Smith  <dannysmith@users.sourceforge.net>
8931
8932         * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
8933         s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
8934         for win32 targets.
8935         (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
8936
8937 2007-10-15  Eric Botcazou  <ebotcazou@adacore.com>
8938
8939         * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
8940         Set the protection status of the guard page based on the value of On.
8941
8942         * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
8943
8944         * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
8945         (Exit_Task): Pass False to Hide_Yellow_Zone.
8946
8947 2007-10-15  Robert Dewar  <dewar@adacore.com>
8948
8949         * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
8950         s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
8951         a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
8952         checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
8953         freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
8954         gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
8955         mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
8956         prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
8957         sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
8958         s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
8959         uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
8960         a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
8961         a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
8962         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
8963         a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
8964         a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
8965         Minor reformatting.
8966         Add Unreferenced and Warnings (Off) pragmas for cases of
8967         variables modified calls where they are IN OUT or OUT parameters and
8968         the resulting values are not subsequently referenced. In a few cases,
8969         we also remove redundant code found by the new warnings.
8970
8971         * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
8972         sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
8973         sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
8974         sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
8975         warning controlled by -gnatw.o that warns on cases of out parameter
8976         values being ignored.
8977
8978 2007-10-15  Geert Bosch  <bosch@adacore.com>
8979
8980         * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
8981
8982         * expect.c: Initial port to arm-mentor-nucleus.
8983         Use kill for __gnat_kill() on VMS.
8984
8985 2007-10-15  Emmanuel Briot  <briot@adacore.com>
8986
8987         * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
8988         value.
8989         (Xref_Record): Change type for Line, since in the case of a reference to
8990         a predefined entity (as happens for array index types), the line is set
8991         to 0.
8992         Add support for parsing multiple array index types info, or
8993         multiple inherited interfaces info. This information cannot be stored
8994         in Xref_Entity_Record, which only supports a single instance of Tref_*,
8995         and is therefore stored in the list of references instead. It has a
8996         special treatement later on in tools that use this information.
8997
8998 2007-10-15  Tristan Gingold  <gingold@adacore.com>
8999
9000         * debug.adb: Document use of -gnatd.a and -gnatd.I
9001
9002         * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
9003
9004 2007-10-15  Javier Miranda  <miranda@adacore.com>
9005
9006         * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
9007         Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
9008         care of access to class-wide interface types plus removal of bizarre
9009         conversion of tagged object to access type (reported by Gary
9010         Dismukes). After this patch there is no need to perform any
9011         additional management on these nodes in Expand_Interface_Actuals.
9012
9013         * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
9014         that handles use of 'Access and 'Unchecked_Access applied to
9015         actuals covering interface types. Such code is now
9016         centralized in Expand_N_Attribute_Reference.
9017
9018 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
9019
9020         * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
9021         of tagged types whose ultimate ancestor is a CPP type.
9022         (Freeze_Array_Type): For a packed array type, generate an initialization
9023         procedure if the type is public, to handle properly a client that
9024         specifies Normalize_Scalars.
9025
9026 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
9027
9028         * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
9029         inside a generic body, retrieve the full view of the entry family
9030         discrete subtype if available.
9031
9032 2007-10-15  Thomas Quinot  <quinot@adacore.com>
9033
9034         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
9035         attempt to generate stubs for hidden primitive operations.
9036
9037 2007-10-15  Vincent Celier  <celier@adacore.com>
9038
9039         * mlib-tgt-specific.adb (Support_For_Libraries): New function,
9040         returning None, used when there is no platform specific body for
9041         MLib.Tgt.Specific.
9042
9043 2007-10-15  Bob Duff  <duff@adacore.com>
9044
9045         * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
9046         (passing'Unrestricted_Access of nested subprograms to Sort) with use of
9047         the generic Heap_Sort_G, in order to avoid trampolines.
9048
9049 2007-10-15  Vasiliy Fofanov  <fofanov@adacore.com>
9050             Jose Ruiz  <ruiz@adacore.com>
9051
9052         * vx_stack_info.c: New file.
9053
9054         * i-forbla-unimplemented.ads: New file.
9055
9056         * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
9057         for unsupported configurations; use it on VMS targets instead of the
9058         real one.
9059         (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
9060         vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
9061         used by VxWorks targets to have access to task-specific data and be
9062         able to extract the stack boundaries for stack checking.
9063         Use system-vms-ia64.ads on ivms.
9064
9065         * Make-lang.in: Update dependencies.
9066
9067         * sysdep.c (__gnat_get_stack_info): Move to a standalone file
9068         (vx_stack_info.c).
9069
9070 2007-10-15  Vincent Celier  <celier@adacore.com>
9071
9072         * snames.adb, snames.ads: Add new standard name runtime_library_dir
9073
9074         * prj.ads (Language_Config): Add new component Runtime_Library_Dir
9075
9076         * prj-attr.adb: Add project level attribute Runtime_Library_Dir
9077
9078         * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
9079         the source is unknown.
9080
9081         * prj-ext.adb: Spelling error fix
9082
9083         * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
9084         95 reserved word in its name.
9085         (Process_Project_Level_Array_Attributes): Process new attribute
9086         Runtime_Library_Dir.
9087
9088         * prj-part.adb (Parse_Single_Project): Do not check the name of the
9089         config project against the user project names.
9090
9091         * prj-proc.adb (Expression): In multi-language mode, indexes that do
9092         not include a dot are always case insensitive.
9093         (Process_Declarative_Items): Ditto
9094         (Process_Project_Tree_Phase_1): Set Success to False in case an error is
9095         detected.
9096
9097         * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
9098         True, compare both indexes in lower case.
9099
9100 2007-10-15  Robert Dewar  <dewar@adacore.com>
9101
9102         * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
9103
9104 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
9105
9106         * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
9107         association for an access component, add an association with null as
9108         the expression. Remove testing for array subtypes and the setting in
9109         that case of Ctyp to the array component type, which prevented proper
9110         inclusion of an association for null-initialized arrays. Collapse
9111         condition that tests for array subtypes into just a test of
9112         Is_Partially_Initialized_Type (which already covers arrays anyway).
9113
9114 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
9115
9116         * sem_ch12.adb: Minor code reformatting.
9117         (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
9118         find the parent package which may have been hidden by local
9119         declarations.
9120
9121 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
9122
9123         * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
9124         flag of derived concurrent types, taking into account the flag setting
9125         on the parent subtype and any new set of discriminants.
9126
9127 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
9128
9129         * sem_ch4.adb: Minor code and comment reformatting.
9130         (Analyze_Allocator): When the designated type of an unconstrained
9131         allocator is a record with unknown discriminants or an array with
9132         unknown range bounds, emit a detailed error message depending on the
9133         compilation mode and whether the designated type is limited.
9134
9135 2007-10-15  Tristan Gingold  <gingold@adacore.com>
9136
9137         * system-vms-ia64.ads: New file.
9138
9139         * system-vms_64.ads: Minor comment fix.
9140
9141 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
9142
9143         * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
9144         body generated for a function with a controlling result that is a null
9145         extension, discard the generated body in favor of the current explicit
9146         one.
9147
9148 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
9149
9150         * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
9151         examining its original form, to handle properly operator calls that
9152         have been rewritten.
9153
9154 2007-10-15  Olivier Hainque  <hainque@adacore.com>
9155
9156         * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
9157         instead of a procedure value in each traceback entry.
9158
9159         * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
9160         instead of procedure value to TBK$SYMBOLIZE.
9161
9162         * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
9163         field.
9164         (TB_Entry_For): Account for the PV/FP renaming.
9165
9166         * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
9167         add comment.
9168         (Null_TB_Entry): Account for change of component name.
9169         (PV_For): Rename as FP_For.
9170
9171 2007-10-15  Tristan Gingold  <gingold@adacore.com>
9172
9173         * trans.c (gnat_to_gnu): Remove the padding structure more often.
9174         This optimize assignment to over-aligned record.
9175
9176 2007-10-15  Emmanuel Briot  <briot@adacore.com>
9177
9178         * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
9179         interfaces.
9180
9181         * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
9182         type, for dispatching calls.
9183
9184 2007-10-15  Vincent Celier  <celier@adacore.com>
9185             Robert Dewar  <dewar@adacore.com>
9186
9187         * gnat_ugn.texi: Add documentation for switches --version and --help
9188         for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
9189         gnatxref, gnatfind, gnatls, and gnatclean.
9190         Document -gnatw.o.
9191         Mention attribute Excluded_Source_Dirs
9192         Replace obsolescent attribute Locally_Removed_Files with attribute
9193         Excluded_Source_Files.
9194         Improve documentation of -u (gnatbind)
9195         Document how to do reliable stack checking for the environmental task
9196         on iVMS.
9197
9198         * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
9199         Document attribute Excluded_Source_Files and indicate that attribute
9200         Locally_Removed_Files is obsolescent.
9201
9202 2007-10-15  Thomas Quinot  <quinot@adacore.com>
9203
9204         * g-soccon-vms.ads: Fix value of MSG_WAITALL.
9205
9206         * gen-soccon.c:
9207         Update documentation to note that OpenVMS 8.3 or later must be used
9208         to generate g-soccon-vms.ads.
9209
9210         * atree.adb: Add ??? comment
9211
9212         * exp_util.adb: Minor reformatting.
9213         Add ??? comment in Kill_Dead_Code.
9214
9215 2007-10-15  Robert Dewar  <dewar@adacore.com>
9216
9217         * errout.ads: Comment clarification
9218
9219         * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
9220         (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
9221
9222         * lib.ads: Comment update
9223
9224         * init.c: Minor reformatting.
9225
9226         * sem_attr.adb: Minor formatting
9227
9228         * osint-b.ads: Minor reformatting
9229
9230         * sem_ch9.adb: Implement -gnatd.I switch
9231
9232         * g-comlin.adb: (Start): Fix handling of empty command line.
9233
9234         * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
9235         even when -rules follows the -cargs section.
9236
9237 2007-10-08  Ollie Wild  <aaw@google.com>
9238
9239         * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
9240         gnat_return_tree.
9241         (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
9242         gnat_return_tree.
9243         (gnat_eh_runtime_type): Removed.
9244         (gnat_return_tree): New function.
9245
9246 2007-10-08  Ben Elliston  <bje@au.ibm.com>
9247
9248         PR ada/33454
9249         Revert:
9250         2007-08-31  Ben Elliston  <bje@au.ibm.com>
9251
9252         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
9253         when compiling for powerpc64-*-linux.
9254         * system-linux-ppc64.ads: New file.
9255
9256 2007-09-27  Eric Botcazou  <ebotcazou@adacore.com>
9257
9258         Mapped location support
9259         * back_end.adb (Call_Back_End): Pass information about source
9260         files instead of units to gigi.
9261         * gigi.h (struct File_Info_Type): New.
9262         (gigi): Rename and change type of number_units parameter, change
9263         type of file_info_ptr parameter.
9264         * trans.c (number_files): New global variable.
9265         (gigi): Rename and change type of number_units parameter, change
9266         type of file_info_ptr parameter.
9267         If mapped location support is enabled, create the isomorphic mapping
9268         between source files and line maps.
9269         (Sloc_to_locus): If mapped location support is enabled, translate
9270         source location into mapped location.
9271         (annotate_with_node): Rename into set_expr_location_from_node.
9272         Call set_expr_location instead of annotate_with_locus.
9273         (Pragma_to_gnu): Adjust for above change.
9274         (Loop_Statement_to_gnu): Likewise.
9275         (call_to_gnu): Likewise.
9276         (Handled_Sequence_Of_Statements_to_gnu): Likewise.
9277         (gnat_to_gnu): Likewise.
9278         (add_stmt_with_node): Likewise.
9279         (add_cleanup): Likewise.
9280         * utils.c (gnat_init_decl_processing): Do not set input_line.
9281
9282 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
9283
9284         * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
9285         (Applicable_Use): Emit a warning when a package tries to use itself.
9286         (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
9287         is already in use or the package where it is declared is in use or is
9288         declared in the current package.
9289         (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
9290
9291         * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
9292         s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
9293         s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
9294
9295 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
9296
9297         * a-calend-vms.adb, a-calend.adb:
9298         Add a section on leap seconds control along with two entities used to
9299         enable and disable leap seconds support. The array Leap_Second_Times is
9300         now constant and contains hard time values pre-generated. Remove
9301         all elaboration code used to populate the table of leap seconds.
9302
9303         * bindgen.adb:
9304         Add entity Leap_Seconds_Support to the list of global run-time variables
9305         along with a comment on its usage and values.
9306         (Gen_Adainit_Ada): Add code to generate the declaration and import of
9307         Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
9308         or one (enabled) depending on the presence of binder switch "-y".
9309         (Gen_Adainit_C): Add code to generate the declaration of external int
9310         __gl_leap_seconds_support. Set is value to zero (disabled) or one
9311         (enabled) depending on the presence of binder switch "-y".
9312
9313         * init.c: Add __gl_leap_seconds_support to the list of global values
9314         computed by the binder.
9315
9316 2007-09-26  Jerome Guitton  <guitton@adacore.com>
9317
9318         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
9319         s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
9320          s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
9321         s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
9322
9323         * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
9324
9325         * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
9326         function which can be called by the debugger to interrupt the tasks of
9327         an Ada application asynchronously, as needed on VxWorks.
9328         (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
9329
9330         * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
9331         renamed from Stop_All_Tasks. Update comments.
9332         (Stop_All_tasks): New function declaration.
9333
9334 2007-09-26  Olivier Hainque  <hainque@adacore.com>
9335
9336         * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
9337         #include <utime.h> and #define GCC_RESOURCE_H before
9338         #include <sys/wait.h>.
9339         Add more protections in __gnat_translate_vms.
9340
9341         * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
9342         #include <sys/wait.h>.
9343
9344 2007-09-26  Thomas Quinot  <quinot@adacore.com>
9345             Sergey Rybin  <rybin@adacore.com>
9346
9347         * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
9348
9349         * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
9350         where it belongs.
9351
9352         * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
9353
9354         * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
9355         where it belongs.
9356
9357         * sem_dist.ads: Minor comment fix
9358
9359         * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
9360
9361 2007-09-26  Javier Miranda  <miranda@adacore.com>
9362             Eric Botcazou  <ebotcazou@adacore.com>
9363
9364         * a-tags.adb:
9365         (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
9366          indirection added to the HT_Link component of the TSD. This is required
9367          to statically allocate the TSD.
9368
9369         * a-tags.ads:
9370         Minor reordering of the declarations in the private part. Required to
9371         add a level of indirection to the contents of the TSD component HT_Link.
9372         This is required to statically allocate the TSD.
9373
9374         * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
9375         Is_Statically_Allocated set from constant objects.
9376         Do not make exported constants created by the compiler volatile.
9377         (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
9378         as read-only.
9379
9380         * trans.c (Identifier_to_gnu): For constants, unshare initializers
9381         before returning them.
9382
9383         * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
9384         public part of the package.
9385         (Make_DT): Move HT_Link component out of the TSD record. For this
9386         purpose Make_DT now declares a separate object that stores the
9387         HT_Link value, and initializes the TSD component with the address
9388         of this new object. The addition of this level of indirection is
9389         required to statically allocate the TSD because the TSD cannot
9390         have variable components.
9391         (Expand_Interface_Conversion): Improve the expanded code.
9392         (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
9393
9394         * sem_disp.adb (Check_Dispatching_Operation): In case of a body
9395         declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
9396         if we are building static dispatch tables then we must not generate
9397         extra code to register the primitive because the dispatch table will
9398         be built at the end of the library package; otherwise we notify that
9399         we cannot build the static dispatch table.
9400
9401 2007-09-26  Robert Dewar  <dewar@adacore.com>
9402
9403         * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
9404         overlays.
9405
9406         * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
9407         (Analyze_Record_Representation_Clause): Suppress junk warning for
9408         missing component clause.
9409         (Analyze_Attribute_Definition_Clause, case Address): Apply the special
9410         tests for controlled type overlay to composites with controlled
9411         components.
9412         (Analyze_Record_Representation_Clause): Add reference for component name
9413
9414 2007-09-26  Javier Miranda  <miranda@adacore.com>
9415             Gary Dismukes  <dismukes@adacore.com>
9416
9417         * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
9418         for thunks associated with interface types.
9419
9420         * einfo.ads: Improve documentatation of Is_Internal
9421         (Is_Thunk): New attribute applicable to subprograms. True for thunks
9422         associated with interface types.
9423         Extensive comment fixes regarding flags that appear in all entities. The
9424         documentation is now consistent for all such flags (there were a number
9425         of errors in the documentation in this regard).
9426
9427         * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
9428
9429         * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
9430         of these procedures are passed a function call that already has
9431         build-in-place actuals (testing new flag
9432         Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
9433         the case where processing continues.
9434         (Expand_Call): If the call is generated from a thunk body then we
9435         propagate the extra actuals associated with the accessibility
9436         level of the access type actuals.
9437
9438         * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
9439         of each extra formal of a protected operation to reference the
9440         corresponding extra formal of the subprogram denoted by the
9441         operation's Protected_Body_Subprogram.
9442
9443         * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
9444         N_Function_Call nodes.
9445
9446 2007-09-26  Robert Dewar  <dewar@adacore.com>
9447
9448         * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
9449
9450         * debug.adb: Add d.s flag.
9451
9452 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
9453
9454         * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
9455         debug variable so that it won't be initialized when pragma
9456         Initialize_Scalars is in effect.
9457
9458 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
9459
9460         * freeze.adb (Freeze_Entity): Remove check for preelaborable
9461         initialization of a full view. This is moved to
9462         Analyze_Package_Specification.
9463
9464         * sem_ch7.adb (Analyze_Package_Specification): Add check for
9465         preelaborable initialization of a full view in entity loop.
9466         (Uninstall_Declarations): If entity is a use-visible compilation unit,
9467         its child units are use-visible only if they are visible child units.
9468
9469         * sem_util.adb (Is_Preelaborable_Expression): New function to determine
9470         whether an expression can be used within a type declaration that
9471         requires preelaborable init.
9472         (Check_Components): Replace inline code that does partial checking for
9473         preelaborable default expressions with call to
9474         Is_Preelaborable_Expression.
9475         (Has_Preelaborable_Initialization): In the case of a generic actual
9476         subtype, (that is, Is_Generic_Actual is True), return the result of
9477         applying Has_Preelaborable_Initialization to the generic actual's base
9478         type.
9479
9480 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
9481
9482         * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
9483         call to Jan_1_Day _Of_Week to optimize its performance.
9484         (Is_Leap): Move the routine to the scope of Week_In_Year.
9485         (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
9486         weekday on which January 1 falls of Year - 1 and Year + 1. This function
9487         avoids calling Time_Of and Split, thus making it more efficent.
9488         (Week_In_Year): Reimplemented in oder to follow ISO 8601.
9489
9490         * g-calend.ads (Week_In_Year): Change comment to reflect new
9491         implementation.
9492
9493 2007-09-26  Emmanuel Briot  <briot@adacore.com>
9494
9495         * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
9496         Command_Line): New types
9497         (Define_Alias, Define_Prefix, Free): New subprograms. These provide
9498         support for defining how switches can be grouped on a command line (as
9499         is the case for -gnatw... for GNAT), and how simple switches can be
9500         used as aliases for more complex switches (-gnatwa is same as
9501         -gnatwbcef...)
9502         (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
9503         (Start, Current_*): New subprograms
9504         Added support for parsing an array of strings in addition to the real
9505         command line.
9506         (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
9507          be moved from the body to the private part of the spec.
9508         (*): All subprograms now have an extra parameter with default value to
9509         specify which parser should be used. For backward compatibility, it
9510         defaults to parsing the command line of the application. They were also
9511         modified to properly handle cases where each of the argument does not
9512         start at index 1 (which is always true for Ada.Command_Line, but not
9513         when processing any Argument_List).
9514         (Free): New subprogram
9515         (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
9516         Argument): New subprograms
9517         (Switch_Parameter_Type): New enum, which clarifies the code. The extra
9518         special characters like ':', '=',... are now handled in a single place,
9519         which makes the code more extensible eventually.
9520         (Getopt, Full_Switch): When the switch was returned as part of the
9521         special character '*', make sure it is prepended by the switch character
9522         ('-' in general), so that the application knows whether "foo" or "-foo"
9523         was specified on the command line.
9524
9525 2007-09-26  Florian Villoing  <villoing@adacore.com>
9526
9527         * g-dirope.adb (Remove_Dir): In case we are removing directories
9528         recursively, make sure that if an exception is raised during the
9529         processing, the current working directory is reset to its initial
9530         value before propagating the exception.
9531
9532 2007-09-26  Vincent Celier  <celier@adacore.com>
9533
9534         * gnatbind.adb: If there are several ALI files specified and there is
9535         a main program to bind, the first ALI is expected to contain the main
9536         subprogram and the names of the binder generated files will be derived
9537         from the first ALI file name.
9538         (Gnatbind): Fix insertion character in invocation of Error_Msg
9539
9540 2007-09-26  Vincent Celier  <celier@adacore.com>
9541
9542         * gnatcmd.adb (Check_Files): Do not include sources that have been
9543         removed by attributes Exclude_Source_Files or Locally_Removed_Files.
9544
9545 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
9546
9547         * lib-xref.ads, lib-xref.adb: The entry for array types now carries
9548         information about each of its index types, following the type
9549         reference for its component type.
9550
9551 2007-09-26  Vincent Celier  <celier@adacore.com>
9552
9553         * make.adb: (Kill): New procedure (__gnat_kill imported)
9554         (Running_Compile, Outstanding_Compiles): Global variables that
9555         were previously local to procedure Compile_Sources.
9556         (Sigint_Intercepted): Send signal SIGINT to all outstanding
9557         compilation processes.
9558
9559         (Gnatmake): If project files are used, create the mapping of all the
9560         sources, so that the correct paths will be found.
9561
9562         * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
9563
9564 2007-09-26  Vincent Celier  <celier@adacore.com>
9565
9566         * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
9567
9568         * prj.ads, prj.adb (Default_Language): Remove function, no longer used
9569         Replace components Compiler_Min_Options and Binder_Min_Options with
9570         Compiler_Required_Switches and Binder_Required_Switches in record
9571         Language_Config.
9572         Remove components Default_Language and Config in Project_Tree_Data,
9573         no longer used.
9574
9575         * prj-attr.adb: New attributes Required_Switches (<language>) in
9576         packages Compiler and Binder.
9577
9578         * prj-nmsc.adb: Major rewrite of the processing of configuration
9579         attributes for gprbuild. No impact on GNAT tools.
9580
9581         * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
9582         process configuration attributes: this is done in Prj.Nmsc.Check.
9583         (Recursive_Process): Make a full copy of packages inherited from project
9584         being extended, instead of a shallow copy.
9585         (Process_Project_Tree_Phase_1): New procedure
9586         (Process_Project_Tree_Phase_1): New procedure
9587         (Process): Implementation now uses the two new procedures
9588
9589         * prj-util.adb (Executable_Of): Get the suffix and the default suffix
9590         from the project config, not the tree config that no longer exists.
9591
9592 2007-09-26  Vincent Celier  <celier@adacore.com>
9593
9594         * Make-lang.in: Update dependencies..
9595
9596 2007-09-26  Vincent Celier  <celier@adacore.com>
9597
9598         * osint.adb, osint.ads: Minor reformatting
9599
9600         * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
9601
9602 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
9603
9604         * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
9605         message to cite use of <> in aggregate component associations rather
9606         than wrongly indicating use of limited aggregates.
9607
9608 2007-09-26  Robert Dewar  <dewar@adacore.com>
9609
9610         * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
9611         Address_Taken.
9612
9613 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
9614
9615         * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
9616         ancestor of the derived type, the operations are inherited from the
9617         primary dispatch table of the parent.
9618         (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
9619         when the context is an explicit type conversion.
9620
9621 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
9622
9623         * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
9624         rule for qualified expressions properly, to detect improper conversions
9625         and resolve some cases of overloading.
9626
9627 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
9628
9629         * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
9630         proper kind of reference to the primitive operation, for better source
9631         navigation.
9632         (Valid_Conversion): A tagged conversion is legal if both operands are
9633         tagged.
9634
9635 2007-09-26  Robert Dewar  <dewar@adacore.com>
9636
9637         * sem_warn.adb (Check_References): Catch more cases of unreferenced
9638         packages.
9639
9640 2007-09-26  Vincent Celier  <celier@adacore.com>
9641
9642         * snames.adb, snames.ads: Change Include_Option to Include_Switches
9643
9644 2007-09-26  Robert Dewar  <dewar@adacore.com>
9645
9646         * s-wchstw.adb: provide messages for run time unit exceptions
9647
9648         * a-witeio.adb: Minor reformatting
9649
9650         * exp_ch13.adb: Minor reformatting
9651
9652 2007-09-26  Sergey Rybin  <rybin@adacore.com>
9653
9654         * vms_data.ads: Revise gnatmetric qualifiers.
9655         Add qualified for the new gnatbind option '-y'
9656
9657         * gnat_ugn.texi: Revise the gnatmetric section.
9658         Add entry for new gnatbind option '-y'.
9659
9660         * gnat_rm.texi: Minor spelling correction.
9661         Document restriction on overlaying controlled types
9662
9663 2007-09-26  Vincent Celier  <celier@adacore.com>
9664
9665         * makegpr.adb (Link_Executables): Do not fail when the root project has
9666         no sources, but is an extending project.
9667
9668 2007-09-25  Eric Botcazou  <ebotcazou@adacore.com>
9669
9670         * trans.c: Fix misplaced #define.
9671
9672 2007-09-22  Eric Botcazou  <ebotcazou@adacore.com>
9673
9674         * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
9675         the TYPE_REF_CAN_ALIAS_ALL flag to the result.
9676
9677 2007-09-21  Olivier Hainque  <hainque@adacore.com>
9678
9679         * utils.c (type_for_nonaliased_component_p): Return false for
9680         all AGGREGATE_TYPEs.
9681
9682 2007-09-17  Eric Botcazou  <ebotcazou@adacore.com>
9683
9684         * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
9685         object covered by 13.3(19) volatile.
9686
9687 2007-09-12  Eric Botcazou  <ebotcazou@adacore.com>
9688
9689         PR ada/26797
9690         PR ada/32407
9691         * utils.c (unchecked_convert): Use a subtype as the intermediate type
9692         in the special VIEW_CONVERT_EXPR case.
9693
9694 2007-09-12  Robert Dewar  <dewar@adacore.com>
9695
9696         * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
9697
9698         * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
9699         lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
9700         s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
9701         s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
9702         s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
9703         s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
9704         s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
9705         s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
9706         a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
9707         g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
9708         s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
9709         s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
9710         snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
9711         s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
9712         s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
9713         s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
9714         s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
9715         pragma Compiler_Unit and adds it to relevant library units.
9716
9717 2007-09-12  Ed Schonberg  <schonberg@adacore.com>
9718
9719         * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
9720         a box need not correspond to any component.
9721
9722 2007-09-12  Robert Dewar  <dewar@adacore.com>
9723
9724         * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
9725         the tasking version of the Ada run time when foreign threads are
9726         present and there are no explicit Ada tasks or tasking constructs.
9727
9728         * gnat_rm.texi: Clarify documentation of GNAT.Threads.
9729
9730 2007-09-12  Hristian Kirtchev  <kirtchev@adacore.com>
9731
9732         * bindusg.adb (Display): Correct comment for switch -X. Add a line for
9733         the usage of switch -y.
9734
9735         * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
9736         when switch -y is present.
9737
9738         * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
9739         leap seconds in Ada.Calendar and its children.
9740
9741 2007-09-12  Jose Ruiz  <ruiz@adacore.com>
9742
9743         * a-extiti.ads (Timer): The discriminant is a "not null access
9744         constant" in the Reference Manual.
9745         (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
9746
9747 2007-09-12  Robert Dewar  <dewar@adacore.com>
9748
9749         * a-swuwha.adb: Remove junk RM header
9750
9751 2007-09-12  Vincent Celier  <celier@adacore.com>
9752
9753         * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
9754         indicator
9755
9756         * g-bytswa.ads: Minor reformatting
9757
9758 2007-09-12  Thomas Quinot  <quinot@adacore.com>
9759
9760         * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
9761         Add new constant Thread_Blocking_IO, always True by default, set False
9762         on a per-runtime basis.
9763         (Need_Netdb_Buffer): New constant.
9764
9765 2007-09-12  Arnaud Charlet  <charlet@adacore.com>
9766
9767         * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
9768         Added renames for corresponding functions in System.Partition_Interface.
9769
9770 2007-09-12  Doug Rupp  <rupp@adacore.com>
9771
9772         * Makefile.in: Remove VMS specific System.CRTL packages which are no
9773         longer needed.
9774
9775         * s-crtl-vms64.ads: Removed.
9776
9777 2007-09-12  Olivier Hainque  <hainque@adacore.com>
9778
9779         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
9780         with discriminant constraints, generalize the code for BIT_FIELDs
9781         to PACKED fields of constant size and propagate DECL_PACKED.
9782
9783 2007-09-11  Eric Botcazou  <ebotcazou@adacore.com>
9784
9785         * decl.c (array_type_has_nonaliased_component): New predicate.
9786         (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
9787         set the TYPE_NONALIASED_COMPONENT flag on the type.
9788         <E_Array_Subtype>: Likewise.
9789         * gigi.h (type_for_nonaliased_component_p): Declare.
9790         * utils.c (type_for_nonaliased_component_p): New predicate.
9791         (create_field_decl): Invoke the above predicate to set the
9792         DECL_NONADDRESSABLE_P flag on the field.
9793
9794 2007-09-11  Javier Miranda  <miranda@adacore.com>
9795
9796         * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
9797         in library level record type entities if we are generating statically
9798         allocated dispatch tables.
9799
9800         * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
9801         importing/exporting the _tag declaration by new code
9802         importing/exporting the dispatch table wrapper. This change allows us
9803         to statically allocate of the TSD.
9804         (Make_DT.Export_DT): New procedure.
9805         (Build_Static_DT): New function.
9806         (Has_DT): New function.
9807
9808         * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
9809         True_Constant and Current_Value. Required to statically
9810         allocate the dispatch tables.
9811         (Check_Allocator): Make function iterative instead of recursive.
9812         Also return inner allocator node, when present, so that we do not have
9813         to look for that node again in the caller.
9814
9815 2007-09-11  Jan Hubicka  <jh@suse.cz>
9816
9817         * misc.c (gnat_expand_body): Kill.
9818         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
9819
9820 2007-09-10  Robert Dewar  <dewar@adacore.com>
9821
9822         * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
9823         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
9824         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
9825         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
9826         ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
9827         bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
9828         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
9829         butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
9830         comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
9831         elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
9832         err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
9833         exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
9834         exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
9835         exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
9836         exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
9837         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
9838         exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
9839         exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
9840         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
9841         exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
9842         exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
9843         exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
9844         fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
9845         get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
9846         gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
9847         gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
9848         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
9849         gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
9850         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
9851         gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
9852         inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
9853         lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
9854         lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
9855         make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
9856         mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
9857         mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
9858         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
9859         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
9860         osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
9861         osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
9862         par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
9863         par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
9864         par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
9865         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
9866         par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
9867         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
9868         prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
9869         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
9870         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
9871         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
9872         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
9873         prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
9874         rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
9875         scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
9876         sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
9877         sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
9878         sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
9879         sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
9880         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
9881         sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
9882         sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
9883         sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
9884         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
9885         sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
9886         sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
9887         sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
9888         sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
9889         sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
9890         stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
9891         styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
9892         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
9893         switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
9894         tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
9895         treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
9896         types.h, uintp.h, urealp.h, usage.adb, usage.ads,
9897         validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
9898         xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
9899         xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
9900         gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
9901         mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
9902         symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
9903         mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
9904         mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
9905
9906 2007-09-10  Emmanuel Briot  <briot@adacore.com>
9907
9908         * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
9909         classes ("[]").
9910
9911 2007-09-10  Vasiliy Fofanov  <fofanov@adacore.com>
9912
9913         * adaint.c (__gnat_translate_vms): new function.
9914
9915 2007-09-10  Gary Dismukes  <dismukes@adacore.com>
9916             Thomas Quinot  <quinot@adacore.com>
9917
9918         * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
9919         create an abstract subprogram in the case of 'Input. For 'Output we now
9920         create a real spec/body when the type is abstract, since it can
9921         potentially be called.
9922         (Predefined_Primitive_Bodies): Now allow the creation of a predefined
9923         body for 'Output when the type is abstract (only the creation of the
9924         body for 'Input is excluded when the type is abstract).
9925         (Stream_Operation_OK): Add an additional condition in the return
9926         statement, so that False will be returned for TTS_Stream_Input if the
9927         associated tagged type is an abstract extension. Add comments for
9928         return statement.
9929         (Expand_N_Object_Declaration): For the case of a shared passive
9930         variable, insert init proc call only after the shared variable
9931         procedures have been processed, because the IP call needs to undergo
9932         shared passive variable reference expansion, which requires these
9933         procedures to be available (and elaborated).
9934
9935 2007-09-10  Vincent Celier  <celier@adacore.com>
9936
9937         * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
9938         parameter Runtime_Project.
9939
9940 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
9941
9942         * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
9943         given a box association, the type of the component is discriminated,
9944         and the value of the discriminant is the discriminant of the enclosing
9945         type, retrieve its value from the aggregate itself, where it must have
9946         been supplied.
9947
9948         * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
9949         to remove other spurious ambiguities on arithmetic operations involving
9950         literals and addresses, on systems where Address is a visible integer
9951         type, when the operator is called in functional notation.
9952         (Try_Primitive_Operation): Within an instance, a call in prefixed form
9953         is legal when the types match, even if the operation is currently
9954         hidden.
9955
9956 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
9957
9958         * sem_ch12.adb (Build_Local_Package): A formal package with no
9959         associations is legal if all formals have defaults. It is not
9960         equivalent to a formal declared with a box.
9961
9962 2007-09-10  Sergey Rybin  <rybin@adacore.com>
9963
9964         * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
9965
9966 2007-09-10  Sergey Rybin  <rybin@adacore.com>
9967
9968         * gnat_ugn.texi: Add description of the new '-lratio' option
9969         Update 7.3.1 section about availability of the feature.
9970
9971 2007-09-10  Thomas Quinot  <quinot@adacore.com>
9972
9973         * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
9974         inserted node.
9975
9976 2007-09-10  Olivier Hainque  <hainque@adacore.com>
9977
9978         * Makefile.in: (mips-irix section): Activate build of libgmem.
9979
9980 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
9981
9982         * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
9983         x87 registers.
9984
9985 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
9986
9987         * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
9988         a debug renaming declaration specially.
9989
9990 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
9991
9992         * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
9993         which a constant renaming is treated as a normal object declaration.
9994         * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
9995         the N_Indexed_Component case.
9996         <N_Indexed_Component>: Fall through to above case.
9997         <N_Object_Renaming_Declaration>: Return true for all composite types.
9998
9999 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
10000
10001         * decl.c (make_packable_type): If the new type has been given BLKmode,
10002         try again to get an integral mode for it.
10003
10004 2007-09-07  Eric Botcazou  <ebotcazou@adacore.com>
10005
10006         Re-apply accidentally reverted change:
10007
10008         2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
10009
10010         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
10011         get_action_description_for): Replace _Unwind_Word with _uleb128_t
10012         and _Unwind_SWord with _sleb128_t.
10013
10014 2007-09-06  Eric Botcazou  <ebotcazou@adacore.com>
10015
10016         * trans.c (convert_with_check): Update call to real_2expN.
10017
10018 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
10019
10020         * trans.c (Compilation_unit_to_gnu): Use set_cfun.
10021         * utils.c (end_subprog_body): Likewise.
10022
10023 2007-09-03  Nick Clifton  <nickc@redhat.com>
10024
10025         * Make-lang.in: Change copyright header to refer to version 3 of
10026         the GNU General Public License and to point readers at the
10027         COPYING3 file and the FSF's license web page.
10028         * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
10029         Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
10030         namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
10031         treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
10032         Likewise.
10033
10034 2007-08-31  Vincent Celier  <celier@adacore.com>
10035
10036         PR ada/4720
10037
10038         * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
10039         gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
10040         (Check_Version_And_Help): New procedure in package Switch to process
10041         switches --version and --help.
10042         Use Check_Version_And_Help in GNAT tools
10043
10044         * make.adb:  Ditto.
10045         (Compile_Sources): Make sure that sources that are "excluded" are not
10046         compiled.
10047         (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
10048         project file is used.
10049         (Version_Switch): Remove, moved to Switch
10050         (Help_Switch): Remove, moved to Switch
10051         (Display_Version): Remove, moved to Switch
10052
10053         * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
10054         package Switch to process switches --version and --help.
10055         (Display_Version): New procedure
10056
10057         * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
10058
10059 2007-08-31  Javier Miranda  <miranda@adacore.com>
10060
10061         * a-tags.adb (Internal_Tag): Protect the run-time against wrong
10062         internal tags.
10063
10064 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
10065
10066         * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
10067         (Mark_Non_Null): If the node for which we just generated an access check
10068         is a reference to an *in* parameter and the reference appears in the
10069         declarative part of a subprogram body, mark the node as known non null.
10070
10071 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
10072
10073         * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
10074         structure of E_Exception to reflect the new flag.
10075         (Is_Raised, Set_Is_Raised): New inlined routines.
10076         Update the usage of available flag to reflect the addition of Is_Raised.
10077         (Is_Raised, Set_Is_Raised): Bodies of new routines.
10078         (Write_Entity_Flags): Write the status of flag Is_Raised.
10079         (Is_Descendent_Of_Address): New entity flag, to simplify handling of
10080         spurious ambiguities when integer literals appear in the context of an
10081         address type that is a visible integer type.
10082
10083         * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
10084         exceptions never being raised.
10085         (Analyze_Raise_Statement): When analyzing an exception, mark it as being
10086         explicitly raised.
10087
10088 2007-08-31  Javier Miranda  <miranda@adacore.com>
10089
10090         * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
10091         statement when compiling under restriction No_Exceptions_Proparation.
10092
10093 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
10094
10095         * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
10096         initialization aggregate for the type, generate itype references for
10097         thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
10098
10099 2007-08-31  Gary Dismukes  <dismukes@adacore.com>
10100
10101         * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
10102         library-level package renaming, pass the declaration associated with
10103         the renaming's special debug variable to Qualify_Entity_Names to ensure
10104         that its encoded name is properly qualified.
10105
10106         * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
10107         occurring in the list of entities to qualify, and do not attempt to
10108         traverse an entity list in that case. Variables associated with
10109 `       library-level package renamings can now occur in the table.
10110
10111         * exp_dbug.ads: Revise documentation of the encoding for renaming
10112         declarations.
10113
10114 2007-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10115
10116         * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
10117         access type points to an unconstrained array.
10118
10119 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
10120
10121         * restrict.adb, namet.adb, par-util.adb: Remove redundant type
10122         conversion.
10123
10124         * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
10125         simple redundant qualifications. The check is performed whenever the
10126         expression is a non-overloaded identifier.
10127         (Resolve_Type_Conversion): Enchance the redundant type conversion check
10128         to include loop parameters.
10129         (Valid_Conversion): Avoid generation of spurious error message.
10130
10131 2007-08-31  Bob Duff  <duff@adacore.com>
10132
10133         * par-ch4.adb (P_Simple_Expression): Fold long sequences of
10134         concatenations of string literals into a single literal, in order to
10135         avoid very deep recursion in the front end, which was causing stack
10136         overflow.
10137
10138         * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
10139         string, and the right operand is a string literal (the case of "" &
10140         "..."), optimize by avoiding copying the right operand -- just use the
10141         value of the right operand directly.
10142
10143         * stringt.adb (Store_String_Chars): Optimize by growing the
10144         String_Chars table all at once, rather than appending characters one by
10145         one.
10146         (Write_String_Table_Entry): If the string to be printed is very long,
10147         just print the first few characters, followed by the length. Otherwise,
10148         doing "pn(n)" in the debugger can take an extremely long time.
10149
10150         * sem_prag.adb (Process_Interface_Name): Replace loop doing
10151         Store_String_Char with Store_String_Chars.
10152
10153 2007-08-31  Vincent Celier  <celier@adacore.com>
10154
10155         * prj-attr.adb: Add new attribute Excluded_Source_Files
10156
10157         * prj-nmsc.adb: Use attribute Excluded_Source_Files before
10158         Locally_Removed_Files.
10159
10160         * snames.ads, snames.adb: New standard name Excluded_Source_Files
10161
10162 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
10163
10164         * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
10165         clauses of subunits, ignore limited_with_clauses that are illegal and
10166         have not been fully analyzed.
10167
10168 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
10169
10170         * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
10171         flag, for effiency. It is called when analyzing arithmetic operators
10172         and also for actuals in calls that are universal_integers. The flag is
10173         set for the predefined type address, and for any type or subtype
10174         derived from it.
10175
10176         * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
10177         Universal_Integer, when the formal is a descendent of address and the
10178         call appears in user code.
10179         (Analyze_Selected_Component): if the prefix is a private extension, the
10180         tag component is visible.
10181
10182         * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
10183         entity flag.
10184
10185 2007-08-31  Robert Dewar  <dewar@adacore.com>
10186
10187         * s-fileio.adb (Open): Normalize file name to lower case in non-case
10188         sensitive file name systems to avoid unexpected mismatch in Vista.
10189
10190 2007-08-31  Vincent Celier  <celier@adacore.com>
10191
10192         * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
10193
10194 2007-08-31  Vincent Celier  <celier@adacore.com>
10195
10196         * symbols-vms.adb (Initialize): Read symbol files with continuation
10197         lines
10198         (Finalize): If symbol is long, split the line
10199
10200 2007-08-31  Vincent Celier  <celier@adacore.com>
10201
10202         * fmap.ads: Minor comment updates
10203
10204 2007-08-31  GNAT Script  <nobody@adacore.com>
10205
10206         * Make-lang.in: Makefile automatically updated
10207
10208 2007-08-31  Bob Duff  <duff@adacore.com>
10209
10210         * sinfo.ads: Minor comment fix.
10211
10212 2007-08-31  Thomas Quinot  <quinot@adacore.com>
10213
10214         * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
10215         with implementation.
10216         Documentation cleanup only.
10217
10218 2007-08-31  Sergey Rybin  <rybin@adacore.com>
10219
10220         * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
10221         gnatpp '--separate-stmt-name' option.
10222         Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
10223         option.
10224
10225         * gnat_ugn.texi: Add description for the new gnatpp
10226         '--separate-stmt-name' and '--use-on-new-line' options.
10227
10228 2007-08-31  Ben Elliston  <bje@au.ibm.com>
10229
10230         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
10231         when compiling for powerpc64-*-linux.
10232         * system-linux-ppc64.ads: New file.
10233
10234 2007-08-22  Krister Walfridsson  <cato@df.lth.se>
10235
10236         * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
10237         NetBSD.
10238
10239 2007-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10240
10241         * misc.c (gnat_type_max_size): Constify.
10242
10243 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
10244
10245         * cstand.adb (Create_Standard): Create an entity for a zero-sized type
10246         associated with Standard_Debug_Renaming_Type, to be used as the type of
10247         the special variables whose names provide debugger encodings for
10248         renaming declarations.
10249
10250         * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
10251         (Set_Debug_Renaming_Link): Change to set Node25.
10252         (Write_Field13_Name): Remove case for E_Enumeration_Literal.
10253         (Write_Field25_Name): Add case for E_Variable to output
10254         "Debug_Renaming_Link".
10255         (Write_Field23_Name): Correct the output string for "Limited_View".
10256
10257         * exp_dbug.adb: Add with and use of Tbuild.
10258         (Debug_Renaming_Declaration): Replace creation of an enumeration type
10259         and literal with creation of a variable of type
10260         Standard_Debug_Renaming_Type whose name encodes both the renamed object
10261         and the entity of the renaming declaration.
10262         (Qualify_Entity_Name): Add the delayed qualification of the entity name
10263         part of the name of a variable that has a Debug_Renaming_Link.
10264
10265         * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
10266         special type to be associated with variables that provide debugger
10267         encodings for renaming declarations.
10268
10269 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
10270             Ed Schonberg  <schonberg@adacore.com>
10271             Javier Miranda  <miranda@adacore.com>
10272
10273         * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
10274         ancestor part given by an aggregate to test for an unchecked conversion,
10275         since this can occur in some cases when the ancestor part is a function
10276         call, and we don't want to fall into the recursive call to this
10277         procedure in that case.
10278
10279         * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
10280         stream attributes on limited types to account for user-specified
10281         attributes as well as whether Input (resp. Output) becomes available
10282         due to Read (resp. Write) being available for the type. Change Boolean
10283         variable to the more accurate name
10284         Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
10285         double-"not" predicate at beginning of return statement to more
10286         understandable form.
10287
10288         * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
10289         return has an associated N_Handled_Sequence_Of_Statements, then wrap it
10290         in a block statement and use that as the first statement of the
10291         expanded return rather than incorrectly using the handled sequence as
10292         the first statement.
10293
10294         * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
10295         operation, generate an explicit freeze node for it rather than
10296         generating extra formals, to ensure that gigi has the proper order of
10297         elaboration for anonymous subtypes in the signature of the subprograms.
10298         (Build_In_Place_Formal): Move assertion to beginning of loop.
10299         (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
10300         applied to a function call (occurs for some cases of 'Input).
10301         (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
10302         applied to a function call (occurs for some cases of 'Input).
10303
10304         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
10305         2005, generate an extended return statement enclosing the result object
10306         and 'Read call.
10307
10308         * freeze.adb (Freeze_Record_Type): Extend the current management of
10309         components that are access type with an allocator as default value: add
10310         missing support to the use of qualified expressions of the
10311         allocator (which also cause freezing of the designated type!)
10312         (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
10313         dispatching operation, since extra formals may be needed by calls to
10314         build-in-place functions (such as stream 'Input).
10315
10316         * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
10317         formals for 'Constrained and accessibility level in the case of a
10318         predefined dispatching operation.
10319
10320         * exp_util.adb (Insert_Actions): A protected body is a valid insertion
10321         point, no need to find the parent node.
10322
10323 2007-08-16  Javier Miranda  <miranda@adacore.com>
10324
10325         * exp_attr.adb (Attribute_Priority): Add missing support for entries
10326         and entry barriers.
10327
10328 2007-08-16  Javier Miranda  <miranda@adacore.com>
10329
10330         * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
10331         is not really required and can introduce regression with the debugger.
10332         The original problem is fixed with the patch written for checks.adb.
10333
10334 2007-08-16  Thomas Quinot  <quinot@adacore.com>
10335
10336         * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
10337         Range_Check on Allocated_Table.
10338
10339 2007-08-16  Vincent Celier  <celier@adacore.com>
10340
10341         * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
10342         Including_Non_Switch set to False.
10343         (Gnatmake): For the compiler, call Test_If_Relative_Path with
10344         Including_Non_Switch set to False.
10345
10346         * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
10347         parameter Including_Non_Switch, defaulted to True. When
10348         Including_Non_Switch is False, options that are not switches and
10349         appear as relative path are not converted to absolute paths.
10350
10351 2007-08-16  Nicolas Roche  <roche@adacore.com>
10352
10353         * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
10354         makefiles
10355
10356         * Make-lang.in: Update dependencies
10357
10358 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
10359
10360         * sem_ch10.adb (Has_With_Clause): If the name of the with clause
10361         currently inspected is a selected component, retrieve the entity of
10362         its selector.
10363         (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
10364         from the immediate ancestor of Main_Unit_Entity.
10365         (Install_Limited_Withed_Unit): Do not install the limited view of
10366         package P if P is reachable through an ancestor chain from package C
10367         and C also has a with clause for P in its body.
10368         (Has_Limited_With_Clause): New routine.
10369         (Has_With_Clause): New routine.
10370
10371 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
10372
10373         * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
10374         generic for an enclosing instance is a global reference, even though
10375         its scope is the enclosing instance.
10376
10377 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
10378             Javier Miranda  <miranda@adacore.com>
10379
10380         * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
10381         initialize a limited object.
10382         (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
10383         13/2 and 14/2.
10384         Make sure Has_Complex_Representation is inherited by derived type.
10385
10386 2007-08-16  Robert Dewar  <dewar@adacore.com>
10387
10388         * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
10389         exception case
10390
10391 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
10392
10393         * sem_disp.adb (Check_Dispatching_Operation): If the operation
10394         implements an operation inherited from a progenitor interface, verify
10395         that they are subtype-conformant.
10396
10397 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
10398             Bob Duff  <duff@adacore.com>
10399             Nicolas Setton  <setton@adacore.com>
10400
10401         * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
10402         (Resolve): Alphabetize local variables. Add new variable From_Lib. When
10403         the statement which is being resolved comes from a predefined library
10404         unit, all non-predefined library interpretations are skipped.
10405         (Resolve_Op_Concat): If string concatenation was folded in the parser,
10406         but the "&" is user defined, give an error, because the folding would
10407         be wrong.
10408
10409         * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
10410         the parser has folded a long sequence of concatenations of string
10411         literals.
10412
10413         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
10414         and "JMP_BUF" variables as artificial.
10415         (N_String_Literal): Do not use alloca for very long string literals. Use
10416         xmalloc/free instead. Otherwise the stack might overflow.
10417
10418         * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
10419         compiler.
10420
10421 2007-08-16  Vincent Celier  <celier@adacore.com>
10422
10423         * vms_conv.adb (Process_Argument): Ensure that project related options
10424         are not put in the -cargs section when using GNAT COMPILE.
10425
10426 2007-08-16  Robert Dewar  <dewar@adacore.com>
10427
10428         * gnat_ugn.texi: Add note on preprocessing (output file not written)
10429
10430 2007-08-16  Thomas Quinot  <quinot@adacore.com>
10431
10432         * a-tags.adb: Minor reformatting.
10433
10434 2007-08-16  Bob Duff  <duff@adacore.com>
10435
10436         * sem_type.ads, sem_ch4.adb: Minor reformatting.
10437
10438 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10439
10440         * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
10441         s-osinte-interix.ads, system-interix.ads: Removed.
10442
10443 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
10444
10445         * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
10446         calls to Check_Within_Time_Bounds.
10447         ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
10448         (Difference): Account for possible rounding of the resulting difference
10449
10450 2007-08-14  Robert Dewar  <dewar@adacore.com>
10451
10452         * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
10453         par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
10454         s-osinte-solaris.adb, s-osinte-solaris.ads,
10455         s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
10456
10457         * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
10458         switch -gnatyS. Enable -gnatyS in GNAT style check mode
10459
10460 2007-08-14  Robert Dewar  <dewar@adacore.com>
10461             Ed Schonberg  <schonberg@adacore.com>
10462
10463         * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
10464         Suppress unmodified in-out parameter warning in some cases
10465         This patch is a also fairly significant change to the way suppressible
10466         checks are handled.
10467
10468         * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
10469         needed for access to concurrent record types generated by the expander.
10470         (Generate_Range_Check): When generating a temporary to capture the
10471         value of a conversion that requires a range check, set the type of the
10472         temporary before rewriting the node, so that the type is always
10473         properly placed for back-end use.
10474         (Apply_Float_Conversion_Check): Handle case where the conversion is
10475         truncating.
10476         (Get_Discriminal): Code reformatting. Climb the scope stack looking
10477         for a protected type in order to examine its discriminants.
10478
10479 2007-08-14  Robert Dewar  <dewar@adacore.com>
10480             Gary Dismukes  <dismukes@adacore.com>
10481             Ed Schonberg  <schonberg@adacore.com>
10482             Thomas Quinot  <quinot@adacore.com>
10483
10484         * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
10485         a-stwisu.adb, a-strsup.adb: Fix warnings for range
10486         tests optimized out.
10487
10488         * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
10489         (Get_Allocator_Final_List): For the case of an anonymous access type
10490         that has a specified Associated_Final_Chain, do not go up to the
10491         enclosing scope.
10492         (Expand_N_Type_Conversion): Test for the case of renamings of access
10493         parameters when deciding whether to apply a run-time accessibility
10494         check.
10495         (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
10496         aggregate code before allocator, and ahead of declaration for
10497         temporary, to prevent access before elaboration when the allocator is
10498         an actual for an access parameter.
10499         (Expand_N_Type_Conversion): On an access type conversion involving an
10500         access parameter, do not apply an accessibility check when the
10501         operand's original node was an attribute other than 'Access. We now
10502         create access conversions for the expansion of 'Unchecked_Access and
10503         'Unrestricted_Access in certain cases and clearly accessibility should
10504         not be checked for those.
10505
10506         * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
10507         includes a type conversion of a packed component that has been expanded,
10508         recover the original expression for the object, and use this expression
10509         in the post-call assignment statement, so that the assignment is made
10510         to the object and not to a back-end temporary.
10511         (Freeze_Subprogram): In case of primitives of tagged types not defined
10512         at the library level force generation of code to register the primitive
10513         in the dispatch table. In addition some code reorganization has been
10514         done to leave the implementation clear.
10515         (Expand_Call): When expanding an inherited implicit conversion,
10516         preserve the type of the inherited function after the intrinsic
10517         operation has been expanded.
10518
10519         * exp_ch2.ads, exp_ch2.adb
10520         (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
10521         of an entry formal appearing in an assignment statement does not assign
10522         to the formal.
10523         (Expand_Current_Value): Instead of calling a routine to determine
10524         whether the prefix of an attribute reference should be optimized or
10525         not, prevent the optimization of such prefixes all together.
10526
10527         * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
10528         component whose prefix is known to be of an access type is an implicit
10529         dereference and does not assign to the prefix.
10530
10531 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10532             Robert Dewar  <dewar@adacore.com>
10533
10534         * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
10535         itype is visited, make an entry into table to link associated node and
10536         new itype.
10537         Add comments and correct harmless error in Build_NCT_Hash_Tables
10538         (Array_Aggr_Subtype): Associate each itype created for an index type to
10539         the corresponding range construct, and not to the aggregate itself. to
10540         maintain a one-to-one correspondence between itype and its associated
10541         node, to prevent errors when complex expression is copied.
10542         Fix mishandling of multiple levels of parens
10543
10544         * sem_aggr.adb: Create a limited view of an incomplete type, to make
10545         treatment of limited views uniform for all visible declarations in a
10546         limited_withed package.
10547         (New_Copy_Tree): If hash table is being used and itype is visited,
10548         make an entry into table to link associated node and new itype.
10549         (Resolve_Record_Aggregate): Do not add an others box association for a
10550         discriminated record component that has only discriminants, when there
10551         is a box association for the component itself.
10552
10553         * par-ch4.adb: Fix mishandling of multiple levels of parens
10554
10555 2007-08-14  Robert Dewar  <dewar@adacore.com>
10556
10557         * comperr.adb: Fix problem with suppressing warning messages from gigi
10558
10559         * erroutc.ads, erroutc.adb, errout.ads,
10560         errout.adb (Write_Eol): Remove trailing spaces before writing the line
10561         (Write_Eol_Keep_Blanks): New procedure to write a line, including
10562         possible trailing spaces.
10563         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
10564         Fix problem with suppressing warning messages from back end
10565         Improve handling of deleted warnings
10566
10567         * gnat1drv.adb:
10568         Fix problem with suppressing warning messages from back end
10569         Handle setting of Static_Dispatch_Tables flag.
10570
10571         * prepcomp.adb:
10572         Fix problem with suppressing warning messages from back end
10573
10574         * exp_intr.adb: Improve handling of deleted warnings
10575
10576 2007-08-14  Robert Dewar  <dewar@adacore.com>
10577
10578         * debug.adb: Improve -gnatdI to cover all cases of serialization
10579         Add documentation of dZ, d.t
10580
10581         * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
10582         serialization.
10583         (Sprint_Node_Actual): Generate new output associated with implicit
10584         importation and implicit exportation of object declarations.
10585
10586 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10587             Robert Dewar  <dewar@adacore.com>
10588             Javier Miranda  <miranda@adacore.com>
10589             Gary Dismukes  <dismukes@adacore.com>
10590
10591         * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
10592         to make treatment of limited views uniform for all visible declarations
10593         in a limited_withed package.
10594         Improve warnings for in out parameters
10595         (Set_Related_Interaface/Related_Interface): Allow the use of this
10596         attribute with constants.
10597         (Write_Field26_Name): Handle attribute Related_Interface in constants.
10598         Warn on duplicate pragma Preelaborable_Initialialization
10599
10600         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
10601         generation of a freezing node to ensure proper management of null
10602         excluding access types in the backend.
10603         (Create_Extra_Formals): Test base type of the formal when checking for
10604         the need to add an extra accessibility-level formal. Pass the entity E
10605         on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
10606         originally being done in a couple of cases), to ensure that the
10607         Extra_Formals list gets set on the entity E when the first entity is
10608         added.
10609         (Conforming_Types): Add missing calls to Base_Type to the code that
10610         handles anonymous access types. This is required to handle the
10611         general case because Process_Formals builds internal subtype entities
10612         to handle null-excluding access types.
10613         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
10614         functions that need it, even when not marked Requires_Overriding.
10615         Improve warnings for in out parameters
10616         (Analyze_Function_Return): Warn for disallowed null return
10617         Warn on return from procedure with unset out parameter
10618         Ensure consistent use of # in error messages
10619         (Check_Overriding_Indicator): Add in parameter Is_Primitive.
10620         (Analyze_Function_Return): Move call to Apply_Constraint_Check before
10621         the implicit conversion of the expression done for anonymous access
10622         types. This is required to generate the code of the null excluding
10623         check (if required).
10624
10625         * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
10626         A formal parameter is never publicly referenceable outside of its body.
10627         (Check_References): For an unreferenced formal parameter in an accept
10628         statement, use the same warning circuitry as for subprogram formal
10629         parameters.
10630         (Warn_On_Unreferenced_Entity): New subprogram, taken from
10631         Output_Unreferenced_Messages, containing the part of that routine that
10632         is now reused for entry formals as described above.
10633         (Goto_Spec_Entity): New function
10634         (Check_References): Do not give IN OUT warning for dispatching operation
10635         Improve warnings for in out parameters
10636         (Test_Ref): Check that the entity is not undefinite before calling
10637         Scope_Within, in order to avoid infinite loops.
10638         Warn on return from procedure with unset out parameter
10639         Improved warnings for unused variables
10640
10641 2007-08-14  Robert Dewar  <dewar@adacore.com>
10642             Javier Miranda  <miranda@adacore.com>
10643             Gary Dismukes  <dismukes@adacore.com>
10644
10645         * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
10646         (Expand_N_Attribute_Reference): Further unify the handling of the
10647         three forms of access attributes, using common code now for all three
10648         cases. Add a test for the case of applying an access attribute to
10649         an explicit dereference when the context is an access-to-interface
10650         type. In that case we need to apply the conversion to the prefix
10651         of the explicit dereference rather than the prefix of the attribute.
10652         (Attribute_Version, UET_Address): Set entity as internal to ensure
10653         proper dg output of implicit importation.
10654         (Expand_Access_To_Type): Removed.
10655         (Expand_N_Attribute_Reference): Merge the code from the three cases
10656         of access attributes, since the processing is largely identical for
10657         these cases. The substantive fix here is to process the case of a
10658         type name prefix (current instance case) before handling the case
10659         of interface prefixes.
10660
10661 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10662             Ed Schonberg  <schonberg@adacore.com>
10663             Javier Miranda  <miranda@adacore.com>
10664             Robert Dewar  <dewar@adacore.com>
10665
10666         * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
10667         (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
10668         type that is an anonymous access to controlled object, establish
10669         an associated finalization chain to avoid corrupting the global
10670         finalization list when a dynamically allocated object designated
10671         by such a component is deallocated.
10672         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
10673         functions that need it, even when not marked Requires_Overriding.
10674         (Initialize_Tag): Replace call to has_discriminants by call to
10675         Is_Variable_Size_Record in the circuitry that handles the
10676         initialization of secondary tags.
10677         (Is_Variable_Size_Record): New implementation.
10678         (Expand_N_Object_Declaration): Suppress call to init proc if there is a
10679         Suppress_Initialization pragma for a derived type.
10680         (Is_Variable_Size_Record): New subprogram.
10681         (Build_Offset_To_Top_Functions): New implementation that simplifies the
10682         initial version of this routine and also fixes problems causing
10683         incomplete initialization of the table of interfaces.
10684         (Build_Init_Procedure): Improve the generation of code to initialize the
10685         the tag components of secondary dispatch tables.
10686         (Init_Secondary_Tags): New implementation that simplifies the previous
10687         version of this routine.
10688         (Make_DT): Add parameter to indicate when type has been frozen by an
10689         object declaration, for diagnostic purposes.
10690         (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
10691         diagnose attemps to freeze a subprogram when some untagged type of its
10692         profile is a private type whose full view has not been analyzed yet.
10693         (Freeze_Array_Type): Generate init proc for packed array if either
10694         Initialize or Normalize_Scalars is set.
10695         (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
10696         constructing the new profile, copy the null_exclusion indicator for each
10697         parameter, to ensure full conformance of the new body with the spec.
10698
10699         * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
10700         Create wrappers for constructor functions that need it, even when not
10701         marked Requires_Overriding.
10702         (Covers): Handle properly designated types of anonymous access types,
10703         whose non-limited views are themselves incomplete types.
10704         (Add_Entry): Use an entity to store the abstract operation which hides
10705         an interpretation.
10706         (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
10707         (Collect_Interps): Use Empty as an actual for Abstract_Op in the
10708         initialization aggregate.
10709         (Function_Interp_May_Be_Hidden): Rename to
10710         Function_Interp_Has_Abstract_Op.
10711         (Has_Compatible_Type): Remove machinery that skips interpretations if
10712         they are labeled as potentially hidden by an abstract operator.
10713         (Has_Hidden_Interp): Rename to Has_Abstract_Op.
10714         (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
10715         (Write_Overloads): Output the abstract operator if present.
10716         (Add_Entry): Before inserting a new entry into the interpretation table
10717         for a node, determine whether the entry will be disabled by an abstract
10718         operator.
10719         (Binary_Op_Interp_May_Be_Hidden): New routine.
10720         (Collect_Interps): Add value for flag May_Be_Hidden in initialization
10721         aggregate.
10722         (Function_Interp_May_Be_Hidden): New routine.
10723         (Has_Compatible_Type): Do not consider interpretations hidden by
10724         abstract operators when trying to determine whether two types are
10725         compatible.
10726         (Has_Hidden_Interp): New routine.
10727         (Set_May_Be_Hidden_Interp): New routine.
10728         (Write_Overloads): Write the status of flag May_Be_Hidden.
10729
10730 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10731             Javier Miranda  <miranda@adacore.com>
10732
10733         * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
10734         types declared in the declarative part of a nested package body or in
10735         the proper body of a stub.
10736         (Set_All_DT_Position): Add missing check to avoid wrong assignation
10737         of the same dispatch table slot to renamed primitives.
10738         (Make_Select_Specific_Data_Table): Handle private types.
10739         (Tagged_Kind): Handle private types.
10740         (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
10741         output of implicit importation and exportation.
10742         (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
10743         first formal of the thunk is always associated with the controlling
10744         type. In addition perform the following code cleanup: remove formal
10745         Thunk_Alias which is no longer required, cleanup evaluation of the
10746         the controlling type, and update the documentation.
10747         Replace occurrence of Default_Prim_Op_Count by
10748         Max_Predef_Prims. Addition of compile-time check to verify
10749         that the value of Max_Predef_Prims is correct.
10750         (Check_Premature_Freezing): Apply check in Ada95 mode as well.
10751         (Make_DT): Add parameter to indicate when type has been frozen by an
10752         object declaration, for diagnostic purposes.
10753         (Build_Static_Dispatch_Tables): New subprogram that takes care of the
10754         construction of statically allocated dispatch tables.
10755         (Make_DT): In case of library-level tagged types export the declaration
10756         of the primary tag. Remove generation of tags (now done by Make_Tags).
10757         Additional modifications to handle non-static generation of dispatch
10758         tables. Take care of building tables for asynchronous interface types
10759         (Make_Tags): New subprogram that generates the entities associated with
10760         the primary and secondary tags of Typ and fills the contents of Access_
10761         Disp_Table. In case of library-level tagged types imports the forward
10762         declaration of the primary tag that will be declared later by Make_DT.
10763         (Expand_Interface_Conversion): In case of access types to interfaces
10764         replace an itype declaration by an explicit type declaration to avoid
10765         problems associated with the scope of such itype in transient blocks.
10766
10767 2007-08-14  Robert Dewar  <dewar@adacore.com>
10768             Ed Schonberg  <schonberg@adacore.com>
10769             Javier Miranda  <miranda@adacore.com>
10770
10771         * exp_util.ads, exp_util.adb:
10772         This patch replaces a number of occurrences of explicit tests for N_Null
10773         with calls to Known_Null. This improves tracking of null values, since
10774         Known_Null also catches null constants, and variables currently known to
10775         be null, so we get better tracking.
10776         (Ensure_Defined): create an itype reference only in the scope of the
10777         itype.
10778         (Side_Effect_Free): A selected component of an access type that
10779         denotes a component with a rep clause must be treated as not
10780         side-effect free, because if it is part of a linked structure its
10781         value may be affected by a renaming.
10782         (Expand_Subtype_From_Expr): For limited objects initialized with build
10783         in place function calls, do nothing; otherwise we prematurely introduce
10784         an N_Reference node in the expression initializing the object, which
10785         breaks the circuitry that detects and adds the additional arguments to
10786         the called function. Bug found working in the new patch for statically
10787         allocated dispatch tables.
10788         (Is_Library_Level_Tagged_Type): New subprogram.
10789         (Remove_Side_Effects): If the expression of an elementary type is an
10790         operator treat as a function call.
10791         (Make_Literal_Range): If the index type of the array is not integer, use
10792         attributes properly to compute the constraint on the resulting aggregate
10793         which is a string.
10794
10795         * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
10796         class-wide type whose base type is an incomplete private type, leave
10797         class-wide type unfrozen so that freeze nodes can be generated
10798         properly at a later point.
10799         (Freeze_Entity, array case): Handle case of pragma Pack and component
10800         size attributre clause for same array.
10801
10802 2007-08-14  Vincent Celier  <celier@adacore.com>
10803
10804         * prj.ads, prj.adb: Update Project Manager to new attribute names for
10805         gprbuild.
10806         Allow all valid declarations in configuration project files
10807         (Reset): Initialize all tables and hash tables in the project tree data
10808         Major update of the Project Manager and of the project aware tools,
10809         including gprmake, so that the same sources in the GNAT repository
10810         can be used by gprbuild.
10811         (Slash_Id): Change type to be Path_Name_Type
10812         (Slash): Return a Path_Name_Type instead of a File_Name_Type
10813
10814         * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
10815         gprbuild.
10816         Update Project Manager to new attribute names for ghprbuild
10817         Allow all valid declarations in configuration project files
10818         Major update of the Project Manager and of the project aware tools,
10819         including gprmake, so that the same sources in the GNAT repository
10820         can be used by gprbuild.
10821
10822         * prj-com.ads:
10823         Major update of the Project Manager and of the project aware tools,
10824         including gprmake, so that the same sources in the GNAT repository
10825         can be used by gprbuild.
10826
10827         * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
10828         insensitive flag for attributes with optional index.
10829         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
10830         array attribute, put the index in lower case.
10831         Update Project Manager to new attribute names for ghprbuild
10832         Allow all valid declarations in configuration project files
10833         Major update of the Project Manager and of the project aware tools,
10834         including gprmake, so that the same sources in the GNAT repository
10835         can be used by gprbuild.
10836
10837         * prj-env.ads, prj-env.adb:
10838         Major update of the Project Manager and of the project aware tools,
10839         including gprmake, so that the same sources in the GNAT repository
10840         can be used by gprbuild.
10841         (Get_Reference): Change type of parameter Path to Path_Name_Type
10842
10843         * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
10844         removing '-' from the path to start with the first character of the
10845         next directory.
10846         Major update of the Project Manager and of the project aware tools,
10847         including gprmake, so that the same sources in the GNAT repository
10848         can be used by gprbuild.
10849         Major update of the Project Manager and of the project aware tools,
10850         including gprmake, so that the same sources in the GNAT repository
10851         can be used by gprbuild.
10852
10853         * prj-nmsc.ads, prj-nmsc.adb:
10854         Update Project Manager to new attribute names for ghprbuild
10855         Allow all valid declarations in configuration project files
10856         (Search_Directories): Detect subunits that are specified with an
10857         attribute Body in package Naming. Do not replace a source/unit in the
10858         same project when the order of the source dirs are known. Detect
10859         duplicate sources/units in the same project when the order of the
10860         source dirs are not known.
10861         (Check_Ada_Name): Allow all identifiers that are not reserved words
10862         in Ada 95.
10863         Major update of the Project Manager and of the project aware tools,
10864         including gprmake, so that the same sources in the GNAT repository
10865         can be used by gprbuild.
10866         (Look_For_Sources): If the list of sources is empty, set the object
10867         directory of non extending project to nil.
10868         Change type of path name variables to be Path_Name_Type
10869         (Locate_Directory): Make sure that on Windows '/' is converted to '\',
10870         otherwise creating missing directories will fail.
10871
10872         * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
10873         prj-part.ads, prj-part.adb:
10874         Major update of the Project Manager and of the project aware tools,
10875         including gprmake, so that the same sources in the GNAT repository
10876         can be used by gprbuild.
10877
10878         * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
10879         insensitive flag for attributes with optional index.
10880         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
10881         array attribute, put the index in lower case.
10882         (Parse_Variable_Reference): Allow the current project name to be used in
10883         the prefix of an attribute reference.
10884
10885         * prj-util.ads, prj-util.adb
10886         (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
10887         defaulted to False. When True, always check against indexes in lower
10888         case.
10889
10890         * snames.ads, snames.h, snames.adb:
10891         Update Project Manager to new attribute names for gprbuild
10892         Allow all valid declarations in configuration project files
10893
10894 2007-08-14  Robert Dewar  <dewar@adacore.com>
10895             Ed Schonberg  <schonberg@adacore.com>
10896
10897         * opt.ads: Warning for non-local exception propagation now off by
10898         default
10899         New switch -gnatI to disable representation clauses
10900         Implement new pragma Implicit_Packing
10901
10902         * usage.adb:
10903         Warning for non-local exception propagation now off by default
10904         Add warning for unchecked conversion of pointers wi different
10905         conventions.
10906         New switch -gnatI to disable representation clauses
10907
10908         * usage.adb: new switch -gnatyS
10909
10910         * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
10911         note that aggregates of anonymous array types are not flagged.
10912         -gnatwc now includes membership tests optimized away
10913         -gnatw.x warnings are now off by default
10914         Added conditional compilation Appendix
10915         Add documentation of -gnatI
10916         Add documentation for new -gnatyS style check
10917         Update documentation about SAL and auto-init on Windows.
10918
10919         * gnat_rm.texi:
10920         Add documentation for pragma Check_Name and 'Enabled attribute
10921         Document that Eliminate on dispatching operation is ignored
10922         Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
10923         Document pragma Main
10924         Document pragma Implicit_Packing
10925
10926         * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
10927         different conventions
10928         New switch -gnatI to disable representation clauses
10929
10930         * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
10931         recognized, report the invalid characters including "-gnat" instead of
10932         just the first character in the switch.
10933         New switch -gnatI to disable representation clauses
10934         Set Warn_On_Object_Renames_Function true for -gnatg
10935
10936         * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
10937         Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
10938         Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
10939         to switch -aP (add directory to project search dir).
10940
10941         * par-prag.adb: Implement new pragma Implicit_Packing
10942
10943         * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
10944         type as having a non-standard representation, to force expansion on
10945         conversion to related types.
10946         (Analyze_Pragma): Warn on misspelled pragma
10947         (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
10948         Ensure consistent use of # in error messages
10949         Implement pragma Implicit_Packing
10950
10951 2007-08-14  Olivier Hainque  <hainque@adacore.com>
10952             Eric Botcazou  <ebotcazou@adacore.com>
10953
10954         * targtyps.c (get_target_maximum_default_alignment): New function.
10955         Maximum alignment
10956         that the compiler might choose by default for a type or object.
10957         (get_target_default_allocator_alignment): New function. Alignment known
10958         to be honored by the target default allocator.
10959         (get_target_maximum_allowed_alignment): New function. Maximum alignment
10960         we might accept for any type or object on the target.
10961         (get_target_maximum_alignment): Now synonym of maximum_default_alignment
10962
10963         * gigi.h (get_target_maximum_default_alignment): Declare new function.
10964         (get_target_default_allocator_alignment): Likewise.
10965         (get_target_maximum_allowed_alignment): Likewise.
10966
10967         PR ada/19037
10968         * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
10969         result of a function call, first try to use a stabilized reference for
10970         a constant renaming too.
10971         (validate_alignment): Use target_maximum_allowed_alignment instead of
10972         MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
10973         (gnat_to_gnu_entity): Use common nodes directly.
10974         (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
10975         alignment and size for the object.
10976         (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
10977         and N_Procedure_Call_Statement.
10978         (takes_address): Rename to lvalue_required_p, add third parameter
10979         'aliased' and adjust recursive calls.
10980         <N_Indexed_Component>: Update 'aliased' from the array type.
10981         <N_Selected_Component>: New case.
10982         <N_Object_Renaming_Declaration>: New Likewise.
10983         (Identifier_to_gnu): Adjust for above changes.
10984         (maybe_stabilize_reference) <CONST_DECL>: New case.
10985
10986         * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
10987         between type variants.
10988         (build_simple_component_ref): Likewise.
10989         (build_call_alloc_dealloc): Use target_default_allocator_alignment
10990         instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
10991         aligning type circuitry for allocations from the default storage pool.
10992         (build_allocator): Likewise.
10993         (build_simple_component_ref): Manually fold the reference for a
10994         constructor if the record type contains a template.
10995
10996         * utils.c (value_zerop): Delete.
10997         (gnat_init_decl_processing): Emit debug info for common types.
10998         (rest_of_record_type_compilation): If a union contains a field
10999         with a non-constant qualifier, treat it as variable-sized.
11000         (finish_record_type): Give the stub TYPE_DECL a name.
11001         (rest_of_record_type_compilation): Likewise.
11002         (convert) <CONSTRUCTOR>: New case.  Build a new constructor if
11003         types are equivalent array types.
11004         (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
11005         even if the type is not passed by reference.
11006         (static_ctors, static_dtors): Delete.
11007         (end_subprog_body): Do not record constructors and destructors.
11008         (build_global_cdtor): Delete.
11009         (gnat_write_global_declarations): Do not call build_global_cdtor.
11010
11011         * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
11012         -fRTS=rtp is specified.
11013         If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
11014         specified.
11015
11016         * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
11017         of the personality function with SJLJ exceptions.
11018
11019         * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
11020         the name of the personality function with SJLJ exceptions.
11021
11022 2007-08-14  Robert Dewar  <dewar@adacore.com>
11023             Ed Schonberg  <schonberg@adacore.com>
11024
11025         * par.ads, par.adb: Improve handling of extra right parens.
11026         (Par): Remove flag From_Limited_With_Clause.
11027
11028         * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
11029         Improve handling of extra right parens.
11030
11031 2007-08-14  Robert Dewar  <dewar@adacore.com>
11032
11033         * par-tchk.adb (TF_Semicolon): Improve error recovery
11034
11035 2007-08-14  Robert Dewar  <dewar@adacore.com>
11036             Ed Schonberg  <schonberg@adacore.com>
11037
11038         * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
11039         enumeration type, mark all literals as referenced.
11040         (Eval_Attribute, case 'Image): If the argument is an enumeration
11041         literal and names are available, constant-fold but mark nevertheless as
11042         non-static.
11043         Clean up function names.
11044         (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
11045         comment.
11046         (Requires_Simple_Name_Prefix): Removed.
11047
11048 2007-08-14  Robert Dewar  <dewar@adacore.com>
11049             Ed Schonberg  <schonberg@adacore.com>
11050
11051         * sem_ch11.adb: Improved warnings for unused variables
11052
11053         * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
11054         is a synchronized interface, the derived type is limited.
11055         (Analyze_Object_Declaration): Mark the potential coextensions in the
11056         definition and expression of an object declaration node.
11057         (Build_Derived_Type): For the completion of a private type declaration
11058         with a derived type declaration, chain the parent type's representation
11059         items to the last representation item of the derived type (not the
11060         first one) if they are not present already.
11061         (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
11062         object declaration of forward references to tags.
11063         (Access_Subprogram_Declaration): In Ada2005, anonymous access to
11064         subprogram types can appear as access discriminants of synchronized
11065         types.
11066         (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
11067         given in prefixed form as a selected component.
11068         (Process_Discriminants): If not all discriminants have defaults, place
11069         error message on a default that is present.
11070         (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
11071         extend a synchronized tagged type.
11072         Improved warnings for unused variables
11073         (Is_Visible_Component): Fix a visibility hole on a component inherited
11074         by a private extension when parent is itself declared as a private
11075         extension, and the derivation is in a child unit.
11076         (Find_Hidden_Interface): Move spec from the package body.
11077
11078 2007-08-14  Robert Dewar  <dewar@adacore.com>
11079             Ed Schonberg  <schonberg@adacore.com>
11080
11081         * sem_ch5.adb: Improve warnings on redundant assignments
11082
11083         * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
11084         parameter
11085         (Is_Synchronized_Tagged_Type): New subprogram that returns true
11086         in case of synchronized tagged types (AARM 3.9.4 (6/2)).
11087         (Safe_To_Capture_Value): Can now return True for constants, even if Cond
11088         is set to False. Improves handling of Known_[Not_]Null.
11089         (Wrong_Type): Special case address arithmetic attempt
11090         (Collect_Abstract_Interfaces): Add new formal to allow collecting
11091         abstract interfaces just using the partial view of private types.
11092         (Has_Abstract_Interfaces): Add new formal to allow checking types
11093         covering interfaces using the partial view of private types.
11094         (Is_Fully_Initialized_Type): Special VM case for uTag component. This
11095         component still needs to be defined in this case, but is never
11096         initialized as VMs are using other dispatching mechanisms.
11097         (Abstract_Interface_List): For a protected type, use base type to get
11098         proper declaration.
11099         Improve warnings on redundant assignments
11100         (Is_Variable): Handle properly an implicit dereference of a prefixed
11101         function call.
11102         (Build_Actual_Subtype): If this is an actual subtype for an
11103         unconstrained formal parameter, use the sloc of the body for the new
11104         declaration, to prevent anomalises in the debugger.
11105
11106 2007-08-14  Robert Dewar  <dewar@adacore.com>
11107
11108         * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
11109         dispatching operation
11110
11111 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11112             Gary Dismukes  <dismukes@adacore.com>
11113
11114         * exp_aggr.ads,
11115         exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
11116         expanded aggregate code before allocator, and ahead of declaration for
11117         temporary, to prevent access before elaboration when the allocator is
11118         an actual for an access parameter.
11119         (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
11120         the TSD and the table of interfaces.
11121         (Convert_To_Assignments): Augment the test for delaying aggregate
11122         expansion for limited return statements to include the case of extended
11123         returns, to prevent creation of an unwanted transient scope.
11124         (Is_Static_Dispatch_Table_Aggregate): New subprogram.
11125         (Expand_Array_Aggregate): Handle aggregates associated with
11126         statically allocated dispatch tables.
11127         (Expand_Record_Aggregate): Handle aggregates associated with
11128         statically allocated dispatch tables.
11129         (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
11130         of anonymous access type.
11131
11132 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11133
11134         * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
11135         is a variable that renames a slice, use the variable itself in the
11136         expannsion when the renamed expression itself may be modified between
11137         the declaration of the renaming and the array assignment.
11138
11139 2007-08-14  Jerome Guitton  <guitton@adacore.com>
11140
11141         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
11142         s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
11143         s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
11144         New functions; dummy implementations.
11145
11146         * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
11147         functions, used to implement the multi-tasks mode routines on VxWorks.
11148
11149         * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
11150         New functions, thin
11151         binding to the VxWorks routines which have changed between VxWorks 5
11152         and 6.
11153         (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
11154         which are not callable from a RTP.
11155
11156         * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
11157         implemented for the multi-tasks mode on VxWorks 5 and 6.
11158
11159         * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
11160
11161         * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
11162         functions.
11163
11164 2007-08-14  Vincent Celier  <celier@adacore.com>
11165
11166         * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
11167         gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
11168         mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
11169         mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
11170         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
11171         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
11172         mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
11173         procedure.
11174         (Major_Id_Name): New function.
11175         mlib-tgt.ads/mlib.tgt.adb:
11176         (Library_Major_Minor_Id_Supported): New function, default returns True
11177         Most mlib-tgt-*.adb that support shared libraries and symbolic links:
11178         (Build_Dynamic_Library): Add support for major/minor ids for shared libs
11179         Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
11180         Implementation of Library_Major_Minor_Id_Supported returns False
11181         clean.adb:
11182         (Clean_Library_Directory): If major/minor ids are supported, clean all
11183         library files.
11184         Major update of the Project Manager and of the project aware tools,
11185         including gprmake, so that the same sources in the GNAT repository
11186         can be used by gprbuild.
11187
11188 2007-08-14  Olivier Hainque  <hainque@adacore.com>
11189
11190         * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
11191         (GCC_ZCX_Support): Switch to True.
11192
11193         * s-intman-solaris.adb (Notify_Exception): Call
11194         Adjust_Context_For_Raise before raising, as expected for signal
11195         handlers in general.
11196
11197         * s-intman-posix.adb (Notify_Exception): Remove declaration of
11198         Adjust_Context_For_Raise, moved to the spec of this unit to be visible
11199         to other implementation bodies.
11200
11201         * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
11202         be visible by multiple implementation bodies.
11203
11204         * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
11205         only for conditions coming from hardware.
11206         [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
11207         adjustments to signal context prior to exception raise from signal
11208         handler.
11209         (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
11210         mode.
11211         Solaris section: (__gnat_adjust_context_for_raise): New function.
11212         Implementation of the machine context adjustments to perform prior to
11213         raise from a signal handler. Version for both sparc and x86.
11214         (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
11215         (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
11216         prior to raising as expected for any handler, before possible nested
11217         faults to make sure all the contexts in a chain have been adjusted by
11218         the time we propagate.
11219
11220 2007-08-14  Pascal Obry  <obry@adacore.com>
11221
11222         * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
11223         (SYSTEM_INFO): New record.
11224         (SetThreadIdealProcessor): New imported routine needed for supporting
11225         task_info pragma on Windows.
11226
11227         * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
11228         info can be applied to the current host.
11229         (Create_Task): Set the ideal processor if information is present.
11230
11231         * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
11232         a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
11233
11234 2007-08-14  Olivier Hainque  <hainque@adacore.com>
11235
11236         * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
11237         stack size and initial stack pointer value for a given task.
11238         (Enter_Task): Get the stack attributes of the task we are entering and
11239         let the stack checking engine know about them.
11240
11241         * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
11242         Let the stack-checking engine know about the initial sp value and stack
11243         size associated with the current task.
11244         (Set_Stack_Info): If a stack base has been notified for the current
11245         task, honor it. Fallback to the previous less accurate method otherwise.
11246
11247         * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
11248
11249 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11250
11251         * sem_ch10.adb: Create a limited view of an incomplete type, to make
11252         treatment of limited views uniform for all visible declarations in a
11253         limited_withed package.
11254         Set flag indicating that a subprogram body for a child unit has a
11255         generated spec.
11256         (Analyze_Compilation_Unit): If unit is a subprogram body that has no
11257         separate declaration, remove the unit name from visibility after
11258         compilation, so that environment is clean for subsequent compilations.
11259         (Install_Limited_Context_Clauses): Do not install a
11260         limited_private_with_clause unless the current unit is a body or a
11261         private child unit.
11262         (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
11263         in the same fashion.
11264         (Install_Limited_Withed_Unit): Do not install a limited with clause if
11265         it applies to the declaration of the current package body.
11266         (Remove_Private_With_Clauses): If there is a regular with_clause for
11267         the unit, delete Private_With_Clause from context, to prevent improper
11268         hiding when processing subsequent nested packages and instantiations.
11269
11270 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
11271
11272         * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
11273         dir/file, device:/dir/file, and device:drive_letter:/dir/file as
11274         representing absolute path names.
11275         __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
11276
11277         * cstreams.c (__gnat_full_name for VxWorks): Use
11278         __gnat_is_absolute_path to detect whether we need to add the current
11279         directory to normalize the path.
11280
11281 2007-08-14  Javier Miranda  <miranda@adacore.com>
11282
11283         * a-tags.ads,
11284         a-tags.adb (Displace): Associate a message with the raised CE
11285         exception.
11286         (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
11287         To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
11288         To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
11289         spec.
11290         (Default_Prim_Op_Count): Removed.
11291         (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
11292         Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
11293         Remove pragma Inline_Always.
11294
11295         * rtsfind.ads (Default_Prim_Op_Count): Removed
11296         (Max_Predef_Prims): New entity
11297         (RE_Expanded_Name): Removed
11298         (RE_HT_Link): Removed
11299         (RE_Iface_Tag): Remmoved
11300         (RE_Ifaces_Table): Removed
11301         (RE_Interfaces_Array): Removed
11302         (RE_Interface_Data_Element): Removed
11303         (RE_Nb_Ifaces): Removed
11304         (RE_RC_Offset): Removed
11305         (RE_Static_Offset_To_Top): Removed
11306
11307         * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
11308         formal.
11309         (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
11310         Prim_Op_Count by Max_Predef_Prims.
11311
11312 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11313             Vincent Celier  <celier@adacore.com>
11314
11315         * binde.adb (Elab_All_Links): Remove unnecessary call to
11316         Generic_Separately_Compiled (if a unit satisfies this predicate, there
11317         won't be an associated Afile).
11318         (Elab_All_Links): Fail if a referenced unit cannot be found
11319
11320         * bindgen.adb:
11321         Fix comments in bindgen regarding consistency checks done in Bcheck:
11322         the checks are made across units within a partition, not across several
11323         partitions.
11324         Fix generation of C binder file for VxWorks.
11325
11326         * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
11327         Generic_May_Lack_ALI, more descriptive of the current use of the
11328         predicate, and update documentation.
11329
11330         * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
11331         reorganization and documentation update for the case of predefined
11332         library generics (for which we do not reference an Afile).
11333
11334 2007-08-14  Robert Dewar  <dewar@adacore.com>
11335
11336         * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
11337         s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
11338         s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
11339         s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
11340         s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
11341         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
11342         s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
11343         s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
11344         exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
11345         s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
11346         s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
11347         a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
11348         s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
11349         g-altcon.adb: Minor reformatting
11350
11351         ada-tree.h: Delete empty line.
11352
11353         ali.ads: Minor reformatting
11354         Clarification of comments.
11355         Minor spelling correction
11356
11357         * exp_dbug.adb: Add Warnings Off to suppress new warning
11358
11359         * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
11360         formal
11361
11362         * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
11363         value
11364
11365         * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
11366
11367         * a-textio.ads: Reorder the standard input/output/error declarations
11368         for consistency.
11369
11370         * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
11371
11372         * par-ch2.adb: Recognize RM specially in errout
11373         Change 'R'M to RM in all error messages
11374
11375         * scng.adb: Recognize RM specially in errout
11376
11377         * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
11378         N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
11379
11380         * s-direio.adb: Add missing routine header box.
11381
11382         * sem_attr.ads: Add ??? comments
11383
11384         * sem_eval.adb: Recognize RM specially in errout
11385         Change 'R'M to RM in all error messages
11386
11387         * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
11388
11389         * s-tasinf.ads: Fix minor comment typo.
11390
11391         * a-cihama.adb: Minor comment addition
11392
11393         * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
11394         formal
11395
11396         * s-tasinf-tru64.ads: Fix minor comment typo.
11397
11398         * itypes.ads: Comment update.
11399
11400         * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
11401         anymore.
11402
11403         * argv.c: Added protection against null gnat_argv and gnat_envp.
11404
11405         * bcheck.adb (Check_Consistency): Use correct markup character ({) in
11406         warning message when Tolerate_Consistency_Errors is True.
11407
11408         * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
11409         Any_Id, as this subprogram is only applicable to *type* entities (it
11410         sets RM_Size). Instead initialize just Esize and Alignment.
11411
11412 2007-08-14  Bob Duff  <duff@adacore.com>
11413
11414         * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
11415         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
11416         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
11417         a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
11418         a-coorse.ads (Next): Applied pragma Inline.
11419         Make all Containers packages Remote_Types (unless they are already
11420         Pure).
11421         (Previous): applied pragma Inline
11422         (Elements_Type): is now a record instead of an array
11423
11424 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11425
11426         * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
11427         of Set_Item.
11428         (Set_Item): When the new item is an element of the currently allocated
11429         table passed by reference, save a copy on the stack if we're going
11430         to reallocate. Also, in Table.Set_Item, make sure we test the proper
11431         variable to determine whether to call Set_Last.
11432
11433         * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
11434         symbols-vms.adb, symbols-processing-vms-alpha.adb,
11435         symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
11436         some occurrences of the pattern
11437            T.Increment_Last;
11438            T.Table (T.Last) := Value;
11439         with a cleaner call to
11440            T.Append (Value);
11441
11442 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11443             Gary Dismukes  <dismukes@adacore.com>
11444             Thomas Quinot  <quinot@adacore.com>
11445
11446         * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
11447         derived type with interface progenitors use the analyzed formal as the
11448         parent of the actual, to create renamings for all the inherited
11449         operations in Derive_Subprograms.
11450         (Collect_Previous_Instances): new procedure within of
11451         Load_Parent_Of_Generic, to instantiate all bodies in the compilation
11452         unit being loaded, to ensure that the generation of global symbols is
11453         consistent in different compilation modes.
11454         (Is_Tagged_Ancestor): New function testing the ancestor relation that
11455         takes progenitor types into account.
11456         (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
11457         traversing over the primitives of the formal and actual types to locate
11458         any abstract subprograms of the actual type that correspond to a
11459         nonabstract subprogram of the formal type's ancestor type(s), and issue
11460         an error if such is found.
11461         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
11462         Instantiate_Package_Body, Instantiate_Subprogram_Body):
11463         Remove bogus guard around calls to Inherit_Context.
11464         (Reset_Entity): If the entity is the selector of a selected component
11465         that denotes a named number, propagate constant-folding to the generic
11466         template only if the named number is global to the generic unit.
11467         (Set_Instance_Env): Only reset the compilation switches when compiling
11468         a predefined or internal unit.
11469
11470 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11471
11472         * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
11473         parameter to determine whether operation applies to the prefix.
11474         (Complete_Object_Operation): If actual has an access type and
11475         controlling formal is not an in_parameter, reject the actual if it is
11476         an access_to_constant type.
11477         (Try_Primitive_Operation): If the type of the prefix is a formal tagged
11478         type, the candidate operations are found in the scope of declaration of
11479         the type, because the type has no primitive subprograms.
11480         (Analyze_Selected_Component): If prefix is class-wide, and root type is
11481         a private extension, only examine visible components before trying to
11482         analyze as a prefixed call.
11483         Change Entity_List to Type_To_Use, for better readability.
11484         (Has_Fixed_Op): Use base type when checking whether the type of an
11485         operator has a user-defined multiplication/division
11486         (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
11487         user-defined operators are available for fixed-point types.
11488
11489 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11490             Ed Schonberg  <schonberg@adacore.com>
11491
11492         * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
11493         formal At_Any_Place indicating, when True, that we want to test for
11494         availability of the stream attribute at any place (as opposed to the
11495         current visibility context only).
11496         (Missing_Read_Write_Attributes): A stream attribute is missing for the
11497         purpose of enforcing E.2.2(8) only if it is not available at any place.
11498         Take into account the Ada2005 pragma Has_Preelaborable_Initialization
11499         when checking the legality of an extension aggregate in a preelaborable
11500         package. Treat the literal null as a valid default expression in a
11501         component declaration for a type with preelaborable initialization.
11502         A limited interface is a legal progenitor for the designated type of a
11503         remote access to class-wide type.
11504
11505 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11506             Ed Schonberg  <schonberg@adacore.com>
11507
11508         * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
11509         reference): Use correct entity as denoted entity for the selector of
11510         the rewritten node.
11511         (Find_Direct_Name): Add comment about Generate_Reference incorrectly
11512         setting the Referenced_As_LHS flag for entities that are implicitly
11513         dereferenced.
11514         (Find_Type): If the type is an internally generated incomplete type,
11515         mark the full view as referenced, to prevent spurious warnings.
11516         (Find_Selected_Component, Has_Components): Handle properly non-limited
11517         views that are themselves incomplete types.
11518         Handle interfaces visible through limited-with clauses.
11519         (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
11520         subprogram generic actual for which we have generated a renaming.
11521         Warn when the renaming introduces a homonym of
11522         the renamed entity, and the renamed entity is directly visible.
11523
11524 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11525             Hristian Kirtchev  <kirtchev@adacore.com>
11526
11527         * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
11528         appear in the subtree to the current allocator if it is not a static
11529         coextension.
11530         (Resolve_Allocator): Perform cleanup if resolution has determined that
11531         the allocator is not a coextension.
11532         (Resolve): Skip an interpretation hidden by an abstract operator only
11533         when the type of the interpretation matches that of the context.
11534         (Resolve): When looping through all possible interpretations of a node,
11535         do not consider those that are hidden by abstract operators.
11536         (Resolve_Actuals): When verifying that an access to class-wide object
11537         is an actual  for a controlling formal, ignore anonymous access to
11538         subprograms whose return type is an access to class_wide type.
11539         (Resolve_Slice): If the prefix of the slice is a selected component
11540         whose type depends on discriminants, build its actual subtype before
11541         applying range checks on the bounds of the slice.
11542         (Valid_Conversion): In an instance or inlined body, compare root types,
11543         to prevent anomalies between private and public views.
11544         (Resolve): Improve error message for ambiguous fixed multiplication
11545         expressions that involve universal_fixed multiplying operations.
11546
11547 2007-08-14  Javier Miranda  <miranda@adacore.com>
11548             Hristian Kirtchev  <kirtchev@adacore.com>
11549
11550         * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
11551         location to allow the correct generation of errors in case of
11552         restrictions applied to the expanded code.
11553         (Expand_Entry_Barrier): Remove all generated renamings for a barrier
11554         function if the condition does not reference them.
11555         (Expand_Entry_Body_Declarations): Mark the index constant as having a
11556         valid value.
11557
11558 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11559             Pablo Oliveira  <oliveira@adacore.com>
11560
11561         * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
11562         typecode parameters for a union (in a variant record), remove
11563         extraneous layer of Any wrapping for member label.
11564         (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
11565         elabration statements, register the package with the name server
11566         at the beginning, not at the end, of the elaboration statements so
11567         that they can create remote access to subprogram values that designate
11568         remote subprograms from the package.
11569
11570 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
11571
11572         * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
11573         values to compute the number of seconds since the Unix Epoc in order to
11574         account for Daylight Savings Time. Perform special processing for dates
11575         that are earlier than the Unix Epoc to obtain a negative number.
11576
11577 2007-08-14  Emmanuel Briot  <briot@adacore.com>
11578
11579         * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
11580         switches.
11581
11582 2007-08-14  Eric Botcazou  <ebotcazou@adacore.com>
11583
11584         * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
11585         binder-generated file is not in Ada.
11586         Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
11587         recorded in the ALI file.
11588         Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
11589
11590 2007-08-14  Vincent Celier  <celier@adacore.com>
11591
11592         * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
11593         (Output_Source): Do nothing if parameter is No_Sdep_Id
11594
11595         * make.adb (Gnatmake): Do not rebuild an archive simply because a
11596         shared library it imports has a later time stamp.
11597         (Check): Resolve the symbolic links in the path name of the object
11598         directory.
11599         Check that the ALI file is in the correct object directory
11600         Check if a file name does not correspond to the mapping of units
11601         to file names.
11602         (Display_Version): New procedure
11603         (Initialize): Process switches --version and --help
11604         Use type Path_Name_Type for path name
11605
11606 2007-08-14  Paul Hilfinger  <hilfinger@adacore.com>
11607
11608         * impunit.adb: Re-organize System.Random_Numbers and
11609         GNAT.Random_Numbers and add to builds.
11610
11611         * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
11612
11613         * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
11614
11615         * a-assert.ads, a-assert.adb: New files.
11616
11617 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
11618
11619         * layout.adb (Layout_Type): In the case of access-to-subprogram types,
11620         if AAMP_On_Target is True, then the size of the type encompasses two
11621         addresses (a static link and a subprogram address), except in the case
11622         of library-level access types.
11623
11624 2007-08-14  Vincent Celier  <celier@adacore.com>
11625
11626         * output.ads, output.adb (Write_Eol): Remove trailing spaces before
11627         writing the line.
11628         (Write_Eol_Keep_Blanks): New procedure to write a line, including
11629         possible trailing spaces.
11630         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
11631
11632 2007-08-14  Javier Miranda  <miranda@adacore.com>
11633
11634         * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
11635         null-excluding access types.
11636
11637 2007-08-14  Javier Miranda  <miranda@adacore.com>
11638
11639         * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
11640         that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
11641         of private types add missing check on matching interfaces in the
11642         partial and full declarations.
11643         (Analyze_Protected_Type): Code cleanup.
11644         (Analyze_Task_Type): Code cleanup.
11645
11646 2007-08-14  Javier Miranda  <miranda@adacore.com>
11647
11648         * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
11649         generated interface thunk.
11650
11651 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11652
11653         * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
11654         obsolescent warning on application of 'Class to an incomplete type.
11655
11656         * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
11657         prevent obsolescent warning on application of 'Class to an incomplete
11658         type.
11659
11660 2007-08-14  Pascal Obry  <obry@adacore.com>
11661
11662         * s-fileio.adb (Is_Open): Add check for usability of the underlying
11663         file stream.
11664
11665 2007-08-14  Cyrille Comar  <comar@adacore.com>
11666
11667         * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
11668         since it is potentially used in cases implying double finalization of
11669         the same object.
11670
11671 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
11672
11673         * s-tasini.adb (Get_Stack_Info): Move this function to
11674         System.Soft_Links.Tasking because it is common to the full and the
11675         restricted run times.
11676         (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
11677         in SSL.Tasking.Init_Tasking_Soft_Links.
11678
11679         * s-solita.adb (Get_Stack_Info): Function moved from
11680         System.Tasking.Initialization because it is common to the full and the
11681         restricted run times.
11682         (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
11683
11684 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
11685
11686         * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
11687         s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
11688         (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
11689         parameter.
11690
11691         * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
11692         guard to 12K.
11693
11694 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
11695
11696         * s-veboop.adb (SU): New named number initialized to
11697         System.Storage_Unit.
11698         (True_Val): The initialization expression is revised to use SU (=
11699         Storage_Unit) rather than assuming 8 for the component size of an
11700         unpacked Boolean array.
11701
11702 2007-08-14  Tristan Gingold  <gingold@adacore.com>
11703
11704         * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
11705
11706         * tb-ivms.c: New file.
11707
11708         * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
11709
11710 2007-08-14  Geert Bosch  <bosch@adacore.com>
11711
11712         * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
11713         s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
11714         Add required linker pragmas for automatically linking with the gnalasup
11715         linear algebra support library, and the systems math library.
11716         Rename cdot to cdotu and zdot to zdotu.
11717         Update header comment to describe purpose of package.
11718
11719 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11720
11721         * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
11722         an explicitly specified Associated_Final_Chain, use that list.
11723         (Expand_N_Package_Body): Build dispatch tables of library level tagged
11724         types.
11725         (Expand_N_Package_Declaration): Build dispatch tables of library level
11726         tagged types. Minor code cleanup.
11727
11728 2007-08-14  Vincent Celier  <celier@adacore.com>
11729
11730         * gnatchop.adb (Terminate_Program): Remove exception and use
11731         Types.Terminate_Program instead.
11732
11733         * osint.ads, osint.adb (Current_Exit_Status): New global variable
11734         (Find_Program_Name): Added protection against empty name.
11735         (OS_Exit_Through_Exception): New procedure
11736
11737         * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
11738         (OS_Exit_Default): New procedure that contains the previous
11739         implementation of procedure OS_Exit.
11740         (Final_Value): Remove obsolete Interix stuff.
11741
11742 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11743
11744         * g-socket.ads: Reorganize example code so that it also works on
11745         Windows XP.
11746
11747 2007-08-14  Tristan Gingold  <gingold@adacore.com>
11748
11749         * g-trasym.ads: AIX now supports symbolic backtraces.
11750
11751 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11752
11753         * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
11754         units being loaded to detect circularities. A circularity may be
11755         present even if the current chain of pending units to load starts from
11756         a limited_with_clause.
11757
11758         * lib-load.ads: Change profile of Load_Unit to use a with_clause
11759         rather than a boolean flag, in order to detect circularities in
11760         with_clauses.
11761
11762         * par-load.adb: Use current with_clause in calls to Load_Unit, rather
11763         than propagating the From_Limited_With flag, in order to handle
11764         properly circularities involving with_clauses.
11765
11766 2007-08-14  Nicolas Setton  <setton@adacore.com>
11767
11768         * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
11769         warnings.
11770
11771 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
11772
11773         * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
11774         to build for libgnala.
11775         libgnat: Add rules to build libgnala.a
11776         (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
11777         target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
11778         Add s-osinte-vxworks-kernel.adb to the target pairs of the
11779         kernel run-time lib for VxWorks 6, which would provide a different
11780         implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
11781         x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
11782         running ZCX by default.
11783         Add g-sttsne-locking to LynxOS version.
11784         Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
11785         On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
11786
11787         * system-darwin-x86.ads: New file.
11788
11789         * Make-lang.in: Delete files before copying onto them, so if they are
11790         read-only, the copy won't fail.
11791         Update dependencies
11792
11793 2007-08-14  Pascal Obry  <obry@adacore.com>
11794
11795         * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
11796         naming scheme.
11797
11798 2007-08-14  Vincent Celier  <celier@adacore.com>
11799
11800         * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
11801         (Gcc): Initialize Gcc_Name at the first call
11802
11803 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11804
11805         * sem_ch7.adb (Analyze_Package_Specification): Do not install private
11806         with_clauses of the enclosing unit when analyzing the package
11807         specification of a nested instance.
11808
11809 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
11810
11811         * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
11812         (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
11813         Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
11814         layout of N_Allocator.
11815
11816 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11817
11818         * rtsfind.adb (Check_RPC): Add PCS version check.
11819
11820         * gnatvsn.ads, gnatvsn.adb: Add PCS version.
11821         (Gnat_Free_Software): New function.
11822
11823         * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
11824         the PCS_Version value from s-parint, used to check that it is consistent
11825         with what exp_dist expects.
11826
11827         * s-parint.ads (PCS_Version): New entity for checking consistency
11828         between exp_dist and PCS.
11829
11830         * gen-soccon.c: (SO_REUSEPORT): New constant.
11831
11832 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
11833
11834         * a-calfor.adb (Image (Duration; Boolean)): Change type of local
11835         variable Sub_Second to Duration in order to accomodate a larger range
11836         of arithmetic operations.
11837
11838 2007-08-14  Bob Duff  <duff@adacore.com>
11839
11840         * g-sttsne-locking.ads: Move comments from spec to body.
11841         * g-sttsne-locking.adb: Move comments from spec to body.
11842         * g-sttsne-vxworks.ads: Removed.
11843         * g-sttsne-vxworks.adb: Removed.
11844
11845 2007-08-11  Ian Lance Taylor  <iant@google.com>
11846
11847         * misc.c (gnat_get_alias_set): Change return type to
11848         alias_set_type.
11849
11850 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11851
11852         * decl.c, utils2.c: Fix whitespace in last change.
11853
11854 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11855
11856         * decl.c (compare_field_bitpos): Constify.
11857         * utils2.c (compare_elmt_bitpos): Likewise.
11858
11859 2007-07-27  Aurelien Jarno  <aurelien@aurel32.net>
11860
11861         * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
11862         anonymous access type.
11863         (pthread_sigmask): Now take an access sigset_t.
11864
11865 2007-07-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
11866
11867         * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
11868
11869 2007-06-21  Eric Botcazou  <ebotcazou@adacore.com>
11870
11871         PR tree-optimization/25737
11872         * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
11873
11874 2007-06-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11875
11876         * trans.c (Attribute_to_gnu): When subtracting an
11877         offset from a pointer, use POINTER_PLUS_EXPR with
11878         NEGATE_EXPR instead of MINUS_EXPR.
11879         (gnat_to_gnu): Likewise.
11880         * utils.c (convert): When converting between
11881         thin pointers, use POINTER_PLUS_EXPR and sizetype
11882         for the offset.
11883         * utils2.c (known_alignment): POINTER_PLUS_EXPR
11884         have the same semantics as PLUS_EXPR for alignment.
11885         (build_binary_op): Add support for the semantics of
11886         POINTER_PLUS_EXPR's operands.
11887         When adding an offset to a pointer, use POINTER_PLUS_EXPR.
11888
11889 2007-06-11  Rafael Ávila de Espíndola  <espindola@google.com>
11890
11891         * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
11892         of get_signed_or_unsigned_type.
11893         * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
11894
11895 2007-06-11  Bob Duff  <duff@adacore.com>
11896             Thomas Quinot  <quinot@adacore.com>
11897
11898         * g-stsifd-sockets.adb (Create): Work around strange behavior of
11899         'bind' on windows that causes 'connect' to fail intermittently, by
11900         retrying the 'bind'.
11901         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11902
11903 2007-06-10  Duncan Sands  <baldrick@free.fr>
11904
11905         * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
11906         than to void, for the fields when making a new fat pointer type.
11907         (gnat_substitute_in_type): Now substitute_in_type.
11908         * gigi.h (gnat_substitute_in_type): Likewise.  Adjust recursive calls.
11909         * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
11910         * utils.c (update_pointer_to): Update fat pointers by updating the
11911         dummy node pointers used for the fields.
11912
11913 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11914             Bob Duff  <duff@adacore.com>
11915
11916         * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
11917         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
11918         g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads:  Add new
11919         constant Thread_Blocking_IO, always True by default, set False
11920         on a per-runtime basis.
11921         (Need_Netdb_Buffer): New constant.
11922
11923         * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
11924         g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
11925         files.
11926
11927         * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
11928         g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
11929         Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
11930         child package Task_Safe_NetDB
11931         (Host_Error_Messages): Add stub body.
11932         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11933
11934         * g-soccon-mingw.ads: Add Windows-specific constants.
11935         (Need_Netdb_Buffer): New constant.
11936         (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
11937         wrapper and import inet_addr(3) from the standard sockets library
11938         directly instead.
11939         (In_Addr): Add alignment clause.
11940         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11941
11942 2007-06-06  Robert Dewar  <dewar@adacore.com>
11943
11944         * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
11945         s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
11946         s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
11947         s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
11948         s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
11949         s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
11950         a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
11951         a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
11952         a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
11953         g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
11954         g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
11955         i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
11956         s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
11957         s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
11958         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
11959         s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
11960         s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
11961         s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
11962         s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
11963         s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
11964         s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
11965         s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
11966         s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
11967         s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
11968         s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
11969         s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
11970         s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
11971         s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
11972         s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
11973         s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
11974         s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
11975         a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
11976         Unchecked_* by Ada.Unchecked_*
11977
11978 2007-06-06  Robert Dewar  <dewar@adacore.com>
11979
11980         * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
11981         s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
11982         g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
11983         output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
11984         g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
11985         a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
11986
11987         * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
11988         s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
11989         s-tasloc.adb, s-tasloc.ads: New files.
11990
11991 2007-06-06  Bob Duff  <duff@adacore.com>
11992
11993         * g-expect-vms.adb:
11994         (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
11995         * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
11996         (Send_Signal, Close): Raise Invalid_Process if the process id is
11997         invalid.
11998         (Pattern_Matcher_Access): Is now a general access type to be able to
11999         use aliased string.
12000
12001 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12002             Arnaud Charlet  <charlet@adacore.com>
12003
12004         * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
12005         (SIGEMT is now used instead of SIGTERM on AIX).
12006
12007         * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
12008         (Time_Slice_Supported): Set to True.
12009         Use SIGEMT instead of SIGTERM as SIGADAABORT.
12010
12011 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
12012
12013         * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
12014         (Time, Time)): Use To_Relative_Time rather than manual calculation to
12015         express the bounds of Duration as Time. Raise Time_Error when the
12016         result is greater or equal to the higher bound of Duration (on the
12017         margin case).
12018         ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
12019         Ada_High_And_Leaps.
12020         ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
12021         Ada_High_And_Leaps.
12022         ("-" (Time, Time)): Reorder code.
12023         (All_Leap_Seconds): Removed.
12024         (Arithmetic_Operations.Add): Remove sign related kludge.
12025         (Arithmetic_Operations.Difference): Control the leaps seconds processing
12026         with flag Leap_Support.
12027         (Arithmetic_Operations.Subtract): Remove sign related kludge.
12028         (Check_Within_Time_Bounds): New procedure.
12029         (Clock): Control the leap seconds processing with flag Leap_Support.
12030         (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
12031         (Formatting_Operations.Split): Control the leap seconds processing with
12032         flag Leap_Support.
12033         (Formatting_Operations.Time_Of): Control the leaps seconds processing
12034         with flag Leap_Support. Adjust the year, month and day (if applicable)
12035         when the value of day seconds designates a new day.
12036         (Split): Use parameter associations for better readability. Integrate
12037         flag Is_Ada_05.
12038         (Time_Of): Use parameter associations for better readability. Integrate
12039         flag Is_Ada_05.
12040
12041         * a-calfor.adb (Split): Use parameter associations for better
12042         readability. Integrate flag Is_Ada_05.
12043         (Time_Of): Remove flag Leap_Checks. Use parameter associations for
12044         better readability. Integrate flag Is_Ada_05.
12045
12046 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12047
12048         * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
12049         s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
12050         s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
12051         s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
12052         s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
12053         s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
12054         s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
12055         s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
12056         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
12057         s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
12058         s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
12059         time when entering this routine to detect a backward clock setting
12060         (manual setting or DST adjustment), to avoid waiting for a longer delay
12061         than needed.
12062         (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
12063         Remove handling of deferred priority change, and replace by setting the
12064         task priority directly, as required by AI-188.
12065         Update comments.
12066         (Max_Task_Image_Length): New constant.
12067         Replace Warnings (Off) by Unreferenced pragma, cleaner.
12068         (Dynamic_Priority_Support): Removed, no longer needed.
12069         (Poll_Base_Priority_Change): Ditto.
12070         (Set_Ceiling): Add this procedure to change the ceiling priority
12071         associated to a lock. This is a dummy implementation because dynamic
12072         priority ceilings are not supported by the underlying system.
12073
12074         * a-dynpri.adb (Set_Priority): Take into account case where Target is
12075         accepting a RV with its priority boosted.
12076         Remove handling of deferred priority change, and replace by setting the
12077         task priority directly, as required by AI-188.
12078
12079         * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
12080         Succeeded = True.
12081         Remove handling of deferred priority change, and replace by setting the
12082         task priority directly, as required by AI-188.
12083         (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
12084         of Self_Id earlier.
12085
12086         * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
12087         (Poll_Base_Priority_Change): Removed.
12088         Code clean up: use SSL.Current_Target_Exception.
12089
12090         * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
12091         to run as this is a potentially dispatching point.
12092         (Call_Synchronous): Use Local_Defer_Abort.
12093         (Callable): Relax assertion.
12094         (Selective_Wait): Relax assertion in case abort is not allowed.
12095         Remove handling of deferred priority change, and replace by setting the
12096         task priority directly, as required by AI-188.
12097
12098         * s-tasuti.adb (Make_Passive): Adjust assertions.
12099         Remove handling of deferred priority change, and replace by setting the
12100         task priority directly, as required by AI-188.
12101
12102 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12103
12104         * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
12105         system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
12106         system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
12107         system-vxworks-mips.ads, system-vxworks-alpha.ads,
12108         system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
12109         system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
12110         system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
12111         system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
12112         system-solaris-sparcv9.ads, system-vms.ads, system.ads,
12113         system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
12114         system-linux-ia64.ads: Document mapping between Ada and OS priorities.
12115         This patch changes the largest non-binary modulus from 2**31-1 to
12116         2**32-1.
12117         (Compiler_System_Version): Removed, no longer used.
12118         Clean up system files by removing flags only used on a single target.
12119         Also remove obsolete flags, only used during bootstrap from system.ads
12120         (Address): Add a pragma Preelaborable_Initialization.
12121
12122         * system-aix.ads:  Ditto.
12123         (GCC_ZCX_Support): Set to true.
12124         Update priority range on AIX and map Ada priorities to target
12125         priorities appropriately for different scheduling policies.
12126
12127         * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
12128
12129 2007-06-06  Vincent Celier  <celier@adacore.com>
12130
12131         * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
12132         mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
12133
12134         * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
12135         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
12136         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
12137         mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
12138         mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
12139         MLib.Tgt, containing the default versions of the exported subprograms.
12140         For each platform, create a specific version of the body of new child
12141         package MLib.Tgt.Specific that contains only the body of subprograms
12142         that are different from the default.
12143         (Archive_Builder_Append_Options): New function.
12144
12145 2007-06-06  Matthew Gingell  <gingell@adacore.com>
12146
12147         * s-osinte-aix.adb: Map Ada priorities to target priorities
12148         appropriately for different scheduling policies.
12149
12150 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12151
12152         * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
12153         its C counterpart.
12154         Remove references to Unchecked_Conversion, and use Ada.xxx instead.
12155         Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
12156
12157 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
12158
12159         * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
12160         Noop on VMS, added for interface commonality.
12161
12162 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
12163             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12164             Olivier Hainque  <hainque@adacore.com>
12165
12166         * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
12167         renamed expression of a full renaming at toplevel.
12168         (gnat_to_gnu_entity, case object): If not defining, do not look inside
12169         the values the constant is initialized to if it is an N_Allocator.
12170         (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
12171         TYPE_SIZE_UNIT of inner types after the stride is elaborated.
12172         (make_aligning_type): Accept an extra ROOM argument for storage to be
12173         made available before the aligned field, and an extra BASE_ALIGN
12174         argument for callers to pass the alignment guaranteed to be honored for
12175         the whole aligning object. Avoid call to finish_record_type, which only
12176         interferes with the sizes we want to set.
12177         (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
12178         make_aligning_type for super-aligned objects on stack.
12179         (components_to_record): Pass the adjusted size of the type when creating
12180         fields in the qualified union for the variant part.
12181         (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
12182         (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
12183         packed array type.
12184         (maybe_pad_type): Set TYPE_USER_ALIGN.
12185         (make_aligning_type): Likewise.
12186         ALIGN argument is unsigned int.
12187         (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
12188         (gnat_to_gnu_param): Likewise, for parameters.
12189         (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
12190         if it is constant and stems from a function call.
12191         (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
12192         of the record is specified.  Adjust accordingly.
12193         (adjust_packed): New static function.
12194         (gnat_to_gnu_field): Use it to adjust the packedness setting.
12195         (components_to_record): Likewise.
12196         (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
12197         side-effects if the object is deemed constant.
12198         (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
12199         type instead of merely finalizing it.  Tidy.
12200         <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
12201         <E_Access_Type>: Likewise.
12202         (defer_debug_incomplete_list): Rename to defer_finalize_list.
12203         (defer_debug_level): Delete.
12204         (gnat_to_gnu_entity) <debug_deferred>: Likewise
12205         <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
12206         type.
12207         <E_Record_Type>: Do not explicitly defer finalizing the type.
12208         Adjust for write_record_type_debug_info renaming.
12209         <E_Subprogram_Type>: Likewise.
12210         Finalize deferred types right after deferred incomplete types are
12211         expanded.
12212         (rest_of_type_decl_compilation): New global function.
12213         (components_to_record): Rename defer_debug parameter to do_not_finalize.
12214         (components_to_record): Propagate the packedness to the fields of the
12215         qualified union type if there is a variant part.
12216         (gnat_to_gnu_entity) <E_Array_Type>: Use new function
12217         instead of inline code to adjust the XUT field offsets.
12218         (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
12219         <E_Record_Subtype>: Do not let finish_record_type compute the sizes
12220         and write the debug info if the type derives from a discriminated one.
12221         (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
12222         <E_Array_Subtype>: Likewise.
12223         <E_String_Literal_Subtype>: Likewise.
12224         (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
12225         an alignment clause.
12226         (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
12227         before giving warning.
12228         (prepend_one_attribute_to): New function, helper to prepend an attribute
12229         to an attribute list.
12230         (gnat_to_gnu_entity) <E_Procedure>: Use it.
12231         (prepend_attributes): Likewise.
12232         (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
12233         <E_Array_Type>: Declare the padding type for the element type, if any.
12234         <E_Array_Subtype>: Likewise.
12235         (defer_limited_with): New variable.
12236         (Gigi_Equivalent_Type): New function.
12237         (gnat_to_gnu_entity): Use it at start and use result throughout.
12238         (gnat_to_gnu_entity, case E_Access_Type): Rework to use
12239         Gigi_Equivalent_Type, support Limited_With, allow two levels of
12240         indirection, precompute if unconstrained array to simplify logic, and
12241         use defer_limited_with to defer elaboration of some types from limited
12242         with.
12243         (finalize_from_with_types): New function.
12244
12245 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
12246             Eric Botcazou  <ebotcazou@adacore.com>
12247             Tristan Gingold  <gingold@adacore.com>
12248             Olivier Hainque  <hainque@adacore.com>
12249
12250         * trans.c (Identifier_to_gnu): Change test for deferred constant by
12251         adding guard that the entity is an E_Constant before testing presence
12252         of Full_view (and remove unnecessary test that entity is not a type).
12253         For a CONST_DECL used by reference, manually retrieve
12254         the DECL_INITIAL.  Do not invoke fold in the other DECL_P cases either.
12255         (struct language_function): Move from utils.c to here.
12256         (struct parm_attr): New structure.
12257         (parm_attr, parm_attr vector, parm_attr GC vector): New types.
12258         (f_parm_attr_cache): New macro.
12259         (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
12260         expressions for the 'First, 'Last and 'Length attributes of the
12261         unconstrained array IN parameters.
12262         (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
12263         Allocate the information structure for the function earlier, as well
12264         as the language-specific part.
12265         If the parameter attributes cache has been populated, evaluate the
12266         cached expressions on entry.
12267         (takes_address): Add OPERAND_TYPE parameter.  Handle N_Function_Call,
12268         N_Procedure_Call_Statement and N_Indexed_Component.
12269         (Pragma_to_gnu): Translate inspection_point to an asm statement
12270         containaing a comment and a reference to the object (either its address
12271         for BLKmode or its value).
12272         (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
12273         to go to DECL_INITIAL. Together with the size constraint relaxation
12274         in create_var_decl, enlarges the set of situations in which an
12275         identifier may be used as an initializer without implying elaboration
12276         code.
12277         (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
12278         DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
12279         node.
12280         (maybe_stabilize_reference): Remove lvalues_only parameter.
12281         (gnat_stabilize_reference): Adjust for above change.
12282         (gnat_to_gnu): Do not set location information on the result
12283         if it is a reference.
12284         (add_cleanup): Add gnat_node parameter and set the location of the
12285         cleanup to it.
12286         (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
12287         (Exception_Handler_to_gnu_zcx): Likewise.
12288         (gigi): Remove the cgraph node if the elaboration procedure is empty.
12289         (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
12290         the former right after the latter.
12291         (start_stmt_group): Make global.
12292         (end_stmt_group): Likewise.
12293         (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
12294         vars.
12295         (gnu_program_error_label_stack): Likewise.
12296         (gigi): Initialize them.
12297         (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
12298         (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
12299         New cases.
12300         (push_exception_label_stack): New function.
12301         (takes_address): New function.
12302
12303         * utils.c (struct language_function): Move to trans.c from here.
12304         (unchecked_convert): Do not wrap up integer constants in
12305         VIEW_CONVERT_EXPRs.
12306         (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
12307         the latter for aggregate types, unexpected by later passes, and relax an
12308         arbitrary size constraint on the former.
12309         (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
12310         to compare the sizes.
12311         (convert_vms_descriptor): When converting to a fat pointer type, be
12312         prepared for a S descriptor at runtime in spite of a SB specification.
12313         (shift_unc_components_for_thin_pointers): New function.
12314         (write_record_type_debug_info): For variable-sized fields, cap the
12315         alignment of the pointer to the computed alignment.
12316         (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
12317         If REP_LEVEL is 2, do not compute the sizes.
12318         (build_vms_descriptor): Adjust for new prototype of finish_record_type.
12319         (build_unc_object_type): Likewise.
12320         (declare_debug_type): New function.
12321
12322         * ada-tree.def: USE_STMT: removed (not emitted anymore).
12323
12324         * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
12325         no statement is expandable anymore.
12326         (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
12327         (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
12328         when the user requested it explicitely.
12329         (gnat_post_options): By default, set flag_eliminate_unused_debug_types
12330         to 0 for Ada.
12331         (get_alias_set): Return alias set 0 for a type if
12332         TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
12333
12334         * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
12335         (DECL_FUNCTION_STUB): New accessor macro.
12336         (SET_DECL_FUNCTION_STUB): New setter macro.
12337
12338         * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
12339
12340         * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
12341         declarations.
12342
12343 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
12344
12345         * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
12346         Rename to Abort_Task_Interrupt to be able to keep the same interface
12347         as the rest of the targets.
12348
12349         * s-osinte-vxworks.ads s-osinte-vxworks.adb
12350         (To_VxWorks_Priority): Remove explicit "in" mode indicator
12351
12352         * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
12353         New files.
12354
12355 2007-06-06  Robert Dewar  <dewar@adacore.com>
12356
12357         * a-chahan.ads: Remove obsolescent pragmas
12358
12359         * a-chlat1.ads: Minor reformatting
12360
12361 2007-06-06  Robert Dewar  <dewar@adacore.com>
12362
12363         * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
12364         for Errout
12365
12366         * errout.adb: New Finalize/Compilation_Errors/Output_Messages
12367         implementation
12368
12369         * errout.ads (Finalize): Changed interface
12370         (Output_Messages): New procedure
12371         (Compilation_Errors): New Interface
12372
12373         * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
12374         Finalize/Output_Messages interface for Errout
12375         (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
12376         Errout.
12377
12378 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12379             Olivier Hainque  <hainque@adacore.com>
12380             Robert Dewar  <dewar@adacore.com>
12381
12382         * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
12383         check.
12384         (Raise_Current_Excep): Call Debug_Raise_Exception just before
12385         propagation starts, to let debuggers know about the event in a reliable
12386         fashion.
12387         (Local_Raise): Moved to System.Exceptions
12388         More convenient to have this as a separate unit
12389
12390         * s-except.adb, s-except.ads: New files.
12391
12392         * a-exextr.adb (Unhandled_Exception): Delete - replaced by
12393         Debug_Unhandled_Exception in System.Exceptions where it belongs
12394         together with a couple of other debug helpers.
12395         (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
12396         the former Unhandled_Exception.
12397
12398         * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
12399         (Warn_No_Exception_Propagation): New procedure
12400         (Warn_If_No_Propagation): Rewritten for new warning generation
12401         (Expand_Exception_Handlers): New warning generation
12402         (Expand_N_Raise_xxx_Error): Rewritten for new warnings
12403         (Add_Exception_Label): Use Special_Exception_Package_Used for test
12404         instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
12405         (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
12406         even if restriction is set (makes life easier in Check_Returns)
12407         (Expand_Local_Exception_Handlers): Follow renamed entity chain when
12408         checking exception identities.
12409         (Expand_Local_Exception_Handlers): Do not optimize when all others case
12410         (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
12411         block for handler (used by Check_Returns)
12412         (Expand_Local_Exception_Handlers): Local_Raise now takes an address
12413         (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
12414         remove all exception handlers when optimizing local raise statements.
12415         (Find_Local_Handler): Use Get_Renamed_Entity
12416         (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
12417         marked analyzed after expanding exception handlers, do not generate
12418         redundant cleanup actions, because they have been constructed already.
12419
12420 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12421
12422         * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
12423         presence of this categorization pragma is mandated by the language.
12424         (Limited_Controlled): Add missing pragma Preelaborable_Initialization
12425         for this type.
12426
12427 2007-06-06  Vincent Celier  <celier@adacore.com>
12428             Robert Dewar  <dewar@adacore.com>
12429
12430         * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
12431         butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
12432         err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
12433         fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
12434         lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
12435         makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
12436         par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
12437         prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
12438         prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
12439         sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
12440         uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
12441         ali.ads, ali.adb:
12442         Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
12443         package Namet. Make File_Name_Type and Unit_Name_Type types derived from
12444         Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
12445         Use variables of types File_Name_Type and Unit_Name_Type in error
12446         messages.
12447         (Get_Name): Add parameter Ignore_Special, and set it reading file name
12448         (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
12449         here.
12450         Define flags Flag217-Flag230 with associated subprograms
12451         (Flag_Word5): New record type.
12452         (Flag_Word5_Ptr): New access type.
12453         (To_Flag_Word5): New unchecked conversion.
12454         (To_Flag_Word5_Ptr): Likewise.
12455         (Flag216): New function.
12456         (Set_Flag216): New procedure.
12457
12458 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12459
12460         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
12461         instead of 'Size.
12462
12463         * a-stwifi.ads, a-stzfix.ads: Minor reformatting
12464
12465 2007-06-06  Javier Miranda  <miranda@adacore.com>
12466
12467         * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
12468         the package.
12469         (Object_Specific_Data_Array): This is now internal to the package.
12470         (Object_Specific_Data): This is now internal to the package.
12471         (Select_Specific_Data_Element): This is now internal to the package.
12472         (Select_Specific_Data_Array): This is now internal to the package.
12473         (Select_Specific_Data): This is now internal to the package.
12474         (Offset_To_Top_Function_Ptr): This is now public.
12475         (To_Offset_To_Top_Function_Ptr): Removed.
12476         (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
12477          local to subprogram Offset_To_Top.
12478         (Predefined_DT): Removed.
12479         (Typeinfo_Ptr): Removed.
12480         (OSD): This function is now internal to this package.
12481         (SSD): This function is now internal to this package.
12482         (DT): New function that displaces the pointer to the table of primitives
12483          to get access to the enclosing wrapper record.
12484         (IW_Membership): Code cleanup.
12485         (Offset_To_Top): Code cleanup.
12486         (Predefined_DT): Removed.
12487         (Register_Interface_Tag): Removed.
12488         (Set_Interface_Table): Removed.
12489         (Set_Offset_Index): Removed.
12490         (Set_Offset_To_Top): Code cleanup.
12491         (Set_OSD): Removed.
12492         (Set_Signature): Removed.
12493         (Set_SSD): Removed.
12494         (Set_Tagged_Kind): Removed.
12495         (Typeinfo_Ptr): Removed.
12496         (TSD): Removed.
12497         (Displace): Add missing check on null actual.
12498
12499         * exp_disp.ads, exp_disp.adb
12500         (Select_Expansion_Utilities): Removed.
12501         (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
12502         (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
12503         the interface requires a new parameter.
12504         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
12505         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
12506         calls to subprograms Build_T, Build_S, etc. by the corresponding code.
12507         Done to remove package Select_Expansion_Utilities.
12508         (Make_DT): New implementation for statically allocated dispatch tables.
12509         (Make_Secondary_DT): Moved to the scope of Make_DT.
12510         (Register_Primitive): Code cleanup plus incoporate the use of the new
12511         function DT_Address_Attribute.
12512         (Expand_Interface_Thunk): The profile of this subprogram has been
12513         changed to return the Thunk_Id and the corresponding code.
12514         (Fill_DT_Entry): Removed. Its functionality is now provided by
12515         subprogram Register_Primitive.
12516         (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
12517         subprogram Register_Primitive.
12518         (Register_Primitive): New subprogram that incorporates the previous
12519         functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
12520         (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
12521         was only required to call Make_DT_Access_Action, which is now removed.
12522         (Ada_Actions): Removed
12523         (Action_Is_Proc): Removed
12524         (Action_Nb_Arg): Removed
12525         Replace all the calls to Make_DT_Access_Action by direct calls to
12526         Make_Procedure_Call_Statement or Make_Function_Call.
12527         (Set_DTC_Entity_Value): New subprogram.
12528         (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
12529         (Expand_Interface_Thunk): Add missing support for primitives that are
12530         functions with a controlling result (case in which there is no need
12531         to generate the thunk).
12532
12533         * exp_atag.ads, exp_atag.adb
12534         (Build_DT): New subprogram that displaces the pointer to reference the
12535         base of the wrapper record.
12536         (Build_Typeinfo_Offset): Removed.
12537         (RTE_Tag_Node): Removed.
12538         (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
12539         (Build_Get_RC_Offset): Removed.
12540         (Build_Inherit_Predefined_Prims): Removed.
12541         (Build_Inherit_TSD: Removed.
12542         (Build_New_TSD): Removed.
12543         (Build_Set_External_Tag): Removed.
12544         (Build_Set_Predefined_Prim_Op_Address): Add documentation.
12545         (Build_Set_Prim_Op_Address): Add documentation.
12546         (Build_Set_TSD): Removed.
12547
12548         * rtsfind.ads, rtsfind.adb
12549         (Load_Fail): If load fails and we are not in configurable run-time
12550         mode, then raise Unrecoverable_Error.
12551         (Text_IO_Kludge): Generate an error message if a run-time library is
12552         not available in a given run-time (ie. zfp run-time).
12553         (RTE_Record_Component): Add code to check that the component we search
12554         for is not found in two records in the given run-time package.
12555         (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
12556         (RE_DT_Predef_Prims_Offset): New entity
12557         (RE_Static_Offset_To_Top): New entity
12558         (RE_HT_Link): New entity.
12559         (System_Address_Image): Addition of this run-time package.
12560         (RE_Address_Image): New entity.
12561         (RE_Abstract_Interface): Removed.
12562         (RE_Default_Prim_Op_Count): Removed.
12563         (RE_DT_Entry_Size): Removed.
12564         (RE_DT_Min_Prologue_Size): Removed.
12565         (RE_DT_Prologue_Size): Removed.
12566         (RE_Ifaces_Table_Ptr): Removed.
12567         (RE_Interface_Data_Ptr): Removed.
12568         (RE_Type_Specific_Data): Removed.
12569         (RE_Primary_DT): Removed.
12570         (RE_Register_Interface_Tag): Removed.
12571         (RE_Set_Offset_Index): Removed.
12572         (RE_Set_OSD): Removed.
12573         (RE_Set_SSD): Removed.
12574         (RE_Set_Signature): Removed.
12575         (RE_Set_Tagged_Kind): Removed.
12576         (RE_Address_Array): New entity.
12577         (RE_DT): New entity.
12578         (RE_Iface_Tag): New entity.
12579         (RE_Interfaces_Table): New entity.
12580         (RE_No_Dispatch_Table): New entity.
12581         (RE_NDT_Prims_Ptr): New entity.
12582         (RE_NDT_TSD): New entity.
12583         (RE_Num_Prims): New entity.
12584         (RE_Offset_To_Top_Function_Ptr): New entity.
12585         (RE_OSD_Table): New entity.
12586         (RE_OSD_Num_Prims): New entity.
12587         (RE_Predef_Prims): New entity
12588         (RE_Predef_Prims_Table_Ptr): New entity.
12589         (RE_Primary_DT): New entity.
12590         (RE_Signature): New entity.
12591         (RE_SSD): New entity.
12592         (RE_TSD): New entity.
12593         (RE_Type_Specific_Data): New entity.
12594         (RE_Tag_Kind): New entity.
12595
12596 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12597
12598         * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
12599         C imported variable.
12600         (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
12601         on entry.
12602
12603 2007-06-06  Robert Dewar  <dewar@adacore.com>
12604
12605         * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
12606         character
12607
12608 2007-06-06  Vincent Celier  <celier@adacore.com>
12609
12610         * a-tifiio.adb (Put, internal): For negative numbers, check that there
12611         is room for at least one digit and the minus sign.
12612         (Put.Put_Character): Never put a character outside of the range of
12613         string To.
12614
12615 2007-06-06  Olivier Hainque  <hainque@adacore.com>
12616             Eric Botcazou  <ebotcazou@adacore.com>
12617
12618         * utils2.c (build_allocator): Provide the extra arguments to
12619         make_aligning_type for super-aligned objects allocated from the default
12620         pool. Leave enough room for a pointer before the aligning field, and
12621         store the system's allocator return value there.
12622         (build_call_alloc_dealloc): When releasing a super-aligned object,
12623         retrieve the system's allocator return value from where build_allocator
12624         has stored it, just ahead of the adjusted address we are passed.
12625         (build_call_raise): Handle properly the generation of line numbers when
12626         the node is marked No_Location.
12627         (compare_elmt_bitpos): Use tree_int_cst_compare.  Stabilize the sort
12628         by using DECL_UID on ties.
12629         (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
12630         main variant.
12631         (build_call_raise): Handle converting exception into goto; support new
12632         argument KIND.
12633         (build_component_ref): Add new arg to build_call_raise.
12634
12635 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
12636
12637         * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
12638         "." in the case of nnn.xxx when nnn terminates with an underscore.
12639         Parse the remaining "#" or ":" in the case of nnn#.xxx#
12640
12641 2007-06-06  Robert Dewar  <dewar@adacore.com>
12642
12643         * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
12644
12645 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12646             Vincent Celier  <celier@adacore.com>
12647             Robert Dewar  <dewar@adacore.com>
12648
12649         * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
12650         needed.
12651         (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
12652         ((destructor)) for adafinal, even when switch -a is used.
12653         Do not issue pragma Linker_Destructor for adafinal when switch -a is
12654         used.
12655         (Gen_Object_Files_Options): Add formatting of Linker Options, when
12656         Output_Linker_Option_List is set. Suppress this formatting when
12657         Zero_Formatting is set.
12658         Add case for CLI_Target.
12659         (System_Restrictions_Used): New flag, used to avoid generating with of
12660         System_Restrictions and initialization of the data unless there is
12661         some use of System.Restrictions in the partition.
12662         (Check_System_Restrictions_Used): New procedure
12663
12664         * s-stalib.adb: Remove with of System.Restrictions. No longer needed
12665         since we only with this unit in the binder file if it is used elsewhere
12666         in the partition.
12667
12668 2007-06-06  Vincent Celier  <celier@adacore.com>
12669
12670         * bindusg.adb: Add line for @<response file>
12671         Add lines for new switches -R and -Z
12672
12673         * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
12674         hierarchy in the list of files of the closure when -R is used
12675         (Gnatbind): Accept arguments starting with '@' to indicate response
12676         files and take the arguments from the response files.
12677         If List_Closure is set, display the referenced files
12678
12679 2007-06-06  Javier Miranda  <miranda@adacore.com>
12680             Robert Dewar  <dewar@adacore.com>
12681             Ed Schonberg  <schonberg@adacore.com>
12682
12683         * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
12684         which the address-clause is applied to in-mode actuals (allowed by
12685         13.1(22)).
12686         (Apply_Discriminant_Check): Do not generate a check if the type is
12687         constrained by a current instance.
12688         (Activate_Division_Check): New procedure
12689         (Activate_Overflow_Check): New procedure
12690         (Activate_Range_Check): New procedure
12691         Call these new Activate procedures instead of setting flags directly
12692         (Apply_Array_Size_Check): Removed, no longer needed.
12693         Code clean up: remove obsolete code related to GCC 2.
12694         (Get_E_Length): Protect against bomb in case scope is standard
12695         (Selected_Range_Checks): If the node to be checked is a conversion to
12696         an unconstrained array type, and the expression is a slice, use the
12697         bounds of the slice to construct the required constraint checks.
12698         Improve NOT NULL error messages
12699         (Apply_Constraint_Check): If the context is a null-excluding access
12700         type, diagnose properly the literal null.
12701
12702 2007-06-06  Pascal Obry  <obry@adacore.com>
12703
12704         * clean.adb (Clean_Archive): Use untouched casing for the archive name
12705         and the corresponding .deps file.
12706         (Clean_Interface_Copy_Directory): Use untouched casing for the library
12707         src directory. Minor code-clean-up. Use untouched casing for files
12708         read into the library src dir.
12709         (Clean_Library_Directory): Idem.
12710         (Parse_Cmd_Line): Accept new switch -aP
12711
12712 2007-06-06  Javier Miranda  <miranda@adacore.com>
12713             Ed Schonberg  <schonberg@adacore.com>
12714             Robert Dewar  <dewar@adacore.com>
12715             Eric Botcazou  <ebotcazou@adacore.com>
12716             Arnaud Charlet  <charlet@adacore.com>
12717
12718         * einfo.ads, einfo.adb (Available_View): New synthesized attribute
12719         applicable to types that have the With_Type flag set. Returns the
12720         non-limited view of the type, if available, otherwise the type itself.
12721         For class-wide types, there is no direct link in the tree, so we have
12722         to retrieve the class-wide type of the non-limited view of the Etype.
12723         New attributes Static_Initialization and Static_Elaboration_Desired.
12724         Remove the pragma Thread_Body, and the associated flag
12725         Is_Thread_Body in entities, and all related code.
12726         (Suppress_Value_Tracking_On_Call): New flag
12727         E_Exception has Esize and Alignment fields
12728         (Universal_Aliasing): New function.
12729         (Set_Universal_Aliasing): New procedure.
12730         (Write_Entity_Flags): Deal with Universal_Aliasing flag.
12731         (Check_Nested_Access): New procedure.
12732         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
12733         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
12734         (Related_Interface): New attribute. Present in dispatch table pointer
12735         components of records. Set to point to the entity of the corresponding
12736         interface type.
12737         (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
12738         (Original_Access_Type): Remove, not needed.
12739         (Root_Type): Handle properly subtypes of class-wide-types.
12740         Update comments.
12741
12742         * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
12743         class-wide types visible through limited-with clauses.
12744         (Try_Primitive_Operation): When examining all primitive operations of a
12745         tagged type, do not consider subprograms labeled as hidden unless they
12746         belong to a private generic type with a tagged parent.
12747         (Try_Object_Operation): Extensive rewriting, to handle properly various
12748         overloading cases, when several ancestors may have class-wide operations
12749         that are possible candidates, and when the overloaded functions return
12750         array types and have defaulted parameters so that the call may be
12751         interpreted as an indexing.
12752         (Analyze_Allocator): Remove Mark_Allocator and its invocation.
12753         (Process_Function_Call): use Next, rather than Next_Actual, to analyze
12754         successive actuals before analyzing the call itself.
12755         (Try_Primitive_Operation): A primitive operation is compatible with the
12756         prefix if the prefix has a synchronized type and the type of the formal
12757         is its corresponding record, as can be the case when the primitive
12758         operation is declared outside of the body of the type.
12759         (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
12760         perform homonym traversal, looking for class-wide operation matches
12761         (formerly done in statements of Try_Class_Wide_Operation). Matches on
12762         access parameters are now restricted to anonymous access types.
12763         (Mark_Allocator): An allocator with a discriminant association parent is
12764         a coextension.
12765         (Try_One_Prefix_Interpretation): If the type of the object is
12766         incomplete, as can be happen when it is a limited view obtained through
12767         a limited_with_clause, the selected component is not part of a prefixed
12768         call.
12769         (Complete_Object_Operation): Diagnose properly an object that is not
12770         aliased when the corresponding controlling formal is an access
12771         parameter.
12772         (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
12773         ambiguous calls in prefixed notation, where two primitives differ only
12774         in that the controlling argument of one is an access parameter.
12775
12776         * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
12777         whether a function that returns an unconstrained type can be inlined.
12778         (Process_Formals): Diagnose properly the illegal use of an incomplete
12779         type in the profile of an access_to_subprogram declaration.
12780         (Check_Synchronized_Overriding): Nothing check for concurrent types, the
12781         operations are attached to the corresponding record.
12782         (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
12783         When processing a primitive of a concurrent type which implements an
12784         interface change the type of all controlling formals to that of the
12785         corresponding record type.
12786         (Check_Synchronized_Overriding): Relax the conditional logic when trying
12787         to determine the tagged type to which a primitive belongs.
12788         (Check_Conventions): Capture condition to ignore a primitive operation
12789         (which is shared between the loop in Check_Conventions and the one in
12790         Check_Convention) in a new local function Skip_Check.
12791         (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
12792         confusion with Check_Conventions' own Prim_Op local variable.
12793         (Create_Extra_Formals): Test for a tagged result type rather than a
12794         controlling result when determining whether to add a BIP_Alloc_Form
12795         formal and a BIP_Final_List formal to the function.
12796         (Check_Conformance); For parameters that are anonymous access types,
12797         subtype conformance requires that the not null and the constant
12798         indicators must match
12799         (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
12800         to retrieve the appropriate type when processing a concurrent type
12801         declared within a generic. Minor comment reformatting. Change invocation
12802         of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
12803         mitive.
12804         (Analyze_Subprogram_Body): If the return type of a function is an
12805         anonymous access to the limited view of a class-wide type, and the
12806         non-limited view of the type is available, update the type of the
12807         function so that code can be generated.
12808         (Process_Formals): In case of access-subtype itype whose designated
12809         type is also an itype (situation that happens now with access to
12810         subprograms) we mark the access-type itype with the Has_Delayed_Freeze
12811         attribute to avoid backend problems.
12812         (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
12813         init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
12814         anonymous types' designated types are same before testing
12815         Subtypes_Statically_Match.
12816         (Create_Extra_Formals): Test for a named access parameter that is a
12817         controlling formal as an additional condition for adding an
12818         accessibility level formal. This can occur in the subp type created for
12819         dispatching calls in Expand_Dispatching_Call, and allows calling
12820         Create_Extra_Formals from that procedure rather than special-casing the
12821         extra formals there.
12822         (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
12823         when the function has a controlling result.
12824         (Check_Returns): Add much more knowledge of the optimization of local
12825         raise statements to gotos, to retain proper warnings in this case.
12826         (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
12827         nodes when looking for last statement.
12828
12829         * sem_type.ads, sem_type.adb (Specific_Type): Add support for
12830         class-wide types visible through limited with clauses.
12831         (Add_One_Interp): If the operands are anonymous access types, the
12832         predefined operator on universal_access is immediately visibles
12833         (Find_Unique_Type): Handle anonymous access to subprogram types just as
12834         other anonymous access types.
12835         (Disambiguate): Take into account CIL convention.
12836         (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
12837
12838 2007-06-06  Robert Dewar  <dewar@adacore.com>
12839
12840         * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
12841         sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
12842         elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
12843         Fix lower bound of tables.
12844         Add rep clauses.
12845
12846         * nlists.adb: Ditto.
12847         (Prev_Node, Next_Node): Change index type to Int so that it properly
12848         covers the range First_Node_Id - 1 up.
12849
12850 2007-06-06  Javier Miranda  <miranda@adacore.com>
12851             Ed Schonberg  <schonberg@adacore.com>
12852             Bob Duff  <duff@adacore.com>
12853             Hristian Kirtchev  <kirtchev@adacore.com>
12854
12855         * exp_aggr.ads, exp_aggr.adb:
12856         (Build_Record_Aggr_Code): Add missing initialization of secondary tags
12857         in extension aggregates.
12858         (Flatten): Other conditions being met, an aggregate is static if the
12859         low bound given by component associations is different from the low
12860         bound of the base index type.
12861         (Packed_Array_Aggregate_Handled): If the component type is itself a
12862         packed array or record, the front-end must expand into assignments.
12863         (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
12864         Init_Pr, instead of Ancestor_Is_Expression.
12865         (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
12866         coextension chain root, either generate a list controller or use the
12867         already existing one.
12868         (Static_Array_Aggregate): New procedure to construct a positional
12869         aggregate that can be handled by the backend, when all bounds and
12870         components are compile-time known constants.
12871         (Expand_Record_Aggregate): Force conversion of aggregates of tagged
12872         types covering interface types into assignments.
12873         (Replace_Type): move to Build_Record_Aggr_Code.
12874         (Expand_Record_Aggr_Code): if the target of the aggregate is an
12875         interface type, convert to the definite type of the aggregate itself,
12876         so that needed components are visible.
12877         (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
12878         components and the context is an extended return statement do not
12879         create a transient block for it, to prevent premature finalization
12880         before the return is executed.
12881         (Gen_Assign): Do not generate a call to deep adjust routine if the
12882         component type is itself an array of controlled (sub)-components
12883         initialized with an inner aggregate.
12884         (Component_Check): New name for Static_Check. This name is now more
12885         appropriate, and documentation is added which was missing.
12886         (Component_Check): Add test for bit aligned component value
12887         (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
12888         Tagged_Comps, name is more appropriate given added function below.
12889         (Component_Not_OK_For_Backend): Check for bit aligned component ref.
12890
12891 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
12892             Javier Miranda  <miranda@adacore.com>
12893             Robert Dewar  <dewar@adacore.com>
12894
12895         * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
12896         Terminated: Add unchecked type conversion from System.Address to
12897         System.Tasking.Task_Id when calling the predefined primitive
12898         _disp_get_task_id.
12899         Disable new Ada 05 accessibility check for JVM.NET targets, which
12900         cannot be implemented in a practical way.
12901         (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
12902         the sources always references the tag of the actual object. Therefore,
12903         if 'Tag is applied in the sources to class-wide interface objects we
12904         generate code that displaces "this" to reference the base of the object.
12905         (Expand_N_Attribute_Reference, case Size): Return specified size if
12906         known to front end.
12907         (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
12908         has code that displaces the pointer of the object to manage interface
12909         types. However this code must not be executed when the prefix is a
12910         subprogram. This bug caused the wrong expansion of the internally
12911         generated assignment that fills the dispatch table when the primitive
12912         is a function returning a class-wide interface type.
12913         (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
12914         Set_Attribute_Name for Name_Unaligned_Valid.
12915
12916 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12917             Gary Dismukes  <dismukes@adacore.com>
12918
12919         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
12920         If the initialization is the equivalent aggregate of the initialization
12921         procedure of the type, do not remove it.
12922         (Expand_N_Attribute_Definition_Clause): Exclude access variables
12923         initialized to null from having their expression reset to empty and
12924         note this exception in the comment.
12925
12926 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
12927             Robert Dewar  <dewar@adacore.com>
12928             Ed Schonberg  <schonberg@adacore.com>
12929             Gary Dismukes  <dismukes@adacore.com>
12930
12931         * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
12932         Add "with" and "use" clauses for Sem_Attr.
12933         (Expand_Current_Value): Do not replace occurences of attribute
12934         references where the prefix must be a simple name.
12935
12936         * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
12937         Namet. Add new arrays Attribute_Name_Modifies_Prefix and
12938         Attribute_Requires_Simple_Name_Prefix.
12939         (Name_Modifies_Prefix): Body of new function.
12940         (Requires_Simple_Name_Prefix): Body of new function.
12941         (Resolve_Attribute, case Access): Improve error message for case of
12942         mismatched conventions.
12943         (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
12944         incomplete type.
12945         (Analyze_Attribute, case 'Access): If the type of the prefix is a
12946         constrained subtype for a nominal unconstrained type, use its base type
12947         to check for conformance with the context.
12948         (Resolve_Attribute): Remove test of the access type being associated
12949         with a return statement from condition for performing accessibility
12950         checks on access attributes, since this case is now captured by
12951         Is_Local_Anonymous_Access.
12952         (Analyze_Access_Attribute): Set Address_Taken on entity
12953         (Analyze_Attribute, case Address): Set Address_Taken on entity
12954         (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
12955         validating an access attribute whose prefix is a current instance.
12956         (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
12957         applied to dispatching operations, if freezing is required then we set
12958         the attribute Has_Delayed_Freeze in the prefix's entity.
12959         (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
12960         current scope if access of local subprogram taken
12961         (Analyze_Access_Attribute): Check legality of self-reference even if the
12962         expression comes from source, as when a single component association in
12963         an aggregate has a box association.
12964         (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
12965         the prefix if it is a protected operation and the attribute is
12966         Unrestricted_Access.
12967         (Resolve_Attribute, case 'Access): Set the Etype of the attribute
12968         reference to the base type of the context, to force a constraint check
12969         when the context is an access subtype with an explicit constraint.
12970         (Analyze_Attribute, case 'Class): If the prefix is an interface and the
12971         node is rewritten as an interface conversion. leave unanalyzed after
12972         resolution, to ensure that type checking against the context will take
12973         place.
12974
12975 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12976             Javier Miranda  <miranda@adacore.com>
12977             Robert Dewar  <dewar@adacore.com>
12978
12979         * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
12980         wrapper when the full view of the controlling type of an inherited
12981         function that dispatches on result implements interfaces.
12982         (Expand_N_Object_Declaration): In cases where the type of the
12983         declaration is anonymous access, create finalization list for it.
12984         (Expand_N_Object_Declaration): Generate a persistent_bss directive only
12985         if the object has no explicit initialization, to match description of
12986         functionality of pragam Persistent_BSS.
12987         (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
12988         new function to build static aggregates, to replace initialization call
12989         when static initialization is desired.
12990         (Freeze_Type): Generate a list controller for an access type whenever
12991         its designated type has controlled anonymous access discriminants.
12992         (Build_Equivalent_Aggregate): New procedure to compute a static
12993         aggregate to be used as default initialization for composite types,
12994         instead of a generating a call to the initialization procedure for the
12995         type.
12996         (Build_Initialization_Call): When available, replace a call to the
12997         initialization procedure with a copy of the equivalent static aggregate
12998         for the type.
12999         (Expand_N_Object_Declaration):  Use New_Occurrence_Of in generated
13000         declarations for objects of a class-wide interface type, rather than
13001         just identifiers, to prevent visibility problems.
13002         (Expand_N_Object_Declaration): When expanding the declaration for an
13003         object of a class-wide interface type, preserve the homonym chain of
13004         the original entity before exchanging it with that of the generated
13005         renaming declaration.
13006         (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
13007         active, because there is no way to handle the exception.
13008         (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
13009         to do a minimum decoration of the Access_Disp_Table list.
13010         (Expand_Record_Controller): Avoid the addition of the controller between
13011         the component containing the tag of a secondary dispatch table and its
13012         adjacent component that stores the offset to the base of the object.
13013         This latter component is only generated when the parent type has
13014         discriminants ---documented in Add_Interface_Tag_Components).
13015         (Apply_Array_Size_Check): Removed, no longer needed.
13016         (Expand_N_Full_Type_Declaration): If the type has anonymous access
13017         components, create a Master_Entity for it only if it contains tasks.
13018         (Build_Init_Procedure): Suppress the tag assignment compiling under
13019         no run-time mode.
13020         (Freeze_Record_Type): Remove code associated with creation of dispatch
13021         table.
13022         (Init_Secondary_Tags): Update type of actuals when generating calls to
13023         Ada.Tags.Set_Offset_To_Top
13024         (Stream_Operation_OK): Disable use of streams compiling under no
13025         run-time mode
13026         (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
13027         if Has_Init_Expression set.
13028         (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
13029         Register_Primitive, which provides the same functionality.
13030         (Requires_Init_Proc): Return false in case of interface types.
13031         (Add_Secondary_Tables): Use the new attribute Related_Interface to
13032         cleanup the code.
13033         (Predefined_Primitive_Freeze): Do not assume that an internal entity
13034         is always associated with a predefined primitive because the internal
13035         entities associated with interface types are not predefined primitives.
13036         Therefore, the call to Is_Internal is replaced by a call to the
13037         function Is_Predefined_Dispatching_Operation.
13038         (Make_Eq_If): When generating the list of comparisons for the
13039         components of a given variant, omit the controller component that is
13040         present if the variant has controlled components.
13041
13042 2007-06-06  Javier Miranda  <miranda@adacore.com>
13043             Hristian Kirtchev  <kirtchev@adacore.com>
13044             Bob Duff  <duff@adacore.com>
13045
13046         * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
13047         handle the creation of finalization lists and calls for nested
13048         coextensions when the root of the chains is part of a return statement.
13049         (Inside_A_Return_Statement): New function inside Complete_Coextension_
13050         Finalization.
13051         (Expand_Record_Equality): Skip components that are interface types.
13052         (Displace_Allocator_Pointer): Add missing support for interface subtypes
13053         (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
13054         with Rewrite_Coextension. Change the condition for detecting coextension
13055         root nodes.
13056         (Is_Local_Access_Discriminant): Removed.
13057         (Rewrite_Coextension): New routine which rewrites a static coextension
13058         as a temporary and uses its unrestricted access in the construction of
13059         the outer object.
13060         (Complete_Coextension_Finalization): New routine. Generate finalization
13061         attachment calls to all delayed coextensions.
13062         (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
13063         the allocator is not a coextension itself and has delayed coextensions.
13064         If the current allocator is controlled, but also a coextension, delay
13065         the generation of the finalization attachment call.
13066         Rename local variable "Node" to "Nod" in order to avoid confusion with
13067         "Elists.Node".
13068         (Expand_Allocator_Expression): Call Adjust for initialized allocators of
13069         limited types that are not inherently limited. Such an allocator is
13070         illegal, but is generated by the expander for a return statement, to
13071         copy the result onto the secondary stack. This is the only case where a
13072         limited object can be copied. Generate code to displace the pointer
13073         to the object if the qualified expression is a class-wide interface
13074         object. Such displacement was missing and hence the copy of the object
13075         was wrong.
13076         (Apply_Accessibility_Check): Handle allocated objects initialized in
13077         place.
13078         (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
13079         and Expand_Allocator_Expression. Allocating class-wide interface objects
13080         this routine displaces the pointer to the allocated object to reference
13081         the component referencing the corresponding secondary dispatch table.
13082         Expand_Allocator_Expression): Add missing support to allocate class-wide
13083         interface objects initialized with a qualified expression.
13084         (Get_Allocator_Final_List): Test for an anonymous access type that is a
13085         function result type, and use the finalization list associated with the
13086         function scope in that case (such an anonymous type should not be
13087         treated like an access parameter's type).
13088
13089 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13090             Gary Dismukes  <dismukes@adacore.com>
13091             Javier Miranda  <miranda@adacore.com>
13092
13093         * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
13094         controlled type, use Make_Handler_For_Ctrl_Operation to construct the
13095         required exception handler.
13096         (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
13097         properly the case of a function whose return type is a limited
13098         class-wide interface type. Modify the code of the accessibility
13099         check to handle class-wide interface objects. In this case we need to
13100         displace "this" to reference the primary dispatch table to get access
13101         to the TSD of the object (to evaluate its accessibility level).
13102         (Expand_N_Extended_Return_Statement): Test for a tagged result type
13103         rather than a controlling result as one of the conditions for
13104         generating tests of the implicit BIP_Alloc_Form formal. The
13105         initialization assignment is also handled according to whether the
13106         result is tagged instead of controlling.
13107         In the case where the init assignment is inserted in the "then" part of
13108         the allocation conditional, rewrite the target to be a dereference of
13109         the implicit BIP_Object_Access formal.
13110         If the returned value is unconstrained and created on the secondary
13111         stack, mark the enclosing block and function so that the secondary
13112         stack is not reclaimed on return.
13113         Treat returns from functions with controlling results similarly to
13114         returns from functions with unconstrained result subtypes.
13115         If the object returned is unconstrained, and an allocator must be
13116         created for it, analyze the allocator once the block for the extended
13117         return is installed, to ensure that finalizable components
13118         of the expression use the proper finalization list. Guard the call to
13119         Move_Final_List with a check that there is something to finalize.
13120         (Make_Tag_Ctrl_Assignment): Use "old" handling
13121         of controlled type assignment for virtual machines, since new code uses
13122         unsupported features (such as direct access to bytes in memory).
13123
13124 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
13125             Ed Schonberg  <schonberg@adacore.com>
13126
13127         * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
13128         accessibility actual, check for the case of an aliased object that has
13129         been rewritten as an Access attribute, and assign Prev to Prev_Orig so
13130         we fall into processing for the attribute rather than the name of the
13131         object.
13132         (Expand_Inline_Call): If an actual is a literal, and the corresponding
13133         formal has its address taken in the body, create a temporary to capture
13134         value.  If the return type is a limited interface, do not treat the
13135         return value as Controlled.
13136         (Is_In_Place_Function):  If the return type is a limited interface,
13137         treat as returning in place. The actual returned object may not always
13138         be limited, but the caller has to assume that it is returned in place.
13139         (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
13140         context of an allocator, use the correct finalization chain (that is,
13141         the chain belonging to the access type, rather than the chain belonging
13142         to the current scope).
13143         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
13144         result type rather than a controlling result as a precondition for
13145         adding an allocation form actual to a build-in-place call.
13146         (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
13147         (Freeze_Subprogram): Code cleanup. Remove all the code that register the
13148         primitive in the dispatch tables. This work is now done by Make_DT when
13149         the type is frozen.
13150         (Register_Predefined_DT_Entry): Removed.
13151         (Add_Return): If end label is not present, use sloc of last statement
13152         for generated return statement in procedure, for better gdb behavior
13153         on expanded code.
13154         (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
13155         object address nodes to ensure proper processing by routines like
13156         Insert_After*.
13157         (Expand_Call): Fix generation of validity check for parameter
13158         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
13159         the allocation form parameter if the result subtype is constrained,
13160         except when the function has a controlling result.
13161         (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
13162         rather than Is_Controlled and Has_Controlled_Component, since we want to
13163         include class-wide result types in this treatment. Also test for a
13164         controlling result, since that also requires passing a finalization
13165         list.
13166         (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
13167         even when the result subtype is constrained, to handle calls involving
13168         controlling results.
13169         (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
13170         is now called even when the result subtype is constrained, to handle
13171         calls involving controlling results.
13172         (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
13173         on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
13174         now performs the test).
13175         (Make_Build_In_Place_Call_In_Object_Declaration):
13176         Add_Alloc_Form_Actual_* is now called even when the result subtype is
13177         constrained, to handle calls involving controlling results.
13178         (Add_Return): Accomodate rewritten pattern from local raise to goto
13179         transformation, so that we still recognize an transfer statement
13180         and do the right thing here in that case.
13181         (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
13182         and end of subprogram code.
13183         (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
13184         support for primitives that are functions (without formals) with a
13185         controlling result.
13186         (Inherited_From_Formal): If the actual subtype has not generic parent
13187         type, it is not an actual for a formal derived type, and there is no
13188         operation to inherit from the formal.
13189
13190 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13191             Thomas Quinot  <quinot@adacore.com>
13192
13193         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
13194         inserted cleanup code appropriately for GDB use.
13195         (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
13196         exception handler for Deep_Adjust or Deep_Finalize.
13197         (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
13198         Raise_From_Controlled_Operation is available, use a call to that
13199         subprogram instead of a plain "raise Program_Error" node to raise
13200         Program_Error if an exception is propagated from an Adjust or Finalize
13201         operation.
13202         (Insert_Actions_In_Scope_Around): If the statement to be wrapped
13203         appears in the optional statement list of a triggering alternative, the
13204         scope actions can be inserted directly there, and not in the list that
13205         includes the asynchronous select itself.
13206
13207 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13208             Robert Dewar  <dewar@adacore.com>
13209             Hristian Kirtchev  <kirtchev@adacore.com>
13210
13211         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
13212         generated exception handler appropriately when debugging generated code.
13213         Deal properly with No_Exception_Propagation restriction mode.
13214         (Expand_N_Abort_Statement): Add an unchecked type conversion from
13215         System.Address to System.Tasking.Task_Id when processing the result of
13216         the predefined primitive _disp_get_task_id.
13217         (Expand_N_Asynchronous_Select): Clarify comment.
13218         (Expand_N_Protected_Type_Declaration): Minor code cleanup.
13219         (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
13220         (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
13221         (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
13222         privals and for generated call to Complete_Entry_Body, for better gdb
13223         behavior.
13224         (Copy_Result_Type): Utility to construct a parameter and result profile
13225         for protected functions whose return type is an anonymous access to
13226         subprogram.
13227         (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
13228         call the above.
13229         (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
13230         point when the local-raise-to-goto transformation has taken place.
13231
13232 2007-06-06  Javier Miranda  <miranda@adacore.com>
13233             Nicolas Setton  <setton@adacore.com>
13234
13235         * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
13236         functionality when the backend is generating code.
13237         Otherwise any serious error
13238         reported by the backend calling the frontend routine Error_Msg
13239         changes the Compilation_Mode to Check_Semantics, disables the
13240         functionality of this routine and causes the generation of
13241         spureous additional errors.
13242
13243         * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
13244         debugging information now generated by the compiler for fat-pointer
13245         types.
13246         Document the contents of DW_AT_producer in the GNAT Vendor extensions to
13247         DWARF2/3.
13248         Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
13249
13250 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13251
13252         * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
13253         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
13254         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
13255         For a remote call to a function with a classwide return type, apply an
13256         E.4(18) check to the returned value.
13257         (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
13258         stream attributes of the designated type of an RACW, as they are not
13259         dispatching primitive operations.
13260
13261 2007-06-06  Geert Bosch  <bosch@adacore.com>
13262
13263         * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
13264         negative literal
13265         (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
13266         positive
13267         (Do_Divide_Fixed_Universal): Handle case of negative Frac.
13268         (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
13269         positive
13270         (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
13271
13272 2007-06-06  Javier Miranda  <miranda@adacore.com>
13273
13274         * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
13275         attribute compiling package Ada.Tags under No_Run_Time_Mode.
13276
13277 2007-06-06  Javier Miranda  <miranda@adacore.com>
13278
13279         * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
13280         deallocation of class-wide interface objects.
13281         (Expand_Dispatching_Constructor_Call): Take into account that if the
13282         result of the dispatching constructor is an interface type, the
13283         function returns a class-wide interface type; otherwise the returned
13284         object would be actual. The frontend previously accepted returning
13285         interface types because Expand_Interface_Actuals silently performed
13286         the management of the returned type "as if" it were a class-wide
13287         interface type.
13288         (Expand_Dispatching_Constructor_Call): Replace call to
13289         Make_DT_Access_Action by direct call to Make_Function_Call.
13290
13291 2007-06-06  Robert Dewar  <dewar@adacore.com>
13292             Ed Schonberg  <schonberg@adacore.com>
13293
13294         * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
13295         compute masking constant, since we now set Esize properly to the
13296         underlying size.
13297         (Create_Packed_Array_Type): Set proper Esize value adjusted as required
13298         to match the alignment.
13299         (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
13300         packed arrays of 8 bits or less.
13301
13302         * freeze.adb (Freeze_Entity): When freezing the formals of a
13303         subprogram, freeze the designated type of a parameter of an access type
13304         only if it is an access parameter.
13305         Increase size of C convention enumeration object
13306         (Freeze_Entity, array type case): Make sure Esize value is properly
13307         adjusted for the alignment if it is known.
13308         (Freeze_Entity, array type case): When checking bit packed arrays for
13309         the size being incorrect, check RM_Size, not Esize.
13310         (Freeze_Record_Type): Check for bad discriminated record convention
13311         (In_Exp_Body): Return true if the body is generated for a subprogram
13312         renaming, either an attribute renaming or a renaming as body.
13313         (Check_Itype): If the designated type of an anonymous access component
13314         is a non-protected subprogram type, indicate that it is frozen, to
13315         prevent out-of-scope freeze node at some subsequent call.
13316         (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
13317         only if the subprogram is neither imported nor exported, as well as the
13318         NCA descriptor class if the subprogram is exported.
13319
13320 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13321             Arnaud Charlet  <charlet@adacore.com>
13322             Robert Dewar  <dewar@adacore.com>
13323             Gary Dismukes  <dismukes@adacore.com>
13324
13325         * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
13326         default initialization on an imported object, when there is no
13327         initialization call generated for it.
13328         (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
13329         restriction
13330
13331         * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
13332         Static_Elaboration_Desired.
13333         Remove pragma Thread_Body.
13334         Implement a new pragma No_Body
13335         Removes the Explicit_Overriding pragma
13336         Remove Optional_Overriding pragma
13337         (Prag): Deal with Universal_Aliasing.
13338         (Name_CIL, Name_CIL_Constructor, Convention_CIL,
13339         Pragma_CIL_Constructor): New names.
13340
13341         * sem_cat.adb (Validate_Object_Declaration): An initialization that
13342         uses the equivalent aggregate of a type must be treated as an implicit
13343         initialization.
13344         (Get_Categorization): Check a unit for pragma Preelaborate only if it
13345         has none of the other categories.
13346         (Process_Import_Or_Interface_Pragma): Report an error for an attempt
13347         to apply Import to an object renaming declaration.
13348
13349         * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
13350         from a C++ class should be declared as limited and that it will be
13351         considererd limited.
13352         (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
13353         should be declared as limited and that it will be considererd limited.
13354         (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
13355         (Analyze_Pragma, case Export): Diagnose export of enumeration literal
13356         (Analyze_Pragma): Deal with Universal_Aliasing.
13357         (Sig_Flags): Likewise.
13358         (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
13359         (Overflow_Checks_Unsuppressed): New flag.
13360         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
13361         (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
13362         case of JVM or .NET targets, and compiling user code.
13363         Add debugging convenience routine rv
13364
13365 2007-06-06  Robert Dewar  <dewar@adacore.com>
13366
13367         * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
13368         are interface type.
13369         (Build_Elementary_Input_Call): For floating-point use right type in the
13370         absence of strange size or stream size clauses.
13371         (Build_Elementary_Write_Call): Same fix
13372         (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
13373         set to value that does not match base type size.
13374
13375 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13376
13377         * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
13378         object of a limited type can be initialized with a call to a function
13379         that returns in place. If the limited type has unknown discriminants,
13380         and the underlying type is a constrained composite type, build an actual
13381         subtype from the function call, as is done for private types.
13382         (Side_Effect_Free): An expression that is the renaming of an object or
13383         whose prefix is the renaming of a object, is not side-effect free
13384         because it may be assigned through the renaming and its value must be
13385         captured in a temporary.
13386         (Has_Controlled_Coextensions): New routine.
13387         (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
13388         as is done for other limited types.
13389         (Non_Limited_Designated_Type): new predicate.
13390         (Make_CW_Equivalent_Type): Modified to handle class-wide interface
13391         objects.
13392         Remove all handling of with_type clauses.
13393
13394         * par-ch10.adb: Remove all handling of with_type clauses.
13395
13396         * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
13397         checksum if the main source could not be parsed.
13398         (Loat_Unit): When processing a child unit, determine properly whether
13399         the parent unit is a renaming when the parent is itself a child unit.
13400         Remove handling of with_type clauses.
13401
13402         * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
13403         (Set_Is_Static_Coextension): New procedure.
13404         (Has_Local_Raise): New function
13405         (Set_Has_Local_Raise): New procedure
13406         (Renaming_Exception): New field
13407         (Has_Init_Expression): New flag
13408         (Delay_Finalize_Attach): Remove because flag is obsolete.
13409         (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
13410         Remove all handling of with_type clauses.
13411         (Exception_Junk): Can now be set in N_Block_Statement
13412
13413 2007-06-06  Vincent Celier  <celier@adacore.com>
13414             Robert Dewar  <dewar@adacore.com>
13415
13416         * frontend.adb (Frontend): Return immediately if the main source could
13417         not be parsed, because of preprocessing errors.
13418
13419         * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
13420         (Gnat1drv): Exit with errors if the main source could not be parsed,
13421         because of preprocessing errors.
13422         (Check_Rep_Info): New procedure
13423
13424 2007-06-06  Robert Dewar  <dewar@adacore.com>
13425
13426         * g-hesorg.ads, g-heasor.ads,
13427         g-busorg.ads, g-bubsor.ads: Update documentation
13428         GNAT.Heap/Bubble_Sort_G is now pure
13429
13430 2007-06-06  Robert Dewar  <dewar@adacore.com>
13431
13432         * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
13433
13434 2007-06-06  Robert Dewar  <dewar@adacore.com>
13435             Ed Schonberg  <schonberg@adacore.com>
13436
13437         * g-comlin.ads, g-comlin.adb:
13438         Add new warning for renaming of function return objects
13439
13440         * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
13441         (Tree_Read): Use size of object instead of type'object_size, since the
13442         latter is incorrect for packed array types.
13443         (Tree_Write): Same fix
13444
13445         * opt.ads: Add new warning for renaming of function return objects
13446         (Generating_Code): New boolean variable used to indicate that the
13447         frontend as finished its work and has called the backend to process
13448         the tree and generate the object file.
13449         (GCC_Version): Is now private
13450         (Static_Dispatch_Tables): New constant declaration.
13451         (Overflow_Checks_Unsuppressed): New flag.
13452         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
13453         (List_Closure): New flag for gnatbind (-R)
13454         Zero_Formatting: New flag for gnatbind (-Z)
13455         (Special_Exception_Package_Used): New flag.
13456         (Warn_On_Unrepped_Components): New flag.
13457
13458         * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
13459         unit is a compilation unit, rather than relying on its scope, so that
13460         Standard can be renamed.
13461         (Analyze_Object_Renaming): Add new warning for renaming of function
13462         return objects.
13463         Also reject attempt to rename function return object in Ada 83 mode.
13464         (Attribute_Renaming): In case of tagged types, add the body of the
13465         generated function to the freezing actions of the type.
13466         (Find_Type): A protected type is visible right after the reserved word
13467         "is" is encountered in its type declaration. Set the entity and type
13468         rather than emitting an error message.
13469         (New_Scope): Properly propagate Discard_Names to inner scopes
13470         (Check_Nested_Access): New procedure.
13471         (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
13472         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
13473
13474         * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
13475         Add new warning for renaming of function return objects
13476         (Check_References): Suppress warnings for objects whose type or
13477         base type has Warnings suppressed.
13478         (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
13479         (Set_Warning_Switch): Include new -gnatwc in -gnatwa
13480
13481 2007-06-06  Vincent Celier  <celier@adacore.com>
13482             Emmanuel Briot  <briot@adacore.com>
13483             Olivier Hainque  <hainque@adacore.com>
13484
13485         * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
13486         absolute value of Header.Block_Size when displaying the freed physical
13487         memory in traces.
13488         (Allocate): Compute Storage_Address using Integer_Address, not
13489         Storage_Offset, because the range of Storage_Offset may not be large
13490         enough.
13491         (Configure): New parameter Low_Level_Traces
13492         (Allocate, Deallocation, Free_Physically): Added low-level traces
13493         (Configure): new parameter Errors_To_Stdout.
13494         (Output_File): new subprogram
13495         (Deallocate, Dereference): Send error messages to the proper stream
13496         (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
13497         documented. Previous code would send it to the current output file
13498         defined in GNAT.IO, which might not be stdout
13499         (Is_Valid): Adjust comment to mention that a positive reply means that
13500         Header_Of may be used to retrieve the allocation header associated with
13501         the subprogram Storage address argument. Return False early if this
13502         address argument is misaligned.
13503
13504 2007-06-06  Vincent Celier  <celier@adacore.com>
13505
13506         * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
13507         switch -P
13508         (ASIS_Main): New global variable
13509         (Get_Closure): New procedure
13510         (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
13511         check, metric or pretty. Call Get_Closure in this case.
13512         (Check_Files): For GNAT LIST, check all sources of all projects when
13513         All_Projects is True.
13514         (GNATCmd): Accept -U for GNAT LIST
13515
13516 2007-06-06  Vincent Celier  <celier@adacore.com>
13517
13518         * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
13519         has been specified
13520         Correct error message when invocation of the linker fails
13521         Add explicit size clause for the C imported variables
13522         Object_List_File_Supported and Using_GNU_Linker to emphasize that
13523         we expect char size.
13524         Read target parameters earlier, since this is needed to set
13525         Target_VM properly. Also do not use -static/shared-libgcc for non GCC
13526         targets.
13527
13528 2007-06-06  Vincent Celier  <celier@adacore.com>
13529
13530         * gnatls.adb:
13531         Add 3 spaces before the default project directory when displaying
13532         the project search path.
13533         Add new command line switch '-l' to display license information.
13534
13535 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
13536
13537         * gmem.c: Add support for timestamps on memory operations.
13538
13539         * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
13540         operations (not used currently, just foundation for future
13541         enhancements). Add possibility to perform full dump of gmem.out file.
13542         (Print_Back_Traces): Declare accesses to root arrays constants since
13543         they aren't modified.
13544         (Print_Back_Traces): allocate root arrays on the heap rather than stack.
13545
13546 2007-06-06  Vincent Celier  <celier@adacore.com>
13547
13548         * gnatsym.adb: Update Copyright notice
13549         (Parse_Cmd_Line): Accept new switch -D
13550         (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
13551          file.
13552
13553         * prj.ads (Policy): New policy Direct
13554         (Yes_No_Unknown): New enumeration type
13555         (Project_Data): New component Libgnarl_Needed
13556
13557         * prj-nmsc.adb (Check_For_Source): When recording a source file make
13558         use the untouched pathname casing.
13559         (Get_Directories): Ensure that the Display_Exec_Directory is using the
13560         proper casing on non case-sensitive platforms like Windows.
13561         (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
13562         on all platforms, as it is not possible to know which one is allowed
13563         before processing the project files.
13564         (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
13565         specified when symbol policy is Direct. Check that when there is a
13566         symbol file defined (either by default or with attribute
13567         Library_Symbol_File) it is not the same as the reference symbol file.
13568         (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
13569         (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
13570         extending projects.
13571         (Record_Ada_Source): Record a source that has been locally removed in an
13572         imported project.
13573
13574         * symbols.ads (Policy): New policy Direct
13575
13576         * symbols-vms.adb (Initialize): Take new policy Direct in case
13577         statement
13578
13579 2007-06-06  Vincent Celier  <celier@adacore.com>
13580
13581         * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
13582         Correct obvious bug (return Dir; instead of return Directory;).
13583         (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
13584
13585 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13586
13587         * g-pehage.adb (Produce): Open output files in Binary mode, so that
13588         they have UNIX line endings (LF only) even on Windows, and thus pass
13589         all GNAT style checks.
13590
13591 2007-06-06  Emmanuel Briot  <briot@adacore.com>
13592
13593         * g-regpat.adb (Quote): Fix improper quoting of '.'
13594
13595 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13596
13597         * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
13598         default, set False on a per-runtime basis.
13599         (Need_Netdb_Buffer): New constant.
13600
13601         * g-socket.ads, g-socket.adb: Import new package
13602         GNAT.Sockets.Thin.Task_Safe_NetDB.
13603         (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
13604         binding to obtain proper message.
13605         (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
13606         Replace various occurrences of Arry (Arry'First)'Address with the
13607         equivalent Arry'Address (GNAT always follows implementation advice from
13608         13.3(14)).
13609         (Get_Host_By_Address, Get_Host_By_Name,
13610         Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
13611         instead, rely on platform-specific task safe netdb operations provided
13612         by g-socthi.
13613
13614         * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
13615         parameter Process_Blocking_IO.
13616         (Host_Error_Messages): Add stub body.
13617         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
13618         (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
13619         Safe_Getservbyport): Move functions into new child package
13620         Task_Safe_NetDB.
13621         (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
13622         Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
13623         (In_Addr): Add alignment clause.
13624
13625 2007-06-06  Robert Dewar  <dewar@adacore.com>
13626
13627         * g-trasym.ads, g-traceb.ads: Update list of supported targets
13628         Add note about symbolic traceback
13629
13630 2007-06-06  Pascal Obry  <obry@adacore.com>
13631
13632         * hostparm.ads (Normalized_CWD): Use the host directory separator
13633         instead of the hardcoded forward slash which is not the proper
13634         character on Windows for example.
13635         (Java_VM): Removed.
13636
13637 2007-06-06  Vincent Celier  <celier@adacore.com>
13638             Arnaud Charlet  <charlet@adacore.com>
13639
13640         * a-clrefi.adb, a-clrefi.ads: New files
13641
13642         * impunit.adb: Add s-os_lib in the list of user visible units.
13643         (Non_Imp_File_Names_95): Add a-clrefi to this list
13644         Remove obsolete run-time entries.
13645         (Non_Imp_File_Names_05): Add Ada 2005 entries for:
13646          "a-exetim" -- Ada.Execution_Time
13647          "a-extiti" -- Ada.Execution_Time.Timers
13648
13649         * mlib-prj.ads, mlib-prj.adb
13650         (Build_Library): Use untouched object dir and library dir. At the
13651         same time makes sure that the checks are done using the canonical
13652         form. Removes hard-coded directory separator and use the proper host
13653         one instead.
13654         (Process_Project): Do not look in object directory to check if libgnarl
13655         is needed for a library, if there is no object directory.
13656         (Build_Library): Scan the ALI files to decide if libgnarl is needed for
13657         linking.
13658         (Build_Library): When invoking gnatbind, use a response file if the
13659         total size of the arguments is too large.
13660
13661         * Makefile.rtl: (g-sttsne): New object file.
13662         Add entry for a-clrefi, s-utf_32, System.Exceptions
13663
13664         * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
13665         (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
13666         (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
13667         Change g-string to s-string, g-os_lib to s-os_lib
13668         Change all g-utf_32 references to s-utf_32
13669
13670 2007-06-06  Tristan Gingold  <gingold@adacore.com>
13671             Olivier Hainque  <hainque@adacore.com>
13672
13673         * init.c: Do not adjust IP of an imported VMS exception of ia64.
13674         LIB$STOP is called to raise an exception and the IP of the exception
13675         is the instruction right after the call.
13676         (__gnat_adjust_context_for_raise, AIX): Implement.
13677         (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
13678          adjust_context_for_raise before Raise_From_Signal_Hanler.
13679         (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
13680         siginfo is passed to the handler, necessary to let the zcx propagation
13681         engine unwind past it.
13682
13683 2007-06-06  Olivier Hainque  <hainque@adacore.com>
13684
13685         * initialize.c (__gnat_initialize for vxworks):  Update documentation
13686         on the ZCX support, using different sets of crtstuff objects than with
13687         GCC 3.4.
13688
13689 2007-06-06  Robert Dewar  <dewar@adacore.com>
13690
13691         * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
13692         spec from body
13693         (Layout_Type): Fix recomputation of size from alignment.
13694
13695 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13696             Javier Miranda  <miranda@adacore.com>
13697
13698         * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
13699         association in an instance.
13700         (Copy_Generic_Node): If the node is a string literal, no need to copy
13701         its descendants.
13702         (Is_Generic_Formal): For a formal subprogram, the declaration is the
13703         grandparent of the entity.
13704         (Analyze_Formal_Interface_Type): Transform into a full type declaration,
13705         to simplify handling of formal interfaces that derive from other formal
13706         interfaces.
13707         (Instantiate_Subprogram_Body): The defining unit name of the body of
13708         the instance should be a defining identifier.
13709         (Install_Formal_Packages): make global to the package, for use in
13710         instantiations of child units.
13711         (Analyze_Package_Instantiation): Do not attempt to set information on an
13712         enclosing master of an entry when expansion is disabled.
13713         (Instantiate_Type): If the actual is a tagged synchronized type and the
13714         generic ancestor is an interface, create a generic actual for the
13715         corresponding record.
13716         (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
13717         declaration, to ensure that the interface list is processed correctly.
13718         (Inline_Instance_Body): If enclosing scope is an instance body, remove
13719         its entities from visibiility as well.
13720         (Pre_Analyze_Actuals): if the actual is an allocator with  constraints
13721         given with a named association, analyze the expression only, not the
13722         discriminant association itself.
13723         (Reset_Entity): If the analysis of a selected component is transformed
13724         into an expanded name in the prefix of a call with parameters, do not
13725         transform the original node into an expanded name, to prevent visibility
13726         errors in the case of nested generics.
13727         (Check_Private_View): For an array type, check whether the index types
13728         may need exchanging.
13729
13730 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
13731             Vincent Celier  <celier@adacore.com>
13732
13733         * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
13734         since both are separated.
13735         Add support for imported CIL packages.
13736         Add further special handling of "value_type" for CIL.
13737         Add special handling of pragma Import for CIL.
13738
13739         * make.ads, make.adb: When switch -eS is used, direct all outputs to
13740         standard output instead of standard error, except errors.
13741         (Absolute_Path): Use untouched casing for the parent directory.
13742         (Add_Library_Search_Dir): Use the untouched directory name.
13743         (Add_Source_Search_Dir): Idem.
13744         (Change_To_Object_Directory): Update output to use proper casing.
13745         (Create_Binder_Mapping_File): Use the untouched filename to set
13746         ALI_Name.
13747         (Gnatmake): Use untouched library and executable directory names.
13748         (Insert_Project_Sources): Use untouched filename for spec and body.
13749         (Is_In_Object_Directory): Use untouched object directory.
13750         (Mark_Directory): Idem.
13751         (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
13752         contains the non-canonical filename in all cases.
13753         (Change_To_Object_Directory): In verbose mode, display the name of the
13754         object directory we're changing to.
13755         (Compile_Sources): Make sure, when a project file is used, to compile
13756         the body of the unit, when there is one, even when only the spec is
13757         recorded in an ALI file.
13758         (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
13759         spec to the body.
13760         (Report_Compilation_Failed): New procedure
13761         (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
13762         procedures moved from the spec to the body.
13763         (Extract_Failure): Removed, not used
13764         Replace explicit raises of exception Bind_Failed and Link_Failed with
13765         calls to Make_Failed with the proper message.
13766         Replace explicit raises of exception Compilation_Failed with calls to
13767         procedure Report_Compilation_Failed.
13768         (Initialize): Create mapping files unconditionally when using project
13769         files.
13770
13771         * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
13772         Pragma_CIL_Constructor): New names.
13773
13774         * targparm.ads, targparm.adb
13775         (Compiler_System_Version): Removed, no longer used.
13776         (Get_Target_Parameters): Relax checks on system.ads validity. Add
13777         handling of two new system flags: JVM and CLI.
13778
13779 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
13780             Arnaud Charlet  <charlet@adacore.com>
13781
13782         * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
13783         time, use the default s-interr body that provides interrupt support
13784         based on signals.
13785         (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
13786         a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
13787         g-soccon.ads, and s-taprop.adb for the marte run time.
13788         (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
13789         timers are supported on marte.
13790         (EH_MECHANISM for marte): Do not use ZCX.
13791         (THREADSLIB for marte): Use -lmarte.
13792         Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
13793         Add mlib-tgt-specific.o to gnatmake objects
13794         mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
13795         longer of MLib.Tgt.
13796         (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
13797         6, either kernel or rtp, use a specialized version of s-osinte.ads.
13798
13799 2007-06-06  Pascal Obry  <obry@adacore.com>
13800
13801         * mkdir.c (__gnat_mkdir): Add support for UTF-8.
13802
13803 2007-06-06  Vincent Celier  <celier@adacore.com>
13804
13805         * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
13806         separator, use instead the proper host directory separator.
13807         (Copy_ALI_Files): Make sure that an already existing ALI file in the
13808         ALI copy dir is writable, before doing the copy.
13809
13810         * mlib-utl.ads, mlib-utl.adb:
13811         (Gcc): If length of command line is too long, put the list of object
13812         files in a response file, if this is supported by the platform.
13813         (Ar): If invocation of the archive builder is allowed to be done in
13814         chunks and building it in one shot would go above an OS dependent
13815         limit on the number of characters on the command line, build the archive
13816         in chunks.
13817
13818 2007-06-06  Vincent Celier  <celier@adacore.com>
13819
13820         * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
13821         of specified object file is not equal to base name of source.
13822
13823 2007-06-06  Javier Miranda  <miranda@adacore.com>
13824             Hristian Kirtchev  <kirtchev@adacore.com>
13825             Ed Schonberg  <schonberg@adacore.com>
13826
13827         * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
13828         the full type declaration.
13829         (Analyze_Component_Declaration): Add local variable E to capture the
13830         initialization expression of the declaration. Replace the occurences of
13831         Expression (N) with E.
13832         (OK_For_Limited_Init_In_05): Allow initialization of class-wide
13833         limited interface object with a function call.
13834         (Array_Type_Declaration): If the declaration lacks subtype marks for
13835         indices, create a simple index list to prevent cascaded errors.
13836         (Is_Null_Extension): Ignore internal components created for secondary
13837         tags when checking whether a record extension is a null extension.
13838         (Check_Abstract_Interfaces): Add missing support for interface subtypes
13839         and generic formals.
13840         (Derived_Type_Declaration): Add missing support for interface subtypes
13841         and generic formals.
13842         (Analyze_Object_Declaration): If an initialization expression is
13843         present, traverse its subtree and mark all allocators as static
13844         coextensions.
13845         (Add_Interface_Tag_Component): When looking for components that may be
13846         secondary tags, ignore pragmas that can appear within a record
13847         declaration.
13848         (Check_Abstract_Overriding): an inherited function that dispatches on
13849         result does not need to be overriden if the controlling type is a null
13850         extension.
13851         (Mentions_T): Handle properly a 'class attribute in an anonymous access
13852         component declaration, when the prefix is an expanded name.
13853         (Inherit_Component): If the derivation is for a private extension,
13854         inherited components remain visible and their ekind should not be set
13855         to Void.
13856         (Find_Type_Of_Object): In the case of an access definition, always set
13857         Is_Local_Anonymous_Access. We were previously not marking the anonymous
13858         access type of a return object as a local anonymous type.
13859         (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
13860         range with character literal bounds.
13861         (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
13862         (Access_Subprogram_Declaration): Indicate that the type declaration
13863         depends on an incomplete type only if the incomplete type is declared
13864         in an open scope.
13865         (Analyze_Subtype_Declaration): Handle properly subtypes of
13866         synchronized types that are tagged, and that may appear as generic
13867         actuals.
13868         (Access_Subprogram_Declaration): An anonymous access to subprogram can
13869         appear as an access discriminant in a private type declaration.
13870         (Add_Interface_Tag_Components): Complete decoration of the component
13871         containing the tag of a secondary dispatch table and the component
13872         containing the offset to the base of the object (this latter component
13873         is only generated when the parent type has discriminants --as documented
13874         in this routine).
13875         (Inherit_Components): Use the new decoration of the tag components to
13876         improve the condition that avoids inheriting the components associated
13877         with secondary tags of the parent.
13878         (Build_Discriminanted_Subtype): Indicate to the backend that the
13879         size of record types associated with dispatch tables is known at
13880         compile time.
13881         (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
13882         (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
13883         to include task, protected, and synchronized interfaces as limited
13884         interfaces.
13885         (Process_Discriminants): Remove the setting of
13886         Is_Local_Anonymous_Access on the type of (anonymous) access
13887         discriminants of nonlimited types.
13888         (Analyze_Interface_Type_Declaration): Complete the decoration of the
13889         class-wide entity it is is already present. This situation occurs if
13890         the limited-view has been previously built.
13891         (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
13892         field.
13893         (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
13894         Related_Interface.
13895
13896 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13897
13898         * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
13899         of the type that specify the position of interface tags when the type
13900         inherits discriminated array components from the parent type.
13901         If a component is initialized with a box, check for the presence of a
13902         default expression in its declaration before using its default
13903         initialization procedure.
13904         (Resolve_Record_Aggregate): If a component is box-initialized, and the
13905         component type has a discriminants, create a partial aggregate for it
13906         by copying the discriminants of the component subtype.
13907         Reject attempt to initialize a discriminant with a box.
13908         (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
13909         associated with dispatch tables is known at compile time.
13910         (Get_Value): If an association in a record aggregate has a box
13911         association, and the corresponding record component has a default
13912         expression, always copy the default expression, even when the
13913         association has a single choice, in order to create a proper
13914         association for the expanded aggregate.
13915
13916 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13917             Robert Dewar  <dewar@adacore.com>
13918
13919         * par-ch12.adb (P_Generic_Associations): The source position of an
13920         Others association is that of the others keyword, not that of the token
13921         that follows the box.
13922         (P_Formal_Type_Definition): Handle formal access types that carry a
13923         not null indicator.
13924
13925         * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
13926         multiple identifier are present, save Scan_State before scanning the
13927         colon, to ensure that separate trees are constructed for each
13928         declaration.
13929         (P_Identifier_Declarations): For object declaration, set new flag
13930         Has_Init_Expression if initialization expression present.
13931         (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
13932         Improve NOT NULL error messages
13933
13934 2007-06-06  Robert Dewar  <dewar@adacore.com>
13935
13936         * par-ch4.adb: (P_Name): Recover from literal used as name
13937
13938 2007-06-06  Vincent Celier  <celier@adacore.com>
13939
13940         * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
13941         defaulted to False.
13942         In the "not" case, recursive call with Complemented set to True.
13943         Do not allow "or" or "and" operators when Complemented is True.
13944
13945 2007-06-06  Vincent Celier  <celier@adacore.com>
13946
13947         * prj.adb (Project_Empty): Gives default value for new component
13948         Libgnarl_Needed
13949
13950         * prj-attr.ads: Minor reformatting
13951
13952         * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
13953         directory using the untouched casing.
13954         (For_All_Source_Dirs): Idem.
13955
13956         * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
13957         directories specified with switches -aP.
13958         (Add_Search_Project_Directory): New procedure
13959         (Initialize_Project_Path): Put the directories in table
13960         Search_Directories in the project search path.
13961         (Initialize_Project_Path): For VMS, transform into canonical form the
13962         project path.
13963
13964 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
13965
13966         * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
13967         true if configurable run-time or No_Run_Time is set.
13968         (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
13969         processing an unit which is not the one being compiled.
13970
13971 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
13972
13973         * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
13974         Replace UC by Ada.UC
13975
13976         * s-bitops.adb: Get rid of System.Pure_Exceptions.
13977         Replace UC by Ada.UC
13978
13979 2007-06-06  Robert Dewar  <dewar@adacore.com>
13980
13981         * scng.adb: (Check_End_Of_Line): Deal with very long lines
13982
13983 2007-06-06  Robert Dewar  <dewar@adacore.com>
13984
13985         * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
13986         Remove no longer used nodes.
13987
13988 2007-06-06  Javier Miranda  <miranda@adacore.com>
13989             Ed Schonberg  <schonberg@adacore.com>
13990             Robert Dewar  <dewar@adacore.com>
13991
13992         * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
13993         on obsolescent withed unit in case of limited-withed units.
13994         (Analyze_Compilation_Unit): Add guard to code that removed an
13995         instantiation from visibility, to prevent compiler aborts when
13996         instantiation is abandoned early on.
13997         (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
13998         current unit being analyzed, and Distinguish local incomplete types
13999         from limited views of types declared elsewhere.
14000         (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
14001         to state that the class-wide entity is shared by the limited-view
14002         and the full-view.
14003         (Analyze_With_Clause): Improve placement of flag for case of
14004         unimplemented unit.
14005         (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
14006         manner similar to GNAT.Current_Exception. This is a violation of
14007         restriction (No_Exception_Propagation), and also inhibits the
14008         optimization of local raise to goto.
14009         (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
14010         and if so set Most_Recent_Exception_Used flag in Opt, and also check
14011         for violation of restriction No_Exception_Propagation.
14012
14013 2007-06-06  Javier Miranda  <miranda@adacore.com>
14014             Hristian Kirtchev  <kirtchev@adacore.com>
14015             Gary Dismukes  <dismukes@adacore.com>
14016
14017         * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
14018         use of entity Exception_Occurrence if it is not available in the
14019         target run-time.
14020
14021         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
14022         concurrent types are declared within an Ada 2005 generic, build their
14023         corresponding record types since they are needed for overriding-related
14024         semantic checks.
14025         (Analyze_Protected_Type): Rearrange and simplify code for testing that a
14026         protected type does not implement a task interface or a nonlimited
14027         interface.
14028         (Analyze_Task_Type): Rearrange and simplify code for testing that a task
14029         type does not implement a protected interface or a nonlimited interface.
14030         (Single_Task_Declaration, Single_Protected_Declaration): use original
14031         entity for variable declaration, to ensure that debugging information
14032         is correcty generated.
14033         (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
14034         routines if the expander is not active.
14035         (Analyze_Task_Body): Mark all handlers to stop optimization of local
14036         raise, since special things happen for task exception handlers.
14037
14038         * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
14039         concurrent types declared within a generic.
14040         (Check_Dispatching_Operation): Do not emit warning about late interface
14041         operations in the context of an instance.
14042         (Check_Dispatching_Call): Remove restriction against calling a
14043         dispatching operation with a limited controlling result.
14044         (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
14045         Register_Interface_DT_Entry by calls to Register_Primitive.
14046         (Check_Dispatching_Formals): Handle properly a function with a
14047         controlling access result.
14048
14049 2007-06-06  Robert Dewar  <dewar@adacore.com>
14050             Arnaud Charlet  <charlet@adacore.com>
14051
14052         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
14053         Check for restriction No_Implementation_Attributes if in Ada 95 mode.
14054         (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
14055         (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
14056         message when using a VM, since this attribute is not supported.
14057         (Analyze_Record_Representation_Clause): Give unrepped component warnings
14058
14059         * usage.adb: Add new warning for renaming of function return objects
14060         Indicate that -gnatwp and -gnatwP concern front-end inlining
14061         Add line for -gnatyg
14062         Add usage information for -gnatw.c/C
14063
14064 2007-06-06  Robert Dewar  <dewar@adacore.com>
14065             Ed Schonberg  <schonberg@adacore.com>
14066
14067         * sem_ch5.adb
14068         (Find_Var): Do not consider function call in test for infinite loop
14069         warning if warnings set off for function entity.
14070         (One_Bound): Do not create a temporary for a loop bound if it is a
14071         character literal.
14072         (Analyze_Assignment): Traverse the right hand side of an assignment and
14073         mark all allocators as static coextensions.
14074         (Analyze_Assignment): Exempt assignments involving a dispatching call
14075         to a function with a controlling access result from the check requiring
14076         the target to be class-wide.
14077
14078 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
14079             Ed Schonberg  <schonberg@adacore.com>
14080             Robert Dewar  <dewar@adacore.com>
14081             Javier Miranda  <miranda@adacore.com>
14082
14083         * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
14084         chain of coextensions when an allocator serves as the root of such a
14085         chain.
14086         (Propagate_Coextensions): Remove the test for the root being an
14087         allocator.
14088         (Resolve_Allocator): Add condition to ensure that all future decoration
14089         occurs on an allocator node. Add processing and cleanup for static
14090         coextensions.
14091         (Valid_Conversion): If the operand type is the limited view of a
14092         class-wide type, use the non-limited view is available to determine
14093         legality of operation.
14094         (Ambiguous_Character): move to spec, for use elsewhere.
14095         (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
14096         (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
14097         character literals.
14098         (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
14099         Do_Division_Check flag explicitly.
14100         (Resolve_Actuals): If the actual is of a synchronized type, and the
14101         formal is of the corresponding record type, this is a call to a
14102         primitive operation of the type, that is declared outside of the type;
14103         the actual must be unchecked-converted to the type of the actual
14104         (Resolve_Call): Kill all current values for any subprogram call if
14105         flag Suppress_Value_Tracking_On_Call is set.
14106         (Resolve_Type_Conversion): Generate error message the the operand
14107         or target of interface conversions come from a limited view.
14108         (Check_Infinite_Recursion): Ignore generated calls
14109         (Check_Allocator_Discrim_Accessibility): New procedure for checking
14110         that an expression that constrains an access discriminant in an
14111         allocator does not denote an object with a deeper level than the
14112         allocator's access type.
14113         (Resolve_Allocator): In the case of an allocator initialized by an
14114         aggregate of a discriminated type, check that associations for any
14115         access discriminants satisfy accessibility requirements by calling
14116         Check_Allocator_Discrim_Accessibility.
14117         (Resolve_Equality_Op): Handle comparisons of anonymous access to
14118         subprogram types in the same fashion as other anonymous access types.
14119         (Resolve_Concatenation_Arg): Remove initial character '\' in an error
14120         message that is not a continuation message.
14121         (Resolve_Type_Conversion): Add missing support for conversion to
14122         interface type.
14123         (Resolve_Actuals): Introduce a transient scope around the call if an
14124         actual is a call to a function returning a limited type, because the
14125         resulting value must be finalized after the call.
14126         (Resolve_Actuals): If the call was given in prefix notations, check
14127         whether an implicit 'Access reference or implicit dereference must be
14128         added to make the actual conform to the controlling formal.
14129
14130 2007-06-06  Robert Dewar  <dewar@adacore.com>
14131             Javier Miranda  <miranda@adacore.com>
14132
14133         * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
14134         (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
14135         overriding of an inherited private subprogram now there is no need to
14136         inherit its dispatching slot and reduce the size of the dispatch table.
14137         Set_All_DT_Position now ensures that the same slot is now assigned to
14138         both entities. This is required to statically build the dispatch table.
14139         (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
14140         of calling Set_All_DT_Position to re-evaluate the position of the
14141         entries in the dispatch table. Such reevaluation is not desired if
14142         the tagged type is already frozen.
14143
14144 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
14145             Gary Dismukes  <dismukes@adacore.com>
14146             Robert Dewar  <dewar@adacore.com>
14147             Javier Miranda  <miranda@adacore.com>
14148
14149         * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
14150         reference acts as an lvalue when the attribute name modifies the prefix
14151         (Is_Coextension_Root): New routine.
14152         (Mark_Static_Coextensions): New routine.
14153         (Type_Access_Level): Revise code for checking the level of the
14154         anonymous access type of a return object.
14155         (Safe_To_Capture_Value): Not safe to capture if Address_Taken
14156         (Matches_Prefixed_View_Profile): Remove the no longer necessary
14157         retrieval of the corresponding controlling record type.
14158         (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
14159         concurrent types declared within a generic as well as class wide types.
14160         Emit a mode incompatibility error whenever a protected entry or routine
14161         override an interface routine whose first parameter is not of mode
14162         "out", "in out" or access to variable.
14163         (Overrides_Synchronized_Primitive): Rename to
14164         Find_Overridden_Synchronized_Primitive.
14165         (Collect_Interface_Components): New subprogram that collects all the
14166         components of a tagged record containing tags of secondary dispatch
14167         tables.
14168         (Add_Global_Declaration): New procedure
14169         (Abstract_Interface_List): Handle properly the case of a subtype of a
14170         private extension.
14171         (Type_Access_Level): In the case of a type whose parent scope is a
14172         return statement, call Type_Access_Level recursively on the enclosing
14173         function's result type to determine the level of the return object's
14174         type.
14175         (Build_Elaboration_Entity): Build name of elaboration entity from the
14176         scope chain of the entity, rather than the unit name of the file name.
14177         (Check_Nested_Access): New procedure.
14178         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
14179         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
14180         (Get_Renamed_Entity): Utility routine for performing common operation
14181         of chasing the Renamed_Entity field of an entity.
14182
14183 2007-06-06  Robert Dewar  <dewar@adacore.com>
14184
14185         * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
14186         elaboration model
14187         (Check_A_Call): Add check for entry call which was causing blowup
14188
14189 2007-06-06  Olivier Hainque  <hainque@adacore.com>
14190
14191         * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
14192         special code on ia64-vms to handle major incompatibilities between the
14193         GCC unwinding ABI and the VMS Condition Handling Facility, both calling
14194         this routine with a very different set of arguments and expectations on
14195         the return value.
14196
14197 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14198
14199         * socket.c (__gnat_close_signalling_fd): New function.
14200         (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
14201         __gnat_safe_getservbyname, __gnat_safe_getservbyport):
14202         New supporting functions for task safe Netdb operations.
14203
14204 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14205             Olivier Hainque  <hainque@adacore.com>
14206
14207         * a-except-2005.ads, a-except-2005.adb
14208         (Raise_From_Controlled_Operation): New procedure in
14209         (private part of) Ada.Exceptions (standard runtime version). Used to
14210         provide informational exception message when Program_Error is raised as
14211         a result of an Adjust or Finalize operation propagating an exception.
14212         (Rmsg_28): Fix description for E.4(18) check.
14213         (Raise_Current_Excep): Call Debug_Raise_Exception just before
14214         propagation starts, to let debuggers know about the event in a reliable
14215         fashion.
14216         Take the address of E and dereference to make sure it is homed on stack
14217         and prevent the stores from being deleted, necessary for proper
14218         debugger behavior on "break exception" hits.
14219         (Local_Raise): Moved to System.Exceptions
14220
14221         * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
14222         exception message from the current occurrence and raise Program_Error
14223         has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
14224
14225 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
14226             Arnaud Charlet  <charlet@adacore.com>
14227
14228         * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
14229         lock, if needed.
14230
14231         * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
14232         priority associated to a lock.
14233
14234         * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
14235         assertion to take into account case of no abort restriction.
14236         (Initialize_Protection_Entries): Add initialization for the field
14237         New_Ceiling associated to the protected object.
14238         (Unlock_Entries): Change the ceiling priority of the underlying lock, if
14239         needed.
14240
14241         * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
14242         since this function needs to be set consistently with Update_Exception.
14243
14244         * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
14245         since this function needs to be set consistently with Update_Exception.
14246
14247         * s-taskin.ads: Update comments on
14248         Interrupt_Server_Blocked_On_Event_Flag.
14249         (Unbind_Handler): Fix handling of server_task wakeup
14250         (Server_Task): Set self's state so that Unbind_Handler can take
14251         appropriate actions.
14252         (Common_ATCB): Now use a constant from System.Parameters to determine
14253         the max size of the Task_Image field.
14254
14255         * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
14256         Initialize_Analyzer function.
14257         ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
14258         take into account case of no abort restriction.
14259         ([Vulnerable_]Complete_Master): Modify assertion.
14260
14261         * s-tataat.adb (Finalize): Use the nestable versions of
14262         Defer/Undefer_Abort.
14263
14264         * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
14265
14266         * s-tpobop.ads: Update comments.
14267
14268         * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
14269         of locking the object manually, to avoid inconsistencies between
14270         Lock/Unlock_Entry assertions.
14271
14272         * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
14273         terminating
14274         application and System.Parameters.No_Abort is True.
14275         Update comments on Interrupt_Server_Blocked_On_Event_Flag.
14276         (Unbind_Handler): Fix handling of server_task wakeup
14277         (Server_Task): Set self's state so that Unbind_Handler can take
14278         appropriate actions.
14279
14280 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14281
14282         * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
14283         declarations instead of an explicit null body, for conciseness.
14284
14285 2007-06-06  Robert Dewar  <dewar@adacore.com>
14286
14287         * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
14288         illegal aggregate and the type is still Any_Composite.
14289         (Subtypes_Statically_Match): Fix problem of empty discriminant list
14290
14291 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
14292
14293         * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
14294         to prevent subsequent expansion.
14295
14296 2007-06-06  Robert Dewar  <dewar@adacore.com>
14297
14298         * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
14299
14300 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
14301             Robert Dewar  <dewar@adacore.com>
14302
14303         * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
14304         exceptions.
14305         (Write_Itype): Handle case of string literal subtype, which
14306         comes up in this context.
14307         (Update_Itype): when debugging expanded code, update sloc of itypes
14308         associated with defining_identifiers and ranges, for gdb use.
14309         (Sprint_Node_Actual): Add static keyword to object or exception
14310         declaration output if Is_Statically_Allocated is True.
14311         (Sprint_End_Label): Set entity of end marker for a subprogram, package,
14312         or task body, so that the tree carries the proper Sloc information for
14313         debugging use.
14314         (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
14315
14316 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
14317
14318         * s-secsta.adb (Chunk): Ensure this object has a static size known at
14319         compile time, to avoid dynamic memory allocation
14320         (Elaboration code): Only use dynamic memory allocation when needed.
14321
14322 2007-06-06  Quentin Ochem  <ochem@adacore.com>
14323
14324         * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
14325         "Overflow_Guard".
14326         (Stack_Analyzer): Added field "Overflow_Guard"
14327         (Task_Result): Added field "Overflow_Guard".
14328         (Index_Str): New constant.
14329         (Task_Name_Str): New constant.
14330         (Actual_Size_Str): New constant.
14331         (Pattern_Array_Element_Size): New constant.
14332         (Get_Usage_Range): New subprogram.
14333         (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
14334         Now align the output.
14335         Added comments.
14336         (Initialize): Added value for Overflow_Guard.
14337         (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
14338         Update the value of the overflow guard according to the actual
14339         beginning of the pattern array.
14340         (Initialize_Analyzer): Added parameter Overflow_Guard.
14341         Take this parameter into accound when computing the max size.
14342         (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
14343         (Report_Result): Removed extra useless procedure.
14344         Updated call to Output_Result.
14345         Moved full computation of the Task_Result here.
14346
14347 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14348
14349         * g-soccon-darwin.ads, gen-soccon.c: Add new constant
14350         Thread_Blocking_IO, always True by default, set False on a per-runtime
14351         basis.
14352         Add Windows-specific constants
14353         Add new constant Need_Netdb_Buffer.
14354         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
14355         not, whether to use getXXXbyYYY_r.
14356
14357         * gsocket.h: Add new constant Need_Netdb_Buffer.
14358         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
14359         not, whether to use getXXXbyYYY_r.
14360
14361 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
14362
14363         * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
14364         than their first call.
14365         Add type Dummy_Communication_Block used in the generation of the pre-
14366         defined dispatching primitive _disp_asynchronous_select.
14367         (Storage_Element): Put Pragma Universal_Aliasing on it.
14368
14369 2007-06-06  Vincent Celier  <celier@adacore.com>
14370
14371         * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
14372         function.
14373
14374         * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
14375         letter if it is not followed by a '/' or a '\'.
14376         (Windows): New Boolean function
14377
14378         * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
14379         Ada 2005.
14380         (Containing_Directory): On Windows, keep at least one '/' or '\' after a
14381         drive letter.
14382         (Containing_Directory): Raise Use_Error when the directory is a root
14383         directory.
14384         (Extension): When returning the result, use a conversion to Result_Type,
14385         not a qualification.
14386
14387 2007-06-06  Robert Dewar  <dewar@adacore.com>
14388
14389         * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
14390         (Set_Style_Check_Options): Recognize new -gnatyg style switch
14391
14392         * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
14393         Warn_On_Non_Local_Exception to False, to turn off warnings for
14394         No_Exception_Propagation in ZFP runtime.
14395         (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
14396         back-ends.
14397         (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
14398
14399 2007-06-06  Vincent Celier  <celier@adacore.com>
14400
14401         * switch-b.adb (Scan_Binder_Switches): Add processing for new
14402         switches -R and -Z
14403
14404         * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
14405         (Scan_Make_Switches): Recognize new switch -aP
14406
14407 2007-06-06  Matthew Gingell  <gingell@adacore.com>
14408             Jose Ruiz  <ruiz@adacore.com>
14409
14410         * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
14411         VxWorks task descriptor in the Ada run time, call a C subprogram
14412         (__gnat_get_stack_info) that extracts the required information.
14413
14414         * sysdep.c: Back out temporary lynxos workaround.
14415         (__gnat_get_stack_info): Add this procedure that passes to the Ada run
14416         time the stack information associated to the currently executing task.
14417         Only VxWorks systems require this function.
14418
14419 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
14420
14421         * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
14422         add the stack bias if the offset is computed from a frame address.
14423         (__gnat_backtrace): Adjust for above change.
14424
14425 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14426
14427         * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
14428         PE_Non_Transportable_Actual.
14429         (By_Descriptor_Last): New constant.
14430         (By_Copy_Return): Likewise.
14431
14432 2007-06-06  Vincent Celier  <celier@adacore.com>
14433
14434         * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
14435         is.
14436
14437         * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
14438         /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
14439         /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
14440         Add missing comment for /OPTIMIZE=SPACE
14441         Add entry for OPTIMIZE=SPACE
14442         Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
14443         Add documentation for new qualifiers corresponding to -gnatw.c/.C
14444
14445 2007-06-06  Vincent Celier  <celier@adacore.com>
14446             Robert Dewar  <dewar@adacore.com>
14447
14448         * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
14449         -gnatw.C)
14450
14451         * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
14452         Document gnatbind switch -a
14453         (case Constructions): Document that variables declarations are allowed
14454         for previously declared variables.
14455         Fix external lib project example
14456         -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
14457         Indicate that "#if not X or Y then" is not allowed in input files to
14458         gnatprep.
14459         Document gnatw.x and gnatw.X warning flags
14460         Mention -Winline switch to activate warnings when back-end inlining is
14461         ineffective.
14462         Add gnatcheck rule descriptions
14463         Describe how to use the GNAT driver to call a tool on a closure.
14464         Describe how to run project-wide checks or metrics.
14465         Document gnatbind's -R option
14466         Updated to account for Ada 2005 support
14467
14468         * gnat_rm.texi (Case Construction): Allow variable declarations for
14469         previously declared variables.
14470         (Representation Clauses and Pragmas): Lift restriction on alignment
14471         clauses for record types.
14472         (Ada.Characters.*): Fix typo in reference to A.3.3(27).
14473         Document No_Exception_Propagation restriction
14474         Document No_Body pragma
14475         Updated to account for Ada 2005 support; corrected some typos
14476         (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
14477
14478         * gnat-style.texi: Make it clear that we never use mode IN for
14479         procedures or functions
14480
14481         * ug_words: Add entries for -gnatw.x and -gnatw.X
14482         Add entries for -gnatw.c/.C
14483
14484 2007-06-06  Pascal Obry  <obry@adacore.com>
14485             Vincent Celier  <celier@adacore.com>
14486
14487         * makegpr.adb (Add_Archive_Path): Use untouched object and library
14488         dirs and library name.
14489         (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
14490         comments.
14491         (Build_Library): Idem.
14492         (Compile_Individual_Sources): Idem.
14493         (Compile_Link_With_Gnatmake): Idem.
14494         (Compile_Sources): Idem.
14495         (Get_Imported_Directories): Idem.
14496         (Link_Executables): Idem. Same change for the executable dir.
14497         (Check_Compilation_Needed): C_Source_Path new variable containing
14498         the canonical form of Source_Path to check against the source names
14499         in the dependency file.
14500         (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
14501         verbose mode, display the name of the object directory we're changing
14502         to.
14503         (Saved_Switches): New name of table X_Switches
14504         (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
14505         (Usage): New line for switch -aP
14506         (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
14507         testing if a directory should be added to the search path.
14508
14509 2007-06-06  Javier Miranda  <miranda@adacore.com>
14510
14511         * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
14512         a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
14513         declaration after freezing point of all its associated tagged types;
14514         otherwise such types are frozen too early.
14515
14516 2007-06-06  Robert Dewar  <dewar@adacore.com>
14517
14518         * a-reatim.adb: Documentation addition
14519
14520         * g-cgideb.adb: Minor code reorganization
14521
14522         * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
14523         mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
14524         s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
14525
14526         * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
14527         function.  Change name New_Scope to Push_Scope
14528         (Get_Debug_Flag_K): Remove unused obsolete function.
14529
14530         * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
14531         Push_Scope.
14532
14533         * makeusg.adb: Update Copyright notice
14534         Add line for switch -aP
14535
14536         * makeusg.adb: Fix wording of some usage messages
14537
14538         * s-assert.adb (Raise_Assert_Failure): Add call to
14539         Debug_Raise_Assert_Failure.
14540
14541         * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
14542         (2, Standard'Alignment) for compatibility with AAMP (where alignment
14543         is restricted to 1).
14544
14545         * s-wchjis.adb: Remove use of System.Pure_Exceptions
14546
14547         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
14548         node location to No_Location when we're not debugging the expanded
14549         code.
14550
14551 2007-05-22  Alexandre Oliva  <aoliva@redhat.com>
14552
14553         * misc.c (enumerate_modes): Consider log2_b to always be one.
14554
14555 2007-05-14  Rafael Ávila de Espíndola  <espindola@google.com>
14556
14557         * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
14558
14559 2007-05-02  Pascal Obry  <obry@adacore.com>
14560
14561         * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
14562         to use Stream_IO.File_Type. This is needed to make use of the UTF-8
14563         encoding support of Stream_IO.
14564         (Write_Unit): Idem.
14565
14566         * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
14567         filename and corresponding encoding to match the OS requirement.
14568         (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
14569         routine will fail on specific devices like CON: AUX: ...
14570
14571         PR ada/29856: Add missing braces
14572
14573 2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14574
14575         PR ada/31660
14576         * ada-tree.h (lang_tree_node): Fix typo in chain_next.
14577
14578 2007-04-21  Jan Hubicka  <jh@suse.cz>
14579
14580         * misc.c (gnat_expand_body): Don't call target for destructors,
14581         avoid redundant check on syntax errors.
14582
14583 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14584
14585         * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
14586         instead of checking GIMPLE_STMT_P in chain_next.
14587
14588 2007-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
14589
14590         PR ada/31576
14591         * system-linux-alpha.ads: Disable constant condition warning for the
14592         Default_Bit_Order variable.
14593         * system-linux-s390.ads: Likewise.
14594         * system-linux-s390x.ads: Likewise.
14595         * system-linux-sparc.ads: Likewise.
14596
14597 2007-04-06  Javier Miranda  <miranda@adacore.com>
14598             Matt Heaney  <heaney@adacore.com>
14599             Robert Dewar  <dewar@adacore.com>
14600
14601         a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
14602         a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
14603         a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
14604         a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
14605         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
14606         a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
14607         a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
14608         a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
14609         a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
14610         a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
14611         a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
14612         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
14613         a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
14614         a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
14615         a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
14616         a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
14617         a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
14618         i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
14619         unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
14620         a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
14621         a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
14622         a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
14623         expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
14624         s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
14625         s-taprop-tru64.adb, s-taprop-irix.adb,
14626         s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
14627         s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
14628         s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
14629         s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
14630         s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
14631         a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
14632         a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
14633         g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
14634         s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
14635         s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
14636         s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
14637         s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
14638         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
14639         s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
14640         a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
14641         a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
14642         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
14643         a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
14644         a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
14645         a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
14646         access types.
14647         Update documentation.
14648         Minor rewording.
14649
14650 2007-04-06  Robert Dewar  <dewar@adacore.com>
14651
14652         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
14653         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
14654         system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
14655         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
14656         system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
14657         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
14658         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
14659         system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
14660         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
14661         system-hpux-ia64.ads, targparm.adb,
14662         targparm.ads (Functions_Return_By_DSP_On_Target): Removed
14663
14664         * system.ads: Move Functions_Return_By_DSP to obsolete section,
14665         kept for bootstrap purposes only.
14666
14667 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
14668
14669         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
14670         s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
14671         s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
14672         (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
14673
14674 2007-04-06  Robert Dewar  <dewar@adacore.com>
14675
14676         * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
14677         (Local_Raise): New dummy procedure called when a raise is converted
14678         to a local goto. Used for debugger to detect that the exception
14679         is raised.
14680
14681         * debug.adb: Document new d.g flag (expand local raise statements to
14682         gotos even if pragma Restriction (No_Exception_Propagation) is not set)
14683
14684         * exp_sel.adb: Use Make_Implicit_Exception_Handler
14685
14686         * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
14687         suppress warnings for unused handlers.
14688         (Warn_If_No_Propagation):  Use new flag -gnatw.x to suppress
14689         warnings for raise statements not handled locally.
14690         (Get_RT_Exception_Entity): New function
14691         (Get_Local_Call_Entity): New function
14692         (Find_Local_Handler): New function
14693         (Warn_If_No_Propagation): New procedure
14694         (Expand_At_End_Handler): Call Make_Implicit_Handler
14695         (Expand_Exception_Handlers): Major additions to deal with local handlers
14696         (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
14697         Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
14698         for local raise
14699
14700         * exp_ch11.ads (Get_RT_Exception_Entity): New function
14701         (Get_Local_Call_Entity): New function
14702
14703         * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
14704         of restrictions that the binder will never suggest adding.
14705
14706         * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
14707         to No_Elist.
14708
14709         * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
14710         be with'ed in the presence of pragma Restriction
14711         (No_Exception_Propagation).
14712
14713         * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
14714
14715         * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
14716         parameter, then the handler is not a suitable target for a local raise,
14717         and this is a violation of restriction No_Exception_Propagation.
14718         (Analyze_Handled_Statements): Analyze choice parameters in exception
14719         handlers before analyzing statement sequence (needed for proper
14720         detection of local raise statements).
14721         (Analyze_Raise_Statement): Reraise statement is a violation of the
14722         No_Exception_Propagation restriction.
14723
14724         * s-rident.ads: Add new restriction No_Exception_Propagation
14725
14726         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
14727         function, like Make_Exception_Handler but sets Local_Raise_Statements
14728         to No_List.
14729         (Add_Unique_Serial_Number): Deal with case where this is called during
14730         processing of configuration pragmas.
14731
14732 2007-04-06  Thomas Quinot  <quinot@adacore.com>
14733             Pat Rogers  <rogers@adacore.com>
14734             Pascal Obry  <obry@adacore.com>
14735
14736         * g-stsifd-sockets.adb: New file.
14737
14738         * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
14739         g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
14740         g-socthi-vms.adb: Move signalling
14741         fd management to a nested package, so that they can conveniently be
14742         moved to a subunit that is shared across Windows, VMS, and VxWorks
14743         (Ada implementation) or completed with imported bodies from socket.c
14744         (UNIX case).
14745         (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
14746         subprograms.
14747         (Check_Selector): Use Read_Signalling_Fd to read and discard data from
14748         the signalling file descriptor.
14749         (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
14750         signalling file descriptor.
14751         (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
14752         instead of creating a pair of sockets for signalling here.
14753
14754         * g-socthi.adb: Ditto.
14755         Set the runtime process to ignore SIGPIPEs on platforms that support
14756         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
14757
14758         * g-socthi-mingw.adb: Ditto.
14759         (WS_Version): Use Windows 2.2.
14760         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
14761
14762         * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
14763         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
14764
14765         * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
14766         added GNAT byte swapping facility
14767         Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
14768
14769         * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
14770
14771         * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
14772         New subprograms.
14773         (__gnat_create_signalling_fds): New subprogram.
14774         Set the runtime process to ignore SIGPIPEs on platforms that support
14775         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
14776
14777 2007-04-06  Hristian Kirtchev  <kirtchev@adacore.com>
14778             Vincent Celier  <celier@adacore.com>
14779
14780         * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
14781         New version of Ada.Calendar which supports the new upper bound of Ada
14782         time (2399-12-31 86_399.999999999).
14783         The following modifications have been made to the package:
14784          - New representation of time as count of nanoseconds since the start of
14785            Ada time (1901-1-1 0.0).
14786          - Target independent Split and Time_Of routines which service both
14787            Ada 95 and Ada 2005 code.
14788          - Target independent interface to the Ada 2005 children of Calendar.
14789          - Integrated leap seconds into Ada 95 and Ada 2005 mode.
14790          - Handling of non-leap centenial years.
14791          - Updated clock function.
14792          - Updated arithmetic and comparison operators.
14793
14794         * a-caldel.adb (To_Duration): Add call to target independent routine in
14795         Ada.Calendar to handle the conversion of time to duration.
14796
14797         * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
14798         (UTC Offset).
14799         If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
14800         set off to 0.
14801         (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
14802         targets do not have a natural time zone, GMT is used as a default.
14803         (__gnat_get_task_options): New.
14804
14805         * a-direct.adb (Modification_Time): Add with and use clauses for
14806         Ada.Calendar and Ada.
14807         Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
14808         since it is no longer needed.
14809         (Duration_To_Time): Removed.
14810         (OS_Time_To_Long_Integer): Removed.
14811         (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
14812         Formatting Time_Of routines which automatically handle time zones,
14813         buffer periods and leap seconds.
14814
14815         * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
14816         target independent routines in Ada.Calendar.
14817
14818         * a-calfor.ads, a-calfor.adb:
14819         Code cleanup and addition of validity checks in various routines.
14820         (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
14821         Ada.Calendar.
14822
14823         * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
14824         independent routine in Ada.Calendar.
14825
14826 2007-04-06  Olivier Hainque  <hainque@adacore.com>
14827
14828         * adaint.c:
14829         (convert_addresses): Adjust prototype and dummy definition to expect an
14830          extra file_name argument.
14831
14832         * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
14833         filling the now expected file_name argument with the appropriate
14834         argv[0] expansion.
14835         (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
14836         (tracebk): Array of void * instead of char *, corresponding to what
14837          convert_addresses expects.
14838         (exename): New static global, to hold the executable file name to be
14839         used in all convert_addresses invocations.
14840         (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
14841         change.
14842         (__gnat_gmem_a2l_initialize): Resolve exename.
14843         (__gnat_convert_addresses): Use exename as the convert_addresses
14844         file_name argument.
14845
14846         * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
14847         "convert_addresses", now expecting a filename argument. Import the
14848         necessary entities to compute the filename to use and pass it to
14849         convert_addresses.
14850
14851 2007-04-06  Matt Gingell  <gingell@adacore.com>
14852
14853         * system-aix.ads: Back out previous change.
14854         (Functions_Return_By_DSP): Removed
14855
14856 2007-04-06  Pascal Obry  <obry@adacore.com>
14857
14858         * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
14859         or the monotonic used by Ada.Real_Time) to compute the sleep duration
14860         on Windows.
14861
14862 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
14863
14864         * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
14865         function. Its value changes in different VxWorks versions, and it is
14866         now handled by the function __gnat_get_task_options.
14867
14868         * s-taprop-vxworks.adb (Create_Task): Call the function
14869         __gnat_get_task_options to get the required options for creating a task.
14870
14871 2007-04-06  Pascal Obry  <obry@adacore.com>
14872             Thomas Quinot  <quinot@adacore.com>
14873
14874         * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
14875         dealing with filename.
14876         (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
14877         filename from a standard string to a wide-string depending on the
14878         encoding value.
14879         (__gnat_freopen): Idem.
14880         (__gnat_current_time): New function (wrapper for time(3) standard C
14881         function).
14882
14883         * g-os_lib.ads (Current_Time): New function. Returns the current
14884         system time as an OS_Time value.
14885
14886         * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
14887         (Monotonic_Clock): Same.
14888
14889 2007-04-06  Quentin Ochem  <ochem@adacore.com>
14890
14891         * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
14892         not on a natural.
14893         (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
14894
14895 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
14896
14897         * a-retide.adb: Add elaboration code to ensure that the tasking run
14898         time is initialized when using delay operations even when no task is
14899         created.
14900
14901 2007-04-06  Javier Miranda  <miranda@adacore.com>
14902
14903         * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
14904         component Num_Prim_Ops.
14905         (Set_Num_Prim_Ops): Removed.
14906         Remove all the assertions because all the routines of this
14907         package are inline always.
14908         (Get_Offset_Index): Add support to primary dispatch tables.
14909         Move the documentation about the dispatch table to a-tags.ads
14910         (Set_External_Tag): Removed
14911         (Inherit_TSD): Removed.
14912         (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
14913         moved to a-tags.ads
14914         (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
14915         Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
14916         of the TSD field "Table" because this field has been renamed to
14917         "Ifaces_Table".
14918         (Inherit_CPP_DT): Removed.
14919         (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
14920         Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
14921         declarations have been moved to a-tags.ads
14922         (Check_Size): Removed.
14923         (Expanded_Name): Updated to get access to the new field of TSD
14924         containing the address of the expanded name.
14925         (Get_Access_Level/Set_Access_Level): Removed.
14926         (Get_Predefined_Prim_Op_Address): Removed.
14927         (Set_Predefined_Prim_Op_Address): Removed.
14928         (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
14929         (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
14930         (Set_Expanded_Name): Removed.
14931         (Inherit_DT): Removed.
14932         (Inherit_CPP_DT): Removed.
14933         (Set_RC_Offset): Removed.
14934         (Set_TSD): Removed.
14935         (Base_Address): New function that displaces "this" to point to the base
14936         of the object (that is, to point to the primary tag of the object).
14937
14938 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14939             Javier Miranda  <miranda@adacore.com>
14940
14941         * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
14942         anonymous access component, do not create a master_id if type already
14943         has one, as may happen if the type is a subcomponent of a packed array
14944         type.
14945         (Build_Init_Procedure, Component_Needs_Simple_Initialization,
14946         Initialize_Tag): Remove code associated with the old CPP pragmas.
14947         CPP_Virtual and CPP_Vtable are no longer supported.
14948         (Build_Offset_To_Top_Internal): Add support for concurrent record types
14949         (Build_Offset_To_Top_Functions): Add support for concurrent record types
14950         (Freeze_Record_Type): Remove call to
14951         Init_Predefined_Interface_Primitives.
14952         (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
14953         code required to initialize the tags of the secondary dispatch tables.
14954         This leaves the algoritm more clear.
14955         (Init_Secondary_Tags): Add support for concurrent record types
14956         (Make_Predefined_Primitive_Specs): Code cleanup.
14957         (Predefined_Primitive_Bodies): Code cleanup.
14958         (Build_Master_Renaming): New local subprogram.
14959         (Expand_N_Full_Type_Declaration): Build the master_id associated with
14960         anonymous access to task type components.
14961         (Expand_N_Subtype_Indication): The bounds of a range constraint in a
14962         subtype indication are resolved during analysis, and must not be done
14963         here.
14964         (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
14965
14966 2007-04-06  Geert Bosch  <bosch@adacore.com>
14967             Ed Schonberg  <schonberg@adacore.com>
14968             Javier Miranda  <miranda@adacore.com>
14969             Bob Duff  <duff@adacore.com>
14970
14971         * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
14972         for conversion of a Float_Type'Truncation to integer.
14973
14974         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
14975         check if a node is an attribute that can be handled directly by the
14976         back end.
14977         (Expand_N_Attribute_Reference): Suppress expansion of floating-point
14978         attributes that can be handled directly by the back end.
14979         (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
14980         use new predicate Is_Access_Protected_Subprogram_Type.
14981         (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
14982         and Unchecked_Union if it is generated as part of the default  Output
14983         procedure for a type with default discriminants.
14984         (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
14985         if we are compiling under restriction No_Dispatching_Calls.
14986         (Constrained): Use Underlying_Type, in case the type is private without
14987         discriminants, but the full type has discriminants.
14988         (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
14989         call to Build_Get_Access_Level.
14990         (Expand_N_Attribute_Reference): The use of 'Address with class-wide
14991         interface objects requires a call to the run-time subprogram that
14992         returns the base address of the object.
14993         (Valid_Conversion): Improve error message on illegal attempt to store
14994         an anonymous access to subprogram value into a record component.
14995
14996         * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
14997         null".
14998         (Simplify_Type_Conversion): New procedure that performs simplification
14999         of Int_Type (Float_Type'Truncation (X)).
15000         (Resolve_Type_Conversion): Call above procedure after resolving operand
15001         and before performing checks. This replaces the existing ineffective
15002         code in Exp_Ch4.
15003         (Set_String_Literal_Subtype): When creating the internal static lower
15004         bound subtype for a string literal, use a newly created copy of the
15005         subtree representing the lower bound.
15006         (Resolve_Call): Exclude build-in-place function calls from transient
15007         scope treatment. Update comments to describe this exception.
15008         (Resolve_Equality_Op): In case of dispatching call check violation of
15009         restriction No_Dispatching_Calls.
15010         (Resolve_Call): If the call returns an array, the context imposes the
15011         component type of the array, and the function has one non-defaulted
15012         parameter, rewrite the call as the indexing of a call with a single
15013         parameter, to handle an Ada 2005 syntactic ambiguity for calls written
15014         in prefix form.
15015         (Resolve_Actuals): If an actual is an allocator for an access parameter,
15016         the master of the created object is the innermost enclosing statement.
15017         (Remove_Conversions): For a binary operator, check if type of second
15018         formal is numeric, to check if an abstract interpretation is present
15019         in the case of exponentiation as well.
15020
15021 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15022             Bob Duff  <duff@adacore.com>
15023
15024         * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
15025         copying a parameter list in a call, set properly the First_Named_Formal
15026         and Next_Named_Formal fields in the new list and in the enclosing call.
15027         (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
15028         names, to ease typing in the debugger. Improve comments.
15029         (Watch_Node): New variable, intended to be set in the debugger.
15030         (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
15031         called when the watched node is created.
15032         (New_Node_Debugging_Output): Combined version of local procedures
15033         New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
15034         with a parameter so that conditional breakpoints like "if Node = 12345"
15035         work.
15036         (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
15037         Add Elist1 function
15038
15039 2007-04-06  Thomas Quinot  <quinot@adacore.com>
15040             Ed Schonberg  <schonberg@adacore.com>
15041             Gary Dismukes  <dismukes@adacore.com>
15042
15043         * checks.ads, checks.adb (Selected_Range_Checks): No range check is
15044         required for a conversion between two access-to-unconstrained-array
15045         types.
15046         (Expr_Known_Valid): Validity checks do not apply to discriminants, but
15047         to discriminant constraints on discriminant objects. This rule must
15048         apply as well to discriminants of protected types in private components.
15049         (Null_Exclusion_Static_Checks): If No_Initialization is set on an
15050         object of a null-excluding access type then don't require the
15051         the object declaration to have an expression and don't emit a
15052         run-time check.
15053
15054 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
15055             Eric Botcazou  <botcazou@adacore.com>
15056
15057         * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
15058         and made constant.
15059
15060         * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
15061         Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
15062         carry any.
15063
15064         * fe.h (Compiler_Abort): Add third parameter.
15065
15066         * misc.c (internal_error_function): Build third argument from current
15067         input location and pass it to Compiler_Abort.
15068
15069 2007-04-06  Gary Dismukes  <dismukes@adacore.com>
15070
15071         * cstand.adb (Create_Standard): When the target's storage unit size is
15072         greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
15073         Standard_String.
15074
15075 2007-04-06  Nicolas Roche  <roche@adacore.com>
15076
15077         * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
15078         absolute path can have the following form: device:/a/b. In this case
15079         '/' should be inserted between the path and the filename.
15080
15081 2007-04-06  Olivier Hainque  <hainque@adacore.com>
15082             Eric Botcazou  <botcazou@adacore.com>
15083
15084         * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
15085         VAR_DECL to a CONST_DECL we make for a public constant when we know the
15086         corresponding definition has created the so made visible variable.
15087         Handle anonymous access to protected subprogram.
15088         (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
15089         object with an address clause volatile.  Re-enable original fix.
15090         <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
15091         too.
15092         (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
15093         associated with either the Equivalent or Root type, instead of the
15094         naked type node.
15095         (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
15096         subtree for every field of a global record type.
15097         (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
15098         discriminants, invoke again variable_size on its newly computed sizes.
15099
15100 2007-04-06  Robert Dewar  <dewar@adacore.com>
15101             Thomas Quinot  <quinot@adacore.com>
15102             Ed Schonberg  <schonberg@adacore.com>
15103             Bob Duff  <duff@adacore.com>
15104
15105         * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
15106         (Next_Component_Or_Discriminant): New function and procedure
15107         (First_Index, First_Literal, Master_Id,
15108         Set_First_Index, Set_First_Literal, Set_Master_Id):
15109         Add missing Ekind assertions.
15110         (Is_Access_Protected_Subprogram_Type): New predicate.
15111         (Has_RACW): New entity flag, set on package entities to indicate that
15112         the package contains the declaration of a remote accecss-to-classwide
15113         type.
15114         (E_Return_Statement): This node type has the Finalization_Chain_Entity
15115         attribute, in case the result type has controlled parts.
15116         (Requires_Overriding): Add this new flag, because "requires
15117         overriding" is subtly different from "is abstract" (see AI-228).
15118         (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
15119         Is_Abstract_Type. Make sure these are called only when appropriate.
15120         (Has_Pragma_Unreferenced_Objects): New flag
15121
15122         * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
15123         class-wide, the tag of the right-hand side must be an exact match, not
15124         an ancestor of that of the object on left-hand side.
15125         (Move_Activation_Chain): New procedure to create the call to
15126         System.Tasking.Stages.Move_Activation_Chain.
15127         (Expand_N_Extended_Return_Statement): Generate code to call
15128         System.Finalization_Implementation.Move_Final_List at the end of a
15129         return statement if the function's result type has controlled parts.
15130         Move asserts to Build_In_Place_Formal.
15131         (Move_Final_List): New function to create the call statement.
15132         (Expand_N_Assignment_Statement): In case of assignment to a class-wide
15133         tagged type, replace generation of call to the run-time subprogram
15134         CW_Membership by call to Build_CW_Membership.
15135         (Expand_N_Return_Statement): Replace generation of call to the run-time
15136         subprogram Get_Access_Level by call to Build_Get_Access_Level.
15137         (Expand_N_Simple_Function_Return): Replace generation of call to the
15138         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
15139
15140         * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
15141         Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
15142         access to protected operations.
15143         (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
15144         master and chain actual parameters to a build-in-place function call
15145         involving tasks.
15146         (BIP_Formal_Suffix): Add new enumeration literals to complete the case
15147         statement.
15148         (Make_Build_In_Place_Call_In_Allocator,
15149         Make_Build_In_Place_Call_In_Anonymous_Context,
15150         Make_Build_In_Place_Call_In_Assignment,
15151         Make_Build_In_Place_Call_In_Object_Declaration): Call
15152         Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
15153         (Expand_Inlined_Call): If the subprogram is a null procedure, or a
15154         stubbed procedure with a null body, replace the call with a null
15155         statement without using the full inlining machinery, for efficiency
15156         and to avoid invalid values in source file table entries.
15157
15158         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
15159         renamings of calls to build-in-place functions.
15160
15161         * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
15162         provides the functionality of RTE_Available to record components.
15163         (RTU_Entity): The function Entity has been renamed to RTU_Entity
15164         to avoid undesired overloading.
15165         (Entity): New subprogram that returns the entity for the referened
15166         unit. If this unit has not been loaded, it returns Empty.
15167         (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
15168         Remove no longer used entities.
15169         (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
15170         (RE_Type_Specific_Data): New entity.
15171         (RE_Move_Any_Value): New entity.
15172         (RE_TA_A, RE_Get_Any_Type): New entities.
15173         (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
15174          RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
15175          RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
15176         (Entity): New subprogram that returns the entity for the referened
15177         unit. If this unit has not been loaded, it returns Empty.
15178         (RTE): Addition of a new formal that extends the search to the scopes
15179         of the record types found in the chain of the package.
15180
15181         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
15182         "abstract subprograms must be visible" message, whether or not the type
15183         is an interface; that is, remove the special case for interface types.
15184         (Analyze_Function_Return): Remove error message "return of task objects
15185         is not yet implemented" because this is now implemented.
15186         (Create_Extra_Formals): Add the extra master and activation chain
15187         formals in case the result type has tasks.
15188         Remove error message "return of limited controlled objects is not yet
15189         implemented".
15190         (Create_Extra_Formals): Add the extra caller's finalization list formal
15191         in case the result type has controlled parts.
15192         (Process_Formals): In case of access formal types there is no need
15193         to continue with the analysis of the formals if we already notified
15194         errors.
15195         (Check_Overriding_Indicator): Add code to check overriding of predefined
15196         operators.
15197         (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
15198         flags for formals that do not require them,.
15199         (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
15200         hidden entity is use visible or directly visible.
15201         (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
15202         Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
15203         Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
15204         New_Overloaded_Entity): Split Is_Abstract flag into
15205         Is_Abstract_Subprogram and Is_Abstract_Type.
15206
15207         * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
15208         a return statement's finalization list to the caller's list, used for
15209         build-in-place functions with result type with controlled parts.
15210         Remove no longer used entities.
15211
15212         * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
15213         longer needed, because the full type is now limited, and therefore a
15214         pass-by-reference type.
15215         (Foreign_Task_Level): New constant.
15216
15217         * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
15218         move tasks from the activation chain belonging to a return statement to
15219         the one passed in by the caller, and update the master to the one
15220         passed in by the caller.
15221         (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
15222         of unactivated tasks, so we don't kill the ones that are being returned
15223         by a build-in-place function.
15224         (Create_Task): Ignore AI-280 for foreign threads.
15225
15226 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15227             Robert Dewar  <dewar@adacore.com>
15228             Bob Duff  <duff@adacore.com>
15229             Gary Dismukes  <dismukes@adacore.com>
15230
15231         * errout.adb (Unwind_Internal_Type): Use predicate
15232         Is_Access__Protected_Subprogram_Type.
15233
15234         * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
15235         (Freeze_Entity, packed array case): Do not override explicitly set
15236         alignment and size clauses.
15237         (Freeze_Entity):  An entity declared in an outer scope can be frozen if
15238         the enclosing subprogram is a child unit body that acts as a spec.
15239         (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
15240         (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
15241         Remove all code for DSP option
15242
15243         * layout.adb (Layout_Record_Type): Use First/
15244         Next_Component_Or_Discriminant
15245         (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
15246         to handle properly the anonymous access case.
15247
15248         * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
15249         for all access attributes, because overload resolution should work the
15250         same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
15251         causes the error message for the ambiguous "X'Access = Y'Access" and
15252         "X'Unrestricted_Access = Y'Access" and so forth to match.
15253         (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
15254         now that anonymous access to protected operations have their own kind.
15255         (Resolve_Attribute): In case of dispatching call check the violation of
15256         restriction No_Dispatching_Calls.
15257         (Check_Array_Type): Check new -gnatyA array index style option
15258
15259         * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
15260         attempt to derive from a synchronized tagged type.
15261         (Analyze_Type_Declaration): If there is a incomplete tagged view of the
15262         type, inherit the class-wide type already created, because it may
15263         already have been used in a self-referential anonymous access component.
15264         (Mentions_T): Recognize self-referential anonymous access components
15265         that use (a subtype of) the class-wide type of the enclosing type.
15266         (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
15267         Derived_Type for Prev formal on call to
15268         Check_Anonymous_Access_Components rather than Empty.
15269         (Make_Incomplete_Type_Declaration): Add test for case where the type has
15270         a record extension in deciding whether to create a class-wide type,
15271         rather than just checking Tagged_Present.
15272         (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
15273         to stand-alone object declarations as well as component declarations.
15274         (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
15275         prevent accidental overwriting when enclosing package appears in
15276         a limited_with_clause.
15277         (Array_Type_Declaration): If the component type is an anonymous access,
15278         the associated_node for the itype is the type declaration itself.
15279         (Add_Interface_Tag_Components): Modified to support concurrent
15280         types with abstract interfaces.
15281         (Check_Abstract_Interfaces): New subprogram that verifies the ARM
15282         rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
15283         (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
15284         to complete the decoration of synchronized interface types. Add also
15285         a call to Check_Abstract_Interfaces to verify the ARM rules.
15286         (Derive_Interface_Subprograms): Modified to support concurrent types
15287         with abstract interfaces.
15288         (Analyze_Subtype_Indication): Resolve the range with the given subtype
15289         mark, rather than delaying the full resolution depending on context.
15290         (Analyze_Component_Declaration,Analyze_Interface_Declaration,
15291         Analyze_Object_Declaration,Analyze_Subtype_Declaration,
15292         Array_Type_Declaration,Build_Derived_Record_Type,
15293         Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
15294         Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
15295         Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
15296         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
15297         called only when appropriate.
15298         (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
15299         to private type.
15300         (Analyze_Subtype_Declaration): For an access subtype declaration, create
15301         an itype reference for the anonymous designated subtype, to prevent
15302         scope anonmalies in gigi.
15303         (Build_Itype_Reference): New utility, to simplify construction of such
15304         references.
15305
15306 2007-04-06  Vincent Celier  <celier@adacore.com>
15307
15308         * errutil.adb (Initialize): Initialize warnings table, if all warnings
15309         are suppressed, supply an initial dummy entry covering all possible
15310         source locations.
15311
15312         * make.adb (Scan_Make_Arg): Reject options that should start with "--"
15313         and start with only one, such as "-RTS=none".
15314         (Collect_Arguments): Do not check for sources outside of projects.
15315         Do not collect arguments if project is externally built.
15316         (Compile_Sources): Do nothing, not even check if the source is up to
15317         date, if its project is externally built.
15318         (Compile): When compiling a predefined source, add -gnatpg
15319         as the second switch, after -c.
15320         (Compile_Sources): Allow compilation of Annex J renames without -a
15321         (Is_In_Object_Directory): Check if the ALI file is in the object
15322         even if there is no project extension.
15323         (Create_Binder_Mapping_File): Only put a unit in the mapping file for
15324         gnatbind if the ALI file effectively exists.
15325         (Initialize): Add the directory where gnatmake is invoked in front of
15326         the path if it is invoked from a bin directory, even without directory
15327         information, so that the correct GNAT tools will be used when spawned
15328         without directory information.
15329
15330         * makeusg.adb: Change switch -S to -eS
15331         Add lines for new switches -we, -wn and -ws
15332         Add line for new switch -p
15333
15334         * prj-proc.adb (Process): Set Success to False when Warning_Mode is
15335         Treat_As_Error and there are warnings.
15336
15337         * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
15338         -gnatww Change gnatmake switch -S to -eS
15339         (Scan_Make_Switches): Code reorganisation. Process separately multi
15340         character switches and single character switches.
15341         (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
15342         False when switch is not recognized by gnatmake.
15343         (Scan_Make_Switches): Set Setup_Projects True when -p or
15344         --create-missing-dirs is specified.
15345
15346         * fname.adb (Is_Predefined_File_Name): Return True for annex J
15347         renamings Calendar, Machine_Code, Unchecked_Conversion and
15348         Unchecked_Deallocation only when Renamings_Included is True.
15349
15350         * par.adb: Allow library units Calendar, Machine_Code,
15351         Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
15352         when -gnatg is not specified.
15353         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
15354         there is no need to generate always a record_definition_node in case
15355         of synchronized interface types.
15356         (SIS_Entry_Active): Initialize global variable to False
15357         (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
15358         indicate cases where AI-447 says "not null" is legal.
15359
15360         * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
15361
15362         * makegpr.adb (Check_Compilation_Needed): Take into account dependency
15363         files with with several lines starting with the object fileb name.
15364         (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
15365         is specified.
15366         (Initialize): Add the directory where gprmake is invoked in front of the
15367         path, if it is invoked from a bin directory or with directory
15368         information, so that the correct GNAT tools will be used when invoked
15369         directly.
15370         (Check_Compilation_Needed): Process correctly backslashes on Windows.
15371
15372         * vms_data.ads: Update switches/qualifiers
15373
15374 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15375             Thomas Quinot  <quinot@adacore.com>
15376
15377         * exp_aggr.adb:
15378         If the array component is a discriminated record, the array aggregate
15379         is non-static even if the component is given by an aggregate with
15380         static components.
15381         (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
15382         (Convert_Aggr_In_Allocator): If the allocator is for an access
15383         discriminant and the type is controlled. do not place on a finalization
15384         list at this point. The proper list will be determined from the
15385         enclosing object.
15386         (Build_Record_Aggr_Code): If aggregate has box-initialized components,
15387         initialize record controller if needed, before the components, to ensure
15388         that they are properly finalized.
15389         (Build_Record_Aggr_Code): For the case of an array component that has a
15390         corresponding array aggregate in the record aggregate, perform sliding
15391         if required.
15392
15393 2007-04-06  Javier Miranda  <miranda@adacore.com>
15394             Gary Dismukes  <dismukes@adacore.com>
15395             Ed Schonberg  <schonberg@adacore.com>
15396
15397         * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
15398         run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
15399
15400         * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
15401         accessibility on class-wide allocators if the allocator occurs at the
15402         same scope level as the allocator's type. The check is guaranteed to
15403         succeed in that case, even when the expression originates from a
15404         parameter of the containing subprogram.
15405         (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
15406         under No_Dispatching_Calls restriction. During the semantic analysis
15407         we already notified such violation.
15408         (Tagged_Membership): Constant folding. There is no need to check
15409         the tag at run-time if the type of the right operand is non
15410         class-wide abstract.
15411         Replace call to Is_Ancestor by call to Is_Parent
15412         to support concurrent types with interface types.
15413         (Expand_N_Allocator): Add an assertion associated with the generation
15414         of the master_id.
15415         (Expand_N_Slice): Do not enable range check to nodes associated
15416         with the frontend expansion of the dispatch table.
15417         (Is_Local_Access_Discriminant): Subsidiary function to
15418         Expand_N_Allocator.
15419         (Tagged_Membership): Replace generation of call to the run-time
15420         subprogram CW_Membership by call to Build_CW_Membership.
15421         (Expand_Allocator_Expression): Replace generation of call to the
15422         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
15423
15424         * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
15425         initialize most the TSD components by means of an aggregate.
15426         Modify the declaration of the object containing the TSD
15427         because we now expand code that has a higher level of abstraction.
15428         The TSD has a discriminant containing the Inheritance Depth Level,
15429         value that is used in the membership test but also to fix the size
15430         of the table of ancestors.
15431         (Expand_Interface_Conversion): Insert function body at the closest place
15432         to the conversion expression, to prevent access-before-elaboration
15433         errors in the backend.
15434         Code improved to reduce the size of the dispatch table if
15435         compiling under restriction No_Dispatching_Calls plus code cleanup.
15436         Code reorganization plus removal of calls to Set_Num_Prim_Ops
15437         (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
15438         (Expand_Dispatching_Call): Minor code reorganization plus addition of
15439         code to return immediately if compiling under No_Dispatching_Calls
15440         restriction.
15441         (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
15442         CPP_Virtual and CPP_Vtable are no longer supported.
15443         (Expand_Interface_Conversion): Add missing support for interface type
15444         derivations.
15445         (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
15446         Is_Parent to support concurrent types with interfaces.
15447         (Init_Predefined_Interface_Primitives): Removed.
15448         (Make_Secondary_DT): Modified to support concurrent record types.
15449         (Set_All_DT_Position): Modified to support concurrent record types.
15450         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
15451         with Get_External_Tag, Inherit_TSD, Set_External_Tag.
15452         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
15453         with CW_Membership.
15454         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
15455         with Get_Access_Level, Get_Predefined_Prim_Op_Address,
15456         Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
15457         Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
15458         Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
15459         (Expand_Dispatching_Call): Replace generation of call to the run-time
15460         subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
15461         calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
15462         Address.
15463         (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
15464         the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
15465         Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
15466         Build_Set_Prim_Op_Address.
15467         (Get_Remotely_Callable): Subprogram removed.
15468         (Init_Predefined_Interface_Primitives): Replace generation of call to
15469         the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
15470         Prims.
15471
15472         * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
15473         First (Parameter_Associations ()) with the call to First_Actual that
15474         returns an actual parameter expression for both named and positional
15475         associations.
15476
15477         * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
15478         check violation of restriction No_Dispatching_Calls.
15479         (Check_Controlling_Type): A formal of a tagged incomplete type is a
15480         controlling argument.
15481
15482         * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
15483         First/Next_Component_Or_Discriminant
15484         (Insert_Actions): Add entries for new N_Push and N_Pop nodes
15485         (Find_Implemented_Interface): Removed. All the calls to this subprogram
15486         specify Any_Limited_Interface, and this functionality is already
15487         provided by the function Has_Abstract_Interfaces.
15488         (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
15489         support concurrent types implementing interfaces.
15490         (Find_Implemented_Interface): Removed. All the calls to this subprogram
15491         specify kind Any_Limited_Interface, and this functionality is already
15492         provided by the function Has_Abstract_Interfaces.
15493         (Remove_Side_Effects): replace Controlled_Type by
15494         CW_Or_Controlled_Type whenever the issue is related to
15495         using or not the secondary stack.
15496
15497         * par-ch12.adb (P_Formal_Type_Definition): Update calls to
15498         P_Interface_Type_Definition to fulfill the new interface (the formal
15499         Is_Synchronized is no longer required).
15500
15501         * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
15502         Update dependencies.
15503
15504         * exp_atag.ads, exp_atag.adb: New file
15505
15506 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15507             Bob Duff  <duff@adacore.com>
15508             Cyrille Comar  <comar@adacore.com>
15509
15510         * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
15511         anonymous, use finalization list of enclosing dynamic scope.
15512         (Expand_N_Package_Declaration): For a library package declaration
15513         without a corresponding body, generate RACW subprogram bodies in the
15514         spec (just as we do for the task activation call).
15515         (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
15516         Is_Abstract_Type. Make sure these are called only when appropriate.
15517         Remove all code for DSP option
15518         (CW_Or_Controlled_Type): new subprogram.
15519
15520 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
15521             Ed Schonberg  <schonberg@adacore.com>
15522             Gary Dismukes  <dismukes@adacore.com>
15523
15524         * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
15525         parameter. If it is set to true, return a result capped according to
15526         the global upper bound for the index of an entry family.
15527         (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
15528         (Build_Find_Body_Index): Adjust for above change.
15529         (Entry_Index_Expression): Likewise.
15530         (Is_Potentially_Large_Family): New function extracted from...
15531         (Collect_Entry_Families): ...here. Call it to detect whether the family
15532         is potentially large.
15533         (Build_Entry_Count_Expression): If the family is potentially large, call
15534         Family_Size with 'Cap' set to true.
15535         (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
15536         a protected version of an operation declared in the private part of
15537         a protected object, because they may be invoked through a callback.
15538         (Set_Privals): If the type of a private component is an anonymous access
15539         type, do not create a new itype for each protected body.
15540         If the body of a protected operation creates
15541         controlled types (including allocators for class-widetypes), the
15542         body of the corresponding protected subprogram must include a
15543         finalization list.
15544         (Build_Activation_Chain_Entity): Build the chain entity for extended
15545         return statements.
15546         (Type_Conformant_Parameters): Use common predicate Conforming_Types
15547         to determine whether operation overrides an inherited primitive.
15548         (Build_Wrapper_Spec): Add code to examine the parents while looking
15549         for a possible overriding candidate.
15550         (Build_Simple_Entry_Call): Set No_Initialization on the object used to
15551         hold an actual parameter value since its initialization is separated
15552         from the the declaration. Prevents errors on null-excluding access
15553         formals.
15554
15555 2007-04-06  Thomas Quinot  <quinot@adacore.com>
15556             Pablo Oliveira  <oliveira@adacore.com>
15557
15558         * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
15559         Do an Unchecked_Conversion to handle the passage from the Underlying
15560         Type to the Base Type when calling Build_To_Any_Call and
15561         Build_From_Any_Call.
15562         (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
15563         E_Constant, depending upon Variable formal.
15564         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
15565         PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
15566         parameter that requires an extra constrained parameter, declare
15567         temporary for actual as a variable, not a constant.
15568         (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
15569         the unit being compiled is the one that contains the stub type.
15570         Change primitive operation name for the RACW associated with a RAS
15571         from Call to _Call so it cannot clash with any legal identifier.
15572         (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
15573         Is_RAS.
15574         (Append_RACW_Bodies): New subprogram.
15575         (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
15576         Add_Receiving_Stubs_To_Declarations functions.
15577         When expanding a package body, this list correspond to the
15578         statements in the HSS at the end of the pacakge.
15579         When expanding a package spec, this list correspond to the
15580         spec declarations.
15581         (Add_Receiving_Stubs_To_Declarations): Append the function
15582         registering the receiving stubs at the end of the 'Stmts' list.
15583         (RCI_Package_Locator): Pass the new Version generic formal when
15584         instantiating a RCI_Locator package.
15585         (Build_From_Any_Function): To compute the High bound for an
15586         unconstrained array actual, we add the Low bound with the length.
15587         Thus we must convert the low bound and the length to an appropriate
15588         type before doing the sum.
15589         (Build_Subprogram_Receiving_Stubs, PolyORB):
15590          * Retrieve the extra formals parameters at the
15591            end of the parameter stream.
15592          * Use Move_Any_Value to write back out parameters
15593            after executing the request as it is more efficient
15594            than Copy_Any_Value.
15595          * Build the any containing Extra Formals with the
15596            appropriate typecode.
15597         (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
15598         empty Component_List.
15599         (Build_Actual_Object_Declaration): New subprogram. Build and insert into
15600         the tree the declaration for an object that serves as actual parameter
15601         in server-side stubs.
15602         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
15603         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
15604         Use Build_Actual_Object_Declaration to prepare the actuals.
15605         (Add_Parameter_To_NVList): Set the parameter mode to In for
15606         Extra Constrained Parameters.
15607         (Build_General_Calling_Stubs): Set the parameter type to boolean for
15608         Extra Constrained parameters.
15609         (Build_To_Any_Function, Build_From_Any_Function,
15610         Built_TypeCode_Function): When Typ is implicit, call the correct
15611         function with the first not implicit parent type.
15612         (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
15613         (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
15614         typecode from the Etype. Therefore we retrieve the correct typecode
15615         with a call to Get_Any_Type.
15616         (Copy_Specification): Do controlling formal type substitution based on
15617         Is_Controlling_Formal flag, instead of caller-provided object type.
15618         (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
15619         a RACW primitive operation, we might get a subprogram declaration for an
15620         ancestor of the RACW designated type (not for the designated type
15621         itself), in the case where this operation is inherited. In this case we
15622         have no easy means of determining the original tagged type for which
15623         the primitive was declared, so instead we now rely on
15624         Copy_Specification to use the Is_Controlling_Formal flag to determine
15625         which formals require type substitution.
15626
15627 2007-04-06  Robert Dewar  <dewar@adacore.com>
15628             Ed Schonberg  <schonberg@adacore.com>
15629
15630         * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
15631         GNAT.Current_Exception are not allowed if pragma Restrictions
15632         (No_Exception_Propagation) is set and in any case make the associated
15633         handler unsuitable as a target for a local raise statement.
15634         (Expand_Dispatching_Constructor_Call): Replace generation of call to the
15635         run-time subprogram CW_Membership by call to Build_CW_Membership.
15636         (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
15637         by a function call, a temporary must be created before expanding the
15638         Constructor_Call itself, to prevent out-of-order elaboration in the
15639         back-end when stack checking is enabled..
15640
15641 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15642
15643         * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
15644         result are the bounds of the left operand, not the right.
15645
15646 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15647
15648         * exp_strm.adb
15649         (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
15650          discriminant defaults.
15651         (Build_Record_Or_Elementary_Output_Procedure): Ditto.
15652         (Make_Component_List_Attributes): Ditto.
15653
15654 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15655             Bob Duff  <duff@adacore.com>
15656
15657         * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
15658         an association with a box as providing a value even though the
15659         initialization procedure for the type is not available.
15660         (Resolve_Record_Aggregate): Check that a choice of an association with a
15661         box corresponds to a component of the type.
15662         (Resolve_Record_Aggregate): Split Is_Abstract flag into
15663         Is_Abstract_Subprogram and Is_Abstract_Type.
15664
15665         * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
15666         assert.
15667
15668         * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
15669         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
15670         called only when appropriate.
15671
15672 2007-04-06  Olivier Hainque  <hainque@adacore.com>
15673
15674         * g-alleve.ads (Low Level Vector type definitions): Map each to the
15675         associated vector view instead of all to the unsigned char view.
15676
15677         * g-altcon.adb (Generic_Conversions): New internal generic package,
15678         offering facilities for all the Vector/View conversion routines
15679         implemented by this unit.
15680         (To_View/To_Vector - all versions): Reimplemented in a systematic
15681         manner, using the internal Generic_Conversions facilities.
15682
15683 2007-04-06  Pascal Obry  <obry@adacore.com>
15684
15685         * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
15686         string.
15687         (Create): Free the source string before storing the new one.
15688
15689 2007-04-06  Vincent Celier  <celier@adacore.com>
15690
15691         * g-debpoo.adb (Validity): New package with a complete new
15692         implementation of subprograms Is_Valid and Set_Valid.
15693         (Is_Valid): Move to local package Validity
15694         (Set_Valid): Move to local package Validity
15695
15696 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
15697             Pablo Oliveira  <oliveira@adacore.com>
15698
15699         * g-expect.adb (Get_Command_Output): When expanding the output buffer
15700         we must ensure that there is enough place for the new data we are going
15701         to copy in.
15702
15703 2007-04-06  Thomas Quinot  <quinot@adacore.com>
15704
15705         * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
15706         computation.
15707
15708 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
15709             Vincent Celier  <celier@adacore.com>
15710
15711         * gnatcmd.adb (B_Start): Add prefix of binder generated file.
15712         (Stack_String): Add this String that contains the name of the Stack
15713         package in the project file.
15714         (Packages_To_Check_By_Stack): Add this list that contains the packages
15715         to be checked by gnatstack, which are the naming and the stack packages.
15716         (Check_Files): If no .ci files were specified for gnatstack we add all
15717         the .ci files belonging to the projects, including binder generated
15718         files.
15719         (Non_VMS_Usage): Document that gnatstack accept project file switches.
15720         (GNATCmd): Update the B_Start variable if we are in a VMS environment.
15721         Add gnatstack to the list of commands that use project file related
15722         switches, and get the single attribute Switches from the stack package
15723         in a project file when calling gnatstack. Parse the -U flag for
15724         processing files belonging to all projects in the project tree.
15725         Remove all processing for command Setup
15726
15727         * prj-attr.adb: Add new package Stack with single attribute Switches
15728
15729         * vms_conv.ads (Command_Type): Add command Stack.
15730         Move to body declarations that are only used in the body: types Item_Id,
15731         Translation_Type, Item_Ptr, Item and its subtypes.
15732
15733         * vms_conv.adb: (Initialize): Add data for new command Stack.
15734         Add declarations moved from the spec: types Item_Id, Translation_Type,
15735         Item_Ptr, Item and its subtypes.
15736         (Cargs_Buffer): New table
15737         (Cargs): New Boolean global variable
15738         (Process_Buffer): New procedure to create arguments
15739         (Place): Put character in table Buffer or Cargs_Buffer depending on the
15740          value of Cargs.
15741         (Process_Argument): Set Cargs when processing qualifiers for GNAT
15742         COMPILE
15743         (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
15744         empty, for table Cargs_Buffer.
15745         (Initialize): Remove component Setup in Command_List
15746
15747 2007-04-06  Vincent Celier  <celier@adacore.com>
15748
15749         * gprep.adb (Process_Files.Process_One_File): Use full file name when
15750         issuing pragma Source_Reference.
15751
15752 2007-04-06  Emmanuel Briot  <briot@adacore.com>
15753
15754         * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
15755         [[:xdigit:]] character class.
15756         Also raise an exception when an invalid character class is used.
15757
15758 2007-04-06  Pascal Obry  <obry@adacore.com>
15759
15760         * i-cstrea.ads: (fopen): Add encoding parameter.
15761         (freopen): Idem.
15762         Change reference from a-sysdep.c to sysdep.c in comment.
15763         Update copyright notice.
15764         This set of patch add support for the encoding form parameter.
15765
15766         * mingw32.h (S2WSU): New macro to convert from a string to a
15767         wide-string using the UTF-8 encoding. The S2WS macro supports now only
15768         standard 8bits encoding.
15769         (WS2SU): As above but converting from wide-sring to string.
15770         This is needed as it is necessary to have access to both versions in the
15771         runtime for the form parameter encoding support.
15772         This set of patch add support for the encoding form parameter.
15773         (S2WS): Improve implementation to handle cases where the filename is not
15774         UTF-8 encoded. In this case we default to using the current code page
15775         for the conversion.
15776
15777         * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
15778         type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
15779         the constants defined in adaint.h.
15780         (fopen): Add encoding parameter.
15781         (freopen): Idem.
15782
15783         * s-ficobl.ads (AFCB): Add Encoding field to record the filename
15784         encoding. This is needed for the Reset routine (freopen low level-call).
15785
15786         * s-fileio.adb (Open): Decode encoding form parameter and set the
15787         corresponding encoding value into AFCB structure.
15788         (Reset): Pass the encoding value to freopen.
15789         (Close): Move the call to Lock_Task to the beginning of the procedure.
15790
15791 2007-04-06  Geert Bosch  <bosch@adacore.com>
15792             Robert Dewar  <dewar@adacore.com>
15793
15794         * i-fortra.ads: Add Double_Complex type.
15795
15796         * impunit.adb: (Is_Known_Unit): New function
15797         Add Gnat.Byte_Swapping
15798         Add GNAT.SHA1
15799         Add new Ada 2005 units
15800         Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
15801         Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
15802         Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
15803         Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
15804
15805         * impunit.ads (Is_Known_Unit): New function
15806
15807         * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
15808         a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
15809         a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
15810         g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
15811         s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
15812         s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
15813         New files.
15814
15815         * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
15816
15817         * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
15818
15819 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
15820             Arnaud Charlet  <charlet@adacore.com>
15821
15822         * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
15823         __gnat_adjust_context_for_raise.
15824         (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
15825         implementation of floating point operations as native x86 targets.
15826         So the FPU should be initialized in the same way using finit. Fix
15827         floating point operations accuracy issues.
15828         (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
15829         member in struct sigaction, so as to avoid warning for incompatible
15830         pointer types.
15831
15832 2007-04-06 Serguei Rybin  <rybin@adacore.com>
15833
15834         * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
15835         switches from previously loaded tree
15836
15837 2007-04-06  Thomas Quinot  <quinot@adacore.com>
15838
15839         * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
15840         cases where a given dependency has a body or not.
15841         (Write_With_File_Names): New subprogram, common code for the two cases
15842         above.
15843
15844 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15845             Javier Miranda  <miranda@adacore.com>
15846
15847         * lib-xref.ads, lib-xref.adb:
15848         Modify the loop that collects type references, to include interface
15849         types that the type implements. List each of these interfaces when
15850         building the entry for the type.
15851         (Generate_Definition): Initialize component Def and Typ of new entry
15852         in table Xrefs, to avoid to have these components unitialized.
15853         (Output_References): Split Is_Abstract flag into
15854         Is_Abstract_Subprogram and Is_Abstract_Type.
15855         (Generate_Reference): Add barrier to do not generate the warning
15856         associated with Ada 2005 entities with entities generated by the
15857         expander.
15858
15859 2007-04-06  Robert Dewar  <dewar@adacore.com>
15860             Arnaud Charlet  <charlet@adacore.com>
15861             Vincent Celier  <celier@adacore.com>
15862
15863         * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
15864         Update 'Exception Handling Control' chapter which was outdated.
15865         Minor fix to documentation of -gnatwq
15866         Remove section "Adapting the Run Time to a New C++ Compiler" because
15867         it is now obsolete.
15868         Add passage on need of -nostart-files in some non-ada-main cases.
15869         Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
15870         Update documentation about Interfacing with C++
15871         Add documentation for new gnatmake switch -p
15872         Add missing protocol part in URLs.
15873         Document -gnatyA
15874         Document pragma Compile_Time_Error
15875         Add documentation for Object_Size indicating that stand alone
15876         objects can have a larger size in some cases.
15877         Add node for GNAT.Byte_Swapping, GNAT.SHA1
15878         Update reference to the Ravenscar profile.
15879         Document pragma Unreferenced_Objects
15880
15881         * gnat-style.texi: Fix typo
15882
15883 2007-04-06  Vincent Celier  <celier@adacore.com>
15884
15885         * mlib.adb (Building_Library): Only output "building a library..." in
15886         verbose mode
15887
15888         * mlib-prj.adb (Build_Library): Only output lists of object and ALI
15889         files in verbose mode.
15890
15891         * mlib-utl.adb (Ar): Only output the first object files when not in
15892         verbose mode.
15893         (Gcc): Do not display all the object files if not in verbose mode, only
15894         the first one.
15895
15896 2007-04-06  Robert Dewar  <dewar@adacore.com>
15897
15898         * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
15899         it no longer destroys the contents of Name_Buffer or Name_Len and
15900         non-standard and invalid names are handled better.
15901         (Get_Decoded_Name_String): Improve performance by using
15902         Name_Has_No_Encodings flag in the name table.
15903         (Is_Valid_Name): New function to determine whether a Name_Id is valid.
15904         Used for debugging printouts.
15905
15906 2007-04-06  Robert Dewar  <dewar@adacore.com>
15907             Javier Miranda  <miranda@adacore.com>
15908             Bob Duff  <duff@adacore.com>
15909
15910         * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
15911         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
15912         there is no need to generate always a record_definition_node in case
15913         of synchronized interface types.
15914         (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
15915         (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
15916         illegal in Ada 95, in cases where it is legal. Change the warnings to
15917         errors in other cases. Don't give the error unless the "not null"
15918         parses properly. Correct the source position at which the error occurs.
15919         (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
15920         P_Null_Exclusion, to suppress "not null" warnings.
15921         (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
15922         associated goto statements.
15923
15924         * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
15925         of END RECORD
15926
15927         * scans.ads (Type_Token_Location): New flag
15928
15929         * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
15930         (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
15931         P_Null_Exclusion, to suppress "not null" warnings.
15932
15933 2007-04-06  Robert Dewar  <dewar@adacore.com>
15934             Javier Miranda  <miranda@adacore.com>
15935             Bob Duff  <duff@adacore.com>
15936             Vincent Celier  <celier@adacore.com>
15937
15938         * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
15939         (Extensions_Allowed): No longer sets Ada_Version
15940         Entry for pragma Unreferenced_Objects
15941
15942         * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
15943         system.tasking if pragma priority used in a procedure
15944         (Analyze_Pragma, case Warning): Handle dot warning switches
15945         (Process_Compile_Time_Warning_Or_Error): New procedure
15946         (Analyze_Pragma): Add processing for Compile_Time_Error
15947         Add support for extra arguments External_Name and Link_Name.
15948         Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
15949         (Process_Import_Or_Interface): Add support for the use of pragma Import
15950         with tagged types.
15951         (Extensions_Allowed): No longer affects Ada_Version
15952         (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
15953         Is_Abstract_Type. Make sure these are called only when appropriate.
15954         Add processing for pragma Unreferenced_Objects
15955
15956         * snames.h, snames.ads, snames.adb: Add entry for pragma
15957         Compile_Time_Error
15958         Add new standard name Minimum_Binder_Options for new gprmake
15959         Add new standard names for gprmake: Archive_Suffix,
15960         Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
15961         Library_Support, Library_Version_Options,
15962         Shared_Library_Minimum_Options,
15963         Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
15964         Change Name_Call to Name_uCall so that it cannot clash with a legal
15965         subprogram name.
15966         Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
15967         Append C_Plus_Plus to convention identifiers as synonym for CPP
15968         Add new standard names Stack and Builder_Switches
15969         Add new standard names: Compiler_Minimum_Options, Global_Config_File,
15970         Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
15971         Run_Path_Option, Toolchain_Version.
15972         Entry for pragma Unreferenced_Objects
15973
15974         * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
15975         switches, without repetition of "eD". Make sure that last character of
15976         -gnatep= switch is not taken as -gnat switch character.
15977         Complete rewrite of circuit for handling saving compilation options
15978         Occasioned by need to support dot switchs for -gnatw, but cleans up
15979         things in general.
15980         -gnatX does not affect Ada_Version
15981         Include -gnatyA in -gnatg style switches
15982
15983         * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
15984         warnings on return objects.
15985         (Warn_On_Useless_Assignment): Exclude warnings on return objects
15986         (Set_Dot_Warning_Switch): New procedure
15987         (Check_References): Add missing case of test for
15988         Has_Pragma_Unreferenced_Objects
15989         (Output_Unreferenced_Messages): Implement effect of new pragma
15990         Unreferenced_Objects, remove special casing of limited controlled
15991         variables.
15992
15993 2007-04-06  Vincent Celier  <celier@adacore.com>
15994
15995         * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
15996         the default project path, initially done during elaboration of the
15997         package.
15998         If the prefix returned by Sdefault is null, get the prefix from a call
15999         to Executable_Prefix_Path.
16000         (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
16001         null.
16002
16003         * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
16004         canonical directory name to open the directory from which files are
16005         retrieved.
16006         (Record_Other_Sources): Idem.
16007         (Locate_Directory): Add the possibility to create automatically missing
16008         directories when Setup_Projects is True.
16009         Call Locate_Directory so that the directory will be created when
16010         Setup_Projects is True, for object dir, library dir, library ALI dir,
16011         library source copy dir and exec dir.
16012
16013         * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
16014         versions of GNAT.
16015
16016 2007-04-06  Robert Dewar  <dewar@adacore.com>
16017
16018         * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
16019         Use First/Next_Component_Or_Discriminant
16020         (Analyze_Record_Representation_Clause):
16021         Use First/Next_Component_Or_Discriminant
16022         (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
16023         (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
16024         definition if type is unconstrained.
16025         (Adjust_Record_For_Reverse_Bit_Order): New procedure
16026         (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
16027         Is_Abstract_Subprogram and Is_Abstract_Type.
16028         (Adjust_Record_For_Reverse_Bit_Order): New procedure
16029
16030         * repinfo.adb (List_Record_Info): Use First/
16031         Next_Component_Or_Discriminant.
16032
16033         * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
16034         New procedure.
16035
16036         * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
16037         Include -gnatyA in default switches
16038
16039         * opt.ads: (Warn_On_Non_Local_Exception): New flag
16040         (Warn_On_Reverse_Bit_Order): New flag
16041         (Extensions_Allowed): Update the documentation.
16042         (Warn_On_Questionable_Missing_Parens): Now on by default
16043
16044         * usage.adb: Add documentation of -gnatw.x/X switches
16045         Document new -gnatyA style switch
16046         -gnatq warnings are on by default
16047
16048 2007-04-06  Ed Falis  <falis@adacore.com>
16049
16050         * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
16051         full word is no longer compared twice.
16052
16053 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16054
16055         * sem_ch10.adb (Install_Limited_Context_Clauses.
16056         Expand_Limited_With_Clause): Use a new copy of selector name in the
16057         call to Make_With_Clause. This fixes the tree structure for ASIS
16058         purposes. Nothing is changed in the compiler behaviour.
16059         (Process_Body_Clauses): Handle properly use clauses whose prefix is
16060         a package renaming.
16061         (Install_Limited_With_Clauses): Do not install non-limited view when it
16062         is still incomplete.
16063
16064 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16065             Gary Dismukes  <dismukes@adacore.com>
16066
16067         * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
16068         when capturing size information, instead of base type, which for a
16069         formal array type will be the unconstrained type.
16070         (Analyze_Formal_Object_Declaration): Add check for illegal default
16071         expressions for a formal in object of a limited type.
16072         (Instantiate_Object): Ditto.
16073         (Check_Formal_Package_Instance): Skip entities that are formal objects,
16074         because they were defaulted in the formal package and no check applies
16075         to them.
16076         (Check_Formal_Package_Instance): Extend conformance check to other
16077         discrete types beyond Integer.
16078         (Process_Default): Copy directly the unmatched formal. A generic copy
16079         has already been performed in Analyze_Formal_Package.
16080         (Analyze_Associations): If a formal subprogram has no match, check for
16081         partial parametrization before looking for a default, to prevent
16082         spurious errors.
16083         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
16084         not set the instantiation environment before analyzing the actuals.
16085         Fixes regression on 8515-003 with implementation of AI-133.
16086         Set_Instance_Env checks whether the generic unit is a predefined
16087         unit, in which case the instance must be analyzed with the latest Ada
16088         mode. This setting must take place after analysis of the actuals,
16089         because the actuals must be analyzed and frozen in the Ada mode extant
16090         outside of the current instantiation.
16091         (Save_Env, Restore_Env): Preserve and restore the configuration
16092         parameters so that predefined units can be compiled in the proper Ada
16093         mode.
16094         (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
16095         Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
16096         and Is_Abstract_Type.
16097         (Analyze_Formal_Package): For better error recovery, Add exception
16098         handler to catch Instantion_Error, which can be raised in
16099         Analyze_Associations
16100
16101 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16102             Bob Duff  <duff@adacore.com>
16103             Gary Dismukes  <dismukes@adacore.com>
16104
16105         * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
16106         prefix type is a discriminated subtype of the type of the formal.
16107         (Analyze_Allocator): Collect all coextensions regardless of the context.
16108         Whether they can be allocated statically is determined in exp_ch4.
16109         (Analyze_Selected_Component): If the prefix is a limited view and the
16110         non-limited view is available, use the non-limited one.
16111         (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
16112         therefore illegal), suggest a qualified expression rather than a type
16113         conversion, because a type conversion would be illegal in this context.
16114         (Anayze_Allocator): Trace recursively all nested allocators so that all
16115         coextensions are on the corresponding list for the root. Do no mark
16116         coextensions if the root allocator is within a declaration for a stack-
16117         allocated object, because the access discriminants will be allocated on
16118         the stack as well.
16119         (Analyze_Call): Remove restriction on calls to limited functions for the
16120         cases of generic actuals for formal objects, defaults for formal objects
16121         and defaults for record components.
16122         (Analyze_Allocator): Before analysis, chain coextensions on the proper
16123         element list. Their expansion is delayed until the enclosing allocator
16124         is processed and its finalization list constructed.
16125         (Try_Primitive_Operation): If the prefix is a concurrent type, looks
16126         for an operation with the given name among the primitive operations of
16127         the corresponding record type.
16128         (Analyze_Selected_Component): If the prefix is a task type that
16129         implements an interface, and there is no entry with the given name,
16130         check whether there is another primitive operation (e.g. a function)
16131         with that name.
16132         (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
16133         properly the indexing of a function call written in prefix form, where
16134         the function returns an array type, and all parameters of the function
16135         except the first have defaults.
16136         (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
16137         the original operands, rather than relocating them, for efficiency and
16138         to work properly when an operand is overloaded.
16139         (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
16140         Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
16141         (Analyze_Selected_Component): If the prefix is a private extension, only
16142         scan the visible components, not those of the full view.
16143         (Try_Primitive_Operation): If the operation is a procedure, collect all
16144         possible interpretations, as for a function, because in the presence of
16145         classwide parameters several primitive operations of the type can match
16146         the given arguments.
16147
16148 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16149             Robert Dewar  <dewar@adacore.com>
16150
16151         * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
16152         tag-indeterminate call to an abstract function, when the left-hand side
16153         is not classwide.
16154         (Analyze_Loop_Statement): Improve detection of infinite loops
16155
16156 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16157             Thomas Quinot  <quinot@adacore.com>
16158
16159         * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
16160         out of Analyze_Package_Declaration, because processing must be applied
16161         to package bodies as well, for deferred constants completed by pragmas.
16162         (Analyze_Package_Declaration): When the package declaration being
16163         analyzed does not require an explicit body, call Check_Completion.
16164         (May_Need_Implicit_Body): An implicit body is required when a package
16165         spec contains the declaration of a remote access-to-classwide type.
16166         (Analyze_Package_Body): If the package contains RACWs, append the
16167         pending subprogram bodies generated by exp_dist at the end of the body.
16168         (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
16169         Is_Abstract_Subprogram and Is_Abstract_Type.
16170         (Preserve_Full_Attributes): The full entity list is not an attribute
16171         that must be preserved from full to partial view.
16172
16173         * sem_dist.adb (Add_RAS_Dereference_TSS):
16174         Change primitive name to _Call so it cannot clash with any legal
16175         identifier, and be special-cased in Check_Completion.
16176         Mark the full view of the designated type for the RACW associated with
16177         a RAS as Comes_From_Source to get proper view switching when installing
16178         private declarations.
16179         Provite a placeholder nested package body along with the nested spec
16180         to have a place for Append_RACW_Bodies to generate the calling stubs
16181         and stream attributes.
16182
16183 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16184             Robert Dewar  <dewar@adacore.com>
16185
16186         * sem_ch8.adb (Has_Components): If the argument is an incomplete type
16187         that is a limited view, check the non-limited view if available.
16188         (Undefined): Refine error message for missing with of Text_IO
16189         (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
16190         to distinguish real missing with cases.
16191         Fix format of all missing with messages
16192         (Analyze_Subprogram_Renaming): Emit proper error message on illegal
16193         renaming as body when renamed entity is abstract.
16194
16195 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16196             Javier Miranda  <miranda@adacore.com>
16197
16198         * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
16199         predicate recursive, to handle complex expressions on literals whose
16200         spurious ambiguity comes from the abstract interpretation of some
16201         subexpression.
16202         (Interface_Present_In_Ancestor): Add support to concurrent record
16203         types.
16204         (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
16205         Is_Abstract_Subprogram and Is_Abstract_Type.
16206
16207 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16208             Javier Miranda  <miranda@adacore.com>
16209
16210         * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
16211         dereference of a local object R created as a reference to another
16212         object O, use the access level of O.
16213         (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
16214         rather than local Same_Formal_Type, to check whether protected operation
16215         overrides an inherited one.
16216         (Same_Formal_Type): New predicate, used when matching signatures of
16217         overriding synchronized operations, to handle the case when a formal
16218         has a type that is a generic actual.
16219         (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
16220         predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
16221         (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
16222         syntactic ambiguities involving indexing of function calls that return
16223         arrays.
16224         (Abstract_Interface_List): New subprogram that returns the list of
16225         abstract interfaces associated with a concurrent type or a
16226         concurrent record type.
16227         (Interface_Present_In_Parent): New subprogram used to check if a
16228         given type or some of its parents implement a given interface.
16229         (Collect_Abstract_Interfaces): Add support for concurrent types
16230         with interface types.
16231         (Has_Abstract_Interfaces): Add support for concurrent types with
16232         interface types.
16233         (Is_Parent): New subprogram that determines whether E1 is a parent
16234         of E2. For a concurrent type its parent is the first element of its
16235         list of interface types; for other types this function provides the
16236         same result than Is_Ancestor.
16237         (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
16238         (Collect_Synchronized_Interfaces): Removed because the subprogram
16239         Collect_Abstract_Interfaces provides this functionality.
16240         (Collect_Abstract_Interfaces): Minor update to give support to
16241         concurrent types and thus avoid undesired code duplication.
16242         (Get_Subprogram_Entity): Handle entry calls.
16243         (May_Be_Lvalue): Include actuals that appear as in-out parameters in
16244         entry calls.
16245         (Enter_Name): Do not give -gnatwh hiding warning for record component
16246         entities, they never result in hiding.
16247
16248 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16249             Robert Dewar  <dewar@adacore.com>
16250
16251         * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
16252         to chain nested components that are allocators for access discriminants
16253         of the enclosing object.
16254         Add N_Push and N_Pop nodes
16255         New field Exception_Label added
16256         (Local_Raise_Statements): New field in N_Exception_Handler_Node
16257         (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
16258         (Is_Coextension): New flag for allocators, to mark allocators that
16259         correspond to access discriminants of dynamically allocated objects.
16260         (N_Block_Statement): Document the fact that the corresponding entity
16261         can be an E_Return_Statement.
16262         (Is_Coextension): New flag for allocators.
16263         Remove all code for DSP option
16264
16265         * sprint.ads, sprint.adb: Display basic information for class_wide
16266         subtypes. Add handling of N_Push and N_Pop nodes
16267
16268 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
16269
16270         * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
16271         before propagating exception.
16272
16273 2007-04-06  Olivier Hainque  <hainque@adacore.com>
16274
16275         * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
16276         an address always within the call instruction from a return address.
16277
16278 2007-04-06  Olivier Hainque  <hainque@adacore.com>
16279             Eric Botcazou  <botcazou@adacore.com>
16280
16281         * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
16282         expression with a COMPOUND_EXPR including the call instead of emitting
16283         the call directly here.
16284         (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
16285         high bound is constant and the slice is empty.  Tidy.
16286         (tree_transform, case N_Op_Not): Handle properly the case where the
16287         operation applies to a private type whose full view is a modular type.
16288         (Case_Statement_To_gnu): If an alternative is an E_Constant with an
16289         Address_Clause, use the associated Expression as the GNAT tree
16290         representing the choice value to ensure the corresponding GCC tree is
16291         of the proper kind.
16292         (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
16293         instead of just the operands, as the base GCC stabilize_reference does.
16294         <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
16295         requested; otherwise fail.
16296         (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
16297
16298 2007-04-06  Thomas Quinot  <quinot@adacore.com>
16299
16300         * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
16301         implementation of UI_Div.
16302         (UI_Div): Reimplement as a call to UI_Div_Rem.
16303         (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
16304         remainder, avoiding the cost of a multiplication and a subtraction.
16305         (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
16306         provides both quotient and remainder in a single computation.
16307         (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
16308         functions for uint.
16309         (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
16310         is undefined if the given n is not inversible.
16311
16312 2007-04-06  Olivier Hainque  <hainque@adacore.com>
16313
16314         * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
16315         BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
16316         opcodes.
16317
16318 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
16319             Olivier Hainque  <hainque@adacore.com>
16320
16321         * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
16322         when updating the contents of the old pointer to an unconstrained array.
16323         (end_subprog_body): Set error_gnat_node to Empty.
16324         (write_record_type_debug_info): Do not be unduly sparing with our bytes.
16325         (unchecked_convert): For subtype to base type conversions, require that
16326         the source be a subtype if it is an integer type.
16327         (builtin_decls): New global, vector of available builtin functions.
16328         (gnat_pushdecl): Add global builtin function declaration nodes to the
16329         builtin_decls list.
16330         (gnat_install_builtins): Adjust comments.
16331         (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
16332         calling gnat_pushdecl, so that it knows when it handed a builtin
16333         function declaration node.
16334         (builtin_decl_for): Search the builtin_decls list.
16335
16336 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
16337
16338         * s-stchop-vxworks.adb:
16339         (Stack_Check): Raise Storage_Error if the argument has wrapped around.
16340
16341 2007-04-06  Robert Dewar  <dewar@adacore.com>
16342             Arnaud Charlet  <charlet@adacore.com>
16343
16344         * a-diroro.ads: Inserted the pragma Unimplemented_Unit
16345
16346         * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
16347         of files
16348         Add mention of -Sev (set initialize_scalars option from environment
16349         variable at run time) in gnatbind usage message.
16350
16351         * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
16352
16353         * fname-uf.ads: Minor comment fix
16354
16355         * osint.ads: Change pragma Elaborate to Elaborate_All
16356
16357         * par-load.adb: Add documentation.
16358
16359         * sem_cat.ads, sem_cat.adb: Minor code reorganization
16360
16361         * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
16362
16363         * s-secsta.ads: Extra comments
16364
16365         * s-soflin.ads: Minor comment fixes
16366
16367         * s-stratt.ads (Block_Stream_Ops_OK): Removed.
16368
16369         * s-wchcon.ads: Minor comment addition
16370
16371         * treepr.adb: Minor change in message
16372         (Print_Name,Print_Node): Make these debug printouts more robust: print
16373         "no such..." instead of crashing on bad input.
16374
16375 2007-03-30  Rafael Ávila de Espíndola  <espindola@google.com>
16376
16377         * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
16378         instead of gnat_signed_or_unsigned_type.
16379         * utils.c (gnat_signed_or_unsigned_type): Remove.
16380         * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
16381         * gigi.h (gnat_signed_or_unsigned_type): Remove
16382
16383 2007-03-09  Roger Sayle  <roger@eyesopen.com>
16384
16385         * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
16386         fold with the result of buildN.
16387         * decl.c (gnat_to_gnu_entity): Likewise.
16388         * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
16389         * utils.c (finish_record_type, merge_sizes, max_size, convert):
16390         Likewise.
16391         * utils2.c (gnat_truthvalue_conversion, compare_arrays,
16392         nonbinary_modular_operation, build_binary_op, build_unary_op,
16393         build_cond_expr): Likewise.
16394
16395         * utils.c (convert): Use fold_build1 when casting values to void.
16396         * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
16397         fold_convert instead of convert when appropriate.
16398
16399 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
16400
16401         * Make-lang.in: Add install-pdf target as copied from
16402         automake v1.10 rules.
16403
16404 2007-02-28  Andreas Schwab  <schwab@suse.de>
16405
16406         * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
16407         $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
16408         (doc/gnat-style.info): Likewise.
16409
16410 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
16411
16412         * gnat-style.texi: Standardize title page.
16413         * gnat_rm.texi: Likewise.
16414         * gnat_ugn.texi: Likewise.
16415
16416 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
16417
16418         * decl.c (annotate_value): Adjust for refactoring of tree_map
16419         hierarchy.
16420
16421 2007-02-24  Mark Mitchell  <mark@codesourcery.com>
16422
16423         * decl.c (annotate_value): Adjust for refactoring of tree_map
16424         hierarchy.
16425
16426 2007-02-21  Ed Schonberg  <schonberg@adacore.com>
16427
16428         PR ada/18819
16429         * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
16430         untagged derived type, add hidden components to keep discriminant
16431         layout consistent, when a given discriminant of the derived type
16432         constraints several discriminants of the parent type.
16433
16434 2007-02-16  Eric Botcazou  <ebotcazou@adacore.com>
16435             Sandra Loosemore  <sandra@codesourcery.com>
16436
16437         * trans.c (call_to_gnu):  Use build_call_list instead of build3 to
16438         build the call expression.
16439         (gnat_stabilize_reference_1): Handle tcc_vl_exp.
16440         * utils.c (max_size) <tcc_exceptional>: Delete.
16441         <tcc_vl_exp>: New case.
16442         <tcc_expression>: Delete CALL_EXPR subcase.
16443         (build_global_cdtor): Use build_call_nary instead of build3.
16444         * utils2.c (build_call_1_expr): Likewise.
16445         (build_call_2_expr): Likewise.
16446         (build_call_0_expr): Likewise.
16447         (build_call_alloc_dealloc): Likewise.
16448
16449 2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
16450
16451         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
16452         get_action_description_for): Replace _Unwind_Word with _uleb128_t
16453         and _Unwind_SWord with _sleb128_t.
16454
16455 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
16456
16457         * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
16458         * decl.c: Include gt-ada-decl.h.
16459         (annotate_value_cache): New.
16460         (annotate_value): Use it instead of TREE_COMPLEXITY.
16461
16462 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
16463
16464         * misc.c, utils2.c: Fix comment typos.
16465
16466 2007-01-24  Roger Sayle  <roger@eyesopen.com>
16467
16468         * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
16469         TREE_CONSTANT_OVERFLOW.
16470         (allocatable_size_p, annotate_value): Likewise.
16471         * trans.c (gnat_to_gnu): Likewise.
16472         * utils.c (unchecked_convert): Likewise.
16473         * utils2.c (build_simple_component_ref): Likewise.
16474
16475 2007-01-23  Richard Guenther  <rguenther@suse.de>
16476
16477         PR bootstrap/30541
16478         * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
16479         (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
16480         (gnatboot3): Likewise.
16481         (GNATBIND): Do not define.
16482         * Makefile.in (GNATBIND): Do not define.
16483
16484 2007-01-08  Richard Guenther  <rguenther@suse.de>
16485
16486         * cuintp.c (build_cst_from_int): Use built_int_cst_type.
16487         * trans.c (gnat_to_gnu): Likewise.
16488
16489 2006-12-07  Geoffrey Keating  <geoffk@apple.com>
16490
16491         * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
16492         * adaint.c: Likewise.
16493
16494 2006-12-05  Aldy Hernandez  <aldyh@redhat.com>
16495
16496         Merge from gimple-tuples-branch:
16497         2006-11-02  Aldy Hernandez  <aldyh@redhat.com>
16498
16499         * ada-tree.h (lang_tree_node): Handle gimple tuples.
16500         * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
16501         GIMPLE_MODIFY_STMT.
16502
16503 2006-12-02  Kazu Hirata  <kazu@codesourcery.com>
16504
16505         * Makefile.in, mingw32.h, trans.c: Fix comment typos.
16506         * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
16507         Fix typos.
16508
16509 2006-11-17  Eric Botcazou  <ebotcazou@adacore.com>
16510
16511         PR ada/27936
16512         * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
16513         if the initializer takes into account the padding.
16514
16515 2006-11-11  Richard Guenther  <rguenther@suse.de>
16516
16517         * trans.c (maybe_stabilize_reference): Remove handling of
16518         FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
16519
16520 2006-11-05  Arnaud Charlet  <charlet@adacore.com>
16521
16522         PR ada/29707
16523         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
16524         (To_Target_Priority): New function.
16525
16526 2006-10-31  Robert Dewar  <dewar@adacore.com>
16527
16528         * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
16529         a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
16530         s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
16531         a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
16532         a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
16533         a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
16534         a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
16535         a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
16536         a-szbzha.adb: Minor reformatting. Fix header.
16537
16538         * a-numaux-x86.adb: Add parentheses for use of unary minus
16539         * a-ngcefu.adb: Supply missing parentheses for unary minus
16540         * a-ngcoty.adb: Add parens for use of unary minus
16541         * a-ngelfu.adb: Add missing parens for unary minus
16542         * a-tifiio.adb: Add parentheses for uses of unary minus
16543
16544 2006-10-31  Robert Dewar  <dewar@adacore.com>
16545             Bob Duff  <duff@adacore.com>
16546             Ed Schonberg  <schonberg@adacore.com>
16547
16548         * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
16549         with multiplying operator.
16550         (Expected_Type_Is_Any_Real): New function to determine from the Parent
16551         pointer whether the context expects "any real type".
16552         (Resolve_Arithmetic_Op): Do not give an error on calls to the
16553         universal_fixed "*" and "/" operators when they are used in a context
16554         that expects any real type. Also set the type of the node to
16555         Universal_Real in this case, because downstream processing requires it
16556         (mainly static expression evaluation).
16557         Reword some continuation messages
16558         Add some \\ sequences to continuation messages
16559         (Resolve_Call): Refine infinite recursion case. The test has been
16560         sharpened to eliminate some false positives.
16561         Check for Current_Task usage now includes entry barrier, and is now a
16562         warning, not an error.
16563         (Resolve): If the call is ambiguous, indicate whether an interpretation
16564         is an inherited operation.
16565         (Check_Aggr): When resolving aggregates, skip associations with a box,
16566         which are priori correct, and will be replaced by an actual default
16567         expression in the course of expansion.
16568         (Resolve_Type_Conversion): Add missing support for conversion from
16569         a class-wide interface to a tagged type. Minor code cleanup.
16570         (Valid_Tagged_Converion): Add support for abstact interface type
16571         conversions.
16572         (Resolve_Selected_Component): Call Generate_Reference here rather than
16573         during analysis, and use May_Be_Lvalue to distinguish read/write.
16574         (Valid_Array_Conversion): New procedure, abstracted from
16575         Valid_Conversion, to incorporate accessibility checks for arrays of
16576         anonymous access types.
16577         (Valid_Conversion): For a conversion to a numeric type occurring in an
16578         instance or inlined body, no need to check that the operand type is
16579         numeric, since this has been checked during analysis of the template.
16580         Remove legacy test for scope name Unchecked_Conversion.
16581
16582         * sem_res.ads: Minor reformatting
16583
16584         * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
16585         (PE_Current_Task_In_Entry_Body): New exception code
16586         (SE_Restriction_Violation): Removed, not used
16587
16588         * a-except.ads:  Update comments.
16589
16590         * types.h, types.ads: Add definition for Validity_Check
16591         (PE_Current_Task_In_Entry_Body): New exception code
16592         (SE_Restriction_Violation): Removed, not used
16593
16594 2006-10-31  Thomas Quinot  <quinot@adacore.com>
16595
16596         * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
16597         error status.
16598
16599 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
16600             Jose Ruiz  <ruiz@adacore.com>
16601
16602         * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
16603         part of Ada.Calendar: all subprogram raise Unimplemented.
16604         (Split_W_Offset): Temp function body, raising Unimplemented
16605
16606         * a-calend.ads, a-calend-vms.ads:
16607         Add imported variable Invalid_TZ_Offset used to designate targets unable
16608         to support time zones.
16609         (Unimplemented): Temporary function raised by the body of new
16610         subprograms below.
16611         (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
16612         unit provides handling of leap seconds and is used by the new Ada 2005
16613         packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
16614         (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
16615         version returns an extra value which is the offset to UTC.
16616
16617         * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
16618         (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
16619         (Split_W_Offset): New function body.
16620         (Time_Of): When a date is close to UNIX epoch, compute the time for
16621         that date plus one day (that amount is later substracted after
16622         executing mktime) so there are no problems with time zone adjustments.
16623
16624         * a-calend-mingw.adb: Remove Windows specific version no longer needed.
16625
16626         * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
16627         a-catizo.ads, a-catizo.adb: New files.
16628
16629         * impunit.adb: Add new Ada 2005 entries
16630
16631         * sysdep.c: Add external variable __gnat_invalid_tz_offset.
16632         Rename all occurences of "__gnat_localtime_r" to
16633         "__gnat_localtime_tzoff".
16634         (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
16635         zone data and calculate the GMT offset.
16636         (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
16637         Use the field "tm_gmtoff" to extract the GMT offset.
16638         (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
16639         the external variable "timezone" to calculate the GMT offset.
16640
16641 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
16642             Jose Ruiz  <ruiz@adacore.com>
16643
16644         * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
16645         s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
16646         s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
16647         s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
16648         System.Any_Priority to a POSIX priority on the target.
16649
16650         * system-linux-ia64.ads:
16651         Extend range of Priority types on Linux to use the whole range made
16652         available by the system.
16653
16654         * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
16655         function maps from System.Any_Priority to a POSIX priority on the
16656         target.
16657         (PTHREAD_PRIO_PROTECT): Set real value.
16658         (PTHREAD_PRIO_INHERIT): Now a function.
16659         (SIGCPUFAIL): New signal.
16660         (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
16661         are documented as reserved by the OS.
16662
16663         * system-aix.ads: Use the full range of priorities provided by the
16664         system on AIX.
16665
16666         * s-taprop-posix.adb: Call new function To_Target_Priority.
16667         (Set_Priority): Take into account Task_Dispatching_Policy and
16668         Priority_Specific_Dispatching pragmas when determining if Round Robin
16669         must be used for scheduling the task.
16670
16671         * system-linux-x86_64.ads, system-linux-x86.ads,
16672         system-linux-ppc.ads: Extend range of Priority types on Linux to use
16673         the whole range made available by the system.
16674
16675         * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
16676         s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
16677         s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
16678         when deallocating the TCB in order to avoid potential references to
16679         deallocated data.
16680         (Set_Priority): Take into account Task_Dispatching_Policy and
16681         Priority_Specific_Dispatching pragmas when determining if Round Robin
16682         or FIFO within priorities must be used for scheduling the task.
16683
16684         * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
16685         the Thread field (to be used internally by the run-time system) and the
16686         kernel-level task id in the LWP field (to be used by the debugger).
16687         (Create_Task): Reorganize to unify the calls to taskSpawn into a single
16688         instance, and propagate the current task options to the spawned task.
16689         (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
16690         (Initialize): Set Round Robin dispatching when the corresponding pragma
16691         is in effect.
16692
16693 2006-10-31  Robert Dewar  <dewar@adacore.com>
16694
16695         * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
16696         system-linux-hppa.ads, system-hpux-ia64.ads,
16697         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
16698         system-vxworks-sparcv9.ads, system-solaris-x86.ads,
16699         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
16700         system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
16701         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
16702         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
16703         system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
16704         Default_Bit_Order) to kill constant condition warnings for references
16705         to this switch.
16706
16707 2006-10-31  Vincent Celier  <celier@adacore.com>
16708             Eric Botcazou  <ebotcazou@adacore.com>
16709
16710         * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
16711         mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
16712         mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
16713         Ext_To, when building the library file name
16714
16715         * mlib-tgt-vxworks.adb: ditto.
16716         (Get_Target_Suffix): Add support for x86 targets.
16717
16718         * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
16719
16720         * mlib-tgt-darwin.adb:
16721         Use Append_To, instead of Ext_To, when building the library file name
16722         (Flat_Namespace): New global variable.
16723         (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
16724         (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
16725         (Link_Shared_Libgcc): Delete.
16726         (Build_Dynamic_Library): Adjust for above changes.
16727         Use Opt package.
16728         (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
16729
16730 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
16731
16732         * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
16733         (Initialize): Add type conversions required by above change.
16734
16735 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
16736
16737         * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
16738         (getpid): New body for this function that uses the underlying taskIdSelf
16739         function for VxWorks 5 and VxWorks 6 in kernel mode.
16740         (unsigned_int): New type, modular to allow logical bit operations.
16741         (taskOptionsGet): New imported function.
16742
16743         * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
16744         field to be compliant with the type used by the corresponding operating
16745         system primitive.
16746
16747 2006-10-31  Pascal Obry  <obry@adacore.com>
16748             Eric Botcazou  <ebotcazou@adacore.com>
16749             Vincent Celier  <celier@adacore.com>
16750
16751         * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
16752         ASCII version of the registry API. This is needed as the GNAT runtime
16753         is now UNICODE by default.
16754         Include version.h.
16755         (get_gcc_version): Do not hardcode the return value.
16756         (__gnat_file_time_name): On Windows properly set the default returned
16757         value to -1 which corresponds to Invalid_Time.
16758         (__gnat_fopen): New routine. A simple wrapper on all plateforms
16759          except on Windows where it does conversion for unicode support.
16760         (__gnat_freopen): Idem.
16761         (__gnat_locate_exec_on_path): If environment variable PATH does not
16762         exist, return a NULL pointer
16763
16764         * adaint.h: (__gnat_fopen): Declare.
16765         (__gnat_freopen): Likewise.
16766
16767         * mingw32.h (_tfreopen): Define this macro here for older MingW
16768         version.
16769         Activate the unicode support on platforms using a MingW runtime
16770         version 3.9 or newer.
16771
16772         * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
16773         This is needed for proper unicode support on Windows.
16774         (freopen): Idem.
16775
16776 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
16777             Nicolas Setton  <setton@adacore.com>
16778             Olivier Hainque  <hainque@adacore.com>
16779             Gary Dismukes  <dismukes@adacore.com>
16780
16781         * gigi.h: (tree_code_for_record_type): Declare.
16782         (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
16783         (get_global_renaming_pointers): Rename to
16784         invalidate_global_renaming_pointers.
16785         (static_ctors): Delete.
16786         (static_dtors): Likewise.
16787         (gnat_write_global_declarations): Declare.
16788         (create_var_decl): Adjust descriptive comment to indicate that the
16789         subprogram may return a CONST_DECL node.
16790         (create_true_var_decl): Declare new function, similar to
16791         create_var_decl but forcing the creation of a VAR_DECL node.
16792         (get_global_renaming_pointers): Declare.
16793         (add_global_renaming_pointer): Likewise.
16794
16795         * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
16796
16797         * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
16798         tree before setting TREE_ADDRESSABLE for by-reference return mechanism
16799         processing.
16800         (gnat_to_gnu_entity): Remove From_With_Type from computation for
16801         imported_p.
16802         <E_Access_Type>: Use the Non_Limited_View as the full view of the
16803         designated type if the pointer comes from a limited_with clause.  Make
16804         incomplete designated type if it is in the main unit and has a freeze
16805         node.
16806         <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
16807         Underlying_Full_View similarly.  Return earlier if the full view already
16808         has an associated tree.
16809         (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
16810         (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
16811         (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
16812         reference type built for objects with an address clause.
16813         Use create_true_var_decl with const_flag set for
16814         DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
16815         TREE_READONLY set.
16816         (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
16817         for Character and Wide_Character types. This info is read by the
16818         dwarf-2 writer, and is needed to be able to use the command "ptype
16819         character" in the debugger.
16820         (gnat_to_gnu_entity): When generating a type representing
16821         a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
16822         so that debug writers can distinguish it from ordinary integers.
16823         (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
16824         addition to TREE_READONLY to assert the constantness of variables for
16825         elaboration purposes.
16826         (gnat_to_gnu_entity, subprogram cases): Change loops on formal
16827         parameters to call new Einfo function First_Formal_With_Extras.
16828         (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
16829         protected type with its corresponding discriminant, to obtain a usable
16830         declaration
16831         (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
16832         for a multiple elaboration of the "equivalent" type.
16833         (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
16834         into record_global_renaming_pointer.
16835         (gnat_to_gnu_entity) <E_Array_Type>: Do not force
16836         TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
16837         <E_Array_Subtype>: Likewise.
16838         (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
16839         incomplete subtypes and incomplete subtypes of incomplete types visible
16840         through a limited with clause.
16841         (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
16842         the base index type for the maximum size of the array only if they are
16843         constant.
16844         (gnat_to_gnu_entity, renaming object case): Do not wrap up the
16845         expression into a SAVE_EXPR if stabilization failed.
16846
16847         * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
16848         a result decl into DECL_BY_REFERENCE on this decl, now what is expected
16849         by lower level compilation passes.
16850         (gnat_genericize): New function, lowering a function body to GENERIC.
16851         Turn the type of RESULT_DECL into a real reference type if the decl
16852         has been marked DECL_BY_REFERENCE, and adjust references to the latter
16853         accordingly.
16854         (gnat_genericize_r): New function. Tree walking callback for
16855         gnat_genericize.
16856         (convert_from_reference, is_byref_result): New functions. Helpers for
16857         gnat_genericize_r.
16858         (create_type_decl): Call gnat_pushdecl before calling
16859         rest_of_decl_compilation, to make sure that field TYPE_NAME of
16860         type_decl is properly set before calling the debug information writers.
16861         (write_record_type_debug_info): The heuristics which compute the
16862         alignment of a field in a variant record might not be accurate. Add a
16863         safety test to make sure no alignment is set to a smaller value than
16864         the alignment of the field type.
16865         (make_dummy_type): Use the Non_Limited_View as the underlying type if
16866         the type comes from a limited_with clause. Do not loop on the full view.
16867         (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
16868         (dummy_node_table): New global variable, moved from decl.c.
16869         (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
16870         (save_gnu_tree): Use above macros.
16871         (get_gnu_tree): Likewise.
16872         (present_gnu_tree): Likewise.
16873         (init_dummy_type): New function, moved from decl.c. Use above macros.
16874         (make_dummy_type): Likewise.
16875         (tree_code_for_record_type): New function extracted from make_dummy_type
16876         (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
16877         (static_ctors): Change it to a vector, make static.
16878         (static_dtors): Likewise.
16879         (end_subprog_body): Adjust for above change.
16880         (build_global_cdtor): Moved from trans.c.
16881         (gnat_write_global_declarations): Emit global constructor and
16882         destructor, and call cgraph_optimize before emitting debug info for
16883         global declarations.
16884         (global_decls): New global variable.
16885         (gnat_pushdecl): Store the global declarations in global_decls, for
16886         later use.
16887         (gnat_write_global_declarations): Emit debug information for global
16888          declarations.
16889         (create_var_decl_1): Former create_var_decl, with an extra argument to
16890          state whether the creation of a CONST_DECL is allowed.
16891         (create_var_decl): Behavior unchanged. Now a wrapper around
16892         create_var_decl_1 allowing CONST_DECL creation.
16893         (create_true_var_decl): New function, similar to create_var_decl but
16894         forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
16895         (create_field_decl): Do not always mark the field as addressable
16896         if its type is an aggregate.
16897         (global_renaming_pointers): New static variable.
16898         (add_global_renaming_pointer): New function.
16899         (get_global_renaming_pointers): Likewise.
16900
16901         * misc.c (gnat_dwarf_name): New function.
16902         (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
16903         (gnat_post_options): Add comment about structural alias analysis.
16904         (gnat_parse_file): Do not call cgraph_optimize here.
16905         (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
16906
16907         * trans.c (process_freeze_entity): Don't abort if we already have a
16908         non dummy GCC tree for a Concurrent_Record_Type, as it might
16909         legitimately have been elaborated while processing the associated
16910         Concurrent_Type prior to this explicit freeze node.
16911         (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
16912         exception handler volatile if it is of variable size.
16913         (process_type): Remove bypass for types coming from a limited_with
16914         clause.
16915         (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
16916         actual, convert the corresponding gnu_actual to the real destination
16917         type when necessary.
16918         (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
16919         originally TREE_READONLY but whose elaboration cannot be performed
16920         statically.
16921         Part of fix for F504-021.
16922         (tree_transform, subprogram cases): Change loops on formal parameters to
16923         call new Einfo function First_Formal_With_Extras.
16924         (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
16925         stemming from type conversion for the lhs.
16926         (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
16927         number of bits per unit for components of records.
16928         (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
16929         (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
16930         with At_End_Proc after the SJLJ EH cleanup.
16931         (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
16932         compilation unit.
16933         (elaborate_all_entities): Do not retest type_annotate_only.
16934         (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
16935         result type of an abstract subprogram, which may be an itype associated
16936         with an anonymous access result (related to AI-318-02).
16937         (build_global_cdtor): Move to utils.c.
16938         (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
16939         this choice is not a null tree nor an integer constant.
16940         (gigi): Run unshare_save_expr via walk_tree_without_duplicates
16941         on the body of elaboration routines instead of mark_unvisited.
16942         (add_stmt): Do not mark the tree.
16943         (add_decl_expr): Tweak comment.
16944         (mark_unvisited): Delete.
16945         (unshare_save_expr): New static function.
16946         (call_to_gnu): Issue an error when making a temporary around a
16947         procedure call because of non-addressable actual parameter if the
16948         type of the formal is by_reference.
16949         (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
16950         after building the elaboration routine.
16951
16952 2006-10-31  Bob Duff  <duff@adacore.com>
16953
16954         * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
16955         as finalization-started, so we can raise Program_Error on 'new'.
16956
16957         * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
16958         collection has already started.
16959
16960         * s-finimp.ads (Collection_Finalization_Started): Added new special
16961         flag value for indicating that a collection's finalization has started.
16962
16963         * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
16964         create a task whose master has already waited for dependent tasks.
16965
16966 2006-10-31  Robert Dewar  <dewar@adacore.com>
16967
16968         * lib.adb, lib.ads: (In_Predefined_Unit): New functions
16969
16970         * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
16971         a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
16972         a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
16973         a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
16974         a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
16975         a-except-2005.ads: Add pragma Preelaborable_Warning
16976
16977 2006-10-31  Robert Dewar  <dewar@adacore.com>
16978             Jose Ruiz  <ruiz@adacore.com>
16979
16980         * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
16981
16982         * ali.adb (Get_Name): Properly handle scanning of wide character names
16983         encoded with brackets notation.
16984         (Known_ALI_Lines): Add S lines to this list.
16985         (Scan_ALI): Acquire S (priority specific dispatching) lines.
16986         New flag Elaborate_All_Desirable in unit table
16987
16988         * ali.ads (Priority_Specific_Dispatching): Add this range of
16989         identifiers to be used for Priority_Specific_Dispatching table entries.
16990         (ALIs_Record): Add First_Specific_Dispatching and
16991         Last_Specific_Dispatching that point to the first and last entries
16992         respectively in the priority specific dispatching table for this unit.
16993         (Specific_Dispatching): Add this table for storing each S (priority
16994         specific dispatching) line encountered in the input ALI file.
16995         New flag Elaborate_All_Desirable in unit table
16996
16997         * bcheck.adb: (Check_Configuration_Consistency): Add call to
16998         Check_Consistent_Dispatching_Policy.
16999         (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
17000         verifying that the use of Priority_Specific_Dispatching,
17001         Task_Dispatching_Policy, and Locking_Policy is consistent across the
17002         partition.
17003
17004         * bindgen.adb: (Public_Version_Warning): function removed.
17005         (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
17006         required information from ALI files in order to initialize the table
17007         containing the specific dispatching policy.
17008         (Gen_Adainit_Ada): Generate the variables required for priority specific
17009         dispatching entries (__gl_priority_specific_dispatching and
17010         __gl_num_specific_dispatching).
17011         (Gen_Adainit_C): Generate the variables required for priority specific
17012         dispatching entries (__gl_priority_specific_dispatching and
17013         __gl_num_specific_dispatching).
17014         (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
17015         pragma entries.
17016         (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
17017         (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
17018         (Tab_To): Removed.
17019         (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
17020         a call to gnat_set_globals.
17021         Generate a string containing settings from
17022         Priority_Specific_Dispatching pragma entries.
17023         (Gen_Object_Files_Options): Do not include the runtime libraries when
17024         pragma No_Run_Time is specified.
17025
17026         * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
17027         consistency with s-intman-posix.adb.
17028         (__gnat_error_handler, case FreeBSD): Account for the fact that the
17029         handler is installed with SA_SIGINFO.
17030         (__gnat_adjust_context_for_raise, FreeBSD case): New function for
17031         FreeBSD ZCX support, copied from Linux version.
17032         Add MaRTE-specific definitions for the linux target. Redefine sigaction,
17033         sigfillset, and sigemptyset so the routines defined by MaRTE.
17034         (__gl_priority_specific_dispatching): Add this variable that stores the
17035         string containing priority specific dispatching policies in the
17036         partition.
17037         (__gl_num_specific_dispatching): Add this variable that indicates the
17038         highest priority for which a priority specific dispatching pragma
17039         applies.
17040         (__gnat_get_specific_dispatching): Add this routine that returns the
17041         priority specific dispatching policy, as set by a
17042         Priority_Specific_Dispatching pragma appearing anywhere in the current
17043         partition. The input argument is the priority number, and the result
17044         is the upper case first character of the policy name.
17045         (__gnat_set_globals): Now a dummy function.
17046         (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
17047         mechargs instead of sigargs, as the latter can be retrieved from the
17048         former and sigargs is not what we want on ia64.
17049         (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
17050         mechargs argument.
17051         (__gnat_adjust_context_for_raise, ia64-vms): New function.
17052         (tasking_error): Remove unused symbol.
17053         (_abort_signal): Move this symbol to the IRIX specific part since this
17054         is the only target that uses this definition.
17055         (Check_Abort_Status): Move this symbol to the IRIX specific part since
17056         this is the only target that uses this definition.
17057         (Lock_Task): Remove unused symbol.
17058         (Unlock_Task): Remove unused symbol.
17059
17060         * lib-writ.adb (Write_ALI): Output new S lines for
17061         Priority_Specific_Dispatching pragmas.
17062         Implement new flag BD for elaborate body desirable
17063
17064         * lib-writ.ads: Document S lines for Priority Specific Dispatching.
17065         (Specific_Dispatching): Add this table for storing the entries
17066         corresponding to Priority_Specific_Dispatching pragmas.
17067         Document new BD flag for elaborate body desirable
17068
17069         * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
17070         of known pragmas.
17071
17072 2006-10-31  Javier Miranda  <miranda@adacore.com>
17073
17074         * a-tags.ads, a-tags.adb:
17075         (Predefined_DT): New function that improves readability of the code.
17076         (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
17077         Inherit_DT): Use the new function Predefined_DT to improve code
17078         readability.
17079         (Register_Interface_Tag): Update assertion.
17080         (Set_Interface_Table): Update assertion.
17081         (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
17082         determining progenitor interfaces in Tags.
17083         (Inherit_CPP_DT): New subprogram.
17084
17085         * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
17086         analysis of the thunk code.
17087         (Expand_Interface_Conversion): Handle run-time conversion of
17088         access to class wide types.
17089         (Expand_Dispatching_Call): When generating the profile for the
17090         subprogram itype for a dispatching operation, properly terminate the
17091         formal parameters chaind list (set the Next_Entity of the last formal
17092         to Empty).
17093         (Collect_All_Interfaces): Removed. This routine has been moved to
17094         sem_util and renamed as Collect_All_Abstract_Interfaces.
17095         (Set_All_DT_Position): Hidden entities associated with abstract
17096         interface primitives are not taken into account in the check for
17097         3.9.3(10); this check is done with the aliased entity.
17098         (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
17099         interfacing with CPP by default.
17100         (Expand_Interface_Conversion): Add missing support for static conversion
17101         from an interface to a tagged type.
17102         (Collect_All_Interfaces): Add new out formal containing the list of
17103         abstract interface types to cleanup the subprogram Make_DT.
17104         (Make_DT): Update the code to generate the table of interfaces in case
17105         of abstract interface types.
17106         (Is_Predefined_Dispatching_Alias): New function that returns true if
17107         a primitive is not a predefined dispatching primitive but it is an
17108         alias of a predefined dispatching primitive.
17109         (Make_DT): If the ancestor of the type is a CPP_Class and we are
17110         compiling under full ABI compatibility mode we avoid the generation of
17111         calls to run-time services that fill the dispatch tables because under
17112         this mode we currently inherit the dispatch tables in the IP subprogram.
17113         (Write_DT): Emit an "is null" indication for a null procedure primitive.
17114         (Expand_Interface_Conversion): Use an address as the type of the formal
17115         of the internally built function that handles the case in which the
17116         target type is an access type.
17117
17118 2006-10-31  Robert Dewar  <dewar@adacore.com>
17119
17120         * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
17121
17122 2006-10-31  Robert Dewar  <dewar@adacore.com>
17123
17124         * bindusg.ads, bindusg.adb:
17125         Change to package and rename procedure as Display, which
17126         now ensures that it only outputs usage information once.
17127
17128 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
17129
17130         * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
17131         using RTPs.
17132
17133         * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
17134         when using RTPs.
17135
17136 2006-10-31  Robert Dewar  <dewar@adacore.com>
17137             Ed Schonberg  <schonberg@adacore.com>
17138
17139         * treepr.adb: Use new subtype N_Membership_Test
17140
17141         * checks.ads, checks.adb: Add definition for Validity_Check
17142         (Range_Or_Validity_Checks_Suppressed): New function
17143         (Ensure_Valid): Test Validity_Check suppressed
17144         (Insert_Valid_Check): Test Validity_Check suppressed
17145         (Insert_Valid_Check): Preserve Do_Range_Check flag
17146         (Validity_Check_Range): New procedure
17147         (Expr_Known_Valid): Result of membership test is always valid
17148         (Selected_Range_Checks): Range checks cannot be applied to discriminants
17149         by themselves. Disabling those checks must also be done for task types,
17150         where discriminants may be used for the bounds of entry families.
17151         (Apply_Address_Clause_Check): Remove side-effects if address expression
17152         is non-static and is not the name of a declared constant.
17153         (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
17154         Code cleanup and new error messages.
17155         (Enable_Range_Check): Test for some cases of suppressed checks
17156         (Generate_Index_Checks): Suppress index checks if index checks are
17157         suppressed for array object or array type.
17158         (Apply_Selected_Length_Checks): Give warning for compile-time detected
17159         length check failure, even if checks are off.
17160         (Ensure_Valid): Do not generate a check on an indexed component whose
17161         prefix is a packed boolean array.
17162         * checks.adb: (Alignment_Checks_Suppressed): New function
17163         (Apply_Address_Clause_Check): New procedure, this is a completely
17164         rewritten replacement for Apply_Alignment_Check
17165         (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
17166         we request a discriminal value only in case of discriminants.
17167         (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
17168         assignments where the target subtype is unconstrained and the target
17169         object is a parameter or dereference (other aliased cases are known
17170         to be unconstrained).
17171
17172 2006-10-31  Robert Dewar  <dewar@adacore.com>
17173
17174         * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
17175         prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
17176         vms_conv.adb: Fix bad table increment values (much too small)
17177
17178         * table.adb (Realloc): Make sure we get at least some new elements
17179         Defends against silly small values for table increment
17180
17181 2006-10-31  Robert Dewar  <dewar@adacore.com>
17182             Ed Schonberg  <schonberg@adacore.com>
17183             Bob Duff  <duff@adacore.com>
17184
17185         * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
17186         entities. Move other fields around to make this possible
17187         (Is_Derived_Type): Add missing call to Is_Type.
17188         (Extra_Formals): New function for subprograms, entries, subprogram
17189         types.
17190         (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
17191         (First_Formal_With_Extras): New function for subprogs, entries, subp
17192         types.
17193         (Write_Field28_Name): New procedure for node display of "Extra_Formals".
17194         Add node information for E_Return_Statement.
17195         (Elaborate_Body_Desirable): New flag
17196         (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
17197         to be Is_Inherently_Limited_Type, because return-by-reference has
17198         no meaning in Ada 2005.
17199         (E_Return_Statement): New entity kind.
17200         (Return_Applies_To): Field of E_Return_Statement.
17201         (Is_Return_Object): New flag in object entities.
17202         (Is_Dynamic_Scope): Make it True for E_Return_Statement.
17203         (Must_Have_Preelab_Init): New flag
17204         (Known_To_Have_Preelab_Init): New flag
17205         (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
17206         (Is_Visible_Formal): New flag on entities in formal packages.
17207         (Low_Bound_Known): New flag
17208         (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
17209         Incomplete_Kind.
17210         (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
17211         output when Id is an incomplete subtype.
17212
17213 2006-10-31  Robert Dewar  <dewar@adacore.com>
17214
17215         * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
17216         Avoid abbreviation Creat
17217         (Finalize): List all sources in extended mail source if -gnatl
17218         switch is active.
17219         Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
17220         (Finalize): Implement new -gnatl=xxx switch to output listing to file
17221         (Set_Specific_Warning_On): New procedure
17222         (Set_Specific_Warning_Off): New procedure
17223         Add implementation of new insertion \\
17224         (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
17225         (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
17226         types.
17227         (Error_Msg_Internal): Make sure that we set Last_Killed to
17228         True when a message from another package is suppressed.
17229         Implement insertion character ~ (insert string)
17230         (First_Node): Minor adjustments to get better placement.
17231
17232         * frontend.adb:
17233         Implement new -gnatl=xxx switch to output listing to file
17234
17235         * gnat1drv.adb:
17236         Implement new -gnatl=xxx switch to output listing to file
17237
17238         * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
17239         (Commands_To_Stdout): New flag
17240         Implement new -gnatl=xxx switch to output listing to file
17241         New switch Dump_Source_Text
17242         (Warn_On_Deleted_Code): New warning flag for -gnatwt
17243         Define Error_Msg_Line_Length
17244         (Warn_On_Assumed_Low_Bound): New switch
17245
17246         * osint.ads, osint.adb
17247         (Normalize_Directory_Name): Fix bug.
17248         Implement new -gnatl=xxx switch to output listing to file
17249         (Concat): Removed, replaced by real concatenation
17250         Make use of concatenation now allowed in compiler
17251         (Executable_Prefix.Get_Install_Dir): First get the full path, so that
17252         we find the 'lib' or 'bin' directory even when the tool has been
17253         invoked with a relative path.
17254         (Executable_Name): New function taking string parameters.
17255
17256         * osint-c.ads, osint-c.adb:
17257         Implement new -gnatl=xxx switch to output listing to file
17258
17259         * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
17260
17261         * switch-c.adb:
17262         Implement new -gnatl=xxx switch to output listing to file
17263         Recognize new -gnatL switch
17264         (no longer keep in old warning about old style usage)
17265         Use concatenation to simplify code
17266         Recognize -gnatjnn switch
17267         (Scan_Front_End_Switches): Clean up handling of -gnatW
17268         (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
17269
17270 2006-10-31  Robert Dewar  <dewar@adacore.com>
17271
17272         * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
17273         (Set_Specific_Warning_Off): New procedure
17274         (Warning_Specifically_Suppressed): New function
17275         (Validate_Specific_Warnings): New procedure
17276         (Output_Msg_Text): Complete rewrite to support -gnatjnn
17277
17278         * err_vars.ads: Implement insertion character ~ (insert string)
17279
17280 2006-10-31  Bob Duff  <duff@adacore.com>
17281             Ed Schonberg  <schonberg@adacore.com>
17282
17283         * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
17284         the parent part is a build-in-place function call, generate assignments.
17285         (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
17286         are build-in-place function calls.
17287         (Replace_Self_Reference): New subsidiary of
17288         Make_OK_Assignment_Statement, to replace an access attribute that is a
17289         self-reference into an access to the appropriate component of the
17290         target object. Generalizes previous mechanism to handle self-references
17291         nested at any level.
17292         (Is_Self_Referential_Init): Remove, not needed.
17293         (Is_Self_Referential_Init): New predicate to simplify handling of self
17294         referential components in record aggregates.
17295         (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
17296         check for presence of entity before checking for self-reference.
17297         (Has_Default_Init_Comps): Return True if a component association is a
17298         self-reference to the enclosing type, which can only come from a
17299         default initialization.
17300         (Make_OK_Assignment_Statement): If the expression is of the form
17301         Typ'Acc, where Acc is an access attribute, the expression comes from a
17302         default initialized self-referential component.
17303         (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
17304         that has been derived from several abstract interfaces we must also
17305         initialize the tags of the secondary dispatch tables.
17306
17307 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17308             Thomas Quinot  <quinot@adacore.com>
17309             Javier Miranda  <miranda@adacore.com>
17310             Robert Dewar  <dewar@adacore.com>
17311
17312         * exp_attr.adb:
17313         (Expand_Access_To_Protected_Op): If the context indicates that an access
17314         to a local operation may be transfered outside of the object, create an
17315         access to the wrapper operation that must be used in an external call.
17316         (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
17317         target, pass the Valid attribute applied to a floating-point prefix on
17318         to the back end without expansion.
17319         (Storage_Size): Use the new run-time function Storage_Size to retrieve
17320         the allocated storage when it is specified by a per-object expression.
17321         (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
17322         Nothing to do here, the attribute has been rewritten during semantic
17323         analysis.
17324         (Expand_Attribute_Reference): Handle expansion of the new Priority
17325         attribute
17326         (Find_Fat_Info): Handle case of universal real
17327         (Expand_Access_To_Protected_Op): Fix use of access to protected
17328         subprogram from inside the body of a protected entry.
17329         (Expand_Access_To_Protected_Op): Common procedure for the expansion of
17330         'Access and 'Unrestricted_Access, to transform the attribute reference
17331         into a fat pointer.
17332         (Is_Constrained_Aliased_View): New predicate to help determine whether a
17333         subcomponent's enclosing variable is aliased with a constrained subtype.
17334         (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
17335         test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
17336         an aliased prefix must be known to be constrained in order to use True
17337         for the attribute value, and now it's possible for some aliased views
17338         to be unconstrained.
17339
17340 2006-10-31  Robert Dewar  <dewar@adacore.com>
17341
17342         * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
17343         (Expand_Entity_Reference): Correct error of not handling subprogram
17344         formals in current_value processing.
17345
17346 2006-10-31  Javier Miranda  <miranda@adacore.com>
17347             Robert Dewar  <dewar@adacore.com>
17348             Ed Schonberg  <schonberg@adacore.com>
17349             Gary Dismukes  <dismukes@adacore.com>
17350
17351         * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
17352         register in the final list objects containing class-wide interfaces;
17353         otherwise we incorrectly register the tag of the interface in the final
17354         list.
17355         (Make_Controlling_Function_Wrappers): Add missing barrier to do not
17356         generate the wrapper if the parent primitive is abstract. This is
17357         required to report the correct error message.
17358         (Expand_N_Subtype_Indication): Do validity checks on range
17359         (Clean_Task_Names): If an initialization procedure includes a call to
17360         initialize a task (sub)component, indicate that the procedure will use
17361         the secondary stack.
17362         (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
17363         compatibility for interfacing with CPP by default.
17364         (Expand_N_Object_Declaration): Only build an Adjust call when the
17365         object's type is a nonlimited controlled type.
17366         * exp_ch3.adb: Add with and use of Exp_Ch6.
17367         (Expand_N_Object_Declaration): Check for object initialization that is a
17368         call to build-in-place function and apply Make_Build_In_Place_Call_In_
17369         Object_Declaration to the call.
17370         (Freeze_Type): When the designated type of an RACW was not frozen at the
17371         point where the RACW was declared, validate the primitive operations
17372         with respect to E.2.2(14) when it finally is frozen.
17373         (Build_Initialization_Call,Expand_Record_Controller): Rename
17374         Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
17375         return-by-reference has no meaning in Ada 2005.
17376         (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
17377         to register tag of the immediate ancestor interfaces in the
17378         run-time structure.
17379         (Init_Secondary_Tags): Moved to the specification to allow the
17380         initialization of extension aggregates with abstract interfaces.
17381         (Build_Master_Renaming): Make public, for use by function declarations
17382         whose return type is an anonymous access type.
17383         (Freeze_Record_Type): Replace call to Insert_List_Before by call to
17384         Insert_List_Before_And_Analyze after the generation of the specs
17385         associated with null procedures.
17386         (Expand_Tagged_Root): Update documentation in its specification.
17387         (Init_Secondary_Tags): Update documentation.
17388         (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
17389         tibility mode and the immediate ancestor is a CPP_Pragma tagged type
17390         then generate code to inherit the contents of the dispatch table
17391         directly from the ancestor.
17392         (Expand_Record_Controller): Insert controller component after tags of
17393         implemented interfaces.
17394         (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
17395         create null procedure overridings when null procedures are inherited
17396         from interfaces.
17397         (Make_Null_Procedure_Specs): New procedure to generate null procedure
17398         declarations for overriding null primitives inherited from interfaces.
17399         (Is_Null_Interface_Procedure): New function in
17400         Make_Null_Procedure_Specs.
17401         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
17402         immediate ancestor of a tagged type is an abstract interface type we
17403         must generate the specification of the predefined primitives associated
17404         with controlled types (because the dispatch table of the ancestor is
17405         null and hence these entries cannot be inherited). This is required to
17406         elaborate well the dispatch table.
17407
17408 2006-10-31  Javier Miranda  <miranda@adacore.com>
17409             Ed Schonberg  <schonberg@adacore.com>
17410             Bob Duff  <duff@adacore.com>
17411             Gary Dismukes  <dismukes@adacore.com>
17412             Robert Dewar  <dewar@adacore.com>
17413
17414         * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
17415         conversion.
17416         (Expand_N_In): Do validity checks on range
17417         (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
17418         (Expand_N_Allocator): For "new T", if the object is constrained by
17419         discriminant defaults, allocate the right amount of memory, rather than
17420         the maximum for type T.
17421         (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
17422         when the allocator is initialized by a build-in-place call, since the
17423         allocator is already rewritten as a reference to the function result,
17424         and this prevents an unwanted duplication of the function call.
17425         Add with and use of Exp_Ch6.
17426         (Expand_Allocator_Expresssion): Check for an allocator whose expression
17427         is a call to build-in-place function and apply
17428         Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
17429         untagged designated types).
17430         (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
17431         optimization if source or target is biased.
17432         (Expand_N_Allocator): Add comments for case of an allocator within a
17433         function that returns an anonymous access type designating tasks.
17434         (Expand_N_Allocator): apply discriminant checks for access
17435         discriminants of anonymous access types (AI-402, AI-416)
17436
17437 2006-10-31  Bob Duff  <duff@adacore.com>
17438             Robert Dewar  <dewar@adacore.com>
17439             Gary Dismukes  <dismukes@adacore.com>
17440             Ed Schonberg  <schonberg@adacore.com>
17441
17442         * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
17443
17444         * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
17445         (Expand_N_Assignment_Statement): Call
17446         Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
17447         build-in-place function call. Currently, this can happen only for
17448         assignments that come from aggregates.
17449         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
17450         in order to alleviate the upward compatibility introduced by AI-318.
17451         (Expand_N_Extended_Return_Statement): Add support for handling the
17452         return object as a build-in-place result.
17453         (Expand_Non_Function_Return): Implement simple return statements nested
17454         within an extended return.
17455         (Enable_New_Return_Processing): Turn on the new processing of return
17456         statements.
17457         (Expand_Non_Function_Return): For a return within an extended return,
17458         don't raise Program_Error, because Sem_Ch6 now gives a warning.
17459         (Expand_N_Extended_Return_Statement): Implement AI-318
17460         (Expand_Simple_Function_Return): Ditto.
17461         (Expand_N_If_Statement): Handle new -gnatwt warning
17462         (Expand_N_Case_Statement): Handle new -gnatwt warning
17463         (Expand_N_Assignment): Handle assignment to the Priority attribute of
17464         a protected object.
17465         (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
17466         validity checking of assignments to elementary record components.
17467         (Expand_N_Return_Statement): return Class Wide types on the secondary
17468         stack independantly of their controlled status since with HIE runtimes,
17469         class wide types are not potentially controlled anymore.
17470
17471         * expander.adb (Expand): Add case for new N_Extended_Return_Statement
17472         node kind.
17473
17474         * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
17475         Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
17476         it expects a block, procedure, or task. The return statement will get
17477         turned into a block, and Expand_Cleanup_Actions will happen then.
17478
17479 2006-10-31  Robert Dewar  <dewar@adacore.com>
17480             Ed Schonberg  <schonberg@adacore.com>
17481             Bob Duff  <duff@adacore.com>
17482             Gary Dismukes  <dismukes@adacore.com>
17483
17484         * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
17485         capability.
17486         (Expand_Inlined_Call): Tagged types are by-reference types, and
17487         therefore should be replaced by a renaming declaration in the expanded
17488         body, as is done for limited types.
17489         (Expand_Call): If this is a call to a function with dispatching access
17490         result, propagate tag from context.
17491         (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
17492         CPP by default.
17493         (Make_Build_In_Place_Call_In_Assignment): New procedure to do
17494         build-in-place when the right-hand side of an assignment is a
17495         build-in-place function call.
17496         (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
17497         of the explicit dereference of the allocator to the result subtype of
17498         the build-in-place function. This is needed to satisfy type checking
17499         in cases where the caller's return object is created by an allocator for
17500         a class-wide access type and the type named in the allocator is a
17501         specific type.
17502         (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
17503         conversion of the reference to the declared object to the result subtype
17504         of the build-in-place function. This is needed to satisfy type checking
17505         in cases where the declared object has a class-wide type. Also, in the
17506         class-wide case, change the type of the object entity to the specific
17507         result subtype of the function, to avoid passing a class-wide object
17508         without explicit initialization to the back end.
17509         (Register_Interface_DT_Entry): Moved outside the body of
17510         Freeze_Subprogram because this routine is now public; it is called from
17511         Check_Dispatching_Overriding to handle late overriding of abstract
17512         interface primitives.
17513         (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
17514         adding an implicit access actual on a call to a build-in-place function.
17515         (Expand_Actuals): Test for an actual parameter that is a call to a
17516         build-in-place function and apply
17517         Make_Build_In_Place_Call_In_Anonymous_Context to the call.
17518         (Is_Build_In_Place_Function): New function to determine whether an
17519         entity is a function whose calls should be handled as build-in-place.
17520         (Is_Build_In_Place_Function_Call): New function to determine whether an
17521         expression is a function call that should handled as build-in-place.
17522         (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
17523         calls to build-in-place functions as the initialization of an allocator.
17524         (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
17525         handling calls to build-in-place functions in contexts that do not
17526         involve init of a separate object (for example, actuals of subprogram
17527         calls).
17528         (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
17529         handling calls to build-in-place functions as the initialization of an
17530         object declaration.
17531         (Detect_Infinite_Recursion): Add explicit parameter Process to
17532         instantiation of Traverse_Body to avoid unreferenced warning.
17533         (Check_Overriding_Inherited_Interfaces): Removed.
17534         (Register_Interface_DT_Entry): Code cleanup.
17535         (Register_Predefined_DT_Entry): Code cleanup.
17536         (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
17537         inlined statements if within a transient scope.
17538         (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
17539         formal parameters with occurrences of actuals in inlined body, establish
17540         visibility on the proper view of the actual's subtype for the body's
17541         context.
17542         (Freeze_Subprogram): Do nothing if we are compiling under full ABI
17543         compatibility mode and we have an imported CPP subprogram because
17544         for now we assume that imported CPP primitives correspond with
17545         objects whose constructor is in the CPP side (and therefore we
17546         don't need to generate code to register them in the dispatch table).
17547         (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
17548         aligned selected component.
17549         (Add_Call_By_Copy_Node): Add missing code to handle the case in which
17550         the actual of an in-mode parameter is a type conversion.
17551         (Expand_Actuals): If the call does not come from source and the actual
17552         is potentially misaligned, let gigi handle it rather than rejecting the
17553         (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
17554         Class Wide types as returning by reference independantly of their
17555         controlled status since with HIE runtimes class wide types are not
17556         potentially controlled anymore.
17557
17558 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17559
17560         * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
17561         references that are private components of the protected object.
17562         (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
17563         (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
17564         instantiation to deal with warnings.
17565         (Initialize_Protection): If expression for priority is non-static, use
17566         System_Priority as its expected type, in case the expression has not
17567         been analyzed yet.
17568
17569 2006-10-31  Robert Dewar  <dewar@adacore.com>
17570
17571         * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
17572         initialization of Homonym_Len.
17573         (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
17574         names from fully qualified name. Fixes problem of duplicate
17575         external names differing only in the presence of such a block name.
17576
17577 2006-10-31  Thomas Quinot  <quinot@adacore.com>
17578             Pablo Oliveira  <oliveira@adacore.com>
17579
17580         * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
17581         subprogram Ids, even if they are not yet assigned.
17582         (Build_Subprogram_Id): It is now this function that will take care of
17583         calling Assign_Subprogram_Ids if necessary.
17584         (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
17585         should be done only once they are assigned.
17586         (Build_From_Any_Function, case of tagged types): Add missing call to
17587         Allocate_Buffer.
17588         (Corresponding_Stub_Type): New subprogram. Returns the associated stub
17589         type for an RACW type.
17590         (Add_RACW_Features): When processing an RACW declaration for which the
17591         designated type is already frozen, enforce E.2.2(14) rules immediately.
17592         (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
17593         special reordering of controlling formals.
17594
17595         * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
17596         associated stub type for an RACW type.
17597
17598 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17599
17600         * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
17601         fixed-point operations in an integer context, i.e. as operands of a
17602         conversion to an integer type, indicate that result must be rounded.
17603
17604 2006-10-31  Robert Dewar  <dewar@adacore.com>
17605
17606         * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
17607         cases, pass the encoding method, since it is now required by the run
17608         time.
17609
17610         * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
17611         assumption that Str'First = 1.
17612         (Value_Wide_Character): Takes EM (encoding method) parameter and passes
17613         it on to the Value_Wide_Wide_Character call.
17614         (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
17615         properly handles a string of the form quote-encoded_wide_char-quote.
17616
17617         * s-wchcnv.adb: Minor reformatting
17618
17619 2006-10-31  Javier Miranda  <miranda@adacore.com>
17620
17621         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
17622         run-time membership test to ensure that the constructed object
17623         implements the target abstract interface.
17624
17625 2006-10-31  Robert Dewar  <dewar@adacore.com>
17626
17627         * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
17628         Machine_Attribute pragma internally to implement the user pragma.
17629         Add processing for pragma Interface so that it is now completely
17630         equivalent to pragma Import.
17631
17632         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
17633         so that it can be applied to all entities, including record components
17634         and enumeration literals.
17635         (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
17636         priority ranges are correct, verify compatibility against task
17637         dispatching and locking policies, and if everything is correct an entry
17638         is added to the table containing priority specific dispatching entries
17639         for this compilation unit.
17640         (Delay_Config_Pragma_Analyze): Delay processing
17641         Priority_Specific_Dispatching pragmas because when processing the
17642         pragma we need to access run-time data, such as the range of
17643         System.Any_Priority.
17644         (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
17645         Allow pragma Unreferenced as a context item
17646         Add pragma Preelaborable_Initialization
17647         (Analyze_Pragma, case Interface): Interface is extended so that it is
17648         now syntactically and semantically equivalent to Import.
17649         (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
17650         insertion characters.
17651         Add handling for Pragma_Wide_Character_Encoding
17652         (Process_Restrictions_Restriction_Warnings): Ensure that a warning
17653         never supercedes a real restriction, and that a real restriction
17654         always supercedes a warning.
17655         (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
17656         appropriate form.
17657
17658 2006-10-31  Bob Duff  <duff@adacore.com>
17659             Ed Schonberg  <schonberg@adacore.com>
17660             Robert Dewar  <dewar@adacore.com>
17661
17662         * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
17663         Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
17664         Is_Inherently_Limited_Type, because return-by-reference has no meaning
17665         in Ada 2005.
17666         (Find_Node_To_Be_Wrapped): Use new method of determining the result
17667         type of the function containing a return statement, because the
17668         Return_Type field was removed. We now use the Return_Applies_To field.
17669
17670         * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
17671         (Build_Task_Image_Decl): If procedure is not called from an
17672         initialization procedure, indicate that function that builds task name
17673         uses the sec. stack. Otherwise the enclosing initialization procedure
17674         will carry the indication.
17675         (Insert_Actions): Remove N_Return_Object_Declaration. We now use
17676         N_Object_Declaration instead.
17677         (Kill_Dead_Code): New interface to implement -gnatwt warning for
17678         conditional dead code killed, and change implementation accordingly.
17679         (Insert_Actions): Add N_Return_Object_Declaration case.
17680         Correct comment to mention N_Extension_Aggregate node.
17681         (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
17682         attempts to save information for global variables which cannot be
17683         safely tracked.
17684         (Get_Current_Value_Condition): Handle conditions the other way round
17685         (constant on left). Also handle right operand of AND and AND THEN
17686         (Set_Current_Value_Condition): Corresponding changes
17687         (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
17688         (Get_Current_Value_Condition): Handle simple boolean operands
17689         (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
17690         (Get_Current_Value_Condition): If the variable reference is within an
17691         if-statement, does not appear in the list of then_statments, and does
17692         not come from source, treat it as being at unknown location.
17693         (Get_Current_Value_Condition): Enhance to allow while statements to be
17694         processed as well as if statements.
17695         (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
17696         come from source.
17697         (OK_To_Do_Constant_Replacement): Allow constant replacement within body
17698         of loop. This is safe now that we fixed Kill_Current_Values.
17699         (OK_To_Do_Constant_Replacement): Check whether current scope is
17700         Standard, before examining outer scopes.
17701
17702 2006-10-31  Vincent Celier  <celier@adacore.com>
17703
17704         * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
17705         When True, apply VMS treatment to children of packages A, G, I and S.
17706         For F320-016
17707
17708         * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
17709
17710 2006-10-31  Robert Dewar  <dewar@adacore.com>
17711             Ed Schonberg  <schonberg@adacore.com>
17712
17713         * freeze.adb: Add handling of Last_Assignment field
17714         (Warn_Overlay): Supply missing continuation marks in error msgs
17715         (Freeze_Entity): Add check for Preelaborable_Initialization
17716
17717         * g-comlin.adb: Add Warnings (Off) to prevent new warning
17718
17719         * g-expect.adb: Add Warnings (Off) to prevent new warning
17720
17721         * lib-xref.adb: Add handling of Last_Assignment field
17722         (Generate_Reference): Centralize handling of pragma Obsolescent here
17723         (Generate_Reference): Accept an implicit reference generated for a
17724         default in an instance.
17725         (Generate_Reference): Accept a reference for a node that is not in the
17726         main unit, if it is the generic body corresponding to an subprogram
17727         instantiation.
17728
17729         * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
17730
17731         * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
17732         -gnatwq/Q.
17733         (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
17734         exception handler.
17735         (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
17736         use clauses, to avoid messages on packages used to qualify, and also
17737         to avoid messages from obsolescent units.
17738         (Warn_On_Useless_Assignments): Don't generate messages for imported
17739         and exported variables.
17740         (Warn_On_Useless_Assignments): New procedure
17741         (Output_Obsolescent_Entity_Warnings): New procedure
17742         (Check_Code_Statement): New procedure
17743
17744         * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
17745         Change name Is_Ada_2005 to Is_Ada_2005_Only
17746         (Last_Assignment): New field for useless assignment warning
17747
17748 2006-10-31  Olivier Hainque  <hainque@adacore.com>
17749
17750         * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
17751         closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
17752
17753 2006-10-31  Bob Duff  <duff@adacore.com>
17754             Robert Dewar  <dewar@adacore.com>
17755             Ed Schonberg  <schonberg@adacore.com>
17756
17757         * g-awk.adb (Default_Session, Current_Session): Compile this file in
17758         Ada 95 mode, because it violates the new rules for AI-318.
17759
17760         * g-awk.ads: Use overloaded subprograms in every case where we used to
17761         have a default of Current_Session. This makes the code closer to be
17762         correct for both Ada 95 and 2005.
17763
17764         * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
17765         code, relying on the fact that the compiler generates a warning
17766         instead of an error in -gnatg mode.
17767
17768         * lib-xref.ads (Xref_Entity_Letters): Add entry for new
17769         E_Return_Statement entity kind.
17770         Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
17771
17772         * par.adb (P_Interface_Type_Definition): Addition of one formal to
17773         report an error if the reserved word abstract has been previously found.
17774         (SS_End_Type): Add E_Return for new extended_return_statement syntax.
17775
17776         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
17777         parenthesized range attribute usage
17778         (P_Expression_No_Right_Paren): Add missing comment about error recovery.
17779
17780         * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
17781         in the syntax for extended_return_statement. This is not in the latest
17782         RM, but the ARG is expected to issue an AI allowing this.
17783         (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
17784         N_Return_Object_Declaration. We now use N_Object_Declaration instead.
17785         (P_Return_Object_Declaration, P_Return_Subtype_Indication,
17786         P_Return_Statement): Parse the new syntax for extended_return_statement.
17787
17788         * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
17789         Output_End_Missing): Add error-recovery code for the new
17790         extended_return_statement syntax; that is, the new E_Return entry on
17791         the scope stack.
17792
17793         * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
17794         limited to nonlimited, because otherwise we violate the new Ada 2005
17795         rules about returning limited types in function Create_AST_Handler in
17796         s-asthan.adb.
17797
17798         * sem.adb (Analyze): Add cases for new node kinds
17799         N_Extended_Return_Statement and N_Return_Object_Declaration.
17800
17801         * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
17802         type is in the same category as type of context before applying check,
17803         to prevent anomalies in instantiations.
17804         (Resolve_Aggregate): Remove test for limited components in aggregates.
17805         It's unnecessary in Ada 95, because if it has limited components, then
17806         it must be limited. It's wrong in Ada 2005, because limited aggregates
17807         are now allowed.
17808         (Resolve_Record_Aggregate): Move check for limited types later, because
17809         OK_For_Limited_Init requires its argument to have been resolved.
17810         (Get_Value): When copying the component default expression for a
17811         defaulted association in an aggregate, use the sloc of the aggregate
17812         and not that of the original expression, to prevent spurious
17813         elaboration errors, when the expression includes function calls.
17814         (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
17815         were missing. We also didn't handle qualified expressions. Now also
17816         allow function calls. Use new common routine OK_For_Limited_Init.
17817         (Resolve_Extension_Aggregate): Minor fix to bad error message (started
17818         with space can upper case letter).
17819
17820         * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
17821         Has_Static_Discriminants flag
17822         (Record_Type_Declaration): Diagnose an attempt to declare an interface
17823         type with discriminants.
17824         (Process_Range_Expr_In_Decl): Do validity checks on range
17825         (Build_Discriminant_Constraints): Use updated form of
17826         Denotes_Discriminant.
17827         (Process_Subtype): If the subtype is a private subtype whose full view
17828         is a concurrent subtype, introduce an itype reference to prevent scope
17829         anomalies in gigi.
17830         (Build_Derived_Record_Type, Collect_Interface_Primitives,
17831         Record_Type_Declaration):  The functionality of the subprograms
17832         Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
17833         is now performed by a single routine.
17834         (Build_Derived_Record_Type): If the type definition includes an explicit
17835         indication of limitedness, then the type must be marked as limited here
17836         to ensure that any access discriminants will not be treated as having
17837         a local anonymous access type.
17838         (Check_Abstract_Overriding): Issue a detailed error message when an
17839         abstract subprogram was not overridden due to incorrect mode of its
17840         first parameter.
17841         (Analyze_Private_Extension_Declaration): Add support for the analysis of
17842         synchronized private extension declarations. Verify that the ancestor is
17843         a limited or synchronized interface or in the generic case, the ancestor
17844         is a tagged limited type or synchronized interface and all progenitors
17845         are either limited or synchronized interfaces.
17846         Derived_Type_Declaration): Check for presence of private extension when
17847         dealing with synchronized formal derived types.
17848         Process_Full_View): Enchance the check done on the usage of "limited" by
17849         testing whether the private view is synchronized.
17850         Verify that a synchronized private view is completed by a protected or
17851         task type.
17852         (OK_For_Limited_Init_In_05): New function.
17853         (Analyze_Object_Declaration): Move check for limited types later,
17854         because OK_For_Limited_Init requires its argument to have been resolved.
17855         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
17856         in order to alleviate the upward compatibility introduced by AI-318.
17857         (Constrain_Corresponding_Record): If the constraint is for a component
17858         subtype, mark the itype as frozen, to avoid out-of-scope references to
17859         discriminants in the back-end.
17860         (Collect_Implemented_Interfaces): Protect the recursive algorithm of
17861         this subprogram against wrong sources.
17862         (Get_Discr_Value, Is_Discriminant): Handle properly references to a
17863         discriminant of limited type completed with a protected type, when the
17864         discriminant is used to constrain a private component of the type, and
17865         expansion is disabled.
17866         (Find_Type_Of_Object): Do not treat a return subtype that is an
17867         anonymous subtype as a local_anonymous_type, because its accessibility
17868         level is the return type of the enclosing function.
17869         (Check_Initialization): In -gnatg mode, turn the error "cannot
17870         initialize entities of limited type" into a warning.
17871         (OK_For_Limited_Init): Return true for generated nodes, since it
17872         sometimes violates the legality rules.
17873         (Make_Incomplete_Declaration): If the type for which an incomplete
17874         declaration is created happens to be the currently visible entity,
17875         preserve the homonym chain when removing it from visibility.
17876         (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
17877         inherited subprograms.
17878         (Access_Definition): If this is an access to function that is the return
17879         type of an access_to_function definition, context is a type declaration
17880         and the scope of the anonymous type is the current one.
17881         (Analyze_Subtype_Declaration): Add the defining identifier of a regular
17882         incomplete subtype to the set of private dependents of the original
17883         incomplete type.
17884         (Constrain_Discriminated_Type): Emit an error message whenever an
17885         incomplete subtype is being constrained.
17886         (Process_Incomplete_Dependents): Transform an incomplete subtype into a
17887         corresponding subtype of the full view of the original incomplete type.
17888         (Check_Incomplete): Properly detect invalid usage of incomplete types
17889         and subtypes.
17890
17891 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
17892
17893         * g-catiio.ads, g-catiio.adb (Value): New function.
17894         Given an input String, try and parse a valid Time value.
17895
17896 2006-10-31  Vincent Celier  <celier@adacore.com>
17897
17898         * g-debpoo.adb (Is_Valid): Correctly compute Offset using
17899         Integer_Address arithmetic, as in Set_Valid.
17900
17901 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
17902             Robert Dewar  <dewar@adacore.com>
17903
17904         * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
17905         handling executable extension manually and duplicating code.
17906
17907         * make.adb: Implement new -S switch
17908         (Gnatmake): Use new function Osint.Executable_Name instead
17909         of handling executable extension manually.
17910
17911         * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
17912         is specified, the executable name ends with this suffix.
17913         Take advantage of Osint.Executable_Name instead of duplicating code.
17914
17915         * switch-m.adb: Recognize new gnatmake -S switch
17916
17917         * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
17918         variable.
17919         (Get_Target_Parameters): Set Executable_Extension_On_Target if
17920         available.
17921
17922         * makeusg.adb: Add line for gnatmake -S switch
17923
17924 2006-10-31  Vincent Celier  <celier@adacore.com>
17925
17926         * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
17927         call it with -static-libgcc, as there are some platforms, such as
17928         Darwin, where one of these two switches is compulsory to link.
17929
17930 2006-10-31  Vincent Celier  <celier@adacore.com>
17931
17932         * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
17933         instead of ADA_PROJECT_PATH, for the project path.
17934         (Gnatls): When displaying the project path directories, use host dir
17935         specs.
17936
17937         * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
17938         names in the project path, as absolute paths may correspond to
17939         multi-valued VMS logical names.
17940
17941 2006-10-31  Vincent Celier  <celier@adacore.com>
17942
17943         * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
17944         absolute path name.
17945         (Locate_Regular_File): Ditto
17946         (Change_Dir): Remove, no longer used
17947         (Normalize_Pathname): Do not use Change_Dir to get the drive letter
17948         on Windows. Get it calling Get_Current_Dir.
17949         (OpenVMS): Remove imported boolean, no longer needed.
17950         (Normalize_Pathname)[VMS]: Do not resolve directory names.
17951         (Pid_To_Integer): New function to convert a Process_Id to  Integer
17952
17953 2006-10-31  Thomas Quinot  <quinot@adacore.com>
17954
17955         * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
17956         sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
17957         to No_Socket.
17958         (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
17959         W_Sig_Socket.
17960
17961 2006-10-31  Robert Dewar  <dewar@adacore.com>
17962
17963         * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
17964         initial letter o as a zero.
17965
17966 2006-10-31  Robert Dewar  <dewar@adacore.com>
17967
17968         * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
17969
17970 2006-10-31  Robert Dewar  <dewar@adacore.com>
17971
17972         * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
17973         variant records
17974         (Layout_Variant_Record): Retrieve the discriminants from the entity
17975         rather than from the type definition, because in the case of a full
17976         type for a private type we need to take the discriminants from the
17977         partial view.
17978         (Layout_Component_List): When applying the Max operator to variants with
17979         a nonstatic size, check whether either operand is static and scale that
17980         operand from bits to storage units before applying Max.
17981         (Layout_Type): In VMS, if a C-convention access type has no explicit
17982         size clause (and does not inherit one in the case of a derived type),
17983         then the size is reset to 32 from 64.
17984
17985 2006-10-31  Vincent Celier  <celier@adacore.com>
17986
17987         * lib-load.adb (Load_Unit): Skip the test for a unit not found when
17988         its file has already been loaded, according to the unit being loaded,
17989         not to the current value of Multiple_Unit_Index.
17990
17991 2006-10-31  Thomas Quinot  <quinot@adacore.com>
17992             Eric Botcazou  <ebotcazou@adacore.com>
17993             Arnaud Charlet  <charlet@adacore.com>
17994
17995         * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
17996         (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
17997         possible.
17998         (a-except.o): Pass it to the compiler.
17999         (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
18000         (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
18001         a-calend-mingw.adb version.
18002
18003         * Makefile.rtl: Added s-dsaser.
18004         Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
18005         (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
18006         Ada.Dispatching.Round_Robin.
18007         Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
18008
18009         * Make-lang.in: Remove all references to gt-ada-decl.h.
18010         Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
18011         sources.
18012         Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
18013         Update dependencies.
18014
18015         * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
18016
18017 2006-10-31  Vincent Celier  <celier@adacore.com>
18018
18019         * mlib-utl.adb (Initialized): Remove, no longer used
18020         (Initialize): Remove, no longer used
18021         (Ar): If Ar_Exec is null, get the location of the archive builder and,
18022         if there is one, the archive indexer. Fail if the archive builder cannot
18023         be found.
18024         (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
18025         be found.
18026
18027 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18028
18029         * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
18030         Process_Body_Clauses): If the context of a body includes a use clause
18031         for P.Q then a with_clause for P in the same body is not redundant,
18032         even if the spec also has a with_clause on P.
18033         Add missing continuation mark to error msg
18034         (Build_Limited_Views): A limited view of a type is tagged if its
18035         declaration includes a record extension.
18036         (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
18037         node, even if the subunit has errors. This avoids malfunction by
18038         Lib.Check_Same_Extended_Unit in the presence of syntax errors.
18039         (Analyze_Compilation_Unit): Add circuit to make sure we get proper
18040         generation of obsolescent messages for with statements (cannot do
18041         this too early, or we cannot implement avoiding the messages in the
18042         case of obsolescent units withing obsolescent units).
18043         (Install_Siblings): If the with_clause is on a remote descendant of
18044         an ancestor of the current compilation unit, find whether there is
18045         a sibling child unit that is immediately visible.
18046         (Remove_Private_With_Clauses): New procedure, invoked after completing
18047         the analysis of the private part of a nested package, to remove from
18048         visibility the private with_clauses of the enclosing package
18049         declaration.
18050         (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
18051         now centralized in Generate_Reference.
18052         (Install_Limited_Context_Clauses): Remove superfluous error
18053         message associated with unlimited view visible through use
18054         and renamings. In addition, at the point in which the error
18055         is reported, we add the backslash to the text of the error
18056         to ensure that it is reported as a single error message.
18057         Use new // insertion for some continuation messages
18058         (Expand_Limited_With_Clause): Use copy of name rather than name itself,
18059         to create implicit with_clause for parent unit mentioned in original
18060         limited_with_clause.
18061         (Install_Limited_With_Unit): Set entity of parent identifiers if the
18062         unit is a child unit. For ASIS queries.
18063         (Analyze_Subunit): If the subunit appears within a child unit, make all
18064         ancestor child units directly visible again.
18065
18066 2006-10-31  Robert Dewar  <dewar@adacore.com>
18067
18068         * par-ch10.adb (P_Context_Clause): Minor error message fix
18069
18070 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
18071             Javier Miranda  <miranda@adacore.com>
18072
18073         * par-ch12.adb: Grammar update and cleanup.
18074         (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
18075         support for synchronized derived type definitions.
18076         Add the new actual Abstract_Present to every call to
18077         P_Interface_Type_Definition.
18078         (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
18079         a formal object declaration with an access definition or a subtype mark
18080         with a null exclusion.
18081         (P_Generic_Association): Handle association with box, and others_choice
18082         with box, to support Ada 2005 partially parametrized formal packages.
18083
18084 2006-10-31  Robert Dewar  <dewar@adacore.com>
18085             Javier Miranda  <miranda@adacore.com>
18086
18087         * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
18088         (P_Type_Declaration): Remove barrier against the reserved word "limited"
18089         after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
18090         (P_Type_Declaration): Minor code cleanup. Add support for synchronized
18091         private extensions.
18092         (P_Type_Declaration): Add the new actual Abstract_Present to every call
18093         to P_Interface_Type_Definition.
18094         (P_Interface_Type_Definition): Addition of one formal to report an error
18095         if the reserved word abstract has been previously found.
18096         (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
18097         object renaming declaration with an access definition or subtype mark
18098         with a possible null exclusion.
18099
18100         * par-ch9.adb: Minor error msg fix
18101
18102         * par-load.adb: Add missing continuation mark to error msg
18103
18104         * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
18105
18106 2006-10-31  Vincent Celier  <celier@adacore.com>
18107
18108         * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
18109         unknown attribute in unknown package or in package that does not need
18110         to be checked.
18111         (Parse_Package_Declaration): Do not issue warning for unknown package in
18112         quiet output.
18113
18114 2006-10-31  Vincent Celier  <celier@adacore.com>
18115
18116         * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
18117         (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
18118         Packages_To_Check.
18119
18120 2006-10-31  Vincent Celier  <celier@adacore.com>
18121
18122         * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
18123         on VMS, change "__" to '.' before checking the name.
18124         (Record_Ada_Source): Always add the source file name in the list of
18125         of sources, even if it is not the first time, as it is for another
18126         source index.
18127         (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
18128         dot, instead of replacing only the first '_'.
18129
18130         * prj-part.adb (Parse): Convert project file path to canonical form
18131
18132         * prj-proc.adb (Recursive_Process): Make sure that, when a project is
18133         extended, the project id of the project extending it is recorded in its
18134         data, even when it has already been processed as an imported project.
18135
18136 2006-10-31  Robert Dewar  <dewar@adacore.com>
18137
18138         * repinfo.adb (List_Entities): Don't list entities from renaming
18139         declarations.
18140
18141 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
18142             Robert Dewar  <dewar@adacore.com>
18143
18144         * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
18145         only a restriction warning is active for the given restriction. This is
18146         desirable because we do not want to modify code in the case where only
18147         a warning is set.
18148         (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
18149         causes overriding of real restrictions.
18150         Take advantage of new No_Restrictions constant.
18151
18152         * raise.h: (__gnat_set_globals): Change profile.
18153
18154 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
18155
18156         * rtsfind.adb: Remove s-polint from comment as it exists no more.
18157
18158         * rtsfind.ads:
18159         Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
18160         Move all the entities in obsolete package System.PolyORB_Interface to
18161         System.Partition_Interface.
18162         (RE_Storage_Size): New function in System.Tasking.
18163         (RE_Get_Ceiling): New entity.
18164         (RE_Set_Ceiling): New entity.
18165         (RO_PE_Get_Ceiling): New entity.
18166         (RO_RE_Set_Ceiling): New entity.
18167         (Inherit_CPP_DT): New entity
18168
18169 2006-10-31  Robert Dewar  <dewar@adacore.com>
18170
18171         * scng.adb (Scan, case of numeric literal): Better msg for identifier
18172         starting with a digit.
18173
18174 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18175             Thomas Quinot  <quinot@adacore.com>
18176             Javier Miranda  <miranda@adacore.com>
18177             Gary Dismukes  <dismukes@adacore.com>
18178
18179         * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
18180         properly an attempt to apply Unchecked_Access to a protected operation.
18181         (OK_Self_Reference): New subprogram to check the legality of an access
18182         attribute whose prefix is the type of an enclosing aggregate.
18183         Generalizes previous mechanism to handle attribute references nested
18184         arbitrarily deep within the aggregate.
18185         (Analyze_Access_Attribute): An access attribute whose prefix is a type
18186         can appear in an aggregate if this is a default-initialized aggregate
18187         for a self-referential type.
18188         (Resolve_Attribute, case Access): Ditto.
18189         Add support for new implementation defined attribute Stub_Type.
18190         (Eval_Attribute, case Attribute_Stub_Type): New case.
18191         (Analyze_Attribute, case Attribute_Stub_Type): New case.
18192         (Stream_Attribute_Available): Implement using new subprogram from
18193         sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
18194         Has_Specified_Stream_Attribute flag.
18195         Disallow Storage_Size and Storage_Pool for access to subprogram
18196         (Resolve_Attribute, case 'Access et al): Take into account anonymous
18197         access types of return subtypes in extended return statements. Remove
18198         accessibility checks on anonymous access types when Unchecked_Access is
18199         used.
18200         (Analyze_Attribute): Add support for the use of 'Class to convert
18201         a class-wide interface to a tagged type.
18202         Add support for the attribute Priority.
18203         (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
18204         whether the designated type is discriminated with a constrained partial
18205         view and require static matching in that case.
18206         Add local variable Des_Btyp. The Designated_Type
18207         of an access to incomplete subtype is either its non-limited view if
18208         coming from a limited with or its etype if regular incomplete subtype.
18209
18210         * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
18211         Fix predicate to identify and allow cases of (expander-generated)
18212         references to tag of designated object of a RACW.
18213         (Validate_Static_Object_Name): In Ada 2005, a formal object is
18214         non-static, and therefore cannot appear as a primary in a preelaborable
18215         package.
18216         (Has_Stream_Attribute_Definition): New subprogram, abstracted from
18217         Has_Read_Write_Attributes.
18218         (Has_Read_Write_Attributes): Reimplement in termes of
18219         Has_Stream_Attribute_Definition.
18220         (Missing_Read_Write_Attributes): When checking component types in a
18221         record, unconditionally call Missing_Read_Write_Attributes recursively
18222         (remove guard checking for Is_Record_Type / Is_Access_Type).
18223
18224 2006-10-31  Robert Dewar  <dewar@adacore.com>
18225
18226         * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
18227         useless assignments here and conditionalize it on absence of exception
18228         handlers.
18229         (Analyze_Exception_Handlers): Small code reorganization of error
18230         detection code, for new handling of formal packages.
18231
18232 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18233             Hristian Kirtchev  <kirtchev@adacore.com>
18234
18235         * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
18236         that has been constant-folded, preserve information of original tree,
18237         for ASIS uses.
18238         (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
18239         generated private extension declaration if the formal derived type is
18240         synchronized. Carry synchronized present over to the generated private
18241         extension.
18242         (Validate_Derived_Type_Instance): Ensure that the actual of a
18243         synchronized formal derived type is a synchronized tagged type.
18244         (Instantiate_Formal_Package): When creating the instantiation used to
18245         validate the actual package of a formal declared without a box, check
18246         whether the formal itself depends on a prior actual.
18247         (Instantiate_Formal_Subprogram): Create new entities for the defining
18248         identifiers of the formals in the renaming declaration, for ASIS use.
18249         (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
18250         a renaming declaration or a subtype declaration for an actual in an
18251         instance, capture location information of declaration in generic, for
18252         ASIS use.
18253         (Instantiate_Formal_Package): Add comments on needed additional tests.
18254         AI-317 (partial parametrization) is fully implemented.
18255         (Validate_Private_Type_Instance): Add check for actual which
18256         must have preelaborable initialization
18257         Use new // insertion for some continuation messages
18258         (Analyze_Formal_Object_Declaration): Change usage of Expression to
18259         Default_Expression. Add type retrieval when the declaration has an
18260         access definition. Update premature usage of incomplete type check.
18261         (Check_Access_Definition): New subsidiary routine. Check whether the
18262         current compilation version is Ada 05 and the supplied node has an
18263         access definition.
18264         (Instantiate object): Alphabetize local variables. Handle the creation
18265         of new renaming declarations with respect to the kind of definition
18266         used - either an access definition or a subtype mark. Guard against
18267         unnecessary error message in the context of anonymous access types after
18268         they have been resolved. Add check for required null exclusion in a
18269         formal object declaration.
18270         (Switch_View): A private subtype of a non-private type needs to be
18271         switched (the base type can have been switched without its private
18272         dependents because of the last branch of Check_Private_View.
18273         (Check_Private_View): Do not recompute Base_Type (T), instead use cached
18274         value from BT.
18275         (Instantiate_Type): Emit an error message whenever a class-wide type of
18276         a tagged incomplete type is used as a generic actual.
18277         (Find_Actual_Type): Extend routine to handle a component type in a child
18278         unit that is imported from a formal package in a parent.
18279         (Validate_Derived_Type_Instance): Check that analyzed formal and actual
18280         agree on constrainedness, rather than checking against ultimate ancestor
18281         (Instantiate_Subprogram_Body): Create a cross-reference link to the
18282         generic body, for navigation purposes.
18283
18284 2006-10-31  Robert Dewar  <dewar@adacore.com>
18285             Thomas Quinot  <quinot@adacore.com>
18286
18287         * sem_ch13.adb: Storage pool cannot be given for access to subprogram
18288         type.
18289         (New_Stream_Subprogram): When processing an attribute definition clause
18290         for a stream-oriented subprogram, record an entity node occurring at
18291         the point of clause to use for checking the visibility of the clause,
18292         as defined by 8.3(23) as amended by AI-195.
18293         (New_Stream_Subprogram): New procedure, factoring behaviour from both
18294          New_Stream_Function and New_Stream_Procedure.
18295         (New_Stream_Function, New_Stream_Procedure): Removed.
18296         (Analyze_Attribute_Definition_Clause, case Address): Check new
18297         Alignment_Check check
18298
18299 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18300             Javier Miranda  <miranda@adacore.com>
18301             Robert Dewar  <dewar@adacore.com>
18302
18303         * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
18304         generate the same errors compiling under -gnatc.
18305         (Try_Object_Operation): If no candidate interpretation succeeds, but
18306         there is at least one primitive operation with the right name, report
18307         error in call rather than on a malformed selected component.
18308         (Analyze_Selected_Component): If the prefix is an incomplete type from
18309         a limited view, and the full view is available, use the full view to
18310         determine whether this is a prefixed call to a primitive operation.
18311         (Operator_Check): Verify that a candidate interpretation is a binary
18312         operation before checking the type of its second formal.
18313         (Analyze_Call): Add additional warnings for function call contexts not
18314         yet supported.
18315         (Analyze_Allocator): Move the check for "initialization not allowed for
18316         limited types" after analyzing the expression. This is necessary,
18317         because OK_For_Limited_Init looks at the structure of the expression.
18318         Before analysis, we don't necessarily know what sort of expression it
18319         is. For example, we don't know whether F(X) is a function call or an
18320         indexed component; the former is legal in Ada 2005; the latter is not.
18321         (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
18322         were missing. We also didn't handle qualified expressions. Now also
18323         allow function calls. Use new common routine OK_For_Limited_Init.
18324         (Analyze_Type_Conversion): Do not perform some legality checks in an
18325         instance, because the error message will be redundant or spurious.
18326         (Analyze_Overloaded_Selected_Component): Do not do style check when
18327         setting an entity, since we do not know it is the right entity yet.
18328         (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
18329         (Analyze_Overloaded_Selected_Component): Same change
18330         (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
18331         since regular incomplete subtypes are transformed into corresponding
18332         subtypes of their full views.
18333         (Complete_Object_Operation): Treat name of transformed subprogram call
18334         as coming from source, for browsing purposes.
18335         (Try_Primitive_Operation): If formal is an access parameter, compare
18336         with base type of object to determine whether it is a primitive
18337         operation.
18338         (Operator_Check): If no interpretation of the operator matches, check
18339         whether a use clause on any candidate might make the operation legal.
18340         (Try_Class_Wide_Operation): Check whether the first parameter is an
18341         access type whose designated type is class-wide.
18342
18343 2006-10-31  Robert Dewar  <dewar@adacore.com>
18344             Ed Schonberg  <schonberg@adacore.com>
18345             Gary Dismukes  <dismukes@adacore.com>
18346
18347         * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
18348         warn on infinite loops.
18349         Add \\ to some continuation messages
18350         (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
18351         (Process_Bounds): If the bounds are integer literals that result from
18352         constant-folding, and they carry a user-defined type, preserve that type
18353         rather than treating this as an integer range.
18354         (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
18355         (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
18356         (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
18357         left hand side of assignment.
18358         (Analyze_Assignment): Add suport to manage assigments to the attribute
18359         priority of a protected object.
18360         (Check_Possible_Current_Value_Condition): Allow fully qualified names
18361         not just identifiers.
18362         (Check_Possible_Current_Value_Condition): Acquire left operand of AND
18363         or AND THEN for possible tracking.
18364         (Analyze_Iteration_Scheme): Check for setting Current_Value for the
18365         case of while loops so we can track values in the loop body.
18366
18367 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18368             Hristian Kirtchev  <kirtchev@adacore.com>
18369             Bob Duff  <duff@adacore.com>
18370
18371         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
18372         procedure cannot be a protected operation (it is a basic_declaration,
18373         not a subprogram_declaration).
18374         (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
18375         Subp. Add logic for entry processing.
18376         (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
18377         Determine whether an entry or subprogram of a protected or task type
18378         override an inherited primitive of an implemented interface.
18379         (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
18380         Update the actual used in calls to Check_Overriding_Indicator.
18381         (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
18382         generate the proper reference to the parent unit, for cross-reference.
18383         (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
18384         Is_Formal.
18385         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
18386         (Add_Extra_Formal): Revise procedure to allow passing in associated
18387         entity, scope, and name suffix, and handle setting of the new
18388         Extra_Formals field.
18389         (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
18390         pass new parameters. Add support for adding the new extra access formal
18391         for functions whose calls are treated as build-in-place.
18392         (Analyze_A_Return_Statement): Correct casing in error message.
18393         Move Pop_Scope to after Analyze_Function_Return, because an extended
18394         return statement really is a full-fledged scope. Otherwise, visibility
18395         doesn't work right. Correct use of "\" for continuation messages.
18396         (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
18397         evilly trying to call Analyze_Object_Declaration directly. Otherwise,
18398         the node doesn't get properly marked as analyzed.
18399         (Analyze_Subprogram_Body): If subprogram is a function that returns
18400         an anonymous access type that denotes a task, build a Master Entity
18401         for it.
18402         (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
18403         proper usage of null exclusion in a result definition.
18404         (Process_Formals): Code cleanup and new error message.
18405         (Process_Formals): Detect incorrect application of null exclusion to
18406         non-access types.
18407         (Conforming_Types): Handle conformance between [sub]types and itypes
18408          generated for entities that have null exclusions applied to them.
18409         (Maybe_Primitive_Operation): Add an additional type retrieval when the
18410          base type is an access subtype. This case arrises with null exclusions.
18411         (New_Overloaded_Entity): Do not remove the overriden entity from the
18412         homonym chain if it corresponds with an abstract interface primitive.
18413         (Process_Formals): Replace membership test agains Incomplete_Kind with a
18414         call to the synthesized predicate Is_Incomplete_Type.
18415         (Analyze_Subprogram_Body): Check wrong placement of abstract interface
18416         primitives.
18417         (Analyze_Subprogram_Declaration): Check that abstract interface
18418         primitives are abstract or null.
18419         (Analyze_Subprogram_Specification): Remove previous check for abstract
18420         interfaces because it was not complete.
18421         (Has_Interface_Formals): Removed.
18422
18423 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18424             Javier Miranda  <miranda@adacore.com>
18425
18426         * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
18427         of Analyze_Package_Body, to create Itype references for anonymous
18428         access types created in the package declaration, whose designated types
18429         may have only a limited view.
18430         (Analyze_Package_Specification): For the private part of a nested
18431         package, install private_with_clauses of enclosing compilation unit if
18432         we are in its visible part.
18433         (Declare_Inherited_Private_Subprograms): Complete barrier
18434         to ensure that the primitive operation has an alias to some parent
18435         primitive. This is now required because, after the changes done for the
18436         implementation of abstract interfaces, the contents of the list of
18437         primitives has entities whose alias attribute references entities of
18438         such list of primitives.
18439         (Analyze_Package_Specification): Simplify code that handles parent units
18440         of instances and formal packages.
18441         (Uninstall_Declarations): Check the convention consistency among
18442         primitive overriding operations of a tagged record type.
18443
18444 2006-10-31  Robert Dewar  <dewar@adacore.com>
18445             Hristian Kirtchev  <kirtchev@adacore.com>
18446             Javier Miranda  <miranda@adacore.com>
18447             Ed Schonberg  <schonberg@adacore.com>
18448
18449         * sem_ch8.adb: Minor error msg rewording
18450         (Undefined): When checking for misspellings, invert arguments (to get
18451         expected and found set right)
18452         (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
18453         (Analyze_Generic_Renaming): Same fix
18454         (Use_One_Package): Do not take into account the internal entities of
18455         abstract interfaces during the analysis of entities that are marked
18456         as potentially use-visible.
18457         (Find_Type): Handle the case of an attribute reference for
18458         implementation defined attribute Stub_Type (simply let the analysis of
18459         the attribute reference rewrite it).
18460         (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
18461         type that appears in a Use_Type clause.
18462         (Analyze_Object_Renaming): Add support for renaming of the Priority
18463         attribute.
18464         (Find_Type): In Ada 2005, a task type can be used within its own body,
18465         when it appears in an access definition.
18466         (Analyze_Object_Renaming): Remove warning on null_exclusion.
18467         (Analyze_Object_Renaming): Introduce checks for required null exclusion
18468          in a formal object declaration or in a subtype declaration.
18469         (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
18470         (Check_Null_Exclusion): New local routine to
18471         Analyze_Subprogram_Renaming. Check whether the formals and return
18472         profile of a renamed subprogram have required null exclusions when
18473         their counterparts of the renaming already impose them.
18474         (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
18475         Determine whether an entity is inside a generic scope.
18476         (In_Open_Scope): First pass of documentation update.
18477         (Find_Expanded_Name): Add support for shadow entities associated with
18478         limited withed packages. This is required to handle nested packages.
18479         (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
18480         that makes a renaming of a limited withed package illegal.
18481
18482 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
18483             Ed Schonberg  <schonberg@adacore.com>
18484
18485         * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
18486         Check_Overriding_Indicator.
18487         (Analyze_Task_Definition): Ditto.
18488         (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
18489         (Check_Overriding_Indicator): To find overridden interface operation,
18490         examine only homonyms that have an explicit subprogram declaration, not
18491         inherited operations created by an unrelated type derivation.
18492         (Check_Overriding_Indicator): When checking for the presence of "null"
18493         in a procedure, ensure that the queried node is a procedure
18494         specification.
18495         (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
18496         type when the formal is an access to variable.
18497         (Analyze_Protected_Type): Add check for Preelaborable_Initialization
18498         (Analyze_Task_Type): Same addition
18499         (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
18500         provide navigation capabilities for entries.
18501
18502 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
18503             Ed Schonberg  <schonberg@adacore.com>
18504             Javier Miranda  <miranda@adacore.com>
18505             Gary Dismukes  <dismukes@adacore.com>
18506
18507         * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
18508         inherited from an interface ancestor by another interface in the
18509         context of an instance as 'late'.
18510         (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
18511         of a call to a function that dispatches on access result.
18512         (Check_Dispatching_Operation): In case of late overriding of a primitive
18513         that covers abstract interface subprograms we register it in all the
18514         secondary dispatch tables associated with abstract interfaces.
18515         (Check_Dispatching_Call): Add check that a dispatching call is not made
18516         to a function with a controlling result of a limited type. This is a
18517         current implementation restriction.
18518         (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
18519         (Check_Dispatching_Operation): Do no emit a warning if the controlling
18520         argument is an interface type that is a generic formal.
18521         (Is_Interface_Subprogram): Removed.
18522         (Check_Dispatching_Operation): If the subprogram is not a dispatching
18523         operation, check the formals to handle the case in which it is
18524         associated with an abstract interface type.
18525
18526 2006-10-31  Robert Dewar  <dewar@adacore.com>
18527             Ed Schonberg  <schonberg@adacore.com>
18528
18529         * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
18530         Add new calls to this procedure during traversal
18531         (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
18532         another unit if expansion is disabled.
18533
18534 2006-10-31  Robert Dewar  <dewar@adacore.com>
18535
18536         * sem_eval.adb (Compile_Time_Compare): Make use of information from
18537         Current_Value in the conditional case, to evaluate additional
18538         comparisons at compile time.
18539
18540 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18541             Hristian Kirtchev  <kirtchev@adacore.com>
18542             Javier Miranda  <miranda@adacore.com>
18543
18544         * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
18545         subprogram type to provide better diagnostics in case of ambiguity.
18546         (Covers): Handle coverage of formal and actual anonymous access types in
18547         the context of generic instantiation.
18548         (Covers/Interface_Present_In_Ancestors): Use the base type to manage
18549         abstract interface types; this is required to handle concurrent types
18550         with discriminants and abstract interface types.
18551         (Covers): Include type coverage of both regular incomplete subtypes and
18552         incomplete subtypes of incomplete type visibles through a limited with
18553         clause.
18554
18555 2006-10-31  Robert Dewar  <dewar@adacore.com>
18556             Hristian Kirtchev  <kirtchev@adacore.com>
18557             Ed Schonberg  <schonberg@adacore.com>
18558
18559         * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
18560         messages for entities in packages which are not used.
18561         (Collect_Synchronized_Interfaces): New procedure.
18562         (Overrides_Synchronized_Primitive): New function.
18563         (Denotes_Discriminant): Extend predicate to apply to task types.
18564         Add missing continuation marks in error msgs
18565         (Unqualify): New function for removing zero or more levels of
18566         qualification from an expression. There are numerous places where this
18567         ought to be used, but we currently only deal properly with zero or one
18568         level.
18569         (In_Instance); The analysis of the actuals in the instantiation of a
18570         child unit is not within an instantiation, even though the parent
18571         instance is on the scope stack.
18572         (Safe_To_Capture_Value): Exclude the case of variables that are
18573         renamings.
18574         (Check_Obsolescent): Removed
18575         (Is_Aliased_View): A reference to an enclosing instance in an aggregate
18576         is an aliased view, even when rewritten as a reference to the target
18577         object in an assignment.
18578         (Get_Subprogram_Entity): New function
18579         (Known_To_Be_Assigned): New function
18580         (Type_Access_Level): Compute properly the access level of a return
18581         subtype that is an anonymous access type.
18582         (Explain_Limited_Type): Correct use of "\" for continuation messages.
18583         (Is_Transfer): The new extended_return_statement causes a transfer of
18584         control.
18585         (Has_Preelaborable_Initialization): New function
18586         (Has_Null_Exclusion): New function. Given a node N, determine whether it
18587         has a null exclusion depending on its Nkind.
18588         Change Is_Lvalue to May_Be_Lvalue
18589         (May_Be_Lvalue): Extensive additional code to deal with subprogram
18590         arguments (IN parameters are not Lvalues, IN OUT parameters are).
18591         (Safe_To_Capture_Value): Extend functionality so it can be used for
18592         the current value condition case.
18593         (Has_Compatible_Alignment): New function
18594         (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
18595         objects to handle the Ada 2005 case, where aliasedness no longer implies
18596         that the object is constrained. In particular, for dereferenced names,
18597         the designated object must be assumed to be unconstrained.
18598         (Kill_Current_Values): Properly deal with the case where we encounter
18599         a loop in the scope chain.
18600         (Safe_To_Capture_Value): Do not let a loop stop us from capturing
18601         a value.
18602         (Compile_Time_Constraint_Error): Improve error message in error case
18603
18604         * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
18605         associated with entities of abstract interface primitives.
18606         Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
18607
18608 2006-10-31  Robert Dewar  <dewar@adacore.com>
18609
18610         * s-osinte-tru64.adb:
18611         Mark Asm statements Volatile to prevent warnings (seems a
18612         reasonable change anyway)
18613         Fixes new warnings
18614
18615         * s-mastop-irix.adb: Add Volatile to Asm statements
18616         Suppresses warning, and seems appropriate in any case
18617
18618         * s-osinte-vms.adb: Add Volatile to Asm statement
18619
18620         * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
18621
18622         * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
18623         returned.
18624         Add call to Check_Code_Statement
18625
18626 2006-10-31  Robert Dewar  <dewar@adacore.com>
18627             Ed Schonberg  <schonberg@adacore.com>
18628             Bob Duff  <duff@adacore.com>
18629
18630         * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
18631         Synchronized_Present): Add Formal_Derived_Type_Definition and
18632         Private_Extension_Declaration to the list of assertions.
18633         (Is_Entry_Barrier_Function): New flag
18634         (Has_Self_Reference): New flag on aggregates, to indicate that they
18635         contain a reference to the enclosing type, inserted through a default
18636         initialization.
18637         (Next_Rep_Item): Move from Node4 to Node5.
18638         (Entity): Add this field for N_Attribute_Definition_Clause.
18639         (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
18640         (N_Return_Object_Declaration): Remove this node kind. We now use
18641         N_Object_Declaration instead.
18642         (Actual_Designated_Subtype): Move to a different place to make room in
18643         N_Extended_Return_Statement.
18644         (Procedure_To_Call): Move to a different place to make room in
18645         N_Extended_Return_Statement.
18646         (Return_Type): Removed this field to make room in return statements
18647         (both kinds).
18648         (Return_Statement_Entity): New field in return statements, in part to
18649         replace Return_Type, and in part to support the fact that return
18650         statements are now pushed on the scope stack during semantic analysis.
18651         (Return_Object_Declarations): New field to support extended return
18652         statements.
18653         (N_Extended_Return_Statement): New node for extended_return_statement
18654         nonterminal.
18655         (N_Return_Object_Declaration): New node for part of
18656         extended_return_statement nonterminal. Needed because all the necessary
18657         fields won't fit in N_Extended_Return_Statement.
18658         Generic_associations now carry the Box_Present flag, to indicate a
18659         default for an actual in a partially parametrized formal package.
18660
18661         * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
18662         (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
18663         and for the new predefined dispatching policies: EDF_Across_Priorities,
18664         Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
18665         Introduce new name Stub_Type for implementation defined attribute.
18666         Add pragma Preelaborable_Initialization
18667         Add entry for Priority attribute.
18668         Add Pragma_Wide_Character_Encoding
18669         (Get_Convention_Name): Given a convention id, this function returns the
18670         corresponding name id from the names table.
18671
18672 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18673             Robert Dewar  <dewar@adacore.com>
18674             Bob Duff  <duff@adacore.com>
18675
18676         * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
18677         print null exclusion twice in the case of an access definition,
18678         Implement new -gnatL switch
18679         Remove N_Return_Object_Declaration. We now use
18680         N_Object_Declaration instead. Implement the case for
18681         N_Extended_Return_Statement. Alphabetize the cases.
18682         Add cases for new nodes N_Extended_Return_Statement and
18683         N_Return_Object_Declaration. The code is not yet written.
18684         Update the output for N_Formal_Object_Declaration
18685         and N_Object_Renaming_Declaration.
18686         (Write_Itype): Account for the case of a modular integer subtype whose
18687         base type is private.
18688
18689 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
18690
18691         * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
18692         Remove elaboration code, now done in the binder.
18693
18694         * s-rident.ads: Make this unit Preelaborate.
18695         (No_Restrictions): New constant used to clean up code and follow
18696         preelaborate constraints.
18697
18698         * s-stalib.adb:
18699         Add System.Restrictions dependence, referenced directly from the
18700         binder generated file.
18701
18702 2006-10-31  Gary Dismukes  <dismukes@adacore.com>
18703
18704         * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
18705         True when AAMP extended floating-point is in use (48-bit). Change type
18706         ByteLF to ByteLLF, add new array type ByteLF and condition the size of
18707         the two byte array types on AFloat. Change type of IV_Ilf overlay
18708         variable from Byte8 to ByteLF. Add appropriate initializations of
18709         floating-point overlays for AAMP cases.
18710
18711 2006-10-31  Javier Miranda  <miranda@adacore.com>
18712
18713         * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
18714         (Get_Ceiling): New subprogram that returns
18715         the ceiling priority of the protected object.
18716         (Set_Ceiling): New subprogram that sets the new ceiling priority of
18717         the protected object.
18718
18719         * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
18720
18721         * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
18722
18723 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
18724
18725         * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
18726         requeuing to the same protected object to give higher priority tasks
18727         the opportunity to execute.
18728
18729 2006-10-31  Robert Dewar  <dewar@adacore.com>
18730
18731         * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
18732         add more precise check for the character sequence that follows '[' to
18733         avoid possible confusion in case if '[' is the last character of a
18734         string literals.
18735         (Scan_Wide): Always allow brackets encoding
18736
18737 2006-10-31  Olivier Hainque  <hainque@adacore.com>
18738
18739         * s-stchop.ads: make this unit preelaborate. This is desirable in
18740         general and made mandatory by the use of this unit by s-taprop which
18741         is itself preelaborate.
18742
18743         * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
18744         Td_Events component.
18745
18746 2006-10-31  Vincent Celier  <celier@adacore.com>
18747
18748         * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
18749         in file names.
18750
18751 2006-10-31  Vincent Celier  <celier@adacore.com>
18752
18753         * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
18754
18755 2006-10-31  Vincent Celier  <celier@adacore.com>
18756
18757         * makegpr.adb (Check_Compilation_Needed): Take into account path names
18758         with spaces.
18759         (Check_Compilation_Needed): When checking a C or C++ source, do not
18760         resolve symbolic links.
18761         (Display_Command): New Boolean parameter Ellipse, defaulted to False.
18762         When not in verbose mode and Ellipse is True, display "..." for the
18763         first argument with Display set to False.
18764         (Build_Global_Archive): Always set Display True for the first object
18765         file. Call Display_Command with Ellipse set to True.
18766
18767 2006-10-31  Matt Heaney  <heaney@adacore.com>
18768
18769         * a-crbtgo.ads: Commented each subprogram
18770
18771         * a-crbtgo.adb: Added reference to book from which algorithms were
18772         adapted.
18773
18774         * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
18775         indicate which child.
18776         (Generic_Conditional_Insert): changed parameter name from "Success" to
18777         "Inserted".
18778         (Generic_Unconditional_Insert_With_Hint): improved algorithm
18779
18780         * a-coorse.adb (Replace_Element): changed parameter name in call to
18781         conditional insert operation.
18782
18783         * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
18784
18785         * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
18786         Generic_Iteration
18787
18788         * a-ciorse.adb (Replace_Element): changed parameter name in call to
18789         conditional insert operation.
18790
18791         * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
18792         Generic_Iteration.
18793
18794         * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
18795         instead of mode inout.
18796
18797         * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
18798         draft
18799         (Generic_Read): preserve existing buckets array if possible
18800         (Generic_Write): don't send buckets array length anymore
18801
18802         * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
18803         instead of mode inout.
18804
18805         * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
18806         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
18807
18808         * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
18809         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
18810         (Replace_Element): local operation is now an instantiation
18811
18812         * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
18813         check current length.
18814         (Generic_Replace_Element): new operation
18815
18816 2006-10-31  Doug Rupp  <rupp@adacore.com>
18817
18818         * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
18819         Call TBK$SYMBOLIZE without omitting parameters.
18820
18821 2006-10-31  Vincent Celier  <celier@adacore.com>
18822
18823         * symbols-processing-vms-ia64.adb,
18824         symbols-processing-vms-alpha.adb (Process): Do not include symbols
18825         that come from generic instantiations in bodies.
18826
18827 2006-10-31  Pat Rogers  <rogers@adacore.com>
18828
18829         * a-rttiev.ads, a-rttiev.adb:
18830         This is a significant redesign primarily for the sake of automatic
18831         timer task termination but also to fix a design flaw.
18832         Therefore we are now using an RTS lock, instead of a protected
18833         object, to provide mutual exclusion to the queue of pending events
18834         and the type Timing_Event is no longer a protected type.
18835
18836 2006-10-31  Robert Dewar  <dewar@adacore.com>
18837             Cyrille Comar  <comar@adacore.com>
18838             Ben Brosgol  <brosgol@adacore.com>
18839
18840         * debug.adb:  Update flags documentation
18841
18842         * gnat_ugn.texi: Add documentation for new -gnatwq switch
18843         Clean up documentation for several other warning switches
18844         Clarify how task stack size can be specified with various
18845         versions of Windows.
18846         Add note that -gnatVo includes ranges including loops
18847         Add documentation for -gnatL switch
18848         Add note on elaboration warning for initializing variables
18849         Add documentation for new -gnatwt warning switch
18850         Document new form of pragma Warnings (On|Off, string)
18851         Add comment on use of pragma Warnings to control warnings
18852         Add documentation for -gnatjnn switch
18853         Modify section on interfacing with C for VMS 64-bit.
18854         Add doc for -gnatVe/E
18855         Add documentation of new warning flags -gnatww/-gnatwW
18856         Add warnings about address clause overlays to list of warnings
18857         (Exception Handling Control): Document that the option --RTS must be
18858         used consistently for gcc and gnatbind.
18859         Clarify that inlining is not always possible
18860         Update documentation on pragma Unchecked_Union.
18861
18862         * gnat_rm.texi:
18863         Add documentation for new extended version of pragma Obsolescent
18864         Add documentation for implementation defined attribute 'Stub_Type.
18865         Add note on use of Volatile in asm statements
18866         Add documentation on use of pragma Unreferenced in context clause
18867         Document new form of pragma Warnings (On|Off, pattern)
18868         Document pragma Wide_Character_Encoding
18869         Add note that pragma Restrictions (No_Elaboration_Code) is only fully
18870         enforced if code generation is active.
18871         Add section on pragma Suppress to document GNAT specific check
18872         Alignment_Check
18873         Clarify difference between No_Dispatching_Calls & No_Dispatch.
18874         Add documentation for pragma Restrictions (No_Elaboration_Code)
18875
18876         * gnat-style.texi:
18877         Add comments on layout of subprogram local variables in the
18878         presence of nested subprograms.
18879
18880         * ug_words: Resync.
18881
18882         * elists.ads: Minor reformatting
18883         Node returns Node_Or_Entity_Id (doc change only)
18884
18885         * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
18886
18887         * g-arrspl.ads (Create): Update comments.
18888
18889         * sem.ads: Add details on the handling of the scope stack.
18890
18891         * usage.adb: Update documentation.
18892
18893         * validsw.ads, validsw.adb:
18894         Add definition of Validity_Check_Components and implement -gnatVe/E
18895
18896         * vms_data.ads: Add missing VMS qualifiers.
18897
18898         * s-addope.ads: Add documentation on overflow and divide by zero
18899
18900 2006-10-31  Robert Dewar  <dewar@adacore.com>
18901             Thomas Quinot  <quinot@adacore.com>
18902             Arnaud Charlet  <charlet@adacore.com>
18903
18904         * fmap.adb: Put routines in alpha order
18905
18906         * g-boumai.ads: Remove redundant 'in' keywords
18907
18908         * g-cgi.adb: Minor reformatting
18909
18910         * g-cgi.ads: Remove redundant 'in' keywords
18911
18912         * get_targ.adb: Put routines in alpha order
18913
18914         * prj-attr.ads: Minor reformatting
18915
18916         * s-atacco.ads: Minor reformatting
18917
18918         * scn.adb: Put routines in alpha order
18919
18920         * sinput-l.adb: Minor comment fix
18921
18922         * sinput-p.adb: Minor comment fix
18923
18924         * s-maccod.ads: Minor reformatting
18925
18926         * s-memory.adb: Minor reformatting
18927
18928         * s-htable.adb: Fix typo in comment.
18929
18930         * s-secsta.adb: Minor comment update.
18931
18932         * s-soflin.adb: Minor reformatting
18933
18934         * s-stoele.ads:
18935         Add comment about odd qualification in Storage_Offset declaration
18936
18937         * s-strxdr.adb:
18938         Remove unnecessary 'in' keywords for formal parameters.
18939
18940         * treeprs.adt: Minor reformatting
18941
18942         * urealp.adb: Put routines in alpha order
18943
18944         * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
18945         taking string.
18946
18947         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
18948
18949         * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
18950
18951         * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
18952         workaround as on other platforms.
18953
18954         * g-eacodu-vms.adb: Remove redundant 'in' keywords
18955         * g-expect-vms.adb: Remove redundant 'in' keywords
18956
18957         * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
18958         clear error message if the list-of-files file cannot be opened.
18959
18960         * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
18961         equality operator is always visible.
18962
18963         * lang.opt: Woverlength-strings: New option.
18964
18965         * nmake.adt:
18966         Update copyright, since nmake.ads and nmake.adb have changed.
18967
18968         * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
18969         (Binder_Output_Time_Stamps_Set): removed.
18970         (Old_Binder_Output_Time_Stamp): idem.
18971         (New_Binder_Output_Time_Stamp): idem.
18972         (Recording_Time_From_Last_Bind): idem.
18973         (Recording_Time_From_Last_Bind): Make constant.
18974
18975         * output.ads, output.adb (Write_Str): Allow LF characters
18976         (Write_Spaces): New procedure
18977
18978         * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
18979
18980         * inline.adb: Minor reformatting
18981
18982         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
18983
18984         * s-mastop-vms.adb: Remove redundant 'in' keywords
18985
18986         * s-osprim-vms.adb: Remove redundant 'in' keywords
18987
18988         * s-trafor-default.adb: Remove redundant 'in' keywords
18989
18990         * 9drpc.adb: Remove redundant 'in' keywords
18991
18992         * s-osinte-mingw.ads: Minor reformatting
18993
18994         * s-inmaop-posix.adb: Minor reformatting
18995
18996         * a-direio.ads: Remove quotes from Compile_Time_Warning message
18997
18998         * a-exexda.adb: Minor code reorganization
18999
19000         * a-filico.adb: Minor reformatting
19001
19002         * a-finali.adb: Minor reformatting
19003
19004         * a-nudira.ads: Remove quote from Compile_Time_Warning message
19005
19006         * a-numeri.ads: Minor reformatting
19007
19008         * a-sequio.ads: Remove quotes from Compile_Time_Warning message
19009
19010         * exp_pakd.ads: Fix obsolete comment
19011
19012         * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
19013         a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
19014         Probably not a bug, but certainly neater and more efficient.
19015
19016         * a-tienio.adb: Minor reformatting
19017
19018         * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
19019         Avoid assuming low bound of string is 1.
19020
19021         * gnatbind.adb: Change Bindusg to package and rename procedure as
19022         Display, which now ensures that it only outputs usage information once.
19023         (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
19024
19025         * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
19026         Table'First.
19027
19028         * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
19029         warning.
19030         (Match): Add pragma Assert to ensure that Matches'First is zero
19031
19032         * g-regpat.ads (Match): Document that Matches lower bound must be zero
19033
19034         * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
19035         documented preconditions (also kills warnings about bad indexes).
19036
19037         * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
19038         is 1.
19039         (Build_Import_Library): Ditto;
19040
19041         * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
19042
19043         * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
19044
19045         * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
19046         lower bound of choice table is 1.
19047
19048         * sem_case.ads (Analyze_Choices): Document that lower bound of
19049         Choice_Table is 1.
19050
19051         * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
19052         string is 1.
19053
19054         * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
19055         and add appropriate Assert pragma to suppress warnings.
19056
19057         * atree.h, atree.ads, atree.adb
19058         Change Elist24 to Elist25
19059         Add definitions of Field28 and Node28
19060         (Traverse_Field): Use new syntactic parent table in sinfo.
19061
19062         * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
19063
19064         * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
19065
19066         * exp_tss.adb: Put routines in alpha order
19067
19068         * fe.h: Remove redundant declarations.
19069
19070 2006-10-23 Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
19071
19072         * utils.c (builtin_function): Rename to gnat_builtin_function.
19073         Move common code to add_builtin_function.
19074         * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
19075         gnat_builtin_function.
19076         * gigi.h (builtin_function): Rename to gnat_builtin_function.
19077         Change the signature.
19078
19079 2006-10-16  Brooks Moses  <bmoses@stanford.edu>
19080
19081         * Makefile.in: Add TEXI2PDF definition.
19082         * Make-lang.in: Add "ada.pdf" target.
19083
19084 2006-10-03  Kazu Hirata  <kazu@codesourcery.com>
19085
19086         * decl.c, utils.c: Fix comment typos.
19087         * utils.c: Fix a typo.
19088
19089 2006-09-28  Eric Botcazou  <ebotcazou@adacore.com>
19090
19091         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
19092         on "pure" Ada subprograms if SJLJ exceptions are used.
19093         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
19094         on the declaration node of JMPBUF_SAVE.
19095         * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
19096         of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
19097         * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
19098
19099 2006-08-20  Laurent Guerby  <laurent@guerby.net>
19100
19101         PR ada/28716
19102         g-socket.adb (Bind_Socket): Call Set_Address.
19103
19104 2006-09-15  Eric Botcazou  <ebotcazou@adacore.com>
19105
19106         PR ada/15802
19107         * decl.c (same_discriminant_p): New static function.
19108         (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
19109         subtype and we have discriminants, fix up the COMPONENT_REFs
19110         for the discriminants to make them reference the corresponding
19111         fields of the parent subtype after it has been built.
19112
19113 2006-09-15  Roger Sayle  <roger@eyesopen.com>
19114
19115         PR ada/18817
19116         * utils.c (max_size): Perform constant folding of (A ? B : C) - D
19117         into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
19118
19119 2006-09-13  Olivier Hainque  <hainque@adacore.com>
19120
19121         PR ada/29025
19122         * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
19123         of a SAVE_EXPR, just make the operand addressable/not-readonly and
19124         let the common gimplifier code make and propagate a temporary copy.
19125         (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
19126         out/in-out actuals and defer setting the addressable/readonly bits
19127         to the gimplifier.
19128
19129 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
19130
19131         PR ada/28591
19132         * decl.c (components_to_record): Defer emitting debug info for the
19133         record type associated with the variant until after we are sure to
19134         actually use it.
19135
19136 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
19137
19138         PR ada/21952
19139         * gigi.h (gnat_internal_attribute_table): Declare.
19140         * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
19141         * utils.c (gnat_internal_attribute_table): New global variable.
19142         (builtin_function): Always call decl_attributes on the builtin.
19143         (handle_const_attribute): New static function.
19144         (handle_nothrow_attribute): Likewise.
19145
19146 2006-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
19147
19148         * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
19149
19150 2006-06-23  Olivier Hainque  <hainque@adacore.com>
19151
19152         * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
19153         not been able to get a constant upper bound from TYPE_SIZE_UNIT.
19154
19155 2006-06-20  James A. Morrison  <phython@gcc.gnu.org>
19156             Eric Botcazou  <ebotcazou@adacore.com>
19157
19158         PR ada/18692
19159         * Make-lang.in: Add check-gnat to lang_checks.  Rename existing
19160         check-gnat into check-acats.
19161
19162 2006-06-17  Karl Berry  <karl@gnu.org>
19163
19164         * gnat-style.texi (@dircategory): Use "Software development"
19165         instead of "Programming", following the Free Software Directory.
19166
19167 2006-06-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19168
19169         PR ada/27944
19170         * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
19171
19172 2006-06-06  Laurent Guerby  <laurent@guerby.net>
19173
19174         PR ada/27769
19175         mlib-utl.adb: Use Program_Name.
19176
19177 2006-05-28  Kazu Hirata  <kazu@codesourcery.com>
19178
19179         * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
19180         sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
19181         trans.c, utils.c: Fix comment typos.  Follow spelling
19182         conventions.
19183         * gnat_rm.texi, gnat_ugn.texi, : Fix typos.  Follow spelling
19184         conventions.
19185
19186 2006-05-19  Nicolas Setton  <setton@adacore.com>
19187
19188         * misc.c (gnat_dwarf_name): New function.
19189         (LANG_HOOKS_DWARF_NAME): Define to it.
19190
19191 2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
19192
19193         * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
19194         (ada/misc.o): Likewise.
19195         (ada/utils.o): Likewise.
19196
19197 2006-04-08  Aurelien Jarno  <aurel32@debian.org>
19198
19199         * Makefile.in: Add Ada support for GNU/kFreeBSD.
19200         * s-osinte-kfreebsd-gnu.ads: New file.
19201
19202 2006-03-29  Carlos O'Donell  <carlos@codesourcery.com>
19203
19204         * Make-lang.in: Rename docdir to gcc_docdir.
19205
19206 2006-03-04  Eric Botcazou  <ebotcazou@adacore.com>
19207
19208         * gigi.h (get_ada_base_type): Delete.
19209         * utils2.c (get_ada_base_type): Likewise.
19210         * trans.c (convert_with_check): Operate in the real base type.
19211
19212 2006-03-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19213
19214         * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
19215
19216 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
19217
19218         * utils.c (create_var_decl): Use have_global_bss_p when deciding
19219         whether to make the decl common.
19220
19221 2006-02-20  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
19222
19223         * Make-lang.in (Ada): Remove.
19224         (.PHONY): Remove Ada
19225
19226 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19227
19228         * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
19229         aggregate, check the interpretations of the other operand to find one
19230         that may be a boolean array.
19231
19232         (Analyze_Selected_Component): Fix flow-of-control typo in case where
19233         the prefix is a private extension.
19234
19235 2006-02-17  Eric Botcazou  <botcazou@adacore.com>
19236
19237         PR ada/26315
19238         * utils2.c (find_common_type): If both input types are BLKmode and
19239         have the same constant size, keep using the first one.
19240
19241         * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
19242
19243         * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
19244
19245         * misc.c (gnat_handle_option): New case for -Woverlength-strings.
19246
19247 2006-02-17  Jose Ruiz  <ruiz@adacore.com>
19248
19249         * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
19250         s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
19251         s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
19252         s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
19253         Abort_Defer/Undefer pairs to avoid the possibility of a task being
19254         aborted while owning a lock.
19255
19256 2006-02-17  Javier Miranda  <miranda@adacore.com>
19257             Robert Dewar  <dewar@adacore.com>
19258
19259         * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
19260         through an access to class-wide interface we force the displacement of
19261         the pointer to the allocated object to reference the corresponding
19262         secondary dispatch table.
19263         (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
19264         if Long_Shifts are supported on the target, even if 64 bit divides
19265         are not supported (configurable run time mode).
19266         (Expand_N_Type_Conversion): Do validity check if validity checks on
19267         operands are enabled.
19268         (Expand_N_Qualified_Expression): Do validity check if validity checks
19269         on operands are enabled.
19270
19271 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19272
19273         * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
19274         must be materialized when the renamed expression is an explicit
19275         dereference.
19276
19277 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19278
19279         * freeze.adb (Statically_Discriminated_Components): Return false if
19280         the bounds of the type of the discriminant are not static expressions.
19281
19282         * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
19283         the bounds of the discriminant type are not static.
19284
19285 2006-02-17  Robert Dewar  <dewar@adacore.com>
19286
19287         * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
19288         then we close To if it is valid.
19289
19290 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
19291
19292         * init.c (facility_resignal_table): new array
19293         (__gnat_default_resignal_p): enhance default predicate to resignal if
19294         VMS condition has one of the predefined facility codes.
19295
19296 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
19297
19298         * Makefile.in: Use VMS64 specialized versions of several units in
19299         Interfaces.C hierarchy to be compatible with HP C default size choices.
19300         Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
19301
19302 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19303
19304         * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
19305         instantiation, the corresponding entity is the related_instance of the
19306         wrapper package created for the instance.
19307
19308 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19309
19310         * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
19311         the current instance is nested within another instance in a child unit.
19312
19313 2006-02-17  Javier Miranda  <miranda@adacore.com>
19314             Ed Schonberg  <schonberg@adacore.com>
19315
19316         * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
19317         type we cannot inherit the primitive operations; we inherit the
19318         Corresponding_Record_Type (which has the list of primitive operations).
19319         (Check_Anonymous_Access_Types): When creating anonymous access types for
19320         access components, use Rewrite in order to preserve the tree structure,
19321         for ASIS use.
19322         (Analyze_Object_Declaration): For limited types with access
19323         discriminants with defaults initialized by an aggregate, obtain
19324         subtype from aggregate as for other mutable types.
19325         (Derived_Type_Declaration): If the derived type is a limited interface,
19326         set the corresponding flag (Is_Limited_Record is not sufficient).
19327
19328 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19329
19330         * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
19331         to inline a function that returns an unconstrained type, the return
19332         expression must be the first variable declared in the body of the
19333         function.
19334
19335 2006-02-17  Javier Miranda  <miranda@adacore.com>
19336
19337         * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
19338         abstract interface type, the static analysis is not enough to know if
19339         the interface is implemented or not by the source tagged type. Hence
19340         we must pass the work to the expander to generate the required code to
19341         evaluate the conversion at run-time.
19342         (Resolve_Equality_Op): Do not apply previous
19343         transformation if expansion is disasbled, to prevent anomalies when
19344         locating global references in a generic unit.
19345
19346 2006-02-17  Vincent Celier  <celier@adacore.com>
19347
19348         * snames.ads, snames.adb: New standard names for new project attributes:
19349         archive_builder, archive_indexer, compiler_pic_option,
19350         config_body_file_name, config_body_file_name_pattern,
19351         config_file_switches, config_file_unique, config_spec_file_name,
19352         config_spec_file_name_pattern, default_builder_switches,
19353         default_global_compiler_switches, default_language,
19354         dependency_file_kind, global_compiler_switches, include_path,
19355         include_path_file, language_kind, linker_executable_option,
19356         linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
19357         roots, runtime_project.
19358
19359 2006-02-17  Matthew Heaney  <heaney@adacore.com>
19360
19361         * a-convec.ads, a-convec.adb:
19362         (operator "&"): handle potential overflow for large index types
19363         (Insert): removed Contraint_Error when using large index types
19364         (Insert_Space): removed Constraint_Error for large index types
19365         (Length): moved constraint check from Length to Insert
19366
19367         * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
19368         as not null access.
19369         Explicit raise statements now include an exception message.
19370         (operator "&"): handle potential overflow for large index types
19371         (Insert): removed Contraint_Error when using large index types
19372         (Insert_Space): removed Constraint_Error for large index types
19373         (Length): moved constraint check from Length to Insert
19374
19375 2006-02-17  Robert Dewar  <dewar@adacore.com>
19376
19377         * s-wchcnv.adb: Document handling of [ on output (we do not change
19378         this to ["5B"] and the new comments say why not.
19379
19380         * gnat_ugn.texi:
19381         Add note for -gnatVo that this now includes the cases of type
19382         conversions and qualified expressions.
19383         Add comments on handling of brackets encoding for Text_IO
19384
19385 2006-02-17  Ramon Fernandez  <fernandez@adacore.com>
19386             Thomas Quinot  <quinot@adacore.com>
19387             Robert Dewar  <dewar@adacore.com>
19388             Javier Miranda  <miranda@adacore.com>
19389
19390         * expander.adb: Fix typo in comment
19391
19392         * exp_pakd.adb: Fix typo
19393         Minor comment reformatting.
19394
19395         * g-dyntab.adb: Minor reformatting
19396
19397         * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
19398         aliased subprograms to look for the abstract interface subprogram.
19399
19400 2006-02-16  Eric Botcazou  <ebotcazou@adacore.com>
19401
19402         * env.c (__gnat_setenv): Use size_t.
19403         (__gnat_unsetenv): Likewise.
19404         (__gnat_clearenv): Likewise.
19405
19406 2006-02-16  Arnaud Charlet  <charlet@adacore.com>
19407
19408         * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
19409
19410 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19411
19412         * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
19413         g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
19414         i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
19415         s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
19416         s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
19417         s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
19418         s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
19419         s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
19420         s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
19421         no longer used.
19422
19423 2006-02-13  Jose Ruiz  <ruiz@adacore.com>
19424
19425         * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
19426         protection against race conditions is not needed.
19427         (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
19428         fallback handler.
19429         (Set_Specific_Handler): Add mutual exclusive access to the specific
19430         handler.
19431         (Specific_Handler): Add mutual exclusive access for retrieving the
19432         specific handler.
19433
19434         * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
19435         back handler.
19436
19437         * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
19438         Fall_Back_Handler and Specific_Handler.
19439
19440         * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
19441         termination handlers.
19442         Set two different owerflow depending on the maximal stack size.
19443
19444         * s-solita.adb (Task_Termination_Handler_T): Document why explicit
19445         protection against race conditions is not needed when executing the
19446         task termination handler.
19447
19448 2006-02-13  Robert Dewar  <dewar@adacore.com>
19449
19450         * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
19451         a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
19452         a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
19453         a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
19454         a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
19455         a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
19456         a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
19457         a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
19458         a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
19459         a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
19460         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
19461         a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
19462         a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
19463         a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
19464         a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
19465         a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
19466         a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
19467         a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
19468         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
19469         a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
19470         g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
19471         g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
19472         mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
19473         prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
19474         s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
19475         s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
19476         s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
19477         s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
19478         s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
19479         s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
19480         a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
19481         fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
19482         par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
19483         system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
19484         reformatting.
19485
19486 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
19487
19488         * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
19489         s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
19490         s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
19491         s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
19492         a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
19493         s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
19494         a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
19495         s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
19496         s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
19497
19498 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19499
19500         * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
19501         s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
19502         s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
19503         s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
19504         s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
19505         s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
19506         replaced by anonymous access type.
19507         (pthread_sigmask): Now take an access sigset_t
19508
19509         * s-osinte-hpux.ads:  Ditto.
19510         (pthread_mutex_t, pthread_cond_t): Update definitions to support
19511         properly 32 and 64 bit ABIs.
19512
19513 2006-02-13  Pascal Obry  <obry@adacore.com>
19514
19515         * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
19516         s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
19517         s-taprop-linux.adb, s-taprop-solaris.adb,
19518         s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
19519         adjustement is already done when calling this routine.
19520
19521 2006-02-13  Pascal Obry  <obry@adacore.com>
19522
19523         * system-mingw.ads (Underlying_Priorities): Update the priority mapping
19524         table to take advantage of the 16 priority levels available on Windows
19525         2000 and XP. On NT4 there are only 7 priority levels, this is properly
19526         supported by this new mapping.
19527
19528 2006-02-13  Nicolas Setton  <setton@adacore.com>
19529
19530         * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
19531         (get_encoding): New subprogram. Extracts the encodings from an encoded
19532         Ada name.
19533
19534 2006-02-13  Pascal Obry  <obry@adacore.com>
19535             Nicolas Roche  <roche@adacore.com>
19536             Arnaud Charlet  <charlet@adacore.com>
19537
19538         * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
19539         support.
19540         (__gnat_try_lock): Add unicode support by using a specific section on
19541         Windows.
19542         (__gnat_get_current_dir): Idem.
19543         (__gnat_open_read): Idem.
19544         (__gnat_open_rw): Idem.
19545         (__gnat_open_create): Idem.
19546         (__gnat_create_output_file): Idem.
19547         (__gnat_open_append): Idem.
19548         (__gnat_open_new): Idem.
19549         (__gnat_file_time_name): Idem.
19550         (__gnat_set_file_time_name): Idem.
19551         (__gnat_stat): Idem.
19552         (win32_no_block_spawn): Idem.
19553         (__gnat_locate_exec_on_path): Idem.
19554         (__gnat_opendir): New routine.
19555         (__gnat_closedir): Idem.
19556         (__gnat_readdir): Add new parameter length (pointer to int). Update
19557         implementation to use it and add specific Win32 code for Unicode
19558         support.
19559         (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
19560         (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
19561         (convert_addresses): Do not define this dummy routine on VMS.
19562
19563         * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
19564         runtime Unicode support will be activated.
19565         (S2WS): String to Wide-String conversion. This version just copy a
19566         string in non Unicode version.
19567         (WS2S): Wide-String to String conversion. This version just copy a
19568         string in non Unicode version.
19569
19570         * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
19571         (Open): Now import __gnat_opendir from adaint.c.
19572         (Read): Change the implementation to support unicode characters. It is
19573         not possible to use strlen() on Windows as this version supports only
19574         standard ASCII characters. So the length of the directory entry is now
19575         returned from the imported __gnat_readdir routine.
19576         Update copyright notice.
19577
19578         * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
19579         (opendir): Moved to adaint.c.
19580
19581         * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
19582         (Get_Directory): Fix wrong indexing.
19583         (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
19584         __gnat_getenv from env.c
19585         (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
19586         from env.c
19587
19588         * env.h, env.c: New file.
19589
19590         * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
19591         adaint.c by __gnat_getenv from env.c
19592
19593         * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
19594         adaint.c by __gnat_getenv from env.c
19595
19596         * Make-lang.in: Add env.o in the list of C object needed by gnat1
19597         and gnatbind.
19598         Update dependencies.
19599
19600 2006-02-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19601             Olivier Hainque  <hainque@adacore.com>
19602             Eric Botcazou  <ebotcazou@adacore.com>
19603
19604         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
19605
19606         * gigi.h (value_factor_p): Add prototype and description, now public.
19607
19608         * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
19609         promotion for field with rep clause if the associated size was proven
19610         to be in error.
19611         Expand comments describing attempts to use a packable type.
19612         (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
19613         E_Floating_Point_Subtype>: Inherit alias set of what we are making a
19614         subtype of to ensure conflicts amongst all subtypes in a hierarchy,
19615         necessary since these are not different types and pointers may
19616         actually designate any subtype in this hierarchy.
19617         (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
19618         discriminants but put them into record only if not Unchecked_Union;
19619         pass flag to components_to_record showing Unchecked_Union.
19620         (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
19621         components before variants; don't set TYPE_UNCHECKED_UNION_P.
19622         (components_to_record): New argument UNCHECKED_UNION.
19623         Remove special case code for Unchecked_Union and instead use main code
19624         with small changes.
19625
19626         PR ada/26096
19627         (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
19628         variable with the expression being built, only its inner field.
19629
19630         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
19631         emit_sequence_entry_statements.
19632         (emit_sequence_entry_statements, body_with_handlers_p): Delete.
19633         (establish_gnat_vms_condition_handler): Move before
19634         Subprogram_Body_to_gnu.
19635         (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
19636         for a subprogram if it has a foreign convention or is exported.
19637         (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
19638         substituted for a CONST_DECL.
19639         (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
19640         Etype to assoc_to_constructor.
19641         (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
19642         discriminants of Unchecked_Union.
19643         (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
19644         don't need cluttering preprocessor directives.
19645         (establish_gnat_vms_condition_handler): New function. Establish the GNAT
19646         condition handler as current in the compiled function.
19647         (body_with_handlers_p): New function. Tell whether a given sequence of
19648         statements node is attached to a package or subprogram body and involves
19649         exception handlers possibly nested within inner block statements.
19650         (emit_sequence_entry_statements): New function, to emit special
19651         statements on entry of sequences when necessary. Establish GNAT
19652         condition handler in the proper cases for VMS.
19653         (Handled_Sequence_Of_Statements_to_gnu): Start block code with
19654         emit_sequence_entry_statements.
19655
19656         * utils2.c (find_common_type): If both input types are BLKmode and
19657         have a constant size, use the smaller one.
19658         (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
19659         the same.
19660
19661         * utils.c (value_factor_p): Make public, to allow uses from other gigi
19662         units.
19663         (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
19664         (convert, case UNION_TYPE): Remove special treatment for unchecked
19665         unions.
19666
19667         PR ada/18659
19668         (update_pointer_to): Update variants of pointer types to unconstrained
19669         arrays by attaching the list of fields of the main variant.
19670
19671 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19672             Robert Dewar  <dewar@adacore.com>
19673
19674         * a-exexpr.adb, a-exexpr-gcc.adb
19675         (Process_Raise_Exception): Removed, merged with Propagate_Exception.
19676         (Propagate_Exception): Now take extra From_Signal_Handler parameter.
19677         Remove code unused for exception propagation for the compiler itself
19678         from a-except.adb and update to still share separate packages.
19679
19680         * a-except.ads, a-except.adb: Ditto.
19681         Add comments that this version is now used only by the compiler and
19682         other basic tools. The full version that includes the Ada 2005 stuff
19683         is in separate files a-except-2005.ads/adb. The reason is that we do
19684         not want to cause bootstrap problems with compilers not recognizing
19685         Wide_Wide_String.
19686         Add exception reason code PE_Implicit_Return
19687         Add new exception reason code (Null Exception_Id)
19688
19689         * a-except-2005.adb, a-except-2005.ads: New files.
19690
19691         * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
19692
19693         * s-wchcon.adb: New file.
19694
19695         * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
19696         (traceback.o deps): Likewise.
19697         (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
19698         Activate build of GMEM instrumentation library on VMS targets.
19699         (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
19700         Use a-except-2005.ads/adb for all run-time library builds unless
19701         specified otherwise.
19702         [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
19703         s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
19704         Use s-parame.adb on all native platforms.
19705         Use s-parame-vxworks.adb on all vxworks platforms.
19706         Add env.c env.h in LIBGNAT_SRCS
19707         Add env.o in LIBGNAT_OBJS
19708         (GNATMAKE_OBJS): Remove ctrl_c.o object.
19709         (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
19710         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
19711         supports VxWorks 6 RTPs.
19712         (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
19713         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
19714
19715         * types.h, types.ads (Terminate_Program): New exception
19716         Add comment on modifying multiple versions of a-except.adb when the
19717         table of exception reasons is modified.
19718         Add exception reason code PE_Implicit_Return
19719         Add new exception reason code (Null Exception_Id)
19720
19721         * clean.adb (Initialize): Get the target parameters before checking
19722         if target is OpenVMS. Move the OpenVMS specific code here from package
19723         body elaboration code.
19724
19725 2006-02-13  Thomas Quinot  <quinot@adacore.com>
19726             Vincent Celier  <celier@adacore.com>
19727             Robert Dewar  <dewar@adacore.com>
19728
19729         * ali-util.adb (Get_File_Checksum): Update to account for change in
19730         profile of Initialize_Scanner.
19731
19732         * gprep.adb (Gnatprep): Update to account for change in profile of
19733         Initialize_Scanner.
19734         (Process_One_File): Same.
19735
19736         * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
19737         common code between Get_Code_Unit and Get_Source_Unit. Reimplement
19738         that behaviour using the new Unit information recorded in the source
19739         files table, rather than going through all units every time.
19740         (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
19741         (Get_Source_Unit): Same.
19742
19743         * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
19744         change in profile of Initialize_Scanner.
19745         (Prepare_To_Preprocess): Same.
19746
19747         * lib.ads: Fix typo in comment (templace -> template).
19748
19749         * prj-part.adb (Parse_Single_Project): Update to account for change in
19750         profile of Initialize_Scanner.
19751
19752         * scn.adb (Initialize_Scanner): Account for change in profile of
19753         Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
19754         Also record the association of the given Source_File_Index to the
19755         corresponding Unit_Number_Type.
19756
19757         * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
19758         procedure.
19759         (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
19760         Remove Unit formal for generic scanner: this formal
19761         is only relevant to Scn (the scanner instance used to parse Ada source
19762         files), not to other instances. Update comment accordingly.
19763         (Scan): Use new function Snames.Is_Keyword_Name.
19764
19765         * sinfo-cn.adb: Fix typo in comment.
19766
19767         * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
19768         Unit.
19769
19770         * sinput.ads (Source_File_Record): New component Unit, used to capture
19771         the unit identifier (if any) associated to a source file.
19772
19773         * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
19774         Unit in Source_File_Record.
19775
19776         * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
19777         in profile of Initialize_Scanner.
19778
19779         * scans.adb (Initialize_Ada_Keywords): New procedure
19780
19781         * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
19782         Ada keywords in the Namet table, without the need to call
19783         Initialize_Scanner.
19784
19785         * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
19786         (Is_Keyword_Name): New function
19787
19788         * snames.ads: Add subtype Configuration_Pragma_Names
19789         Add pragma Ada_2005 (synonym for Ada_05)
19790         (Is_Keyword_Name): New function
19791
19792         * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
19793
19794 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19795
19796         * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
19797         index.
19798
19799         * a-stwima.adb (To_Set): Add extra check when N = 0.
19800
19801         * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
19802
19803 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19804
19805         * s-parame-mingw.adb, s-parame-linux.adb,
19806         s-parame-solaris.adb: Removed, replaced by s-parame.adb
19807
19808         * s-parame-vxworks.ads: Fix typo.
19809
19810         * s-parame-vxworks.adb: New file.
19811
19812         * s-parame.adb: Version now used by all native platforms.
19813         (Default_Stack_Size): Use 2 megs for default stack size and use
19814         __gl_default_stack_size when available.
19815         (Minimum_Stack_Size): Use 12K.
19816
19817         * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
19818         (Create_Task): Refine implementation taking advantage of the XP stack
19819         size support. On XP, we now create the thread using the flag
19820         STACK_SIZE_PARAM_IS_A_RESERVATION.
19821
19822         * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
19823
19824         * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
19825         XP and 0 on older Windows versions.
19826
19827         * interfac-vms.ads: Removed, no longer used.
19828
19829 2006-02-13  Matthew Heaney  <heaney@adacore.com>
19830
19831         * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
19832         a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
19833         a-cohase.adb: All explicit raise statements now include an exception
19834         message.
19835
19836         * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
19837         (Update_Element_Preserving_Key): renamed op to just Update_Element.
19838         Explicit raise statements now include an exception message
19839
19840         * a-cihase.ads, a-cohase.ads: Removed comment.
19841
19842         * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
19843         a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
19844         a-szbzha.adb, a-szfzha.ads: New files.
19845
19846 2006-02-13  Matthew Heaney  <heaney@adacore.com>
19847
19848         * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
19849         quicksort.
19850
19851 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
19852
19853         * lang.opt: Wvariadic-macros: New option.
19854         Wold-style-definition: Likewise.
19855         Wmissing-format-attribute: Likewise.
19856
19857         * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
19858         -Wold-style-definition and -Wmissing-format-attribute.
19859
19860 2006-02-13  Robert Dewar  <dewar@adacore.com>
19861
19862         * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
19863
19864         * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
19865
19866 2006-02-13  Nicolas Roche  <roche@adacore.com>
19867
19868         * a-envvar.adb, a-envvar.ads: New files.
19869
19870 2006-02-13  Douglas Rupp  <rupp@adacore.com>
19871
19872         * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
19873
19874         * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
19875
19876 2006-02-13  Pat Rogers  <rogers@adacore.com>
19877
19878         * a-rttiev.adb, a-rttiev.ads: New files.
19879
19880 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
19881
19882         * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
19883         a-wwboio.ads, a-zzboio.adb, a-zzboio.ads:  New files.
19884
19885         * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
19886
19887 2006-02-13  Robert Dewar  <dewar@adacore.com>
19888
19889         * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
19890         sem_case.adb: Minor code reorganization (not Present should be No)
19891
19892 2006-02-13  Geert Bosch  <bosch@adacore.com>
19893             Gary Dismukes  <dismukes@adacore.com>
19894
19895         * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
19896         0, since the lower bound of the actual string may be greater than one.
19897
19898         PR ada/20753
19899         * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
19900         layout is requested.
19901
19902 2006-02-13  Vincent Celier  <celier@adacore.com>
19903
19904         * back_end.adb (Scan_Compiler_Arguments): Check if
19905         Search_Directory_Present is True and, if it is, add the argument in
19906         the source search directory path.
19907
19908         * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
19909         Search_Directory_Present to True.
19910
19911 2006-02-13  Joel Brobecker  <brobecke@adacore.com>
19912
19913         * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
19914         volatile, to tell the compiler to preserve this variable at any level
19915         of optimization.
19916         (Gen_Versions_Ada): Temporarily work around codegen bug.
19917
19918 2006-02-13  Vincent Celier  <celier@adacore.com>
19919
19920         * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
19921         gcc to link with option -shared-libgcc.
19922         (Gnatlink): Remove duplicate switches -shared-libgcc
19923
19924 2006-02-13  Robert Dewar  <dewar@adacore.com>
19925
19926         * gnatvsn.ads (Current_Year): New constant, used to easily update
19927         copyright on all GNAT tools.
19928
19929         * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
19930         copyright notice.
19931
19932 2006-02-13  Robert Dewar  <dewar@adacore.com>
19933
19934         * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
19935         after hyphen (small aesthetic change useful for a range of numbers
19936         using ^-^.
19937         Suppress range checks for a couple of assignments which otherwise
19938         cause validity checks with validity checking turned on.
19939
19940         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
19941         Improvement in error message for object.
19942         (Rep_Item_Too_Late): Remove '!' in warning message.
19943
19944 2006-02-13  Robert Dewar  <dewar@adacore.com>
19945             Eric Botcazou  <ebotcazou@adacore.com>
19946
19947         * err_vars.ads: Suppress range checks for a couple of assignments
19948         which otherwise cause validity checks with validity checking turned on.
19949         Update comments.
19950
19951         * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
19952         Make message unconditional if it is a warning.
19953         (Error_Msg_NEL): Always output warning messages.
19954         Suppress range checks for a couple of assignments which otherwise
19955         cause validity checks with validity checking turned on.
19956
19957         * errout.ads (Message Insertion Characters): Document that '!' is
19958         implied by '?' in error messages.
19959
19960         * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
19961         (Gnat1drv): Use a goto to end of main subprogram instead of
19962         Exit_Program (E_Success) so that finalization can occur normally.
19963
19964 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
19965
19966         * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
19967         wrapped around.
19968
19969 2006-02-13  Vincent Celier  <celier@adacore.com>
19970
19971         * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
19972         Unchecked_Conversion functions.
19973         (Modification_Time): Use direct conversion of OS_Time to Calendar time
19974         when OpenVMS returns False.
19975
19976         * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
19977         a-dirval.adb (OpenVMS): New Boolean function
19978
19979 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19980             Thomas Quinot  <quinot@adacore.com>
19981
19982         * checks.adb (Build_Discriminant_Checks): If the expression being
19983         checks is an aggregate retrieve the values of its discriminants to
19984         generate the check, rather than creating a temporary and a reference
19985         to it.
19986         (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
19987         (Install_Null_Excluding_Check): Ditto
19988         (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
19989         not for the renamed object, so that the actual itype is attached in the
19990         proper context.
19991
19992 2006-02-13  Robert Dewar  <dewar@adacore.com>
19993             Vincent Celier  <celier@adacore.com>
19994
19995         * debug.adb: Eliminate numeric switches for binder/gnatmake
19996
19997         * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
19998         switches for the compiler.
19999         (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
20000         (Scan_Make_Switches): When failing with an illegal switch, output an
20001         error message with the full switch.
20002         Eliminate numeric switches for binder/gnatmake
20003
20004         * switch.ads, switch.adb (Bad_Switch): New procedure
20005
20006         * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
20007         Remove 0-9 as debug flag character possibilities
20008         -d is now controlling the primary stack size when its value is a
20009         positive. Also add checks against invalid values, and support for kb,
20010         mb. Ditto for -D switch.
20011
20012 2006-02-13  Robert Dewar  <dewar@adacore.com>
20013             Serguei Rybin  <rybin@adacore.com>
20014
20015         * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
20016         save/restore routines.
20017         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20018         were not always properly handled previously.
20019         Since we are changing the tree format anyway, also get rid of the
20020         junk obsolete Immediate_Errors flag.
20021         (Tree_Read): Change the way of reading Tree_Version_String - now we
20022         read the version string from the tree even if its length is not the
20023         same as the length of the version string computed from Gnatvsn.
20024         (Search_Directory_Present): New Boolean flag for the compiler.
20025         Define Tree_Version_String as a dynamic string.
20026         (Default_Stack_Size): new variable, used to handle switch -d.
20027
20028         * par-prag.adb:
20029         For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
20030         only for main unit.
20031         Add pragma Ada_2005 (synonym for Ada_05)
20032         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20033         were not always properly handled previously.
20034
20035         * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
20036         explicit Ada_95 to Ada_2005.
20037
20038 2006-02-13  Javier Miranda  <miranda@adacore.com>
20039             Robert Dewar  <dewar@adacore.com>
20040             Ed Schonberg  <schonberg@adacore.com>
20041
20042         * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
20043         against errors in the source program: a private types for which the
20044         corresponding full type declaration is missing and pragma CPP_Virtual
20045         is used.
20046         (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
20047         (Is_Known_Null): New flag
20048         (Has_Pragma_Pure): New flag
20049         (No_Return): Present in all entities, set only for procedures
20050         (Is_Limited_Type): A type whose ancestor is an interface is limited if
20051         explicitly declared limited.
20052         (DT_Offset_To_Top_Func): New attribute that is present in E_Component
20053         entities. Only used for component marked Is_Tag. If present it stores
20054         the Offset_To_Top function used to provide this value in tagged types
20055         whose ancestor has discriminants.
20056
20057         * exp_ch2.adb: Update status of new Is_Known_Null flag
20058
20059         * sem_ch7.adb: Maintain status of new Is_Known_Null flag
20060
20061         * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
20062         the categorization sense if Is_Pure was set by pragma Pure_Function.
20063
20064 2006-02-13  Quentin Ochem  <ochem@adacore.com>
20065             Olivier Hainque  <hainque@adacore.com>
20066
20067         * bindusg.adb: Updated documentation for -d and -D switches.
20068
20069         * raise.h (__gnat_set_globals): added new parameter for
20070         Default_Stack_Size.
20071
20072         * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
20073         (__gnat_handle_vms_condition): Adjust context before raise.
20074         (__gnat_install_handler): Restore the global vector setup for GCC
20075         versions before 3.4, as the frame based circtuitry is not available
20076         in this case.
20077         (__gnat_set_globals): added a parameter default_stack_size
20078         (__gl_default_stack_size): new variable.
20079
20080 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20081
20082         * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
20083         "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
20084         does not exist in the Ada RM.
20085         (Compatible_Int_Bounds): Determine whether two integer range bounds
20086         are of equal length and have the same start and end values.
20087         (Is_Int_Range_Bounds): Determine whether a node is an integer range.
20088         (Build_Record_Aggr_Code): Perform proper sliding of a nested array
20089         aggregate when it is part of an object declaration.
20090         (Build_Record_Aggr_Code)  If the aggregate ttype is a derived type that
20091         constrains discriminants of its parent, add explicitly the discriminant
20092         constraints of the ancestor by retrieving them from the
20093         stored_constraint of the parent.
20094
20095 2006-02-13  Robert Dewar  <dewar@adacore.com>
20096
20097         * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
20098         attribute Mechanism_Code is applied to renamed subprogram, modify
20099         prefix to point to base subprogram.
20100         Max/Min attributes now violate Restriction No_Implicit_Conditionals
20101
20102         * sinfo.ads: Document that Mechanism_Code cannot be applied to
20103         renamed subprograms so that the front-end must replace the prefix
20104         appropriately.
20105
20106 2006-02-13  Javier Miranda  <miranda@adacore.com>
20107             Gary Dismukes  <dismukes@adacore.com>
20108
20109         * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
20110         availability of RE_Interface_Tag.
20111         (Build_Initialization_Call): Fix wrong access to the discriminant value.
20112         (Freeze_Record_Type): Do not generate the tables associated with
20113         timed and conditional dispatching calls through synchronized
20114         interfaces if compiling under No_Dispatching_Calls restriction.
20115         When compiling for Ada 2005, for a nonabstract
20116         type with a null extension, call Make_Controlling_Function_Wrappers
20117         and insert the wrapper function declarations and bodies (the latter
20118         being appended as freeze actions).
20119         (Predefined_Primitive_Bodies): Do not generate the bodies of the
20120         predefined primitives associated with timed and conditional
20121         dispatching calls through synchronized interfaces if we are
20122         compiling under No_Dispatching_Calls.
20123         (Build_Init_Procedure):  Use RTE_Available to check if a run-time
20124         service is available before generating a call.
20125         (Make_Controlling_Function_Wrappers): New procedure.
20126         (Expand_N_Full_Type_Declaration): Create a class-wide master for
20127         access-to-limited-interfaces because they can be used to reference
20128         tasks that implement such limited interface.
20129         (Build_Offset_To_Top_Functions): Build the tree corresponding to the
20130         procedure spec and body of the Offset_To_Top function that is generated
20131         when the parent of a type with discriminants has secondary dispatch
20132         tables.
20133         (Init_Secondary_Tags): Handle the case in which the parent of the type
20134         containing secondary dispatch tables has discriminants to generate the
20135         correct arguments to call Set_Offset_To_Top.
20136         (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
20137
20138         * a-tags.ads, a-tags.adb: (Check_Index): Removed.
20139         Add Wide_[Wide_]Expanded_Name.
20140         (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
20141         the same functionality of Get_Prim_Op_Address but applied to predefined
20142         primitive operations because the pointers to the predefined primitives
20143         are now saved in a separate table.
20144         (Parent_Size): Modified to get access to the separate table of primitive
20145         operations or the parent type.
20146         (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
20147         functionality of Set_Prim_Op_Address but applied to predefined primitive
20148         operations.
20149         (Set_Signature): New subprogram used to store the signature of a DT.
20150         (Displace): If the Offset_To_Top value is not static then call the
20151         function generated by the expander to get such value; otherwise use
20152         the value stored in the table of interfaces.
20153         (Offset_To_Top): The type of the actual has been changed to Address to
20154         give the correct support to tagged types with discriminants. In this
20155         case this value is stored just immediately after the tag field.
20156         (Set_Offset_To_Top): Two new formals have been added to indicate if the
20157         offset_to_top value is static and hence pass this value to the run-time
20158         to store it in the table of interfaces, or else if this value is dynamic
20159         and then pass to the run-time the address of a function that is
20160         generated by the expander to provide this value for each object of the
20161         type.
20162
20163         * rtsfind.ads (Default_Prin_Op_Count): Removed.
20164         (Default_Prim_Op_Count): New entity
20165         (Get_Predefined_Prim_Op_Address): New entity
20166         (Set_Predefined_Prim_Op_Address): New entity
20167         (RE_Set_Signature): New entity
20168
20169 2006-02-13  Thomas Quinot  <quinot@adacore.com>
20170             Ed Schonberg  <schonberg@adacore.com>
20171
20172         * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
20173         Make_Adjust_Call done for a newly-allocated object.
20174
20175         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
20176         in a subprogram are wrapped in a cleanup block, indicate that the
20177         subprogram contains an inner block with an exception handler.
20178         (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
20179         Adjust call is for a newly-allocated object. In that case we must not
20180         assume that the finalization list chain pointers are correct (since they
20181         come from a bit-for-bit copy of the original object's pointers) so if
20182         the attach level would otherwise be zero (no change), we set it to 4
20183         instead to cause the pointers to be reset to null.
20184
20185         * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
20186         reset chain pointers to null.
20187
20188 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20189
20190         * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
20191         string, and the context requires a loop for the assignment (e.g.
20192         because the left-hand side is packed), generate a unique name for the
20193         temporary that holds the string, to prevent spurious name clashes.
20194
20195 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20196             Javier Miranda  <miranda@adacore.com>
20197             Robert Dewar  <dewar@adacore.com>
20198             Gary Dismukes  <dismukes@adacore.com>
20199
20200         * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
20201         return unconstrained arrays.
20202         Update comments.
20203         (Expand_Call):  An indirect call through an access parameter of a
20204         protected operation is not a protected call.
20205         Add circuit to raise CE in Ada 2005 mode following call
20206         to Raise_Exception.
20207         (Register_DT_Entry): Do nothing if
20208         the run-time does not give support to abstract interfaces.
20209         (Freeze_Subprogram): In case of dispatching operations, do not generate
20210         code to register the operation in the dispatch table if the source
20211         is compiled with No_Dispatching_Calls.
20212         (Register_Predefined_DT_Entry): Generate code that calls the new
20213         run-time subprogram Set_Predefined_Prim_Op_Address instead of
20214         Set_Prim_Op_Address.
20215
20216         * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
20217         on array assignments if the right-hand side is a function call that has
20218         been inlined. Check is performed on the assignment in the block.
20219         (Process_Bounds): If bounds and range are overloaded, apply preference
20220         rule for root operations to disambiguate, and diagnose true ambiguity.
20221         (Analyze_Assignment): Propagate the tag for a class-wide assignment with
20222         a tag-indeterminate right-hand side even when Expander_Active is True.
20223         Needed to ensure that dispatching calls to T'Input are allowed and
20224         get the tag of the target class-wide object.
20225
20226         * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
20227         an inherited primitive operation that already overrides several
20228         abstract interface primitives. For transitivity, the new entity must
20229         also override all the abstract interface primitives covered by the
20230         inherited overriden primitive.
20231         Emit warning if new entity differs from homograph in same scope only in
20232         that one has an access parameter and the other one has a parameter of
20233         a general access type with the same designated type, at the same
20234         position in the signature.
20235         (Make_Inequality_Operator): Use source locations of parameters and
20236         subtype marks from corresponding equality operator when creating the
20237         tree structure for the implicit declaration of "/=". This does not
20238         change anything in behaviour except that the decoration of the
20239         components of the subtree created for "/=" allows ASIS to get the
20240         string images of the corresponding identifiers.
20241         (Analyze_Return_Statement): Remove '!' in warning message.
20242         (Check_Statement_Sequence): Likewise.
20243         (Analyze_Subprogram_Body): For an access parameter whose designated type
20244         is an incomplete type imported through a limited_with clause, use the
20245         type of the corresponding formal in the body.
20246         (Check_Returns): Implicit return in No_Return procedure now raises
20247         Program_Error with a compile time warning, instead of beging illegal.
20248         (Has_Single_Return):  Function returning unconstrained type cannot be
20249         inlined if expression in unique return statement is not an identifier.
20250         (Build_Body_To_Inline): It is possible to inline a function call that
20251         returns an unconstrained type if all return statements in the function
20252         return the same local variable. Subsidiary procedure Has_Single_Return
20253         verifies that the body conforms to this restriction.
20254
20255         * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
20256         same type, and  one of them is of an anonymous access type, convert
20257         the other operand to it, so that this is a valid binary operation for
20258         gigi.
20259         (Resolve_Type_Conversion): Handle subtypes of protected types and
20260         task types when accessing to the corresponding record type.
20261         (Resolve_Allocator): Add '\' in 2-line warning message.
20262         Remove '!' in warning message.
20263         (Resolve_Call): Add '\' in 2-line warning message.
20264         (Valid_Conversion): Likewise.
20265         (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
20266         resulting type may be an access type with an implicit dereference.
20267         Obtain the proper component from the designated type.
20268         (Make_Call_Into_Operator): Handle properly a call to predefined equality
20269         given by an expanded name with prefix Standard, when the operands are
20270         of an anonymous access type.
20271         (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
20272         Explicit_Dereference and Resolve_Selected_Component, to verify that the
20273         prefix of the expression is not of an incomplete type. Allows full
20274         diagnoses of all semantic errors.
20275         (Resolve_Actuals): If the actual is an allocator whose directly
20276         designated type is a class-wide interface we build an anonymous
20277         access type to use it as the type of the allocator. Later, when
20278         the subprogram call is expanded, if the interface has a secondary
20279         dispatch table the expander will add a type conversion to force
20280         the displacement of the pointer.
20281         (Resolve_Call): If a function that returns an unconstrained type is
20282         marked Inlined_Always and inlined, the call will be inlined and does
20283         not require the creation of a transient scope.
20284         (Check_Direct_Boolean_Op): Removed
20285         (Resolve_Comparison_Op): Remove call to above
20286         (Resolve_Equality_Op): Remove call to above
20287         (Resolve_Logical_Op): Inline above, since this is only call.
20288         (Valid_Conversion): Handle properly conversions between arrays of
20289         convertible anonymous access types.
20290
20291         PR ada/25885
20292         (Set_Literal_String_Subtype): If the lower bound is not static, wrap
20293         the literal in an unchecked conversion, because GCC 4.x needs a static
20294         value for a string bound.
20295
20296 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20297             Hristian Kirtchev  <kirtchev@adacore.com>
20298
20299         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
20300         components of the corresponding record, take into account component
20301         definitions that are access definitions.
20302         (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
20303         procedure is not considered a dispatching call and will be expanded
20304         properly.
20305
20306 2006-02-13  Javier Miranda  <miranda@adacore.com>
20307
20308         * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
20309         controlling argument of the dispatching call is an abstract interface
20310         class-wide type then we use it directly.
20311         Check No_Dispatching_Calls restriction.
20312         (Default_Prim_Op_Position): Remove the code that looks for the last
20313         entity in the list of aliased subprograms. This code was wrong in
20314         case of renamings.
20315         (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
20316         when the source is compiled with the No_Dispatching_Calls restriction.
20317         (Init_Predefined_Interface_Primitives): No need to inherit primitives
20318         if we are compiling with restriction No_Dispatching_Calls.
20319         (Make_Disp_XXX): Addition of assertion to avoid the use of all these
20320         subprograms if we are compiling under No_Dispatching_Calls restriction.
20321         (Make_DT): Generate a dispatch table with a single dummy entry if
20322         we are compiling with the No_Dispatching_Calls restriction. In
20323         addition, in this case we don't generate code that calls to the
20324         following run-time subprograms: Set_Type_Kind, Inherit_DT.
20325         (Make_Select_Specific_Data_Table): Add assertion to avoid the use
20326         of this subprogram if compiling with the No_Dispatching_Calls
20327         restriction.
20328         (Expand_Type_Conversion): Instead of using the actual parameter,
20329         the argument passed as parameter to the conversion function was
20330         erroneously referenced by the expander.
20331         (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
20332         Set_Predefined_Primitive_Op_Address and Set_Signature.
20333         (Expand_Dispatching_Call): Generate call to
20334         Get_Predefined_Prim_Op_Address for predefined primitives.
20335         (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
20336         predefined primitives.
20337         (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
20338         primitives we reserve one dummy entry to ensure that the tag does not
20339         point to some memory that is associated with some other object. In
20340         addition, remove all the old code that generated the assignments
20341         associated with the signature of the dispatch table and replace them
20342         by a call to the new subprogram Set_Signature.
20343         (Set_All_DT_Position): Change the algorithm because now we have a
20344         separate dispatch table associated with predefined primitive operations.
20345         (Expand_Interface_Conversion): In case of non-static offset_to_top
20346         add explicit dereference to get access to the object after the call
20347         to displace the pointer to the object.
20348         (Expand_Interface_Thunk): Modify the generation of the actual used
20349         in the calls to the run-time function Offset_To_Top to fulfil its
20350         new interface.
20351         (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
20352
20353 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20354
20355         * exp_dist.adb (Copy_Specification): For access parameters, copy
20356         Null_Exclusion flag, which will have been set for stream subprograms
20357         in Ada2005 mode.
20358
20359 2006-02-13  Pascal Obry  <obry@adacore.com>
20360
20361         * expect.c (__gnat_expect_portable_execvp): New implementation. The
20362         previous implementation was using the C runtime spawnve routine but
20363         the corresponding wait was using directly the Win32 API. This was
20364         causing some times a lock when waiting for an event using
20365         WaitForSingleObject in __gnat_waitpid. This new implementation uses
20366         the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
20367         API fixes this problem.
20368
20369 2006-02-13  Robert Dewar  <dewar@adacore.com>
20370
20371         * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
20372         call.
20373
20374 2006-02-13  Thomas Quinot  <quinot@adacore.com>
20375
20376         * exp_pakd.ads: Fix typos in comments.
20377
20378         * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
20379         array reference that is an explicit dereference, mark the converted
20380         (packed) array reference as analyzed to prevent a forthcoming
20381         reanalysis from resetting its type to the original (non-packed) array
20382         type.
20383
20384 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20385             Javier Miranda  <miranda@adacore.com>
20386             Eric Botcazou  <ebotcazou@adacore.com>
20387
20388         * exp_util.ads, exp_util.adb (Find_Prim_Op,
20389         Is_Predefined_Primitive_Operation): When
20390         searching for the predefined equality operator, verify that operands
20391         have the same type.
20392         (Is_Predefined_Dispatching_Operation): Remove the code that looks
20393         for the last entity in the list of aliased subprograms. This code
20394         was wrong in case of renamings.
20395         (Set_Renamed_Subprogram): New procedure
20396         (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
20397         Exp_Type constant computed when entering this subprogram.
20398         (Known_Null): New function
20399         (OK_To_Do_Constant_Replacement): New function
20400         (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
20401         (Side_Effect_Free): An attribute reference 'Input is not free of
20402         side effect, unlike other attributes that are functions. (from code
20403         reading).
20404         (Remove_Side_Effects): Expressions that involve packed arrays or records
20405         are copied at the point of reference, and therefore must be marked as
20406         renamings of objects.
20407         (Is_Predefined_Dispatching_Operation): Return false if the operation is
20408         not a dispatching operation.
20409
20410         PR ada/18819
20411         (Remove_Side_Effects): Lift enclosing type conversion nodes for
20412         elementary types in all cases.
20413
20414 2006-02-13  Javier Miranda  <miranda@adacore.com>
20415
20416         * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
20417         task types when accessing to the corresponding record type.
20418         Remove '!' in warning message.
20419
20420 2006-02-13  Olivier Hainque  <hainque@adacore.com>
20421
20422         * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
20423         to avoid useless and space inefficient overalignments on targets where
20424         Max_Alignment is larger than 16.
20425
20426 2006-02-13  Pascal Obry  <obry@adacore.com>
20427
20428         * g-catiio.adb (Sec_Number): New type used to compute the number of
20429         seconds since 1-1-1970.
20430         (Image) [Natural]: The parameter was an Integer, as we can't deal with
20431         negative numbers (years, months...) it is better to have a Natural here.
20432         Code clean-up.
20433         (Image) [Number]: Change parameter from Long_Integer to Number.
20434         (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
20435         overflow for dates past year 2038.
20436
20437 2006-02-13  Matthew Heaney  <heaney@adacore.com>
20438
20439         *  g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
20440         Constraint_Error.
20441
20442 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
20443
20444         * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
20445         native platforms.
20446         (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
20447         finalization can occur normally.
20448
20449 2006-02-13  Vincent Celier  <celier@adacore.com>
20450
20451         * gnatcmd.adb (Rules_Switches): New table
20452         (Add_To_Rules_Switches): New procedure
20453         (GNATCmd): For command CHECK, put all options following "-rules" in the
20454         Rules_Switches table. Append these -rules switches after the -cargs
20455         switches.
20456
20457 2006-02-13  Robert Dewar  <dewar@adacore.com>
20458
20459         * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
20460         These two cases were generating incorrect output, and if this unit
20461         was built with checks on, generated a discriminant mismatch constraint
20462         error.
20463
20464 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20465             Robert Dewar  <dewar@adacore.com>
20466
20467         * lib-xref.adb (Get_Type_Reference): For a private type whose full
20468         view is an array type, indicate the component type as well, for
20469         navigation purposes.
20470         (Generate_Reference): Don't consider array ref on LHS to be a case
20471         of violating pragma Unreferenced.
20472         Do not give Ada 2005 warning except on real reference.
20473
20474 2006-02-13  Vincent Celier  <celier@adacore.com>
20475
20476         * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
20477         main source, add switch -mdebug-main=_ada_ so that the executable can
20478         be debugged by the standard VMS debugger.
20479         (Gnatmake): Set No_Main_Subprogram to True when there is no main
20480         subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
20481         Exit the Multi_Main_Loop when Unique_Compile is True after compilation
20482         of the last source, as the binding and linking phases are never
20483         performed.
20484         Set all executable obsolete when rebuilding a library.
20485
20486         * makeutl.adb (Linker_Options_Switches): Do not process empty linker
20487         options.
20488
20489 2006-02-13  Javier Miranda  <miranda@adacore.com>
20490
20491         PR ada/23973
20492         * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
20493         code to improve the error message reported when the program has
20494         declarations of abstract interface types and it is not compiled with
20495         the -gnat05 switch.
20496         (P_Access_Definition): Reorganize the code to improve the error
20497         message reported when the new Ada 2005 syntax for anonymous
20498         access types is used and the program is not compiled with the
20499         -gnat05 switch.
20500
20501 2006-02-13  Robert Dewar  <dewar@adacore.com>
20502
20503         * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
20504         stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
20505         (MODE_IN)
20506
20507 2006-02-13  Javier Miranda  <miranda@adacore.com>
20508
20509         * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
20510         against source containing syntax errors.
20511
20512 2006-02-13  Vincent Celier  <celier@adacore.com>
20513
20514         * prj.adb (Reset): Initialize the first element of table Namings with
20515         the standard naming data.
20516
20517 2006-02-13  Vincent Celier  <celier@adacore.com>
20518
20519         * prj.ads (Error_Warning): New enumeration type
20520
20521         * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
20522         unknown, use the location of the project to report the error.
20523         (When_No_Sources): New global variable
20524         (Report_No_Ada_Sources): New procedure
20525         (Check): New parameter When_No_Sources. Set value of global variable
20526         When_No_Sources,
20527         (Find_Sources): Call Report_No_Ada_Sources when appropriate
20528         (Get_Sources_From_File): Ditto
20529         (Warn_If_Not_Sources): Better warning messages indicating the unit name
20530         and the file name.
20531
20532         * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
20533         Call Prj.Proc.Process with parameter When_No_Sources.
20534
20535         * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
20536         Call Recursive_Check with parameter When_No_Sources.
20537         (Recursive_Check): New parameter When_No_Sources. Call itself and
20538         Prj.Nmsc.Check with parameter When_No_Sources.
20539         (Process): New parameter When_No_Sources. Call Check with parameter
20540         When_No_Sources.
20541         (Copy_Package_Declarations): New procedure to copy renamed parameters
20542         and setting the location of the declared attributes to the location
20543         of the renamed package.
20544         (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
20545         packages.
20546
20547 2006-02-13  Vincent Celier  <celier@adacore.com>
20548
20549         * prj-makr.adb (Make): Preserve the comments from the original project
20550         file.
20551         When removing nodes (attributes Source_Dirs, Source_Files,
20552         Source_List_File and package Naming), save the comments and attach the
20553         saved comments to the newly created nodes.
20554         Do not add a with clause for the naming package if one already exists.
20555
20556 2006-02-13  Javier Miranda  <miranda@adacore.com>
20557             Gary Dismukes  <dismukes@adacore.com>
20558             Robert Dewar  <dewar@adacore.com>
20559
20560         * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
20561
20562         * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
20563         aliased entities to look for the overriden abstract interface
20564         subprogram.
20565         (Is_Interface_Subprogram): Complete documentation.
20566         (Check_Dispatching_Operation): Do not generate code to register the
20567         operation in the dispatch table if the source is compiled with
20568         restriction No_Dispatching_Calls.
20569         (Override_Dispatching_Operation): Check for illegal attempt to override
20570         No_Return procedure with procedure that is not No_Return
20571         (Check_Dispatching_Call): Suppress the check for an abstract operation
20572         when the original node of an actual is a tag-indeterminate attribute
20573         call, since the attribute, which must be 'Input, can never be abstract.
20574         (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
20575         call to the Input attribute (even when rewritten).
20576         (Propagate_Tag): Augment comment to indicate the possibility of a call
20577         to an Input attribute.
20578
20579         * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
20580         calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
20581
20582         * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
20583         No_Wide_Characters is no longer partition-wide
20584         No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
20585         rather than GNAT
20586
20587 2006-02-13  Douglas Rupp  <rupp@adacore.com>
20588
20589         * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
20590
20591 2006-02-13  Javier Miranda  <miranda@adacore.com>
20592
20593         * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
20594         handles default-initialized components to keep separate the management
20595         of this feature but also avoid the unrequired resolution and
20596         expansion of components that do not have partially initialized
20597         values.
20598         (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
20599         (Check_Bounds): Likewise.
20600         (Check_Length): Likewise.
20601
20602 2006-02-13  Javier Miranda  <miranda@adacore.com>
20603             Ed Schonberg  <schonberg@adacore.com>
20604
20605         * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
20606         abstract interface type call analyze_and_resolve to expand the type
20607         conversion into the corresponding displacement of the
20608         reference to the base of the object.
20609         (Eval_Attribute, case Width): For systems where IEEE extended precision
20610         is supported, the maximum exponent occupies 4 decimal digits.
20611         (Accessibility_Message): Add '\' in 2-line warning message.
20612         (Resolve_Attribute): Likewise.
20613         (case Attribute_Access): Significantly revise checks
20614         for illegal access-to-subprogram Access attributes to properly enforce
20615         the rules of 3.10.2(32/2).
20616         Diagnose use of current instance with an illegal attribute.
20617
20618         * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
20619         to a Node_Id.
20620         (Enclosing_Generic_Unit): New function to return a node's innermost
20621         enclosing generic declaration node.
20622         (Compile_Time_Constraint_Error): Remove '!' in warning messages.
20623         (Type_Access_Level): The accessibility level of anonymous acccess types
20624         associated with discriminants is that of the current instance of the
20625         type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
20626         (Compile_Time_Constraint_Error): Handle case of conditional expression.
20627         (Kill_Current_Values_For_Entity): New function
20628         (Enter_Name): Change formal type to Entity_Id
20629
20630 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
20631             Ed Schonberg  <schonberg@adacore.com>
20632             Gary Dismukes  <dismukes@adacore.com>
20633
20634         * sem_ch10.adb (Check_Redundant_Withs): New procedure in
20635         Analyze_Compilation_Unit.
20636         Detect and warn on redundant with clauses detected in a package spec
20637         and/or body when -gnatwr is used.
20638         (Analyze_Context): Analyze config pragmas before other items
20639         (Install_Context_Items): Don't analyze config pragmas here
20640         (Install_Limited_Withed_Unit): Set limited entity of package in
20641         with_clause so that cross-reference information or warning messages on
20642         unused packages can be properly generated
20643         (Is_Visible_Through_Renamings): Return false if the limited_with_clause
20644         has Error_Posted set. Prevent infinite loops in illegal programs.
20645         (Check_Private_Child_Unit): Move test for a nonprivate with clause down
20646         to the point of the error test requiring the current unit to be private.
20647         This ensures that private with clauses are not exempted from the basic
20648         checking for being a descendant of the same library unit parent as a
20649         withed private descendant unit.
20650         (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
20651         handle private with clauses properly, as well as to account for cases
20652         where the withed unit is a public descendant of a private ancestor
20653         (in which case the current unit must be a descendant of the private
20654         ancestor's parent). The spec comments were updated accordingly. Also,
20655         the old error message in this subprogram was replaced with error
20656         messages that mirror the errors tested and reported by
20657         Check_Private_Child_Unit.
20658         Parameter and variable names improved for readability.
20659         (Install_Limited_Context_Clauses): Remove test for a withed unit being
20660         private as the precondition for calling
20661         Check_Private_Limited_Withed_Unit since that subprogram has been
20662         revised to test public units as well as private units.
20663
20664 2006-02-13  Thomas Quinot  <quinot@adacore.com>
20665             Robert Dewar  <dewar@adacore.com>
20666             Ed Schonberg  <schonberg@adacore.com>
20667             Javier Miranda  <miranda@adacore.com>
20668
20669         * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
20670         that Scope_Stack.First = 1.
20671         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20672         were not always properly handled previously.
20673         (Formal_Entity): Complete rewrite, to handle properly some complex case
20674         with multiple levels of parametrization by formal packages.
20675         (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
20676         to the corresponding derived type declaration for proper semantics.
20677
20678         * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
20679         (Check_Component): Enforce restriction on components of
20680         unchecked_unions: a component in a variant cannot contain tasks or
20681         controlled types.
20682         (Unchecked_Union): Allow nested variants and multiple discriminants, to
20683         conform to AI-216.
20684         Add pragma Ada_2005 (synonym for Ada_05)
20685         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20686         were not always properly handled previously.
20687         Document that pragma Propagate_Exceptions has no effect
20688         (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
20689         (Set_Convention_From_Pragma): Check that if a convention is
20690         specified for a dispatching operation, then it must be
20691         consistent with the existing convention for the operation.
20692         (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
20693         longer required to specify an vtable-ptr component in the record. For
20694         compatibility reasons we leave the support for the previous definition.
20695         (Analyze_Pragma, case No_Return): Allow multiple arguments
20696
20697         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
20698         non-overrideen inherited operation with a controlling result as
20699         illegal only its implicit declaration comes from the derived type
20700         declaration of its result's type.
20701         (Check_Possible_Deferred_Completion): Relocate the object definition
20702         node of the subtype indication of a deferred constant completion rather
20703         than directly analyzing it. The analysis of the generated subtype will
20704         correctly decorate the GNAT tree.
20705         (Record_Type_Declaration): Check whether this is a declaration for a
20706         limited derived record before analyzing components.
20707         (Analyze_Component_Declaration): Diagnose record types  not explicitly
20708         declared limited when a component has a limited type.
20709         (Build_Derived_Record_Type): Code reorganization to check if some of
20710         the inherited subprograms of a tagged type cover interface primitives.
20711         This check was missing in case of a full-type associated with a private
20712         type declaration.
20713         (Constant_Redeclaration): Check that the subtypes of the partial and the
20714         full view of a constrained deferred constant statically match.
20715         (Mentions_T): A reference to the current type in an anonymous access
20716         component declaration  must be an entity name.
20717         (Make_Incomplete_Type_Declaration): If type is tagged, set type of
20718         class_wide type to refer to full type, not to the incomplete one.
20719         (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
20720         available. Required to give support to the certified run-time.
20721         (Analyze_Component_Declaration): In case of anonymous access components
20722         perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
20723         (Process_Discriminants): For an access discriminant, use the
20724         discriminant specification as the associated_node_for_itype, to
20725         simplify accessibility checks.
20726
20727 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20728             Javier Miranda  <miranda@adacore.com>
20729
20730         * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
20731         abstract interpretations on an operator, remove interpretations that
20732         yield Address or a type derived from it, if one of the operands is an
20733         integer literal.
20734         (Try_Object_Operation.Try_Primitive_Operation,
20735         Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
20736         location when creating the new reference to a primitive or class-wide
20737         operation as a part of rewriting a subprogram call.
20738         (Try_Primitive_Operations): If context requires a function, collect all
20739         interpretations after the first match, because there may be primitive
20740         operations of the same type with the same profile and different return
20741         types. From code reading.
20742         (Try_Primitive_Operation): Use the node kind to choose the proper
20743         operation when a function and a procedure have the same parameter
20744         profile.
20745         (Complete_Object_Operation): If formal is an access parameter and prefix
20746         is an object, rewrite as an Access reference, to match signature of
20747         primitive operation.
20748         (Find_Equality_Type, Find_One_Interp): Handle properly equality given
20749         by an expanded name with prefix Standard, when the operands are of an
20750         anonymous access type.
20751         (Remove_Abstract_Operations): If the operation is abstract because it is
20752         inherited by a user-defined type derived from Address, remove it as
20753         well from the set of candidate interpretations of an overloaded node.
20754         (Analyze_Membership_Op): Membership test not applicable to cpp-class
20755         types.
20756
20757 2006-02-13  Bob Duff  <duff@adacore.com>
20758
20759         * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
20760         redundant use clauses.
20761         In particular, if the scope of two use clauses overlaps, but one is not
20762         entirely included in the other, we should not warn.  This can happen
20763         with nested packages.
20764         (Analyze_Subprogram_Renaming): Protect the compiler against previously
20765         reported errors. The bug was reported when the compiler was built
20766         with assertions enabled.
20767         (Find_Type): If the node is a 'Class reference and the prefix is a
20768         synchronized type without a corresponding record, return the type
20769         itself.
20770
20771 2006-02-13  Javier Miranda  <miranda@adacore.com>
20772
20773         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
20774         if this is the full-declaration associated with a private declaration
20775         that implement interfaces, then the private type declaration must be
20776         limited.
20777         (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
20778         as aliased. The use of the 'access attribute is not available for such
20779         object (for this purpose the object should be explicitly marked as
20780         aliased, but being an anonymous type this is not possible).
20781
20782 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20783             Robert Dewar  <dewar@adacore.com>
20784
20785         * sem_elab.adb (Same_Elaboration_Scope): A package that is a
20786         compilation unit is an elaboration scope.
20787         (Add_Task_Proc): Add '\' in 2-line warning message.
20788         (Activate_All_Desirable): Deal with case of unit with'ed by parent
20789
20790 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20791             Javier Miranda  <miranda@adacore.com>
20792
20793         * sem_type.adb (Write_Overloads): Improve display of candidate
20794         interpretations.
20795         (Add_One_Interp): Do not add to the list of interpretations aliased
20796         entities corresponding with an abstract interface type that is an
20797         immediate ancestor of a tagged type; otherwise we have a dummy
20798         conflict between this entity and the aliased entity.
20799         (Disambiguate): The predefined equality on universal_access is not
20800         usable if there is a user-defined equality with the proper signature,
20801         declared in the same declarative part as the designated type.
20802         (Find_Unique_Type): The universal_access equality operator defined under
20803         AI-230 does not cover pool specific access types.
20804         (Covers): If one of the types is a generic actual subtype, check whether
20805         it matches the partial view of the other type.
20806
20807 2006-02-13  Thomas Quinot  <quinot@adacore.com>
20808
20809         * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
20810         line. This is necessary to allow In_Extended_Main_Unit to provide
20811         correct results for itypes while writing out expanded source.
20812         (Close_File): No need to update the source_index_table here since it's
20813         now done for each line.
20814
20815 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20816             Robert Dewar  <dewar@adacore.com>
20817
20818         * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
20819         preserve the source unit where the itype is declared, and prevent a
20820         backend abort.
20821         (Note_Implicit_Run_Time_Call): New procedure
20822         (Write_Itype): Handle missing cases (E_Class_Wide_Type and
20823         E_Subprogram_Type)
20824
20825         * sprint.ads: Document use of $ for implicit run time routine call
20826
20827 2006-02-13  Quentin Ochem  <ochem@adacore.com>
20828
20829         * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
20830         task name.
20831
20832 2006-02-13  Bob Duff  <duff@adacore.com>
20833
20834         * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
20835         Scan_Unsigned, so we do not scan leading blanks and sign twice.
20836         Integer'Value("- 5") and Integer'Value("-+5") now correctly
20837         raise Constraint_Error.
20838
20839         * s-vallli.adb (Scan_Long_Long_Integer): Call
20840         Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
20841         do not scan leading blanks and sign twice.
20842         Integer'Value("- 5") and Integer'Value("-+5") now correctly
20843         raise Constraint_Error.
20844
20845         * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
20846         Scan_Long_Long_Unsigned): Split out most of the processing from
20847         Scan_Long_Long_Unsigned out into
20848         Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
20849         This prevents scanning leading blanks and sign twice.
20850         Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
20851         See RM-3.5(44).
20852
20853         * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
20854         out most of the processing from Scan_Unsigned out into
20855         Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
20856         This prevents scanning leading blanks and sign twice.
20857
20858         * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
20859         use with Modular'Value attribute.
20860         (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
20861         attribute.
20862
20863 2006-02-13  Robert Dewar  <dewar@adacore.com>
20864
20865         * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
20866
20867 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
20868
20869         * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
20870         (PPC VxWorks): Likewise.
20871         (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
20872         (forced_callee): Make non-inlinable and non-pure.
20873         (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
20874
20875 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
20876             Ben Brosgol  <brosgol@adacore.com>
20877             Robert Dewar  <dewar@adacore.com>
20878
20879         * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
20880         support.
20881         Document that gnatbind -M option is for cross environments only.
20882         Added description of using gnatmem to trace gnat rtl allocs and deallocs
20883         Add note on use of $ to label implicit run time calls
20884         Add documentation for -gnatyI (check mode IN)
20885         Updated chapter on compatibility with HP Ada
20886         VMS-oriented edits.
20887         Ran spell and corrected errors
20888         Add documentation for gnatbind -d and rework documentation of -D
20889         at the same time.
20890         Add subprogram/data elimination section.
20891         Minor editing of annex A.
20892         Add section for gnatcheck.
20893         Add documentation for restriction No_Dispatching_Calls
20894         Add documentation for pragma Ada_2005
20895         Remove mention of obsolete pragma Propagate_Exceptions
20896         Document that pragma Unreferenced can appear after DO in ACCEPT
20897         Clarify Pure_Function for library level units
20898         Mention Max/Min in connection with No_Implicit_Conditionals
20899         No_Wide_Characters restriction is no longer partition-wide
20900         Add a nice example for Universal_Literal_String attribute
20901         Document that pragma No_Return can take multiple arguments
20902
20903         * ug_words: Added entry for gnatcheck
20904
20905         * g-ctrl_c.ads (Install_Handler): Enhance comments
20906
20907         * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
20908
20909         * g-trasym.ads: Add documentation on how to do off line symbolic
20910         traceback computation.
20911
20912         * s-fatgen.adb: Add comments for Unaligned_Valid
20913
20914         * stand.ads: Fix typo in comment
20915
20916 2006-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
20917
20918         * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
20919
20920 2006-02-06  Roger Sayle  <roger@eyesopen.com>
20921
20922         * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
20923
20924 2006-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20925
20926         PR target/25926
20927         * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
20928         implementation that calls __main.
20929
20930 2006-01-25  Peter O'Gorman  <peter@pogma.com>
20931
20932         PR bootstrap/25859
20933         * Makefile.in (GCC_LINK): Remove quotes.
20934         (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
20935         or $(GCC_LINK).
20936
20937         (powerpc-darwin): Pass -shared-libgcc when building shared library.
20938
20939 2006-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20940
20941         PR ada/24533
20942         * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
20943
20944 2005-12-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20945
20946         * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
20947
20948 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
20949
20950         * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
20951         needed.
20952
20953 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
20954
20955         * Make-lang.in: Update dependencies
20956
20957 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
20958
20959         * Make-lang.in: Add rule for ada/exp_sel.o
20960
20961 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
20962
20963         * Makefile.in (mingw section): Remove EH_MECHANISM setting.
20964
20965 2005-12-09  Arnaud Charlet  <charlet@adacore.com>
20966
20967         * gnatvsn.ads (Library_Version): Bump to version 4.2
20968         (ASIS_Version_Number): Bumped.
20969
20970 2005-12-09  Doug Rupp  <rupp@adacore.com>
20971
20972         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
20973         Ada bind file prefix on VMS from b$ to b__.
20974         (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
20975         __init.
20976
20977         * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
20978         Targparm.OpenVMS_On_Target.
20979         (Object_Suffix): Initialize with target object suffix.
20980         (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
20981
20982         * butil.adb: Change some Hostparm.OpenVMS checks to
20983         Targparm.OpenVMS_On_Target.
20984
20985         * clean.adb: Change some Hostparm.OpenVMS checks to
20986         Targparm.OpenVMS_On_Target.
20987         (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
20988         ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
20989         Ada bind file prefix on VMS from b$ to b__.
20990
20991         * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
20992         --GCC so that Get_Target_Parameters can find system.ads.
20993         (Gnatlink): Call Get_Target_Parameters in mainline.
20994         Initialize standard packages for Targparm.
20995         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
20996         (Process_Args): Also Check for object files with target object
20997         extension.
20998         (Make_Binder_File_Names): Create with target object extension.
20999         (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
21000         to b__.
21001
21002         * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
21003         Targparm.OpenVMS_On_Target.
21004         ({declaration},Build_Library,Check_Library): Change Ada bind file
21005         prefix on VMS from b$ to b__.
21006
21007         * osint-b.adb: Change some Hostparm.OpenVMS checks to
21008         Targparm.OpenVMS_On_Target.
21009         (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
21010         b__.
21011
21012         * targext.c: New file.
21013
21014         * Makefile.in: add support for vxworks653 builds
21015         (../../vxaddr2line): gnatlink with targext.o.
21016         (TOOLS_LIBS): Move targext.o to precede libgnat.
21017         (init.o, initialize.o): Minor clean up in dependencies.
21018         (GNATLINK_OBJS): Add targparm.o, snames.o
21019         Add rules fo building targext.o and linking it explicitly with all
21020         tools.
21021         Also add targext.o to gnatlib.
21022
21023         * Make-lang.in: Add rules for building targext.o and linking it in
21024         with gnat1 and gnatbind.
21025         Add entry for exp_sel.o.
21026
21027         * osint.adb Change some Hostparm.OpenVMS checks to
21028         Targparm.OpenVMS_On_Target.
21029         (Object_File_Name): Use target object suffix.
21030
21031         * osint.ads (Object_Suffix): Remove, no longer used.
21032         (Target_Object_Suffix): Initialize with target object suffix.
21033
21034         * rident.ads: Add special exception to license.
21035
21036         * targparm.adb (Get_Target_Parameters): Set the value of
21037         Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
21038         value.
21039         (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
21040
21041         * targparm.ads: Add special exception to license.
21042
21043         * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
21044         function.
21045         (Copy_File): Make sure from file is closed if error on to file
21046         (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
21047
21048         * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
21049         (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
21050
21051         * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
21052         target object suffix.
21053
21054 2005-12-09  Jose Ruiz  <ruiz@adacore.com>
21055             Quentin Ochem  <ochem@adacore.com>
21056             Florian Villoing  <villoing@adacore.com>
21057
21058         * a-taster.ads, a-taster.adb: New files.
21059
21060         * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
21061         link to the version that does nothing. This way the task termination
21062         routine is not executed twice for the environment task when finishing
21063         because of an unhandled exception.
21064
21065         * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
21066         handler because of an unhandled exception.
21067
21068         * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
21069         System.Tasking.Utilities instead of that in System.Tasking.Stages.
21070
21071         * s-finimp.adb (initialization code): Modify the soft link for the
21072         finalization of the global list instead of Adafinal.
21073
21074         * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
21075         non-tasking version of the soft link for task termination. We do
21076         nothing since if we are using the non-tasking version it
21077         means that the task termination functionality is not used.
21078         (Null_Finalize_Global_List): Add this null version for the procedure
21079         in charge of finalizing the global list for controlled objects.
21080         (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
21081         instead for handling run-time termination in a more flexible way.
21082         (Adafinal_NT): This new procedure will take care of finalizing the
21083         global list for controlled objects if needed, but no tasking
21084         finalization.
21085
21086         * s-tarest.adb (Task_Lock): Do not try to lock again the
21087         Global_Task_Lock if we already own it. Otherwise, we get blocked in
21088         some run-time operations.
21089         (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
21090         until all nested locks have been released.
21091         (Task_Wrapper): Call the fall-back task termination handler. It
21092         applies to all tasks but the environment task.
21093         (Finalize_Global_Tasks): Add the call for the task termination
21094         procedure for the environment task.
21095         (Task_Wrapper): suppress warnings around declaration of
21096         Secondary_Stack_Address.
21097
21098         * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
21099         moved to the Common_ATCB record.
21100         (Task_Lock): Global_Task_Lock_Nesting has been moved to the
21101         Common_ATCB record.
21102         (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
21103         Common_ATCB record.
21104
21105         * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
21106         Fall_Back_Handler, and Specific_Handler.
21107
21108         * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
21109         defined in Ada.Task_Termination, to avoid circular dependencies.
21110         (Termination_Handler): Redefine this type here, alredy defined in
21111         Ada.Task_Termination, for avoiding circular dependencies.
21112         (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
21113         for storing task termination handlers. In addition,
21114         Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
21115         Common_ATCB because it is used by both the regular and the restricted
21116         run times.
21117         (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
21118         Common_ATCB because it is used by both the regular and the restricted
21119         run times.
21120         (Common_ATCB): Added a dynamic task analyzer field.
21121
21122         * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
21123         potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
21124         (Task_Wrapper): Call the task termination handler. It applies to all
21125         tasks but the environment task.
21126         (Finalize_Global_Tasks): Call the task termination procedure for the
21127         environment task. The call to Finalize_Global_List is now performed
21128         using the soft links mechanism.
21129         (Task_Wrapper): added dynamic stack analysis.
21130
21131         * s-tasuti.adb (Abort_Tasks): The code in charge of checking
21132         potentially blocking operations has been moved from
21133         System.Tasking.Stages.Abort_Tasks to this procedure. There can be
21134         direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
21135         through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
21136         this run-time check.
21137
21138         * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
21139         of task termination procedure.
21140         (Init_Tasking_Soft_Links): Install the task-safe version of the soft
21141         link for the task termination procedure.
21142
21143         * bindusg.adb: (Bindusg): Added documentation for -u option.
21144
21145         * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
21146         (Get_Main_C): Add handling of dynamic stack analysis.
21147         (Gen_Output_File_C): Add external functions for dynamic stack analysis.
21148
21149         * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
21150         (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
21151         (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
21152
21153         * opt.ads: Added flags used by dynamic stack measurement.
21154         (Max_Line_Length): Remove (not used anymore)
21155
21156         * s-io.ads, s-io.adb (Standard_Error): new subprogram
21157         (Standart_Output): new subprogram
21158         (Set_Output): new subprogram
21159         (Put): now uses the value of Current_Out to know if the output has to be
21160         send to stderr or stdout.
21161
21162         * s-stausa.ads: Complete implementation.
21163
21164         * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
21165
21166         * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
21167         list of Ada 05 files.
21168         (GNAT Library Units): Add AltiVec files.
21169
21170         * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
21171         g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
21172         g-alvety.ads, g-alvevi.ads: New files providing altivec API.
21173
21174 2005-12-09  Nicolas Setton  <setton@adacore.com>
21175
21176         * adaint.c (__gnat_locate_regular_file): Return immediately if
21177         file_name is empty.
21178
21179 2005-12-09  Javier Miranda  <miranda@adacore.com>
21180             Hristian Kirtchev  <kirtchev@adacore.com>
21181
21182         * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
21183         to the specification because the frontend generates code that uses this
21184         subprogram.
21185         (Set_Interface_Table): Add missing assertion.
21186         Update documentation describing the run-time structure.
21187         (Displace): New subprogram that displaces the pointer to the object
21188         to reference one of its secondary dispatch tables.
21189         (IW_Membership): Modified to use the new table of interfaces.
21190         (Inherit_TSD): Modified to use the new table of interfaces.
21191         (Register_Interface_Tag): Use the additional formal to fill the
21192         contents of the new table of interfaces.
21193         (Set_Interface_Table): New subprogram that stores in the TSD the
21194         pointer to the table of interfaces.
21195         (Set_Offset_To_Top): Use the additional formal to save copy of
21196         the offset value in the table of interfaces.
21197         Update structure of GNAT Primary and Secondary dispatch table diagram.
21198         Add comment section on GNAT dispatch table prologue.
21199         (Offset_To_Signature): Update the constant value of the Signature field.
21200         (Dispatch_Table): Update comment on hidden fields in the prologue.
21201         (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
21202         Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
21203         the type of formal parameter T to Tag, introduce additional assertions.
21204         (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
21205         conversion.
21206         (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
21207
21208         * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
21209         in all the calls to Expand_Interface_Thunk. Instead of referencing the
21210         record component containing the tag of the secondary dispatch table we
21211         have to use the Offset_To_Top run-time function to get this information;
21212         otherwise if the pointer to the base of the object has been displace
21213         we get a wrong value if we use the 'position attribute.
21214
21215         * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
21216         all the calls to Expand_Interface_Thunk.
21217         (Make_Secondary_DT): Secondary dispatch tables do not have a table of
21218         interfaces; hence the call to Set_Interface_Table was clearly wrong.
21219         (Collect_All_Interfaces): Modify the internal subprogram Collect to
21220         ensure that the interfaces implemented by the ancestors are placed
21221         at the header of the generated list.
21222         (Expand_Interface_Conversion): Handle the case in which the displacement
21223         associated with the interface conversion is not statically known. In
21224         this case we generate a call to the new run-time subprogram Displace.
21225         (Make_DT): Generate and fill the new table of interfaces.
21226         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
21227         Get_Tagged_Kind and Set_Tagged_Kind.
21228         (Tagged_Kind): New function that determines the tagged kind of a type
21229         with respect to limitedness and concurrency and returns a reference to
21230         RE_Tagged_Kind.
21231         (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
21232         Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
21233         primary dispatch table for a type.
21234         (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
21235         secondary dispatch table respectively of a tagged type.
21236
21237         * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
21238         (Expand_Interface_Conversion): New subprogram to indicate if the
21239         displacement of the type conversion is statically known.
21240         (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
21241
21242         * rtsfind.ads (RE_Offset_To_Top): New entity
21243         (RTU_Id): Add Ada_Task_Termination to the list so that it is made
21244         accessible to users.
21245         (Re_Displace): New entity
21246         (RE_Interface_Data): New entity
21247         (RE_Set_Interface_Data): New_Entity
21248         (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
21249         Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
21250         RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
21251         RE_TK_Tagged, RE_TK_Task.
21252
21253         * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
21254         Init_Secondary_Tags_Internal to allow its use with interface types and
21255         also to generate the code for the new additional actual required
21256         by Set_Offset_To_Top.
21257         (Build_Init_Statements): In case of components associated with abstract
21258         interface types there is no need to generate a call to its IP.
21259         (Freeze_Record_Type): Generate Select Specific Data tables only for
21260         concurrent types.
21261         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
21262         the bodies and specifications of the predefined primitive operations
21263         dealing with dispatching selects and abort, 'Callable, 'Terminated only
21264         for concurrent types.
21265
21266         * exp_sel.ads, exp_sel.adb: New files.
21267
21268         * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
21269         Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
21270         properly protected objects and attach handler in the case of the
21271         restricted profile.
21272         Move embeded package Select_Expansion_Utilities into a separate external
21273         package.
21274         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
21275         Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
21276         (Build_K, Build_S_Assignment): New subprograms, part of the select
21277         expansion utilities.
21278         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
21279         Expand_N_Timed_Entry_Call): Optimize expansion of select statements
21280         where the trigger is a dispatching procedure of a limited tagged type.
21281
21282 2005-12-09  Olivier Hainque  <hainque@adacore.com>
21283
21284         * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
21285         pointer initialization values. Make a SAVE_EXPR instead. Add comments
21286         about the use and expansion of SAVE_EXPRs in the various possible
21287         renaming handling cases.
21288         (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
21289         abusing DECL_FCONTEXT.
21290
21291 2005-12-09  Matthew Heaney  <heaney@adacore.com>
21292
21293         * a-convec.adb (Merge): Added assertions to check whether vector params
21294         are sorted.
21295
21296         * a-coinve.adb (Merge): Added assertions to check whether vector params
21297         are sorted.
21298
21299         * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
21300         draft.
21301         (Cursor'Read): raises PE
21302
21303         * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
21304         to its default value.
21305
21306         * a-cihama.adb: Manually check whether cursor's key and elem are
21307         non-null
21308
21309         * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
21310         (Merge): Assert that target and source lists are in order
21311         (Swap): Declare non-const temporaries, to pass to Splice
21312
21313         * a-cdlili.ads: (Splice): Changed param name and param mode
21314
21315         * a-cdlili.adb: (Splice): Changed param name and param mode
21316         (Merge): Assert that target and source lists are in order
21317         (Swap): Declare non-const temporaries, to pass to Splice
21318
21319         * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
21320         (Write): declare Stream param as not null
21321
21322         * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
21323         an exception message.
21324
21325 2005-12-09  Thomas Quinot  <quinot@adacore.com>
21326             Robert Dewar  <dewar@adacore.com>
21327
21328         * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
21329         which is the absolute maximum length we can support.
21330
21331         * frontend.adb: For the processing of configuration pragma files,
21332         remove references to Opt.Max_Line_Length, which is not checked anymore.
21333
21334         * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
21335         length.
21336
21337         * scn.adb, scng.adb:
21338         Always check line length against the absolute supported maximum,
21339         Hostparm.Max_Line_Length.
21340
21341         * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
21342         value for the maximum line length is Max_Line_Length (not
21343         Column_Number'Last).
21344         Minor error msg update
21345         (Set_Style_Check_Options): New interface returning error msg
21346         Minor code reorganization (processing for 'M' was out of alpha order)
21347
21348         * switch-c.adb: New interface for Set_Style_Check_Options
21349
21350         * stylesw.ads (Set_Style_Check_Options): New interface returning error
21351         msg.
21352
21353 2005-12-09  Javier Miranda  <miranda@adacore.com>
21354
21355         * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
21356         with IP subprogram were only supported if there were limited types.
21357
21358         * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
21359         records with IP subprogram were only supported if there were limited
21360         types.
21361
21362 2005-12-09  Olivier Hainque  <hainque@adacore.com>
21363             Eric Botcazou  <ebotcazou@adacore.com>
21364
21365         * trans.c (tree_transform, emit_check): Adjust calls to
21366         build_call_raise, passing the now expected GNAT_NODE argument.
21367
21368         * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
21369         source line information than what the current global locus indicates
21370         when appropriate.
21371
21372         * utils2.c (build_simple_component_ref): Return 0 if the offset of the
21373         field has overflowed.
21374         (build_call_raise): Add a GNAT_NODE argument to convey better source
21375         line information than what the current global locus indicates when
21376         appropriate.
21377         (build_component_ref): Adjust call to build_call_raise.
21378
21379 2005-12-09  Pascal Obry  <obry@adacore.com>
21380
21381         * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
21382         the iterator is quitting iteration on parent directory.
21383
21384 2005-12-09  Javier Miranda  <miranda@adacore.com>
21385
21386         * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
21387         and the assignment to a class-wide object, before the assignment we
21388         generate a run-time check to ensure that the tag of the Target is
21389         covered by the tag of the source.
21390
21391 2005-12-09  Robert Dewar  <dewar@adacore.com>
21392
21393         * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
21394         parameter in call to Image_Wide_Character.
21395
21396         * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
21397         parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
21398         (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
21399         annoying FFFE/FFFF inconsistency.
21400
21401 2005-12-09  Robert Dewar  <dewar@adacore.com>
21402             Javier Miranda  <miranda@adacore.com>
21403             Ed Schonberg  <schonberg@adacore.com>
21404
21405         * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
21406         of type conversion.
21407         (Find_Interface): New subprogram that given a tagged type and one of its
21408         component associated with the secondary table of an abstract interface
21409         type, return the entity associated with such abstract interface type.
21410         (Make_Subtype_From_Expr): If type has unknown discriminants, always use
21411         base type to create anonymous subtype, because entity may be a locally
21412         declared subtype or generic actual.
21413         (Find_Interface): New subprogram that given a tagged type and one of its
21414         component associated with the secondary table of an abstract interface
21415         type, return the entity associated with such abstract interface type.
21416
21417         * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
21418         conversion cannot be handled at compile time. In this case we pass this
21419         information to the expander to generate the appropriate code.
21420
21421 2005-12-09  Robert Dewar  <dewar@adacore.com>
21422             Ed Schonberg  <schonberg@adacore.com>
21423             Gary Dismukes  <dismukes@adacore.com>
21424             Javier Miranda  <miranda@adacore.com>
21425             Hristian Kirtchev  <kirtchev@adacore.com>
21426
21427         * einfo.adb (Itype_Printed): New flag
21428         (Is_Limited_Type): Derived types do not inherit limitedness from
21429         interface progenitors.
21430         (Is_Return_By_Reference_Type): Predicate does not apply to limited
21431         interfaces.
21432
21433         * einfo.ads (Itype_Printed): New flag
21434         Move Is_Wrapper_Package to proper section
21435         Add missing Inline for Is_Volatile
21436
21437         * output.ads, output.adb (Write_Erase_Char): New procedure
21438         (Save/Restore_Output_Buffer): New procedures
21439         (Save/Restore_Output_Buffer): New procedures
21440
21441         * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
21442         Add missing support for anonymous access type
21443         (Write_Id): Insert calls to Write_Itype
21444         (Write_Itype): New procedure to output itypes
21445
21446         * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
21447         use of "limited" in declaration.
21448
21449         * sinfo.ads, sinfo.adb:
21450         Formal derived types can carry an explicit "limited" indication.
21451
21452         * sem_ch3.adb: Add with and use of Targparm.
21453         (Create_Component): If Frontend_Layout_On_Target is True and the
21454         copied component does not have a known static Esize, then reset
21455         the size and positional fields of the new component.
21456         (Analyze_Component_Declaration): A limited component is
21457         legal within a protected type that implements an interface.
21458         (Collect_Interfaces): Do not add to the list the interfaces that
21459         are implemented by the ancestors.
21460         (Derived_Type_Declaration): If the parent of the full-view is an
21461         interface perform a transformation of the tree to ensure that it has
21462         the same parent than the partial-view. This simplifies the job of the
21463         expander in order to generate the correct object layout, and it is
21464         needed because the list of interfaces of the full-view can be given in
21465         any order.
21466         (Process_Full_View): The parent of the full-view does not need to be
21467         a descendant of the parent of the partial view if both parents are
21468         interfaces.
21469         (Analyze_Private_Extension_Declaration): If declaration has an explicit
21470         "limited" the parent must be a limited type.
21471         (Build_Derived_Record_Type): A derived type that is explicitly limited
21472         must have limited ancestor and progenitors.
21473         (Build_Derived_Type): Ditto.
21474         (Process_Full_View): Verify that explicit uses of "limited" in partial
21475         and full declarations are consistent.
21476         (Find_Ancestor_Interface): Remove function.
21477         (Collect_Implemented_Interfaces): New procedure used to gather all
21478         implemented interfaces by a type.
21479         (Contain_Interface): New function used to check whether an interface is
21480         present in a list.
21481         (Find_Hidden_Interface): New function used to determine whether two
21482         lists of interfaces constitute a set equality. If not, the first
21483         differing interface is returned.
21484         (Process_Full_View): Improve the check for the "no hidden interface"
21485         rule as defined by AI-396.
21486
21487 2005-12-09  Robert Dewar  <dewar@adacore.com>
21488
21489         * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
21490         types, not on record subtypes.
21491         (Freeze_Entity): Code cleanup. Add barrier to the loop
21492         that generates the references for primitive operations. This allows to
21493         remove an unnecessary exception handler.
21494         Code reformatting and comment clean ups.
21495
21496 2005-12-09  Vincent Celier  <celier@adacore.com>
21497
21498         * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
21499         If GNAT CHECK is called with a project file, but with no
21500         source on the command line, call gnatcheck with all the compilable
21501         sources of the project.
21502         Take into account the new command Check, for gnatcheck. Treat as for
21503         other ASIS tools: take into account project, specific package Check and
21504         Compiler switches.
21505         For ASIS tools, add the switches in package Compiler for
21506         the invocation of the compiler.
21507
21508         * prj-attr.adb: Add package Check and its attributes
21509
21510         * vms_conv.ads (Command_Type): New command Check, for gnatcheck
21511
21512         * vms_conv.adb (Initialize): Change Params of command Check to
21513         unlimited files.
21514         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
21515         Add data for new command Check
21516
21517         * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
21518         ELIM.
21519         Add qualifiers for Check command options
21520         (Command_Type): New command Check
21521
21522 2005-12-09  Thomas Quinot  <quinot@adacore.com>
21523
21524         * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
21525         command line switch overruns the output buffer.
21526
21527 2005-12-09  Robert Dewar  <dewar@adacore.com>
21528
21529         * sem_prag.adb: Processing for new pragma Complete_Representation
21530         (Analyze_Pragma, case Debug): Implement two argument form.
21531
21532         * par-prag.adb: Entry for new pragma Complete_Representation
21533         (Prag, case Debug): Recognize two argument form of pragma Debug
21534         New interface for Set_Style_Check_Options.
21535
21536         * sem_ch13.adb: Implement new pragma Complete_Representation.
21537
21538         * snames.adb, snames.ads, snames.h: Entry for new pragma
21539         Complete_Representation.
21540
21541 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
21542
21543         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
21544         available user-specified stream attributes on limited parameters to
21545         also test the type directly rather than only its underlying type (for
21546         Ada 95) and, in the case of Ada 2005, to check that the user-specified
21547         attributes are visible at the point of the subprogram declaration.
21548         For Ada 2005, the error message is modified to indicate that the
21549         type's stream attributes must be visible (again, only for -gnat05).
21550
21551 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
21552
21553         * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
21554         anonymous access types.
21555
21556         * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
21557         matching of anonymous access types and anonymous access to subprogram
21558         types. 'R'M 4.9.1 (2/2).
21559
21560 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
21561
21562         * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
21563         rule prematurely when operands are universal, remaining ambiguities
21564         will be removed during resolution.
21565         Code cleanup.
21566
21567         * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
21568         that are Ada 2005 functions.
21569         (Has_Abstract_Interpretation): Subsidiary to
21570         Remove_Conversions, to remove ambiguities caused by abstract operations
21571         on numeric types when operands are universal.
21572
21573 2005-12-09  Robert Dewar  <dewar@adacore.com>
21574
21575         * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
21576         for case where spec is categorized.
21577
21578 2005-12-09  Javier Miranda  <miranda@adacore.com>
21579
21580         * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
21581         types use the corresponding record type. This was not needed before
21582         the implementation of Ada 2005 synchronized types because
21583         concurrent types were never tagged types in Ada 95.
21584
21585 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
21586
21587         * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
21588         first subtype of the type of the expression to verify that it is a
21589         legal Time type.
21590
21591 2005-12-09  Robert Dewar  <dewar@adacore.com>
21592
21593         * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
21594         decoded names.
21595
21596 2005-12-09  Quentin Ochem  <ochem@adacore.com>
21597             Robert Dewar  <dewar@adacore.com>
21598             Ed Falis  <falis@adacore.com>
21599             Florian Villoing  <villoing@adacore.com>
21600             Thomas Quinot  <quinot@adacore.com>
21601             Arnaud Charlet  <charlet@adacore.com>
21602
21603         * gnat_ugn.texi: Created section "Stack Related Tools"
21604         Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
21605         "Stack Related Tools"
21606         Added subsection "Static Stack Usage Analysis"
21607         Added subsection "Dynamic Stack Usage Analysis"
21608         Include documentation of itypes in sprint listing (-gnatG)
21609         Documented gnatbind -D switch (default sec stack size for fixed sec
21610         stacks).
21611         Added Interrupt_State and Persistent_BSS to list of configuration
21612         pragmas.
21613         Add missing doc for maximum value of nnn in -gnatyMnnn
21614
21615         * gnat_rm.texi: Document the AltiVec binding.
21616         Add documentation for pragma Complete_Representation
21617         Shortened an overly long line (> 79 chars)
21618         Clarify documentation of unchecked conversion in implementation
21619         defined cases.
21620         Document two argument form of pragma Debug
21621
21622         * types.ads (Column_Number): Update documentation.
21623
21624         * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
21625         library level Finalize_Storage_Only objects (these are not attached to
21626         any finalization list).
21627
21628         * system-mingw.ads: (Underlying_Priorities): Update comment.
21629
21630 2005-12-09  Robert Dewar  <dewar@adacore.com>
21631
21632         * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
21633         i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
21634         inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
21635         i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
21636         krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
21637         lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
21638         interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
21639         s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
21640         reformatting.
21641
21642 2005-12-09  Robert Dewar  <dewar@adacore.com>
21643
21644         * s-vaflop-vms-alpha.adb: (Ne_F): New function
21645         (Ne_G): New function
21646
21647         * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
21648         for tag assignment.
21649         (Rewrite_Comparison): Handle case where operation is not a comparison
21650         and ignore, and also handle type conversion case.
21651
21652 2005-12-09  Thomas Quinot  <quinot@adacore.com>
21653
21654         * exp_aggr.ads: Fix typo in comment.
21655         ???-mark Convert_Aggr_In_Assignment as needing documentation.
21656
21657 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
21658
21659         * layout.adb: Replace various uses of byte by storage unit throughout.
21660         (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
21661         static size, convert to storage units before returning, to conform to
21662         spec.
21663
21664 2005-12-09  Matthew Gingell  <gingell@adacore.com>
21665
21666         * g-exctra.ads: Fix typo in comment.
21667
21668 2005-12-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21669
21670         * utils.c: Minor reformatting.
21671
21672 2005-12-09  Robert Dewar  <dewar@adacore.com>
21673
21674         * g-soccon.ads:
21675         Further comment fixes to make the status of the default file clear
21676
21677         * s-bitops.adb: Clarify comment for Bits_Array
21678
21679 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
21680
21681         * Make-lang.in (ada.install-normal): Remove.
21682
21683 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
21684
21685         * Make-lang.in: Remove all dependencies on s-gtype.
21686
21687 2005-12-05  Richard Guenther  <rguenther@suse.de>
21688
21689         * utils.c (convert): Use fold_convert where appropriate.
21690
21691 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
21692
21693         * Makefile.in (gnatlib): Fix regex, using \. instead of . when
21694         a period is meant.
21695
21696 2005-12-02  Richard Guenther  <rguenther@suse.de>
21697
21698         * trans.c (gnat_gimplify_expr): Use buildN instead of build.
21699
21700 2005-12-01  Roger Sayle  <roger@eyesopen.com>
21701
21702         * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
21703         nodes.
21704
21705 2005-11-23  Laurent Guerby  <laurent@guerby.net>
21706
21707         * mlib-prj.adb (Build_Library): Initialize Delete.
21708
21709 2005-11-21  Joel Sherrill  <joel.sherrill@oarcorp.com>
21710
21711         * socket.c: Add extern int h_errno for rtems since networking header
21712         files are not available at this point in a tool bootstrap. Newlib
21713         only has basic C library header files.
21714
21715 2005-11-19  Richard Guenther  <rguenther@suse.de>
21716         Roger Sayle  <roger@eyesopen.com>
21717
21718         PR ada/23717
21719         * misc.c (internal_error_function): Don't use vsprintf to format
21720         the error message text, instead use pp_format_text and the new
21721         pretty printer APIs.  This allows handling of %qs, %w, etc.
21722
21723 2005-11-18  Laurent Guerby  <laurent@guerby.net>
21724
21725         PR ada/24857
21726         * Makefile.in: Use s-auxdec-empty for RTEMS.
21727
21728 2005-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21729
21730         PR ada/22333
21731         * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
21732         a temporary if taking the address of something that is neither
21733         reference, declaration, or constant, since the gimplifier
21734         can't handle that case.
21735
21736 2005-11-17  Laurent Guerby  <laurent@guerby.net>
21737
21738         PR ada/24857
21739         * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
21740
21741 2005-11-16  Richard Guenther  <rguenther@suse.de>
21742
21743         * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
21744
21745 2005-11-16  Joel Sherrill  <joel.sherrill@oarcorp.com>
21746
21747         PR ada/24855
21748         * raise-gcc.c: Add missing stdarg.h include.
21749
21750 2005-11-16  Richard Guenther  <rguenther@suse.de>
21751
21752         * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
21753         (ada/misc.o): Likewise.
21754
21755 2005-11-14  Thomas Quinot  <quinot@adacore.com>
21756
21757         * g-soccon.ads: Minor reformatting. Update comments.
21758
21759         * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
21760         gain visibility on the declaration of struct timeval.
21761
21762         * g-soccon-freebsd.ads,
21763         g-soccon-darwin.ads,
21764         g-soccon-tru64.ads,
21765         g-soccon-aix.ads,
21766         g-soccon-irix.ads,
21767         g-soccon-hpux.ads,
21768         g-soccon-solaris.ads,
21769         g-soccon-vms.ads,
21770         g-soccon-mingw.ads,
21771         g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
21772
21773         * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
21774         g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
21775         g-soccon-linux-x86.ads: New files.
21776
21777         * g-socthi-mingw.adb:
21778         (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
21779
21780         * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
21781         (time_t, suseconds_t): New types constructed to match the tv_sec
21782         and tv_usec fields of C struct timeval.
21783         (Timeval): Construct structure in terms of the new types.
21784         (Host_Errno): New function (imported from socket.c), returns last hosts
21785         database error.
21786
21787         * g-socthi-vxworks.adb:  Add error handling circuitry.
21788
21789         * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
21790         components of struct timeval.
21791         (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
21792         (Check_Selector): In error conditions, clear internal socket sets to
21793         avoid a memory leak.
21794         (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
21795         Send_Timeout, Receive_Timeout.
21796
21797         * g-socthi.ads (time_t, suseconds_t): New types constructed to match
21798         the tv_sec and tv_usec fields of C struct timeval.
21799         (Timeval): Construct structure in terms of the new types.
21800         (Host_Errno): New function (imported from socket.c), returns last hosts
21801         database error.
21802
21803         * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
21804         hosts database last error code.
21805
21806         * gen-soccon.c: Complete value expansion should not be performed on
21807         TARGET, as it has the form of a math expression, and some components
21808         may be platform-defined macros.
21809         For VxWorks, generate the OK and ERROR values.
21810         New constants giving the sizes of the components of C struct timeval.
21811
21812 2005-11-14  Robert Dewar  <dewar@adacore.com>
21813             Ed Schonberg  <schonberg@adacore.com>
21814
21815         PR ada/18434
21816         * types.ads: Include All_Checks in Suppress_Array
21817
21818         * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
21819         not(a=b), since we no longer do this rewriting, and hence it is not
21820         needed.
21821         (Elaboration_Checks_Suppressed): Add special casing to
21822         deal with different cases of static and dynamic elaboration checks (all
21823         checks does not count in the first case, but does in the second).
21824         (Expr_Known_Valid): Do not assume that the result of any arbitrary
21825         function call is valid, since this is not the case.
21826         (Ensure_Valid): Do not apply validity check to a real literal
21827         in a universal or fixed context
21828
21829         * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
21830         elementary types using the operator in standard. It is cleaner not to
21831         modify the programmers intent, especially in the case of floating-point.
21832         (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
21833         it did not matter because we always rewrote a/=b to not(a=b).
21834         (Expand_Allocator_Expression): For an allocator expression whose nominal
21835         subtype is an unconstrained packed type, convert the expression to its
21836         actual constrained subtype.
21837         Implement warning for <= or >= where < or > not possible
21838         Fix to Vax_Float tests (too early in many routines, causing premature
21839         Vax_Float expansions.
21840
21841         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
21842         to be used with packages and generic packages as well as with
21843         subprograms.
21844         (Suppress): Set All_Checks, but not Elaboration_Check, for case
21845         of pragma Suppress (All_Checks)
21846         (Analyze_Pragma, case Warnings): Implement first argument allowed to be
21847         a string literal for precise control over warnings.
21848         Avoid raise of pragma in case of unrecognized pragma and just return
21849         instead.
21850
21851         * sem_prag.ads: Minor reformatting
21852
21853         * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
21854         with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
21855         Switch. Do not handle any exception.
21856         Include -gnatwx as part of -gnatg (warn on redundant parens)
21857         Allow optional = after -gnatm
21858         (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
21859         longer sets Elaboration_Checks.
21860         Code to set warning mode moved to Sem_Warn
21861         so that it can be shared by pragma processing.
21862
21863         * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
21864         statement.
21865
21866         * s-taprop-solaris.adb:
21867         Change some <= to =, to avoid new warning
21868
21869         * a-exexda.adb, prj-proc.adb:
21870         Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
21871         Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
21872
21873 2005-11-14  Robert Dewar  <dewar@adacore.com>
21874
21875         * exp_vfpt.adb: Handle /= case
21876         (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
21877         so that we do not get duplicate scaling for fixed point conversions.
21878
21879         * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
21880
21881 2005-11-14  Matthew Gingell  <gingell@adacore.com>
21882
21883         * system-lynxos-ppc.ads, system-lynxos-x86.ads:
21884         Increase default priority on Lynx from 15 to 17, and meet the Ada
21885         requirement that Default_Priority be ((Priority'First +
21886         Priority'Last) / 2) by increasing the range of Interrupt_Priority.
21887
21888 2005-11-14  Vincent Celier  <celier@adacore.com>
21889
21890         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
21891         mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
21892         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
21893         mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
21894         mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
21895         mlib-tgt-lynxos.adb (DLL_Prefix): New function
21896
21897 2005-11-14  Doug Rupp  <rupp@adacore.com>
21898
21899         * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
21900         private part.
21901
21902 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
21903
21904         * s-traces-default.adb, s-trafor-default.ads,
21905         s-tratas-default.adb: Fix compilation errors.
21906
21907 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
21908
21909         * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
21910         raising the exception so the memory used is freed.
21911
21912 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
21913
21914         * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
21915         (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
21916         (convert_address): Update comments and list of platforms using this.
21917
21918         * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
21919         no longer used.
21920
21921 2005-11-14  Pascal Obry  <obry@adacore.com>
21922             Vincent Celier  <celier@adacore.com>
21923
21924         * gnatdll.adb (Parse_Command_Line): Remove redundant use of
21925         GNAT.Command_Line.
21926
21927         * memroot.adb: Remove redundant with/use clause on
21928         System.Storage_Elements.
21929
21930 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
21931
21932         * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
21933         (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
21934         related code to a-exexpr.adb
21935         (Save_Occurrence_And_Private): Move GCC EH related code to
21936         a-exexpr-gcc.adb
21937         (Raise_Current_Excep): Add new variable Id with pragma
21938         volatile, to ensure that the variable lives on stack.
21939
21940         * a-exexpr-gcc.adb, raise-gcc.c: New file.
21941
21942         * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
21943         from a-except.adb.
21944         Move GCC EH related code to a-exexpr-gcc.adb
21945
21946         * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
21947         64-bit Solaris
21948         Split the Linux version of g-soccon into separate variants for 32 and 64
21949         bit platforms.
21950         (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
21951         vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
21952         install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
21953         of host variable $(RANLIB_FLAGS).
21954         (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
21955         Code clean up: remove unused/obsolete targets.
21956         (EH_MECHANISM): New variable introduced to differenciate between the
21957         two EH mechanisms statically.
21958         (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
21959         (LIBGNAT_OBJS): Add raise-gcc.o
21960         (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
21961         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
21962         supports VxWorks 6 RTPs.
21963         (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
21964         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
21965
21966         * raise.c: Move all GCC EH-related routines to raise-gcc.c
21967
21968 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
21969
21970         * s-tassta.adb (Create_Task): Move the code in charge of resetting the
21971         deferral level, when abort is not allowed, to a later stage (the
21972         Task_Wrapper).
21973         (Task_Wrapper): If Abort is not allowed, reset the deferral level since
21974         it will not get changed by the generated code. It was previously done
21975         in Create_Task.
21976
21977 2005-11-14  Thomas Quinot  <quinot@adacore.com>
21978             Olivier Hainque  <hainque@adacore.com>
21979             Eric Botcazou  <ebotcazou@adacore.com>
21980
21981         * decl.c:
21982         Factor common code to build a storage type for an unconstrained object
21983         from a fat or thin pointer type and a constrained object type.
21984         (annotate_value): Handle BIT_AND_EXPR.
21985         (annotate_rep): Don't restrict the back annotation of inherited
21986         components to the type_annotate_only case.
21987         (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
21988         we are not defining the type.
21989         <E_Record_Type>: Likewise.
21990         (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
21991         to get advantage of the new maybe_stabilize_reference interface, to
21992         ensure that what we reference is indeed stabilized instead of relying
21993         on assumptions on what the stabilizer does.
21994         (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
21995         type imported through a limited_with clause, use its non-limited view.
21996         (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
21997         differentiation.
21998         (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
21999         of #if sections + explicit comparisons of convention identifiers.
22000         (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
22001         before early-returning for certain types when code generation is
22002         disabled.
22003         (gnat_to_gnu_entity) <object>: Adjust comment attached to the
22004         nullification of gnu_expr we do for objects with address clause and
22005         that we are not defining.
22006         (elaborate_expression_1): Do not create constants when creating
22007         variables needed by the debug info: the dwarf2 writer considers that
22008         CONST_DECLs is used only to represent enumeration constants, and emits
22009         nothing for them.
22010         (gnat_to_gnu_entity) <object>: When turning a non-definition of an
22011         object with an address clause into an indirect reference, drop the
22012         initializing expression.
22013         Include "expr.h".
22014         (STACK_CHECK_BUILTIN): Delete.
22015         (STACK_CHECK_PROBE_INTERVAL): Likewise.
22016         (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
22017         (STACK_CHECK_MAX_VAR_SIZE): Likewise.
22018         (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
22019         corresponding to the renamed object as ignored for debugging purposes.
22020
22021         * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
22022         related): For a prefix that is a dereference of a fat or thin pointer,
22023         if there is an actual subtype provided by the front-end, use that
22024         subtype to build an actual type with bounds template.
22025         (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
22026         is provided by the front-end, use that subtype to compute the size of
22027         the deallocated object.
22028         (gnat_to_gnu): When adding a statement into an elaboration procedure,
22029         check for a potential violation of a No_Elaboration_Code restriction.
22030         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
22031         with extra arguments to control whether to recurse through non-values
22032         and to let the caller know if the stabilization has succeeded.
22033         (gnat_stabilize_reference): Now a simple wrapper around
22034         maybe_stabilize, for common uses without restriction on lvalues and
22035         without need to check for the success indication.
22036         (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
22037         pass false instead of 0 as the FORCE argument which is a bool.
22038         (Identifier_to_gnu): Remove checks ensuring that an renamed object
22039         attached to a renaming pointer has been properly stabilized, as no such
22040         object is attached otherwise.
22041         (call_to_gnu): Invoke create_var_decl to create the temporary when the
22042         function uses the "target pointer" return mechanism.
22043         Reinstate conversion of the actual to the type of the formal
22044         parameter before any other specific treatment based on the passing
22045         mechanism. This turns out to be necessary in order for PLACEHOLDER
22046         substitution to work properly when the latter type is unconstrained.
22047
22048         * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
22049         common pattern.
22050         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
22051         with extra arguments to control whether to recurse through non-values
22052         and to let the caller know if the stabilization has succeeded.
22053
22054         * utils2.c (gnat_build_constructor): Only sort the fields for possible
22055         static output of record constructor if all the components are constant.
22056         (gnat_build_constructor): For a record type, sort the list of field
22057         initializers in increasing bit position order.
22058         Factor common code to build a storage type for an unconstrained object
22059         from a fat or thin pointer type and a constrained object type.
22060         (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
22061         types variants, and process special cases of VIEW_CONVERT expressions
22062         as their NOP_EXPR counterpart to ensure we get to the
22063         CORRESPONDING_VARs associated with CONST_DECls.
22064         (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
22065         on the right-hand side.
22066
22067         * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
22068         a common pattern.
22069         (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
22070         are converting back to its original type.
22071         (convert) <JM input>: Fallthrough regular conversion code instead of
22072         extracting the object if converting to a type variant.
22073         (create_var_decl): When a variable has an initializer requiring code
22074         generation and we are at the top level, check for a potential violation
22075         of a No_Elaboration_Code restriction.
22076         (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
22077         SIZE and SIZE_UNIT which we need for later back-annotations.
22078         * utils.c: (convert) <STRING_CST>: Remove obsolete code.
22079         <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
22080         is an unchecked union.
22081         (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
22082         (convert) <VIEW_CONVERT_EXPR>: When the types have the same
22083         main variant, just replace the VIEW_CONVERT_EXPR.
22084         <UNION_TYPE>: Revert 2005-03-02 change.
22085
22086         * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
22087
22088         * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
22089
22090 2005-11-14  Matthew Heaney  <heaney@adacore.com>
22091
22092         * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
22093         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
22094         a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
22095         a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
22096         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
22097         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
22098         Compiles against the spec for ordered maps described in sections
22099         A.18.6 of the most recent (August 2005) AI-302 draft.
22100
22101 2005-11-14  Olivier Hainque  <hainque@adacore.com>
22102
22103         * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
22104         to ensure bias adjustments take place when need be and to prevent
22105         occurrences of intermediate overflows.
22106
22107 2005-11-14  Matthew Gingell  <gingell@adacore.com>
22108             Olivier Hainque  <hainque@adacore.com>
22109
22110         * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
22111         ia64 HP-UX.
22112
22113         * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
22114         tracebacks on ia64 HP-UX and provide explanatory comment.
22115         Enable backtraces on ia64 GNU/Linux.
22116         (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
22117         base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
22118
22119 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
22120             Javier Miranda  <miranda@adacore.com>
22121
22122         * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
22123         exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
22124         exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
22125         einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
22126
22127         * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
22128         properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
22129         assertions).
22130
22131         * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
22132         subprogram that generates the external name associated with a
22133         secondary dispatch table.
22134         (Get_Secondary_DT_External_Name): New subprogram that generates the
22135         external name associated with a secondary dispatch table.
22136
22137 2005-11-14  Emmanuel Briot  <briot@adacore.com>
22138
22139         * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
22140         line in the ALI file to include both an instantiation reference, and a
22141         returned value.
22142
22143 2005-11-14  Vincent Celier  <celier@adacore.com>
22144
22145         * clean.adb (Check_Project): Look for Ada code in extending project,
22146         even if Ada is not specified as a language.
22147         Use new function DLL_Prefix for DLL_Name
22148         (Clean_Interface_Copy_Directory): New procedure
22149         (Clean_Library_Directory): New procedure
22150         (Clean_Directory): Remove procedure, no longer used
22151         (Clean_Project): Do not delete any file in an externally built project
22152
22153         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
22154         directory of an extending project, even when there are no Ada source
22155         present.
22156         (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
22157         (Set_Ada_Paths.Add.Recursive_Add): Ditto
22158
22159         * mlib-prj.adb (Check_Library): For all library projects, get the
22160         library file timestamp.
22161         (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
22162         (Build_Library): Use new function DLL_Prefix for the DLL_Name
22163         (Clean): Remove procedure, no longer used
22164         (Ultimate_Extension_Of): New function
22165         (Build_Library): When cleaning the library directory, only remove an
22166         existing library file and any ALI file of a source of the project.
22167         When cleaning the interface copy directory, remove any source that
22168         could be a source of the project.
22169
22170         * prj.ads, prj.adb (Project_Empty): Add values of new components
22171         Library_TS and All_Imported_Projects.
22172         (Project_Empty): Add values for new components of Project_Data:
22173         Library_ALI_Dir and Display_Library_ALI_Dir
22174
22175         * prj-attr.adb: New project level attribute name Library_ALI_Dir
22176
22177         * prj-nmsc.adb (Check_Library_Attributes): Take into account new
22178         attribute Library_ALI_Dir.
22179         (Check_Library_Attributes): The library directory cannot be the same as
22180         any source directory of the project tree.
22181         (Check_Stand_Alone_Library): The interface copy directory cannot be
22182         the same as any source directory of the project tree.
22183
22184         * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
22185         all temporary files.
22186
22187 2005-11-14  Robert Dewar  <dewar@adacore.com>
22188             Ed Schonberg  <schonberg@adacore.com>
22189
22190         * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22191         (Check_Elab_Call): A call within a protected body is never an
22192         elaboration call, and does not require checking.
22193         (Same_Elaboration_Scope): Take into account protected types for both
22194         entities.
22195         (Activate_Elaborate_All_Desirable): New procedure
22196
22197         * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
22198         desirable
22199
22200         * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
22201         (Elab_Error_Msg): Use -da to include internal unit links, not -de.
22202
22203         * lib-writ.ads, lib-writ.adb:
22204         Implement new AD/ED for Elaborate_All/Elaborate desirable
22205         Use new Elaborate_All_Desirable flag in N_With_Clause node
22206
22207         * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
22208         N_Free_Statement nodes.
22209         Define new class N_Subprogram_Instantiation
22210         Add Elaborate_Desirable flag to N_With_Clause node
22211         Add N_Delay_Statement (covering two kinds of delay)
22212
22213         * debug.adb: Introduce d.f flag for compiler
22214         Add -da switch for binder
22215
22216 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22217             Cyrille Comar  <comar@adacore.com>
22218
22219         * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
22220         for task component, in the case of a limited aggregate. The enclosed
22221         object declaration will create it earlier. Otherwise, in the case of a
22222         nested aggregate, the object may appear in the wrong scope.
22223         (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
22224         (Gen_Assign): If the component being assigned is an array type and the
22225         expression is itself an aggregate, wrap the assignment in a block to
22226         force finalization actions on the temporary created for each row of the
22227         enclosing object.
22228         (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
22229         structures are initialized after all discriminants are set so that
22230         they can be accessed even when their offset is dynamic.
22231
22232 2005-11-14  Robert Dewar  <dewar@adacore.com>
22233             Hristian Kirtchev  <kirtchev@adacore.com>
22234
22235         * sem_attr.adb: Implement Machine_Rounding attribute
22236         (Analyze_Access_Attribute): The access attribute may appear within an
22237         aggregate that has been expanded into a loop.
22238         (Check_Task_Prefix): Add semantic check for attribute 'Callable and
22239         'Terminated whenever the prefix is of a task interface class-wide type.
22240         (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
22241         the prefix is of a task interface class-wide type.
22242
22243         * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
22244         to avoid warnings.
22245
22246         * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
22247         Remove pragma Inline for [Unaligned_]Valid.
22248         Add comments that Valid routines do not work for Vax_Float
22249
22250         * exp_attr.adb: Implement Machine_Rounding attribute
22251
22252         * snames.h: Add entry for Machine_Rounding attribute
22253
22254 2005-11-14  Javier Miranda  <miranda@adacore.com>
22255             Robert Dewar  <dewar@adacore.com>
22256             Hristian Kirtchev  <kirtchev@adacore.com>
22257
22258         * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
22259         and related): For a prefix that is an explicit dereference of an
22260         access to unconstrained packed array type, annotate the dereference
22261         with an actual subtype so GIGI can make a correct size computation.
22262         (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
22263         'Unrestricted_Access, if the designated type is an interface we
22264         add a type conversion to force the displacement of the pointer
22265         to the secondary dispatch table.
22266         Use Universal_Real instead of Long_Long_Float when we need a high
22267         precision float type for the generated code (prevents gratuitous
22268         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
22269         (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
22270         'Terminated for task interface class-wide objects. Generate a call to
22271         the predefined dispatching routine used to retrieve the _task_id from
22272         a task corresponding record.
22273         (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
22274
22275         * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22276         (Check_Dispatching_Operation): Protect the frontend againts
22277         previously detected errors.
22278
22279         * Makefile.rtl: Add new instantiations of system.fat_gen
22280
22281         * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
22282         Change name of instantiated package for better consistency
22283         with newly added system.fat_gen instantiations.
22284
22285         * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
22286         s-fvagfl.ads: New files.
22287
22288 2005-11-14  Cyrille Comar  <comar@adacore.com>
22289             Thomas Quinot  <quinot@adacore.com>
22290
22291         * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
22292         assignment of a value of a tagged type that has been rewritten to a
22293         block statement, it is known by construction that no checks are
22294         necessary for the statements within the block: analyze it with checks
22295         suppressed.
22296         (Expand_N_If_Statement): When killing a dead then-branch in an
22297         if-statement that has elsif_parts, recompute the Current_Value node
22298         for any entity whose value is known from the condition of the first
22299         elsif_part.
22300         (Expand_N_Return_Statement): When returning a mutable record, convert
22301         the return value into its actual subtype in order to help the backend
22302         to return the actual size instead of the maximum. This is another
22303         aftermath of not returning mutable records on the sec-stack anymore.
22304
22305         * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
22306         handling of error msg for suspicious reverse range iteration.
22307         (Check_Possible_Current_Value_Condition): Move declaration from body to
22308         spec, to allow this subprogram to be called from exp_ch5.
22309
22310 2005-11-14  Thomas Quinot  <quinot@adacore.com>
22311
22312         * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
22313         generate a set of nested array aggregates instead of a single flat
22314         aggregate for multi-dimensional arrays.
22315
22316 2005-11-14  Pascal Obry  <obry@adacore.com>
22317
22318         * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
22319         by spawnve is a process handle, no need to convert. Add a parameter
22320         close to control wether the process handle must be closed.
22321         (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
22322         a process handle, not need to convert.
22323         (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
22324
22325         * g-expect.adb: (Kill): Document the new close parameter.
22326         (Close): Do not release the process handle in the kill there as
22327         waitpid() is using it.
22328         (Send_Signal): Release the process handle.
22329
22330 2005-11-14  Robert Dewar  <dewar@adacore.com>
22331
22332         * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
22333         need a high precision float type for the generated code (prevents
22334         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
22335         used).
22336
22337         * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
22338         need a high precision float type for the generated code (prevents
22339         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
22340         used).
22341         (Expand_Width_Attribute): In configurable run-time, the attribute is not
22342         allowed on non-static enumeration subtypes. Force a load error to emit
22343         the correct diagnostic.
22344
22345 2005-11-14  Thomas Quinot  <quinot@adacore.com>
22346             Robert Dewar  <dewar@adacore.com>
22347             Ed Schonberg  <schonberg@adacore.com>
22348
22349         * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
22350         subtype to compute the size of the designated object at run-time,
22351         create such a subtype and store it in the Actual_Designated_Subtype
22352         attribute of the N_Free_Statement.
22353         Generate itype for classwide designated object in both cases of
22354         user-specified storage pool: specific and class-wide, not only in the
22355         specific case.
22356         Raise CE when trying to set a not null access type object to null.
22357         (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
22358         an explicit loop, because freeze nodes make its position variable.
22359
22360         * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
22361         null object.
22362
22363 2005-11-14  Javier Miranda  <miranda@adacore.com>
22364
22365         * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
22366         Build_Stream_Procedure): Add the null-excluding attribute to the first
22367         formal.
22368         This has no semantic meaning under Ada95 mode but it is a
22369         requirement under Ada05 mode.
22370
22371         * par-ch3.adb (P_Access_Definition): Addition of warning message if
22372         the null exclusion is used under Ada95 mode
22373         (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
22374         (P_Access_Definition): Remove assertion that forbids the use of
22375         the null-exclusion feature in Ada95.
22376
22377 2005-11-14  Robert Dewar  <dewar@adacore.com>
22378
22379         * impunit.adb: Exclude container helper units not intended for use by
22380         users.
22381
22382 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22383
22384         * freeze.adb (Freeze_Entity): For an access formal that is an access
22385         to subprogram, freeze the anonymous subprogram type at the same time,
22386         to prevent later freezing in the wrong scope, such as the enclosing
22387         subprogram body.
22388         (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
22389         subprogram whenever available.
22390
22391 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
22392
22393         PR ada/23732
22394         * gnatvsn.ads (Library_Version): Bump to 4.1
22395
22396 2005-11-14  Robert Dewar  <dewar@adacore.com>
22397
22398         * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
22399         Storage_Offset to avoid wrap around causing invalid results.
22400
22401 2005-11-14  Pascal Obry  <obry@adacore.com>
22402
22403         * gnatbind.adb (Is_Cross_Compiler): New function returning True for
22404         cross-compiler.
22405         (Scan_Bind_Arg): Fail with an error message if -M option is used
22406         on a native compiler.
22407
22408 2005-11-14  Robert Dewar  <dewar@adacore.com>
22409             Vincent Celier  <celier@adacore.com>
22410
22411         * gprep.adb: Implement -C switch to scan comments
22412
22413         * scng.adb: Scan comment symbol separately if Replace_In_Comments set
22414
22415         * scans.ads: Comment updates (including new use of Tok_Comment in
22416         preprocessing)
22417
22418         * opt.ads: Add documentation for flags that are used by gprmake,
22419         currently and in the next version of gprmake.
22420         (Verbosity_Level): New variable
22421         Add Replace_In_Comments switch
22422
22423         * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
22424         and -vm.
22425         Add /REPLACE_IN_COMMENTS for gnatprep -C switch
22426
22427 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
22428
22429         * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
22430         message, friendlier.
22431
22432 2005-11-14  Robert Dewar  <dewar@adacore.com>
22433
22434         * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
22435
22436 2005-11-14  Doug Rupp  <rupp@adacore.com>
22437
22438         * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
22439
22440 2005-11-14  Robert Dewar  <dewar@adacore.com>
22441
22442         * interfac.ads: Change declarations of IEEE float types so that we no
22443         longer need a separate version of this package for VMS.
22444
22445 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22446
22447         * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
22448         internal entity created for the declaration of a child subprogram body
22449         with no spec as coming from source, to generate proper cross-reference
22450         information.
22451
22452 2005-11-14  Vincent Celier  <celier@adacore.com>
22453
22454         * make.adb (Compile_Sources): Change verbose message to minimum
22455         verbosity level High for "is in an Ada library", "is a read-only
22456         library" and "is an internal library",
22457         (Create_Binder_Mapping_File): Path name of ALI file for library project
22458         must include the library directory, not the object directory.
22459         (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
22460         for new switches -vl, -vm and -vh.
22461         (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
22462         (Check): Use minimum verbosity Medium for some Verbose_Msg calls
22463         (Compile_Sources): Do not attempt to compile if an ALI file is missing
22464         in a project that is externally built.
22465         (Compute_All_Imported_Projects): New procedure
22466         (Gnatmake): Check if importing libraries should be regenerated because
22467         at least an imported library is more recent.
22468         (Initialize): For each project compute the list of the projects it
22469         imports directly or indirectly.
22470         (Add_Library_Search_Dir): New procedure, used in place of
22471         Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
22472         put in the search paths.
22473         (Add_Source_Search_Dir): New procedure, used in place of
22474         Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
22475         put in the search paths.
22476         (Mark_Directory): Resolve the absolute path the directory before marking
22477         it.
22478
22479         * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
22480         call to new procedure Bad_Switch. Call Scan_Pos with new parameter
22481         Switch. Do not handle any exception.
22482         (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
22483         so that the switch is recognized as valid.
22484         (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
22485
22486 2005-11-14  GNAT Script  <nobody@adacore.com>
22487
22488         * Make-lang.in: Makefile automatically updated
22489
22490 2005-11-14  Pascal Obry  <obry@adacore.com>
22491
22492         * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
22493         used.
22494         (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
22495         In both cases the last argument was dropped.
22496
22497 2005-11-14  Eric Botcazou  <ebotcazou@adacore.com>
22498
22499         * namet.h: (Column_Numbe): New type.
22500         (Get_Column_Number): Define to sinput__get_column_number.
22501         (Instantiation): Define to sinput__instantiation.
22502         (Get_Column_Number): Declare.
22503         (Instantiation): Likewise.
22504
22505 2005-11-14  Robert Dewar  <dewar@adacore.com>
22506
22507         * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
22508         syntax, which could cause compiler hangs.
22509
22510 2005-11-14  Vincent Celier  <celier@adacore.com>
22511
22512         * prj-ext.adb: Take into account new environment variable
22513         GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
22514         are defined.
22515         (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
22516         normalize its path name, making it absolute and resolving symbolic
22517         links, and replace the original if resolved path is different.
22518
22519 2005-11-14  Vincent Celier  <celier@adacore.com>
22520
22521         * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
22522         into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
22523
22524 2005-11-14  Emmanuel Briot  <briot@adacore.com>
22525
22526         * prj-pp.adb (Print): Do not output the with statement if the
22527         associated name is empty, which happens for virtual extending projects.
22528         (Print): Preserve the "extends all" attribute when printing the project.
22529
22530         * prj-tree.ads (String_Value_Of): Add comment about returned value for
22531         a virtual extending project.
22532
22533 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22534
22535         * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
22536         rhs of an assignment even if the type is unconstrained, when the
22537         context is non-expanding.
22538         In an inlined body, if the context type is private,
22539         resolve with its full view, which must be a composite type.
22540
22541 2005-11-14  Robert Dewar  <dewar@adacore.com>
22542             Ed Schonberg  <schonberg@adacore.com>
22543
22544         * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22545         Do not give obsolescent warning on with of subprogram (since we
22546         diagnose calls)
22547         (Analyze_With_Clause): Add test for obsolescent package
22548         (Install_Context_Clauses): If the unit is the body of a child unit, do
22549         not install twice the private declarations of the parents, to prevent
22550         circular lists of Use_Clauses in a parent.
22551         (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
22552         compiling body of child unit.
22553         Use new class N_Subprogram_Instantiation
22554         (Expand_With_Clause): If this is a private with_clause for a child unit,
22555         appearing in the context of a package declaration, then the implicit
22556         with_clauses generated for parent units are private as well.
22557         (License_Check): Do not generate message if with'ed unit is internal
22558
22559 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
22560             Ed Schonberg  <schonberg@adacore.com>
22561             Thomas Quinot  <quinot@adacore.com>
22562
22563         * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
22564         names are internal, because they will not have a corresponding partner
22565         in the actual package.
22566         (Analyze_Formal_Package): Move the setting of the formal package spec's
22567         Generic_Parent field so that it occurs prior to analyzing the package,
22568         to allow proper operation of Install_Parent_Private_Declarations.
22569         (Analyze_Package_Instantiation): Set the instantiated package entity's
22570         Package_Instantiation field.
22571         (Get_Package_Instantiation_Node): Move declaration to package spec.
22572         Retrieve the N_Package_Instantiation node when the Package_Instantiation
22573         field is present.
22574         (Check_Generic_Child_Unit): Within an inlined call, the only possible
22575         instantiation is Unchecked_Conversion, for which no parents are needed.
22576         (Inline_Instance_Body): Deinstall and record the use_clauses for all
22577         parent scopes of a scope being removed prior to inlining an instance
22578         body.
22579         (Analyze_Package_Instantiation): Do not perform front-end inlining when
22580         the current context is itself an instance within a non-instance child
22581         unit, to prevent scope stack errors.
22582         (Save_References): If the node is an aggregate that is an actual in a
22583         call, rewrite as a qualified expression to preserve some type
22584         information, to resolve possible ambiguities in the instance.
22585         (Instance_Parent_Unit): New global variable to record the ultimate
22586         parent unit associated with a generic child unit instance (associated
22587         with the existing Parent_Unit_Visible flag).
22588         (type Instance_Env): New component Instance_Parent_Unit for stacking
22589         parents recorded in the global Instance_Parent_Unit.
22590         (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
22591         stack.
22592         (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
22593         it's not a top-level unit, and only do this if Instance_Parent_Unit is
22594         not already set. Replace test of Is_Child_Unit with test of parent's
22595         scope against package Standard. Add comments and a ??? comment.
22596         (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
22597         on a child instance parent to test that the parent equals
22598         Instance_Parent rather than simply checking that the unit is not a
22599         child unit.
22600         (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
22601         (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
22602         a formal interface are ancestors of the corresponding actual.
22603         (Validate_Formal_Interface_Type): Additional legality checks.
22604         (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
22605         interface types with ancestors.
22606         (Analyze_Formal_Package): If formal is a renaming, use renamed entity
22607         to diagnose attempts to use generic within its own declaration.
22608
22609 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22610             Javier Miranda  <miranda@adacore.com>
22611
22612         * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
22613         discriminant.
22614         (Build_Private_Derived_Type): The entity of the created full view of the
22615         derived type does not come from source. If after installing the private
22616         declarations of the parent scope the parent is still private, use its
22617         full view to construct the full declaration of the derived type.
22618         (Build_Derived_Record_Type): Relax the condition that controls the
22619         execution of the check that verifies that the partial view and
22620         the full view agree in the set of implemented interfaces. In
22621         addition, this test now only takes into account the progenitors.
22622         (Derive_Interface_Subprograms): No need to derive subprograms
22623         of ancestors that are interfaces.
22624         (Derive_Subprograms): Remove formal No_Predefined_Prims and the
22625         associated code.
22626         Change name Is_Package to Is_Package_Or_Generic_Package
22627         (Complete_Subprograms_Derivation): Handle the case in which the full
22628         view is a transitive derivation of the ancestor of the partial view.
22629         (Process_Full_View): Rename local subprogram Find_Interface_In_
22630         Descendant to Find_Ancestor_Interface to leave the code more clear.
22631         Remove wrong code that avoids the generation of an error message
22632         when the immediate ancestor of the partial view is an interface.
22633         In addition some minor reorganization of the code has been done to
22634         leave it more clear.
22635         (Analyze_Type_Declaration): If type has previous incomplete tagged
22636         partial view, inherit properly its primitive operations.
22637         (Collect_Interfaces): Make public, for analysis of formal
22638         interfaces.
22639         (Analyze_Interface_Declaration): New procedure for use for regular and
22640         formal interface declarations.
22641         (Build_Derived_Record_Type): Add support for private types to the code
22642         that checks if a tagged type implements abstract interfaces.
22643         (Check_Aliased_Component_Type): The test applies in the spec of an
22644         instance as well.
22645         (Access_Type_Declaration): Clean up declaration of malformed type
22646         declared as an access to its own classwide type, to prevent cascaded
22647         crash.
22648         (Collect_Interfaces): For private extensions and for derived task types
22649         and derived protected types, the parent may be an interface that must
22650         be included in the interface list.
22651         (Access_Definition): If the designated type is an interface that may
22652         contain tasks, create Master_Id for it before analyzing the expression
22653         of the declaration, which may be an allocator.
22654         (Record_Type_Declaration): Set properly the interface kind, for use
22655         in allocators, the creation of master id's for task interfaces, etc.
22656
22657 2005-11-14  Javier Miranda  <miranda@adacore.com>
22658             Ed Schonberg  <schonberg@adacore.com>
22659
22660         * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
22661         omitted in case of stream attribute subprograms.
22662         (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
22663         appear immediately after a subprogram body, when there is no previous
22664         subprogram declaration.
22665         Change name Is_Package to Is_Package_Or_Generic_Package
22666         (Process_Formals): A non null qualifier on a non null named access
22667         type is not an error, and is a warning only if Redundant_Constructs
22668         are flagged.
22669
22670 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
22671             Ed Schonberg  <schonberg@adacore.com>
22672
22673         * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
22674         nested within Analyze_Package_Specification to install the private
22675         declarations and use clauses within each of the parent units of a
22676         package instance of a generic child package.
22677         (Analyze_Package_Specification): When entering a private part of a
22678         package associated with a generic instance or formal package, the
22679         private declarations of the parent must be installed (by calling new
22680         procedure Install_Parent_Private_Declarations).
22681         Change name Is_Package to Is_Package_Or_Generic_Package
22682         (Preserve_Full_Attributes): For a synchronized type, the corresponding
22683         record is absent in a generic context, which does not indicate a
22684         compiler error.
22685
22686 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22687
22688         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
22689         not try to rewrite a renamed stream attribute, because the operations
22690         on the type may not have been generated.
22691         Handle properly a renaming_as_body generated for a stream operation
22692         whose default is abstract because the object type itself is abstract.
22693         (Find_Type): If the type is incomplete and appears as the prefix of a
22694         'Class reference, it is tagged, and its list of primitive operations
22695         must be initialized properly.
22696         (Chain_Use_Clauses): When chaining the use clauses that appear in the
22697         private declaration of a parent unit, prior to compiling the private
22698         part of a child unit, find on the scope stack the proper parent entity
22699         on which to link the use clause.
22700         (Note_Redundant_Use): Emit a warning when a redundant use clause is
22701         detected.
22702         (Analyze_Object_Renaming): An attribute reference is not a legal object
22703         if it is not a function call.
22704
22705 2005-11-14  Robert Dewar  <dewar@adacore.com>
22706             Ed Schonberg  <schonberg@adacore.com>
22707
22708         * sem_eval.adb: Implement d.f flag
22709         (Subtype_Statically_Match): A generic actual type has unknown
22710         discriminants when the corresponding actual has a similar partial view.
22711         If the routine is called to validate the signature of an inherited
22712         operation in a child instance, the generic actual matches the full view,
22713
22714 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
22715             Ed Schonberg  <schonberg@adacore.com>
22716             Robert Dewar  <dewar@adacore.com>
22717             Thomas Quinot  <quinot@adacore.com>
22718
22719         * sem_res.adb (Resolve_Call): Provide a better error message whenever
22720         a procedure call is used as a select statement trigger and is not an
22721         entry renaming or a primitive of a limited interface.
22722         (Valid_Conversion): If the operand has a single interpretation do not
22723         remove address operations.
22724         (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
22725         statement to inhibit warning.
22726         (Resolve_Unary_Op): Do not produce a warning when
22727         processing an expression of the form -(A mod B)
22728         Use Universal_Real instead of Long_Long_Float when we need a high
22729         precision float type for the generated code (prevents gratuitous
22730         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
22731         (Resolve_Concatenation_Arg): Improve error message when argument is an
22732         ambiguous call to a function that returns an array.
22733         (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
22734         there is an implicit operator in the given scope if we are within an
22735         instance: legality check has been performed on the generic.
22736         (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
22737         after resolving operand, to avoid false warnings on overloaded calls.
22738
22739 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22740             Javier Miranda  <miranda@adacore.com>
22741
22742         PR ada/15604
22743         * sem_type.adb (Covers): In an inlined body, a composite type matches
22744         a private type whose full view is a composite type.
22745         (Interface_Present_In_Ancestor): Protect the frontend against
22746         previously detected errors to ensure that its compilation
22747         with assertions enabled gives the same output that its
22748         compilation without assertions.
22749         (Interface_Present_In_Ancestor): Add support for private types.
22750         Change name In_Actual to In_Generic_Actual (clean up)
22751         (Disambiguate): New predicate In_Actual, to recognize expressions that
22752         appear in the renaming declaration generated for generic actuals, and
22753         which must be resolved in the outer context.
22754
22755 2005-11-14  Robert Dewar  <dewar@adacore.com>
22756             Thomas Quinot  <quinot@adacore.com>
22757             Hristian Kirtchev  <kirtchev@adacore.com>
22758             Ed Schonberg  <schonberg@adacore.com>
22759
22760         * sem_util.ads, sem_util.adb: Change name Is_Package to
22761         Is_Package_Or_Generic_Package.
22762         (Check_Obsolescent): New procedure.
22763         (Set_Is_Public): Remove obsolete junk test.
22764         (Set_Public_Status): Do not set Is_Public on an object whose declaration
22765         occurs within a handled_sequence_of_statemets.
22766         (Is_Controlling_Limited_Procedure): Factor some of the logic, account
22767         for a parameterless procedure.
22768         (Enter_Name): Recognize renaming declarations created for private
22769         component of a protected type within protected operations, so that
22770         the source name of the component can be used in the debugger.
22771
22772 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22773             Robert Dewar  <dewar@adacore.com>
22774
22775         * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
22776         of a generic subprogram are not visible outside the body.
22777         (Set_Warning_Switch): New procedure (code to set warning mode moved
22778         here from Switch.C so that it can be shared by pragma processing.
22779         (Check_References): Special case warning for non-modified non-imported
22780         volatile objects.
22781         * par-prag.adb: Modify processing of pragma Warnings to accomodate new
22782         form with a string literal argument
22783
22784 2005-11-14  Javier Miranda  <miranda@adacore.com>
22785
22786         * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
22787         anonymous access.
22788         (Write): Addition of "not null" to the anonymous access.
22789         (Read): Addition of "not null" to the anonymous access.
22790         (Write): Addition of "not null" to the anonymous access.
22791
22792         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
22793         I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
22794         I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
22795         (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
22796         W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
22797         "not null" to the anonymous access.
22798
22799 2005-11-14  Robert Dewar  <dewar@adacore.com>
22800
22801         * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
22802         offset values
22803
22804 2005-11-14  Vincent Celier  <celier@adacore.com>
22805
22806         * switch.adb (Bad_Switch): New procedure
22807         (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
22808         message when in error.
22809
22810         * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
22811         Too_Many_Output_Files): Remove declarations, no longer used.
22812         (Scan_Nat): New parameter Switch
22813         (Scan_Pos): Ditto
22814         (Bad_Switch): New procedure
22815
22816         * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
22817         with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
22818         new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
22819         to Osint.Fail. Do not handle any exception.
22820
22821 2005-11-14  Vincent Celier  <celier@adacore.com>
22822
22823         * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
22824         designates a non existent directory.
22825
22826 2005-11-14  Robert Dewar  <dewar@adacore.com>
22827
22828         * xgnatugn.adb: Replace invalid membership test by 'Valid
22829
22830 2005-11-14  Vincent Celier  <celier@adacore.com>
22831
22832         * makegpr.adb (Gprmake): Do not attempt to build the global archive if
22833         there is no object directory.
22834
22835 2005-11-14  Robert Dewar  <dewar@adacore.com>
22836
22837         * usage.adb: Minor adjustment to output format, use nn instead of nnn
22838         (so that -gnateInnn does not run into next column)
22839
22840 2005-11-14  Ed Falis  <falis@adacore.com>
22841
22842         * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
22843         "constrained"
22844
22845 2005-11-14  Cyrille Comar  <comar@adacore.com>
22846
22847         * s-chepoo.ads: Add comments on Dereference.
22848         Remove unnecessary inherited abstract primitives.
22849         Cosmetic cleanup.
22850
22851 2005-11-14  Robert Dewar  <dewar@adacore.com>
22852
22853         * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
22854         node parameter, not needed, since it is available as Declaration_Node.
22855
22856 2005-11-14  Geert Bosch  <bosch@adacore.com>
22857
22858         * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
22859         grammatically correct.
22860
22861 2005-11-14  Vincent Celier  <celier@adacore.com>
22862
22863         * s-fileio.ads: Correct spelling error in comment
22864
22865 2005-11-14  Cyrille Comar  <comar@adacore.com>
22866             Robert Dewar  <dewar@adacore.com>
22867             Vincent Celier  <celier@adacore.com>
22868             Ben Brosgol  <brosgol@adacore.com>
22869             Jose Ruiz  <ruiz@adacore.com>
22870             Pascal Obry  <obry@adacore.com>
22871
22872         * gnat_ugn.texi:
22873         Document that -fstack-check is needed for strict compliance with the
22874         Ada 95 Reference Manual.
22875         Correct reference to VAX systems to meet HP guidelines
22876         Add documentation for new gnatmake switches -vl, -vm and -vh
22877         Replace DEC Ada by HP Ada
22878         Replace DIGITAL by HP
22879         Remove empty section on tools in compatibility section
22880         Clarify the Windows convention semantics.
22881         Document the Win32 calling convention.
22882         The Stdcall, Win32 and DLL convention are synonyms.
22883         Add a note in -gnatR description about zero size record components
22884         Note on new >= and <= warnings for -gnatwc
22885         Document that equal sign after -gnatm is optional.
22886         Note that strip is working fine on DLL built with a Library
22887         Project. The restriction apply only to DLL built with gnatdll.
22888         Update section about the way to debug a DLL.
22889         Update information about the DLL convention.
22890         Document -C switch for gnatprep
22891         Document new attribute Library_ALI_Dir
22892         Update elaboration doc to include implicit Elaborate pragmas now
22893         generated for subprogram instantiations.
22894         Document limitation on executable names that include spaces for --GCC,
22895         --GNATBIND, and --GNATLINK switches.
22896         Document that -w causes -gnatws to be added at start of gcc switches
22897
22898         * gnat_rm.texi: Document that -mieee is needed for generating infinite
22899         and NaN values in case of overflow on machines that are not fully
22900         compliant with the IEEE floating-point standard.
22901         Create a section describing the set of compiler options needed for
22902         strict compliance with the Ada 95 Reference Manual.
22903         Add documentation for pragma Obsolescent applied to a package
22904         Clarify potential issues of mixed language programs related to the
22905         I/O buffering enabling in the elaboration of the GNAT runtime.
22906         Add extra documentation for pragma Restrictions (No_Elaboration_Code)
22907         This documentation only patch adds extra documentsion for pragma
22908         Restrictions (No_Elaboration_Code), explaining why it is not possible
22909         to document this restriction in terms of allowed source constructs.
22910         Document string literal form of pragma Warnings
22911         Document new attribute Library_ALI_Dir
22912         Add documentation on stable attributes in project files that was missing
22913
22914         * gnat-style.texi: Indicate that paragraphs within a single comment
22915         should be separated by empty comment lines
22916
22917         * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
22918         /05 respectively)
22919
22920         * bindusg.adb: Minor cleanup, put -m before -M for consistency
22921
22922 2005-11-14  Robert Dewar  <dewar@adacore.com>
22923
22924         * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
22925         a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
22926         a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
22927         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
22928         a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
22929         a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
22930         a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
22931         a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
22932         a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
22933         a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
22934         a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
22935         a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
22936         g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
22937         a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
22938         a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
22939         system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
22940         g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
22941         g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
22942         a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
22943         a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
22944         a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
22945         a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
22946         a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
22947         a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
22948         system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
22949         system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
22950         a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
22951         a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
22952         a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
22953         system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
22954         system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
22955         s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
22956         system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
22957         system-interix.ads, system-solaris-sparc.ads,
22958         system-solaris-sparcv9.ads, s-inmaop-vms.adb,
22959         s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
22960         system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
22961         s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
22962         a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
22963         a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
22964         a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
22965         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
22966         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
22967         a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
22968         a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
22969         a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
22970         a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
22971         a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
22972         a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
22973         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
22974         a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
22975         a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
22976         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
22977         a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
22978         a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
22979         a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
22980         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
22981         a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
22982         a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
22983         a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
22984         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
22985         a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
22986         a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
22987         a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
22988         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
22989         a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
22990         a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
22991         a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
22992         bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
22993         csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
22994         errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
22995         errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
22996         exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
22997         exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
22998         freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
22999         g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
23000         g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
23001         g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
23002         g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
23003         g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
23004         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
23005         g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
23006         g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
23007         gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
23008         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
23009         g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
23010         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
23011         g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
23012         g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
23013         g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
23014         layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
23015         mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
23016         mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
23017         nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
23018         osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
23019         par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
23020         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
23021         par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
23022         prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
23023         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
23024         prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
23025         prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
23026         sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
23027         sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
23028         sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
23029         sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
23030         s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
23031         sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
23032         s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
23033         s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
23034         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
23035         s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
23036         s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
23037         s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
23038         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
23039         s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
23040         s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
23041         s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
23042         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
23043         s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
23044         s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
23045         s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
23046         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
23047         s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
23048         s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
23049         s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
23050         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
23051         s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
23052         s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
23053         s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
23054         s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
23055         s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
23056         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
23057         s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
23058         styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
23059         s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
23060         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
23061         s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
23062         s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
23063         s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
23064         s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
23065         s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
23066         s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
23067         s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
23068         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
23069         table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
23070         tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
23071         ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
23072         usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
23073         xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
23074         xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
23075         a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
23076         a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
23077         a-numaux-darwin.ads, a-numaux-darwin.adb,
23078         a-swuwha.ads, a-stunha.ads: Minor reformatting
23079
23080 2005-11-14  Robert Dewar  <dewar@adacore.com>
23081
23082         PR ada/18434
23083         * osint-m.adb: Add pragma Elaborate_All for Osint
23084
23085 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
23086
23087         PR ada/23995
23088         * trans.c (call_to_gnu): Restore statement lost in translation.
23089
23090 2005-11-08  Eric Botcazou  <ebotcazou@adacore.com>
23091
23092         * init.c: Use the Linux-specific section for the IA-64/Linux target.
23093         (__gnat_adjust_context_for_raise): Add conditional code so that the
23094         IA-64 is also supported.
23095
23096 2005-11-03  James E Wilson  <wilson@specifix.com>
23097
23098         PR ada/23427
23099         * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
23100         TREE_OVERFLOW check.
23101
23102 2005-09-21  Olivier Hainque  <hainque@adacore.com>
23103
23104         PR ada/22418
23105         * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
23106         as we create them to store a size in bits.
23107
23108 2005-10-21  Eric Botcazou  <ebotcazou@adacore.com>
23109
23110         PR ada/21937
23111         PR ada/22328
23112         PR ada/22381
23113         PR ada/22383
23114         PR ada/22419
23115         PR ada/22420
23116         * utils2.c (build_return_expr): New helper function.
23117         * gigi.h (build_return_expr): Declare it.
23118         * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
23119         of manually building the RETURN_EXPR tree.
23120         (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
23121         (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
23122         build_binary_op for the "target pointer" case.  Use build_return_expr
23123         instead of manually building the RETURN_EXPR tree.
23124
23125 2005-09-16  Laurent Guerby  <laurent@guerby.net>
23126
23127         PR ada/23788
23128         * s-tpinop.ads: Make this unit Preelaborate.
23129
23130 2005-09-16  Andreas Jaeger  <aj@suse.de>
23131
23132         * socket.c: Add string.h for memcpy.
23133
23134 2005-09-05  Arnaud Charlet  <charlet@adacore.com>
23135
23136         * dec-io.ads, dec-io.adb: Removed, no longer used.
23137
23138 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23139
23140         * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
23141
23142         * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
23143         s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
23144         s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
23145         s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
23146         dependent units are Preelaborate.
23147         (Initialize): Call Interrupt_Managemeent.Initialize and
23148         OS_Primitives.Initialize to ensure proper initialization of this unit.
23149         Remove use of System.Soft_Links
23150         Make this unit Preelaborate.
23151
23152         * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
23153         s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
23154         s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
23155         s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
23156         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
23157         s-tratas.ads, s-tasinf.ads: Minor reformatting.
23158         Add pragma Preelaborate, since these packages are suitable for this
23159         categorization.
23160         Update comments.
23161
23162         * s-traent-vms.ads, s-intman-dummy.adb,
23163         s-taprop-dummy.adb: Make this unit Preelaborate.
23164
23165         * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
23166         s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
23167         s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
23168         s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
23169         s-intman-solaris.adb, s-intman-irix-athread.adb,
23170         s-intman-irix.adb: Mark this unit Preelaborate.
23171         (Initialize): New procedure.
23172         Update comments.
23173
23174         * s-taspri-linux.ads: Removed.
23175
23176         * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
23177         as done by other implementations (e.g. posix).
23178
23179         * s-taprop.ads (Timed_Delay): Update spec since the caller now is
23180         responsible for deferring abort.
23181         Mark this unit Preelaborate.
23182
23183         * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
23184         proper initialization of the tasking run-time.
23185
23186         * s-tasdeb.ads: Mark this unit Preelaborate.
23187         (Known_Tasks): Add explicit default value to avoid elaboration code.
23188
23189         * s-inmaop-vms.adb (Elaboration code): Add call to
23190         Interrupt_Management.Initialize since the elaboration code depends on
23191         proper initialization of this package.
23192
23193         * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
23194         s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
23195         s-osprim-posix.adb: Make this unit Preelaborate.
23196
23197         * a-calend.adb: Add call to OS_Primitives.Initialize
23198
23199         * a-elchha.adb: Update use of Except.Id.Full_Name.
23200         Minor reformatting.
23201         Remove use of Ada.Exceptions.Traceback when possible, cleaner.
23202
23203         * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
23204         Move with clauses outside Warnings Off now that dependent units are
23205         Preelaborate.
23206         Use raise xxx with "..."; Ada 2005 form.
23207
23208         * a-taside.ads, a-taside.adb:
23209         Remove some dependencies, to make it easier to make this unit truly
23210         Preelaborate.
23211         Rewrite some code to be conformant with Preelaborate rules.
23212
23213         * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
23214         marked Preelaborate in the future.
23215
23216         * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
23217         these units Preelaborate.
23218
23219         * s-exctab.adb: Update use of Except.Id.Full_Name.
23220
23221         * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
23222         (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
23223         Set_Exc_Stack_Addr): Removed, no longer used.
23224         Remove reference to *Machine_State_Addr*, no longer needed.
23225
23226         * s-stalib.ads: Mark this unit as Preelaborate[_05].
23227         (Exception_Data): Full_Name is now a System.Address so that this unit
23228         can be made Preelaborate.
23229         Clean up/simplify code thanks to Full_Name being a System.Address.
23230         Remove obsolete pragma Suppress (All_Checks), no longer needed.
23231
23232         * s-taskin.ads, s-taskin.adb:
23233         Move with clauses outside Warnings Off now that dependent units are
23234         Preelaborate.
23235         Make this unit Preelaborate.
23236         (Initialize): New proceduure, replace elaboration code and makes the
23237         set up of the tasking run-time cleaner.
23238         (Detect_Blocking): Now a function instead of a deferred boolean, to
23239         obey Preelaborate rules.
23240
23241         * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
23242         soft links, no longer used.
23243
23244         * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
23245         packages are suitable for this categorization.
23246
23247         * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
23248         since we compile run-time sources in Ada 2005 mode.
23249         (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
23250         avoid having s-taprop*.adb depend on s-soflin and to avoid code
23251         duplication.
23252         Remove reference to *Machine_State_Addr*, no longer needed.
23253
23254 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23255
23256         * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
23257         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
23258         Remove reference to System.Exceptions.
23259
23260         * s-mastop-x86.adb: Removed, no longer used.
23261
23262         * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
23263
23264         * a-excach.adb: Minor reformatting.
23265
23266         * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
23267         instead fix new warnings that were hidden by this change.
23268         (AAA, ZZZ): Removed, replaced by...
23269         (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
23270         are used instead of constants, to help make Ada.Exception truly
23271         preelaborate.
23272         (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
23273         Raise_Storage_Error): File is now a System.Address, to simplify code.
23274         (Elab code): Removed, no longer used.
23275         (Null_Occurrence): Remove Warnings Off and make this construct
23276         preelaborate.
23277         Remove code related to front-end zero cost exception handling, since
23278         it is no longer used.
23279         Remove -gnatL/-gnatZ switches.
23280
23281         * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
23282         Update use of Except.Msg.
23283
23284         * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
23285         freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
23286         to front-end zero cost exception handling, since it is no longer used.
23287         Remove -gnatL/-gnatZ switches.
23288
23289         * lib-writ.ads: Minor reformatting
23290         Remove doc of UX
23291
23292         * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
23293
23294         * Make-lang.in: Remove references to s-except.ads
23295
23296         * s-except.ads: Removed, no longer used.
23297
23298         * s-mastop.ads, s-mastop.adb:
23299         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
23300         Remove reference to System.Exceptions.
23301
23302         * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
23303         switch-b.adb: Remove code related to front-end zero cost exception
23304         handling, since it is no longer used.
23305         Remove -gnatL/-gnatZ switches.
23306
23307 2005-09-01  Robert Dewar  <dewar@adacore.com>
23308             Gary Dismukes  <dismukes@adacore.com>
23309             Javier Miranda  <miranda@adacore.com>
23310
23311         * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
23312         type by valid test and generate warning.
23313         (Tagged_Membership): Generate call to the run-time
23314         subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
23315         Change formal name Subtype_Mark to Result_Definition in several calls to
23316         Make_Function_Specification.
23317         (Expand_Allocator_Expression): Add tests for suppression of the AI-344
23318         check for proper accessibility of the operand of a class-wide allocator.
23319         The check can be left out if checks are suppressed or if the expression
23320         has a specific tagged type whose level is known to be safe.
23321
23322         * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
23323         generates the run-time check associated with null-excluding entities.
23324         (Expand_N_Return_Statement): Add tests to determine if the accessibility
23325         check on the level of the return expression of a class-wide function
23326         can be elided. The check usually isn't needed if the expression has a
23327         specific type (unless it's a conversion or a formal parameter). Also
23328         add a test for whether accessibility checks are suppressed. Augment
23329         the comments to describe the conditions for performing the check.
23330
23331 2005-09-01  Hristian Kirtchev  <kirtchev@adacore.com>
23332             Javier Miranda  <miranda@adacore.com>
23333             Gary Dismukes  <dismukes@adacore.com>
23334             Ed Schonberg  <schonberg@adacore.com>
23335
23336         * a-tags.adb (IW_Membership): Give support to
23337         "Iface_CW_Typ in T'Class". For this purpose the functionality of this
23338         subprogram has been extended to look for the tag in the ancestors tag
23339         table.
23340         Update the structure of the GNAT Dispatch Table to reflect the
23341         additional two tables used in dispatching selects.
23342         Introduce appropriate array types and record components in
23343         Type_Specific_Data to reflect the two tables.
23344         (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
23345         the TSD of a tag, indexed by position.
23346         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
23347         operation kind in the TSD of a tag, indexed by position.
23348
23349         * a-tags.ads: Introduce an enumeration type to capture different
23350         primitive operation kinds. Define a constant reflecting the number of
23351         predefined primitive operations.
23352         (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
23353         of an entry wrapper.
23354         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
23355         callable entity of a primitive operation.
23356
23357         * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
23358         primitive operations used in dispatching selects for limited
23359         interfaces, limited tagged, task and protected types what implement a
23360         limited interface.
23361         (Freeze_Type): Generate the bodies of the primitive operations used in
23362         dispatching selects for limited tagged, task and protected types that
23363         implement a limited interface. Generate statements to populate the two
23364         auxiliary tables used for dispatching in select statements.
23365         (Freeze_Record_Type): Add call to initialize the dispatch table entries
23366         associated with predefined interface primitive operations.
23367         (Build_Dcheck_Function): Change Set_Subtype_Mark to
23368         Set_Result_Definition.
23369         (Build_Variant_Record_Equality): Change Subtype_Mark to
23370         Result_Definition.
23371         (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
23372         (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
23373         (Build_Assignment): Simplify the code that adds the run-time-check.
23374         (Expand_N_Object_Declaration): Code cleanup.
23375
23376         * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
23377         entries when there is a protected type that implements a limited
23378         interface.
23379
23380         * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
23381         common routines used in expansion of dispatching selects.
23382         (Add_Private_Declarations): Select the appropriate protection type when
23383         there is a protected type that implements a limited interface.
23384         (Build_Parameter_Block): Generate a wrapped parameter block.
23385         (Build_Protected_Subprogram_Body): Select the appropriate type for
23386         locking entries when there is a protected type that implements a
23387         limited interface.
23388         (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
23389         classified as entry wrappers.
23390         (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
23391         asynchronous selects.
23392         (Expand_N_Conditional_Entry_Call): Add support for expansion of
23393         dispatching conditional selects.
23394         (Expand_N_Protected_Type_Declaration): Select the appropriate type for
23395         protection when there is a protected type that implements limited
23396         interfaces.
23397         (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
23398         timed selects.
23399         (Extract_Dispatching_Call): Extract the entity of the name of a
23400         dispatching call, the object parameter, actual parameters and
23401         corresponding formals.
23402         (Make_Initialize_Protection): Correct logic of protection initialization
23403         when there is a protected type that implements a limited interface.
23404         (Parameter_Block_Pack): Populate a wrapped parameter block with the
23405         values of actual parameters.
23406         (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
23407         block and assign them to the original actual parameters.
23408
23409         * exp_ch9.ads (Subprogram_Protection_Mode): New type.
23410         (Build_Protected_Sub_Specification): Change the type and name of the
23411         last formal to account for the increased variety of protection modes.
23412
23413         * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
23414         entities. Used to save the value of the Is_Hidden attribute when the
23415         limited-view is installed.
23416         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
23417         the attribute of procedures classified as entry wrappers.
23418         (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
23419         entity of a primitive wrapper.
23420         (Write_Entity_Flags): Output the name and value of the
23421         Is_Primitive_Wrapper attribute.
23422         (Write_Field27_Name): Output the name and entity of the field Wrapped_
23423         Entity.
23424         (Underlying_Type): If we have an incomplete entity that comes from
23425         the limited view then we return the Underlying_Type of its non-limited
23426         view if it is already available.
23427         (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
23428         including operators.
23429         (Write_Field26_Name): Add entry for Overridden_Operation
23430         (Overridden_Operation): New attribute of functions and procedures.
23431
23432         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
23433         predefined position in the dispatch table for the primitive operations
23434         used in dispatching selects.
23435         (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
23436         predefined primitive operations and replace it with
23437         Default_Prim_Op_Count.
23438         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
23439         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
23440         the names of the generated primitive operations used in dispatching
23441         selects.
23442         (Init_Predefined_Interface_Primitives): No need to inherit primitives in
23443         case of abstract interface types. They will be inherit by the objects
23444         implementing the interface.
23445         (Make_DT): There is no need to inherit the dispatch table of the
23446         ancestor interface for the elaboration of abstract interface types.
23447         The dispatch table will be inherited by the object implementing the
23448         interface.
23449         (Copy_Secondary_DTs): Add documentation.
23450         (Validate_Position): Improve this static check in case of
23451         aliased subprograms because aliased subprograms must have
23452         the same position.
23453         (Init_Predefined_Interface_Primitives): New subprogram that initializes
23454         the entries associated with predefined primitives of all the secondary
23455         dispatch tables.
23456         (Build_Anonymous_Access_Type): Removed.
23457         (Expand_Interface_Actuals): With the previous cleanup there is no need
23458         to build an anonymous access type. This allows further cleanup in the
23459         code generated by the expander.
23460         (Expand_Interface_Conversion): If the actual is an access type then
23461         build an internal function to handle the displacement. If the actual
23462         is null this function returns null because no displacement is
23463         required; otherwise performs a type conversion that will be
23464         expanded in the code that returns the value of the displaced actual.
23465         (Expand_Interface_Actuals): Avoid the generation of unnecessary type
23466         conversions that have no effect in the generated code because no
23467         displacement is required. Code cleanup; use local variables to
23468         avoid repeated calls to the subprogram directly_designated_type().
23469
23470         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
23471         Classify the primitive operations used in dispatching selects as
23472         predefined.
23473         (Implements_Limited_Interface): Determine whether some type either
23474         directly implements a limited interface or extends a type that
23475         implements a limited interface.
23476         (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
23477         (Expand_Subtype_From_Expr): Do not build actual subtype if the
23478         expression is limited.
23479         (Find_Interface_Tag): Add code to handle class-wide types and
23480         entities from the limited-view.
23481
23482         * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
23483         Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
23484         POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
23485         POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
23486         Set_Prim_Op_Kind.
23487
23488         * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
23489         of procedure name or prefix that appears as a trigger in a triggering
23490         alternative.
23491
23492         * uintp.ads: Introduce constants Uint_11 and Uint_13.
23493
23494 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23495
23496         * s-tataat.adb, a-tasatt.adb:
23497         Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
23498
23499         * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
23500         these procedures to body, and renamed Abort_Defer, Abort_Undefer.
23501         (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
23502         longer used.
23503
23504 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23505             Jose Ruiz  <ruiz@adacore.com>
23506
23507         * s-taprop-vxworks.adb:
23508         Move with clauses outside Warnings Off now that dependent units are
23509         Preelaborate.
23510         (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
23511         initialization of this unit.
23512         (Specific): Add new procedures Initialize and Delete so that this
23513         package can be used for VxWorks 5.x and 6.x
23514         (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
23515         differences between VxWorks 5.x and 6.x
23516         Minor reformatting.
23517         (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
23518         caller.
23519         Use only Preelaborate-compatible constructs.
23520
23521         * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
23522         Primitives.Operations.
23523         (Delete, Initialize): New procedures.
23524
23525         * s-osinte-vxworks.adb: Body used to handle differences between
23526         VxWorks 5.x and 6.x
23527         (kill, Set_Time_Slice, VX_FP_TASK): New functions.
23528
23529         * s-osinte-vxworks.ads: Minor reformatting.
23530         Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
23531         (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
23532         and 6.
23533         (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
23534         between Vxworks 5 and 6.
23535         (taskLock, taskUnlock): Removeed, no longer used.
23536
23537         * adaint.c: The wait.h header is not located in the sys directory on
23538         VxWorks when using RTPs.
23539         (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
23540         using RTPs.
23541         (__gnat_dup): dup is available on Vxworks when using RTPs.
23542         (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
23543
23544         * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
23545
23546         * expect.c: The wait.h header is not located in the sys directory on
23547         VxWorks when using RTPs.
23548
23549 2005-09-01  Thomas Quinot  <quinot@adacore.com>
23550
23551         * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
23552
23553         * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
23554
23555         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
23556         g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
23557         g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
23558         g-soccon-freebsd.ads: Add new constants:
23559          IP_MULTICAST_IF
23560          SO_RCVTIMEO/SO_SNDTIMEO
23561          IOV_MAX
23562
23563         * gen-soccon.c:
23564         Move all target-specific file inclusions and macro definitions to
23565         gsocket.h, in order to ensure that any C code in socket.c will see a
23566         set of constants that is consistent with the contents of g-soccon.ads.
23567
23568         * gsocket.h: Code imported from gen-soccon.c:
23569         Move all target-specific file inclusions and macro definitions to
23570         gsocket.h, in order to ensure that any C code in socket.c will see a set
23571         of constants that is consistent with the contents of g-soccon.ads.
23572         This change also makes gen-soccon self-contained (removing dependencies
23573         upon GCC internal headers).
23574
23575         * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
23576         iovecs at a time.
23577         (To_Inet_Addr): Now a procedure instead of a function, more efficient.
23578
23579         * socket.c: Minor reformatting.
23580
23581 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23582             Thomas Quinot  <quinot@adacore.com>
23583
23584         * fname-sf.adb, mlib-tgt.ads,
23585         back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
23586         g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
23587         osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
23588         prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
23589         prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
23590         prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
23591         sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
23592         makegpr.adb: Remove redundant use_clauses.
23593
23594 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23595
23596         * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
23597         s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
23598         s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
23599         s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
23600         s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
23601         s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
23602         s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
23603         table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
23604         s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
23605         s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
23606         a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
23607         a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
23608         a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
23609         a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
23610         system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
23611         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
23612         s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
23613         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
23614         s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
23615         s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
23616         s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
23617         s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
23618         system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
23619         s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
23620         system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
23621         s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
23622         a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
23623         a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
23624         a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
23625         a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
23626         a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
23627         a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
23628         a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
23629         a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
23630         a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
23631         a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
23632         csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
23633         g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
23634         a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
23635         a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
23636         a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
23637         a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
23638         g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
23639         i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
23640         interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
23641         i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
23642         s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
23643         s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
23644         s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
23645         s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
23646         s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
23647         s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
23648         s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
23649         s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
23650         s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
23651         s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
23652         s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
23653         s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
23654         s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
23655         s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
23656         s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
23657         s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
23658         s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
23659         s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
23660         s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
23661         s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
23662         s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
23663         s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
23664         and always use the no parameter form for consistency.
23665
23666         * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
23667
23668 2005-09-01  Robert Dewar  <dewar@adacore.com>
23669
23670         * binde.adb: Minor reformatting
23671         (Find_Elab_Order): Output warning if -p used with static elab order
23672
23673 2005-09-01  Robert Dewar  <dewar@adacore.com>
23674
23675         * checks.adb (Check_Needed): New procedure, deals with removing checks
23676         based on analysis of short-circuited forms. Also generates warnings for
23677         improper use of non-short-circuited forms.
23678         Code clean ups.
23679
23680 2005-09-01  Robert Dewar  <dewar@adacore.com>
23681
23682         * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
23683         with 'Valid tests.
23684
23685 2005-09-01  Robert Dewar  <dewar@adacore.com>
23686
23687         * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
23688         spec.
23689         Implement new insertion char < (conditional warning)
23690         * errutil.adb, erroutc.adb: Implement new insertion char <
23691         (conditional warning).
23692         * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
23693         (Error_Msg_Warn): New variable for < insertion char.
23694         * prj-nmsc.adb: Implement new errout insertion char < (conditional
23695         warning).
23696         (Check_For_Source): Change value of Source_Id only after the current
23697         source has been dealt with.
23698
23699 2005-09-01  Robert Dewar  <dewar@adacore.com>
23700             Doug Rupp  <rupp@adacore.com>
23701
23702         * exp_attr.adb: Handle vax fpt for 'Valid attribute
23703         * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
23704         * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
23705         (Valid_D, Valid_F, Valid_G): New functions
23706
23707 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23708             Hristian Kirtchev  <kirtchev@adacore.com>
23709             Javier Miranda  <miranda@adacore.com>
23710
23711         * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
23712         from object notation, the original node is unanalyzed and carries no
23713         semantic information, so that accessiblity checks must be performed on
23714         the type of the actual itself.
23715         (Expand_N_Subprogram_Declaration): Change last actual parameter for
23716         compatibility with Build_Protected_Sub_Specification.
23717         (Check_Overriding_Inherited_Interfaces): Add suport to handle
23718         overloaded primitives.
23719         (Register_Interface_DT_Entry): Use the new name of the formal
23720         the the calls to Expand_Interface_Thunk
23721
23722         * exp_dbug.ads: Augment comments on encoding of protected types to
23723         include the generation of dispatching subprograms when the type
23724         implements at least one interface.
23725
23726         * lib.ads: Extend information in Load_Stack to include whether a given
23727         load comes from a Limited_With_Clause.
23728
23729         * lib-load.adb (From_Limited_With_Chain): New predicate to determine
23730         whether a potential circularity is harmless, because it includes units
23731         loaded through a limited_with clause. Extends previous treatment which
23732         did not handle properly arbitrary combinations of limited and
23733         non-limited clauses.
23734
23735 2005-09-01  Nicolas Setton  <setton@adacore.com>
23736
23737         * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
23738         to be encoded as typ___XBLU_lowerbound__upperbound instead of
23739         typ___XB_lowerbound__upperbound.
23740
23741 2005-09-01  Thomas Quinot  <quinot@adacore.com>
23742
23743         * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
23744         dummy access formal for RACW/RAS TypeCode TSS.
23745         (Build_TypeCode_Call): Do not generate dummy null access actual for
23746         calls to the TypeCode TSS.
23747
23748 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23749
23750         * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
23751         fully qualified name, to distinguish instances with the same local name.
23752
23753         * g-souinf.ads (Enclosing_Entity): Document that entity name is now
23754         fully qualified.
23755
23756 2005-09-01  Robert Dewar  <dewar@adacore.com>
23757
23758         * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
23759         packed arrays.
23760
23761 2005-09-01  Jerome Lambourg  <lambourg@adacore.com>
23762
23763         * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
23764         (Free): New deallocation procedure for filter elements
23765         (Close): Deallocate any existing filter for the concerned connection
23766
23767 2005-09-01  Laurent Pautet  <pautet@adacore.com>
23768
23769         * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
23770         position set is provided, we compute one in order to reduce the maximum
23771         length of the keys.  This computation first selects a character
23772         position between 1 and the minimum length of the keys in order to
23773         avoid reducing one of the keys to an empty string.
23774         (Initialize, Compute): When the ratio V to K is too low, the algorithm
23775         does not converge. The initialization procedure now comes with a
23776         maximum number of iterations such that when exceeded, an exception is
23777         raised in Compute. The user can initialize this ratio to another value
23778         and try again
23779         Reformating and updated headers.
23780
23781 2005-09-01  Javier Miranda  <miranda@adacore.com>
23782
23783         * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
23784         that given an entity T creates and returns an Itype that duplicates the
23785         contents of T. The returned Itype has the null-exclusion
23786         attribute set to True, and its Etype attribute references T
23787         to keep the association between the two entities.
23788         Update copyright notice
23789
23790         * sem_aggr.adb (Check_Can_Never_Be_Null,
23791         Aggregate_Constraint_Checks, Resolve_Aggregate,
23792         Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
23793
23794         * sem_ch5.adb (Analyze_Assignment): Code cleanup.
23795
23796 2005-09-01  Gary Dismukes  <dismukes@adacore.com>
23797             Robert Dewar  <dewar@adacore.com>
23798             Hristian Kirtchev  <kirtchev@adacore.com>
23799
23800         * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
23801         Result_Definition.
23802
23803         * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
23804         function specs.
23805         Call Set_Result_Definition instead of Set_Subtype_Mark.
23806         (P_Subprogram_Specification): Add parsing of anonymous access result
23807         plus null exclusions. Call Set_Result_Definition instead of
23808         Set_Subtype_Mark.
23809
23810         * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
23811         (P_Access_Type_Definition): Add parsing for an anonymous access result
23812         subtype, plus parsing for null exclusions. Call Set_Result_Definition
23813         instead of Set_Subtype_Mark.
23814
23815         * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
23816         (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
23817         (Result_Definition): New function for N_Function_Specifications.
23818         (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
23819         N_Function_Specification.
23820         (Set_Null_Exclusion_Present): Allow this flag for
23821         N_Function_Specification.
23822         (Set_Result_Definition): New procedure for N_Function_Specifications.
23823         (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
23824         and N_Function_Specification.
23825
23826         * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
23827         Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
23828         Add support for LIMITED NEW for Ada 2005 AI-419
23829         Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
23830         syntax for anonymous access results.
23831         Replace Subtype_Mark field by Result_Definition in
23832         N_Function_Specification and N_Access_Definition specs.
23833         Add Null_Exclusion_Present to spec of N_Function_Specification.
23834         (Result_Definition): New function for N_Function_Specification and
23835         N_Access_Function_Definition.
23836         (Set_Result_Definition): New procedure for N_Function_Specification and
23837         N_Access_Function_Definition.
23838
23839         * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
23840         Result_Definition for cases of N_Access_Function_Definition and
23841         N_Function_Specification.
23842         Print "not null" if Null_Exclusion_Present on N_Function_Specification.
23843
23844 2005-09-01  Vincent Celier  <celier@adacore.com>
23845
23846         * lib-writ.adb: Update Copyright notice
23847         (Write_With_Lines): On platforms where file names are case-insensitive,
23848         record the file names in lower case.
23849         (Write_ALI): For D lines, on platforms where file names are
23850         case-insensitive, record the file names in lower case.
23851
23852 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23853             Emmanuel Briot  <briot@adacore.com>
23854
23855         * lib-xref.adb (Output_Overridden_Op): Display information on
23856         overridden operation.
23857
23858         * lib-xref.ads: Add documentation on overridden operations.
23859
23860         * ali.ads (Xref_Entity_Record): Add support for storing the overriding
23861         information.
23862
23863         * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
23864         overriding entity information.
23865
23866 2005-09-01  Vincent Celier  <celier@adacore.com>
23867
23868         * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
23869         including those that are inherited.
23870
23871 2005-09-01  Robert Dewar  <dewar@adacore.com>
23872
23873         * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
23874
23875         * par-prag.adb: Implement new pragma Debug_Policy
23876
23877         * sem_prag.adb Implement new pragma Debug_Policy
23878         (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
23879         Component_Size attribute specification. Give warning for ignored pragma
23880         Pack.
23881
23882         * snames.h, snames.ads, snames.adb: Introduce entries in
23883         Preset_Names for Name_Disp_Asynchronous_Select,
23884         Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
23885         Name_Disp_Timed_Select.
23886         New pragma Debug_Policy
23887
23888         * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
23889         explicitly.
23890         Switch -gnata also sets Debug_Pragmas_Enabled
23891
23892         * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
23893         handle an explicit -gnata when compiling predefined files.
23894
23895 2005-09-01  Vincent Celier  <celier@adacore.com>
23896
23897         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
23898         directories of projects that have no Ada sources.
23899
23900 2005-09-01  Robert Dewar  <dewar@adacore.com>
23901
23902         * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
23903         (makes a difference for wide characters)
23904
23905         * widechar.adb, widechar.ads:
23906         Add Wide_Char_Byte_Count feature to count chars vs bytes
23907
23908 2005-09-01  Thomas Quinot  <quinot@adacore.com>
23909             Ed Schonberg  <schonberg@adacore.com>
23910             Robert Dewar  <dewar@adacore.com>
23911
23912         * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
23913         'Address attribute reference with an overloaded prefix, use the
23914         location of the prefix (not the location of the attribute reference) as
23915         the error location.
23916         (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
23917         a function renaming thereof, is a valid prefix for 'Size (where it is
23918         intepreted as a function call).
23919         (Statically_Denotes_Entity): New predicate to determine whether the
23920         prefix of an array attribute can be considered static.
23921
23922         PR ada/9087
23923         (Eval_Attr): Fix failure to evaluate Component_Size for
23924         unconstrained arrays (resulted in wrong value in packed case, since
23925         back end cannot handle this case)
23926
23927 2005-09-01  Robert Dewar  <dewar@adacore.com>
23928
23929         * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
23930         error msgs for most common cases.
23931         Use new errout insertion char < (conditional warning)
23932
23933 2005-09-01  Javier Miranda  <miranda@adacore.com>
23934             Ed Schonberg  <schonberg@adacore.com>
23935
23936         * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
23937         become local to the whole package.
23938         (Install_Limited_Withed_Unit): Instead of unchaining real entities if
23939         the package was already analyzed the new algorithm "replaces" the
23940         real entities by the shadow ones. This is required to ensure that
23941         the order of these entities in the homonym chains does not change;
23942         otherwise we can have undefined references at linking time because
23943         in case of conflicts the external name of the entities will have
23944         a suffix that depends on the order of the entities in the chain.
23945         (Remove_Limited_With_Clause): Complementary code that completes the
23946         new algorithm and replaces the shadow entities by the real ones.
23947         (Install_Limited_Withed_Unit): When unchaining entities before the
23948         installation of the shadow entities, only regular entities of the
23949         public part must be taken into account. This is required to
23950         keep this routine in synch with the work done by Remove_Limited_
23951         With_Clause
23952         (Install_Limited_With_Clause): Introduce implicit limited_with_clause
23953         even if unit is analyzed, because the analysis of the unit is
23954         idempotent in any case, and the limited view of the unit may have to
23955         be installed for proper visibility.
23956         (Expand_Limited_With_Clause): Even if the unit in the implicit
23957         with_clause has been analyzed already, a limited view of the package
23958         must be built for the current context, if it does not exist yet.
23959
23960 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23961             Javier Miranda  <miranda@adacore.com>
23962             Gary Dismukes  <dismukes@adacore.com>
23963
23964         * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
23965         defining entity for the instance body, make a new defining identifier
23966         rather than copying the entity of the spec, to prevent accidental
23967         sharing of the entity list.
23968         (Check_Private_View): When exchanging views of private types, build the
23969         list of exchanged views as a stack, to ensure that on exit the exchanges
23970         are undone in the proper order.
23971         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
23972         Restore the compilation environment in case of instantiation_error.
23973         (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
23974         for an anonymous access result.
23975         (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
23976         (Formal_Entity): Handle properly the case of a formal package that
23977         denotes a generic package renaming.
23978
23979 2005-09-01  Thomas Quinot  <quinot@adacore.com>
23980
23981         * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
23982         clause if the array aggregate is surrounded by parentheses.
23983
23984 2005-09-01  Cyrille Comar  <comar@adacore.com>
23985             Gary Dismukes  <dismukes@adacore.com>
23986             Ed Schonberg  <schonberg@adacore.com>
23987             Javier Miranda  <miranda@adacore.com>
23988
23989         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
23990         underlying type
23991         to check if a type is Constrained in cases related to code generation
23992         (rather than semantic checking) since otherwise we do not generate
23993         similar code for mutable private types depending if their
23994         discriminants are visible or not.
23995         (Check_Abstract_Overriding): Do not complain about failure to override
23996         the primitive operations used in dispatching selects since they will
23997         always be overriden at the freeze point of the type.
23998         (Access_Definition): Separate out handling for resetting the scope
23999         of an anonymous access function result type. Retrieve the scope
24000         of the associated function rather than using Current_Scope, which
24001         does not have a consistent value (depends on whether we're in the
24002         middle of analyzing formal parameters). Add ??? comment about
24003         finding a cleaner way to handle the special cases of scope setting.
24004         (Process_Incomplete_Dependents): A protected operation is never a
24005         dispatching operation (only its wrapper may be).
24006         (Build_Derived_Record_Type): In case of tagged private types that
24007         implement interfaces add derivation of predefined primitive
24008         operations.
24009         (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
24010         by two parameters that are used in case of derivation from abstract
24011         interface types: No_Predefined_Prims is used to avoid the derivation
24012         of predefined primitives from the interface, and Predefined
24013         Prims_Only is used to complete the derivation predefined primitives
24014         in case of private tagged types implementing interfaces.
24015         Fix typo in comments
24016         (Find_Interface_In_Descendant): Protect the frontend against
24017         wrong code with large circularity chains.
24018         (Is_Private_Overriding): Add support for entities overriding interface
24019         subprograms. The test failed because Entities associated with overriden
24020         interface subprograms are always marked as hidden (and used to build
24021         the secondary dispatch table); in this case the overriden entity is
24022         available through the field abstract_interface_alias (cf. override_
24023         dispatching_operation)
24024         (Access_Definition): Set the scope of the type to Current_Scope for the
24025         case of a function with an anonymous access result type.
24026         (Access_Subprogram_Declaration): Handle creation of the type entity for
24027         an access-to-function type with an anonymous access result.
24028         (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
24029         in handling for N_Access_Function_Definition.
24030         (Analyze_Subtype_Declaration): Modify the text of error message.
24031         (Derived_Type_Declaration): Modify the text of error message.
24032         (Process_Subtype): Modify the text of error message plus cleanup
24033         of one redundant error message.
24034         (Analyze_Component_Declaration): Code cleanup.
24035         (Analyze_Object_Declaration): Code cleanup.
24036         (Analyze_Subtype_Declaration): Propagate the null-exclusion
24037         attribute in case of access types. Code cleanup.
24038         (Array_Type_Declaration): Code cleanup.
24039         (Process_Discriminants): Create the new null-excluding itype
24040         if required. Code cleanup.
24041         (Process_Subtype): Create the new null-excluding itype if
24042         required. Code cleanup.
24043         (Build_Derived_Record_Type): Code cleanup to avoid calling
24044         twice the subprogram derive_subprograms in case of private
24045         types that implement interfaces. In this particular case the
24046         subprogram Complete_Subprograms_Derivation already does the
24047         job associated with the second call.
24048
24049         * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
24050         conversion to the full view when generating an operation for a
24051         discriminant whose type may currently be private.
24052
24053 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24054             Javier Miranda  <miranda@adacore.com>
24055
24056         * sem_ch4.adb (Transform_Object_Operation): In a context off the form
24057         V (Obj.F), the rewriting does not involve the indexed component, but
24058         only the selected component itself.
24059         Do not apply the transformation if the analyzed node is an actual of a
24060         call to another subprogram.
24061         (Complete_Object_Operation): Retain the entity of the
24062         dispatching operation in the selector of the rewritten node. The
24063         entity will be used in the expansion of dispatching selects.
24064         (Analyze_One_Call): Improve location of the error message associated
24065         with interface.
24066         (Analyze_Selected_Component): No need to resolve prefix when it is a
24067         function call, resolution is done when parent node is resolved, as
24068         usual.
24069         (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
24070         when attempting to resolve a call transformed from its object notation.
24071         (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
24072         of the argument list for each interpretation of the operation.
24073         (Try_Object_Operation): The designated type of an access parameter may
24074         be an incomplete type obtained through a limited_with clause, in which
24075         case the primitive operations of the type are retrieved from its full
24076         view.
24077         (Analyze_Call): If this is an indirect call, and the return type of the
24078         access_to_subprogram is incomplete, use its full view if available.
24079
24080 2005-09-01  Javier Miranda  <miranda@adacore.com>
24081             Gary Dismukes  <dismukes@adacore.com>
24082
24083         * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
24084         access types the null-exclusion and access-to-constant attributes must
24085         also match.
24086         (Analyze_Return_Statement): When the result type is an anonymous access
24087         type, apply a conversion of the return expression to the access type
24088         to ensure that appropriate accessibility checks are performed.
24089         (Analyze_Return_Type): For the case of an anonymous access result type,
24090         generate the Itype and set Is_Local_Anonymous_Access on the type.
24091         Add ??? placeholder for check to disallow returning a limited object
24092         in Ada 2005 unless it's an aggregate or a result of a function call.
24093         Change calls from Subtype_Mark to Result_Definition.
24094         (Analyze_Subprogram_Body): Change formal Subtype_Mark to
24095         Result_Definition in call to Make_Function_Specification.
24096         (Build_Body_To_Inline): Change Set_Subtype_Mark to
24097         Set_Result_Definition.
24098         (Make_Inequality_Operator): Change formal Subtype_Mark to
24099         Result_Definition in call to Make_Function_Specification.
24100         (Process_Formals): Create the new null-excluding itype if required.
24101         (New_Overloaded_Entity): For an entity overriding an interface primitive
24102         check if the entity also covers other abstract subprograms in the same
24103         scope. This is required to handle the general case, that is, overriding
24104         other interface primitives and overriding abstract subprograms inherited
24105         from some abstract ancestor type.
24106         (New_Overloaded_Entity): For an overriding entity that comes from
24107         source, note the operation that it overrides.
24108         (Check_Conformance, Type_Conformant): Addition of one new formal
24109         to skip controlling formals in the analysis. This is used to
24110         handle overloading of abstract interfaces.
24111         (Base_Types_Match): Add missing case for types imported from
24112         limited-with clauses
24113         (New_Overloaded_Entity): Add barrier to protect the use of
24114         the "alias" attribute.
24115
24116 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24117
24118         * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
24119         verify that the procedure and the entry are mode conformant.
24120         (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
24121         as a different operator, which is often a cut-and-paste error.
24122
24123 2005-09-01  Javier Miranda  <miranda@adacore.com>
24124             Ed Schonberg  <schonberg@adacore.com>
24125
24126         * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
24127         used in controlling parameters exclude null because it is necessary to
24128         read the tag to dispatch, and null has no tag.
24129         (Override_Dispatching_Operation): If the previous operation is inherited
24130         from an interface, it becomes hidden  and does not participate in later
24131         name resolution.
24132
24133 2005-09-01  Javier Miranda  <miranda@adacore.com>
24134             Ed Schonberg  <schonberg@adacore.com>
24135             Gary Dismukes  <dismukes@adacore.com>
24136
24137         * sem_res.adb (Resolve_Membership_Op): In case of the membership test
24138         "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
24139         the expander will generate the corresponding run-time check to evaluate
24140         the expression.
24141         (Resolve_Call): Check for legal type of procedure name or prefix that
24142         appears as a trigger in a triggering alternative.
24143         (Valid_Conversion): If expression is ambiguous and the context involves
24144         an extension of System, remove System.Address interpretations.
24145         (Resolve_Qualified_Expression): Reject the case of a specific-type
24146         qualification applied to a class-wide argument. Enhance comment
24147         to explain checking of Original_Node.
24148         (Resolve_Type_Conversion): The location of the error message was not
24149         general enough to handle the general case and hence it has been removed.
24150         In addition, this patch improves the text of the message.
24151         (Resolve_Type_Conversion): Add missing support for access to interface
24152         types.
24153         (Resolve_Type_Conversion): If the target is a class-wide interface type,
24154         do not expand if the expression is the actual in a call, because proper
24155         expansion will take place when the call itself is expanded.
24156         (Resolve_Allocator): If the context is an unchecked conversion, the
24157         allocator inherits its storage pool, if any, from the target type of
24158         the conversion.
24159
24160 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24161             Javier Miranda  <miranda@adacore.com>
24162
24163         * sem_type.adb (Add_One_Interp): If a candidate operation is an
24164         inherited interface operation that has an implementation, use the
24165         implementation to avoid spurious ambiguities.
24166         (Interface_Present_In_Ancestor): In case of concurrent types we can't
24167         use the Corresponding_Record_Typ attribute to look for the interface
24168         because it is set by the expander (and hence it is not always
24169         available). For this reason we traverse the list of interfaces
24170         (available in the parent of the concurrent type).
24171         (Interface_Present_In_Ancestor): Handle entities from the limited view
24172
24173 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24174
24175         * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
24176         from the list of required components.
24177         (Is_Controlling_Limited_Procedure): Determine whether an entity is a
24178         primitive procedure of a limited interface with a controlling first
24179         parameter.
24180         (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
24181         of an entry.
24182         (Safe_To_Capture_Value): A value (such as non_null) is not safe to
24183         capture if it is generated in the second operand of a short-circuit
24184         operation.
24185         Do not capture values for variables with address clauses.
24186         (Is_Object_Reference): Treat a function call as an object reference only
24187         if its type is not Standard_Void_Type.
24188
24189 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24190
24191         * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
24192         to a variable that is statically known to be constant.
24193
24194 2005-09-01  Geert Bosch  <bosch@adacore.com>
24195             Robert Dewar  <dewar@adacore.com>
24196
24197         * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
24198         (VAXGF_Safe_First): Idem.
24199
24200 2005-09-01  Robert Dewar  <dewar@adacore.com>
24201             Arnaud Charlet  <charlet@adacore.com>
24202
24203         * g-dirope.ads: Minor reformatting
24204         Document that bounds of result of Base_Name match the input index
24205         positions.
24206         Add documentation on environment variable syntax for Expand_Path
24207
24208         * gnat_ugn.texi: Update documentation to include mention of -m switches
24209         Document new treatment of wide characters in max line length
24210         style check.
24211         Remove -gnatL/-gnatZ switches, no longer used.
24212         Add note on pragmas Assertion_Policy and Debug_Policy in discussion
24213         of -gnata switch.
24214
24215         * gnat_rm.texi: Add doc for two argument form of pragma
24216         Float_Representation.
24217         Add documentation for pragma No_Strict_Aliasing
24218         Add note that explicit component clause overrides pragma Pack.
24219         Add documentation of pragma Debug_Policy
24220
24221 2005-09-01  Matthew Heaney  <heaney@adacore.com>
24222
24223         * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
24224         a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
24225         a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
24226         a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
24227         draft (Draft 13, August 2005) of Ada Amendment 1.
24228
24229 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
24230
24231         * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
24232         Note that the platform-specific version of g-soccon.ads for VMS is now
24233         named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
24234         really is a package spec).
24235         Replace s-taspri-linux.ads by s-taspri-posix.ads
24236         Remove references to s-mastop-x86.adb
24237
24238         * system-vxworks-xscale.ads: Removed, no longer used.
24239         * s-vxwork-xscale.ads: Removed, no longer used.
24240
24241 2005-09-01  Robert Dewar  <dewar@adacore.com>
24242
24243         * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
24244         g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
24245         g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
24246         exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
24247         g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
24248         g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
24249         g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
24250         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
24251         g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
24252         g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
24253         sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
24254         a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
24255         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
24256         a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
24257         a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
24258         a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
24259         g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
24260         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
24261         g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
24262         i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
24263         a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
24264
24265 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
24266
24267         PR ada/23187
24268         * adaint.c
24269         (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
24270
24271 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
24272             Doug Rupp  <rupp@adacore.com>
24273
24274         * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
24275         when needed.
24276         (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
24277         this code in the GNAT run-time.
24278
24279         * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
24280
24281         PR ada/21053
24282         * init.c (__gnat_error_handler [many]): Mark "msg" as const
24283         (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
24284
24285         (__gnat_inside_elab_final_code): Moved here from
24286         Standard_Library and only defined for the compiler.
24287         __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
24288         (__gnat_inum_to_ivec): Do not define this function on VxWorks when
24289         using RTPs because directly vectored Interrupt routines are not
24290         supported on this configuration.
24291         (getpid): Do not redefine this function on VxWorks when using RTPs
24292         because this primitive is well supported by the RTP libraries.
24293         (copy_msg): Correct the code that checks for buffer overflow.
24294         Discovered during code reading.
24295
24296 2005-08-29  Olivier Hainque  <hainque@adacore.com>
24297
24298         * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
24299         a library level mutable variable with an initializer, tell
24300         build_allocator to ignore the initializer's size. It may not be large
24301         enough for all the values that might be assigned to the variable later
24302         on.
24303
24304 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
24305             Eric Botcazou  <ebotcazou@adacore.com>
24306
24307         * trans.c: Protect < in error msg with quote
24308         Replace GCC_ZCX by Back_End_Exceptions.
24309         (addressable_p) <COMPONENT_REF>: Also return 1 if the field
24310         has been sufficiently aligned in the record.
24311
24312 2005-08-15  James E. Wilson  <wilson@specifix.com>
24313
24314         * system-linux-alpha.ads: Change ia64 to alpha.
24315
24316 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
24317
24318         * decl.c, utils.c: Fix comment typos.
24319
24320 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
24321
24322         * decl.c, init.c, initialize.c: Fix comment typos.
24323
24324 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
24325
24326         Make CONSTRUCTOR use VEC to store initializers.
24327         * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
24328         CONSTRUCTOR_ELTS.
24329         * trans.c (extract_values): Likewise.
24330         * utils.c (convert, remove_conversions): Likewise.
24331         * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
24332         gnat_build_constructor): Likewise.
24333
24334 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
24335
24336         * decl.c (components_to_record): Use DECL_FCONTEXT instead of
24337         DECL_SECTION_NAME.
24338         (compare_field_bitpos): Likewise.
24339
24340 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
24341
24342         * utils.c (create_var_decl): Only set DECL_COMMON on
24343         VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
24344         VAR_OR_FUNCTION_DECL_P.
24345
24346 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
24347
24348         * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
24349         removed.
24350
24351 2005-07-07  Pascal Obry  <obry@adacore.com>
24352
24353         * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
24354         returned type on Windows.
24355
24356         * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
24357         routine.
24358
24359         * g-socket.adb (Inet_Addr): Check for empty Image and raises an
24360         exception in this case.
24361         Simplify the code as "Image (Image'Range)" = "Image".
24362
24363 2005-07-07  Vincent Celier  <celier@adacore.com>
24364
24365         * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
24366         the destructor/constructor attributes for <lib>final/<lib>init.
24367
24368         * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
24369
24370 2005-07-07  Eric Botcazou  <ebotcazou@adacore.com>
24371
24372         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
24373         type if the parameter is not passed by copy but reference by default.
24374
24375 2005-07-07  Javier Miranda  <miranda@adacore.com>
24376
24377         * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
24378         Reimplementation of the support for abstract interface types in order
24379         to leave the code more clear and easy to maintain.
24380
24381         * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
24382         abstract interface types in order to leave the code clearer and easier
24383         to maintain.
24384
24385         * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
24386         is now implemented by the new subprogram Fill_Secondary_DT_Entry.
24387         (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
24388         appropriate entry of the secondary dispatch table.
24389         (Make_DT): Add code to inherit the secondary dispatch tables of
24390         the ancestors.
24391
24392         * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
24393         implementing both functionalities by means of a common routine, each
24394         routine has its own code.
24395
24396 2005-07-07  Javier Miranda  <miranda@adacore.com>
24397
24398         * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
24399
24400         * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
24401         types:
24402         --
24403           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
24404         --
24405
24406         * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
24407         use of tag incomplete types.
24408
24409         * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
24410         give support to tagged incomplete types.
24411
24412         * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
24413         expression is a discriminant reference and its type is private, as can
24414         happen within a stream operation for a mutable record, use the full
24415         view of the type to resolve the case alternatives.
24416         (Analyze_Assignment): Check wrong dereference of incomplete types.
24417
24418         * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
24419         types.
24420
24421         * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
24422         incomplete types.
24423
24424         * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
24425         N_Incomplete_Type_Declaration nodes.
24426
24427         * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
24428         Tag_Present to give support to tagged incomplete types:
24429         --
24430           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
24431         --
24432
24433 2005-07-07  Olivier Hainque  <hainque@adacore.com>
24434
24435         PR ada/22301
24436         * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
24437         definitions for the Unwind wrappers in the compiler case.
24438
24439 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
24440             Javier Miranda  <miranda@adacore.com>
24441
24442         * par-load.adb (Load): If a child unit is loaded through a limited_with
24443         clause, each parent must be loaded as a limited unit as well.
24444
24445         * sem_ch10.adb (Previous_Withed_Unit): Better name for
24446         Check_Withed_Unit. Return true if there is a previous with_clause for
24447         this unit, whether limited or not.
24448         (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
24449         the current unit.
24450         (Is_Visible_Through_Renamings): New local subprogram of install_limited
24451         _withed_unit that checks if some package installed through normal with
24452         clauses has a renaming declaration of package whose limited-view is
24453         ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
24454         of the current Draft document for Ada 2005.
24455         (Analyze_Context): Complete the list of compilation units that
24456         are allowed to contain limited-with clauses. It also contains
24457         checks that were previously done by Install_Limited_Context_Clauses.
24458         This makes the code more clear and easy to maintain.
24459         (Expand_Limited_With_Clause) It is now a local subprogram of
24460         Install_Limited_Context_Clauses, and contains the code that adds
24461         the implicit limited-with clauses for parents of child units.
24462         This functionality was prevously done by Analyze_Context.
24463
24464         * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
24465         incomplete type.
24466
24467         * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
24468         been erroneously named in a limited-with clause of its own context.
24469         In this case the error has been previously notified by Analyze_Context.
24470
24471 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
24472
24473         * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
24474         generic package that contains local declarations with the same name.
24475         (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
24476
24477 2005-07-07  Bernard Banner  <banner@adacore.com>
24478
24479         * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
24480         ia64 platform only on platforms that you the GCC unwind library
24481         rather than the system unwind library.
24482
24483 2005-07-07  Thomas Quinot  <quinot@adacore.com>
24484
24485         * expect.c: Minor reformatting
24486
24487 2005-07-07  Sergey Rybin  <rybin@adacore.com>
24488
24489         * vms_data.ads: Add VMS qualifiers for new gnatpp switch
24490         --no-separate-is
24491
24492         * gnat_ugn.texi: Add description for new gnatpp option
24493         (--no-separate-is)
24494
24495 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24496
24497         * g-expect-vms.adb, g-expect.ads, g-expect.adb
24498         (Get_Command_Output): New subprogram to launch a process and get its
24499         standard output as a string.
24500
24501 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
24502             Olivier Hainque  <hainque@adacore.com>
24503
24504         * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
24505         fetch a code-range descriptor associated with the machine state. On
24506         failure set the machine state's PC to 0; on success, pass the
24507         descriptor to exc_virtual_unwind.
24508
24509         * init.c (Tru64 section): New function __gnat_set_code_loc.
24510
24511 2005-07-04  Vincent Celier  <celier@adacore.com>
24512
24513         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24514         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
24515         mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
24516         Remove all auto-initialization code, as this is now done through the
24517         constructor mechanism.
24518
24519         * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
24520         __gnat_sals_init_using_constructors): New functions.
24521
24522         * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
24523         Linker_Constructor and Linker_Destructor when switch -a is used.
24524
24525         * bindusg.adb: Add line for new switch -a
24526
24527         * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
24528         (Gnatbind): When switch -a is used, check if it is allowed
24529
24530         * switch-b.adb (Scan_Binder_Switches): Process new switch -a
24531
24532 2005-07-04  Joel Brobecker  <brobecker@adacore.com>
24533
24534         * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
24535         This prevents us from hitting a limitation during the debug info
24536         generation when using stabs.
24537         (Prims_Ptr): Likewise.
24538
24539 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
24540             Ed Schonberg  <schonberg@adacore.com>
24541             Javier Miranda  <miranda@adacore.com>
24542
24543         * checks.adb (Null_Exclusion_Static_Checks): In the case of
24544         N_Object_Declaration, only perform the checks if the Object_Definition
24545         is not an Access_Definition.
24546
24547         * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
24548         where the parent of an the access definition is an N_Object_Declaration
24549         when determining the Associated_Node_For_Itype and scope of an
24550         anonymous access-to-subprogram type.
24551
24552         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
24553         Corresponding_Spec on the body created for a null procedure. Add ???
24554         comment. Remove New_Copy_Tree call on body argument to
24555         Set_Body_To_Inline.
24556
24557         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
24558         discriminants, use the type of the actual as well, because the
24559         discriminants may be read by the called subprogram.
24560
24561         * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
24562         access type we do not need to handle non-limited views.
24563         (Build_Derived_Record_Type): Additional check to check that in case of
24564         private types, interfaces are only allowed in private extensions.
24565
24566 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
24567
24568         * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
24569         <Pragma_Linker_Destructor>: Likewise.
24570
24571         * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
24572         Pragma_Linker_Destructor.
24573
24574         * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
24575         ATTR_LINK_DESTRUCTOR.
24576         (static_ctors, static_dtors): New variables.
24577
24578         * misc.c (gnat_expand_body): Output current function as constructor
24579         and destructor if requested.
24580
24581         * par-prag.adb: Add processing for pragma Linker_Constructor and
24582         Linker_Destructor.
24583
24584         * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
24585         extracted from Check_Interrupt_Or_Attach_Handler.
24586         (Check_Interrupt_Or_Attach_Handler): Invoke it.
24587         Implement pragma Linker_Constructor and Linker_Destructor with the
24588         help of Find_Unique_Parameterless_Procedure.
24589         Replace Name_Alias with Name_Target for pragma Linker_Alias.
24590
24591         * snames.h, snames.ads, snames.adb:
24592         Add Name_Linker_Constructor and Name_Linker_Destructor.
24593         Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
24594         * snames.adb: Remove Name_Alias.
24595
24596         * trans.c: Include cgraph.h.
24597         (build_global_cdtor): New function.
24598         (Compilation_Unit_to_gnu): Build global constructor and destructor if
24599         needed.
24600         (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
24601         of objects too.
24602         (addressable_p) <COMPONENT_REF>: Unconditionally test
24603         DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
24604
24605         * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
24606         variable if it is external.
24607
24608         (static_ctors, static_dtors): New global variables.
24609         (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
24610         <ATTR_LINK_DESTRUCTOR>: Likewise.
24611         (end_subprog_body): Chain function as constructor and destructor
24612         if requested.
24613
24614         * exp_util.adb (Force_Evaluation): Unconditionally invoke
24615         Remove_Side_Effects with Variable_Ref set to true.
24616         (Remove_Side_Effects): Handle scalar types first. Use a renaming
24617         for non-scalar types even if Variable_Ref is true and for class-wide
24618         expressions.
24619
24620 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24621
24622         * exp_attr.adb (Mod): Evaluate condition expression with checks off,
24623         to prevent spurious warnings.
24624
24625 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24626
24627         * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
24628         Itypes. Itypes are really unexpected there.
24629         (Build_TypeCode_Function): Generalise special processing for Itypes to
24630         handle the case of numeric implicit base types as well as enumerated
24631         ones.
24632
24633 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24634
24635         * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
24636         controlled, indicate the expected type of the dereference that is
24637         created for the call to Deep_Finalize, to prevent spurious errors when
24638         the designated type is private and completed with a derivation from
24639         another private type.
24640
24641 2005-07-04  Vincent Celier  <celier@adacore.com>
24642
24643         * make.adb (Change_To_Object_Directory): When unable to change the
24644         current dir to the object directory, output the full path of the
24645         directory.
24646
24647 2005-07-04  Matthew Gingell  <gingell@adacore.com>
24648
24649         * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
24650
24651         * indepsw-linux.adb: Replace by...
24652
24653         * indepsw-gnu.adb: ...this new file
24654
24655 2005-07-04  Vincent Celier  <celier@adacore.com>
24656
24657         * mlib-prj.adb (Auto_Initialize): New constant String
24658         (SALs_Use_Constructors): New Boolean function
24659         (Build_Library): Call gnatbind with Auto_Initialize switch when
24660         SALs_Use_Constructors returns True.
24661
24662         * mlib-tgt.ads: Minor reformatting
24663
24664         * mlib-utl.ads: Minor reformatting
24665
24666         * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
24667
24668 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24669
24670         * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
24671         single protected declarations can have an interface list.
24672         (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
24673         with seriously malformed entry declarations, and lead to compilation
24674         abandoned messages.
24675
24676 2005-07-04  Javier Miranda  <miranda@adacore.com>
24677
24678         * par-load.adb: Load the context items in two rounds.
24679
24680 2005-07-04  Robert Dewar  <dewar@adacore.com>
24681
24682         * scng.adb: Do not consider Mod used as an attribute to be a keyword
24683
24684 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24685             Javier Miranda  <miranda@adacore.com>
24686
24687         * sem_ch10.adb (Build_Limited_Views): A type declared with a private
24688         type extension needs a limited view.
24689         Remove previous restriction on private types available through the
24690         limited-view (only tagged private types were previously allowed).
24691         (Install_Withed_Unit): In the code that implements the
24692         legality rule given in AI-377, exclude a child unit with the name
24693         Standard, because it is a homonym of the Standard environment package.
24694
24695 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24696
24697         * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
24698         overloaded function call, carry interpretations from the original tree
24699         to the copy.
24700
24701 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24702
24703         * sem_ch6.adb (Conforming_Types): If the types are anonymous access
24704         types check whether some designated type is a limited view, and use
24705         the non-limited view if available.
24706
24707 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
24708
24709         * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
24710         constraint of full view of a private view T1 if present, when T2 is a
24711         discriminated full view.
24712
24713 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24714
24715         * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
24716         actual that is a view conversion of a bit packed array reference.
24717
24718 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24719
24720         * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
24721         present before checking whether an interface type covers a synchronized
24722         type.
24723
24724 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24725
24726         * sem_util.adb (Is_Object_Reference): An indexed or selected component
24727         whose prefix is an implicit dereference is an object reference. Removes
24728         spurious errors when compiling with -gnatc.
24729
24730 2005-07-04  Robert Dewar  <dewar@adacore.com>
24731
24732         PR ada/22039
24733         * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
24734
24735 2005-07-04  Matthew Gingell  <gingell@adacore.com>
24736
24737         * tracebak.c: Enable tracebacks on ia64 platforms
24738
24739 2005-07-04  Vincent Celier  <celier@adacore.com>
24740
24741         * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
24742         the GNAT BIND command, as gnatbind accepts multiples ALI files with
24743         the -L or -n switches.
24744
24745 2005-07-04  Vincent Celier  <celier@adacore.com>
24746
24747         * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
24748         correctly computed and the main project data is not modified while
24749         doing so.
24750         (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
24751         (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
24752         c++linker as this does not work on some platforms.
24753
24754 2005-07-04  Matthew Heaney  <heaney@adacore.com>
24755
24756         * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
24757         was changed.
24758         * a-coinve.adb: Perform constraint checks explicitly.
24759
24760 2005-07-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24761             Thomas Quinot  <quinot@adacore.com>
24762
24763         * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
24764         new target gen-soccon.
24765
24766 2005-07-04  Robert Dewar  <dewar@adacore.com>
24767
24768         * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
24769
24770 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24771
24772         * g-socket.ads (Check_Selector): Minor rewording of comment.
24773
24774 2005-07-04  Vincent Celier  <celier@adacore.com>
24775
24776         * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
24777
24778 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24779
24780         * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
24781
24782 2005-07-04  Sergey Rybin  <rybin@adacore.com>
24783
24784         * gnat_ugn.texi: Add description of --eol gnatpp option
24785
24786 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
24787             Thomas Quinot  <quinot@adacore.com>
24788
24789         * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
24790         if the user wants all calls of a subprogram to be flagged,
24791         independently of whether they are made from within the same unit or
24792         another unit.
24793         Mention restriction for pragma Linker_Alias on some platforms.
24794         Document pragma Linker_Constructor and Linker_Destructor.
24795         Rewrite documentation of Weak_External, Linker_Section and
24796         Linker_Alias pragmas.
24797
24798 2005-07-04  Arnaud Charlet  <charlet@adacore.com>
24799
24800         * s-stausa.ads, s-stausa.adb: New files.
24801
24802 2005-06-30  Kelley Cook
24803
24804         * all files:  Update FSF address in copyright headers.
24805         * gen-soccon.co (main): Output new FSF address in generated files.
24806
24807 2005-06-28  Paul Brook  <paul@codesourcery.com>
24808
24809         * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
24810
24811 2005-06-14  Olivier Hainque  <hainque@adacore.com>
24812             Eric Botcazou  <ebotcazou@adacore.com>
24813
24814         * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
24815         exc_unwind, now that we are generating proper .debug_frame output for
24816         that target.
24817
24818         * tracebak.c: Remove the mips-irix section, as we are now using the
24819         s-mastop based unwinder again.
24820         Under SPARC/Solaris, take into account the stack bias to compute the
24821         frame offset.  The stack bias is 0 for the V8 ABI and 2047 for the V9
24822         ABI.
24823
24824 2005-06-14  Doug Rupp  <rupp@adacore.com>
24825
24826         * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
24827
24828         * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
24829
24830 2005-06-14  Pascal Obry  <obry@adacore.com>
24831
24832         * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
24833         a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
24834         a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
24835         package name).
24836
24837         * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
24838         a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
24839         a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
24840         a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
24841         a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
24842         a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
24843         a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
24844         s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
24845         s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
24846         s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
24847         s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
24848         s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
24849         s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
24850         s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
24851         s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
24852         s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
24853         s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
24854         s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
24855         s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
24856         s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
24857         s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
24858         s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
24859         s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
24860         s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
24861         s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
24862         s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
24863         s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
24864         s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
24865         s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
24866         s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
24867         a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
24868         a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
24869         a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
24870         a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
24871         a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
24872         a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
24873         a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
24874         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
24875         a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
24876         a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
24877         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
24878         a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
24879         a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
24880         a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
24881         a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
24882         a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
24883         a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
24884         a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
24885         a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
24886         a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
24887         a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
24888         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
24889         a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
24890         a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
24891         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
24892         a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
24893         a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
24894         dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
24895         g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
24896         g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
24897         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
24898         g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
24899         g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
24900         gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
24901         g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
24902         i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
24903         s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
24904         s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
24905         s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
24906         s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
24907         s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
24908         s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
24909         s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
24910         s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
24911         s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
24912         s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
24913         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
24914         s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
24915         s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
24916         s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
24917         s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
24918         s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
24919         s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
24920         s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
24921         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
24922         s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
24923         s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
24924         s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
24925         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
24926         s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
24927         s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
24928         s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
24929         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
24930         s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
24931         s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
24932         s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
24933         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
24934         s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
24935         s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
24936         s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
24937         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
24938         s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
24939         s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
24940         s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
24941         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
24942         s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
24943         s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
24944         s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
24945         s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
24946         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
24947         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
24948         s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
24949         s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
24950         s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
24951         s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
24952         s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
24953         s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
24954         s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
24955         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
24956         s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
24957         s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
24958         s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
24959         s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
24960         a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
24961         a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
24962         a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
24963         a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
24964         a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
24965         a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
24966         a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
24967         a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
24968         a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
24969         "GNU Ada" to GNAT, use proper casing for RUN-TIME.
24970
24971 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
24972             Arnaud Charlet  <charlet@adacore.com>
24973
24974         * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
24975         longer protected objects. They have been replaced by lower-level
24976         suspension objects made up by a mutex and a condition variable (or
24977         their equivalent given a particular OS) plus some internal data to
24978         reflect the state of the suspension object.
24979         (Initialize, Finalize): Add this initialization procedure for
24980         Suspension_Object, which is a controlled type.
24981         (Finalize): Add the finalization procedure for Suspension_Object,
24982         which is a controlled type.
24983
24984         * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
24985         Ada.Synchronous_Task_Control because there is no longer a need for a
24986         VxWorks specific version of this package. Target dependencies
24987         has been moved to System.Task_Primitives.Operations.
24988
24989         * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
24990         longer needed.
24991         (InitializeCriticalSection, EnterCriticalSection,
24992         LeaveCriticalSection, DeleteCriticalSection): Replace the type
24993         pCriticalSection by an anonymous access type so that we avoid problems
24994         of accessibility to local objects.
24995
24996         * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
24997         s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
24998         s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
24999         s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
25000         s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
25001         set the environment task mask here.
25002         (Current_State): Add this function that returns the state of the
25003         suspension object.
25004         (Set_False): Add this procedure that sets the state of the suspension
25005         object to False.
25006         (Set_True): Add this procedure that sets the state of the suspension
25007         object to True, releasing the task that was suspended, if any.
25008         (Suspend_Until_True): Add this procedure that blocks the calling task
25009         until the state of the object is True. Program_Error is raised if
25010         another task is already waiting on that suspension object.
25011         (Initialize): Add this procedure for initializing the suspension
25012         object. It initializes the mutex and the condition variable which are
25013         used for synchronization and queuing, and it sets the internal state
25014         to False.
25015         (Finalize): Add this procedure for finalizing the suspension object,
25016         destroying the mutex and the condition variable.
25017
25018         * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
25019         s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
25020         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
25021         s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
25022         which provides a low-level abstraction (using operating system
25023         primitives) for Ada.Synchronous_Task_Control.
25024         This object is made up by a mutex (for ensuring mutual exclusion), a
25025         condition variable (for queuing threads until the condition is
25026         signaled), a Boolean (State) indicating whether the object is open,
25027         and a Boolean (Waiting) reflecting whether there is a task already
25028         suspended on this object.
25029
25030         * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
25031         s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
25032         s-intman-vms.ads, s-intman-mingw.adb,
25033         (Initialize_Interrupts): Removed, no longer used.
25034
25035         * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
25036         (Setup_Interrupt_Mask): New procedure.
25037
25038         * s-intman-vxworks.ads, s-intman-vxworks.adb:  Update comments.
25039
25040         * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
25041
25042         * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
25043         this is no longer done in the body of s-taprop
25044         (Server_Task): Explicitely test for Pending_Action in case
25045         System.Parameters.No_Abort is True.
25046
25047         * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
25048         is no longer done in the body of s-taprop
25049
25050 2005-06-14  Robert Dewar  <dewar@adacore.com>
25051
25052         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
25053         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
25054         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
25055         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
25056         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
25057         system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
25058         system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
25059         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
25060         system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
25061         system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
25062         system-linux-hppa.ads, system-vms_64.ads,
25063         system-vxworks-alpha.ads: Minor comment update for
25064         AI-362 (unit is Pure).
25065
25066         * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
25067         Add pragma Pure_05 for AI-362
25068         Make remaining conversion functions obsolescent in Ada 95
25069
25070         * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
25071         Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
25072         Add entries for a-wichun and a-zchuni
25073         Add a-widcha a-zchara for AI-395
25074         Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
25075
25076         * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
25077         Add entries for a-wichun.o and a-zchuni.o
25078         Entries for a-widcha.o and a-zchara.o
25079         Add entry for a-chacon.o
25080
25081         * a-ztenau.adb: Add with of Ada.Characters.Conversions
25082
25083         * a-chacon.ads, a-chacon.adb: New files.
25084
25085         * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
25086         categorization violations.
25087
25088         * a-strmap.ads: Add pragma Pure_05 for AI-362
25089         * a-strmap.ads: Add note on implicit categorization for AI-362
25090
25091         * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
25092
25093         * par-prag.adb: Dummy entry for pragma Persistent_BSS
25094         Set Ada_Version_Explicit, for implementation of AI-362
25095         Add processing for pragma Pure_05 and Preelaborate_05
25096         Add entry for Assertion_Policy pragma
25097
25098         * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
25099         when needed for proper processing of categorization stuff
25100
25101         * sem_cat.adb:
25102         For several cases, make errors in preealborate units warnings,
25103         instead of errors, if GNAT_Mode is set. For AI-362.
25104
25105         * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
25106         preelaborate unit is now warning if in GNAT mode
25107
25108         * s-stoele.ads: Document AI-362 for pragma preelaborate
25109
25110 2005-06-14  Doug Rupp  <rupp@adacore.com>
25111
25112         * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
25113         s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
25114         Default_Exception_Msg_Max_Length: new parameter.
25115
25116         * a-except.ads: (Exception_Msg_Max_Length): Set to
25117         System.Parameters.Default_Exception_Msg_Max_Length
25118         Add pragma Preelaborate_05 for AI-362
25119         Add warnings off to allow categorization violations for AI-362
25120
25121 2005-06-14  Vincent Celier  <celier@adacore.com>
25122
25123         * gnatsym.adb: Adapt to modification of package Symbols: procedure
25124         Process is now in package Processing.
25125
25126         * symbols.ads, symbols.adb:
25127         (Processing): New package, containing procedure Process
25128
25129         * symbols-vms-alpha.adb:
25130         Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
25131
25132         * symbols-vms.adb, symbols-processing-vms-alpha.adb,
25133         symbols-processing-vms-ia64.adb: New files.
25134
25135 2005-06-14  Pascal Obry  <obry@adacore.com>
25136
25137         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
25138         implementation. This new version generates the proper DllMain routine
25139         to initialize the SAL. The DllMain is generated in Ada and compiled
25140         before being added as option to the library build command.
25141
25142 2005-06-14  Doug Rupp  <rupp@adacore.com>
25143             Pascal Obry  <obry@adacore.com>
25144
25145         * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
25146         call to decc$translate_vms.
25147         (__gnat_locate_regular_file): Check if the path_val contains quotes. We
25148         need to remove those quotes before catenating the filename.
25149         (__gnat_locate_exec_on_path): improvements to the Win32 section:
25150         * avoid allocating the memory twice for better efficiency;
25151         * allocate 32K buffer for environment expansion as suggested by MSDN;
25152         * prepend ".;" to the path so that current directory is searched too.
25153
25154 2005-06-14  Robert Dewar  <dewar@adacore.com>
25155
25156         * a-except.adb (Exception_Identity): return Null_Id for null occurrence
25157         instead of raising CE (AI-241)
25158         Add warnings off to allow categorization violations for AI-362
25159
25160 2005-06-14  Robert Dewar  <dewar@adacore.com>
25161
25162         * ali-util.adb, gnatbind.adb: Remove references to
25163         Force_RM_Elaboration_Order.
25164
25165         * switch-b.adb: Remove recognition of -f switch
25166
25167 2005-06-14  Pascal Obry  <obry@adacore.com>
25168
25169         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
25170         implementation which is slightly more efficient.
25171
25172 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
25173             Javier Miranda  <miranda@adacore.com>
25174             Ed Schonberg  <schonberg@adacore.com>
25175             Hristian Kirtchev  <kirtchev@adacore.com>
25176
25177         * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
25178         allocator's designated type is a class-wide type, and compiling for
25179         Ada 2005, emit a run-time check that the accessibility level of the
25180         type given in the allocator's expression is not deeper than the level
25181         of the allocator's access type.
25182
25183         (Tagged_Membership): Modified to gives support to abstract interface
25184         types.
25185
25186         * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
25187         Access_Level.
25188         (Descendant_Tag): New predefined function
25189         (Is_Descendant_At_Same_Level): New predefined function
25190         (Get_Access_Level): New private function
25191         (Set_Access_Level): New private procedure
25192         (IW_Membership): New function. Given the tag of an object and the tag
25193         associated with an interface, evaluate if the object implements the
25194         interface.
25195         (Register_Interface_Tag): New procedure used to initialize the table of
25196         interfaces used by the IW_Membership function.
25197         (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
25198         of the dispatch table.
25199         (Inherit_TSD): Modified to copy the table of ancestor tags plus the
25200         table of interfaces of the parent.
25201         (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
25202         (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
25203         (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
25204         and raise Tag_Error if the passed tag equalis No_Tag, to conform with
25205         Ada 2005 semantics for the new predefined function.
25206
25207         * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
25208         call to Descendant_Tag rather than Internal_Tag.
25209         (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
25210         the accessibility level of the attribute's Item parameter is not deeper
25211         than the level of the attribute's prefix type. Tag_Error is raised if
25212         the check fails. The check is only emitted for Ada_05.
25213         (Find_Stream_Subprogram): If a TSS exists on the type itself for the
25214         requested stream attribute, use it.
25215         (Expand_N_Attribute_Reference): If the designated type is an interface
25216         then rewrite the referenced object as a conversion to force the
25217         displacement of the pointer to the secondary dispatch table.
25218         (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
25219         is a dereference of an object with a constrained partial view.
25220
25221         * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
25222         type is a class-wide type, emit a run-time check that the accessibility
25223         level of the returned object is not deeper than the level of the
25224         function's master (only when compiling for Ada 2005).
25225
25226         * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
25227         Action_Nb_Arg): Add entries for new Get_Access_Level and
25228         Set_Access_Level routines in these tables.
25229         (Make_DT): Generate a call to set the accessibility level of the
25230         tagged type in its TSD.
25231         (Make_DT): Code cleanup. The functionality of generating all the
25232         secondary dispatch tables has been moved to freeze_record_type.
25233         (Make_Abstract_Interface_DT): Minor code cleanup.
25234         (Set_All_DT_Position): Code cleanup. As part of the code cleanup
25235         this subprogram implements a new algorithm that provides the
25236         same functionality and it is more clear in case of primitives
25237         associated with abstract interfaces.
25238         (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
25239         clean up, the functionality of this subprogram is now provided
25240         by Set_All_DT_Position.
25241         (Write_DT): New subprogram: a debugging procedure designed to be called
25242         within gdb to display the dispatch tables associated with a tagged
25243         type.
25244         (Collect_All_Interfaces): New subprogram that collects the whole list
25245         of interfaces that are directly or indirectly implemented by a tagged
25246         type.
25247         (Default_Prim_Op_Position): New subprogram that returns the fixed
25248         position in the dispatch table of the default primitive operations.
25249         (Expand_Interface_Actuals): New subprogram to generate code that
25250         displaces all the actuals corresponding to class-wide interfaces to
25251         reference the interface tag of the actual object.
25252         (Expand_Interface_Conversion): New subprogram. Reference the base of
25253         the object to give access to the interface tag associated with the
25254         secondary dispatch table.
25255         (Expand_Interface_Thunk): New subprogram that generates the code of the
25256         thunk. This is required for compatibility with the C+ ABI.
25257         (Make_Abstract_Interface_DT): New subprogram that generate the
25258         declarations for the secondary dispatch tables associated with an
25259         abstract interface.
25260         (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
25261         attribute for each primitive operation covering interface subprograms
25262         (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
25263         These subprograms were upgraded to give support to abstract interfaces
25264
25265         * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
25266         RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
25267         RE_Set_Access_Level.
25268         (RE_Unit_Table): Add entries for new Ada.Tags operations.
25269         Add support to call the followig new run-time subprograms:
25270         IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
25271
25272         * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
25273         match its full declaration when both have an access definition with
25274         statically matching designated subtypes.
25275         (Analyze_Component_Declaration): Delete commented out code that was
25276         incorrectly setting the scope of an anonymous access component's type.
25277         (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
25278         an access discriminant when the containing type is nonlimited.
25279         (Make_Incomplete_Type_Declaration): Create an incomplete type
25280         declaration for a record type that includes self-referential access
25281         components.
25282         (Check_Anonymous_Access_Types): Before full analysis of a record type
25283         declaration, create anonymous access types for each self-referential
25284         access component.
25285         (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
25286         an access component in this context is a Local_Anonymous_Access, for
25287         proper accessibility checks.
25288         (Access_Definition): Set properly the scope of the anonymous access type
25289         created for a stand-alone access object.
25290         (Find_Type_Of_Object): An object declaration may be given with an access
25291         definition.
25292         (Complete_Subprograms_Derivation): New subprogram used to complete
25293         type derivation of private tagged types implementing interfaces.
25294         In this case some interface primitives may have been overriden
25295         with the partial-view and, instead of re-calculating them, they
25296         are included in the list of primitive operations of the full-view.
25297         (Build_Derived_Record_Type): Modified to give support to private
25298         types implemening interfaces.
25299         (Access_Definition): Reject ALL on anonymous access types.
25300         (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
25301         type derivation to occur at a deeper accessibility level than the
25302         parent type.
25303         For the case of derivation within a generic body however, disallow the
25304         derivation if the derived type has an ancestor that is a formal type
25305         declared in the formal part of an enclosing generic.
25306         (Analyze_Object_Declaration): For protected objects, remove the check
25307         that they cannot contain interrupt handlers if not declared at library
25308         level.
25309         (Add_Interface_Tag_Components): New subprogram to add the tag components
25310         corresponding to all the abstract interface types implemented by a
25311         record type or a derived record type.
25312         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
25313         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
25314         Process_Full_View, Record_Type_Declaration): Modified to give
25315         support to abstract interface types
25316         (Collect_Interfaces): New subprogram that collects the list of
25317         interfaces that are not already implemented by the ancestors
25318         (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
25319         when partial view has no discriminants and full view has defaults.
25320         (Constrain_Access): Reject a constraint on a general access type
25321         if the discriminants of the designated type have defaults.
25322         (Access_Subprogram_Declaration): Associate the Itype node with the inner
25323         full-type declaration or subprogram spec. This is required to handle
25324         nested anonymous declarations.
25325         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
25326         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
25327         Process_Full_View, Record_Type_Declaration): Modified to give
25328         support to abstract interface types
25329         (Derive_Subprograms): Addition of a new formal to indicate if
25330         we are in the case of an abstact-interface derivation
25331         (Find_Type_Of_Subtype_Indic): Moved from the body of the package
25332         to the specification because it is requied to analyze all the
25333         identifiers found in a list of interfaces
25334
25335         * debug.adb: Complete documentation of flag "-gnatdZ"
25336
25337         * exp_ch3.adb: Implement config version of persistent_bss pragma
25338         (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
25339         testing for TSS presence to properly enforce visibility rules.
25340         (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
25341         Make_Abstract_Interfaces_DT to generate the secondary tables
25342         associated with abstract interfaces.
25343         (Build_Init_Procedure): Modified to initialize all the tags
25344         corresponding.
25345         (Component_Needs_Simple_Initialization): Similar to other tags,
25346         interface tags do not need initialization.
25347         (Freeze_Record_Type): Modified to give support to abstract interface
25348         types.
25349         (Expand_N_Object_Declaration): Do not generate an initialization for
25350         a scalar temporary marked as internal.
25351
25352         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
25353         in-out parameter that is a component in an initialization procedure,
25354         whose constraint might depend on discriminants, and that may be
25355         misaligned because of packing or representation clauses.
25356         (Is_Legal_Copy): New predicate to determine whether a possibly
25357         misaligned in-out actual can actually be passed by copy/return. This
25358         is an error in case the type is by_reference, and a warning if this is
25359         the consequence of a DEC import pragma on the subprogram.
25360         (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
25361         interface types
25362         (Expand_Inlined_Call): Mark temporary generated for the return value as
25363         internal, so that no useless scalar normalization is generated for it.
25364         (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
25365         null procedure can always be inlined.
25366         (Expand_N_Subprogram_Declaration): If this is the declaration of a null
25367         procedure, generate an explicit empty body for it.
25368
25369         * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
25370         Given a type implementing an interface, returns the corresponding
25371         access_disp_table value.
25372         (Find_Interface_Tag): New subprogram. Given a type implementing an
25373         interface, returns the record component containing the tag of the
25374         interface.
25375         (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
25376         previous ones that return the corresponding tag and access_disp_table
25377         entities.
25378         (Is_Predefined_Dispatching_Operation): Determines if a subprogram
25379         is a predefined primitive operation.
25380         (Expand_Subtype_From_Expr): If the expression is a selected component
25381         within an initialization procedure, compute its actual subtype, because
25382         the component may depend on the discriminants of the enclosing record.
25383
25384         * i-cpp.ads, i-cpp.adb:
25385         This package has been left available for compatibility with previous
25386         versions of the frontend. As part of the new layout this is now a
25387         dummy package that uses declarations available at a-tags.ads
25388
25389         * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
25390         "constant access" and "aliased [constant] access" when not compiling
25391         with -gnat05.
25392         Suppress Ada 2005 keyword warning if -gnatwY used
25393         (P_Identifier_Declarations): Add support for object declarations with
25394         access definitions.
25395         (Private_Extension_Declaration): Complete the documentation
25396         (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
25397         attribute in case of private extension declaration
25398         (P_Type_Declaration): Mark as "abstract" the type declarations
25399         corresponding with protected, synchronized and task interfaces
25400         (P_Declarative_Items): "not" and "overriding" are overriding indicators
25401         for a subprogram or instance declaration.
25402
25403         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
25404         instantiation that is a dispatching operation has controlling access
25405         parameters that are null excluding.
25406         Save and restore Ada_Version_Explicit, for implementation of AI-362
25407         (Validate_Derived_Type_Instance): Add check for abstract interface
25408         types.
25409         (Analyze_Formal_Package): Establish Instantiation source for the copy of
25410         the generic that is created to represent the formal package.
25411         (Analyze_Package_Instantiation): Instantiate body immediately if the
25412         package is a predefined unit that contains inlined subprograms, and
25413         we are compiling for a Configurable_Run_Time.
25414         (Instantiate_Formal_Subprogram): Indicate that null default subprogram
25415         If the program has a null default, generate an empty body for it.
25416
25417         * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
25418         error message condition, null procedures are correctly detected now.
25419         (New_Overloaded_Entity): Bypass trivial overriding indicator check
25420         for subprograms in the context of protected types. Instead, the
25421         indicator is examined in Sem_Ch9 while analysing the subprogram
25422         declaration.
25423         (Check_Overriding_Indicator): Check consistency of overriding indicator
25424         on subprogram stubs as well.
25425         (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
25426         the library level.
25427         (Analize_Subprogram_Specification): When analyzing a subprogram in which
25428         the type of the first formal is a concurrent type, replace this type
25429         by the corresponding record type.
25430         (Analyze_Subprogram_Body): Undo the previous work.
25431         (Analyze_Procedure_Call): If the call has the form Object.Op, the
25432         analysis of the prefix ends up analyzing the call itself, after which
25433         we are done.
25434         (Has_Interface_Formals): New subprogram subsidiary to analyze
25435         subprogram_specification that returns true if some non
25436         class-wide interface subprogram is found
25437         (New_Overloaded_Entity): Modified to give support to abstract
25438         interface types
25439         (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
25440         access to subprograms must be recursive.
25441         (Is_Unchecked_Conversion): Improve the test that recognizes
25442         instantiations of Unchecked_Conversion, and allows them in bodies that
25443         are to be inlined by the front-end. When the body comes from an
25444         instantiation, a reference to Unchecked_Conversion will be an
25445         Expanded_Name, even though the body has not been analyzed yet.
25446         Replace Is_Overriding and Not_Overriding in subprogram_indication with
25447         Must_Override and Must_Not_Override, to better express intent of AI.
25448         (Analyze_Subprogram_Body): If an overriding indicator is given, check
25449         that it is consistent with the overrinding status of the subprogram
25450         at this point.
25451         (Analyze_Subprogram_Declaration): Indicate that a null procedure is
25452         always inlined.
25453         If the subprogram is a null procedure, indicate that it does not need
25454         a completion.
25455
25456         * sem_disp.adb (Check_Controlling_Type): Give support to entities
25457         available through limited-with clauses.
25458         (Check_Dispatching_Operation): A stub acts like a body, and therefore is
25459         allowed as the last primitive of a tagged type if it has no previous
25460         spec.
25461         (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
25462         to give support to abstract interface types
25463
25464         * sem_res.adb (Valid_Conversion): Perform an accessibility level check
25465         in the case where the target type is an anonymous access type of an
25466         object or component (that is, when Is_Local_Anonymous_Access is true).
25467         Prevent the special checks for conversions of access discriminants in
25468         the case where the discriminant belongs to a nonlimited type, since
25469         such discriminants have their accessibility level defined in the same
25470         way as a normal component of an anonymous access type.
25471         (Resolve_Allocator): When an allocator's designated type is a class-wide
25472         type, check that the accessibility level of type given in the
25473         allocator's expression or subtype indication is not statically deeper
25474         than the level of the allocator's access type.
25475         (Check_Discriminant_Use): Diagnose discriminant given by an expanded
25476         name in a discriminant constraint of a record component.
25477         (Resolve_Explicit_Dereference): Do not check whether the type is
25478         incomplete when the dereference is a use of an access discriminant in
25479         an initialization procedure.
25480         (Resolve_Type_Conversion): Handle conversions to abstract interface
25481         types.
25482         (Valid_Tagged_Conversion): The conversion of a tagged type to an
25483         abstract interface type is always valid.
25484         (Valid_Conversion): Modified to give support to abstract interface types
25485         (Resolve_Actuals): Enable full error reporting on view conversions
25486         between unrelated by_reference array types.
25487         The rule for view conversions of arrays with aliased components is
25488         weakened in Ada 2005.
25489         Call to obsolescent subprogram is now considered to be a violation of
25490         pragma Restrictions (No_Obsolescent_Features).
25491         (Check_Direct_Boolean_Operator): If the boolean operation has been
25492         constant-folded, there is nothing to check.
25493         (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
25494         check on possible violation of restriction No_Direct_Boolean_Operators
25495         until after expansion of operands, to prevent spurious errors when
25496         operation is constant-folded.
25497
25498         * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
25499         Has_Compatible_Type): Modified to give support to abstract interface
25500         types.
25501         (Interface_Present_In_Ancestor): New function to theck if some ancestor
25502         of a given type implements a given interface
25503
25504         * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
25505         prefix is a parameterless function that returns an access_to_procedure.
25506         (Transform_Object_Operation): Handle properly function calls of the
25507         form Obj.Op (X), which prior to analysis appear as indexed components.
25508         (Analyze_One_Call): Complete the error notification to help new Ada
25509         2005 users.
25510         (Analyze_Allocator): For an allocator without an initial value, where
25511         the designated type has a constrained partial view, a discriminant
25512         constraint is illegal.
25513
25514 2005-06-14  Robert Dewar  <dewar@adacore.com>
25515
25516         * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
25517         do with treatment of Set_Col when positioned at end of line character.
25518
25519 2005-06-14  Robert Dewar  <dewar@adacore.com>
25520
25521         * atree.adb: (Elist*): Protect against uninitialized field
25522
25523 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25524
25525         * checks.adb (Install_Null_Excluding_Check): Do not generate checks
25526         for an attribute reference that returns an access type.
25527         (Apply_Discriminant_Check): No need for check if (designated) type has
25528         constrained partial view.
25529
25530         (Apply_Float_Conversion_Check): Generate a short-circuit expression for
25531         both bound checks, rather than a conjunction.
25532         (Insert_Valid_Check): If the expression is an actual that is an indexed
25533         component of a bit-packed array, force expansion of the packed element
25534         reference, because it is specifically inhibited elsewhere.
25535
25536 2005-06-14  Vincent Celier  <celier@adacore.com>
25537
25538         * clean.adb (Clean_Project): Correctly delete executable specified as
25539         absolute path names.
25540
25541         * make.adb (Gnatmake): Allow relative executable path names with
25542         directory information even when project files are used.
25543         (Change_To_Object_Directory): Fail gracefully when unable to change
25544         current working directory to object directory of a project.
25545         (Gnatmake): Remove exception handler that could no longer be exercized
25546         (Compile_Sources.Compile): Use deep copies of arguments, as some of them
25547         may be deallocated by Normalize_Arguments.
25548         (Collect_Arguments): Eliminate empty arguments
25549
25550         * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
25551         and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
25552         (Check_Project): Return False when Project is No_Project. Return True
25553         when All_Projects is True.
25554         (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
25555         All_Projects to True.
25556         Minor reformatting
25557
25558 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25559             Javier Miranda  <miranda@adacore.com>
25560             Thomas Quinot  <quinot@adacore.com>
25561             Robert Dewar  <dewar@adacore.com>
25562             Hristian Kirtchev  <kirtchev@adacore.com>
25563             Gary Dismukes  <dismukes@adacore.com>
25564
25565         * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
25566         anonymous access types, to indicate that the accessibility level of
25567         the type is determined by that of the enclosing declaration.
25568         (Has_Persistent_BSS): New flag
25569         (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
25570         of this attribute with functions.
25571         (Is_Primitive_Wrapper): Remove the barrier.
25572         (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
25573         Has_Specified_Stream_Read, Has_Specified_Stream_Write):
25574         New subprograms.
25575         (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
25576         Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
25577         New subprograms.
25578         (Is_Pure_Unit_Access_Type): New flag
25579         (Abstract_Interfaces): Complete the assertion to cover all usages.
25580         (Set_Is_Interface): Complete the assertion to cover all usages.
25581         (Is_Primitive_Wrapper): New attribute.
25582         (Is_Obsolescent): Now applies to all entities (though it is only set
25583         for subprograms currently)
25584         New flag:  Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
25585         which solves various problems concerning access subtypes.
25586         (Has_Persistent_BSS): New flag
25587         (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
25588         Remove these subprograms because this attribute is currently
25589         not used.
25590         New entity flags:
25591         Has_Specified_Stream_Input (Flag190)
25592         Has_Specified_Stream_Output (Flag191)
25593         Has_Specified_Stream_Read (Flag192)
25594         Has_Specified_Stream_Write (Flag193)
25595         Present in all type and subtype entities. Set for a given view if the
25596         corresponding stream-oriented attribute has been defined by an
25597         attribute definition clause. When such a clause occurs, a TSS is set
25598         on the underlying full view; the flags are used to track visibility of
25599         the attribute definition clause for partial or incomplete views.
25600         (Is_Pure_Unit_Access_Type): New flag
25601         Clarify use of Is_Internal.
25602         (Is_Primitive_Wrapper): New attribute present in primitive subprograms
25603         internally generated to wrap the invocation of tasks and protected
25604         types that implement interfaces.
25605         (Implementation_Base_Type): Documentation correction
25606         (Is_Obsolescent): Now applies to all entities (though it is only set
25607         for subprograms currently)
25608         New flag:  Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
25609         which solves various problems concerning access subtypes.
25610
25611         * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
25612         for examined parameters. Identify unequal parameter list lengths as
25613         non-conformant parameters.
25614         (Overriding_Possible): Do not check for "All" qualifier in declaration
25615         of controlling access parameter, following prescription of AI-404.
25616         (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
25617         that build the procedure body that wraps an entry invocation
25618         (Build_Corresponding_Record, Build_Protected_Sub_Specification,
25619         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
25620         Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
25621         give support to abstract interface types
25622
25623         * freeze.adb (Freeze_Entity): Issue error message if
25624         Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
25625         type has no storage pool (Ada 2005) AI-366.
25626         Also modified to give support to abstract interface types
25627         (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
25628         Inline_Always pragma.
25629
25630         * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
25631         now begin an entry declaration.
25632         (P_Entry_Or_Subprogram_With_Indicator): New procedure in
25633         P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
25634         a subprogram declaration preceded by an overriding indicator.
25635         (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
25636         declarations or subprogram declarations preceded by reserved words
25637         "not" or "overriding".
25638         (P_Entry_Declaration): Update comment. Parse and check overriding
25639         indicator, set semantic flags of entry declarations.
25640         (P_Task): New error message in case of private applied
25641         to a task type declaration.
25642         (P_Protected): New error message in case of private applied
25643         to a task type declaration.
25644
25645         * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
25646         in which the full view of a type implementing an interface is a
25647         concurrent type.
25648         (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
25649         Declare_Inherited_Private_Subprograms): If an explicit operation
25650         overrides an operation that is inherited in the private part, mark the
25651         explicit one as overriding, to enable overriding indicator checks.
25652         (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
25653         full view to partial view, to simplify handling in back-end.
25654
25655         * sprint.adb: Print interface lists where needed: derived types,
25656         protected types, task types.
25657         output "is null" for null procedures. Part of implementation of
25658
25659         * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
25660         relaxation of rules for access types in pure, shared passive partitions.
25661
25662         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
25663         first read discriminants into temporary objects, performing checks on
25664         the read values, then possibly performing discriminant checks on the
25665         actual (if it is constrained), and only finally reading the components
25666         into a constrained temporary object.
25667         (Build_Elementary_Input_Call): Adjust the specific circuitry for the
25668         case of reading discriminants of a mutable record type to recognize
25669         the new form of the code generated by
25670         Build_Mutable_Record_Read_Procedure.
25671
25672         * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
25673         of a simple call to Make_TSS_Name.
25674         (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
25675         buffer, in order for Is_TSS to work correctly on local TSS names.
25676
25677         * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
25678         Is_Local_Anonymous_Access to check legaliy of attributes in the
25679         context of  access components and stand-alone access objects.
25680         (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
25681         treated as available for a limited private type if there is an
25682         attribute_definition_clause that applies to its full view, but not in
25683         other cases where the attribute is available for the full view
25684         (specifically, the sole fact that the full view is non-limited does not
25685         make the attribute available for the partial view).
25686         (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
25687         non-overloaded intrinsic subprogram.
25688         (Check_Stream_Attribute): Reject an attribute reference for an
25689         unavailable stream attribute even if the prefix is not a limited type
25690         (case of a 'Input attribute reference for an abstract, non-classwide
25691         type)
25692         (Stream_Attribute_Available): New function to determine whether a stream
25693         attribute is available at a place.
25694         (Check_Attribute): Use Stream_Attribute_Available instead of just
25695         testing for TSS presence on the implementation base type.
25696         (Analyze_Attribute): Modified to give support to task interfaces.
25697         (Analyze_Access_Attribute): Add error check for use of an Access (or
25698         Unrestricted_Access) attribute with a subprogram marked as
25699         Inline_Always.
25700         (Analyze_Attribute, case Attribute_Address): Add error check for use of
25701         an Address attribute with a subprogram marked as Inline_Always.
25702         Update Eval_Attribute to handle new value of Width from AI-395
25703
25704         * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
25705         (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
25706         Factor common code across the stream-oriented attribute circcuits into
25707         a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
25708         processing is functionally identical to the previous duplicated one,
25709         except that an expression that denotes an abstract subprogram will now
25710         be rejected, as mandated by AI-195 item 5.
25711
25712         * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
25713         Is_Local_Anonymous_Access to apply accessibility checks to access
25714         components and stand-alone access objects.
25715         (Has_Discriminant_Dependent_Constraint): Moved to spec for use
25716         elsewhere.
25717         (Is_Potentially_Persistent_Type): New function
25718         (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
25719         a heap-object whose type has a constrained partial view, the object is
25720         unconstrained and the component may depend on a discriminant, making its
25721         renaming illegal.
25722
25723         * sinfo.ads, sinfo.adb
25724         (Must_Not_Override): Flag applicable to N_Entry_Declaration.
25725         (Must_Override): Flag applicable to N_Entry_Declaration.
25726         Indicate that interface_list can appear in single task and single
25727         protected declarations.
25728         Replace Is_Overriding and Not_Overriding with Must_Override and
25729         Must_Not_Override, to better express intent of AI.
25730         Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
25731         of an overriding indicator in a subprogram or instance.
25732         Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
25733         Add the overriding indicator [[not] overriding] construct to the
25734         following grammar productions:
25735          ENTRY_DECLARATION
25736          GENERIC_INSTANTIATION
25737          SUBPROGRAM_SPECIFICATION
25738
25739         * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
25740         can start with an overriding indicator.
25741
25742         * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
25743         flags accordingly on subrogram specifications or instances.
25744
25745         * sem_ch8.adb:
25746         (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
25747         overriding_indicator, if present, is consistent with status of spec.
25748         Improve error message for null-excluding checks on controlling access
25749         parameters.
25750         (Check_In_Previous_With_Clause): Protect the frontend against
25751         previously reported critical errors in the context clauses.
25752         Save and restore Ada_Version_Explicit, for implementation of AI-362
25753         (Analyze_Subprogram_Renaming): If the new entity is a dispatching
25754         operation verify that controlling formals of the renamed entity that
25755         are access parameters are explicitly non-null.
25756         (Find_Expanded_Name): Improve error message when prefix is an illegal
25757         reference to a private child unit.
25758
25759         * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
25760         s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
25761         Rewrite to correspond to new wide character names in AI-395
25762
25763         * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
25764         default procedures.
25765
25766 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25767             Robert Dewar  <dewar@adacore.com>
25768
25769         * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
25770         code, not on the bodies of predefined operations, to cut down on
25771         spurious noise.
25772
25773 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25774
25775         * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
25776         be expanded in place. The size computation does not require a
25777         subtraction, which would raise an exception on a compiler built with
25778         assertions when the upper bound is Integer'first.
25779         (Flatten): For an array of composite components, take into account the
25780         size of the components to determine whether it is safe to expand the
25781         array into a purely positional representation.
25782
25783 2005-06-14  Thomas Quinot  <quinot@adacore.com>
25784
25785         * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
25786         denoting a formal parameter into account.
25787
25788 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25789
25790         * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
25791         the entry_call alternative of a conditional entry call, wrap the
25792         conditional entry call itself.
25793
25794 2005-06-14  Nicolas Setton  <setton@adacore.com>
25795             Ed Schonberg  <schonberg@adacore.com>
25796
25797         * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
25798         the "simple_choice" member in a variant record, in accordance with the
25799         description in the package spec: the information output for a constant
25800         should be "S number", not "SS number".
25801         (Get_Encoded_Name): Return at once if not generating code. Avoids name
25802         overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
25803
25804 2005-06-14  Thomas Quinot  <quinot@adacore.com>
25805
25806         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
25807         RACW without any primitives, do not generate the if statement for
25808         dispatching by name in the PolyORB/DSA case, as it would be malformed
25809         (it would have an Elsif_Parts list that is not No_List, but with a
25810         length of 0).
25811
25812 2005-06-14  Robert Dewar  <dewar@adacore.com>
25813
25814         * exp_intr.adb, par-ch5.adb: Minor fix to error message text
25815
25816 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
25817
25818         * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
25819         can determine whether pragma Suppress_Exception_Locations is in effect.
25820
25821         * utils2.c (build_call_raise): Do not pass the file name to the
25822         exception handler if pragma Suppress_Exception_Locations is in effect.
25823         (build_allocator): Add and process arg IGNORE_INIT_TYPE.
25824
25825 2005-06-14  Emmanuel Briot  <briot@adacore.com>
25826
25827         * g-debpoo.adb (Deallocate, Dereference): Improve output.
25828
25829 2005-06-14  Nicolas Roche  <roche@adacore.com>
25830
25831         * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
25832         to ""
25833         (Next_Level): Fix minor bug in handling of ../dir case
25834         (Read): Add dir separator to Directory name so that "" is understood as
25835          "/"
25836
25837 2005-06-14  Pascal Obry  <obry@adacore.com>
25838
25839         * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
25840         releasing the items.
25841
25842 2005-06-14  Vincent Celier  <celier@adacore.com>
25843             Cyrille Comar  <comar@adacore.com>
25844
25845         * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
25846         with output file descriptor and with output file name.
25847         (Dup, Dup2): Now global procedures as they are used by two subprograms
25848         (Copy): Allocate the 200K buffer on the heap rather than on the stack.
25849
25850 2005-06-14  Thomas Quinot  <quinot@adacore.com>
25851
25852         PR ada/6717
25853         * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
25854         broadcast address.
25855         (Create_Selector): Bind listening socket used to create the signalling
25856         socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
25857         Set listen backlog to 1 to ensure that we detect socket theft by a
25858         failure of our own connect(2) call.
25859         (Check_Selector): Improve documentation of the selector mechanism.
25860         (Broadcast_Inet_Addr): New constant.
25861
25862 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
25863
25864         * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
25865         type which turns out to be an incomplete and incorrect fix.
25866         (Layout_Array_Type): Use Underlying_Type when checking whether the scope
25867         of the type is declared in a record (for determination of insertion
25868         type).
25869         (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
25870         a private type and ensure that the primary entity is used for the type
25871         of the newly created function's V formal by taking the Etype of the
25872         view.
25873
25874 2005-06-14  Javier Miranda  <miranda@adacore.com>
25875             Jose Ruiz  <ruiz@adacore.com>
25876             Robert Dewar  <dewar@adacore.com>
25877             Ed Schonberg  <schonberg@adacore.com>
25878
25879         * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
25880         that indicates if we are parsing a compilation unit found in a
25881         limited-with clause.
25882         It is use to avoid the circularity check.
25883
25884         * par.ads, par.adb (Par): Addition of a new parameter to indicate if
25885         we are parsing a compilation unit found in a limited-with clause. This
25886         is use to avoid the circularity check.
25887
25888         * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
25889         unit as a consequence of parsing a limited-with clause. This is used
25890         to avoid the circularity check.
25891
25892         * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
25893         (Analyze_Context): Limited-with clauses are now allowed
25894         in more compilation units.
25895         (Analyze_Subunit_Context, Check_Parent): Protect the frontend
25896         againts previously reported critical errors in context clauses
25897         (Install_Limited_Withed_Unit): Code cleanup plus static detection
25898         of two further errors: renamed subprograms and renamed packages
25899         are not allowed in limited with clauses.
25900         (Install_Siblings): Do not install private_with_clauses on the package
25901         declaration for a non-private child unit.
25902         (Re_Install_Parents): When a parent of the subunit is reinstalled,
25903         reset visibility of child units properly.
25904         (Install_Withed_Unit): When a child unit appears in a with_clause of its
25905         parent, it is immediately visible.
25906
25907 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25908             Emmanuel Briot  <briot@adacore.com>
25909
25910         * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
25911         declared within an inlined body as referenced, to prevent spurious
25912         warnings.
25913         (Output_One_Ref): If an entity renames an array component, indicate in
25914         the ALI file that this aliases (renames) the array. Capture as well
25915         function renamings that rename predefined operations.
25916         Add information about generic parent for package and subprogram
25917         instances.
25918         (Get_Type_Reference): For a subtype that is the renaming of an actual in
25919         an instantiation, use the first_subtype to ensure that we don't generate
25920         cross-reference information for internal types.
25921         For objects and parameters of a generic private type, retain the '*'
25922         indicator to distinguish such an entity from its type.
25923
25924         * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
25925         to store information about instantiated entities.
25926
25927         * ali.adb (Scan_ALI): Add support for parsing the reference to the
25928         generic parent
25929
25930         * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
25931         (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
25932         information.
25933
25934 2005-06-10  Doug Rupp  <rupp@adacore.com>
25935             Arnaud Charlet  <charlet@adacore.com>
25936             Olivier Hainque  <hainque@adacore.com>
25937             Jose Ruiz  <ruiz@adacore.com>
25938
25939         * Make-lang.in: Add initialize.o when needed.
25940         Remove obsolete references to RT_FLAGS.
25941         Add missing dependencies for sdefault.o
25942
25943         * initialize.c: New file.
25944
25945         * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
25946         [VMS] cond_signal_table: Fix problem in declaration.
25947         [VMS] __gnat_error_handler: rewrite.
25948         Move all __gnat_initialize() routines to initialize.c
25949         Specialize the former "hpux" section to "hppa hpux", as this is what the
25950         section really is here for and we now have other hpux ports that need
25951         different contents.
25952         (__gnat_adjust_context_for_raise) i386-linux: First version of this
25953         function for this target. Adjust PC by one in the machine context. This
25954         adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
25955         it is more reliable to do that in the signal handler itself.
25956         (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
25957         flags, so that the handler is passed the context structure to adjust
25958         prior to the raise.
25959         (__gnat_error_handler) i386-linux: Adjust the signature to match what a
25960         SA_SIGINFO sigaction should look like. Call
25961         __gnat_adjust_context_for_raise before actually raising. Cleanup unused
25962         Machine_State_Operations stuff.
25963         Add conditional code so that the x86_64 is also supported.
25964
25965 2005-06-14  Pascal Obry  <obry@adacore.com>
25966
25967         * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
25968         the library name.
25969
25970 2005-06-14  Robert Dewar  <dewar@adacore.com>
25971
25972         * opt.ads, opt.adb: New flags for persistent_bss mode
25973         Add Ada_Version_Explicit, for implementation of AI-362
25974         Add Assertions_Enabled_Config and associated handling
25975         Needed since setting can be changed with Assertion_Policy pragma
25976         Add new flag Warn_On_Ada_2005_Compatibility
25977
25978         * switch-c.adb: Recognize -gnatwy/Y
25979         Set Ada_Version_Explicit, for implementation of AI-362
25980         The -gnatg switch now includes -gnatyu
25981
25982         * usage.adb: Add -gnatwy/Y
25983         Remove wrong asterisk on -gnatwX line
25984         Add line for -gnatyu switch
25985
25986 2005-06-14  Vincent Celier  <celier@adacore.com>
25987
25988         * osint.adb (Add_Default_Search_Dirs): Put source and object
25989         directories of project files before directories coming from
25990         ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
25991
25992 2005-06-14  Robert Dewar  <dewar@adacore.com>
25993
25994         PR ada/15613
25995         * par-ch2.adb (Scan_Pragma_Argument): New procedure
25996         (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
25997
25998 2005-06-14  Vincent Celier  <celier@adacore.com>
25999
26000         * prep.adb (Preprocess): Ignore error when scanning the first token of
26001         a line.
26002
26003 2005-06-14  Vincent Celier  <celier@adacore.com>
26004
26005         * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
26006         (Check_Stand_Alone_Library): If the specified reference symbol file does
26007         not exist, only issue a warning when the symbol policy is not
26008         Controlled. And, when symbol policy is Compliant, set the symbol
26009         policy to Autonomous.
26010
26011 2005-06-14  Vincent Celier  <celier@adacore.com>
26012
26013         * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
26014         when the project file in a with clause is not the last one, that is the
26015         project file name is followed by a comma.
26016         * prj-pp.adb: (First_With_In_List): New Boolean global variable
26017         (Print): Issue list of project files separated by commas in with clauses
26018         according to the values returned by Is_Not_Last_In_List.
26019         * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
26020         (Set_Is_Not_Last_In_List): New procedure
26021
26022 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
26023
26024         * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
26025
26026 2005-06-14  Robert Dewar  <dewar@adacore.com>
26027
26028         * scng.adb: Add call to new Check_EOF routine
26029         (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
26030         Add some comments regarding wide character handling
26031
26032         * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
26033
26034         * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
26035
26036         * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
26037         characters are now considered graphic characters and hence yield false
26038         in this call.
26039
26040         * nmake.adt: Modify header so that xnmake does not generate output
26041         files with multiple blank lines.
26042
26043         * treeprs.adt: Remove a blank line so that output from xtreeprs does
26044         not have an extra blank line
26045
26046 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
26047
26048         * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
26049         expression when the component type is an anonymous access type to
26050         ensure that appropriate accessibility checks are done.
26051
26052         * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
26053         expression of an assignment when the target object is of an anonymous
26054         access type. This ensures that required accessibility checks are done.
26055         (One_Bound): Move the check for type Universal_Integer to
26056         Process_Bounds.
26057         (Process_Bounds): Check whether the type of the preanalyzed range is
26058         Universal_Integer, and in that case set Typ to Integer_Type prior
26059         to setting the type of the original range and the calls to One_Bound.
26060
26061 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
26062
26063         * sem_case.adb (Expand_Others_Choice): Improve warning.
26064
26065 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
26066
26067         * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
26068         constraint of full view if present, when other type is discriminated.
26069         (Eval_Relational_Op): Recognize tests of pointer values against Null,
26070         when the pointer is known to be non-null, and emit appropriate warning.
26071
26072 2005-06-14  Robert Dewar  <dewar@adacore.com>
26073             Ed Schonberg  <schonberg@adacore.com>
26074
26075         PR ada/10671
26076         * sem_prag.adb: Implement pragma Persistent_BSS
26077         Remove obsolete pragma Persistent_Data, Persistent_Object
26078         Set Ada_Version_Explicit, for implementation of AI-362
26079         Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
26080         Add processing for pragma Pure_05 and Preelaborate_05
26081         Add processing for Assertion_Policy pragma
26082         Add pragma identifiers for Assert
26083         (Analyze_Pragma, case Assert): Check number of arguments
26084         (Process_Inline): Additional guard against an illegal program, where the
26085         argument of the pragma is undefined, and warnings on redundant
26086         constructs are enabled.
26087         (Analyze_Pragma, case Obsolescent): Allow an optional second argument
26088         Ada_05 to this pragma, specifying that the pragma is only active in
26089         Ada_05 mode.
26090         (Check_Arg_Order): New procedure
26091         Add appropriate calls to this procedure throughout
26092         Also throughout, check entity name before doing any other checks
26093
26094         * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
26095         Remove obsolete pragma Persistent_Data, Persistent_Object
26096         Add entries for pragma Pure_05 and Preelaborate_05
26097         Add entries for Assertion_Policy pragma and associated names
26098         Add some names for pragma argument processing
26099
26100         * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
26101
26102 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
26103
26104         * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
26105         appears within a negation (either from source or as a rewriting of
26106         inequality) adjust text of warning accordingly.
26107
26108 2005-06-14  Thomas Quinot  <quinot@adacore.com>
26109
26110         * s-strxdr.adb: Follow AI95-00132
26111
26112 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
26113
26114         * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
26115
26116 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
26117             Jose Ruiz  <ruiz@adacore.com>
26118
26119         * s-tposen.adb, s-tpobop.adb
26120         (Exceptional_Complete_Rendezvous): Save the occurrence and not only
26121         the exception id.
26122         (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
26123         there is no violation of the Max_Entry_Queue_Length restriction (if it
26124         has been set); Program_Error is raised otherwise.
26125         (Requeue_Call): Before requeuing the task on the target entry queue we
26126         check that there is no violation of the Max_Entry_Queue_Length
26127         restriction (if it has been set); Program_Error is raised otherwise.
26128
26129 2005-06-14  Robert Dewar  <dewar@adacore.com>
26130
26131         * styleg.adb: Fix several remaining problems in -gnatyu switch
26132         Blank line count not reset at start
26133         Scanning outside source buffer in some cases
26134         Confusing message for blanks at end of file
26135         Non-empty blank lines not recognized
26136
26137         * nmake.adt: Modify header so that xnmake does not generate output
26138         files with multiple blank lines.
26139
26140         * treeprs.adt: Remove a blank line so that output from xtreeprs does
26141         not have an extra blank line
26142
26143 2005-06-14  Sergey Rybin  <rybin@adacore.com>
26144
26145         * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
26146
26147 2005-06-14  Doug Rupp  <rupp@adacore.com>
26148             Vincent Celier  <celier@adacore.com>
26149
26150         * vms_conv.ads, vms_conv.adb: Remove "Library" command.
26151         Update copyright.
26152
26153         * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
26154         Remove "Library" command.
26155         Change keyword for style check -gnatyd from NOCRLF to
26156         DOS_LINE_ENDINGS.
26157         Remove useless second style check keyword NONE
26158         Remove help documentation for inexistent style check keyword
26159         RM_COLUMN_LAYOUT.
26160         Add help documentation for style check keywords DOS_LINE_ENDINGS,
26161         UNNECESSARY_BLANK_LINES and XTRA_PARENS
26162         Add UNNECESSARY_BLANK_LINES for -gnatyu
26163         Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
26164
26165         * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
26166
26167 2005-06-14  Vincent Celier  <celier@adacore.com>
26168
26169         * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
26170         gprmake was invoked with -d.
26171         (Compile_Sources): If -d was used, output the "completed ..." message
26172         for each compilation.
26173         (Scan_Arg): Recognize new switch -d
26174         When -c and at least one main is specified, set
26175         Unique_Compile to True to guarantee that no other sources will be
26176         compiled.
26177
26178 2005-06-14  Matthew Heaney  <heaney@adacore.com>
26179
26180         * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
26181         * a-swuwha.ads, a-swuwha.adb: New files
26182
26183         * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
26184         * a-szuzha.ads, a-szuzha.adb: New files.
26185
26186         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
26187         a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
26188         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
26189         a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
26190         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
26191         a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
26192         a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
26193         a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
26194         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
26195         a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
26196         Ada 2005 RM.
26197
26198 2005-06-10  Eric Botcazou  <ebotcazou@adacore.com>
26199             Olivier Hainque  <hainque@adacore.com>
26200             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26201             Pascal Obry  <obry@adacore.com>
26202
26203         * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
26204
26205         * trans.c (call_to_gnu): Issue a warning for users of Starlet when
26206         making a temporary around a procedure call because of non-addressable
26207         actual parameter.
26208         (process_freeze_entity): If entity is a private type, capture size
26209         information that may have been computed for the full view.
26210         (tree_transform, case N_Allocator): If have initializing expression,
26211         check type for Has_Constrained_Partial_View and pass that to
26212         build_allocator.
26213         (tree_transform, case N_Return_Statement): Pass extra arg to
26214         build_allocator.
26215
26216         * decl.c (annotate_value): Remove early return if -gnatR is not
26217         specified.
26218         (gnat_to_gnu_field): Don't make a packable type for a component clause
26219         if the position is byte aligned, the field is aliased, and the clause
26220         size isn't a multiple of the packable alignment. It serves no useful
26221         purpose packing-wise and would be rejected later on.
26222         (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
26223
26224         PR ada/20515
26225         (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
26226         context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
26227         instead.
26228         (create_concat_name): Idem.
26229
26230 2005-06-10  Robert Dewar  <dewar@adacore.com>
26231             Eric Botcazou  <ebotcazou@adacore.com>
26232             Ben Brosgol  <brosgol@adacore.com>
26233             Cyrille Comar  <comar@adacore.com>
26234             Sergey Rybin  <rybin@adacore.com>
26235             Pascal Obry  <obry@adacore.com>
26236
26237         * gnat_rm.texi: Add documentation for pragma Persistent_BSS
26238         Document second argument (Ada_05) of pragma Obsolescent
26239         Add note that call to subprogram marked with pragma Obsolescent
26240         is now considered to be a violation of program Restrictions
26241         (No_Obsolescent_Features).
26242         (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
26243         that only machine-dependent attributes are supported.
26244
26245         * gnat_ugn.texi:
26246         Commented out menu lines and empty section for gnatclean examples
26247         Document -gnatwy/Y
26248         Fix some over long lines
26249         Clarify and enhance documentation of ADA_PROJECT_PATH.
26250         Rework section 2.11.2(3) about linking with a non-GNU compiler.
26251         Mention new switch -fcallgraph-info.
26252         Mention new switch -fstack-usage.
26253         For gnatpp, replace '-notab' with '-N' and add this option to Index
26254         Corrected VMS example.
26255         VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
26256         Minor reformatting
26257         Add documentation for -gnatyu switch (unnecessary blank lines)
26258         Document new switch -U for GNAT PRETTY and GNAT METRIC
26259         Add note about Stdcall being handled as C convention on non Windows OS.
26260         Remove some junk typo in description of gnatbind -S switch
26261         Remove reference to Extensions_Allowed pragma
26262         Document the new order of the directories to be searched (source and
26263         object directories of project files before directories in ADA_*_PATH
26264         environment variables.
26265
26266         * g-trasym.ads: Document that IRIX is supported
26267
26268 2005-06-10  Arnaud Charlet  <charlet@adacore.com>
26269
26270         * Makefile.in: Add initialize.o when needed.
26271         Adapt to new VMS package body Symbols and subunits
26272         No specialized version of a-sytaco is needed for VxWorks.
26273
26274         * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
26275         * a-zchara.ads, a-widcha.ads: New files.
26276
26277         * system-hpux-ia64.ads: New file.
26278
26279         * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
26280         is imported from the VxWorks kernel.
26281
26282 2005-06-14  Robert Dewar  <dewar@adacore.com>
26283
26284         * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
26285         fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
26286         a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
26287         s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
26288         a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
26289         g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
26290         i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
26291         namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
26292         sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
26293         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
26294         s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
26295         xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
26296
26297 2005-06-14  Thomas Quinot  <quinot@adacore.com>
26298
26299         * xeinfo.adb: Fix typo in comment
26300
26301 2005-06-14  Javier Miranda  <miranda@adacore.com>
26302
26303         * repinfo.ads: Fix typo in comment
26304
26305 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
26306
26307         * s-finimp.adb (Parent_Tag): Delete this imported function (function
26308         Parent_Tag is now in the visible part of Ada.Tags).
26309         (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
26310         using imported function.
26311
26312 2005-06-14  Bernard Banner  <banner@adacore.com>
26313
26314         * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
26315         also apply for handling support for VxSim 653.
26316
26317 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
26318
26319         * xsnames.adb: Add automatic generation of snames.h.
26320
26321 2005-06-14  Thomas Quinot  <quinot@adacore.com>
26322
26323         * gen-soccon.c: Add IP_MULTICAST_IF constant
26324         Minor reformatting and adjustments to prevent warnings.
26325
26326 2005-06-14  Pascal Obry  <obry@adacore.com>
26327
26328         * seh_init.c: Do not include <sys/stat.h>. This is not needed.
26329
26330 2005-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
26331
26332         * trans.c (gnat_gimplify_expr): Call
26333         recompute_tree_invarant_for_addr_expr when we change
26334         the operand of the ADDR_EXPR.
26335
26336 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26337
26338         * misc.c: Don't include errors.h.
26339
26340 2005-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26341
26342         * raise.c (db): Add ATTRIBUTE_PRINTF_2.
26343
26344 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
26345
26346         * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
26347         comment typos.
26348         * gnat_rm.texi, gnat_ugn.texi: Fix typos.
26349
26350 2005-05-16  Nathanael Nerode  <neroden@gcc.gnu.org>
26351
26352         PR ada/20270
26353         * Makefile.in: Make TGT_LIB behave correctly.
26354
26355 2005-04-23  DJ Delorie  <dj@redhat.com>
26356
26357         * misc.c: Adjust warning() callers.
26358
26359 2005-04-16  Laurent Guerby  <laurent@guerby.net>
26360
26361         PR ada/18847
26362         * a-nudira.adb (Value): Check for valid string.
26363         * a-nuflra.adb (Value): Likewise.
26364
26365 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
26366
26367         * lang.opt: Refer to the GCC internals documentation instead of c.opt.
26368
26369 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
26370
26371         * adaint.c, init.c, tracebak.c: Fix comment typos.
26372         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
26373
26374 2005-04-07  Laurent Guerby  <laurent@guerby.net>
26375             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26376
26377         * Makefile.in: Add make ifeq define for hppa linux tasking support.
26378         * system-hpux.ads: Define Signed_Zeros to be True.
26379         * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
26380
26381 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
26382
26383         * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
26384         raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
26385         typos.
26386
26387 2005-03-30  Tom Tromey  <tromey@redhat.com>
26388
26389         * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
26390
26391 2005-03-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
26392
26393         * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
26394
26395 2005-03-29  Robert Dewar  <dewar@adacore.com>
26396
26397         * sem_res.adb (Resolve_Real_Literal): Generate warning if static
26398         fixed-point expression has value that is not a multiple of the Small
26399         value.
26400
26401         * opt.ads (Warn_On_Bad_Fixed_Value): New flag
26402
26403         * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
26404         nanoseconds.
26405
26406         * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
26407
26408 2005-03-29  Vincent Celier  <celier@adacore.com>
26409
26410         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
26411         (Build_Dynamic_Library.Version_String): Return the empty string when
26412         Lib_Version is empty or when the symbol policy is not Autonomous.
26413
26414         * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
26415         a symbol is not in the reference symbol file, increase the Major ID
26416         and set the Minor ID to 0.
26417         Use gsmatch=lequal instead of gsmatch=equal
26418
26419 2005-03-29  Doug Rupp  <rupp@adacore.com>
26420
26421         * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
26422         name and translate.
26423
26424 2005-03-29  Javier Miranda  <miranda@adacore.com>
26425
26426         * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
26427         (Inherit_DT): The first formal has been redefined as a Tag.
26428         This allows us the removal of the subprogram Get_TSD.
26429         (TSD): Replace the call to Get_TSD by the actual code.
26430
26431         * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
26432         (Make_DT): Upgrade the call to Inherit_TSD according to the
26433         new interface: the first formal is now a Tag.
26434
26435         * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
26436         redefined as a Tag.
26437         This change allows us to remove the subprogram Get_TSD.
26438         (CPP_Get_TSD): Subprogram removed.
26439         (TSD): Replace the call to CPP_Get_TSD by the actual code.
26440
26441         * rtsfind.ads: Remove support to call the run-time
26442         subprogram Get_TSD
26443
26444 2005-03-29  Robert Dewar  <dewar@adacore.com>
26445
26446         * errutil.adb, errout.adb:
26447         Minor comment updates on Line_Terminator references
26448
26449         * par-ch10.adb: Add ??? comment about line terminator
26450
26451         * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
26452         (check dos line terminator).
26453         (Check_Line_Max_Length): New procedure, split off from the existing
26454         Check_Line_Terminator routine. Separating this out allows -gnatyf to
26455         be properly recognized.
26456
26457         * styleg.adb: Add ??? comment for line terminator reference
26458
26459         * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
26460         (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
26461
26462         * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
26463         (check dos line terminator).
26464         (Check_Line_Max_Length): New procedure, split off from the existing
26465         Check_Line_Terminator routine. Separating this out allows -gnatyf to
26466         be properly recognized.
26467
26468         * stylesw.ads, stylesw.adb:
26469         Add handling for new -gnatyd switch (check dos line terminator)
26470
26471         * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
26472         Recognize -gnatwb/-gnatwB switches
26473         Include Warn_On_Bad_Fixed_Value for -gnatg
26474
26475         * usage.adb:
26476         Add line for new -gnatyd switch (check dos line terminator)
26477
26478         * usage.adb: Add lines for -gnatwb/-gnatwB
26479
26480         * vms_data.ads: Add entry for NOCRLF (-gnatyd)
26481
26482         * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
26483
26484         * gnat_ugn.texi: Fix overlong lines
26485         Document new -gnatyd switch
26486         Document new -gnatwb/-gnatwB switches
26487
26488 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
26489
26490         * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
26491         order to retrieve the component list of the type, before examining
26492         individual components.
26493
26494         * sem_type.adb (Covers): Types are compatible if one is the base type
26495         of the other, even though their base types might differ when private
26496         views are involved.
26497
26498 2005-03-29  Thomas Quinot  <quinot@adacore.com>
26499
26500         * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
26501         To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
26502         of using Set_Renaming_TSS. This ensures that the TSS bodies are not
26503         analyzed if expansion is disabled (which could otherwise cause spurious
26504         error messages if expansion has been disabled due to previous
26505         (unrelated) errors).
26506
26507         * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
26508         is disabled, the entity denoted by the argument is the access type
26509         itself, not an underlying record type, so there is no need to go back
26510         to the Corresponding_Remote_Type.
26511
26512 2005-03-29  Gary Dismukes  <dismukes@adacore.com>
26513             Robert Dewar  <dewar@adacore.com>
26514
26515         * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
26516         expand a call to an instance of
26517         Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
26518         Constructor actual of the instance. A class-wide membership
26519         check is also generated, to ensure that the tag passed to the instance
26520         denotes a type in the class.
26521         (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
26522         of Name_Generic_Dispatching_Constructor.
26523
26524         * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
26525         05 unit for AI-260-02).
26526
26527         * a-tgdico.ads: New file.
26528
26529         * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
26530         predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
26531
26532         * snames.ads, snames.adb (Preset_Names): Add entry for
26533         Generic_Dispatching_Constructor.
26534
26535         PR ada/20300
26536         * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
26537         character type cases.
26538         (Analyze_Subprogram_Renaming): Add special handling for
26539         the case of renaming of stream attributes when the renaming denotes a
26540         generic formal subprogram association for an abstract formal subprogram.
26541         Check that the attribute is a primitive stream attribute (and not
26542         a class-wide stream attribute) and then rewrite the attribute name
26543         as the name of the appropriate compiler-generated stream primitive.
26544
26545 2005-03-29  Robert Dewar  <dewar@adacore.com>
26546
26547         * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
26548         recursive calls.
26549         (Is_Possibly_Unaligned_Object): Correct typo that
26550         resulted in inaccurate result for unaligned scalars within records.
26551
26552 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
26553
26554         * freeze.adb (Freeze_Record_Type): If the type of the component is an
26555         itype whose parent is controlled and not yet frozen, do not create a
26556         freeze node for the itype if expansion is disabled.
26557
26558 2005-03-29  Vincent Celier  <celier@adacore.com>
26559
26560         * make.adb (Gnatmake): Don't fail if the main project file is declared
26561         as having no Ada sources. Do not display message "no sources to
26562         compile" in quiet output.
26563
26564 2005-03-29  Doug Rupp  <rupp@adacore.com>
26565
26566         * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
26567         extra tools.
26568
26569 2005-03-29  Robert Dewar  <dewar@adacore.com>
26570
26571         * par-ch12.adb (P_Generic): Give better msg for illegal private generic
26572         child.
26573
26574 2005-03-29  Robert Dewar  <dewar@adacore.com>
26575
26576         * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
26577         missing TYPE Improve the error message generated when compiling a
26578         limited interface in Ada83 or Ada95 mode.
26579
26580 2005-03-29  Robert Dewar  <dewar@adacore.com>
26581
26582         * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
26583         rather than proceed ahead using a junk attribute name.
26584
26585 2005-03-29  Vincent Celier  <celier@adacore.com>
26586
26587         * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
26588
26589         * prj-part.adb (Parse_Single_Project): Set the location of a project
26590         on its defining identifier, rather than on the reserved word "project".
26591
26592         * prj-proc.adb (Expression): Adapt to the fact that default of external
26593         references may be string expressions, not always literal strings.
26594         (Recursive_Process): Set Display_Name equal to Name
26595         when Location is No_Location, that is when there is no actual file.
26596         Get the Display_Name of the project from the source, when it is not a
26597         virtual project.
26598         (Process): Use the Display_Name in error messages
26599
26600         * prj-strt.adb (External_Reference): Allow default to be string
26601         expressions, not only literal strings.
26602
26603 2005-03-29  Vincent Celier  <celier@adacore.com>
26604
26605         * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
26606         file and the reference symbol file to be the same file.
26607
26608 2005-03-29  Thomas Quinot  <quinot@adacore.com>
26609
26610         * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
26611         forbid conversion of a local access-to-subprogram type to a remote one.
26612
26613         * sem_util.adb (Wrong_Type): For a record type that is the expanded
26614         equivalent type for a remote access-to-subprogram type, go back to the
26615         original RAS entity when displaying an error message, so the casing is
26616         the original source casing.
26617
26618 2005-03-29  Robert Dewar  <dewar@adacore.com>
26619
26620         * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
26621         on param update.
26622
26623 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
26624
26625         * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
26626         subtype if code is being pre-analyzed, to prevent un-expanded
26627         references to protected formals, among others.
26628         (Analyze_Explicit_Dereference): If the overloaded prefix includes some
26629         interpretation that can be a call, include the result of the call as a
26630         possible interpretation of the dereference.
26631
26632         * sem_ch5.adb (Process_Bounds): Determine type of range by
26633         pre-analyzing a copy of the original range, and then analyze the range
26634         with the expected type.
26635
26636         * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
26637         with an overloaded prefix where not all interpretations yield an
26638         access to subprogram, do not rewrite node as a call.
26639         (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
26640         the node as a call once the context identifies the interpretation of
26641         the prefix whose call yields the context type.
26642         (Valid_Conversion): For the case of a conversion between
26643         local access-to-subprogram types, check subtype conformance using
26644         Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
26645         detailed error message.
26646
26647 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
26648
26649         * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
26650         indicator, indicate that the formal can never be null.
26651         (Process_Formals): If a formal has a non_null indicator, insert the
26652         resulting subtype immediately before the enclosing subprogram decl,
26653         and not at the beginning of the corresponding declarative part, to
26654         prevent access before elaboration (Ada2005).
26655
26656 2005-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26657
26658         PR ada/19956
26659         * utils.c (finish_record_type): Use variable_size when setting sizes.
26660
26661 2005-03-29  Robert Dewar  <dewar@adacore.com>
26662
26663         * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
26664         guarantee Unix style line terminators for the output files, even when
26665         running on windows.
26666
26667 2005-03-29  Robert Dewar  <dewar@adacore.com>
26668
26669         * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
26670         buffer if an exception is raised.
26671
26672 2005-03-29  Ed Falis  <falis@adacore.com>
26673
26674         * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
26675         VxWorks 653 1.4
26676
26677 2005-03-29  Robert Dewar  <dewar@adacore.com>
26678
26679         * sem_util.ads: Minor reformatting
26680         * gnat_rm.texi: Minor editing.
26681
26682 2005-03-29  Eric Botcazou  <ebotcazou@adacore.com>
26683
26684         * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
26685         * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
26686
26687 2005-03-24  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
26688
26689         * adaint.c (__gnat_portable_spawn): Adjust cast.
26690
26691 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
26692
26693         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
26694
26695 2005-03-17  Pascal Obry  <obry@adacore.com>
26696
26697         * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
26698         used.
26699
26700         * expect.c (__gnat_waitpid): Moved here from adaint.c.
26701         Reimplement under Win32 using Win32 API.
26702
26703         (__gnat_kill) [Win32]: Properly close the process handle before leaving
26704         this routine.
26705
26706 2005-03-17  Eric Botcazou  <ebotcazou@adacore.com>
26707
26708         * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
26709         (DECL_RENAMED_OBJECT): New accessor macro.
26710         (SET_DECL_RENAMED_OBJECT): New setter macro.
26711
26712         * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
26713         object in all cases.  Attach the renamed object to the VAR_DECL.
26714         (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
26715         field is not prescribed.
26716
26717         * misc.c (gnat_handle_option): Handle -gnatO separately.
26718         (gnat_print_decl) <VAR_DECL>: New case.
26719         Print the DECL_RENAMED_OBJECT node.
26720
26721         * lang.opt:  Declare separate -gnatO option.
26722
26723         * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
26724         pointer, replace it with the renamed object.
26725         <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
26726         pointer type if the source is not a fat pointer type whose underlying
26727         array has the same non-zero alias set as that of the destination array.
26728
26729 2005-03-17  Javier Miranda  <miranda@adacore.com>
26730
26731         * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
26732         (Get_Inheritance_Depth): Removed.
26733         (Set_Inheritance_Depth): Removed.
26734
26735         * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
26736         subprogram Get_Expanded_Name because it is not referenced by the
26737         frontend.
26738
26739         * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
26740         (CPP_Get_Inheritance_Depth): Removed.
26741         (CPP_Set_Inheritance_Depth): Removed.
26742
26743         * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
26744
26745 2005-03-17  Robert Dewar  <dewar@adacore.com>
26746
26747         * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
26748         3, since we now expect GCC 3 to do all the work.
26749
26750 2005-03-17  Javier Miranda  <miranda@adacore.com>
26751
26752         * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
26753         of one barrier to avoid wrong usage of this attribute.
26754
26755         * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
26756         First_Private_Entity.
26757
26758         * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
26759         the subprogram against wrong usage.
26760         Adapt the code to traverse the entities in the
26761         scope of a record_type because in addition to its usage regarding
26762         packages, this subprogram is also called by Expand_N_Freeze_Entity
26763         to install the visible declarations of the enclosing scope of a
26764         record_type_with_private to establish the proper visibility before
26765         freezing the entity and related subprograms.
26766
26767 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
26768
26769         * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
26770         entry formals.
26771
26772 2005-03-17  Thomas Quinot  <quinot@adacore.com>
26773
26774         * exp_ch3.adb (Check_Attr): New subprogram.
26775         (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
26776         into a new Check_Attr subprogram, in order to provide a more
26777         explanatory error message (including the name of the missing attribute).
26778         (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
26779         subprogram determines whether a default implementation exists for a
26780         given stream attribute.
26781         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
26782         Determine whether to generate a default implementation for each stream
26783         attribute separately, as this depends on the specific attribute.
26784
26785         * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
26786         limited extension where a stream attribute is missing for a limited
26787         component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
26788         generate a bogus reference to the missing attribute to prevent
26789         cascaded errors. Instead, generate a null statement.
26790
26791         * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
26792         available for a limited type if it has been specified for an ancestor
26793         of the type.
26794
26795 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
26796
26797         * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
26798         entity is an operator.
26799
26800 2005-03-17  Thomas Quinot  <quinot@adacore.com>
26801
26802         * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
26803         spec, to make this predicate available to other units.
26804
26805         * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
26806         reimplementing it.
26807
26808         * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
26809         when no distribution runtime library is available.
26810
26811         * sem_res.adb, sem_dist.adb: Disable expansion of remote
26812         access-to-subprogram types when no distribution runtime library is
26813         available.
26814         (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
26815         predicate available to other units.
26816
26817         * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
26818         spec, to make this predicate available to other units.
26819
26820 2005-03-17  Vincent Celier  <celier@adacore.com>
26821
26822         * make.adb (Insert_Project_Sources): Make sure the Q is always
26823         initialized.
26824
26825         * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
26826         the default for the tree, not the global default naming.
26827
26828         * prj-proc.adb (Recursive_Process): No need to put the default naming
26829         in the project data, it's already there.
26830
26831 2005-03-17  Doug Rupp  <rupp@adacore.com>
26832
26833         * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
26834
26835         * 5xcrtl.ads: Renamed to...
26836         * s-crtl-vms64.ads: ...this new file
26837
26838 2005-03-17  Robert Dewar  <dewar@adacore.com>
26839
26840         PR ada/19519
26841         * namet.adb (Copy_One_Character): Set proper wide character encoding
26842         for upper half character if we have upper half encoding.
26843
26844 2005-03-17  Robert Dewar  <dewar@adacore.com>
26845
26846         * par.adb (Par): Improved msg for attempt to recompile predefined unit
26847
26848 2005-03-17  Thomas Quinot  <quinot@adacore.com>
26849
26850         * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
26851         tagged limited type, the TSS is a newly built renaming declaration:
26852         insert it using Set_TSS, not Copy_TSS.
26853
26854 2005-03-17  Javier Miranda  <miranda@adacore.com>
26855
26856         * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
26857         Try_Object_Operation): Analyze the object that is accessible
26858         through the prefix of the subprogram call before we apply
26859         the transformation of the object-operation notation.
26860
26861 2005-03-17  Jose Ruiz  <ruiz@adacore.com>
26862
26863         * s-taprob.adb (Initialize_Protection): Initialize the protected
26864         object's owner to Null_Task.
26865         (Lock): If pragma Detect_Blocking is in effect and the caller of this
26866         procedure is already the protected object's owner then Program_Error
26867         is raised. In addition the protected object's owner is updated.
26868         (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
26869         of this procedure is already the protected object's owner then
26870         Program_Error is raised.
26871         In addition the protected object's owner is updated.
26872         (Unlock): Remove the ownership of the protected object.
26873
26874         * s-taprob.ads (Protection): Add the field Owner, used to store the
26875         protected object's owner.
26876         This component is needed for detecting one type of potentially blocking
26877         operations (external calls on a protected subprogram with the same
26878         target object as that of the protected action). Document the rest of
26879         the components.
26880
26881         * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
26882         Initialize the protected object's owner to Null_Task.
26883         (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
26884         caller of this procedure is already the protected object's owner then
26885         Program_Error is raised.
26886         Do not raise Program_Error when this procedure is called from a
26887         protected action.
26888         (Unlock_Entries): Remove the ownership of the protected object.
26889         (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
26890         of this procedure is already the protected object's owner then
26891         Program_Error is raised.
26892         Do not raise Program_Error when this procedure is called from
26893         a protected action.
26894
26895         * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
26896         used to store the protected object's owner.
26897
26898         * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
26899         effect and this procedure (a potentially blocking operation) is called
26900         from whithin a protected action, Program_Error is raised.
26901         (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
26902         and this procedure (a potentially blocking operation) is called from
26903         whithin a protected action, Program_Error is raised.
26904
26905 2005-03-17  Vincent Celier  <celier@adacore.com>
26906             Nicolas Setton  <setton@adacore.com>
26907
26908         * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
26909         switch, not supported by the linker on Darwin. Add '_' before
26910         <library>init, as this character is added unconditionally by the
26911         compiler.
26912         (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
26913         correct one ".dylib". This fixes detection of the archive files when
26914         building library projects.
26915
26916 2005-03-17  Vincent Celier  <celier@adacore.com>
26917
26918         * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
26919         -gnat83, -gnat95 and -gnat05.
26920
26921 2005-03-17  Vasiliy Fofanov  <fofanov@adacore.com>
26922
26923         * gnat_ugn.texi: Document gnatmem restriction
26924
26925 2005-03-17  Thomas Quinot  <quinot@adacore.com>
26926
26927         * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
26928         cleanup
26929
26930 2005-03-17  Robert Dewar  <dewar@adacore.com>
26931
26932         * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
26933         a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
26934         s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
26935
26936         * casing.adb: Comment improvements
26937
26938 2005-03-17  Pascal Obry  <obry@adacore.com>
26939
26940         * g-expect.adb: Minor reformatting.
26941
26942 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
26943
26944         * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
26945         (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
26946         to dependencies.
26947
26948 2005-03-15  Vincent Celier  <celier@adacore.com>
26949
26950         * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
26951         Add new parameter In_Tree to specify the project tree: needed
26952         by the project manager. Adapt to changes in project manager
26953         using new parameter In_Tree.
26954
26955 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
26956
26957         * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
26958         ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
26959         ada/bldtools to avoid make -jN failures.
26960
26961 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
26962
26963         * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
26964         to NULL_TREE on entry.
26965
26966 2005-03-15  Robert Dewar  <dewar@adacore.com>
26967
26968         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
26969         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
26970         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
26971         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
26972         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
26973         system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
26974         system-interix.ads, system-solaris-sparc.ads,
26975         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
26976         system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
26977         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
26978         system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
26979         system-linux-s390.ads, system-linux-s390x.ads: Add line defining
26980         Compiler_System_Version to be False.
26981
26982         * opt.ads: Add new flag Opt.Address_Is_Private
26983
26984         * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
26985         Add new parameter Compiler_System_Version to avoid checking for
26986         completeness of parameters when compiler is compiling itself.
26987         Allows old versions of GNAT to be compiled with new compiler.
26988
26989 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
26990
26991         * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
26992         (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
26993         calling thread.
26994         (Stack_Base_Available): New flag.
26995         (Get_Page_Size): New overloaded functions imported from C.
26996         (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
26997         PROT_ON, PROT_OFF): New constants.
26998         (mprotect): New function imported from C.
26999         (pthread_teb_t): New record type.
27000
27001         * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
27002         (Create_Task): Account for the Yellow Zone and the guard page.
27003
27004 2005-03-15  Vincent Celier  <celier@adacore.com>
27005
27006         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27007         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27008         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
27009         mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
27010         Library_File_Name_For): Add new parameter In_Tree
27011         to specify the project tree: needed by the project manager.
27012         Adapt to changes in project manager using new parameter In_Tree.
27013         Remove local imports, use functions in System.CRTL.
27014
27015         * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
27016         to use the project manager.
27017
27018         * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
27019         In_Tree to designate the project tree. Adapt to changes in the project
27020         manager, using In_Tree.
27021
27022         * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
27023         Copy_Interface_Sources): Add new parameter In_Tree to specify the
27024         project tree: needed by the project manager.
27025         (Build_Library): Check that Arg'Length >= 6 before checking if it
27026         contains "--RTS=...".
27027
27028         * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
27029         Library_File_Name_For): Add new parameter In_Tree to specify the
27030         project tree: needed by the project manager.
27031
27032         * prj.ads, prj.adb: Major modifications to allow several project trees
27033         in memory at the same time.
27034         Change tables to dynamic tables and hash tables to dynamic hash
27035         tables. Move tables and hash tables from Prj.Com (in the visible part)
27036         and Prj.Env (in the private part). Move some constants from the visible
27037         part to the private part. Make other constants deferred.
27038         (Project_Empty): Make it a variable, not a function
27039         (Empty_Project): Add parameter Tree. Returns the data with the default
27040         naming data of the project tree Tree.
27041         (Initialize): After updating Std_Naming_Data, copy its value to the
27042         component Naming of Project Empty.
27043         (Register_Default_Naming_Scheme): Use and update the default naming
27044         component of the project tree, instead of the global variable
27045         Std_Naming_Data.
27046         (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
27047         Tree is not defaulted, return the default naming data of the Tree.
27048         (Initial_Buffer_Size): Constant moved from private part
27049         (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
27050         variables initialized in procedure Initialize.
27051         (Add_To_Buffer): Add two in out parameters to replace global variables
27052         Buffer and Buffer_Last.
27053         (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
27054         functions.
27055         Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
27056         hash tables.
27057         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
27058         for the project tree.
27059         (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
27060         constant at the beginning of the package spec, so that they cane be used
27061         in subprograms before their full declarations.
27062         (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
27063         (Empty_Project): Add parameter of type Project_Node_Ref
27064         (Private_Project_Tree_Data): Add component Default_Naming of type
27065         Naming_Data.
27066         (Buffer, Buffer_Last): remove global variables
27067         (Add_To_Buffer): Add two in out parameters to replace global variables
27068         Buffer and Buffer_Last.
27069         (Current_Packages_To_Check): Remove global variable
27070         (Empty_Name): Move to private part
27071         (No-Symbols): Make it a constant
27072         (Private_Project_Tree_Data): New type for the private part of the
27073         project tree data.
27074         (Project_Tree_Data): New type for the data of a project tree
27075         (Project_Tree_Ref): New type to designate a project tree
27076         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
27077         for the project tree.
27078
27079         * prj-attr.ads: Add with Table; needed, as package Prj no longer
27080         imports package Table.
27081
27082         * prj-com.adb: Remove empty, no longer needed body
27083
27084         * prj-com.ads: Move most of the content of this package to package Prj.
27085
27086         * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
27087         designate the project node tree and Packages_To_Check to replace
27088         global variable Current_Packages_To_Check.
27089         Add new parameters In_Tree and Packages_To_Check to local subprograms,
27090         when needed. Adapt to changes in project manager with project node tree
27091         In_Tree.
27092
27093         * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
27094         project tree to most subprograms. Move tables and hash tables to
27095         private part of package Prj.
27096         Adapt to changes in project manager using project tree In_Tree.
27097
27098         * prj-makr.adb (Tree): New constant to designate the project node tree
27099         Adapt to change in project manager using project node tree Tree
27100
27101         * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
27102         display the Library_Src_Dir and the Library_Dir.
27103         Add new parameter In_Tree to designate the project node tree to most
27104         subprograms. Adapt to changes in the project manager, using project tree
27105         In_Tree.
27106         (Check_Naming_Scheme): Do not alter the casing on platforms where
27107         the casing of file names is not significant.
27108         (Check): Add new parameter In_Tree to designate the
27109
27110         * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
27111         designate the project tree.
27112         Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
27113
27114         * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
27115         to replace those that were in the private part of package Prj.
27116         Add new parameter In__Tree to designate the project node tree to most
27117         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
27118         (Post_Parse_Context_Clause): When specifying the project node of a with
27119         clause, indicate that it is a limited with only if there is "limited"
27120         in the with clause, not necessarily when In_Limited is True.
27121         (Parse): Add new parameter In_Tree to designate the project node tree
27122
27123         * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
27124         designate the project node tree. Adapt to change in Prj.Tree with
27125         project node tree In_Tree.
27126
27127         * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
27128         tree In_Tree in the call to function Empty_Process to give its initial
27129         value to the project data Processed_Data.
27130         Add new parameters In_Tree to designate the project tree and
27131         From_Project_Node_Tree to designate the project node tree to several
27132         subprograms. Adapt to change in project manager with project tree
27133         In_Tree and project node tree From_Project_Node_Tree.
27134
27135         * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
27136         to replace those that were in the private part of package Prj.
27137         Add new parameter In_Tree to designate the project node tree to most
27138         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
27139
27140         * prj-tree.ads, prj-tree.adb: Add new parameter of type
27141         Project_Node_Tree_Ref to most subprograms.
27142         Use this new parameter to store project nodes in the designated project
27143         node tree.
27144         (Project_Node_Tree_Ref): New type to designate a project node tree
27145         (Tree_Private_Part): Change table to dynamic table and hash tables to
27146         dynamic hash tables.
27147
27148         * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
27149         the project tree to most subprograms. Adapt to changes in project
27150         manager using project tree In_Tree.
27151
27152         * makegpr.adb (Project_Tree): New constant needed to use project
27153         manager.
27154
27155 2005-03-15  Olivier Hainque  <hainque@adacore.com>
27156
27157         * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
27158         for sigactions with SA_SIGINFO set. Call
27159         __gnat_adjust_context_for_raise before raising, to perform the
27160         potentially required adjustments to the machine context for the GCC
27161         unwinder.
27162
27163         * raise.h (__gnat_adjust_context_for_raise): New prototype.
27164
27165         * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
27166         Adjust PC by one in the provided machine context.
27167         (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
27168         so that the handler is passed the context structure to adjust prior to
27169         the raise.
27170         (__gnat_error_handler) HPUX: Adjust the signature to match what an
27171         SA_SIGINFO sigaction should look like. Call
27172         __gnat_adjust_context_for_raise before actually raising.
27173         (__gnat_adjust_context_for_raise): Default noop to help PC
27174         adjustments before raise from signal handlers.
27175         (__gnat_error_handler): Indirectly call a predicate function to
27176         determine if a condition should be resignaled or not.
27177         (__gnat_set_resignal_predicate): User interface to modify the predicate.
27178         (__gnat_default_resignal_p): Default GNAT predicate.
27179
27180 2005-03-15  Doug Rupp  <rupp@adacore.com>
27181
27182         * adaint.c: Prefix #include of VMS system header files with vms/
27183         [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
27184         Do not define a dummy function "convert_addresses" under Darwin,
27185         not needed.
27186
27187         * tb-alvms.c, expect.c: Prefix #include of VMS system header files
27188         with vms/
27189
27190 2005-03-15  Nicolas Setton  <setton@adacore.com>
27191
27192         * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
27193         PPC/AIX.
27194
27195 2005-03-15  Robert Dewar  <dewar@adacore.com>
27196
27197         * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
27198         AI-386.
27199
27200         * a-retide.ads: Minor comment changes
27201
27202 2005-03-15  Robert Dewar  <dewar@adacore.com>
27203
27204         * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
27205         a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
27206         Realloc_For_Chunk to private part of package.
27207         New subprograms for AI-301
27208
27209         * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
27210         Get_Line procedure.
27211         Avoid unnecessary use of Get/Set_Wide_String
27212
27213 2005-03-15  Robert Dewar  <dewar@adacore.com>
27214
27215         PR ada/13470
27216         * a-stunau.ads, a-stunau.adb:
27217         Change interface to allow efficient (and correct) implementation
27218         The previous changes to allow extra space in unbounded strings had
27219         left this interface a bit broken.
27220
27221         * a-suteio.adb: Avoid unnecessary use of Get/Set_String
27222
27223         * g-spipat.ads, g-spipat.adb: New interface for Get_String
27224         Minor reformatting (function specs)
27225
27226         * g-spitbo.adb: New interface for Get_String
27227
27228         * g-spitbo.ads: Minor reformatting
27229
27230         * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
27231
27232         * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
27233
27234 2005-03-15  Javier Miranda  <miranda@adacore.com>
27235             Robert Dewar  <dewar@adacore.com>
27236             Thomas Quinot  <quinot@adacore.com>
27237             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27238
27239         * atree.ads, atree.adb: Add support for Elist24 field
27240
27241         * atree.h: Fix wrong definition of Field27
27242         Add support for Elist16 field
27243         Add support for Elist24 field
27244
27245         * einfo.ads, einfo.adb (Abstract_Interfaces,
27246         Set_Abstract_Interfaces): New subprograms.
27247         (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
27248         subprograms.
27249         (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
27250         entities rather than a single node.
27251         (Is_Interface, Set_Is_Interface): New subprogram
27252         (First_Tag_Component): New syntesized attribute
27253         (Next_Tag_Component): New synthesized attribute
27254         (Write_Entity_Flags): Upgraded to write Is_Interface
27255         (Write_Field24_Name): Upgraded to write Abstract_Interfaces
27256         (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
27257         (Task_Body_Procedure): New subprogram to read this attribute.
27258         (Set_Task_Body_Procedure): New subprogram to set this attribute.
27259         (Has_Controlled_Component): Now applies to all entities.
27260         This is only a documentation change, since it always worked to apply
27261         this to other than composite types (yielding false), but now this is
27262         official.
27263         Update documentation on Must_Be_Byte_Aligned for new spec
27264
27265         * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
27266         exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
27267         uses of the Access_Disp_Table attribute to reference the first dispatch
27268         table associated with a tagged type. As
27269         part of the implementation of abstract interface types,
27270         Access_Disp_Table has been redefined to contain a list of dispatch
27271         tables (rather than a single dispatch table).
27272         Similarly, upgrade all the references to Tag_Component by the
27273         new attribute First_Tag_Component.
27274         (Find_Inherited_TSS): Moved to exp_tss.
27275         Clean up test in Expand_N_Object_Declaration for cases
27276         where we need to do a separate assignment of the initial value.
27277         (Expand_N_Object_Declaration): If the expression in the
27278         declaration of a tagged type is an aggregate, no need to generate an
27279         additional tag assignment.
27280         (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
27281         is to be deleted.
27282         Bit packed array ops are only called if operands are known to be
27283         aligned.
27284         (Component_Equality): When returning an N_Raise_Program_Error statement,
27285         ensure that its Etype is set to Empty to avoid confusing GIGI (which
27286         expects that only expressions have a bona fide type).
27287         (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
27288         determine the amount of data to be copied.
27289
27290         * par.adb (P_Interface_Type_Definition): New subprogram that parses the
27291         new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
27292             INTERFACE_TYPE_DEFINITION ::=
27293               [limited | task | protected | synchronized] interface
27294                 [AND interface_list]
27295
27296         * par-ch3.adb (P_Type_Declaration): Modified to give support to
27297         interfaces.
27298         (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
27299         interfaces.
27300         (P_Interface_Type_Definition): New subprogram that parses the new
27301         syntax rule of Ada 2005 interfaces
27302         (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
27303         messages by the correct RENAMES (quotes removed).
27304
27305         * sem_prag.adb: Upgrade all the references to Tag_Component by the new
27306         attribute First_Tag_Component.
27307
27308         * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
27309         (Interface_List, Set_Interface_List): New subprograms.
27310         (Interface_Present, Set_Interface_Present): New subprograms.
27311         (Limited_Present, Set_Limited_Present): Available also in derived
27312         type definition nodes.
27313         (Protected_Present, Set_Protected_Present): Available also in
27314         record type definition and
27315         derived type definition nodes.
27316         (Synchronized_Present, Set_Synchronized_Present): New subprograms.
27317         (Task_Present, Set_Task_Present): New subprogram.
27318         (Task_Body_Procedure): Removed.
27319         (Set_Task_Body_Procedure): Removed.
27320         These subprogram have been removed because the attribute
27321         Task_Body_Procedure has been moved to the corresponding task type
27322         or task subtype entity to leave a field free to store the list
27323         of interfaces implemented by a task (for AI-345)
27324         Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
27325         (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
27326         expression flag Do_Range_Check
27327         (Exception_Junk): Change to Flag7 to accomodate above change
27328         (Box_Present, Default_Name, Specification, Set_Box_Present,
27329         Set_Default_Name, Set_Specification): Expand the expression
27330         "X in N_Formal_Subprogram_Declaration" into the corresponding
27331         two comparisons. Required to use the csinfo tool.
27332
27333         * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
27334         "with string" given.
27335
27336         * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
27337         expression given.
27338
27339         * par-ch11.adb (P_Raise_Statement): Recognize with string expression
27340         in 2005 mode
27341
27342         * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
27343         attribute Task_Body_Procedure rather than the old semantic field that
27344         was available in the task_type_declaration node.
27345
27346         * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
27347         interface type definitions.
27348         (P_Formal_Derived_Type_Definition): Modified to handle the list of
27349         interfaces.
27350
27351         * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
27352         task type declaration.
27353         (P_Protected): Modified to handle the list of interfaces in a
27354         protected type declaration.
27355
27356 2005-03-15  Doug Rupp  <rupp@adacore.com>
27357             Vincent Celier  <celier@adacore.com>
27358
27359         * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
27360         (Gen_Output_File_C): Likewise.
27361         (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
27362
27363 2005-03-15  Thomas Quinot  <quinot@adacore.com>
27364
27365         * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
27366         is an N_Raise_Constraint_Error node, create a new copy of it without
27367         going through a call to Duplicate_Subexpr.
27368
27369 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
27370             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27371             Nicolas Setton  <setton@adacore.com>
27372             Ed Schonberg  <schonberg@adacore.com>
27373
27374         PR ada/19900
27375         PR ada/19408
27376         PR ada/19140
27377         PR ada/20255
27378         * decl.c (gnat_to_gnu_field): Reject aliased components with a
27379         representation clause that prescribes a size not equal to the rounded
27380         size of their types.
27381         (gnat_to_gnu_entity, case E_Component): Always look at
27382         Original_Record_Component if Present and not the entity.
27383         (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
27384         of tagged extension types by not making field for components that are
27385         inside the parent.
27386         (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
27387         (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
27388         expression to the type of the object when the object is constant.
27389         Reverse defer_debug_incomplete_list before traversing it, so that trees
27390         are processed in the order at which they were added to the list. This
27391         order is important when using the stabs debug format.
27392         If we are deferring the output of debug information, also defer this
27393         output for a function return type.
27394         When adding fields to a record, prevent emitting debug information
27395         for incomplete records, emit the information only when the record is
27396         complete.
27397         (components_to_record): New parameter defer_debug.
27398         (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
27399         (gnat_to_gnu_field_decl): New function.
27400         (substitution_list, annotate_rep): Call it.
27401         (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
27402         (gnat_to_gnu_entity, case E_Record_Type): Likewise.
27403         No longer update discriminants to not be a COMPONENT_REF.
27404         (copy_alias_set): Strip padding from input type; also handle
27405         unconstrained arrays properly.
27406
27407         * gigi.h (write_record_type_debug_info): New function.
27408         Convert to use ANSI-style prototypes. Remove unused
27409         declarations for emit_stack_check, elab_all_gnat and
27410         set_second_error_entity.
27411         (gnat_to_gnu_field_decl): New decl.
27412
27413         * utils.c (write_record_type_debug_info): New function.
27414         (finish_record_type): Delegate generation of debug information to
27415         write_record_type_debug_info.
27416         (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
27417         (update_pointer_to): Fix pasto.
27418         (convert) <UNION_TYPE>: Accept slight type variations when
27419         converting to an unchecked union type.
27420
27421         * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
27422         replace the N_Freeze_Entity with a null statement.
27423
27424         * freeze.adb (Freeze_Expression): If the freeze nodes are generated
27425         within a constrained subcomponent of an enclosing record, place the
27426         freeze nodes in the scope stack entry for the enclosing record.
27427         (Undelay_Type): New Subprogram.
27428         (Set_Small_Size): Pass T, the type to modify; all callers changed.
27429         (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
27430         within records; allow them to have freeze nodes if their base types
27431         aren't frozen yet.
27432
27433         * exp_util.adb (Remove_Side_Effects): Properly test for
27434         Expansion_Delayed and handle case when it's inside an
27435         N_Qualified_Expression.
27436
27437         * sem_ch3.adb (Derived_Type_Declaration): New predicate
27438         Comes_From_Generic, to recognize accurately that the parent type in a
27439         derived type declaration can be traced back to a formal type, because
27440         it is one or is derived from one, or because its completion is derived
27441         from one.
27442         (Constrain_Component_Type): If component comes from source and has no
27443         explicit constraint, no need to constrain in in a subtype of the
27444         enclosing record.
27445         (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
27446         Minor change to propagate Is_Ada_2005 flag
27447
27448         * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
27449         Expansion_Delayed is False.
27450         (assoc_to_constructor): Ignore fields that have a
27451         Corresponding_Discriminant.
27452         (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
27453         function returns "by target", dereference the target pointer using the
27454         type of the actual return value.
27455         <all>: Be prepared for a null gnu_result.
27456         (processed_inline_subprograms): Check flag_really_no_inline
27457         instead of flag_no_inline.
27458         (set_second_error_entity): Remove unused function.
27459         (gnat_to_gnu, case N_Selected_Component): Call
27460         gnat_to_gnu_field_decl.
27461         (assoc_to_constructor): Likewise.
27462
27463 2005-03-15  Robert Dewar  <dewar@adacore.com>
27464             Ed Schonberg  <schonberg@adacore.com>
27465             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27466
27467         * exp_pakd.adb (Create_Packed_Array_Type): Do not set
27468         Must_Be_Byte_Aligned for cases where we do not need to use a
27469         System.Pack_nn unit.
27470
27471         * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
27472         as procedures.
27473         Needed now that we do some processing for IN parameters as well. This
27474         may well fix some unrelated errors.
27475         (Expand_Call): Handle case of unaligned objects (in particular those
27476         that come from packed arrays).
27477         (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
27478         renamed entity is an inherited operation, re-expand the call using the
27479         original operation, which is the one to call.
27480         Detect attempt to inline parameterless recursive subprogram.
27481         (Represented_As_Scalar): Fix to work properly with private types
27482         (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
27483         accurate estimate. Yields True in far fewer cases than before,
27484         improving the quality of code that depends on this test.
27485
27486         * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
27487         over both visible and private declarations to remove them from tree,
27488         and mark subprograms declared in package as eliminated, to prevent
27489         spurious use in subsequent compilation of generic units in the context.
27490
27491         * exp_util.ads: Minor cleanup in variable names
27492
27493         * sem_eval.ads, sem_eval.adb: Minor reformatting
27494         (Compile_Time_Known_Bounds): New function
27495
27496 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27497
27498         * exp_ch7.adb (Convert_View): Use base types of underlying types when
27499         determining whether an unchecked conversion is needed for the argument
27500         of an initialization call.
27501
27502 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27503
27504         * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
27505         that appears in the instantiation rather than the internal subtype
27506         generated in the wrapper package, to avoid anomalies in gigi when the
27507         target is derived from a private type whose full view is an access type.
27508
27509 2005-03-15  Robert Dewar  <dewar@adacore.com>
27510
27511         * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
27512         not needed.
27513         Add documentation to replace the use of this flag
27514         Fix kludge for Maximum_Alignment on x86 so that it does not apply to
27515         the x86_64.
27516
27517 2005-03-15  Thomas Quinot  <quinot@adacore.com>
27518
27519         * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
27520         here from exp_attr so it can be shared between exp_attr and exp_dist.
27521         (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
27522         all TSS names, not a subset thereof, and the previous name introduced
27523         an unnecessarily confusion that a distinction might exist between
27524         "OK" TSS names and some "not OK" TSS names.
27525
27526 2005-03-15  Doug Rupp  <rupp@adacore.com>
27527
27528         * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
27529         Command_Name.
27530
27531 2005-03-15  Pascal Obry  <obry@adacore.com>
27532             Eric Botcazou  <ebotcazou@adacore.com>
27533
27534         PR ada/20226
27535         PR ada/20344
27536         * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
27537         when IN_RTS. This is to work around a bootstrap path problem.
27538
27539         * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
27540         table and pass it to __gnat_install_SEH_handler().
27541         (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
27542
27543         * lang.opt: Fix specification of -fRTS=.
27544
27545 2005-03-15  Doug Rupp  <rupp@adacore.com>
27546             Bernard Banner  <banner@adacore.com>
27547             Vincent Celier  <celier@adacore.com>
27548             Arnaud Charlet  <charlet@adacore.com>
27549
27550         PR ada/6852
27551         This change works fine when gnatlib is built from the gcc directory,
27552         but does not work when using the libada Makefile, since GCC_FOR_TARGET
27553         is not passed to ada/Makefile.in, so more work is needed by a
27554         Makefile/configure expert.
27555
27556         * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
27557         set GMEM_LIB on ia64 linux to add optional support for gnatmem.
27558         Setup gnatlink switch -M for x86_64 linux, as it is already setup
27559         for Linux x86.
27560         (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
27561         Run ranlib on libgccprefix.a
27562         Define PREFIX_OBJS for Darwin, to build libgccprefix.
27563         (ADA_INCLUDE_SRCS): Split Ada packages.
27564
27565 2005-03-15  Robert Dewar  <dewar@adacore.com>
27566
27567         * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
27568
27569         * impunit.adb: Add GNAT.UTF_32
27570
27571         * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
27572
27573         * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
27574         now uses GNAT.UTF_32).
27575
27576         * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
27577         capabilities for categorizing characters using Unicode categories
27578
27579 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27580
27581         * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
27582         instantiation that has been rewritten as a package body, retrieve spec
27583         to generate proper name for implicit_with_clause.
27584         (Install_Parents): Recognize a parent that is an instantiation but has
27585         been rewritten as a package declaration during analysis.
27586
27587 2005-03-15  Javier Miranda  <miranda@adacore.com>
27588             Ed Schonberg  <schonberg@adacore.com>
27589
27590         * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
27591         parameter reported some error we immediately return. This improves the
27592         behaviour of the frontend in case of errors.
27593         (Install_Parent, Remove_Parent): Introduce new flag
27594         Parent_Unit_Visible, to preserve the proper visibility of the ultimate
27595         ancestor of a generic child unit, when the child is being instantiated.
27596         (Inline_Instance_Body): If we are compiling the private
27597         part or the body of a child unit, restore the proper visibility of the
27598         parents after compiling the instance body.
27599
27600 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27601             Javier Miranda  <miranda@adacore.com>
27602
27603         PR ada/15608
27604         * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
27605         of a private type, in which case it is underlying_type that denotes
27606         the proper task. Also modified to use the new entity attribute
27607         that is directly available in the task type and task subtype entities
27608         (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
27609         arrays when other dimensions than the first are constrained by
27610         discriminants of an enclosing record.
27611         (Insert_Explicit_Dereference): If the prefix is an indexed component or
27612         a combination of indexed and selected components, find ultimate entity
27613         and generate the appropriate reference for it, to suppress spurious
27614         warnings.
27615         (Note_Possible_Modification): If an entity name has no entity, return.
27616         (Is_Variable): A function call never denotes a variable.
27617         (Requires_Transient_Scope): For record types, recurse only on
27618         components, not on internal subtypes that may have been generated for
27619         constrained components.
27620
27621 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27622
27623         * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
27624         Eliminated as candidates for resolution. Both efficient, and avoids
27625         anomalies with operators declared in deleted code.
27626         (Process_Implicit_Dereference_Prefix): Use this procedure whenever
27627         expansion is disabled (as when compiling a generic) to prevent spurious
27628         warnings on prefixes of selected components.
27629
27630 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27631
27632         * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
27633         attached to a list before checking whether it appears in the private
27634         declarations of the current package.
27635         (Make_Inequality_Operator): Insert declaration in proper declarative
27636         list rather than just setting the Parent field, so that
27637         Is_Private_Declaration can handle it properly.
27638
27639 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27640
27641         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
27642         a renaming a body, check that the renamed subprogram in not intrinsic.
27643         (Find_Direct_Name): If several use_visible entities hide
27644         each other, and the context is a predefined file compiled through
27645         rtsfind, keep only the entity that comes from a predefined file.
27646
27647 2005-03-15  Geert Bosch  <bosch@adacore.com>
27648
27649         * s-fatgen.adb (Valid): Extend special exceptions to account for long
27650         long float padding to also cover AMD64 and IA64.
27651
27652 2005-03-15  Gary Dismukes  <dismukes@adacore.com>
27653
27654         * s-imgwch.adb: Add with and use of Interfaces.
27655         (Img_Wide_Character): Change type of Val to Unsigned_16.
27656         (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
27657
27658 2005-03-15  Matthew Gingell  <gingell@adacore.com>
27659
27660         * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
27661
27662 2005-03-15  Robert Dewar  <dewar@adacore.com>
27663
27664         * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
27665
27666         * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
27667
27668         * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
27669
27670 2005-03-15  Robert Dewar  <dewar@adacore.com>
27671
27672         * s-bitops.adb, s-bitops.ads,
27673         s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
27674         s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
27675         tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
27676         s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
27677         s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
27678         s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
27679         s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
27680         s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
27681         reformatting.
27682
27683 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
27684
27685         * utils2.c (build_binary_op): Fix typo.
27686
27687 2005-03-15  Doug Rupp  <rupp@adacore.com>
27688
27689         * s-crtl.ads (popen,pclose): New imports.
27690
27691 2005-03-15  Cyrille Comar  <comar@adacore.com>
27692
27693         * comperr.adb (Compiler_Abort): remove references to obsolete
27694         procedures in the bug boxes for various GNAT builds.
27695
27696 2005-03-15  Vincent Celier  <celier@adacore.com>
27697
27698         * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
27699
27700 2005-03-15  Geert Bosch  <bosch@adacore.com>
27701             Arnaud Charlet  <charlet@adacore.com>
27702             Robert Dewar  <dewar@adacore.com>
27703             Cyrille Comar  <comar@adacore.com>
27704             Sergey Rybin  <rybin@adacore.com>
27705
27706         * gnat_ugn.texi: Remove extended inline assembly example, as it was far
27707         too specific and long-winded to be appropriate for the GNAT User's
27708         Guide.
27709         Warn about use of GCC switches not documented in the GNAT User's Guide,
27710         as these may cause generated code to not conform to Ada semantics.
27711         Remove mention of -gdwarf-2 for sparc64, since this is now the default.
27712         Add documentation for -gnat95 and -gnat05 switches
27713         Remove paragraph documenting obsolete way to refer to third party
27714         libraries.
27715         Add a few references to Ada_05 that were missing.
27716         Update documentation on -gnatZ/-gnatL.
27717         Document limitation when using -m64 under Solaris.
27718         Change the "Name Casing" subsection of the pretty-printer section
27719         according to the changes in the dictionary processing.
27720
27721         * gnat_rm.texi: Document the Ada_05 pragma.
27722         Section on record representation clauses describes the new more
27723         relaxed rules about placement of large packed bit array components.
27724         Add documentation of GNAT.UTF_32
27725
27726 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
27727
27728         * misc.c (gnat_post_options): Turn off structural
27729         aliasing for now.
27730
27731 2005-03-08  Laurent Guerby  <laurent@guerby.net>
27732
27733         * system-linux-sparc.ads: Fix typo in previous commit.
27734
27735 2005-03-07  James A. Morrison  <phython@gcc.gnu.org>
27736             Laurent Guerby  <laurent@guerby.net>
27737
27738         PR ada/20035
27739         * system-linux-sparc.ads: New.
27740         * Makefile.in: Add sparc linux entry.
27741
27742 2005-02-27  Danny Smith  <dannysmith@users.sourceforge.net>
27743
27744         * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
27745         parameters as unused.
27746
27747 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
27748         Partial merge from libada-gnattools-branch:
27749
27750         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
27751         * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
27752         into code in gnattools/Makefile.in.  Remove direct dependencies on
27753         stamp-tools by tools clauses.
27754         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
27755         * config-lang.in: Add gnattools to $lang_dirs.
27756
27757 2005-02-13  Andrew Pinski  <pinskia@physics.uc.edu>
27758
27759         PR ada/19942
27760         * utils.c (gnat_type_for_mode): Return null instead of ICE because
27761         we asked for an unknown mode.
27762
27763 2005-02-12  Richard Henderson  <rth@redhat.com>
27764
27765         * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
27766         validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
27767
27768 2005-02-10  Andreas Jaeger  <aj@suse.de>
27769
27770         * init.c (__gnat_initialize): Mark parameter as unused.
27771
27772 2005-02-09  Doug Rupp  <rupp@adacore.com>
27773
27774         * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
27775         * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
27776
27777 2005-02-09  Doug Rupp  <rupp@adacore.com>
27778
27779         * gnatchop.adb (dup, dup2),
27780         g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
27781
27782         * gnatlbr.adb (mkdir),
27783         mlib-tgt-vms-ia64.adb (popen, plose):  Import with decc$ prefix.
27784
27785         * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
27786
27787 2005-02-09  Doug Rupp  <rupp@adacore.com>
27788
27789         * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
27790
27791 2005-02-09  Robert Dewar  <dewar@adacore.com>
27792             Thomas Quinot  <quinot@adacore.com>
27793             Javier Miranda  <miranda@adacore.com>
27794             Pascal Obry  <obry@adacore.com>
27795             Ed Schonberg  <schonberg@adacore.com>
27796             Doug Rupp  <rupp@adacore.com>
27797             Gary Dismukes  <dismukes@adacore.com>
27798             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27799
27800         * g-zstspl.ads: New file.
27801
27802         * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
27803
27804         * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
27805         Ada 95 mode
27806         Add definition of Wide_Wide_Space for AI-285
27807
27808         * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
27809         interface (to support Ada 95 and Ada 2005 units).
27810         Add Unbounded_IO files
27811         Add entries for Wide_Wide packages for AI-285
27812         Add list of containers packages to Ada 2005 unit list
27813
27814         * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
27815         support new Unbounded_IO package cleanly.
27816
27817         * g-utf_32.ads, g-utf_32.adb: New files.
27818
27819         * Makefile.rtl: Add entry for g-utf_32
27820         Add new files for Unbounded_IO
27821         Adjust make file for new AI-285 wide wide packages
27822         Add AI-302 containers to the run time.
27823
27824         * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
27825         a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
27826         subprograms for AI-301.
27827
27828         * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
27829
27830         * a-stunau.ads: Minor comment correction
27831
27832         * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
27833         etc.
27834         Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
27835         (Check_RPC): Update to match changes in expanded code.
27836         Clean up unused entity.
27837
27838         * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
27839         was not taken into account.
27840         This includes proper initialization with Normalize_Scalars.
27841         (Get_Simple_Init_Val): Major rewrite for initialize scalars and
27842         normalize scalars cases (particularly the latter) to do a better job
27843         of finding invalid representations.
27844
27845         * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
27846
27847         * s-strops.ads, s-strops.adb: Remove string normalize routines, never
27848         used
27849
27850         * exp_dist.adb: Add support for wide wide character type
27851         (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
27852         private part, generate stub bodies at the end of the private part,
27853         not the visible part.
27854         (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
27855         PolyORB support.
27856         (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
27857         generic wrapper to execute final processing after completing the
27858         expansion of the RPC receiver for an RACW.
27859
27860         * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
27861         packages and attributes.
27862         (Preset_Names): Addition of the new reserved words of Ada 2005,
27863         that is interface, overriding and synchronized.
27864         (Get_Pragma_Id): Give support to the use of the new reserved word
27865         "interface" as a pragma name.
27866         (Is_Pragma_Name): Give support to the use of the new reserved word
27867         "interface" as a pragma name.
27868         (Preset_Names): Add stream_size string for the Stream_Size Ada2005
27869         attribute implementation.
27870
27871         * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
27872         checks to entities that are output parameters of Asm operations.
27873         Handle the Stream_Size attribute.
27874         Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
27875
27876         * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
27877
27878         * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
27879         for second parameter being 0.0.
27880         Add support for wide wide character type.
27881         (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
27882
27883         * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
27884         s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
27885         s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
27886         s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
27887         for wide wide character cases.
27888
27889         * cstand.adb: Create entities for Wide_Wide_Character and
27890         Wide_Wide_String.
27891
27892         * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
27893         accordance with AI-258.
27894         Add new declarations for 16/32 bit C character types (Part of AI285)
27895
27896         * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
27897         (Obsolescent_Warning): New field
27898         (Rep_Clause): New local subprogram used to share code. Returns the rep
27899         clause for which the name is given in parameter.
27900         (Has_Stream_Size_Clause): New routine.
27901         (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
27902         (Address_Clause): Implementation is now using Rep_Clause.
27903         (Alignment_Clause): Idem.
27904         (Size_Clause): Idem.
27905
27906         * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
27907         entity in non-Ada 2005 mode and generate warning.
27908
27909         * par-prag.adb: Add handling of one argument form for pragma Ada_05.
27910         (Prag): Code cleanup. Remove old gnat pragma "overriding"
27911
27912         * sem_prag.adb: Add handling of one argument form for pragma Ada_05
27913         (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
27914         on the named unit if the pragma is not in the current compilation unit,
27915         so that elaboration calls in the current unit can set up an elaboration
27916         dependency on the named unit, as needed.
27917         (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
27918         subprogram as well as for subprograms declared within a package.
27919         (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
27920         pragma overriding.
27921
27922         * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
27923         to z) to avoid some instances of duplication for Wide_Wide packages.
27924
27925         * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
27926         characters.
27927
27928         * scn.adb: Char_Literal_Value field is now a Uint
27929
27930         * scng.adb: Significant rewrite to handle new Ada 2005 features
27931         allowing wide and wide wide characters in program text, e.g. for
27932         identifiers, as described in AI-285.
27933         (Set_Reserved): New procedure, makes setting up keywords cleaner.
27934         (Initialize_Scanner): Register the new reserved words of Ada 2005.
27935         (Scan): Give support to the new reserved words.
27936
27937         * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
27938         warning notifying that interface, overriding, and synchronized are
27939         new reserved words.
27940         (P_Pragma): Allow the use of the new reserved word "interface" as
27941         a pragma name.
27942
27943         * gnatls.adb, gnatbind.adb,
27944         ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
27945         identifiers named "interface" to "SAL_Interface".
27946
27947         * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
27948         (Structured Exception handling).
27949         (Gen_Main_C): Idem.
27950
27951         * bindgen.adb:
27952         (Gen_Main_Ada): Set the default exit code if specified.
27953         (Gen_Main_C): Likewise.
27954         Part of *DC20-006.
27955         (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
27956         Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
27957
27958         * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
27959         new -Xnnn switch.
27960
27961         * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
27962         has a collision with the new Ada 2005 "interface" reserved word.
27963
27964         * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
27965         generate a warning notifying that interface, overriding, and
27966         synchronized are new reserved words.
27967
27968         * scans.ads (Token_Type): Addition of the tokens corresponding to the
27969         new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
27970         and Tok_Synchronized.
27971
27972         * sem_res.adb (Resolve_Actuals): Change error messages to refer to
27973         "dispatching" rather than "primitive" operations, since dispatching
27974         calls are now allowed to abstract formal subprograms (which are not
27975         primitive).
27976         Char_Literal_Value field is now a Uint
27977         (Resolve_Slice): If the prefix is an access to an unconstrained array,
27978         compute the actual subtype of the designated object to impose the proper
27979         index constraints.
27980         (Resolve_Selected_Component): Do not insert an access check if the
27981         prefix is an access type: such a node is expanded into an explicit
27982         dereference, on which the access check is performed anyway. Removes
27983         expensive duplicate checks.
27984         (Resolve_Call): Use new flag Is_Obsolescent and field
27985         Obsolescent_Warning so that pragma Obsolescent works on library
27986         subprograms.
27987         Add support for wide wide character type
27988         (Resolve_Allocator): Replace the error message on wrong null-exclusion
27989         value by a warning message.
27990         (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
27991         as fixed-point, and one of the operands is non-static and universal, it
27992         can only be an illegal exponentiation operation, in which case there is
27993         no real value to retrieve.
27994
27995         * exp_strm.adb: Add support for wide wide character type
27996         (Build_Elementary_Input_Call): Compute the size of the stream element by
27997         querying the rep chain to find the Stream_Attribute attribute value.
27998         (Build_Elementary_Write_Call): Ditto.
27999
28000         * sem_aggr.adb: Char_Literal_Value field is now a Uint
28001         Add support for wide wide character type
28002         Replace the error messages on wrong null-exclusion value by warnings
28003         as described in Ada 2005.
28004         (Resolve_Extension_Aggregate): Document the fact that the error
28005         message on class-wide expressions in extensions aggregates.
28006
28007         * sem_case.adb: Add support for wide wide character type
28008
28009         * sem_ch13.adb: Add support for wide wide character type
28010         (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
28011
28012         * sem_ch3.adb: Add support for wide wide character type
28013         (Process_Subtype): If constraint is illegal for the type, set Ekind of
28014         now-useless Itype, to prevent cascaded errors on a compiler built
28015         without -gnatp.
28016
28017         * sem_ch8.adb: Add with and use of Sem_Disp.
28018         (Analyze_Subprogram_Renaming): Replace unclean uses of
28019         Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
28020         of Corresponding_Spec to Empty).
28021         (Attribute_Renaming): Replace use of Corresponding_Spec with
28022         Corresponding_ Formal_Spec and simplify condition.
28023         (Use_One_Package): Check that scope of homonym of identifier is defined,
28024         before checking whether it is a wrapper package.
28025         Add support for wide wide character type
28026
28027         * sem_eval.adb: Add support for wide wide character type.
28028         (Eval_Arithmetic_Op): Check for compile time known signed integer
28029         overflow in the non-static case.
28030         (Subtypes_Statically_Match): A formal scalar type and its base type do
28031         not statically match.
28032
28033         * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
28034         "not in" for test of N_Formal_Subprogram_Declaration (which is now a
28035         subtype).
28036         (Unit_Declaration_Node): Ditto.
28037         (Is_Variable_Prefix):  For the case of an indexed component whose prefix
28038         has a packed array type, the prefix has been rewritten into a type
28039         conversion. Determine variable-ness from the converted expression.
28040         Handle wide wide character cases.
28041
28042         * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
28043
28044         * stringt.ads, stringt.adb: Handle full UTF-32 range.
28045         Remove ["0A"] from comment, since it can look like a line terminator.
28046         Currently we don't permit this, but this is under discussion by the
28047         ARG, and it is easy enough to use a different example.
28048
28049         * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
28050         handling UTF-32 encoding for wide wide character.
28051         Implement new brackets coding ["hhhhhhhh"]
28052         Add UTF-8 encodings for full UTF-32 range
28053
28054         * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
28055
28056         * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
28057         bit range Add full UTF-32 support.
28058         (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
28059         notify that constraint error will be raised at run-time
28060         because a null value is assigned to a null-excluding object.
28061         Remove some obsolete declarations and make Char_Code
28062         unsigned.
28063
28064         * a-except.adb (Rcheck_30): New subprogram. Addition of the message
28065         corresponding to CE_Null_Not_Allowed, and adjust the output of all the
28066         Rcheck subprograms.
28067
28068         * checks.adb (Check_Null_Not_Allowed): Replace the error message on
28069         wrong null-exclusion value by a warning message.
28070         (Enable_Range_Check): Do range check if the prefix is an
28071         explicit dereference whose designated object is an unconstrained array.
28072         Current algorithm for removing duplicate checks is over-eager in this
28073         case.
28074
28075         * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
28076         null-exclusion value by a warning message
28077
28078         * atree.h, atree.ads, atree.adb: Remove Char_Code field support
28079         completely. Add support for Uint2 field
28080
28081         sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
28082         exp_prag.adb: Char_Literal_Value field is now a Uint.
28083
28084         * exp_util.adb (Insert_Actions): Replace
28085         N_Formal_Subprogram_Declaration by
28086         N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
28087         Char_Literal_Value field is now a Uint.
28088
28089         * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
28090         defined for subprogram renaming declarations. When set, the field
28091         indicates the defining entity of a corresponding formal subprogram
28092         when the renaming corresponds to a formal subprogram association in an
28093         instantiation.
28094         (Set_Corresponding_Formal_Spec): New procedure to return
28095         Corresponding_Formal_Spec field.
28096         Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
28097         (which is now a subtype).
28098         Char_Literal_Value field is now a Uint
28099
28100         * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
28101         pointer to the base of the dispatch table.
28102         Minor changes to comments.
28103         (Controlling_Type): New function for determining the tagged type
28104         associated with a tagged primitive subprogram.
28105         (Expand_Dispatching_Call): Add support for a controlling actual that is
28106         directly a value of type Ada.Tag rather than a tagged object.
28107
28108         * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
28109         describing the new layout.
28110         (Dispatch_Table): The expander computes the actual array size, allocates
28111         the Dispatch_Table record accordingly, and generates code that displaces
28112         the base of the record after the Typeinfo_Ptr component. The access to
28113         these components is done by means of local functions.
28114         (Offset_To_Top): New function.
28115         (Typeinfo_Ptr): New function.
28116         (Get_TSD): Modified to access the new position of the TSD.
28117         (Set_TSD): Modified to save the TSD in its new position.
28118
28119         * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
28120         case of formal abstract subprograms. Add check and message for -gnat05.
28121         Update comments.
28122
28123         * sem_ch12.adb: Add with and use for Sem_Disp.
28124         (Analyze_Associations): Minor change from "=" to "in" for use of
28125         N_Formal_Subtype_Declaration (which is now a subtype).
28126         (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
28127         N_Formal_Subtype_Declaration (which is now a subtype).
28128         (Analyze_Formal_Subprogram): Add handling for
28129         N_Formal_Abstract_Subprogram, marking the formal as abstract and
28130         dispatching, setting the controlling status of the formal parameters
28131         and result, and issuing an error if there is no controlling type for
28132         the formal subprogram.
28133         (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
28134         which is an unclean use of that field, we set the new field
28135         Corresponding_Formal_Spec to make the formal subprogram available to
28136         processing in Analyze_Subprogram_Declaration.
28137         (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
28138         Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
28139         Constrained, so that it is is does not statically match its anonymous
28140         base type.
28141
28142         * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
28143         abstract formal subprograms in error check for functions returning
28144         abstract types. Set scope of new designator for
28145         a parameterless subprogram, so that it is available when checking the
28146         body for nested subprograms, before full analysis of said body.
28147         (Analyze_Subprogram_Body): Warn on inlining bodies with nested
28148         subprogram only if inner one comes from source.
28149         (Analyze_Function_Call): If the call is given in object notation, the
28150         analysis of the name rewrites the node and analyzes it with the proper
28151         argument list. After analyzing the name, if the call has been rewritten
28152         and the result type is set, no further analysis is needed.
28153         (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
28154         mark in function specification, in a context where the formals are
28155         visible and hide outer homographs.
28156
28157         * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
28158         as the tagged type for the cases of abstract formal subprograms and
28159         renamings of those.  Clean up spec comments.
28160         (Check_Dispatching_Context): Add error message to indicate "abstract
28161         procedure", covering the case of a call to a formal abstract procedure
28162         that has statically tagged operands.
28163         (Check_Dispatching_Call): Check for the case of an actual given by
28164         a tag-indeterminate function call whose type is an ancestor of the
28165         containing call's associated tagged type. This situation can occur
28166         for inherited primitives with function defaults. In this case we
28167         use the tagged type's tag directly as the controlling argument for
28168         the calls.
28169         (Expand_Call): Name change on call to Expand_Dispatch_Call.
28170
28171         * sprint.adb (Sprint_Node_Actual): Split
28172         N_Formal_Subprogram_Declaration into two alternatives for the new
28173         cases N_Formal_Abstract_Subprogram_Declaration and
28174         N_Formal_Concrete_Subprogram_Declaration.
28175         Char_Literal_Value field is now a Uint.
28176
28177         * trans.c: Get rid of junk Uint2 reference.
28178         Char_Literal_Value field is now a Uint.
28179         (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
28180         (gigi): Correct third arg to gimplify_body.
28181
28182         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
28183         (TYPE_LANG_FLAG_0): Check for record or union.
28184
28185         * treepr.adb: Char_Literal_Value field is now a Uint
28186
28187         * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
28188         UI_From_CC.
28189
28190         * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
28191         Add full UTF-32 support
28192         Char_Code is now 32 bits
28193
28194         * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
28195         wide character UTF_32 line terminators.
28196         Initialize Main_Source_File to avoid error when no main
28197         source is loaded.
28198
28199         * errout.adb (Finalize): Do not check Num_SRef_Pragmas
28200         (Main_Source_File) when no main source has been loaded, to avoid
28201         potential crash.
28202
28203 2005-02-09  Robert Dewar  <dewar@adacore.com>
28204
28205         * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
28206         Fix name of Set routine
28207
28208         * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
28209         fixed packages.
28210
28211         * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
28212         a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
28213         fixed packages
28214
28215         * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
28216         forms of Get_Line subprograms for AI-301.
28217
28218         * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
28219         a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
28220         a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
28221         a-stwima.ads: Minor reformatting.
28222
28223 2005-02-09  Doug Rupp  <rupp@adacore.com>
28224             Thomas Quinot  <quinot@adacore.com>
28225
28226         * adaint.c, adaint.h
28227         [VMS] (to_ptr32): New function.
28228         (MAYBE_TO_PTR32): New macro.
28229         (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
28230         for pointer size.
28231         [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
28232         [VMS] (#define fork()): Remove since unneccessary.
28233         (__gnat_set_close_on_exec): New routine to support
28234         GNAT.OS_Lib.Set_Close_On_Exec.
28235
28236         * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
28237         the parent side as close-on-exec so that they are not inherited by the
28238         child.
28239
28240         * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
28241         set or clear the FD_CLOEXEC flag on a file descriptor.
28242
28243 2005-02-09  Eric Botcazou  <ebotcazou@adacore.com>
28244             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28245
28246         PR ada/19386
28247         * decl.c:
28248         (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
28249         on the field if Pragma Component_Alignment (Storage_Unit).
28250         (gnat_to_gnu_entity, case object): Do not treat a renaming that has
28251         side-effects as if it were a constant; also make SAVE_EXPR to protect
28252         side-effects.
28253         (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
28254         UNION_TYPE.
28255         (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
28256         (components_to_record): Test it.
28257         Fix improper usage of REFERENCE_CLASS_P.
28258
28259         * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
28260         RECORD_TYPE.
28261
28262         * utils2.c: Minor reformatting.
28263
28264         * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
28265         handle other cases like RECORD_TYPE.
28266
28267         * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
28268
28269 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
28270
28271         * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
28272         component of an array of arrays in an assignment context, and the
28273         aggregate has component associations that require sliding on
28274         assignment, force reanalysis of the aggregate to generate a temporary
28275         before the assignment.
28276         (Must_Slide): Make global to the package, for use in Gen_Assign.
28277
28278 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
28279
28280         * exp_ch4.adb (Expand_Composite_Equality): If a component is an
28281         unchecked union with no inferable discriminants, return a
28282         Raise_Program_Error node, rather than inserting it at the point the
28283         type is frozen.
28284         (Expand_Record_Equality, Component_Equality): Handle properly the case
28285         where some subcomponent is an unchecked union whose generated equality
28286         code raises program error.
28287
28288 2005-02-09  Doug Rupp  <rupp@adacore.com>
28289
28290         * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
28291         [VMS] (#define exit hack): Remove.
28292
28293 2005-02-09  Pascal Obry  <obry@adacore.com>
28294             Arnaud Charlet  <charlet@adacore.com>
28295
28296         * init.c (__gnat_initialize): Add a new parameter eh which contains the
28297         address of the exception registration. The Win32 version of this
28298         routine calls __gnat_install_SEH_handler() to initialize the SEH
28299         (Structured Exception Handling) handler.
28300         (__gnat_error_handler) [Win32]: Removed. Not needed as we use
28301         SEH (Structured Exception Handling) now.
28302         (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
28303         (__gnat_initialize for ppc-vxworks): Adjust comments and the
28304         preprocessor condition protecting the call to the extra eh setup
28305         subprogram, which is only available for the ppc target.
28306         (__gnat_clear_exception_count): replaced reference to
28307         variable taskIdCurrent by call to taskIdSelf(), cleaner.
28308
28309         * seh_init.c: New file.
28310
28311         * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
28312         (GNATBIND_OBJS): Idem.
28313
28314         * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
28315         routine takes a new parameter (a pointer to the exception registration
28316         for the SEH (Structured Exception Handling) support.
28317
28318         * raise.h: (__gnat_install_SEH_handler): New prototype.
28319         Update copyright notice.
28320
28321         * s-tassta.adb (Task_Wrapper): Declare the exception registration
28322         record and initialize it by calling __gnat_install_SEH_handler.
28323
28324 2005-02-09  Vincent Celier  <celier@adacore.com>
28325
28326         * make.adb (Gnatmake): Do not fail when the main project has no object
28327         directory.
28328
28329 2005-02-09  Doug Rupp  <rupp@adacore.com>
28330
28331         * Makefile.in [VMS] (LN,LN_S): Define as cp -p
28332         Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
28333         [VMS]: Add translations for g-enblsp.adb.
28334
28335         * s-asthan-vms.adb: Removed.
28336         * s-asthan-vms-alpha.adb: Added.
28337
28338 2005-02-09  Pascal Obry  <obry@adacore.com>
28339
28340         * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
28341         (LIBGNAT_OBJS): Add seh_init.o.
28342
28343 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28344
28345         PR ada/16592
28346         * Makefile.in: Link all gnat tools with -static-libgcc, since
28347         -shared-libgcc is now used by default on some systems (e.g. linux with
28348         recent binutils).
28349         Remove references to Makefile.prolog/generic, no longer used.
28350
28351 2005-02-09  Vincent Celier  <celier@adacore.com>
28352
28353         * prj-makr.adb (Process_Directory): Put file name in canonical case
28354         before matching against the patterns.
28355         If gnatname has been invoked as <prefix>-gnatname
28356         then invoke the compiler as <prefix>-gcc, not just "gcc".
28357
28358 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
28359
28360         * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
28361         with expansion disabled. The actual subtype is needed among other
28362         places when the selected component appears in the context of a loop
28363         bound, and denotes a packed array.
28364         (Operator_Check): Always use the first subtype in the
28365         error message, to avoid the appearance of internal base types.
28366         (Transform_Object_Operation): Copy each actual in full
28367         to the parameter associations of the constructed call, rather than
28368         using the shallow copy mechanism of New_Copy_List. This ensures that
28369         the chaining of named associations is done properly.
28370         (Complete_Object_Operation): Rewrite node, rather than
28371         replacing it, so that we can trace back to the original selected
28372         component.
28373
28374         * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
28375         and calls that use object notation, if the called function is not
28376         declared  in a withed unit, place the elaboration constraint on the
28377         unit in the context that makes the function accessible.
28378         (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
28379         imposes an elaboration constraint between two packages.
28380
28381 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
28382
28383         * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
28384         views of a private type after handling its private dependents, to
28385         maintain proper stack discipline between entry and exit from the
28386         package.
28387
28388 2005-02-09  Cyrille Comar  <comar@adacore.com>
28389
28390         * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
28391         Minor reformatting.
28392
28393 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28394
28395         * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
28396         fields for foreign threads.
28397
28398 2005-02-09  Doug Rupp  <rupp@adacore.com>
28399
28400         * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
28401         recursion warnings when compiled with -gnatdm.
28402
28403 2005-02-09  Robert Dewar  <dewar@adacore.com>
28404
28405         * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
28406         Slight fix to documentation of -gnaty with no parameters
28407
28408         * xr_tabls.ads: Add ??? comment for missing overall comment
28409
28410         * xsinfo.adb: Make default file name be sinfo.h, since this is what
28411         we now use by default.
28412
28413         * xsnames.adb: Adjust end of file test to look for five space followed
28414         by '#' instead of six spaces. The format of xsnames.adb was modified
28415         in the last update.
28416
28417         * a-numeri.ads: Add reference to AI-388 for greek letter pi
28418         identifier.
28419
28420         * clean.adb: Minor reformatting.
28421
28422         * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
28423         gnatname.adb: Minor reformatting
28424         Add 2005 to copyright output when utility is run
28425
28426         * csets.adb: Eliminate obsolete comment
28427
28428         * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
28429         Update comments.
28430
28431         * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
28432
28433 2005-02-09  Sergey Rybin  <rybin@adacore.com>
28434
28435         * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
28436         the difference between compact and incompact layout and add the record
28437         representation clause to the example illustrating different layouts.
28438         Add the description of '-A5' gnatpp option ("align 'AT' keywords in
28439         component clauses").
28440
28441 2005-02-09  Florian Villoing  <villoing@adacore.com>
28442
28443         * gnat_ugn.texi: Fix typos.
28444         Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
28445         @file.
28446         Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
28447         in the generated documentation.
28448
28449 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28450
28451         * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
28452         longer supported.
28453         Update linker wrapper when linking with non GNU C++.
28454
28455 2005-02-09  Pascal Obry  <obry@adacore.com>
28456
28457         * gnat_ugn.texi:
28458         Document the procedure to debug the DllMain routine on Windows.
28459         Add note about -funwind-tables and mixed Ada and C/C++ programming in
28460         ZCX mode.
28461         Document new BIND qualifer /RETURN_CODES=VMS.
28462
28463 2005-02-09  Ben Brosgol  <brosgol@adacore.com>
28464
28465         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
28466         Edited gnatmetric chapter
28467
28468 2005-02-09  Robert Dewar  <dewar@adacore.com>
28469
28470         * gnat_rm.texi:
28471         Changes to document new wide wide character support
28472         For AI-285
28473         Update documentation on Normalize_Scalars and Initialize_Scalars
28474
28475 2005-02-09  Pascal Obry  <obry@adacore.com>
28476
28477         * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
28478
28479 2005-02-09  Jose Ruiz  <ruiz@adacore.com>
28480
28481         * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
28482         from the VxWorks kernel) that is needed for getting the active
28483         priority of the different tasks.
28484
28485         * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
28486         Use a pragma Elaborate_Body in the spec file instead.
28487         Noticed by code reading.
28488
28489 2005-02-09  Thomas Quinot  <quinot@adacore.com>
28490
28491         * exp_util.ads: Minor correction in comment.
28492
28493 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28494
28495         * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
28496         since this procedure is now too complex to be worth inlining.
28497
28498 2005-02-09  Richard Henderson  <rth@redhat.com>
28499
28500         * utils.c (gnat_define_builtin): Remove.
28501         (gnat_install_builtins): Use build_common_builtin_nodes.
28502
28503 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28504
28505         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
28506         a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
28507         a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
28508         a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
28509         a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
28510         a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
28511         a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
28512         a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
28513         a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
28514         a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
28515         a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
28516         a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
28517         a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
28518         a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
28519         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
28520         a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
28521         a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
28522         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
28523         a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
28524         a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
28525         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
28526         a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
28527         a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
28528         a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
28529         a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
28530         a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
28531         a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
28532         a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
28533         a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
28534         a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
28535         a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
28536         a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
28537         a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
28538         a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
28539         library.
28540
28541 2005-01-27  Laurent Guerby  <laurent@guerby.net>
28542
28543         * Makefile.in: Fix a-intnam.ads from previous commit,
28544         add 2005 to copyright.
28545         * a-intman-rtems.ads: Renamed to...
28546         * a-intnam-rtems.ads:
28547
28548 2005-01-27  Laurent Guerby  <laurent@guerby.net>
28549
28550         * Makefile.in: Rename GNAT RTEMS specific files.
28551         * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
28552         5rosinte.ads, 5rparame.adb: Replaced by files below.
28553         * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
28554         s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
28555
28556 2005-01-27  Joel Sherrill  <joel.sherrill@oarcorp.com>
28557             Laurent Guerby  <laurent@guerby.net>
28558
28559         PR ada/19488
28560         * 5rosinte.ads: Add No_Key constant.
28561         * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
28562         * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
28563
28564 2005-01-26  Laurent Guerby  <laurent@guerby.net>
28565
28566         PR ada/19414
28567         * i-cobol.adb (Valid_Numeric): Handle zero length case.
28568
28569 2005-01-20  Richard Henderson  <rth@redhat.com>
28570
28571         * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
28572         a-intnam-linux.ads and system-linux-alpha.ads.
28573         * a-intnam-linux-alpha.ads: Remove file.
28574         * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
28575         * system-linux-alpha.ads: New file.
28576
28577 2005-01-18  Jakub Jelinek  <jakub@redhat.com>
28578
28579         PR ada/13470
28580         * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
28581         set to the new string.
28582
28583 2005-01-18  Toon Moene  <toon@moene.indiv.nluug.nl>
28584
28585         * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
28586         to True.
28587
28588 2005-01-18  Richard Henderson  <rth@redhat.com>
28589
28590         * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
28591         THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
28592         for alpha-linux.
28593         * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
28594
28595 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
28596
28597         * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
28598         (GCC_ZCX_Support): Likewise.
28599
28600 2005-01-11  Bastian Blank  <waldi@debian.org>
28601
28602         * system-linux-s390.ads: Define Preallocated_Stacks.
28603         * system-linux-s390x.ads: Likewise.
28604
28605 2005-01-04  Arnaud Charlet  <charlet@adacore.com>
28606
28607         * gnat_ugn.texi: Fix texi errors with null variables.
28608
28609 2005-01-03  Thomas Quinot  <quinot@adacore.com>
28610
28611         * gen-soccon.c: New utility program to generate g-soccon.ads
28612         automatically.
28613
28614         * socket.c, gsocket.h: Split inclusion of system header files into a
28615         gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
28616
28617         * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
28618         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
28619         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
28620         g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
28621         should not be edited by hand anymore, but should be regenerated using
28622         gen-soccon.
28623
28624 2005-01-03  Robert Dewar  <dewar@adacore.com>
28625             Ed Schonberg  <schonberg@adacore.com>
28626             Vincent Celier  <celier@adacore.com>
28627
28628         * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
28629         on/off, since this is an obsolescent feature, for which we now generate
28630         a warning.
28631
28632         * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
28633         warning mode is set and obsolescent usage of this attribute occurs.
28634         (Resolve_Access, case 'Access): Note that GNAT uses the context type to
28635         disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
28636         predates, and partly motivates, the adoption of the AI.
28637         Implement new Ada 2005 attribute Mod
28638
28639         * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
28640         attribute Mod.
28641
28642         * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
28643
28644         * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
28645         pragma restrictions.
28646         New entry for Ada 2005 attribute Mod.
28647
28648         * par-prag.adb:
28649         Add recognition of new pragma Restrictions No_Dependence
28650         Recognize restriction No_Obsolescent_Features at parse time
28651
28652         * bcheck.adb: Add circuitry for checking for consistency of
28653         No_Dependence restrictions.
28654
28655         * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
28656         restrictions.
28657
28658         * restrict.ads, restrict.adb: Add subprograms to deal with
28659         No_Dependence restrictions.
28660
28661         * rtsfind.adb: Check that implicit with's do not violate No_Dependence
28662         restrictions.
28663
28664         * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
28665         sem_attr.adb: Add check for new restriction No_Obsolescent_Features
28666
28667         * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
28668         dummy parameter to scng instantiation.
28669         Needed for new restriction No_Obsolescent_Features
28670
28671         * scn.adb: (Obsolescent_Check): New procedure
28672         Needed for new restriction No_Obsolescent_Features
28673
28674         * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
28675         specified by AI-285, needed for implementation of AI-388 (adding greek
28676         pi to Ada.Numerics).
28677         Add new generic formal to scng, needed for new restriction
28678         No_Obsolescent_Features.
28679
28680         * s-rident.ads: Add new restriction No_Obsolescent_Features.
28681
28682         * ali.ads, ali.adb: Adjustments for reading new No_Dependence
28683         restrictions lines.
28684         (Scan_ALI): When finding an unexpected character on an R line, raise
28685         exception Bad_R_Line, instead of calling Fatal_Error, so that, when
28686         Ignore_Errors is True, default restrictions are set and scanning of the
28687         ALI file continues with the next line. Also, when Bad_R_Line is raised
28688         and Ignore_Errors is True, skip to the end of le line.
28689
28690         * sem_ch10.adb: Check that explicit with's do not violate
28691         No_Dependence restrictions.
28692         (Install_Withed_Unit): Add code to implement AI-377 and diagnose
28693         illegal context clauses containing child units of instance.
28694
28695         * sem_prag.adb: Processing and checking for new No_Dependence
28696         restrictions.
28697         (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
28698         analyze and check the External argument.
28699
28700         * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
28701
28702 2005-01-03  Robert Dewar  <dewar@adacore.com>
28703
28704         * atree.adb: Add a fifth component to entities
28705         This allows us to add 32 flags and four new fields
28706
28707         * atree.ads: Add a fifth component to entities
28708         This allows us to add 32 flags and four new fields
28709
28710         * einfo.ads, einfo.adb: Document new fields and new flags now available
28711         Add routines for printing new fields
28712
28713         * treepr.adb: Call routines to print out additional fields if present
28714
28715 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
28716
28717         * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
28718         gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
28719
28720         * Makefile.in: Add support to build shared Ada libraries on solaris x86
28721         Remove gpr2make, replaced by gprmake.
28722         Remove references to gnatmem and libaddr2line.
28723         Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
28724         (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
28725         Add support for specialized version of Ada.Numerics.Aux for Darwin: use
28726         a-numaux-darwin.ads and a-numaux-darwin.adb
28727         Enable mlib-tgt-lynxos.adb on lynxos.
28728
28729         * Make-lang.in: Remove rules for gpr2make.
28730         When generating sdefault.adb, do not call Relocate_Path
28731         on S3 for function Target_Name, as it is not a path.
28732         Remove references to gnatmem and libaddr2line.
28733
28734         * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
28735         files.
28736
28737 2005-01-03  Samuel Tardieu  <tardieu@adacore.com>
28738
28739         * checks.adb (Apply_Alignment_Check): Generate a warning if an object
28740         address is incompatible with its base type alignment constraints when
28741         this can be decided statically.
28742
28743 2005-01-03  Olivier Hainque  <hainque@adacore.com>
28744
28745         * decl.c (compatible_signatures_p): New function. The intended purpose
28746         is to check if two function signatures for a call-site and a callee are
28747         compatible enough for the call to be valid. The underlying purpose is
28748         to check if a call to a mapped builtin is using the right interface.
28749         The current code actually does not check antyhing - this a placeholder
28750         for future refinements.
28751         (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
28752         builtin calls for convention Intrinsic.
28753
28754         * gigi.h (builtin_decl_for): Declare (new function).
28755
28756         * utils.c (gnat_install_builtins): Install the target specific builtins.
28757         (builtin_decl_for): New function, provide a dummy body for now.
28758
28759 2005-01-03  Geert Bosch  <bosch@adacore.com>
28760
28761         * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
28762         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
28763         (Pred): Implement in terms of Succ.
28764
28765         * trans.c (convert_with_check): Reimplement conversion of float to
28766         integer.
28767
28768 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
28769             Vincent Celier  <celier@adacore.com>
28770
28771         * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
28772         bounds can be negative, and must be declared Int, not Nat.
28773
28774         * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
28775         array is checked after using the index in the array.
28776
28777         * makegpr.adb (Add_Switches): Check if there is a package for the
28778         processor. If there is no package, do not look for switches.
28779
28780 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
28781
28782         * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
28783         generation of predefined stream operations (specs and bodies) should
28784         proceed. Under various restrictions these subprograms must not be
28785         generated.
28786
28787 2005-01-03  Thomas Quinot  <quinot@adacore.com>
28788
28789         * exp_dist.adb:
28790         Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
28791         amount of PCS-specific code in RACW stubs generation.
28792         (Copy_Specification): Set Etype on copied formal parameter entities, as
28793         this information is needed for PolyORB stubs generation.
28794         (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
28795         variable Dynamic_Async.
28796         (Build_Subprogram_Receiving_Stubs): Make PCS-specific
28797         (Build_RPC_Receiver_Specification): Make generic again, as recent
28798         changes have allowed RPC receivers to have the same profile for both
28799         variants of the PCS.
28800         Reorganise RPC receiver generation to reduce differences between the
28801         structure of GARLIC and PolyORB RPC receivers.
28802         (Add_Receiving_Stubs_To_Declarations): Make this subprogram
28803         PCS-specific.
28804         Simplify elaboration code for RCI packages.
28805
28806         * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
28807         generation to reduce differences between the structure of GARLIC and
28808         PolyORB RPC receivers.
28809
28810         * s-stratt.adb: Fix typo in comment.
28811
28812 2005-01-03  Thomas Quinot  <quinot@adacore.com>
28813
28814         * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
28815         copied from Make_Init_Call).
28816
28817         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
28818         reads and assignments on a temporary variable declared with appropriate
28819         discriminants.
28820
28821 2005-01-03  Robert Dewar  <dewar@adacore.com>
28822
28823         * i-c.adb (To_C): Raise CE if string is null and Append_Null
28824
28825 2005-01-03  Robert Dewar  <dewar@adacore.com>
28826
28827         * i-cstrin.adb (Update): Do not append a null in form called with a
28828         String. This avoids unintended behavior.
28829
28830 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
28831
28832         PR ada/17527
28833         * init.c: Fix warnings on Free BSD section.
28834
28835 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
28836
28837         PR ada/16949
28838         * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
28839         xsinfo.adb).
28840
28841 2005-01-03  Vincent Celier  <celier@adacore.com>
28842
28843         * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
28844         libraries when Unique_Compile is True (-u switch).
28845         (Gnatmake): ditto.
28846
28847 2005-01-03  Robert Dewar  <dewar@adacore.com>
28848
28849         * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
28850         upper case letter or underscore after W, as allowed by spec.
28851
28852 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
28853
28854         * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
28855         darwin port by using proper type definitions from header files.
28856         Use SIGTERM instead of SIGABRT for SIGADAABORT.
28857
28858 2005-01-03  Robert Dewar  <dewar@adacore.com>
28859
28860         * par.adb: Enhance error message handling for configuration file
28861         pragmas.
28862
28863 2005-01-03  Robert Dewar  <dewar@adacore.com>
28864
28865         * s-arit64.adb (Double_Divide): Put back changes that got accidentally
28866         removed during the previous update (test properly for case of dividing
28867         largest negative number by -1, which generates overflow).
28868
28869 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
28870             Sergey Rybin  <rybin@adacore.com>
28871
28872         * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
28873         to use as the defining identifier for a formal package.
28874         (Remove_Parent): If the instance takes place within (an instance of)
28875         a sibling, preserve private declarations of common parent.
28876
28877 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
28878
28879         * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
28880         to determine whether one of the operands is a fixed-point type for
28881         which a user-defined multiplication or division operation might be
28882         defined.
28883
28884         * sem_res.adb (Valid_Conversion): The legality rules for conversions
28885         of access types are symmetric in Ada 2005: either designated type can
28886         be unconstrained.
28887
28888 2005-01-03  Vincent Celier  <celier@adacore.com>
28889
28890         * s-fileio.adb (Temp_File_Record): Change length of string component
28891         Name from L_tmpnam + 1 to max_path_len + 1.
28892
28893 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
28894
28895         * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
28896         Self_Id.Deferral_Level = 0.
28897         (Do_Pending_Action): Move this function to the spec.
28898
28899         * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
28900         Do_Pending_Action explicitely when needed, in case we're using
28901         No_Abort restrictions.
28902
28903         * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
28904         deferral level since it will not get changed by the generated code.
28905         Keeping a default value of 1 would prevent some operations (e.g.
28906         select or delay) to proceed successfully.
28907
28908 2005-01-03  Ben Brosgol  <brosgol@adacore.com>
28909             Robert Dewar  <dewar@adacore.com>
28910             Cyrille Comar  <comar@adacore.com>
28911
28912         * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
28913         porting guide chapter (vms version).
28914         Revised doc title (removed "for native platforms") and subtitle.
28915         Add discussion on warning flag for obsolescent features. First we
28916         note that it applies to obsolete GNAT features, which was previously
28917         omitted. Second we contrast the behavior with that of the new
28918         Ada 2005 AI-368 restriction No_Obsolescent_Features.
28919         Preliminary rewriting of GNAT & libraries chapter in order to take
28920         into account default project locations & new project manager
28921         capabilities.
28922
28923 2005-01-03  Robert Dewar  <dewar@adacore.com>
28924
28925         * cstand.adb (Create_Operators): Clean up format and documentation of
28926         unary and binary operator result tables. No change in code, just
28927         reformatting and addition of comments.
28928
28929         * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
28930         sem_ch2.adb: Minor reformatting
28931
28932         * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
28933         sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
28934         comments for Tree_Read and Tree_Write.
28935
28936 2005-01-03  Pascal Obry  <obry@adacore.com>
28937
28938         * exp_attr.ads: Minor reformatting.
28939
28940 2005-01-03  Romain Berrendonner  <berrendo@adacore.com>
28941
28942         * comperr.adb (Compiler_Abort): Add specialized message for GAP
28943         versions.
28944
28945 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
28946
28947         * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
28948         whether the ancestor type is private, as may be the case with nested
28949         instantiations.
28950
28951 2004-12-30  Sohail Somani  <sohail@sohailsomani.com>
28952
28953         PR ada/19128
28954         * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
28955
28956 2004-12-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
28957
28958         * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
28959         * utils2.c (build_unary_op): Likewise.
28960
28961 2004-12-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28962
28963         * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
28964
28965 2004-12-19  Richard Henderson  <rth@redhat.com>
28966
28967         * trans.c (gigi): Update gimplify_body call.
28968
28969 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
28970
28971         * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
28972
28973 2004-12-07  Ed Falis  <falis@adacore.com>
28974
28975         * s-intman-vxworks.adb (Notify_Exception): removed useless check for
28976         current task being suspended.
28977
28978         * init.c (__gnat_clear_exception): added to reset VxWorks exception
28979         count.
28980         (__gnat_map_signal): removed test for current task being suspended.
28981
28982 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
28983
28984         * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
28985         from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
28986         targets (such as AAMP).
28987
28988 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
28989
28990         * atree.adb (Visit_Itype): Create a new name for the generated itype,
28991         because the back-end may otherwise treat it as a redefinition of the
28992         old symbol.
28993
28994 2004-12-07  Eric Botcazou  <ebotcazou@adacore.com>
28995
28996         * back_end.adb (Scan_Back_End_Switches): Accept --param.
28997
28998         * lang-specs.h: Accept --param.
28999
29000 2004-12-07  Vincent Celier  <celier@adacore.com>
29001
29002         * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
29003         package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
29004         Current_Body_Suffix => Ada_Body_Suffix).
29005         Take into account Externally_Built attribute.
29006
29007         * clean.adb (In_Extension_Chain): Always return False when one of the
29008         parameter is No_Project.
29009         (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
29010         Ada_Language_Index).
29011         (Gnatclean): Adapt to change in package Prj.Pars (no parameter
29012         Process_Languages for procedure Parse).
29013
29014         * gnatcmd.adb (Carg_Switches): New table.
29015         (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
29016         Adapt to name changes in package Prj (Current_Spec_Suffix =>
29017         Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
29018
29019         * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
29020         Header_Num and function Hash are now declared in package Prj,
29021         not Prj.Com.
29022
29023         * prj.adb (Suffix_Of): New function.
29024         (Set (Suffix)): New procedure.
29025         (Hash): One function moved from Prj.Com
29026         (Is_Present, Language_Processing_Data_Of): New functions
29027         (Set): Two new procedures
29028         (Add_Language_Name, Display_Language_Name): New procedures
29029
29030         * prj.ads: (Suffix_Of): New function
29031         (Set (Suffix)): New procedure
29032         Add several types and tables for multi-language support.
29033         (Header_Num): Type moved from Prj.Com
29034         (Hash): Two functions moved from Prj.Com
29035         (Is_Present, Language_Processing_Data_Of): New functions
29036         (Set): Two new procedures
29037         (Add_Language_Name, Display_Language_Name): New procedures
29038         (Naming): Component name changes:
29039         Current_Spec_Suffix => Ada_Spec_Suffix,
29040         Current_Body_Suffix => Ada_Body_Suffix. Add new components:
29041         Impl_Suffixes, Supp_Suffixes.
29042         (Project_Data): New components: Externally_Built, Supp_Languages,
29043         First_Language_Processing, Supp_Language_Processing, Default_Linker,
29044         Default_Linker_Path.
29045
29046         * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
29047         new package Language_Processing with its attributes (Compiler_Driver,
29048         Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
29049         Binder_Driver, Default_Linker).
29050
29051         * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
29052         (Header_Num): Type moved to package Prj
29053
29054         * prj-env.adb: Adapt to name changes in package Prj
29055         (Current_Spec_Suffix => Ada_Spec_Suffix,
29056         Current_Body_Suffix => Ada_Body_Suffix).
29057
29058         * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
29059         default to the project path, except the "-" is one of the directories
29060         in env var ADA_PROJECT_PATH.
29061         (Current_Project_Path): Global variable, replacing Project_Path
29062         that was in the body of Prj.Part.
29063         (Project_Path): New function
29064         (Set_Project_Path): New procedure
29065         Initialize Current_Project_Path during elaboration of the package
29066         Remove dependency on Prj.Com, no longer needed
29067
29068         * prj-ext.ads (Project_Path): New function
29069         (Set_Project_Path): New procedure
29070
29071         * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
29072         suffix is defined for language <lang>.
29073         (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
29074         accessing directly the components of Naming.
29075         (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
29076         Reorganise of this package.
29077         Break procedure Check in several procedures.
29078
29079         * prj-nmsc.ads: Replace all procedures (Ada_Check,
29080         Other_Languages_Check and Language_Independent_Check) with a single
29081         procedure Check.
29082
29083         * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
29084         Process_Languages, no longer needed.
29085
29086         * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
29087         Current_Project_Path.
29088         Remove elaboration code, moved to the body of Prj.Ext
29089         Use new function Prj.Ext.Project_Path instead of old variable
29090         Project_Path.
29091         (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
29092         When comparing with project paths on the stack, first put the resolved
29093         path in canonical case.
29094         (Parse_Single_Project): Set the path name of the project file in the
29095         tree to the normalized path.
29096
29097         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
29098         parameter Process_Languages, no longer needed.
29099         (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
29100         Other_Languages_Check.
29101
29102         * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
29103         to store the resolved canonical path of the project file.
29104         Remove dependency to Prj.Com, no longer needed
29105
29106         * prj-util.adb: Adapt to name changes in package Prj
29107         (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
29108         Ada_Body_Suffix).
29109
29110         * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
29111         Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
29112         Externally_Built, Include_Option, Language_Processing.
29113
29114         * makegpr.adb: Numerous changes due to changes in packages
29115         Prj and Prj.Nmsc.
29116
29117         * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
29118         default to the project path, except whe "-" is one of the directories
29119         in env var ADA_PROJECT_PATH.
29120         (Gnatls): In verbose mode, add the new section "Project Search Path:"
29121
29122 2004-12-07  Robert Dewar  <dewar@adacore.com>
29123
29124         * debug.adb: Document that -gnatdA automatically sets -gnatR3m
29125
29126         * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
29127         set -gnatR3m mode.
29128
29129         * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
29130         flag. No longer needed now that we handle this in gnat1drv.adb.
29131
29132         * repinfo.ads: Minor reformatting
29133
29134 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29135             Olivier Hainque  <hainque@adacore.com>
29136             Eric Botcazou  <ebotcazou@adacore.com>
29137
29138         * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
29139         TYPE_SIZE_UNIT of result type if SIZE is not specified.
29140         (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
29141         of a bitfield, which we know is useless and causes trouble because of
29142         alignment implications.
29143
29144         * utils.c (create_var_decl): Set DECL_COMMON again on targets without
29145         BSS sections.
29146         (process_attributes): Clear DECL_COMMON again when a section attribute
29147         is present.
29148         (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
29149         SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
29150         (create_field_decl): Special case ADDRESSABLE negative to mean
29151         "no bitfield creation", to be used by make_aligning_type. Don't
29152         restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
29153         fields claimed addressable still have to be bitfields. Use
29154         value_factor_p instead of a raw binop construction to check for the
29155         position's alignment.
29156
29157 2004-12-07  Geert Bosch  <bosch@adacore.com>
29158
29159         * eval_fat.adb: Revert previous change.
29160
29161 2004-12-07  Thomas Quinot  <quinot@adacore.com>
29162             Ed Schonberg  <schonberg@adacore.com>
29163
29164         * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
29165         with an implicit dereference as its prefix, use
29166         Insert_Explicit_Dereference instead of merely rewriting the prefix into
29167         an explicit dereference. This ensures that a reference to the original
29168         prefix is generated, if appropriate.
29169
29170         * sem_util.adb (Insert_Explicit_Dereference): When an implicit
29171         dereference is rewritten to an explicit one, generate a reference to
29172         the entity denoted by its prefix using the original prefix node, so
29173         the dereference can be properly recorded as a read of the denoted
29174         access value, if appropriate.
29175
29176         * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
29177         emitting 'assigned but never read' warning on a variable on the basis
29178         that it has an access type.
29179         (Check_References): Emit unreferenced warning when the scope is a
29180         subprogram body.
29181
29182 2004-12-07  Robert Dewar  <dewar@adacore.com>
29183             Ed Schonberg  <schonberg@adacore.com>
29184
29185         * exp_ch6.adb (Expand_Call): Add comment on handling of back end
29186         intrinsic
29187
29188         * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
29189         leaving call unchanged.
29190         This deals with the case where the pragma Import specified
29191         an external name, to be handled by the back end.
29192
29193         * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
29194         subprogram which is Imported with convention Intrinsic if an
29195         External_Name argument is specified.
29196         (Process_Import_Or_Interface): Properly diagnose link name argument.
29197         (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
29198         with Sem_Ch6.Cannot_Inline.
29199         (Process_Inline): Provide separate warning for inapplicable inline
29200         pragma.
29201         (Cannot_Inline): Reject subprograms that have an at_end handler, so that
29202         treatment is uniform on different targets.
29203
29204 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
29205
29206         * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
29207         construct is rewritten, preserve end label to permit source navigation.
29208
29209 2004-12-07  Thomas Quinot  <quinot@adacore.com>
29210
29211         * exp_dist.adb (Specific_Build_General_Calling_Stubs,
29212         Specific_Build_Stub_Target): New subprograms.
29213         (Build_Subprogram_Calling_Stubs): Make this procedure independent from
29214         the PCS implementation used, using the above PCS-customized subprograms.
29215         Minor reformatting.
29216         (PolyORB_Support.Helpers): New subunit containing supporting subprograms
29217         for generation of DSA code targeted to the PolyORB PCS.
29218         (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
29219         implementation of the partition communication subsystem in ancillary
29220         subprograms.
29221         (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
29222         PolyORB_Support.Build_Stub_Type): New subrograms containing the
29223         PCS-specific part of Add_Stub_Type.
29224         (Insert_Partition_Check): Use runtime library function to perform
29225         E.4(19) check.
29226
29227         * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
29228         (RE_Same_Partition): New entity, from s-parint.
29229
29230         * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
29231
29232 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
29233
29234         * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
29235         Output the copyright message on a separate line from the version
29236         message.
29237
29238 2004-12-07  Joel Brobecker  <brobecker@adacore.com>
29239
29240         * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
29241         compile-time warning.
29242
29243 2004-12-07  Robert Dewar  <dewar@adacore.com>
29244
29245         * g-regpat.adb: (Match): Change a misuse of or to or else
29246
29247 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
29248
29249         * lib-xref.adb:
29250         (Generate_Reference): Handle properly a reference to an entry formal,
29251          when an accept statement has a pragma Unreferenced for it.
29252
29253         * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
29254         and the Has_Pragma_Unreferenced flag for each formal before analyzing
29255         the body, to ensure that warnings are properly emitted for each accept
29256         statement of a given task entry.
29257
29258 2004-12-07  Vasiliy Fofanov  <fofanov@adacore.com>
29259
29260         * Makefile.in: Add support for foreign threads on VMS.
29261
29262 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29263
29264         * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
29265         Remove.
29266         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
29267
29268         * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
29269
29270         * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
29271         exception.
29272         (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
29273
29274 2004-12-07  Robert Dewar  <dewar@adacore.com>
29275
29276         * nlists.adb (Prepend_Debug): Remove parameters and nest within
29277         Prepend.
29278         (Remove_Next_Debug): Same fix
29279
29280         * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
29281         maintain back pointers now, though we did not used to, and comments
29282         were out of date).
29283         (Prepend): Remove pragma Inline.
29284         (Remove_Next): Same cleanup
29285
29286 2004-12-07  Thomas Quinot  <quinot@adacore.com>
29287
29288         * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
29289         used to record an implicit dereference as a read operation on its
29290         prefix when operating under -gnatc. Necessary to avoid spurious
29291         'variable assigned but never read' warnings in that mode.
29292         (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
29293         is a non-overloaded implicit dereference, call the above subprogram to
29294         ensure proper recording of references.
29295
29296 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
29297
29298         * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
29299         to be resolved later as part of Analyze_Iteration_Scheme's call to
29300         Make_Index.
29301
29302 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
29303
29304         * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
29305         prefix is not a scalar type, place error message on prefix, not on
29306         type entity.
29307
29308 2004-12-07  Bernard Banner  <banner@adacore.com>
29309
29310         * vxaddr2line.adb: Add support for x86 vxworks
29311
29312 2004-12-07  Thomas Quinot  <quinot@adacore.com>
29313
29314         * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
29315         documentation of the behaviour of these functions when passed an IP
29316         address that has no record in the system hosts database and no reverse
29317         record in the DNS.
29318
29319         * cstand.adb, a-tags.ads: Fix typos in comment.
29320
29321 2004-12-07  Robert Dewar  <dewar@adacore.com>
29322
29323         * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
29324         exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
29325         sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
29326         s-poosiz.ads: Minor reformatting
29327
29328         * make.adb: Minor reformatting
29329         Add some ??? comments asking for more comments
29330
29331         * s-poosiz.adb: Minor reformatting
29332         Add comments on alignment requirement
29333
29334         * sinfo.ads: Remove obsolete comment and fix typo.
29335
29336 2004-12-07  Vincent Celier  <celier@adacore.com>
29337             Sergey Rybin  <rybin@adacore.com>
29338
29339         * gnat_ugn.texi: Update the section "The GNAT Driver and Project
29340         Files" with the new tool and package names.
29341         Reformatting to suppress most of the warnings for line too long
29342         Document the new section "Project Search Path:" in the output of
29343         gnatls -v.
29344         Add gnatmetric section
29345
29346 2004-12-07  Vincent Celier  <celier@adacore.com>
29347
29348         * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
29349         -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
29350         and -eit to -ept. Added qualifier
29351         /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
29352
29353 2004-11-27  Andreas Schwab  <schwab@suse.de>
29354
29355         * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
29356
29357 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
29358
29359         * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
29360         internal implementation unit GNAT.Sockets.Thin,
29361         as their usage for sockets is non-portable (using the read and write
29362         functions from the system runtime library is fine on UNIX but won't
29363         work under Windows).
29364
29365         * mingw32.h: Update copyright notice.
29366
29367 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
29368
29369         * ada-tree.h: Minor reformatting of previous change to avoid lines
29370         longer than 79 characters.
29371
29372 2004-11-25  Olivier Hainque  <hainque@adacore.com>
29373
29374         * tb-gcc.c: GCC infrastructure based implementation of
29375         __gnat_backtrace.
29376
29377 2004-11-24  Steven Bosscher  <stevenb@suse.de>
29378
29379         * misc.c (gnat_post_options): Don't clear
29380         flag_inline_functions.
29381
29382 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
29383
29384         PR ada/17986
29385         * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
29386         tree.
29387
29388 2004-11-21  Andreas Jaeger  <aj@suse.de>
29389
29390         * stylesw.adb: Change Style_Check_Subprogram_Order to
29391         Style_Check_Order_Subprograms.
29392
29393 2004-11-18  Arnaud Charlet  <charlet@adacore.com>
29394
29395         * adaint.h, adaint.c
29396         (__gnat_portable_spawn): Fix cast of spawnvp third parameter
29397         to avoid warnings.
29398         Add also a cast to kill another warning.
29399         (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
29400         parameter with the priority class of the parent process instead of
29401         always using the NORMAL_PRIORITY_CLASS.
29402         (__gnat_dup): New function.
29403         (__gnat_dup2): New function.
29404         (__gnat_is_symbolic_link): Enable the effective body of this
29405         function when __APPLE__ is defined.
29406
29407         * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
29408         Update comments.
29409
29410 2004-11-18  Olivier Hainque  <hainque@adacore.com>
29411
29412         * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
29413         address of which may be used to represent "others" and "all others"
29414         choices in exception tables, instead of the current harcoded
29415         (void *)0 and (void *)1.
29416         (Setup_Exception): Do nothing in the GNAT SJLJ case.
29417
29418         * gigi.h (others_decl, all_others_decl): New decls representing the
29419         new Others_Value and All_Others_Value objects.
29420         (struct attrib): Rename "arg" component as "args", since GCC expects a
29421         list of arguments in there.
29422
29423         * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
29424         corresponding objects exported by a-exexpr, instead of hardcoded dummy
29425         addresses.
29426
29427         * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
29428         others_decl and all_others_decl instead of hardcoded dummy addresses
29429         to represent "others" and "all others" choices, which is cleaner and
29430         more flexible with respect to the possible eh pointer encoding policies.
29431
29432         * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
29433         (process_attributes): Account for the naming change of the "args"
29434         attribute list entry component.
29435
29436         * decl.c (build_attr_list): Rename into prepend_attributes to allow
29437         cumulating attributes for different entities into a single list.
29438         (gnat_to_gnu_entity): Use prepend_attributes to build the list of
29439         attributes for the current entity and propagate first subtype
29440         attributes to other subtypes.
29441         <E_Procedure>: Attribute arguments are attr->args and not
29442         attr->arg any more.
29443         (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
29444         argument provided, as this is what GCC expects. Use NULL_TREE instead
29445         of 0 for trees.
29446
29447 2004-11-18  Robert Dewar  <dewar@adacore.com>
29448
29449         * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
29450         Minor reformatting througout (including new function specs)
29451         Add ??? comments asking for clarification.
29452
29453 2004-11-18  Thomas Quinot  <quinot@adacore.com>
29454
29455         * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
29456         incomplete duplicate implementation of this subprogram from butil.
29457
29458 2004-11-18  Thomas Quinot  <quinot@adacore.com>
29459
29460         * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
29461         procedures factors the common processing for building an RPC receiver
29462         for an RCI package or an RACW type.
29463         Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
29464         Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
29465         (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
29466         in use.
29467         (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
29468         Add_RACW_Features.
29469         (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
29470         Add_RAST_Features.
29471         (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
29472         distribution subprogram identifiers that are either subprogram numbers
29473         or strings.
29474         (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
29475         string distribution identifiers assigned to a given subprogram.
29476         (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
29477         (Add_RAS_Dereference_TSS): Add comments.
29478         (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
29479         is not referenced yet because it will be used by the PolyORB DSA
29480         implementation.
29481         (Insert_Partition_Check): Remove fossile code.
29482         (First_RCI_Subprogram_Id): Document this constant.
29483         (Add_RAS_Access_TSS): Correct the setting of the Etype of the
29484         RAS_Access TSS.
29485         (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
29486         replaced with calls to Get_Library_Unit_Name_String. Previously there
29487         were several instances of the same code in different locations in the
29488         compiler; this checkin completes the replacement of all of these
29489         instances with calls to a common subprogram.
29490         Minor reformatting.
29491
29492         * sem_dist.adb: Remove comment noting that RPC receiver generation
29493         should be disabled for RACWs that implement RASs.
29494         (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
29495
29496         * sem_util.ads, sem_util.adb (Has_Stream): New function
29497         (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
29498         qualified name of a library unit into the name buffer.
29499         (Note_Possible_Modification): Generate a reference only
29500         if the context comes from source.
29501
29502         * snames.ads (PCS_Names): New subtype corresponding to names of
29503         supported implementations of the Partition Communication Subsystem
29504         (PCS) (i.e. the runtime library support modules for the distributed
29505         systems annex).
29506
29507 2004-11-18  Robert Dewar  <dewar@adacore.com>
29508             Ed Schonberg  <schonberg@adacore.com>
29509
29510         * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
29511         (Has_Rep_Pragma): New function
29512         (Has_Attribute_Definition_Clause): New function
29513         (Record_Rep_Pragma): Moved here from sem_ch13.adb
29514         (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
29515
29516         * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
29517
29518         * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
29519         (Expand_Pragma_Psect_Object): New procedure
29520         These procedures contain the revised and cleaned up processing for
29521         these two pragmas. This processing was formerly in Sem_Prag, but
29522         is more appropriately moved here. The cleanup involves making sure
29523         that the pragmas are properly attached to the tree, and that no
29524         nodes are improperly shared.
29525
29526         * sem_prag.adb: Move expansion of Common_Object and Psect_Object
29527         pragmas to Exp_Prag, which is more appropriate.
29528         Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
29529         check for duplicates Remove use of Is_Psected flag, no longer needed.
29530         Use new Make_String_Literal function with string.
29531
29532         * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
29533         that are functions return universal values, that have to be converted
29534         to the context type.
29535         Use new Make_String_Literal function with string.
29536         (Get_Stream_Convert_Pragma): New function, replaces the use of
29537         Get_Rep_Pragma, which had to be kludged to work in this case.
29538
29539         * freeze.adb: Use new Has_Rep_Pragma function
29540
29541         * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
29542         function with string.
29543         Use new Has_Rep_Pragma function.
29544
29545         * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
29546         string argument.
29547
29548 2004-11-18  Robert Dewar  <dewar@adacore.com>
29549
29550         * errout.ads, errout.adb: (First_Sloc): New function
29551
29552         * par-ch5.adb (P_Condition): Check for redundant parens is now a style
29553         check (-gnatyx) instead of being included as a redundant construct
29554         warning.
29555
29556         * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
29557         Style_Check_Order_Subprograms.
29558
29559         * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
29560         stylesw.adb: Add Style_Check_Xtra_Parens
29561
29562         * usage.adb: Add line for -gnatyx (check extra parens)
29563
29564         * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
29565
29566 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
29567             Robert Dewar  <dewar@adacore.com>
29568
29569         * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
29570         discriminant of a constrained subtype, analyze the copy of the
29571         corresponding constraint, because in some cases it may be only
29572         partially analyzed.
29573         Removes long-lived ??? comments.
29574
29575         * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
29576         handled controlled or secondary-stack expressions within the
29577         iteration_scheme of a loop.
29578
29579         * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
29580         bounds that may contain functions calls, to prevent memory leaks when
29581         the bound contains a call to a function that uses the secondary stack.
29582         (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
29583         generate temporaries for loop bounds that might contain function calls
29584         that require secondary stack and/or finalization actions.
29585
29586         * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
29587         selected component and the selector is overloadable (not just a
29588         function) treat as function call, Analyze_Call will disambiguate if
29589         necessary.
29590         (Analyze_Selected_Component): Do not generate an actual subtype for the
29591         selected component if expansion is disabled. The actual subtype is only
29592         needed for constraint checks.
29593         (Analyze_Allocator): If restriction No_Streams is set, then do
29594         not permit objects to be declared of a stream type, or of a
29595         composite type containing a stream.
29596
29597         * restrict.ads: Remove the a-stream entry from Unit_Array, since
29598         No_Streams no longer prohibits with'ing this package.
29599
29600         * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
29601         discriminants, but the parent base has unknown discriminants, there is
29602         no discriminant constraint to inherit. Such a discrepancy can arise
29603         when the actual for a formal type with unknown discriminants is a
29604         similar private type whose full view has discriminants.
29605         (Analyze_Object_Declaration): If restriction No_Streams is set, then
29606         do not permit objects to be declared of a stream type, or of a
29607         composite type containing a stream.
29608
29609 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
29610
29611         * exp_dbug.ads: Update documentation to reflect simpler encoding for
29612         protected operations.
29613
29614         * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
29615         generated name, it complicates decoding in gdb and hinders debugging
29616         of protected operations.
29617         (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
29618         flag for the protected entry barrier function.
29619         (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
29620         flag for the protected entry function.
29621
29622 2004-11-18  Nicolas Setton  <setton@adacore.com>
29623
29624         * expect.c: Define __unix__ when __APPLE__ is defined.
29625
29626         * Makefile.in: Inform the value of the variable GMEM_LIB in the
29627         Darwin-specific section.
29628
29629         * lang-specs.h: Change the placement of the %1 marker.
29630         Works around the fact that gcc adds -fPIC by default under Darwin.
29631
29632 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
29633
29634         * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
29635         type of the object with the packed array type, set the Analyzed flag
29636         on the object if it is an entity or simple indexed component, to avoid
29637         spurious type errors.
29638
29639 2004-11-18  Gary Dismukes  <dismukes@adacore.com>
29640
29641         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
29642         gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
29643         separate line from the version message.
29644
29645 2004-11-18  Ed Falis  <falis@adacore.com>
29646
29647         * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
29648         vthreads.
29649         (init_float): Eliminate initialization of floating point status for
29650         AE653. The instructions have no effect for vThreads.
29651
29652 2004-11-18  Vincent Celier  <celier@adacore.com>
29653
29654         * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
29655         gnatbind is invoked with -shared.
29656
29657 2004-11-18  Jose Ruiz  <ruiz@adacore.com>
29658
29659         * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
29660         for Detect_Blocking which is redundant with the check done within the
29661         procedure Protected_Single_Entry_Call.
29662         (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
29663         Detect_Blocking which is redundant with the check done within the
29664         procedure Protected_Single_Entry_Call.
29665
29666 2004-11-18  Vincent Celier  <celier@adacore.com>
29667
29668         * makegpr.adb (Compile): Put the compiling switches (in package
29669         Compiler and on the command line) immediately after "-c", instead of
29670         at the end of the command line invocation of the compiler, when
29671         compiling a non-Ada file.
29672         (Build_Global_Archive): When there is no need to rebuild the archive,
29673         set Global_Archive_Exists, so that the archive is passed to the linker
29674         if one is needed.
29675
29676 2004-11-18  Robert Dewar  <dewar@adacore.com>
29677             Sergey Rybin  <rybin@adacore.com>
29678
29679         * gnat_ugn.texi:
29680         Remove extra paren check from list of checks for redundant constructs
29681         Add documentation of new -gnatyx style check (check extra parens)
29682         Remove paragraph about gnatelim debug options.
29683
29684         * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
29685         objects rather than forbidding dependencies on the package Ada.Streams.
29686
29687         * sinfo.ads: Add ??? note that we should document pragmas passed to
29688         back end.
29689
29690         * g-expect.ads: Fix a few typos in the comments.
29691
29692 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
29693
29694         * misc.c (gnat_handle_option): Use %< and %> for quoting in
29695         warning message.
29696
29697 2004-11-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
29698
29699         * a-numaux-x86.adb (Tan): Fix fdivp syntax.
29700
29701 2004-11-07  Andreas Schwab  <schwab@suse.de>
29702
29703         * Makefile.in (install-gnatlib): Remove spurious hyphen.
29704
29705 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
29706
29707         PR ada/18228
29708         * Makefile.in (darwin): Set soext to .dylib.
29709
29710 2004-10-26  Vincent Celier  <celier@gnat.com>
29711             Thomas Quinot   <quinot@act-europe.fr>
29712
29713         * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
29714         (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
29715         there is no use of GNAT.Sockets.Constants.
29716         Remove remaining pragma Import for C_Write
29717         Remove C_Read and C_Write from internal implementation unit
29718         GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
29719         the read and write functions from the system runtime library is fine
29720         on UNIX but won't work under Windows).
29721
29722         * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
29723         (Check_Selector): Use C_Recv instead of C_Read.
29724         Selectors are the GNAT.Sockets abstraction to perform a select()
29725         call on a set of descriptors. To allow abortion of an ongoing
29726         select operation, some data is written to a dedicated socket that
29727         is always monitored.
29728         Under Windows, the write and read library functions cannot operate
29729         on sockets, so we need to use send and recv instead, which is portable
29730         across all supported platforms.
29731
29732         * g-socthi.ads: Remove C_Read and C_Write from internal implementation
29733         unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
29734         (using the read and write functions from the system runtime library is
29735         fine on UNIX but won't work under Windows).
29736
29737 2004-10-26  Nicolas Setton  <setton@act-europe.fr>
29738
29739         * mlib-tgt-darwin.adb: New file.
29740
29741         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29742         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
29743         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
29744         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
29745         subprogram body.
29746
29747         * Makefile.in: Add support for building shared libraries under Darwin.
29748         (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
29749         the low level EH init subprogram to be called from __gnat_initialize.
29750
29751         * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
29752         indicates which options to pass to the archive indexer.
29753
29754         * mlib-utl.adb: Add support for calling ranlib with additional
29755         options. This is needed for instance under Mac OS X.
29756         (Ranlib_Options): New global variable, used to store the potential
29757         options to pass to ranlib.
29758         (Ar): Use Ranlib_Options when spawning ranlib.
29759         (Initialize): Set the value of ranlib option.
29760
29761 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
29762
29763         * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
29764         instead of 8K, to reflect the real potential needs for stack-checking
29765         in the ZCX case.
29766
29767 2004-10-26  Pascal Obry  <obry@gnat.com>
29768
29769         * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
29770
29771         * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
29772         Windows only the initial thread stack size can be set so it is good to
29773         start we a low stack size.
29774         The OS will adjust the size as needed.
29775
29776 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
29777             Nicolas Setton  <setton@act-europe.fr>
29778
29779         * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
29780         "__unix__" instead of "unix".
29781         The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
29782         sections were just mistakenly ignored. The former is
29783         implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
29784         Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
29785         of hpux. This prevents an unwanted definition of the symbol
29786         convert_addresses in adaint.o.
29787
29788 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
29789
29790         * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
29791         compatibility with type Unwind_Word on 16-bit targets such as AAMP.
29792
29793 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
29794
29795         * a-filico.ads, a-filico.adb: fix incorrect header.
29796
29797 2004-10-26  Javier Miranda  <miranda@gnat.com>
29798
29799         * a-ststio.ads: Fix typo in identifier
29800
29801 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
29802
29803         * sem_ch4.adb: Minor reformatting.
29804
29805 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29806
29807         * checks.adb (Expr_Known_Valid): If floating-point validity checks are
29808         enabled, check the result of unary and binary operations when the
29809         expression is the right-hand side of an assignment.
29810
29811 2004-10-26  Vincent Celier  <celier@gnat.com>
29812
29813         * clean.adb (Delete): Do not output warnings when in quiet output and
29814         not in verbose mode.
29815         (Force_Deletions): New Boolean flag, defaulted to False
29816         (Delete): Only delete a file if it is writable, and when
29817         Force_Deletions is True.
29818         (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
29819         (Usage): Line for new switch -f
29820         (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
29821         own.
29822
29823 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
29824
29825         * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
29826         JM type only if its size matches that of the wrapper.  When a size is
29827         prescribed and the field is not aliased, remove the wrapper of a JM
29828         type only if the size is not greater than that of the packed array.
29829         (gnat_to_gnu_entity): Change the extension of packed array wrappers
29830         from LJM to JM.
29831
29832 2004-10-26  Geert Bosch  <bosch@gnat.com>
29833
29834         * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
29835         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
29836         (Pred): Implement in terms of Succ.
29837
29838 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29839
29840         * exp_aggr.adb (Safe_Component): An aggregate component that is an
29841         unchecked conversion is safe for in-place use if the expression of the
29842         conversion is safe.
29843         (Expand_Array_Aggregate): An aggregate that initializes an allocator may
29844         be expandable in place even if the aggregate does not come from source.
29845         (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
29846         designated object of an allocator in place, rather than building it
29847         first on the stack. The previous scheme forces a full copy of the array,
29848         and may be altogether unsusable if the size of the array is too large
29849         for stack allocation.
29850
29851 2004-10-26  Robert Dewar  <dewar@gnat.com>
29852
29853         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
29854         compares if the component is atomic.
29855
29856         * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
29857         array assignment if the component type is atomic.
29858
29859 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29860             Eric Botcazou  <ebotcazou@act-europe.fr>
29861
29862         * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
29863         is aliased and is a by_reference type, do not pass by copy.
29864         (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
29865         detect whether the call is in the right side of an assignment or
29866         the expression of an object declaration.  Recurse on component
29867         association within aggregates.
29868         Call it in the condition that determines whether the temporary is
29869         necessary for correct stack-checking.
29870
29871 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
29872
29873         * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
29874         RACW_Type, used in the PolyORB version.
29875         Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
29876         version and the GARLIC version.
29877
29878         * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
29879         Rename RCI_Info to RCI_Locator for better consistency between the
29880         GARLIC and PolyORB versions of the distributed systems annex.
29881         (DSA_Implementation_Name): This enumeration lists the possible
29882         implementations of the Partition Communication Subsystem for the
29883         Distributed Systems Annex (DSA). The three available implementations
29884         are the dummy stub implementation (No_DSA), and two versions based on
29885         two different distribution runtime libraries: GARLIC and PolyORB. Both
29886         the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
29887         technology.
29888         Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
29889         that organization.
29890
29891         * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
29892         between the GARLIC and PolyORB versions of the distributed systems
29893         annex.
29894         Remove RE_Unbounded_Reclaim_Pool since it is unused.
29895
29896 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
29897
29898         * gnat1drv.adb: Suppress calling the back end when
29899         Frontend_Layout_On_Target is true.
29900
29901 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
29902
29903         * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
29904         Set_Read_Only): New subprograms.
29905         These new routines allow the user to set or unset the Owner execute
29906         and Owner write permission flags on a file.
29907
29908         * makegpr.adb, mlib.adb, mlib-prj.adb: Use
29909         GNAT.OS_Lib.Set_Executable instead of rolling our own.
29910
29911 2004-10-26  Matthew Gingell  <gingell@gnat.com>
29912
29913         * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
29914
29915 2004-10-26  Pascal Obry  <obry@gnat.com>
29916
29917         * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
29918         memory before the faulting page we properly test the process read
29919         access for this address using appropriate Win32 routine.
29920         (HPUX sections): guard with "__hpux__" instead of "hpux".
29921
29922 2004-10-26  Robert Dewar  <dewar@gnat.com>
29923
29924         * lib-xref.adb (Generate_Reference): Don't complain about reference to
29925         entry parameter if pragma Unreferenced set, since we do not properly
29926         handle the case of multiple parameters.
29927
29928 2004-10-26  Vincent Celier  <celier@gnat.com>
29929
29930         * prj-env.adb: (Contains_ALI_Files): New Boolean function
29931         (Ada_Objects_Path.Add): For a library project, add to the object path
29932         the library directory only if there is no object directory or if the
29933         library directory contains ALI files.
29934         (Set_Ada_Paths.Add.Recursive_Add): Ditto
29935
29936 2004-10-26  Vincent Celier  <celier@gnat.com>
29937
29938         * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
29939         extension of library projects.
29940
29941         * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
29942         path defaults to ".:<prefix>/lib/gnat".
29943         (Parse): For an extending all project, allow direct import of a project
29944         that is virtually extended.
29945
29946         * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
29947         the specified name is directly imported, return its ID. Otherwise, if
29948         an extension of this project is imported, return the ID of the
29949         extension.
29950
29951 2004-10-26  Robert Dewar  <dewar@gnat.com>
29952
29953         * s-arit64.adb: (Le3): New function, used by Scaled_Divide
29954         (Sub3): New procedure, used by Scaled_Divide
29955         (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
29956         correct more than one instance of failure to propagate carries
29957         correctly.
29958         (Double_Divide): Handle overflow case of largest negative number
29959         divided by minus one.
29960
29961         * s-arit64.ads (Double_Divide): Document that overflow can occur in
29962         the case of a quotient value out of range.
29963         Fix comments.
29964
29965 2004-10-26  Robert Dewar  <dewar@gnat.com>
29966
29967         * s-bitops.adb (Bit_Eq): Remove redundant check.
29968
29969         * s-bitops.ads: Minor comment updates
29970         Change some occurrences of Address to System.Address
29971
29972         * s-carsi8.ads: Fix minor cut-and-paste error in comments
29973
29974 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29975
29976         * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
29977         accessibility check to prefix that is a protected operation.
29978
29979 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29980
29981         * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
29982         empty, post message on stub.
29983
29984 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29985             Javier Miranda  <miranda@gnat.com>
29986
29987         * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
29988         current instance appears within a unit that is directly in the context
29989         of the main unit.
29990         Used to determine whether the body of the instance should be analyzed
29991         immediately after its spec, to make its subprogram bodies available
29992         for front-end inlining.
29993         (Analyze_Formal_Array_Type): Cleanup condition that checks that range
29994         constraint is not allowed on the component type (AARM 12.5.3(3))
29995
29996 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
29997
29998         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
29999         'Storage_Pool): enhance, document & limit detection of non-sharable
30000         internal pools.
30001
30002         * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
30003
30004         * s-pooglo.ads: Add more documentation now that this pool is properly
30005         documented.
30006
30007 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30008
30009         * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
30010         or protected type with discriminants, do not constrain the
30011         corresponding record type if the subtype declaration has no
30012         discriminant constraints. This can be the case in source code, or in
30013         the subtype declaration created to rename an actual type within an
30014         instantiation.
30015
30016 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30017
30018         * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
30019         different kind of stub (possibly wrong name for file), do not check
30020         for conformance.
30021         (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
30022         includes call to some function that returns an unconstrained type, do
30023         not inline.
30024
30025 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
30026
30027         * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
30028         appear in the code for the main unit. Dependencies among units in the
30029         context of the main unit are established when those other units are
30030         compiled. Otherwise spurious elaboration constraints can generate
30031         incorrect elaboration circularities.
30032
30033 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
30034             Ed Schonberg   <schonberg@gnat.com>
30035
30036         * sem_util.adb (Is_Aliased_View): Defend against the case where this
30037         subprogram is called with a parameter that is not an object name. This
30038         situation arises for some cases of illegal code, which is diagnosed
30039         later, and in this case it is wrong to call Is_Aliased, as that might
30040         cause a compiler crash.
30041         (Explain_Limited_Type): Refine previous fix to include
30042         inherited components of derived types, to provide complete information.
30043
30044         * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
30045         is the prival for a protected object.
30046         It is necessary to mark this entity as a variable, in addition to
30047         flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
30048         modified to avoid checking the Aliased flag on entities that are not
30049         objects. (Checking that flag for non-objects is erroneous and could
30050         lead to a compiler crash).
30051
30052 2004-10-26  Robert Dewar  <dewar@gnat.com>
30053
30054         * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
30055         X_Frac = 0.5, then we know that the number X must be positive.
30056         (Succ): Remove the same redundant test, and also fix the primary test
30057         to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
30058         Minor reformatting
30059         (Decompose): Add fuller comments to spec
30060
30061 2004-10-26  Pascal Obry  <obry@gnat.com>
30062
30063         * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
30064         validity (process must have read access). Set to 0 in all other cases.
30065         (STOP_FRAME): Now check for ptr validity to avoid a segmentation
30066         violation on Win32.
30067         (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
30068         segmentation violation.
30069
30070 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
30071
30072         * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
30073         whose type is a constructed subtype of an aliased object with an
30074         unconstrained nominal subtype, convert the actual to the constructed
30075         subtype before taking its address.
30076
30077 2004-10-26  Vincent Celier  <celier@gnat.com>
30078
30079         * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
30080         (Is_Path_Name_Case_Sensitive): New function
30081
30082         * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
30083         (Base_Name, Simple_Name, Current_Directory, Compose,
30084         Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
30085         the result.
30086
30087 2004-10-26  Cyrille Comar    <comar@act-europe.fr>
30088             Vasiliy Fofanov  <fofanov@act-europe.fr>
30089             Vincent Celier   <celier@gnat.com>
30090
30091         * gnat_ugn.texi: Generalize "finding memory problems" section into a
30092         "memory management issues" section and document some of the useful
30093         memory pools provided as part of the GNAT library.
30094         Remove "virtual" from declaration of A::method2 in
30095         the simple example of Ada/C++ mixed system.
30096         Library Projects may be virtually extended: their virtual extensions
30097         are not Library Projects.
30098         Added section on extending project hierarchies.
30099
30100 2004-10-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
30101
30102         * adaint.c (__gnat_get_libraries_from_registry): Cast value
30103         to LPBYTE.
30104         (__gnat_portable_spawn): Remove const.
30105
30106         * mingw32.h (MAXPATHLEN): Check for previous definition.
30107
30108 2004-10-17  Matthias Klose  <doko@debian.org>
30109
30110         * gnatvsn.ads: Set gnat library version to 4.0.
30111
30112 2004-10-05  Vincent Celier  <celier@gnat.com>
30113
30114         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
30115
30116 2004-10-04  Laurent Guerby  <laurent@guerby.net>
30117
30118         PR ada/15156
30119         * Makefile.in: Define and use RANLIB_FLAGS.
30120
30121 2004-10-04  Pascal Obry  <obry@gnat.com>
30122
30123         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
30124         other x86 platforms).
30125
30126 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
30127
30128         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
30129         in general and triggers stack alignment adjustment for thread entry
30130         points on targets where this is necessary.
30131
30132 2004-10-04  Bernard Banner  <banner@gnat.com>
30133
30134         PR ada/13897
30135         * Makefile.in: Add section for powerpc linux
30136         Add variant i-vxwork-x86.ads
30137
30138         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
30139
30140 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
30141
30142         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
30143         table registration calls when need be. Ensures no reference to the crt
30144         ctors symbol are issued in the SJLJ case, which avoids possible
30145         undefined symbol errors in the case of modules to be statically linked
30146         with the kernel.
30147
30148 2004-10-04  Javier Miranda  <miranda@gnat.com>
30149
30150         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
30151         in-line the code corresponding to subprogram Analyze_Actuals. In
30152         addition, analyze the actuals only in case of subprogram call.
30153
30154 2004-10-04  Ed Falis  <falis@gnat.com>
30155
30156         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
30157
30158 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
30159
30160         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
30161         in the documentation.
30162
30163 2004-10-04  Robert Dewar  <dewar@gnat.com>
30164
30165         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
30166         IF and CASE.
30167         (Analyze_Block_Statement): Add circuitry to detect following dead code
30168         (Check_Unreachable_Code): Handle case of block exit
30169
30170 2004-10-04  Robert Dewar  <dewar@gnat.com>
30171
30172         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
30173         (XMatchD): Avoid warning for Logic_Error call
30174
30175 2004-10-04  Robert Dewar  <dewar@gnat.com>
30176
30177         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
30178         consider expressions buried within a procedure actual to be an actual.
30179         This caused some blowups with uses of packed slices within a procedure
30180         actual.
30181
30182 2004-10-04  Robert Dewar  <dewar@gnat.com>
30183
30184         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
30185         longer need to be initialized to zero.
30186         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
30187         initialized to zero.
30188
30189         * checks.adb (Expr_Known_Valid): Packed arrays are now always
30190         considered valid, even if the representation is modular. That's correct
30191         now that we no longer initialize packed modular arrays to zero.
30192
30193         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
30194         suffixes. These are now documented as the only cases in which the
30195         debugger ignores outer records.
30196         Previously, the spec allowed arbitrary suffixes for this purpose.
30197         Change name of LJM to JM for packed array pad records
30198         Create separate section on packed array handling, and add a whole new
30199         set of comments to this section describing the situation with packed
30200         modular types and justification requirements depending on endianness.
30201
30202 2004-10-04  Robert Dewar  <dewar@gnat.com>
30203
30204         * a-except.adb: Add a comment for last change
30205
30206         * einfo.ads: Minor spelling correction in comment
30207
30208         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
30209
30210         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
30211         messages.
30212
30213         * sem_util.ads: Minor comment update
30214
30215 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30216
30217         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
30218         Inline_Always when in Configurable_Run_Time mode.
30219
30220         * sem_prag.adb (Process_Convention): If entity is an inherited
30221         subprogram, apply convention to parent subprogram if in same scope.
30222         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
30223         when in Configurable_Run_Time mode.
30224
30225 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30226
30227         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
30228         class_wide type after component list has been inherited.
30229
30230 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30231
30232         * sem_ch12.adb (Check_Generic_Actuals): New predicate
30233         Denotes_Previous_Actual, to handle properly the case of a private
30234         actual that is also the component type of a subsequent array actual.
30235         The visibility status of the first actual is not affected when the
30236         second is installed.
30237         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
30238         make fully recursive the treatment of formals of packages declared
30239         with a box.
30240         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
30241         the above on exit from an instantiation.
30242         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
30243         current instantiation which is now complete.
30244         (Analyze_Package_Instantiation): No instantiated body is needed if the
30245         main unit is generic. Efficient, and avoid anomalies when a instance
30246         appears in a package accessed through rtsfind.
30247
30248 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30249
30250         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
30251         do not generate a declaration for a temporary if the call is part of a
30252         library-level instantiation.
30253
30254 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30255
30256         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
30257         searching for a limited component to flag.
30258
30259         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
30260         expansion of Input, to account for the fact that the implicit call
30261         generated by the attribute reference must freeze the user-defined
30262         stream subprogram. This is only relevant to 'Input, because it can
30263         appear in an object declaration, prior to the body of the subprogram.
30264
30265         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
30266         expansion can proceed and further errors uncovered.
30267         (Minor clean up): Fix cases of using | instead of \ for continuation
30268         messages.
30269
30270 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30271
30272         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
30273
30274         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
30275         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
30276         Use gcc_assert and gcc_unreachable.
30277
30278         * decl.c (gnat_to_gnu_entity, case object): Check and process a
30279         specified alignment before validating size.
30280         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
30281         stripped-down declaration for the type of the inner field when making
30282         a JM type.
30283
30284         * utils.c (finish_record_type): Do not compute the size in units
30285         incrementally. Instead compute it once for the rep clause case.
30286         Use gcc_assert and gcc_unreachable.
30287
30288 2004-10-04  Vincent Celier  <celier@gnat.com>
30289
30290         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
30291         in file name.
30292         (Is_Valid_Path_Name): Take '/' as a directory separator.
30293
30294 2004-10-04  Vincent Celier  <celier@gnat.com>
30295
30296         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
30297         (Extended_Project) only if Extended_Project is defined, to avoid
30298         assertion error.
30299         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
30300         resolved path.
30301         (Parse_Single_Project): Ditto.
30302
30303         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
30304         Add_To_Project_Path for virtual projects.
30305
30306 2004-10-04  Vincent Celier  <celier@gnat.com>
30307
30308         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30309         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
30310         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
30311         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
30312         parameter Options_2.
30313
30314         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
30315         Build_Dynamic_Library with an empty Options_2.
30316
30317         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
30318         default anymore.
30319
30320         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
30321         directory separator, if any.
30322         (Gprmake): Do not allow mains on the command line for library projects.
30323         Do not attempt to link when the project is a library project.
30324         (Library_Opts): New table to store Library_Options.
30325         (Build_Library): If Library_Options is specified, pass these options
30326         when building a shared library.
30327
30328 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
30329
30330         * s-tposen.adb (Service_Entry): The object must be always unlocked at
30331         the end of this procedure now that the unlock operation was inserted
30332         by the expander.
30333
30334 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
30335
30336         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
30337         corresponding to the Preallocated_Stacks flags in System.
30338         (Get_Target_Parameters): Including the processing for
30339         Preallocated_Stacks.
30340
30341         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
30342         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
30343         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
30344         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
30345         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
30346         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
30347         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
30348         system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
30349         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
30350         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
30351         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
30352         used to signal whether the compiler creates the required stacks and
30353         descriptors for the different tasks (when True) or it is done by the
30354         underlying operating system at run time (when False).
30355         It is initially set to False in all targets.
30356
30357         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
30358         if it is supported by the target.
30359         (Make_Task_Create_Call): Pass the stack address if it has been
30360         previously created. Otherwise pass a Null_Address.
30361
30362         * snames.adb: Add _stack.
30363
30364         * snames.ads: Add Name_uStack. Required to allow the expander to
30365         statically allocated task stacks.
30366
30367         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
30368         Stack_Address argument.
30369         Check that its value is equal to Null_Address because this target does
30370         not support the static stack allocation.
30371
30372 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
30373
30374         * usage.adb: Change "pragma inline" to "pragma Inline" in information
30375         and error messages
30376
30377 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
30378
30379         * exp_dist.adb: Split declaration of asynchronous flag out of
30380         Add_RACW_Read_Attribute.
30381         Minor reformatting for better alignment with PolyORB version.
30382         Store the entity for the asynchronous flag of an RACW, rather than the
30383         expression, in the asynchronous flags table. This will allow this flag
30384         to be used in other subprograms beside Add_RACW_Read_Attribute.
30385
30386 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
30387
30388         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
30389         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
30390         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
30391         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
30392         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
30393         sockets constant MSG_NOSIGNAL (Linux-specific).
30394         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
30395         all Send operations.
30396         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
30397         from trigerring SIGPIPE.
30398         Rename components to avoid clash with Ada 2005 possible reserved
30399         word 'interface'.
30400         (Check_Selector): When the select system call returns with an error
30401         condition, propagate Socket_Error to the caller.
30402
30403 2004-10-01  Jan Hubicka  <jh@suse.cz>
30404
30405         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
30406
30407 2004-09-23  Robert Dewar  <dewar@gnat.com>
30408
30409         PR ada/17540
30410         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
30411         instead do this at freeze time (we won't do it if there is an address
30412         clause).
30413         Change "pragma inline" to "pragma Inline" in information and error
30414         messages.
30415         Minor reformatting.
30416
30417         * freeze.adb (Check_Address_Clause): Remove previous change, not the
30418         right way of doing things after all.
30419         (Freeze_Entity): For object, set Is_Public for imported entities
30420         unless there is an address clause present.
30421
30422 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
30423
30424         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
30425         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
30426         ensures proper handling of types with rep clauses, which might have
30427         their TYPE_SIZE set already.
30428
30429 2004-09-21  Robert Dewar  <dewar@gnat.com>
30430
30431         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
30432         packed array types in both little- and big-endian cases. This change
30433         ensures that we no longer count on the unused bits being initialized
30434         for such types (and in particular ensures that equality testing will
30435         only read the relevant bits).
30436         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
30437         These changes mean that we no longer need to initialize small packed
30438         arrays.
30439         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
30440         optimization to an LJM field as to its parent field.
30441
30442         * ada-tree.h, trans.c, utils.c, utils2.c:
30443         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
30444
30445 2004-09-20  Jan Hubicka  <jh@suse.cz>
30446
30447         * utils.c (gnat_finalize): Remove.
30448         (end_subprog_body): Directly call cgraph_finalize_function;
30449         do not lower the nested functions.
30450
30451 2004-09-20  Robert Dewar  <dewar@gnat.com>
30452
30453         PR ada/17540
30454         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
30455         if an address clause is present, since that means that the Import
30456         should be ignored.
30457
30458 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
30459
30460         * 5tsystem.ads: Removed, no longer used.
30461
30462 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
30463             Zack Weinberg  <zack@codesourcery.com>
30464
30465         * ada-tree.def: Use tree_code_class enumeration constants
30466         instead of code letters.
30467         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
30468         Update for new tree-class enumeration constants.
30469
30470 2004-09-17  Vincent Celier  <celier@gnat.com>
30471
30472         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
30473         capabilities of the general project manager.
30474
30475 2004-09-09  Vincent Celier  <celier@gnat.com>
30476
30477         * a-direct.ads: Add pragma Ada_05
30478         (Directory_Entry_Type): Give default value to component Kind to avoid
30479         not initialized warnings.
30480
30481         * a-direct.adb (Current_Directory): Remove directory separator at the
30482         end.
30483         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
30484         an existing directory.
30485         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
30486         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
30487         Convert the result to File_Size.
30488
30489         * prj.ads: (Project_Error): New exception
30490
30491         * prj-attr.adb: Except in procedure Initialize, Fail comes from
30492         Prj.Com, not from Osint.
30493         (Attrs, Package_Attributes): Tables moved to private part of spec
30494         (Add_Attribute, Add_Unknown_Package): Moved to new child package
30495         Prj.Attr.PM.
30496         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
30497         Prj.Project_Error after call to Fail.
30498         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
30499         Fail. Check that package name is not already in use.
30500
30501         * prj-attr.ads: Comment updates to indicate that all subprograms may be
30502         used by tools, not only by the project manager, and to indicate that
30503         exception Prj.Prj_Error may be raised in case of problem.
30504         (Add_Unknown_Package, Add_Attribute): Moved to new child package
30505         Prj.Attr.PM.
30506         (Attrs, Package_Attributes): Table instantiations moved from the body to
30507         the private part to be accessible from Prj.Attr.PM body.
30508
30509         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
30510         from new package Prj.Attr.PM.
30511         (Parse_Attribute_Declaration): Call Add_Attribute from new package
30512         Prj.Attr.PM.
30513
30514         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
30515
30516         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
30517         instead of Elaboration_Checks).
30518
30519         * a-calend.adb: Minor reformatting
30520
30521 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30522
30523         * gigi.h (maybe_pad_type): New declaration.
30524         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
30525
30526         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
30527
30528         * cuintp.c: Convert to use buildN.
30529
30530         * decl.c (maybe_pad_type): No longer static.
30531         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
30532         target pointer.
30533         Convert to use buildN.
30534
30535         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
30536         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
30537         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
30538         RHS.
30539         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
30540         (gnat_gimplify_expr, case ADDR_EXPR): New case.
30541         Convert to use buildN.
30542
30543         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
30544         TREE_READONLY for const.
30545         Convert to use buildN.
30546
30547         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
30548         (create_var_decl): Refine when TREE_STATIC is set.
30549         Convert to use buildN.
30550
30551 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
30552
30553         * gnat_ugn.texi: Delete text relating to checking of ali and object
30554         consistency.
30555
30556         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
30557         routines.
30558
30559 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
30560
30561         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
30562         pragmas recognized by GNAT.
30563
30564         * gnat_rm.texi: Document pragma Detect_Blocking.
30565
30566         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
30567         raise Program_Error if called from a protected operation.
30568
30569         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
30570         the protected action nesting level.
30571         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
30572         protected action nesting level.
30573         (Unlock): When pragma Detect_Blocking is active decrease the protected
30574         action nesting level.
30575
30576         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
30577         Protected_Action_Nesting.
30578
30579         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
30580         Common_ATCB record. It contains the dynamic level of protected action
30581         nesting for each task. It is needed for checking whether potentially
30582         blocking operations are called from protected operations.
30583         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
30584         Detect_Blocking is active or not in the partition.
30585
30586         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
30587         raise Program_Error if called from a protected operation.
30588         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
30589         Program_Error if called from a protected operation.
30590         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
30591         Program_Error if called from a protected operation.
30592
30593         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
30594         raise Program_Error if called from a protected operation.
30595
30596         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
30597         raise Program_Error if called from a protected operation, and increase
30598         the protected action nesting level.
30599         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
30600         Program_Error if called from a protected operation, and increase the
30601         protected action nesting level.
30602         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
30603         protected action nesting level.
30604
30605         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
30606         raise Program_Error if called from a protected operation, and increase
30607         the protected action nesting level.
30608         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
30609         Program_Error if called from a protected operation, and increase the
30610         protected action nesting level.
30611         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
30612         raise Program_Error if called from a protected operation.
30613         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
30614         active, raise Program_Error if called from a protected operation.
30615         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
30616         protected action nesting level.
30617
30618         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
30619         insertion of the statement raising Program_Error. The run time
30620         contains the required machinery for handling that.
30621
30622         * sem_util.ads: Change comment associated to procedure
30623         Check_Potentially_Blocking_Operation.
30624         This procedure does not insert a call for raising the exception because
30625         that is currently done by the run time.
30626
30627         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
30628
30629         * init.c: Add the global variable __gl_detect_blocking that indicates
30630         whether pragma Detect_Blocking is active (1) or not (0). Needed for
30631         making the pragma available at run time.
30632         (__gnat_set_globals): Pass and update the detect_blocking parameter.
30633
30634         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
30635         pragma Detect_Blocking is active.
30636
30637         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
30638
30639         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
30640         DB is found in the ali file. Any unit compiled with pragma
30641         Detect_Blocking active forces its effect in the whole partition.
30642
30643         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
30644         Detect_Blocking is active and delay is called from a protected
30645         operation.
30646
30647         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
30648         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
30649         Detect_Blocking is active (0 otherwise).
30650         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
30651         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
30652         otherwise).
30653
30654 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
30655
30656         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
30657         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
30658         package.
30659
30660         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
30661         (Register_Receiving_Stub): Add Subp_Info formal parameter.
30662         Update API in placeholder implemetation of s-parint to reflect changes
30663         in distribution runtime library.
30664
30665         * sem_ch3.adb (Expand_Derived_Record): Rename to
30666         Expand_Record_Extension.
30667
30668         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
30669         primitive operations of potentially distributed object types that have
30670         non-controlling anonymous access formals.
30671
30672         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
30673         subprogram.
30674         New implementation of expansion for remote access-to-subprogram types,
30675         based on the RACW infrastructure.
30676         This version of sem_dist is compatible with PolyORB/DSA as well as
30677         GLADE.
30678
30679         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
30680         Asynchrronous that applies to a remote access-to-subprogram type, mark
30681         the underlying RACW type as asynchronous.
30682
30683         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
30684          __gnat_using_gnu_linker to 1.
30685
30686         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
30687         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
30688         GNAT.Perfect_Hash_Generators, and remove the empty
30689         GNAT.Perfect_Hash package.
30690
30691         * atree.adb: Minor reformatting
30692
30693         * exp_ch3.adb (Expand_Derived_Record): Rename to
30694         Expand_Record_Extension.
30695         (Build_Record_Init_Proc.Build_Assignment): The default expression in
30696         a component declaration must remain attached at that point in the
30697         tree so New_Copy_Tree copies it if the enclosing record type is derived.
30698         It is therefore necessary to take a copy of the expression when building
30699         the corresponding assignment statement in the init proc.
30700         As a side effect, in the case of a derived record type, we now see the
30701         original expression, without any rewriting that could have occurred
30702         during expansion of the ancestor type's init proc, and we do not need
30703         to go back to Original_Node.
30704
30705         * exp_ch3.ads (Expand_Derived_Record): Rename to
30706         Expand_Record_Extension.
30707
30708         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
30709         Returns the RACW type used to implement a remote access-to-subprogram
30710         type.
30711         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
30712         New subprograms. Used to create a proxy tagged object for a remote
30713         subprogram. The proxy object is used as the designated object
30714         for RAS values on the same partition (unless All_Calls_Remote applies).
30715         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
30716         System.Partition_Interface.Get_Unique_Remote_Pointer.
30717         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
30718         Renamed from Add_RAS_*_Attribute.
30719         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
30720         subprograms.
30721         New implementation of expansion for remote access-to-subprogram types,
30722         based on the RACW infrastructure.
30723
30724         * exp_dist.ads (Copy_Specification): Update comment to note that this
30725         function can copy the specification from either a subprogram
30726         specification or an access-to-subprogram type definition.
30727
30728 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
30729
30730         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
30731         in an instance, between an explicit subprogram an one inherited from a
30732         type derived from an actual.
30733
30734         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
30735         add a polling call if the subprogram is to be inlined by the back-end,
30736         to avoid repeated calls with multiple inlinings.
30737
30738         * checks.adb (Apply_Alignment_Check): If the expression in the address
30739         clause is a call whose name is not a static entity (e.g. a dispatching
30740         call), treat as dynamic.
30741
30742 2004-09-09  Robert Dewar  <dewar@gnat.com>
30743
30744         * g-trasym.ads: Minor reformatting
30745
30746         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
30747         packed arrays, since unused bits are expected to be zero for a
30748         comparison.
30749
30750 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
30751
30752         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
30753         comment.
30754
30755 2004-09-09  Pascal Obry  <obry@gnat.com>
30756
30757         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
30758         enable map file generation. Add the right option to generate the map
30759         file if Map_File is set to True.
30760
30761         * gnatdll.adb (Gen_Map_File): New variable.
30762         (Syntax): Add info about new -m (Map_File) option.
30763         (Parse_Command_Line): Add support for -m option.
30764         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
30765         Minor reformatting.
30766
30767 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
30768
30769         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
30770         new gnatdist implementation.
30771         Define a subpackage isolating the output routines specific to this
30772         verbose mode.
30773
30774 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
30775
30776         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
30777
30778         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
30779
30780 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
30781
30782         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
30783         internal unit.
30784
30785         * opt.ads: Add Ada_Version_Runtime constant used to decide which
30786         version of the language is used to compile the run time.
30787
30788 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
30789
30790         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
30791         of variable length temporaries for function return now that the
30792         back-end and gigi support it.
30793
30794 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30795
30796         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
30797
30798         * trans.c (struct stmt_group): Delete field GLOBAL.
30799         (gnat_init_stmt_group): Do not initialize it.
30800         (call_to_gnu): Use save_expr, not protect_multiple_eval.
30801         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
30802         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
30803         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
30804         (start_stmt_group): Likewise.
30805         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
30806
30807         * utils2.c (ggc.h): Include.
30808         (build_call_raise): Call build_int_cst, not build_int_2.
30809
30810         * utils.c (gnat_init_decl_processing): Fix arg to
30811         build_common_tree_nodes.
30812         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
30813         (gnat_define_builtin): Set built_in_decls.
30814         (init_gigi_decls): Call build_int_cst, not build_int_2.
30815
30816         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
30817         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
30818         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
30819         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
30820         SET_TYPE_MODULE): Use them.
30821         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
30822         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
30823         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
30824         SET_TYPE_ADA_SIZE): Likewise.
30825         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
30826         (DECL_CONST_CORRESPONDING_VAR,
30827         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
30828         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
30829         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
30830         (TYPE_RM_SIZE_NUM): New macro.
30831         (TYPE_RM_SIZE): Modified to use above.
30832
30833         * cuintp.c: (build_cst_from_int): New function.
30834         (UI_To_gnu): Use it.
30835
30836         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
30837         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
30838         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
30839         MIN_EXPR for the size, copy it into new.
30840
30841 2004-09-01  Robert Dewar  <dewar@gnat.com>
30842
30843         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
30844         packed indexed component where array is an IN OUT formal. This
30845         generated garbage code previously.
30846
30847         * gnat_ugn.texi: Document -fverbose-asm
30848
30849         * gnat-style.texi: Minor updates (note that boolean constants and
30850         variables are joined with AND/OR rather than short circuit forms).
30851
30852 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
30853
30854         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
30855         it is an upward conversion of an untagged type with no representation
30856         change.
30857
30858 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
30859
30860         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
30861         System.Partition_Interface.
30862
30863         * checks.adb (Apply_Access_Checks): Do not generate checks when
30864         expander is not active (but check for unset reference to prefix of
30865         dereference).
30866
30867         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
30868         pragma Debug as an if statement with a constant condition, for
30869         consistent treatment of entity references contained within the
30870         enclosed procedure call.
30871
30872 2004-09-01  Vincent Celier  <celier@gnat.com>
30873
30874         * bindgen.adb: (Set_EA_Last): New procedure
30875         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
30876         Set_EA_Last.
30877         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
30878         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
30879         linked without errors.
30880         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
30881         ST and EA.
30882         (Gen_Exception_Table_C): Correct same bugs
30883
30884         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
30885
30886         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
30887         on Windows, make sure that the drive letter is in upper case.
30888
30889         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
30890         Windows, when the drive letter is added and Case_Sensitive is True, the
30891         drive letter is forced to upper case.
30892
30893         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
30894         to Options_2 for the call to MLib.Utl.Gcc.
30895
30896         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
30897         directory separator when defining BASE_DIR.
30898
30899 2004-09-01  Pascal Obry  <obry@gnat.com>
30900
30901         * gprcmd.adb (Extend): Do not output trailing directory separator. This
30902         is not needed and it confuses Windows GNU/make which does not report
30903         directory terminated by a slash as a directory.
30904         (gprcmd): Idem for "pwd" internal command.
30905
30906         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
30907         target names rewrite to fix regressions with recent version of
30908         GNU/make. Starting with GNU/make 3.80 the pipe character was not
30909         handled properly anymore.
30910
30911 2004-09-01  Andreas Schwab  <schwab@suse.de>
30912
30913         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
30914         * raise.c [!IN_RTS]: Undef abort.
30915
30916 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
30917
30918         * utils2.c (build_allocator): Use ssize_int.
30919
30920         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
30921
30922 2004-08-27  Andreas Schwab  <schwab@suse.de>
30923
30924         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
30925
30926 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
30927             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30928
30929         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
30930
30931 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
30932
30933         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
30934         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
30935         * utils.c (init_gigi_decls): Likewise.
30936         * utils2.c (build_call_raise, build_allocator): Likewise.
30937
30938 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
30939
30940         * utils.c (gnat_init_decl_processing): Adjust
30941         build_common_tree_nodes call.
30942
30943 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
30944
30945         * utils2.c (build_allocator): Use build_int_cst for negative
30946         size types.
30947
30948 2004-08-18  Richard Henderson  <rth@redhat.com>
30949
30950         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
30951
30952 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
30953
30954         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
30955         call.s
30956         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
30957         (gnat_to_gnu): Likewise.
30958
30959 2004-08-16  Pascal Obry  <obry@gnat.com>
30960
30961         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
30962         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
30963         option and not mdll anymore. Update comment.
30964
30965 2004-08-16  Pascal Obry  <obry@gnat.com>
30966
30967         * bld.adb (Put_Include_Project): Properly handle directory separators
30968         on Windows.
30969
30970 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
30971
30972         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
30973         decreasing the number of allocated junk nodes while searching for the
30974         appropriate subprogram.
30975
30976 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
30977
30978         * cuintp.c (UI_To_gnu): Use build_int_cst..
30979         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
30980         * utils.c (init_gigi_decls): Likewise.
30981         * utils2.c (build_call_raise): Likewise.
30982
30983 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
30984
30985         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
30986         for a global aliased object with a variable size and an unconstrained
30987         nominal subtype, pretend there is no initializer if the one we have is
30988         incomplete, and avoid referencing an inexistant component in there. The
30989         part we have will be rebuilt anyway and the reference may confuse
30990         further operations.
30991
30992 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
30993
30994         * einfo.ads: Minor reformatting
30995
30996         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
30997         restrictions in the ALI if we only want to warn about violations.
30998
30999 2004-08-13  Vincent Celier  <celier@gnat.com>
31000
31001         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
31002         when creating a new Unit_Record in table Units.
31003
31004         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
31005         that are violated, if any.
31006
31007         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
31008         add directory separator if path already ends with a directory separator.
31009
31010 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
31011
31012         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
31013         unit, this is an attempt to inline a construct that is not available in
31014         the current restricted mode, so abort rather than trying to continue.
31015
31016         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
31017         discriminants that rename those of the parent, recover names of
31018         original discriminants for the constraint on the full view of the
31019         parent.
31020         (Complete_Private_Subtype): Do not create a subtype declaration if the
31021         subtype is an itype.
31022
31023         * gnat_rm.texi: Added section on implementation of discriminated
31024         records with default values for discriminants.
31025
31026 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
31027
31028         PR ada/15601
31029         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
31030         the second operand is overloaded.
31031
31032 2004-08-10  Richard Henderson  <rth@redhat.com>
31033
31034         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
31035         add __builtin_alloca.
31036
31037 2004-08-10  Richard Henderson  <rth@redhat.com>
31038
31039         * config-lang.in (boot_language): Yes.
31040
31041 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
31042
31043         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
31044         from complaining on potential uninitialized reference.
31045         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
31046         new specification and test explicitly for non-zero return value.
31047
31048         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
31049         returning C.int, to avoid using a derived boolean type.
31050
31051         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
31052         Duplicate_Subexpr_No_Checks in preference to direct use of
31053         Remove_Side_Effects and New_Copy_Tree.
31054         Clear Comes_From_Source on prefix of 'Size attribute reference.
31055
31056         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
31057         g-socthi-vxworks.adb: Change calls to
31058         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
31059         and test explicitly for non-zero return value.
31060
31061         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
31062         (Is_Socket_In_Set): Declare imported function as returning C.int, to
31063         avoid using a derived boolean type.
31064
31065 2004-08-09  Albert Lee  <lee@gnat.com>
31066
31067         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
31068
31069 2004-08-09  Pascal Obry  <obry@gnat.com>
31070
31071         * gnat_ugn.texi: Document new way to build DLLs on Windows using
31072         GCC's -shared option.
31073
31074         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
31075         Options_2 parameter (options put after object files).
31076
31077 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
31078
31079         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
31080         ignore overflows on low and high bounds of an index to also account for
31081         differences in signedness between sizetype and gnu_index_subtype.
31082         These are as legitimate as the ones caused by a lower TYPE_PRECISION
31083         on sizetype.
31084
31085 2004-08-09  Robert Dewar  <dewar@gnat.com>
31086
31087         * s-solita.ads, s-solita.adb: Minor reformatting
31088
31089         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
31090         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
31091         obsolescent section
31092         Add note that No_Implicit_Conditionals does not suppress
31093         run time constraint checks.
31094
31095         * vms_conv.ads: Minor reformatting
31096
31097         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
31098         and necessary for following change).
31099         (Mark): Return new format Mark_Id containing sec stack address
31100         (Release): Use sec stack address from Mark_Id avoiding Self call
31101
31102         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
31103         pointer (cleanup and necessary for following change).
31104         Define Mark_Id as record containing address of secondary stack, that way
31105         Release does not need to find the stack again, decreasing the number of
31106         calls to Self and improving efficiency.
31107
31108         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
31109
31110         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
31111         case variable into the individual case branches when possible.
31112
31113         * sem_ch11.adb: Minor reformatting
31114
31115         * prj.ads: Correct spelling of suffixs
31116
31117         * prj-nmsc.adb: Minor reformatting
31118         Correct spelling suffixs throughout (also in identifiers)
31119
31120         * freeze.adb: Minor spelling correction
31121
31122         * exp_ch2.adb: Cleanups to handling of Current_Value
31123         (no functional effect).
31124
31125         * bld.adb: Correct spelling of suffixs
31126
31127         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
31128
31129 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
31130
31131         PR ada/15408
31132         * sem_ch7.adb (Install_Private_Declarations): In the body of the
31133         package or of a child, private entities are both immediately_visible
31134         and not hidden.
31135
31136 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
31137
31138         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
31139         there are no range checks on the value of the literal.
31140
31141         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
31142         wrapped is the triggering alternative of an asynchronous select, action
31143         statements mustbe inserted before the select itself.
31144
31145         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
31146         case where the prefix is a protected function call.
31147         (Resolve_Attribute, case 'Access): The attribute reference on a
31148         subprogram is legal in a generic body if the subprogram is declared
31149         elsewhere.
31150
31151 2004-08-09  Vincent Celier  <celier@gnat.com>
31152
31153         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
31154         languages, otherwise building the library may fail with unresolved
31155         symbols.
31156         (Compile_Sources): Do not build libraries if -c switch is used
31157
31158         * gnatlink.adb (Process_Args): New switches -M and -Mmap
31159         (Write_Usage): If map file creation is supported, output new switches
31160         -M and -Mmap.
31161         (Gnatlink): When -M is specified, add the necessary switch(es) to the
31162         gcc call, when supported.
31163
31164         * Makefile.in: Added indepsw.o to the object list for gnatlink
31165         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
31166
31167         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
31168         indepsw.adb, indepsw.ads: New files.
31169
31170 2004-08-09  Bernard Banner  <banner@gnat.com>
31171
31172         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
31173
31174         * Makefile.in: add section for vxworks x86
31175
31176 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
31177
31178         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
31179         per-object constrained components where the discriminant is of an
31180         Access type.
31181         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
31182         the parent initialization procedure for derived Unchecked_Unions.
31183         Instead, derived Unchecked_Unions build their own initialization
31184         procedure.
31185         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
31186         Check the body of the subprogram for details.
31187         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
31188         functions for derived Unchecked_Union types by introducing a condition.
31189         Allow the creation of TSS equality functions for Unchecked_Unions.
31190         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
31191         Add formal parameter Discr to function signature. Discr is used to
31192         control the generated case statement for Unchecked_Union types.
31193         (Make_Eq_If): Rename formal parameter Node to E in function signature.
31194
31195         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
31196         Unchecked_Unions.
31197         Check the body of the subprogram for details.
31198         (Expand_Composite_Equality): Augment composite type equality to include
31199         correct handling of Unchecked_Union components.
31200         (Expand_N_In): Add condition to detect illegal membership tests when the
31201         subtype mark is a constrained Unchecked_Union and the expression lacks
31202         inferable discriminants, and build a Raise_Program_Error node.
31203         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
31204         to detect types that contain components of unconstrained Unchecked_Union
31205         subtype. Add condition to detect equality between types that have an
31206         unconstrained Unchecked_Union component, and build a Raise_Program_Error
31207         node. Add condition to detect equality between Unchecked_Union types
31208         that lack inferable discriminants, and build a Raise_Program_Error node.
31209         Otherwise build a TSS equality function call.
31210         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
31211         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
31212         with the operand lacking inferable discriminants, and build a Raise_
31213         Program_Error node.
31214         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
31215         composite equality.
31216         (Has_Inferable_Discriminants): Implement new predicate for objects and
31217         expressions of Unchecked_Union type. Check the body of subprogram for
31218         details.
31219         (Has_Unconstrained_UU_Components): Add function
31220         Component_Is_Unconstrained_UU. It is used to detect whether a single
31221         component is of an unconstrained Unchecked_Union subtype. Add function
31222         Variant_Is_Unconstrained_UU. It is used to detect whether a single
31223         component inside a variant is of an unconstrained Unchecked_Union type.
31224
31225         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
31226         inferred discriminant values. Add condition to generate a case
31227         statement with an inferred discriminant as the switch.
31228         (Make_Component_List_Assign): Introduce a Boolean flag that determines
31229         the behaviour of the subprogram in the presence of an Unchecked_Union.
31230         Add condition to trigger the usage of the inferred discriminant value
31231         as the generated case statement switch.
31232         (Make_Field_Assign): Introduce a Boolean flag that determines the
31233         behaviour of the subprogram in the presence of an Unchecked_Union. Add
31234         condition to trigger the usage of the inferred discriminant value as
31235         the right-hand side of the generated assignment.
31236
31237         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
31238         parameter generation when dealing with Unchecked_Unions.
31239
31240         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
31241         checks for Unchecked_Unions.
31242
31243         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
31244
31245         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
31246         Raise_Program_Error nodes for the execution of Read and Write
31247         attributes of Unchecked_Union types and the execution of Input and
31248         Output attributes of Unchecked_Union types that lack default
31249         discriminant values.
31250
31251         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
31252         Unchecked_Union. Add procedure Check_Component. It is used to inspect
31253         per-object constrained components of Unchecked_Unions for being
31254         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
31255         check individual components withing a variant.
31256
31257         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
31258         comparison of Unchecked_Unions.
31259         (Resolve_Equality_OP): Remove guard that prevents equality between
31260         Unchecked_Unions.
31261
31262         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
31263         of component subtypes for Unchecked_Union components.
31264         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
31265         since it is the actual subtype.
31266
31267         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
31268         pass of Unchecked_Union subtypes as generic actuals to formal types
31269         that lack known_discriminant_parts or that are derived Unchecked_Union
31270         types, and do nothing. In any other case, produce an error message.
31271
31272         * sem_ch3.adb (Analyze_Component_Declaration): Add function
31273         Contains_POC. It determines whether a constraint uses the discriminant
31274         of an enclosing record type.
31275         Add condition to detect per-object constrained component and set the
31276         appropriate flag.
31277         (Derived_Type_Declaration): Remove guard that prevents derivation from
31278         Unchecked_Union types.
31279         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
31280         Union subtypes.
31281
31282         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
31283         references to Unchecked_Union discriminants.
31284
31285         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
31286         formal generation when dealing with Unchecked_Unions.
31287         (Set_Actual_Subtypes): Add condition to prevent generation of actual
31288         subtypes for Unchecked_Unions.
31289
31290         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
31291         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
31292         completions of discriminated partial views by Unchecked_Unions and
31293         produce an error message.
31294
31295 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31296
31297         * trans.c (struct stmt_group): New field, GLOBAL.
31298         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
31299         (struct elab_info): New struct.
31300         (elab_info_list, gnu_elab_proc_stack): New variables.
31301         (Compilation_Unit_to_gnu): New procedure.
31302         (gigi): Call it and also handle elaboration procs we've saved.
31303         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
31304         global field from parent.
31305         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
31306         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
31307         (start_stmt_group): Initialize global field from parent.
31308         (add_decl_expr): Set to global for current statement group.
31309         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
31310         post.
31311
31312         * utils.c (global_bindings_p): True when no current_function_decl; no
31313         longer check current_binding_level.
31314
31315 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
31316
31317         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
31318         choice.
31319
31320         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
31321
31322 2004-08-06  Andreas Schwab  <schwab@suse.de>
31323
31324         * utils.c (gnat_define_builtin): Remove second parameter of
31325         make_decl_rtl.
31326         (begin_subprog_body): Likewise.
31327
31328 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
31329
31330         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
31331         optimization, not supported by the tree-ssa back-end.
31332
31333 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
31334
31335         * s-mastop-irix.adb: Update comments.
31336
31337         * a-except.adb (Exception_Information): Raise Constraint_Error if
31338         exception Id is Null_Id.
31339         This is required behavior, which is more reliably and clearly checked
31340         at the top level interface level.
31341
31342 2004-07-26  Javier Miranda  <miranda@gnat.com>
31343
31344         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
31345         call if a component has no default_expression and the box is used.
31346
31347         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
31348         default_expression and you use box, it behaves as if you had declared a
31349         stand-alone object.
31350         (Resolve_Record_Aggregate): If a component has no default_expression and
31351         you use box, it behaves as if you had declared a stand-alone object.
31352
31353         * sem_ch10.adb (Install_Siblings): Do not make visible the private
31354         entities of private-with siblings.
31355
31356 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
31357
31358         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
31359         for a component of an itype, set the parent pointer for analysis,
31360         there is no list in which to insert it.
31361
31362         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
31363         bona-fide renamings, not for inherited operations.
31364
31365         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
31366         actual for a formal that is an access parameter, create local
31367         finalization list even if the expression is not an aggregate.
31368
31369 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
31370
31371         PR ada/16213
31372         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
31373         Diagnose properly illegal subprogram renamings that are library units.
31374
31375 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
31376
31377         PR ada/15588
31378         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
31379         conversion rewritten as an unchecked conversion, check that original
31380         expression is a variable.
31381
31382         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
31383         unchecked_conversion, create new node rather than rewriting in place,
31384         to preserve original construct.
31385
31386 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31387
31388         * gigi.h (gnat_expand_body): Deleted.
31389
31390         * Make-lang.in: (trans.o): Depends on function.h.
31391
31392         * misc.c: (gnat_expand_body): Moved to here.
31393
31394         * trans.c (gnat_expand_body_1): Deleted.
31395         (gnat_expand_body): Moved from here.
31396         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
31397         (add_stmt): Check for marked visited with global_bindings_p.
31398         (gnat_gimplify_expr, case COMPONENT_REF): New case.
31399         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
31400
31401         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
31402         VIEW_CONVERT_EXPR if not operation type.
31403
31404         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
31405         fat pointer.
31406
31407         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
31408         changes: reformatting of negation operators, removing unneeded
31409         inequality comparison with zero, converting equality comparisons with
31410         zero to negations, changing int/0/1 to bool/false/true, replace calls
31411         to gigi_abort with abort, and various other similar changes.
31412
31413 2004-07-26  Vincent Celier  <celier@gnat.com>
31414
31415         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
31416         "setup".
31417
31418         * make.adb (Gnatmake): Fail when a library is not present and there is
31419         no object directory.
31420
31421         * mlib-prj.adb (Check_Library): No need to check if the library needs
31422         to be rebuilt if there is no object directory, hence no object files
31423         to build the library.
31424
31425         * opt.ads (Setup_Projects): New Boolean flag.
31426
31427         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
31428         Location.
31429         Create directory when Kind /= "" and in "gnat setup". Report error if
31430         directory cannot be created.
31431         (Ada_Check): Create library interface copy dir if it does not exist
31432         and we are in "gnat setup".
31433         (Find_Sources): No error if in "gnat setup" and no Ada sources were
31434         found.
31435         (Language_Independent_Check): Create object directory, exec directory
31436         and/or library directory if they do not exist and we are in
31437         "gnat setup".
31438
31439         * vms_conv.ads: (Command_Type): New command Setup.
31440
31441         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
31442
31443         * vms_data.ads: Add qualifiers/switches for new built-in command
31444         "setup".
31445
31446 2004-07-25  Richard Henderson  <rth@redhat.com>
31447
31448         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
31449         DECL_IGNORED_P on RESULT_DECL.
31450
31451 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
31452
31453         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
31454         allocation and potentially overflowing update with
31455         Tailored_Exception_Information. Use the sec-stack free procedural
31456         interface to output Exception_Information instead.
31457
31458         * a-except.adb (To_Stderr): New subprogram for character, and string
31459         version moved from a-exextr to be visible from other separate units.
31460         (Tailored_Exception_Information): Remove the procedural version,
31461         previously used by the default Last_Chance_Handler and not any more.
31462         Adjust various comments.
31463
31464         * a-exexda.adb: Generalize the exception information procedural
31465         interface, to minimize the use of secondary stack and the need for
31466         local buffers when the info is to be output to stderr:
31467         (Address_Image): Removed.
31468         (Append_Info_Character): New subprogram, checking for overflows and
31469         outputing to stderr if buffer to fill is of length 0.
31470         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
31471         (Append_Info_Address, Append_Info_Exception_Name,
31472         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
31473         Append_Info_Basic_Exception_Traceback,
31474         Append_Info_Exception_Information): New subprograms.
31475         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
31476         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
31477         Exception_Info_Maxlength, Exception_Name_Length,
31478         Exception_Message_Length): New subprograms.
31479         (Exception_Information): Use Append_Info_Exception_Information.
31480         (Tailored_Exception_Information): Use
31481         Append_Info_Basic_Exception_Information.
31482         Export services for the default Last_Chance_Handler.
31483
31484         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
31485         other separate units.
31486
31487 2004-07-20  Vincent Celier  <celier@gnat.com>
31488
31489         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
31490
31491 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
31492
31493         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
31494         emit itype references for the designated types of component types that
31495         are declared outside of the full record declaration, and that may
31496         denote a partial view of that record type.
31497
31498 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
31499
31500         PR ada/15607
31501         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
31502         which is the designated type in an access component declaration, to the
31503         list of incomplete dependents of the parent type, to avoid elaboration
31504         issues with out-of-scope subtypes.
31505         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
31506         full view of the parent.
31507
31508 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
31509
31510         PR ada/15610
31511         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
31512         entities that are hidden, such as references to generic actuals
31513         outside an instance.
31514
31515 2004-07-20  Javier Miranda  <miranda@gnat.com>
31516
31517         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
31518         support to the new notation.
31519         (Analyze_Selected_Component): Add call to Try_Object_Operation.
31520
31521 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
31522
31523         * s-taprob.adb: Adding the elaboration code required for initializing
31524         the tasking soft links that are common to the full and the restricted
31525         run times.
31526
31527         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
31528         restricted run time has been moved to the package
31529         System.Soft_Links.Tasking.
31530
31531         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
31532         restricted run time has been moved to the package
31533         System.Soft_Links.Tasking.
31534
31535         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
31536
31537         * s-solita.ads, s-solita.adb: New files.
31538
31539 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31540
31541         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
31542         Case_Statement_to_gnu): Split off from gnat_to_gnu.
31543         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
31544         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
31545         Exception_Handler_to_gnu_zcx): Likewise.
31546
31547 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
31548
31549         * gigi.h (builtin_function): Declare.
31550
31551 2004-07-15  Robert Dewar  <dewar@gnat.com>
31552
31553         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
31554         reformatting
31555
31556         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
31557         access values as an example of a warning.
31558
31559         * gnat_rm.texi: Document new attribute Has_Access_Values
31560
31561         * gnat-style.texi: Document that box comments belong on nested
31562         subprograms
31563
31564         * sem_util.ads (Has_Access_Values): Improved documentation
31565
31566         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
31567
31568         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
31569         (Process_Interface_Name): Call to this new procedure
31570         (Set_Extended_Import_Export_External_Name): Call to this new procedure
31571
31572         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
31573
31574         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
31575
31576         * einfo.ads: Minor comment typo fixed
31577
31578 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
31579
31580         * snames.adb: Add _atcb.
31581
31582         * snames.ads: Add Name_uATCB.
31583
31584         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
31585         (in the expanded code) when using the restricted run time.
31586
31587         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
31588         a in parameter in order to allow ATCBs to be preallocated (in the
31589         expanded code).
31590
31591         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
31592         order to allow ATCBs to be preallocated. In case of error, the ATCB is
31593         deallocated in System.Tasking.Stages.
31594
31595         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
31596         order to allow ATCBs to be preallocated.
31597
31598         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
31599         here. It was previously done in Initialize_ATCB.
31600
31601         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
31602
31603         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
31604         Restricted run time.
31605
31606         * exp_ch3.adb: When using the Restricted run time, pass the
31607         preallocated Ada_Task_Control_Block when creating a task.
31608
31609 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
31610
31611         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
31612         function call that is itself an actual in an enclosing call, diagnose
31613         problem here rather than assuming that resolution will catch it.
31614
31615         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
31616         the local copy of a generic unit for a formal package, and the generic
31617         is a child unit, install private part of ancestors before compiling
31618         private part of spec.
31619
31620         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
31621         use scope entities rather than tree structures, to handle properly
31622         parent units that are instances rewritten as bodies for inlining
31623         purposes.
31624
31625         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
31626         Remove_Parents): Handle properly a parent unit that is an
31627         instantiation, when the unit has been rewritten as a body for inlining
31628         purposes.
31629
31630         * par.adb (Goto_List): Global variable to collect goto statements in a
31631         given unit, for use in detecting natural loops.
31632
31633         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
31634         use in detecting natural loops.
31635
31636         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
31637         backwards goto's, and rewrite as a infinite loop, to improve locality
31638         of temporaries.
31639
31640         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
31641         subcomponent that includes an indexed reference, to prevent the
31642         generation of copies that would miscompile the desired assignment
31643         statement.
31644         (Build_Task_Image_Decls): Add a numeric suffix to
31645         generated name for string variable, to avoid spurious conflicts with
31646         the name of the type of a single protected object.
31647
31648         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
31649         loop with an explicit exit statement, to avoid generating an
31650         out-of-range value with 'Succ leading to spurious constraint_errors
31651         when compiling with -gnatVo.
31652
31653 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
31654
31655         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
31656         might not be analyzed yet, even if its Etype is already set (case of an
31657         unchecked conversion built using Unchecked_Convert_To, for example).
31658         If the prefix has already been analyzed, this will be a nop anyway.
31659
31660         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
31661         controller type, or an assignment of a record type with controlled
31662         components, copy only user data, and leave the finalization chain
31663         pointers untouched.
31664
31665 2004-07-15  Vincent Celier  <celier@gnat.com>
31666
31667         * make.adb (Collect_Arguments): Improve error message when attempting
31668         to compile a source not part of any project, when -x is not used.
31669
31670         * prj.ads: (Defined_Variable_Kind): New subtype
31671
31672         * prj-attr.adb (Register_New_Package): Two new procedures to register
31673         a package with or without its attributes.
31674         (Register_New_Attribute): Mew procedure to register a new attribute in a
31675         package.
31676         New attribute oriented subprograms: Attribute_Node_Id_Of,
31677         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
31678         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
31679         Next_Attribute.
31680         New package oriented subprograms: Package_Node_Id_Of,
31681         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
31682
31683         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
31684         type.
31685         (Package_Node_Id): Now a private, self initialized type
31686         (Register_New_Package): New procedure to register a package with its
31687         attributes.
31688         New attribute oriented subprograms: Attribute_Node_Id_Of,
31689         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
31690         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
31691         Next_Attribute.
31692         New package oriented subprograms: Package_Node_Id_Of,
31693         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
31694
31695         * prj-dect.adb (Parse_Attribute_Declaration,
31696         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
31697
31698         * prj-makr.adb (Make): Parse existing project file before creating
31699         other files. Fail if there was an error during parsing.
31700
31701         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
31702         new spec of Prj.Attr.
31703
31704         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
31705         to new spec of Prj.Attr.
31706
31707 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31708
31709         * utils2.c: Fix typo in comment.
31710
31711 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31712
31713         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
31714         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
31715
31716 2004-07-14  Andreas Schwab  <schwab@suse.de>
31717
31718         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
31719
31720 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31721
31722         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
31723         object type.
31724         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
31725         TYPE_STUB_DECL.
31726
31727         * misc.c (gnat_types_compatible_p): New function.
31728         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
31729         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
31730
31731         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
31732         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
31733         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
31734         (mark_visited): Don't mark dummy type.
31735         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
31736         parameter, we must remove any LJM building from GNU_NAME.
31737         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
31738         (pos_to_constructor): Use int_const_binop.
31739         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
31740         PARM_DECL.
31741
31742         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
31743         (gnat_pushlevel): Set TREE_USE on BLOCK node.
31744         (gnat_install_builtins): Add __builtin_memset.
31745
31746 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
31747
31748         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
31749         for a renaming, stabilize the initialization expression if we are at a
31750         local level.  At the local level, uses of the renaming may be performed
31751         by a direct dereference of the initializing expression, and we don't
31752         want possible variables there to be evaluated for every use.
31753
31754         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
31755         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
31756         them on the way.  Account for the fact that we may introduce side
31757         effects in the process.
31758
31759 2004-07-13  Richard Henderson  <rth@redhat.com>
31760
31761         * misc.c (default_pass_by_ref): Use pass_by_reference.
31762
31763 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
31764
31765         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
31766         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
31767
31768 2004-07-08  Richard Henderson  <rth@redhat.com>
31769
31770         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
31771         commentary.
31772
31773 2004-07-06  Vincent Celier  <celier@gnat.com>
31774
31775         * vms_conv.ads: Minor reformatting.
31776         Alphabetical order for enumerated values of type Command_Type, to have
31777         the command in alphabetical order for the usage.
31778
31779         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
31780         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
31781
31782         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
31783
31784         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
31785         (Add_Archive_Path): Only add the global archive if there is one.
31786         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
31787         or not any object file to put in the global archive, and don't build
31788         a global archive if there is none.
31789         (X_Switches): New table
31790         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
31791         in the X_Switches table, if any.
31792         (Initialize): Make sure the X_Switches table is empty
31793         (Scan_Arg): Record -X switches in table X_Switches
31794
31795         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
31796
31797         * make.adb: Minor comment fix
31798
31799         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
31800         invoked with directory information, add the directory in front of the
31801         path.
31802
31803         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
31804         invoked with directory information, add the directory in front of the
31805         path.
31806
31807         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
31808         when Keep_Temporary_Files is False.
31809         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
31810         directory information, add the directory in front of the path.
31811         When not on VMS, handle new switch -dn before the command to set
31812         Keep_Temporary_Files to True.
31813         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
31814         everywhere.
31815
31816         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
31817         invoked with directory information, add the directory in front of the
31818         path.
31819
31820 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
31821
31822         * snames.ads, snames.adb (Name_Stub): New name for the distributed
31823         systems annex.
31824
31825         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
31826         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
31827
31828         * g-socket.adb (To_Timeval): Fix incorrect conversion of
31829         Selector_Duration to Timeval for the case of 0.0.
31830
31831         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
31832         documentation from Evolve_And_Then.
31833
31834 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
31835
31836         * s-taprop-tru64.adb, s-taprop-os2.adb,
31837         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
31838
31839 2004-07-06  Robert Dewar  <dewar@gnat.com>
31840
31841         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
31842         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
31843         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
31844         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
31845         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
31846         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
31847         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
31848         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
31849         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
31850         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
31851         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
31852         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
31853         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
31854         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
31855         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
31856         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
31857         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
31858         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
31859         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
31860         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
31861         vms_data.ads: Minor reformatting,
31862         Fix bad box comment format.
31863
31864         * gnat_rm.texi: Fix minor grammatical error
31865
31866         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
31867
31868         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
31869         more cases of discriminated records to be recognized as not needing a
31870         secondary stack.
31871         (Has_Access_Values): New function.
31872
31873         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
31874
31875         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
31876         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
31877         with LRM terminology).
31878         Change terminology in comments primitive type => elementary type.
31879
31880 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
31881
31882         PR ada/15602
31883         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
31884         parameters do not impose any requirements on the presence of a body.
31885
31886 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
31887
31888         PR ada/15593
31889         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
31890         compilation unit and is in an open scope at the point of instantiation,
31891         assume that a body may be present later.
31892
31893 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
31894
31895         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
31896         Improve error message when specified size is not supported.
31897
31898         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
31899         is never a primitive operation.
31900
31901 2004-07-05  Andreas Schwab  <schwab@suse.de>
31902
31903         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
31904         RECORD_OR_UNION_CHECK.
31905         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
31906
31907 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
31908
31909         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
31910         dependency on xgnatugn, instead build it via a submake.
31911         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
31912
31913 2004-07-04  Richard Henderson  <rth@redhat.com>
31914
31915         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
31916
31917 2004-07-01  Richard Henderson  <rth@redhat.com>
31918
31919         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
31920         * utils.c (max_size): Likewise.
31921
31922 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31923
31924         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
31925         and rest_of_type_compilation; add arg to create_*_decl.
31926         (annotate_decl_with_node): Deleted.
31927         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
31928         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
31929         (get_current_block_context, gnat_pushdecl): New declarations.
31930         (gnat_init_stmt_group): Likewise.
31931         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
31932         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
31933         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
31934         (gnat_init): Call gnat_init_stmt_group.
31935         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
31936         (gnu_pending_elaboration_list): Deleted.
31937         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
31938         (gigi): Rearrange initialization calls and move some to last above.
31939         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
31940         Delete calls to add_decl_expr; add arg to create_*_decl.
31941         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
31942         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
31943         begin_subprog_body and call it.
31944         Don't push and pop ggc context.
31945         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
31946         (add_stmt): Remove handling of DECL_EXPR from here.
31947         If not in function, mark visited.
31948         (add_decl_expr): Put global at top level.
31949         Check for cases of DECL_INITIAL we have to handle here.
31950         (process_type): Add extra arg to create_type_decl.
31951         (build_unit_elab): Rework to just gimplify.
31952         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
31953         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
31954         (get_pending_elaborations, pending_elaborations_p): Likewise.
31955         (push_pending_elaborations, pop_pending_elaborations): Likewise.
31956         (get_elaboration_location, insert_elaboration_list): Likewise.
31957         (gnat_binding_level): Renamed from ada_binding_level.
31958         (init_gnat_to_gnu): Don't clear pending_elaborations.
31959         (global_bindings_p): Treat as global if no current_binding_level.
31960         (set_current_block_context): New function.
31961         (gnat_pushdecl): Renamed from pushdecl; major rework.
31962         All callers changed.
31963         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
31964         (finish_record_type): Call call pushdecl for stub decl.
31965         (function_nesting_depth): Deleted.
31966         (begin_subprog_body): Delete obsolete code.
31967         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
31968
31969 2004-06-28  Robert Dewar  <dewar@gnat.com>
31970
31971         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
31972         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
31973         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
31974         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
31975         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
31976
31977         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
31978         deal with problem of inefficient slices on machines with strict
31979         alignment, when the slice is a component of a composite.
31980
31981         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
31982         machines, we need the check there as well.
31983
31984 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
31985
31986         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
31987         determine safe copying direction for overlapping slice assignments
31988         when component is controlled.
31989
31990         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
31991         formal derived type in the actual for a formal package are visible in
31992         the enclosing instance.
31993
31994 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
31995
31996         PR ada/15600
31997         * sem_util.adb (Trace_Components): Diagnose properly an illegal
31998         circularity involving a private type whose completion includes a
31999         self-referential component.
32000         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
32001         renaming or an instantiation from an implicit derived operation.
32002
32003 2004-06-28  Pascal Obry  <obry@gnat.com>
32004
32005         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
32006         DLL.
32007         (Library_File_Name_For): Idem.
32008
32009 2004-06-28  Matthew Gingell  <gingell@gnat.com>
32010
32011         * g-traceb.ads: Add explanatory note on the format of addresses
32012         expected by addr2line.
32013
32014 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
32015
32016         * Makefile.in: Force debugging information on s-tasdeb.adb,
32017         a-except.adb and s-assert.adb needed by the debugger.
32018
32019 2004-06-28  Vincent Celier  <celier@gnat.com>
32020
32021         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
32022         Need_To_Build_Lib.
32023         (Gnatmake): Ditto.
32024
32025         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
32026
32027         * prj.adb: Minor reformatting
32028         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
32029
32030         * prj.ads: Comment updates
32031         Minor reformatting
32032         (Project_Data): Change Flag1 to Need_To_Build_Lib.
32033         Remove Flag2: not used.
32034
32035         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
32036         declaration.
32037
32038         * gnat_ugn.texi: Put a "null;" declaration in one project file example
32039
32040         * gnat_rm.texi: Document Empty declarations "null;".
32041
32042         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
32043         front of the linker options.
32044         (Link_Foreign): Put the global archives and the libraries in front of
32045         the linker options.
32046
32047 2004-06-28  Javier Miranda  <miranda@gnat.com>
32048
32049         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
32050         (RTU_Loaded): Code cleanup
32051         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
32052         withed predefined units.
32053
32054         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
32055         explicitly withed predefined units.
32056         Fix typo in comment
32057
32058         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
32059         explicitly withed predefined units.
32060
32061 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32062
32063         * ada-tree.def (DECL_STMT): Deleted.
32064         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
32065         (DECL_STMT_VAR): Deleted.
32066         * decl.c: add_decl_stmt now add_decl_expr.
32067         * gigi.h: Likewise.
32068         * trans.c: Likewise.
32069         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
32070         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
32071         (add_stmt): Only handle padded type here.
32072         (add_stmt_with_node): Allow gnat_node to not be present.
32073         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
32074         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
32075         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
32076         make a SAVE_EXPR for the entire fat pointer.
32077         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
32078         (create_index_type): Make a DECL_EXPR.
32079         (end_subprog_body): Don't call allocate_struct_function here but
32080         do clear cfun.
32081
32082 2004-06-25  Pascal Obry  <obry@gnat.com>
32083
32084         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
32085         Relocatable from Build_Dynamic_Library call.
32086
32087         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
32088         Relocatable are now synonym.
32089
32090         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
32091
32092         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
32093         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
32094         call.
32095
32096         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
32097         Lib_Address and Relocatable.
32098         (Default_DLL_Address): Removed.
32099
32100         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
32101         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
32102         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
32103         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
32104         (Default_DLL_Address): Removed.
32105
32106         * mlib-tgt-mingw.adb: Ditto.
32107         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
32108
32109         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
32110         the initial thread stack size.
32111
32112         * a-strmap.ads: Move package L to private part as it is not used in
32113         the spec. Found while reading code.
32114
32115 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
32116
32117         * tracebak.c: Introduce support for a GCC infrastructure based
32118         implementation of __gnat_backtrace.
32119
32120         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
32121         any more. Use accessors instead. This eases maintenance and relaxes
32122         some alignment constraints.
32123         (_GNAT_Exception structure): Remove the Ada specific fields
32124         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
32125         a-exexpr.adb.
32126         (is_handled_by, __gnat_eh_personality): Replace component references to
32127         exception structure by use of the new accessors.
32128
32129         * init.c (__gnat_initialize): Adjust comments to match the just
32130         reverted meaning of the -static link-time option.
32131
32132         * adaint.c (convert_addresses): Arrange not to define a stub for
32133         mips-irix any more, as we now want to rely on a real version from a
32134         recent libaddr2line.
32135
32136         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
32137         the personality routine can use them and not have to rely on a C
32138         counterpart of the record anymore. This simplifies maintenance and
32139         relaxes the constraint of having Standard'Maximum_Alignment match
32140         BIGGEST_ALIGNMENT.
32141         Update comments, and add a section on the common header alignment issue.
32142
32143 2004-06-25  Geert Bosch  <bosch@gnat.com>
32144
32145         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
32146         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
32147
32148 2004-06-25  Robert Dewar  <dewar@gnat.com>
32149
32150         * gnat_rm.texi: Fix section on component clauses to indicate that the
32151         restriction on byte boundary placement still applies for bit packed
32152         arrays.
32153         Add comment on stack usage from Initialize_Scalars
32154
32155         * gnat_ugn.texi: Add documentation for -gnatyLnnn
32156
32157         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
32158         limiting nesting level.
32159
32160         * usage.adb: Add line for -gnatyLnnn switch
32161
32162         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
32163         sem_ch13.adb, exp_aggr.adb: Minor reformatting
32164
32165         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
32166         type as well as on the subtype. This corrects a problem in freeze in
32167         setting alignments of atomic types.
32168
32169         * sem_eval.ads: Minor comment typo fixed
32170
32171         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
32172         level.  Minor reformatting.
32173
32174         * fname.adb (Is_Predefined_File_Name): Require a letter after the
32175         minus sign. This means that file names like a--b.adb will not be
32176         considered predefined.
32177
32178         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
32179         record Test new flag and give diagnostic for bad component clause.
32180         (Freeze_Entity): Set alignment of array from component alignment in
32181         cases where this is safe to do.
32182
32183         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
32184         arrays.
32185
32186         * cstand.adb: (Create_Standard): Set alignment of String to 1
32187
32188         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
32189
32190         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
32191         code in the common constrained array cases.
32192
32193         * a-storio.adb: Change implementation to avoid possible alignment
32194         problems on machines requiring strict alignment (data should be moved
32195         as type Buffer, not type Elmt).
32196
32197         * checks.adb (Apply_Array_Size_Check): Improve these checks by
32198         killing the overflow checks which we really do not need (64-bits is
32199         enough).
32200
32201 2004-06-25  Vincent Celier  <celier@gnat.com>
32202
32203         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
32204         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
32205         inconditionally for the main project.
32206         (Recursive_Add_Archives.Add_Archive_Path): New procedure
32207         (Link_Executables.Check_Time_Stamps): New procedure
32208         (Link_Executables.Link_Foreign): New procedure
32209         Changes made to reduce nesting level of this package
32210         (Check): New procedure
32211         (Add_Switches): When not in quiet output, check that a switch is not
32212         the concatenation of several valid switches. If it is, issue a warning.
32213         (Build_Global_Archive): If the global archive is rebuilt, linking need
32214         to be done.
32215         (Compile_Sources): Rebuilding a library archive does not imply
32216         rebuilding the global archive.
32217         (Build_Global_Archive): New procedure
32218         (Build_Library): New name for Build_Archive, now only for library
32219         project
32220         (Check_Archive_Builder): New procedure
32221         (Create_Global_Archive_Dependency_File): New procedure
32222         (Gprmake): Call Build_Global_Archive before linking
32223         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
32224         throughout.
32225         (Scan_Arg): Display the Copyright notice when -v is used
32226
32227         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
32228         for gnatls.
32229
32230         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
32231         COMPILE.
32232         Add new GNAT LIST qualifier /FILES=
32233         Added qualifier /DIRECTORY= to GNAT METRIC
32234         Added qualifier /FILES= to GNAT METRIC
32235         Added qualifier /FILES to GNAT PRETTY
32236
32237         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
32238         to take into account both versions of the switch.
32239
32240         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
32241         always be the last switch to the gcc driver. Disable switch storing so
32242         that switches automatically added by the gcc driver are not put in the
32243         ALI file.
32244
32245         * prj.adb (Project_Empty): Take into account changes in components of
32246         Project_Data.
32247
32248         * prj.ads (Languages_Processed): New enumaration value All_Languages.
32249
32250         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
32251         used. Split Boolean component Ada_Sources_Present in two Boolean
32252         components Ada_Sources_Present and Other_Sources_Present.
32253         Minor reformatting
32254
32255         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
32256         instead of Sources_Present.
32257         (Set_Ada_Paths.Add.Recursive_Add): Ditto
32258
32259         * prj-nmsc.adb: Minor reformatting
32260         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
32261         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
32262         Check_Ada_Naming_Scheme.
32263         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
32264         throughout.
32265
32266         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
32267         In_Limited.
32268         Make sure that all cycles where there is at least one "limited with"
32269         are detected.
32270         (Parse_Single_Project): New Boolean parameter In_Limited
32271
32272         * prj-proc.adb (Recursive_Check): When Process_Languages is
32273         All_Languages, call first Prj.Nmsc.Ada_Check, then
32274         Prj.Nmsc.Other_Languages_Check.
32275
32276         * prj-proc.adb (Process): Use Ada_Sources_Present or
32277         Other_Sources_Present (instead of Sources_Present) depending on
32278         Process_Languages.
32279
32280         * lang-specs.h: Keep -g and -m switches in the same order, and as the
32281         last switches.
32282
32283         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
32284         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
32285         False.
32286         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
32287         False.
32288
32289         * lib.ads (Disable_Switch_Storing): New procedure.
32290
32291         * make.adb: Modifications to reduce nesting level of this package.
32292         (Check_Standard_Library): New procedure
32293         (Gnatmake.Check_Mains): New procedure
32294         (Gnatmake.Create_Binder_Mapping_File): New procedure
32295         (Compile_Sources.Compile): Add switch -gnatez as the last option
32296         (Display): Never display -gnatez
32297
32298         * Makefile.generic:
32299         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
32300
32301         * gnatcmd.adb (Check_Project): New function
32302         (Process_Link): New procedure to reduce nesting depth
32303         (Check_Files): New procedure to reduce the nesting depth.
32304         For GNAT METRIC, include the inherited sources in extending projects.
32305         (GNATCmd): When GNAT LS is invoked with a project file and no files,
32306         add the list of files from the sources of the project file. If this list
32307         is too long, put it in a temp text files and use switch -files=
32308         (Delete_Temp_Config_Files): Delete the temp text file that contains
32309         a list of source for gnatpp or gnatmetric, if one has been created.
32310         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
32311         in the project file is too large, create a temporary text file that
32312         list them and pass it to the tool with "-files=<temp text file>".
32313         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
32314
32315         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
32316         generated file is in not in Ada.
32317
32318         * gnatls.adb: Remove all parameters And_Save that are no longer used.
32319         (Scan_Ls_Arg): Add processing for -files=
32320         (Usage): Add line for -files=
32321
32322         * g-os_lib.adb (On_Windows): New global constant Boolean flag
32323         (Normalize_Pathname): When on Windows and the path starts with a
32324         directory separator, make sure that the resulting path will start with
32325         a drive letter.
32326
32327         * clean.adb (Clean_Archive): New procedure
32328         (Clean_Project): When there is non-Ada code, delete the global archive,
32329         the archive dependency files, the object files and their dependency
32330         files, if they exist.
32331         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
32332
32333 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
32334
32335         * sinfo.ads: Fix typo in comment.
32336
32337         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
32338         the TSS for remote access-to-subprogram types, since these TSS are
32339         always present once the type has been analyzed.
32340         (RAS_E_Dereference): Same.
32341
32342         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
32343         reference raises Bad_Attribute, mark the reference as analyzed so the
32344         node (and any children resulting from rewrites that could have occurred
32345         during the analysis that ultimately failed) is not analyzed again.
32346
32347         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
32348
32349         * exp_dist.adb: Minor comment fix.
32350
32351         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
32352         type is an anonymous access type, no unchecked deallocation of the
32353         allocated object can occur. If the object is controlled, attach it with
32354         a count of 1. This allows attachment to the Global_Final_List, if
32355         no other relevant list is available.
32356         (Get_Allocator_Final_List): For an anonymous access type that is
32357         the type of a discriminant or record component, the corresponding
32358         finalisation list is the one of the scope of the type.
32359
32360 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
32361
32362         * sem_ch3.adb (Replace_Type): When computing the signature of an
32363         inherited subprogram, use the first subtype if the derived type
32364         declaration has no constraint.
32365
32366         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
32367         before applying previous optimization. Minor code cleanup.
32368
32369         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
32370         placed at the beginning of an unpacked record without explicit
32371         alignment, a slice of it will be aligned and does not need a copy when
32372         used as an actual.
32373
32374 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
32375
32376         PR ada/15591
32377         PR ada/15592
32378         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
32379         reference is written with expressions mimicking parameters.
32380
32381 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
32382
32383         PR ada/15589
32384         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
32385         STEP 2a. The constraints of a full type declaration of a derived record
32386         type are checked for conformance with those declared in the
32387         corresponding private extension declaration. The message
32388         "not conformant with previous declaration" is emitted if an error is
32389         detected.
32390
32391 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
32392
32393         * g-traceb.ads: Document the need for -E binder switch in the spec.
32394
32395         * g-trasym.ads: Document the need for -E binder switch in the spec.
32396
32397 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
32398
32399         * sem_prag.adb: Add handling of pragma Detect_Blocking.
32400
32401         * snames.h, snames.ads, snames.adb: Add entry for pragma
32402         Detect_Blocking.
32403
32404         * s-rident.ads: Change reference to pragma Detect_Blocking.
32405
32406         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
32407         system.ads.
32408
32409         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
32410         to indicate whether pragma Detect_Blocking is active.
32411
32412         * par-prag.adb: Add entry for pragma Detect_Blocking.
32413
32414         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
32415         of not handling WITH.
32416         Note that this replaces the previous update which was incorrect.
32417
32418 2004-06-25  Javier Miranda  <miranda@gnat.com>
32419
32420         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
32421         use-clauses to have a clean environment.
32422
32423         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
32424         the installation of the use-clauses to stablish a clean environment in
32425         case of compilation of a separate unit; otherwise the call to
32426         use_one_package is protected by the barrier Applicable_Use.
32427
32428         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
32429         the installation of the use-clauses to stablish a clean environment in
32430         case of compilation of a separate unit.
32431         (End_Use_Clauses): Minor comment cleanup.
32432
32433 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
32434
32435         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
32436
32437 2004-06-23  Richard Henderson  <rth@redhat.com>
32438
32439         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
32440
32441 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32442
32443         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
32444         now bool instead of int.
32445         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
32446         * trans.c (gnu_switch_label_stack): New function.
32447         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
32448         elaboration of renamed entity returns.
32449         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
32450         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
32451         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
32452         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
32453         DECL_SIZE_UNIT and simplify variable-sized case.
32454         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
32455         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
32456         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
32457         (build_unit_elab): Disable for now.
32458         * utils.c (mark_visited): New function.
32459         (pushdecl): Walk tree to call it for global decl.
32460         (update_pointer_to): Update all variants of pointer and ref types.
32461         Add arg to COMPONENT_REF.
32462         (convert): Likewise.
32463         Move check for converting between variants lower down.
32464         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
32465         (build_allocator): Don't force type of MODIFY_EXPR.
32466         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
32467         put_var_into_stack.
32468
32469 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32470
32471         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
32472         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
32473         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
32474         subprograms.
32475         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
32476         all callers changed.
32477         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
32478         the way that EXIT_STMT finds the loop label.
32479         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
32480         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
32481         (add_stmt): Use annotate_with_locus insted of setting directly.
32482         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
32483         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
32484         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
32485         (build_vms_descriptor): Add extra args to ARRAY_REF.
32486         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
32487         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
32488         New cases.
32489         (build_binary_op): Don't make explicit CONVERT_EXPR.
32490         Add extra rgs to ARRAY_REF.
32491
32492 2004-06-14  Pascal Obry  <obry@gnat.com>
32493
32494         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
32495         Windows.  Fix minor typo.
32496
32497         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
32498         which is now supported on Windows. With this implementation using the
32499         Library Project feature is no different on Windows than on UNIX.
32500
32501 2004-06-14  Vincent Celier  <celier@gnat.com>
32502
32503         * makegpr.adb (Compile_Sources): Nothing to do when there are no
32504         non-Ada sources.
32505
32506         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
32507
32508         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
32509         found, show the project name and the path of the previously parsed
32510         project file.
32511
32512 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
32513
32514         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
32515         array, avoid copying the actual before the call.
32516
32517 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
32518
32519         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
32520         Instead, allocate memory on worst-case alignment assumptions, and then
32521         return an aligned address within the allocated zone.
32522
32523 2004-06-14  Robert Dewar  <dewar@gnat.com>
32524
32525         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
32526         elab entities in predefined units in No_Run_Time_Mode.
32527         (Gen_Adainit_C): Same fix
32528         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
32529         units in No_Run_Time_Mode
32530         (Gen_Elab_Calls_C): Same fix
32531
32532         * symbols-vms-alpha.adb: Minor reformatting
32533
32534         * g-debpoo.ads: Minor reformatting
32535
32536         * lib.adb (In_Same_Extended_Unit): Version working on node id's
32537
32538         * lib.ads (In_Same_Extended_Unit): Version working on node id's
32539
32540         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
32541         working on nodes.
32542
32543         * make.adb: Minor reformatting
32544
32545         * par-ch12.adb: Minor reformatting
32546
32547         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
32548
32549         * prj-strt.adb: Minor reformatting
32550
32551         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
32552         be more general.
32553
32554         * sem_attr.adb: Minor reformatting
32555
32556         * sem_ch7.adb: Minor reformatting
32557
32558         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
32559         for type in the same unit as the object declaration.
32560
32561         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
32562         static string expressions and not just string literals.
32563         Minor reformatting
32564         (Set_Warning): Reset restriction warning flag for restriction pragma
32565         Implement pragma Profile_Warnings
32566         Implement pragma Profile (Restricted)
32567         Give obolescent messages for old restrictions and pragmas
32568
32569         * snames.h, snames.ads, snames.adb: Add new entry for pragma
32570         Profile_Warnings.
32571
32572         * s-rident.ads: Add declarations for restrictions required by profile
32573         Restricted and profile Ravenscar.
32574
32575         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
32576
32577         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
32578         configuration pragmas.
32579
32580 2004-06-11  Vincent Celier  <celier@gnat.com>
32581
32582         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
32583         gnatsym, when symbol policy is Restricted.
32584
32585         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
32586         gnatsym, when symbol policy is Restricted.
32587
32588         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
32589         read the symbol file.
32590         (Finalize): Fail in symbol policy Restricted if a symbol in the original
32591         symbol file is not in the object files. Do not create a new symbol file
32592         when symbol policy is Restricted.
32593
32594         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
32595         in Scng.
32596
32597         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
32598         Restricted.
32599         (Usage): Line for new switch -R
32600
32601         * make.adb (Initialize): When the platform is not VMS, add the
32602         directory where gnatmake is invoked in the front of the path, if
32603         gnatmake is invoked with directory information.  Change the Scan_Args
32604         while loop to a for loop.
32605         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
32606         if Depth is equal or greater than the proposed depth, there is nothing
32607         to do.
32608         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
32609         instead of 0.
32610
32611         * prj.ads: Add new symbol policy Restricted.
32612
32613         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
32614         with the new parameters Check_All_Labels and Case_Location.
32615
32616         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
32617         (Library_Symbol_File needs to be defined).
32618
32619         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
32620         and Case_Location If Check_All_Labels is True, check that all values of
32621         the string type are used, and output warning(s) if they are not.
32622
32623         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
32624         and Case_Location.
32625
32626         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
32627
32628         * gnat_ugn.texi: Update documentation about the library directory in
32629         Library Projects.
32630
32631         * makegpr.adb (Display_Command): In verbose mode, also display the
32632         value of the CPATH env var, when the compiler is gcc.
32633         (Initialize): Change the Scan_Args while loop to a for loop
32634         (Compile_Individual_Sources): Change directory to object directory
32635         before compilations.
32636
32637         * symbols.ads: New symbol policy Restricted.
32638
32639 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
32640
32641         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
32642         is now taken care of internally in the Exception_Propagation package
32643         and does not require clients assistance any more.
32644
32645         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
32646         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
32647         functions. Helpers to maintain a predicate required in the handling of
32648         occurrence transfer between tasks.
32649         This is now handled internally and does not require clients assistance
32650         for the setup/propagate separation anymore.
32651         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
32652         allocation strategy, handle the Setup_And_Not_Propagated predicate and
32653         document.
32654
32655         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
32656         raise_after_setup, now that everything is handled internally within the
32657         setup/propagation engine.
32658
32659 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
32660
32661         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
32662         Add additional conditions for the case of an actual being a simple
32663         name or literal. Improve inlining by preventing the generation
32664         of temporaries with a short lifetime (one use).
32665
32666 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
32667
32668         PR ada/15587
32669         * einfo.ads: Minor comment updates for Has_Completion and
32670         E_Constant list of flags.
32671
32672         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
32673         and constant redeclarations now set the Has_Completion flag of their
32674         defining identifiers.
32675
32676         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
32677         Inspect_Deferred_Constant_Completion.
32678         Used to detect private deferred constants that have not been completed
32679         either by a constant redeclaration or pragma Import. Emits error message
32680         "constant declaration requires initialization expression".
32681
32682         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
32683         completes a deferred constant.
32684
32685 2004-06-11  Geert Bosch  <bosch@gnat.com>
32686
32687         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
32688
32689         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
32690         calculating exponent for scaling denormal numbers.
32691         (Leading_Part): Properly raise Constraint_Error for zero or negative
32692         Adjustment.
32693         (Remainder): Properly raise Constraint_Error for zero divisor.
32694
32695 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
32696
32697         * sem_util.adb: Minor reformatting.
32698
32699         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
32700         dereference when accessing the entry parameter record.
32701         (Check_Array_Type): Always check for possible implicit dereference.
32702         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
32703         Abort if a pointer is still present (denoting that an implicit
32704         dereference was left in the tree by the front-end).
32705
32706         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
32707         dereference when accessing the entry parameter record.
32708         (Check_Array_Type): Always check for possible implicit dereference.
32709         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
32710         Abort if a pointer is still present (denoting that an implicit
32711         dereference was left in the tree by the front-end).
32712
32713 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
32714
32715         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
32716         message, like the compiler itself does. Easier to parse the output.
32717
32718         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
32719
32720         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
32721         be base names, and not includes directories.
32722
32723 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
32724
32725         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
32726         so that dependencies are properly taken into account by make.
32727
32728 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
32729
32730         PR ada/15622
32731         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
32732         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
32733
32734 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
32735
32736         * Makefile.in (install-gnatlib): install target-specific run-time files.
32737
32738         * Make-lang.in: Remove obsolete targets.
32739
32740 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
32741
32742         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
32743         specification, to catch misuses of program unit names.
32744
32745         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
32746         superfluous conversions in an instance.
32747
32748 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
32749
32750         PR ada/15403
32751         * sem_ch12.adb (Save_References): If operator node has been folded to
32752         enumeration literal, associated_node must be discarded.
32753
32754 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
32755
32756         * s-stchop-vxworks.adb: Add required pragma Convention to
32757         Task_Descriptor because it is updated by a C function.
32758
32759 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
32760
32761         PR ada/15568
32762         * Makefile.in: Remove target specific SO_OPT on IRIX
32763
32764 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32765
32766         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
32767         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
32768         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
32769         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
32770         (STMT_STMT, USE_STMT): New statement codes.
32771         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
32772         * ada-tree.h: Reflect above changes.
32773         (struct tree_loop_id): Deleted.
32774         (union lang_tree_node, struct lang_decl, struct lang_type):
32775         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
32776         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
32777         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
32778         (IS_ADA_STMT): New macro.
32779         * decl.c (annotate_decl_with_node): New function.
32780         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
32781         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
32782         Call add_stmt_with_node to do needed assignments.
32783         Add call to update setjmp buffer directly, not via EXPR_STMT.
32784         (maybe_variable): Argment GNAT_NODE deleted.
32785         * gigi.h (maybe_variable): Likewise.
32786         (make_transform, add_stmt_with_node, set_block_for_group): New.
32787         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
32788         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
32789         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
32790         (set_lineno, set_lineno_from_sloc): Likewise.
32791         (record_code_position, insert_code_for): Likewise.
32792         (gnat_poplevel): Now returns void.
32793         (end_subprog_body): Now takes argument.
32794         * misc.c (cgraph.h, tree-inline.h): New includes.
32795         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
32796         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
32797         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
32798         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
32799         (gnat_parse_file): Don't set immediate_size_expand.
32800         Call cgraph functions.
32801         (gnat_expand_expr): Remove most cases.
32802         (record_code_position, insert_code_for): Remove from here.
32803         * trans.c (toplev.h, tree-gimple.h): Now included.
32804         (discard_file_names): Deleted.
32805         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
32806         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
32807         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
32808         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
32809         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
32810         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
32811         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
32812         (set_block_for_group, add_stmt_list): Likewise.
32813         (start_stmt_group): Renamed from start_block_stmt.
32814         (end_stmt_group): Likewise, from end_block_stmt.
32815         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
32816         (gigi): Don't set discard_file_names or call set_lineno.
32817         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
32818         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
32819         Numerous changes throughout to reflect new names and complete
32820         function-at-a-time implementation.
32821         (gnat_expand_stmt): Delete or comment out all cases.
32822         (process_inlined_subprograms): Use add_stmt.
32823         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
32824         call set_lineno; also remove unneeded block handling.
32825         (process_type): Remove unneeded block handling.
32826         (build_unit_elab): Remove calls to deleted functions.
32827         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
32828         (tree-dump.h): Likewise.
32829         (struct ada_binding_level): Add field jmpbuf_decl.
32830         (gnat_define_builtin, gnat_install_builtins): New.
32831         (gnat_gimplify_function, gnat_finalize): Likewise.
32832         (gnat_poplevel): No longer return BLOCK, set it instead.
32833         Remove code dealing with nested functions.
32834         (gnat_init_decl_processing): Also set size_type_node.
32835         Call gnat_install_builtins.
32836         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
32837         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
32838         Remove special-case for "main".
32839         (end_subprog_body): Add arg and rework for tree-ssa.
32840         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
32841         Add case for BOOLEAN_TYPE.
32842         * utils2.c (rtl.h): Now include.
32843         (build_call_raise): Test Debug_Flag_NN directly.
32844         (build_call_alloc_dealloc): Don't use local stack allocation for now.
32845         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
32846         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
32847
32848 2004-06-07  Robert Dewar  <dewar@gnat.com>
32849
32850         * a-direct.ads, einfo.ads: Minor comment updates
32851
32852         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
32853         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
32854         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
32855         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
32856         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
32857
32858         * s-interr-sigaction.adb: Remove unreferenced variable
32859         (Attached_Interrupts).  Minor reformatting.
32860         Avoid use of variable I (replace by J).
32861
32862         * par-ch10.adb: Fix text of one error message
32863
32864         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
32865         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
32866         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
32867         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
32868         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
32869         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
32870         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
32871         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
32872         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
32873         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
32874         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
32875         2005 support.
32876
32877 2004-06-07  Doug Rupp  <rupp@gnat.com>
32878
32879         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
32880
32881         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
32882
32883         * mlib-tgt-vms-ia64.adb: New file.
32884
32885         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
32886         Add mlib-tgt-vms-ia64.adb
32887         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
32888         Move to alpha specific ifeq section.
32889         Add VMS specific versions of symbols.adb
32890         Renaming of 5q vms files.
32891
32892         * 5qsystem.ads renamed to system-vms_64.ads.
32893
32894 2004-06-07  Vincent Celier  <celier@gnat.com>
32895
32896         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
32897         explain that when a time of day corresponding to the non existing hour
32898         on the day switching to DST is specified, Split may return a different
32899         value for Seconds.
32900
32901         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
32902         to GNAT PRETTY.
32903
32904         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
32905         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
32906
32907         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
32908         to False.
32909         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
32910         the linking options.
32911         (Build_Library.Check_Libs): On VMS, if there is a dependency on
32912         g-trasym.ads, set Gtrasymobj_Needed to True.
32913
32914         * prj-attr.adb: Add new package Metrics for gnatmetric
32915
32916         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
32917         canonical case to take into account files with upper case characters on
32918         Windows.
32919         (Ada_Check): Load the reference symbol file name in the name buffer to
32920         check it, not the symbol file name.
32921
32922         * snames.ads, snames.adb: Add standard name Metrics (name of project
32923         file package for gnatmetric).
32924
32925         * vms_conv.ads: Add Metric to Comment_Type
32926
32927         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
32928
32929         * vms_data.ads: Add qualifiers for GNAT METRIC
32930
32931         * makegpr.adb (Link_Executables): Take into account the switches
32932         specified in package Linker of the main project.
32933
32934 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
32935
32936         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
32937         the index of the last element is Units.Last, not Units.Table'Last
32938         (which is usually not a valid index within the actually allocated
32939         storage for the table).
32940
32941         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
32942         determines whether to generate a call to a checked storage pool
32943         Dereference action.
32944         Generate such a call only for a dereference that either comes from
32945         source, or is the result of rewriting a dereference that comes from
32946         source.
32947
32948 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
32949
32950         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
32951
32952 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
32953
32954         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
32955         file level, elaborate the stride for inner dimensions in alignment
32956         units, not bytes.
32957
32958         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
32959         in a comment.
32960
32961 2004-06-07  Javier Miranda  <miranda@gnat.com>
32962
32963         * exp_ch6.adb: Correct wrong modification in previous patch
32964
32965 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
32966
32967         * g-trasym.ads: Corrected comment to properly reflect level of support
32968         on VMS.
32969
32970 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
32971
32972         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
32973         includes case of a variable referenced on the left hand side of an
32974         assignment, therefore remove redundant code. Variables and prefixes of
32975         indexed or selected components are now marked as referenced on left
32976         hand side. Warnings are now properly emitted when variables or prefixes
32977         are assigned but not read.
32978
32979         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
32980         left hand side referenced variables. Private access types do not
32981         produce the warning "variable ... is assigned but never read".
32982         Add also additional checks to left hand side referenced variables.
32983         Aliased, renamed objects and access types do not produce the warning
32984         "variable ... is assigned but never read" since other entities may read
32985         the memory location.
32986
32987 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
32988
32989         * Makefile.in: In the powerpc/vxworks-specific section, restore
32990         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
32991         by mistake).
32992
32993 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
32994
32995         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
32996         predefined operators.
32997         Removes spurious type errors from g-trasym-vms.adb.
32998
32999         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
33000         distinct from the operator appearing in the source, call appropriate
33001         routine to insert conversions when needed, and complete resolution of
33002         node.
33003         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
33004         interpretations for rewritten right operand.
33005         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
33006         the other operand is overloaded and the context is a type conversion.
33007
33008 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33009
33010         * ada-tree.def (BLOCK_STMT): Now has two operands.
33011         (BREAK_STMT): New.
33012
33013         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
33014
33015         * gigi.h: (gnat_poplevel): Now returns a tree.
33016
33017         * trans.c (end_block_stmt): Add arg; all callers changed.
33018         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
33019         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
33020         (add_stmt): Set TREE_TYPE.
33021         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
33022         (gnat_expand_stmt, case BREAK_STMT): New case.
33023
33024         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
33025
33026 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
33027
33028         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
33029         procedure Set_Stack_Size that is not needed.
33030
33031 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
33032
33033         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
33034         used for gnatpp input file and for the files upon which it depends
33035
33036 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
33037
33038         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
33039
33040 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
33041
33042         * gnatvsn.ads: Bump version numbers appropriately.
33043         Add new build type.
33044
33045 2004-06-07  Pascal Obry  <obry@gnat.com>
33046
33047         * gnat_ugn.texi: Improve comments about imported names and link names
33048         on Windows. Add a note about the requirement to use -k gnatdll's option
33049         when working with a DLL which has stripped stdcall symbols (no @nn
33050         suffix).
33051
33052 2004-05-27  Vincent Celier  <celier@gnat.com>
33053
33054         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
33055         COMMENTS_LAYOUT=UNTOUCHED
33056
33057         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
33058         symbols-vms-alpha.adb
33059
33060 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
33061
33062         * sem.ads: Clarify documentation on checks suppression.
33063
33064         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
33065
33066 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
33067
33068         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
33069         the case of multiple derivations.
33070         (Is_Object_Reference): For a selected component, verify that the prefix
33071         is itself an object and not a value.
33072
33073         * sem_ch12.adb (Same_Instantiated_Constant): New name for
33074         Same_Instantiated_Entity.
33075         (Same_Instantiated_Variable): Subsidiary to
33076         Check_Formal_Package_Instance, to recognize actuals for in-out generic
33077         formals that are obtained from a previous formal package.
33078         (Instantiate_Subprogram_Body): Emit proper error when
33079         generating code and the proper body of a stub is missing.
33080
33081         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
33082         has a universal interpretation, do the disambiguation here.
33083
33084         * exp_ch4.adb (Expand_N_Type_Conversion,
33085         Expand_N_Unchecked_Type_Conversion): Special handling when target type
33086         is Address, to avoid typing anomalies when Address is a visible integer
33087         type.
33088
33089         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
33090         to determine whether a subprogram should not be marked Pure, even when
33091         declared in a pure package.
33092
33093 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
33094
33095         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
33096
33097         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
33098         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
33099         Update the documentation about the Ravenscar profile, following the
33100         definition found in AI-249.
33101
33102         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
33103         setting the Profile (Ravenscar). This must be done in addition to
33104         setting the required restrictions.
33105
33106         * rtsfind.ads: Add the set of operations defined in package
33107         Ada.Interrupts.
33108
33109         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
33110         restriction.
33111
33112 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
33113
33114         lang-specs.h: Always require -c or -S and always redirect to /dev/null
33115         if -gnatc or -gnats is passed.
33116
33117 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
33118
33119         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
33120         a significant reference. Warnings are now properly emitted when a
33121         discriminated type is not referenced.
33122
33123         * lib-xref.adb (Generate_Reference): A deferred constant completion,
33124         record representation clause or record type discriminant does not
33125         produce a reference to its corresponding entity. Warnings are now
33126         properly emitted when deferred constants and record types are not
33127         referenced.
33128
33129 2004-05-27  Geert Bosch  <bosch@gnat.com>
33130
33131         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
33132         Fixes ACATS Annex G tests.
33133
33134 2004-05-27  Robert Dewar  <dewar@gnat.com>
33135
33136         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
33137         handling WITH
33138
33139 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
33140
33141         * s-interr.adb (Server_Task): Take into account case of early return
33142         from sigwait under e.g. linux.
33143
33144 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
33145
33146         * gnat_ugn.texi: Add description for the new gnatpp options:
33147          -rnb - replace the original source without creating its backup copy
33148          -c0 - do not format comments
33149
33150 2004-05-24  Geert Bosch  <bosch@gnat.com>
33151
33152         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
33153         with 192 bits of precision, sufficient to reduce a double-extended
33154         arguments X with a maximum relative error of T'Machine_Epsilon, for X
33155         in -2.0**32 .. 2.0**32.
33156         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
33157         reduction by the processor, which only uses a 68-bit approximation of
33158         Pi.
33159         (Tan): Always reduce arguments and compute function either using
33160         the processor's fptan instruction, or by dividing sin and cos as needed.
33161
33162 2004-05-24  Doug Rupp  <rupp@gnat.com>
33163
33164         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
33165         gcc error on 32/64 bit VMS.
33166
33167 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
33168
33169         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
33170         since this is what we get for stack overflows although not documented
33171         as such.
33172         Document the issues which may require adjustments to our signal
33173         handlers.
33174
33175 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
33176
33177         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
33178         enclosing dynamic scope if the instantiation is within a generic unit.
33179
33180 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
33181
33182         * exp_dbug.ads: Fix typo.
33183
33184         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
33185         Rename it to its proper name: system-linux-ia64.ads
33186         (stamp-gnatlib1): Remove extra target specific run time files when
33187         setting up the rts directory.
33188
33189 2004-05-24  Javier Miranda  <miranda@gnat.com>
33190
33191         * einfo.ads, einfo.adb (Limited_Views): Removed.
33192         (Limited_View): New attribute that replaces the previous one. It is
33193         now a bona fide package with the limited-view list through the
33194         first_entity and first_private attributes.
33195
33196         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
33197         limited-private-with clause.
33198         (Install_Limited_Withed_Unit): Install the private declarations of a
33199         limited-private-withed package. Update the installation of the shadow
33200         entities according to the new structure (see Build_Limited_Views)
33201         (Build_Limited_Views): Replace the previous implementation of the
33202         limited view by a package entity that references the first shadow
33203         entity plus the first shadow private entity (required for limited-
33204         private-with clause)
33205         (New_Internal_Shadow_Entity): Code cleanup.
33206         (Remove_Limited_With_Clause): Update the implementation to undo the
33207         new work carried out by Build_Limited_Views.
33208         (Build_Chain): Complete documentation.
33209         Replace Ada0Y by Ada 0Y in comments
33210         Minor reformating
33211
33212         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
33213         types the level of accessibility depends on the enclosing type
33214         declaration.
33215
33216         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
33217         entities. Complete documentation of previous change.
33218
33219 2004-05-24  Robert Dewar  <dewar@gnat.com>
33220
33221         * namet.adb: Minor reformatting
33222         Avoid use of name I (replace by J)
33223         Minor code restructuring
33224
33225         * sem_ch6.adb: Minor reformatting
33226
33227         * lib-writ.adb: Do not set restriction as active if this is a
33228         Restriction_Warning case.
33229
33230         * sem_prag.adb: Reset restriction warning flag if real pragma
33231         restriction encountered.
33232
33233         * s-htable.adb: Minor reformatting
33234         Change rotate count to 3 in Hash (improves hash for small strings)
33235
33236         * 5qsystem.ads: Add comments for type Address (no literals allowed).
33237
33238         * gnat_ugn.texi: Add new section of documentation "Code Generation
33239         Control", which describes the use of -m switches.
33240
33241 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
33242
33243         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
33244         through the DECL_INITIAL for renamed variables.
33245
33246 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
33247
33248         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
33249
33250 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
33251
33252         * exp_dbug.ads: Correct comments concerning handling of overloading,
33253         since we no longer use $ anymore.
33254
33255 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
33256
33257         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
33258         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
33259         with illegal subunits.
33260
33261 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
33262
33263         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
33264         body with front-end inlining enabled, check whether an inline pragma
33265         appears immediately after the body and applies to it.
33266
33267         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
33268         enabled and the pragma appears after the body of the subprogram.
33269
33270 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33271
33272         Part of function-at-a-time conversion
33273
33274         * misc.c (adjust_decl_rtl): Deleted.
33275         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
33276         Define.
33277
33278         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
33279         (add_decl_stmt, add_stmt, block_has_vars): New functions.
33280         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
33281
33282         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
33283         when making a decl.
33284         (gnat_to_gnu_entity): Likewise.
33285         Use add_stmt to update setjmp buffer.
33286         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
33287         flush_addressof.
33288         No longer call adjust_decl_rtl.
33289         (DECL_INIT_BY_ASSIGN_P): New macro.
33290         (DECL_STMT_VAR): Likewise.
33291
33292         * trans.c (gigi): Call start_block_stmt to make the outermost
33293         BLOCK_STMT.
33294         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
33295         Call start_block_stmt and end_block_stmt temporarily.
33296         Use gnat_expand_stmt instead of expand_expr_stmt.
33297         (add_decl_stmt): New function.
33298         (tree_transform): Call it.
33299         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
33300         (end_block_stmt): Set type and NULL_STMT.
33301         (gnat_expand_stmt): Make recursize call instead of calling
33302         expand_expr_stmt.
33303         (gnat_expand_stmt, case DECL_STMT): New case.
33304         (set_lineno_from_sloc): Do nothing if global.
33305         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
33306         (start_block_stmt, add_stmt, end_block_stmt): New functions.
33307         (build_block_stmt): Call them.
33308         (gnat_to_code): Don't expand NULL_STMT.
33309         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
33310         args.
33311         (tree_transform): Likewise.
33312         (tree_transform, case N_Null_Statement): Return NULL_STMT.
33313         (gnat_expand_stmt, case NULL_STMT): New case.
33314         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
33315         IF_STMT_TRUE.
33316
33317         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
33318         TREE_ADDRESSABLE.
33319
33320         * utils.c (create_var_decl): Do not call expand_decl or
33321         expand_decl_init.
33322         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
33323         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
33324         here.
33325         (struct e_stack): Add chain_next to GTY.
33326         (struct binding_level): Deleted.
33327         (struct ada_binding_level): New struct.
33328         (free_block_chain): New.
33329         (global_binding_level, clear_binding_level): Deleted.
33330         (global_bindings_p): Rework to see if no chain.
33331         (kept_level_p, set_block): Deleted.
33332         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
33333         new data structure and work directly on BLOCK node.
33334         (gnat_poplevel): Similarly.
33335         (get_decls): Look at BLOCK_VARS.
33336         (insert_block): Work directly on BLOCK node.
33337         (block_has_var): New function.
33338         (pushdecl): Rework for new binding structures.
33339         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
33340         poplevel.
33341         (build_subprog_body): Likewise.
33342         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
33343
33344         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
33345
33346         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
33347         (DECL_STMT_VAR): Likewise.
33348
33349 2004-05-17  Robert Dewar  <dewar@gnat.com>
33350
33351         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
33352         procedure
33353
33354         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
33355         of restriction synonyums by using
33356         Restrict.Process_Restriction_Synonyms.
33357
33358         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
33359
33360         * s-restri.ads (Tasking_Allowed): Correct missing comment
33361
33362         * s-rident.ads: Add entries for restriction synonyms
33363
33364         * ali.adb: Fix some problems with badly formatted ALI files that can
33365         result in infinite loops.
33366
33367         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
33368         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
33369         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
33370         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
33371         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
33372         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
33373         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
33374         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
33375         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
33376         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
33377         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
33378         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
33379         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
33380         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
33381         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
33382         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
33383         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
33384         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
33385         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
33386         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
33387         to Task_Id (minor cleanup).
33388
33389 2004-05-17  Vincent Celier  <celier@gnat.com>
33390
33391         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
33392         directory separator.
33393
33394         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
33395         project being extended, if Languages is not declared in extending
33396         project.
33397
33398 2004-05-17  Javier Miranda  <miranda@gnat.com>
33399
33400         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
33401         limited view of a visible sibling.
33402
33403 2004-05-14  Robert Dewar  <dewar@gnat.com>
33404
33405         * gnat_ugn.texi: Minor change to -gnatS documentation
33406
33407         * sprint.adb: Remove some instances of Assert (False) and for this
33408         purpose replace them by output of a ??? string.
33409
33410         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
33411         Assert (False).
33412
33413         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
33414         flag processing. This was suppressing required dependencies in
33415         No_Run_Time mode and is not needed since the binder does not generate
33416         references for things in libgnat anyway.
33417
33418         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
33419         warning.
33420
33421 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
33422
33423         * gnat_ugn.texi: Document AIX-specific issue with initialization of
33424         resolver library.
33425
33426         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
33427         action for the case of an actual parameter in an init proc call.
33428
33429 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
33430
33431         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
33432         subtype, check visible entities in base type.
33433
33434         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
33435         actions if the object is a renaming.
33436
33437         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
33438         Check_Formal_Package_Instance, to determine more precisely when the
33439         formal and the actual denote the same entity.
33440
33441 2004-05-14  Javier Miranda  <miranda@gnat.com>
33442
33443         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
33444
33445         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
33446         corresponding to a private_with must be removed from visibility; it
33447         will be made visible later, just before we analyze the private part of
33448         the package.
33449         (Check_Private_Child_Unit): Allow private_with clauses in public
33450         siblings.
33451         (Install_Siblings): Make visible the private entities of private-withed
33452         siblings.
33453         (Install_Withed_Unit): Do not install the private withed unit if we
33454         are compiling a package declaration and the Private_With_OK flag was
33455         not set by the caller. These declarations will be installed later,
33456         just before we analyze the private part of the package.
33457
33458         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
33459         during the evaluation of the expression that initializes the object,
33460         decorate it with the expected type to avoid cascade errors.
33461         Code cleanup.
33462
33463         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
33464         subprogram we have to install the private_with clauses after its
33465         specification has been analyzed (as documented in AI-262.TXT).
33466
33467         * sem_ch8.adb (Has_Private_With): New function. Determines if the
33468         current compilation unit has a private with on a given entity.
33469         (Find_Direct_Name): Detect the Beaujolais problem described in
33470         AI-262.TXT
33471
33472         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
33473         provides the functionality of the function Is_Ancestor that was
33474         previously available in sem_ch10. It has been renamed to avoid
33475         overloading.
33476
33477         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
33478
33479 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33480
33481         * utils.c (build_vms_descriptor): Use SImode pointers.
33482
33483 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
33484
33485         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
33486
33487 2004-05-14  GNAT Script  <nobody@gnat.com>
33488
33489         * Make-lang.in: Makefile automatically updated
33490
33491 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
33492
33493         Renaming of target specific files for clarity
33494
33495         * Makefile.in: Rename GNAT target specific files.
33496
33497         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
33498         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
33499         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
33500         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
33501         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
33502         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
33503         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
33504         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
33505         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
33506         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
33507         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
33508         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
33509         51osinte.adb, 51osinte.ads, 51system.ads,
33510         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
33511         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
33512         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
33513         56tpopsp.adb, 57system.ads, 58system.ads,
33514         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
33515         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
33516         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
33517         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
33518         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
33519         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
33520         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
33521         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
33522         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
33523         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
33524         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
33525         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
33526         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
33527         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
33528         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
33529         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
33530         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
33531         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
33532         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
33533         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
33534         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
33535         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
33536         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
33537         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
33538         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
33539         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
33540         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
33541         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
33542         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
33543         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
33544         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
33545         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
33546         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
33547         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
33548         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
33549         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
33550         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
33551         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
33552         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
33553         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
33554
33555         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
33556         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
33557         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
33558         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
33559         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
33560         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
33561         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
33562         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
33563         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
33564         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
33565         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
33566         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
33567         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
33568         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
33569         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
33570         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
33571         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
33572         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
33573         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
33574         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
33575         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
33576         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
33577         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
33578         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
33579         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
33580         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
33581         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
33582         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
33583         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
33584         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
33585         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
33586         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
33587         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
33588         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
33589         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
33590         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
33591         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
33592         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
33593         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
33594         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
33595         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
33596         s-osinte-vms.ads, s-osinte-vxworks.adb,
33597         s-osinte-vxworks.ads, s-osprim-mingw.adb,
33598         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
33599         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
33600         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
33601         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
33602         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
33603         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
33604         s-stchop-vxworks.adb, s-taprop-dummy.adb,
33605         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
33606         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
33607         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
33608         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
33609         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
33610         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
33611         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
33612         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
33613         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
33614         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
33615         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
33616         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
33617         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
33618         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
33619         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
33620         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
33621         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
33622         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
33623         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
33624         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
33625         system-irix-o32.ads, system-linux-x86_64.ads,
33626         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
33627         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
33628         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
33629         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
33630         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
33631         system-vxworks-mips.ads, system-vxworks-ppc.ads,
33632         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
33633         above.
33634
33635 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
33636
33637         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
33638
33639 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
33640
33641         Merge from tree-ssa-20020619-branch.
33642
33643         * config-lang.in (boot_language, build_by_default): Set
33644         to no.
33645         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
33646         (max_size): Add static chain op for call_expr.
33647
33648 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
33649
33650         PR target/15331
33651         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
33652
33653 2004-05-11  Roger Sayle  <roger@eyesopen.com>
33654
33655         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
33656         COND_EXPR.
33657
33658 2004-05-10  Doug Rupp  <rupp@gnat.com>
33659
33660         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
33661         system.aux_dec.
33662
33663         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
33664
33665         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
33666
33667         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
33668         Fixes undefined symbols in IA64 gnatlib.
33669
33670         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
33671
33672         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
33673         Short_Address). This will be moved to system.auxdec.
33674
33675 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
33676
33677         * sem_util.adb: Replace test for presence of a node that is always
33678         present with a call to Discard_Node.
33679
33680         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
33681         Analyze on the library unit node after generation of distribution stub
33682         constructs.  The call was a no-op because Unit_Node has already been
33683         Analyzed, and the tree fragments for the distribution stubs are
33684         analyzed as they are inserted in Exp_Dist.
33685         Update comment regarding to distribution stubs to reflect that we
33686         do not generate stub in separate files anymore.
33687
33688         * einfo.ads: Clarify the fact that a tagged private type has the
33689         E_Record_Type_With_Private Ekind.
33690
33691         * erroutc.adb: Minor reformatting
33692
33693         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
33694         values if line length is increased using -gnatyM (noticed during code
33695         reading).
33696
33697         * eval_fat.adb: Minor reformatting
33698         Put spaces around exponentiation operator
33699
33700 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
33701
33702         PR ada/15005
33703         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
33704         has been rewritten as an explicit dereference, retrieve type of
33705         original node to check for possibly unconstrained record type.
33706
33707 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
33708
33709         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
33710         overriding, use the operation of the parent unconditionally.
33711
33712         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
33713         operation when either operand is a literal, to avoid further
33714         ambiguities.
33715
33716         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
33717         overridden by a previous explicit declaration, mark the previous entity
33718         as overriding.
33719
33720         * sem_disp.adb (Check_Dispatching_Operation): New predicate
33721         Is_Visibly_Controlled, to determine whether a declaration of a
33722         primitive control operation for a derived type overrides an inherited
33723         one. Add warning if the explicit declaration does not override.
33724
33725 2004-05-10  Vincent Celier  <celier@gnat.com>
33726
33727         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
33728         some cases when the sources are no longer present.
33729
33730         * make.adb (Collect_Arguments): Fail if an external source, not part
33731         of any project need to be compiled, when switch -x has not been
33732         specified.
33733
33734         * makeusg.adb: Document new switch -x
33735
33736         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
33737         defaulted to False.
33738
33739         * switch-m.adb (Scan_Make_Switches): New switch -x
33740
33741         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
33742         gnatmake switch -x.
33743
33744         * gnat_ugn.texi: Document new gnatmake switch -x
33745
33746 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
33747
33748         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
33749
33750         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
33751         (process_attributes): Likewise.
33752
33753 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
33754
33755         * s-inmaop.ads: Fix spelling mistake in one of the comments.
33756
33757 2004-05-10  Robert Dewar  <dewar@gnat.com>
33758
33759         * gnat_ugn.texi: Document that for config pragma files, the maximum
33760         line length is always 32767.
33761
33762         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
33763         literals is now allowed.
33764
33765         * gnat-style.texi: Remove statement about splitting long lines before
33766         an operator rather than after, since we do not follow this rule at all.
33767         Clarify rule (really lack of rule) for spaces around exponentiation
33768
33769         * sem_elim.adb: Allow concatenation of string literals as well as a
33770         single string literal for pragma arguments.
33771
33772         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
33773
33774         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
33775         written for append case.
33776
33777         * frontend.adb: Changes to avoid checking max line length in config
33778         pragma files.
33779
33780         * g-os_lib.ads: Minor reformatting
33781
33782         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
33783         wrong in any case. Instead use standard value. Noticed during code
33784         reading.
33785
33786         * opt.ads (Max_Line_Length): New field, used to implement removal of
33787         limitation on length of lines when scanning config pragma files.
33788
33789         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
33790         makeutl.ads, makeutl.adb: Minor reformatting
33791
33792         * scn.adb: Do not check line length while scanning config pragma files
33793         Do not check line length while scanning out license information
33794
33795         * scng.adb: Changes to avoid line length checks while parsing config
33796         pragma files.
33797
33798 2004-05-10  GNAT Script  <nobody@gnat.com>
33799
33800         * Make-lang.in: Makefile automatically updated
33801
33802 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
33803
33804         * osint.adb (Find_Program_Name): Fix handling of VMS version
33805         number.
33806
33807 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
33808
33809         * g-os_lib.ads (Invalid_Time): New constant
33810
33811         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
33812         return OS_Time instead of time_t to match what is imported by Ada.
33813         Now return -1 if the file doesn't exist, instead of a random value
33814
33815 2004-05-05  Robert Dewar  <dewar@gnat.com>
33816
33817         * usage.adb: Add line for -gnatR?s switch
33818
33819         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
33820
33821         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
33822         and for Match (Data_First, Data_last)
33823
33824         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
33825         written when we are dealing with multi-unit files.
33826
33827 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
33828
33829         * Makefile.in: Remove unused targets and variables.
33830
33831 2004-05-05  Vincent Celier  <celier@gnat.com>
33832
33833         * switch-m.adb: New gnatmake switch -eI
33834
33835         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
33836         of new gnatmake switch -eInnn.
33837
33838         * makegpr.adb: Take into account new parameters Index and Src_Index in
33839         Prj.Util.
33840
33841         * clean.adb: Implement support for multi-unit sources, including new
33842         switch -i.
33843
33844         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
33845         Src_Index.
33846
33847         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
33848         (Extract_From_Q): New out parameter Index
33849         (Mark, Is_Marked): Subprograms moved to Makeutl
33850         (Switches_Of): New parameter Source_Index
33851         (Add_Switch): New parameter Index
33852         (Check): New parameter Source_Index
33853         (Collect_Arguments): New parameter Source_Index
33854         (Collect_Arguments_And_Compile): New parameter Source_Index
33855         (Compile): New parameter Source_Index
33856         Put subprograms in alphabetical order
33857         Add support for multi-source sources, including in project files.
33858
33859         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
33860         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
33861         Make.
33862
33863         * makeusg.adb: New gnatmake switch -eInnn
33864
33865         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
33866         Prj.Util.Value_Of.
33867
33868         * opt.ads (Main_Index): New variable, defaulted to 0.
33869
33870         * osint.ads, osinte.adb (Add_File): New parameter Index
33871         (Current_Source_Index): New function
33872
33873         * prj.adb: Take into account new components Index and Src_Index
33874
33875         * prj.ads (String_Element): New component Index
33876         (Variable_Value): New component Index
33877         (Array_Element): New component Src_Index
33878
33879         * prj-attr.adb: Indicate that optional index may be specified for
33880         attributes Main, Executable, Spec, Body and some of Switches.
33881
33882         * prj-attr.ads (Attribute_Kind): New values for optional indexes
33883         (Attribute_Record): New component Optional_Index
33884
33885         * prj-com.ads (File_Name_Data): New component Index
33886
33887         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
33888
33889         * prj-env.adb (Put): Output optional index
33890
33891         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
33892         attributes Spec and Body.
33893
33894         * prj-nmsc.adb: Process optional indexes
33895
33896         * prj-pp.adb: Ouput "at" for optional indexes
33897
33898         * prj-proc.adb: Take into account optional indexes
33899
33900         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
33901         Optional_Index. For string literal,
33902         process optional index when Optional_Index is True.
33903         (Parse_Expresion): New Boolean parameter Optional_Index
33904
33905         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
33906         (Set_Source_Index_Of): New procedure
33907
33908         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
33909         index.
33910
33911         * prj-util.ads (Executable_Of): New parameter Index
33912         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
33913         New parameter Src_Index, defaulted to 0.
33914
33915 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
33916
33917         PR ada/15257
33918         * sem_ch3.adb (Access_Definition): If this is an access parameter
33919         whose designated type is imported through a limited_with clause, do
33920         not add the enclosing subprogram to the list of private dependents of
33921         the type.
33922
33923 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
33924
33925         PR ada/15258
33926         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
33927         a limited_with clause, and the other is its non-limited view.
33928
33929 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
33930
33931         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
33932
33933         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
33934         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
33935         Stand.Boolean_Literals to produce references to entities
33936         Standard_False and Standard_True from compile-time computed boolean
33937         values.
33938
33939         * stand.ads (Boolean_Literals): New variable, provides the entity
33940         values for False and True, for use by the expander.
33941
33942 2004-05-05  Doug Rupp  <rupp@gnat.com>
33943
33944         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
33945         5vinmaop.adb: Unchecked convert Short_Address vice Address
33946
33947         * adaint.c, raise.c: Caste CRTL function return value
33948         to avoid gcc error on 32/64 bit IVMS.
33949
33950         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
33951         target = IA64/VMS.
33952
33953         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
33954
33955         * 5qsystem.ads (Address): Declare as Long_Integer
33956         (Short_Address): Declare as 32 bit subtype of Address
33957         Declare  abstract address operations to avoid gratuitous ambiguities.
33958
33959 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
33960
33961         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
33962         instead of the old Boolean_Entry_Barriers.
33963         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
33964
33965 2004-05-05  GNAT Script  <nobody@gnat.com>
33966
33967         * Make-lang.in: Makefile automatically updated
33968
33969 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
33970
33971         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
33972
33973 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
33974
33975         PR ada/15152
33976         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
33977         alone. Replacing object references by literals is inappropriate in a
33978         so low level context.
33979
33980 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
33981
33982         * a-exexpr.adb: Add comments
33983
33984 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
33985
33986         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
33987         declare the Ancestor_Tags array in Type_Specific_Data with a small size
33988         without risking a bounds check error when accessing one of its
33989         components.
33990         (Type_Specific_Data): Define Ancestor_Tags as a small array.
33991         This prevents us from hitting a limitation during the debug info
33992         generation when using stabs.
33993
33994         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
33995         small array.
33996         This prevents us from hitting a limitation during the debug info
33997         generation when using stabs.
33998
33999 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
34000
34001         lang-specs.h: Remove -gnatz* from specs.
34002
34003 2004-05-03  Vincent Celier  <celier@gnat.com>
34004
34005         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
34006
34007         * Make-lang.in, Makefile.in: Add gprmake
34008
34009 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
34010
34011         * sem_aggr.adb: Fix typo in comment.
34012
34013 2004-05-03  Robert Dewar  <dewar@gnat.com>
34014
34015         * make.adb: Minor reformatting
34016
34017         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
34018
34019         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
34020         so that it works when address is not a private type.
34021
34022         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
34023         properly with rewritten unchecked conversions. This prevents
34024         order-of-elaboration issues that can otherwise arise.
34025         (Minimum_Size): Don't check size of access types under VMS
34026
34027         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
34028         interpretations of integer literals as type System.Address.
34029
34030         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
34031         (Is_Descendent_Of): New function
34032
34033 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
34034
34035         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
34036         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
34037         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
34038
34039         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
34040         of the old Max_Entry_Queue_Depth.
34041
34042         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
34043         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
34044         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
34045
34046         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
34047         New entry for proper handling of Max_Entry_Queue_Depth.
34048         New entry for proper handling of No_Dynamic_Interrupts.
34049
34050         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
34051         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
34052         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
34053         the GNAT specific restriction Max_Entry_Queue_Depth.
34054         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
34055         the GNAT specific restriction No_Dynamic_Interrupts.
34056
34057         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
34058         instead of the old Boolean_Entry_Barriers.
34059         Use the new restriction No_Dynamic_Attachment instead of the old
34060         No_Dynamic_Interrupts.
34061
34062         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
34063         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
34064
34065         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
34066         of the old Max_Entry_Queue_Depth.
34067
34068 2004-05-03  GNAT Script  <nobody@gnat.com>
34069
34070         * Make-lang.in: Makefile automatically updated
34071
34072 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
34073
34074         * checks.adb (Enable_Range_Check): If the prefix of an index component
34075         is an access to an unconstrained array, perform check unconditionally.
34076
34077 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34078
34079         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
34080         Component_Clause.
34081
34082 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
34083
34084         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
34085         alternate stack setting. There was no support for the tasking cases
34086         and the changes eventually caused a number of side-effect failures in
34087         the non-tasking case too.
34088
34089 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
34090
34091         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
34092         -gnats is passed.
34093
34094 2004-04-29  Vincent Celier  <celier@gnat.com>
34095
34096         * make.adb (Gnatmake): Increase max size of argument array for
34097         gnatbind for the potential addition of -F.
34098         If there are Stand-Alone Library projects, invoke gnatbind with -F to
34099         be sure that elaboration flags will be checked.
34100
34101         * switch-c.adb: Correct call to Scan_Pos for -gnateI
34102
34103 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
34104
34105         * sem_warn.adb (Check_References): Move '<access-variable> may be
34106         null' warning out of under Warn_On_No_Value_Assigned.
34107
34108 2004-04-29  Ed Falis  <falis@gnat.com>
34109
34110         * gnat_ugn.texi: Fixed texi error
34111
34112 2004-04-29  Robert Dewar  <dewar@gnat.com>
34113
34114         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
34115         abstract operations if they come from predefined files.
34116
34117         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
34118         Dynamic, not RM).
34119
34120         * s-addope.adb: Correct obvious error in mod function
34121
34122 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
34123
34124         * Makefile.in: Add target pairs for powerpc darwin*
34125         tasking support.
34126
34127         * a-intnam-darwin.ads, s-osinte-darwin.adb,
34128         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
34129
34130 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
34131
34132         * Makefile.in: Add target macro definitions for s390*-linux*.
34133         * system-linux-s390.ads: New file.
34134         * system-linux-s390x.ads: New file.
34135
34136 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
34137
34138         * gnat_ugn.texi: Correct argument to @setfilename.
34139
34140 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
34141
34142         * a-exexpr.adb (Unwind_Word): New data type.
34143         (Unwind_Exception): Use it as type of Private1 and Private2.
34144
34145         * raise.c (db_action_for): Fix debug printf.
34146
34147 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
34148
34149         * a-wtmoio.ads: Formal type must be a modular type, not a signed
34150         integer type.
34151
34152 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34153
34154         * decl.c (gnat_to_gnu_entity, case object): Call
34155         __builtin_update_setjmp_buf.
34156
34157         * gigi.h (update_setjmp_buf): Deleted.
34158         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
34159
34160         * misc.c: (update_setjmp_buf): Deleted.
34161
34162         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
34163         around block of RTL.
34164
34165         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
34166
34167 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
34168
34169         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
34170         subprogram for which no pragma All_Calls_Remote applies, store the
34171         address of the real subprogram in the underlying record type, so local
34172         dereferences do not go through the PCS.
34173
34174 2004-04-26  Robert Dewar  <dewar@gnat.com>
34175
34176         * i-c.ads: Add some type qualifications to avoid ambiguities when
34177         compiling with s-auxdec.ads and a non-private address type.
34178
34179 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
34180
34181         * Makefile.rtl: Fix error in previous check-in:
34182         Add s-addope.o to non tasking object list (rather than tasking object
34183         list).
34184
34185 2004-04-26  Javier Miranda  <miranda@gnat.com>
34186
34187         * sem_aggr.adb: Fix typo in comments
34188         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
34189         Required to check the null-exclusion attribute.
34190
34191         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
34192         case of anonymous access types in record and array components. For a
34193         component definition the level is the same of the enclosing composite
34194         type.
34195
34196         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
34197         that are anonymous access types the level of accessibility depends on
34198         the enclosing type declaration. In order to have this information, set
34199         the scope of the anonymous access type to the enclosing record type
34200         declaration.
34201         (Array_Type_Declaration): In case of components that are anonymous
34202         access types the level of accessibility depends on the enclosing type
34203         declaration. In order to have this information, set the scope of the
34204         anonymous access type to the enclosing array type declaration.
34205
34206         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
34207         access type.
34208
34209         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
34210         renaming of anonymous access-to-constant types allowed if and only if
34211         the renamed object is access-to-constant.
34212
34213         * sem_util.adb (Type_Access_Level): In case of anonymous access types
34214         that are component_definition or discriminants of a nonlimited type,
34215         the level is the same as that of the enclosing component type.
34216
34217 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
34218
34219         * sem_elim.adb: Some minor code reorganization from code reading. Fix
34220         misprint in the function name (File_Name_Match).
34221
34222 2004-04-23  Laurent Guerby  <laurent@guerby.net>
34223
34224         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
34225         install.
34226
34227 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
34228
34229         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
34230
34231 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
34232
34233         * adaint.c (__gnat_try_lock): No longer requires that the parent
34234         directory be writable, the directory itself is enough.
34235         (gnat_is_absolute_path): Change profile, so that the call from
34236         GNAT.OS_Lib can be made more efficient.
34237
34238         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
34239         from GNAT.OS_Lib can be made more efficient.
34240
34241         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
34242         one copy of the file name. Found by code reading.
34243
34244 2004-04-23  Vincent Celier  <celier@gnat.com>
34245
34246         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
34247         Correct documentation on gnatmake switches transmitted to the compiler
34248
34249         * ali.ads: Minor comment fix
34250
34251 2004-04-23  Javier Miranda  <miranda@gnat.com>
34252
34253         * sem_ch6.adb: (Confirming Types): Code cleanup
34254
34255         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
34256         subprogram types: E_Anonymous_Access_Subprogram_Type and
34257         E_Anonymous_Access_Protected_Subprogram_Type.
34258
34259 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
34260
34261         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
34262         whether a pragma All_Calls_Remote applies to the subprogram on which
34263         'Access is taken.
34264         No functional change is introduced by this revision; the new parameter
34265         will be used to allow calls to local RCI subprograms to be optimized
34266         to not use the PCS in the case where no pragma All_Calls_Remote applies,
34267         as is already done in the PolyORB implementation of the DSA.
34268
34269         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
34270         whether a pragma All_Calls_Remote applies to the subprogram on which
34271         'Access is taken.
34272         No functional change is introduced by this revision; the new parameter
34273         will be used to allow calls to local RCI subprograms to be optimized
34274         to not use the PCS in the case where no pragma All_Calls_Remote applies,
34275         as is already done in the PolyORB implementation of the DSA.
34276
34277 2004-04-23  Robert Dewar  <dewar@gnat.com>
34278
34279         * Makefile.rtl: Add entry for s-addope.o in run time library list
34280         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
34281         * s-addope.ads, s-addope.adb: New files.
34282
34283         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
34284         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
34285         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
34286         System.Address to be non-private and signed.
34287
34288         * sem_elim.adb: Minor reformatting (fairly extensive)
34289         Some minor code reorganization from code reading
34290         Add a couple of ??? comments
34291
34292 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34293
34294         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
34295         (tree_transform, case N_If_Statement): Remove non-determinism.
34296
34297         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
34298
34299 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
34300
34301         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
34302         Eliminate' section.
34303
34304         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
34305         no longer used as a parameter name for Eliminate pragma).
34306
34307 2004-04-22  Laurent Guerby  <laurent@guerby.net>
34308
34309         PR optimization/14984
34310         PR optimization/14985
34311         * trans.c (gigi): Fix non determinism leading to bootstrap
34312         comparison failures.
34313
34314 2004-04-21  Pascal Obry  <obry@gnat.com>
34315
34316         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
34317         passed to spawnvp() to properly handle program pathname with spaces on
34318         Win32.
34319
34320 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
34321
34322         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
34323         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
34324         unlocked in case of exceptions.
34325
34326 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
34327
34328         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
34329         This function does not exist anymore.
34330
34331 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
34332
34333         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
34334
34335         * link.c: Move variables to the __gnat name space.
34336
34337         * Makefile.in: list link.o explicitly when needed.
34338
34339         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
34340
34341 2004-04-21  Javier Miranda  <miranda@gnat.com>
34342
34343         * einfo.adb (Original_Access_Type): New subprogram
34344         (Set_Original_Access_Type): New subprogram
34345         (Write_Field21_Name): Write the name of the new field
34346
34347         * einfo.ads (Original_Access_Type): New field present in access to
34348         subprogram types.
34349         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
34350         E_Anonymous_Access_Protected_Subprogram_Type.
34351
34352         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
34353         subprogram types.
34354
34355         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
34356         to anonymous access to subprogram types.
34357
34358         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
34359         to subprogram types.
34360
34361         * sem_ch3.adb (Access_Definition): Complete decoration of entities
34362         corresponding to anonymous access to subprogram types.
34363         (Analyze_Component_Declaration): Add new actual to the call to
34364         subprogram replace_anonymous_access_to_protected_subprogram.
34365         (Array_Type_Declaration): Add new actual to the call to subprogram
34366         replace_anonymous_access_to_protected_subprogram.
34367         (Process_Discriminants): Add new actual to the call to subprogram
34368         replace_anonymous_access_to_protected_subprogram.
34369         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
34370
34371         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
34372         formal.
34373
34374         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
34375         access to subprogram types.
34376
34377         * sem_util.adb (Has_Declarations): Addition of package_specification
34378         nodes.
34379
34380 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
34381
34382         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
34383         inlined flags to renamed entity only if in current unit.
34384
34385 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
34386
34387         * s-parint.ads: Add DSA implementation marker.
34388
34389         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
34390         value of System.Partition_Interface.DSA_Implementation to determine
34391         what version of the distributed systems annex is available (no
34392         implementation, GLADE, or PolyORB).
34393
34394 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
34395
34396         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
34397
34398 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34399
34400         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
34401         with new type if alias sets differ.
34402         Fixes ACATS c41103b.
34403
34404 2004-04-21  Vincent Celier  <celier@gnat.com>
34405
34406         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
34407         Add array Lang_Args for the language specific compiling argument
34408         switches.
34409
34410         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
34411
34412 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
34413
34414         * gnat_rm.texi: Update the descripton of the Eliminate pragma
34415         according to the recent changes in the format of the parameters of the
34416         pragma (replacing Homonym_Number with Source_Location).
34417
34418 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
34419
34420         * 5isystem.ads: Removed, unused.
34421
34422         * gnat_rm.texi: Redo 1.13 change.
34423
34424 2004-04-19  Robert Dewar  <dewar@gnat.com>
34425
34426         * s-stoele.ads: Clean up definition of Storage_Offset (the new
34427         definition is cleaner, avoids the kludge of explicit Standard operator
34428         references, and also is consistent with a visible System.Address with
34429         no visible operations.
34430
34431         * s-geveop.adb: Add declarations to avoid assumption of visible
34432         operations on type System.Address (since these might not be available
34433         if Address is a non-private type for which the operations
34434         are made abstract).
34435
34436         * sem_eval.adb: Minor reformatting
34437
34438         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
34439         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
34440         reformatting (new function spec format).
34441
34442         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
34443         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
34444         s-caun64.adb: Add declarations to avoid assumption of visible
34445         operations on type System.Address (since these might not be available
34446         if Address is a non-private type for which the operations are made
34447         abstract).
34448
34449         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
34450
34451         * exp_intr.adb: Minor comment update
34452
34453         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
34454
34455         * 5omastop.adb: Add declarations to avoid assumption of visible
34456         operations on type System.Address (since these might not be available
34457         if Address is a non-private type for which the operations
34458         are made abstract).
34459
34460 2004-04-19  Vincent Celier  <celier@gnat.com>
34461
34462         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
34463
34464         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
34465         defaulted to Ada.
34466
34467         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
34468         defaulted to Ada.
34469         Call Check with Process_Languages.
34470         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
34471         with Process_Languages.
34472         (Recursive_Check): New Boolean parameter Process_Languages. Call
34473         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
34474         Process_Languages.
34475
34476         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
34477
34478         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
34479         parameter Ada_Main, defaulted to True.
34480         Check for Ada specific characteristics only when Ada_Main is True.
34481
34482         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
34483
34484         * prj.adb: (Project_Empty): Add new Project_Data components.
34485
34486         * prj.ads: New types and tables for non Ada languages.
34487         (Project_Data): New components Languages, Impl_Suffixes,
34488         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
34489         Include_Path, Include_Data_Set.
34490
34491         * prj-env.ads, prj-env.adb: Minor reformatting
34492
34493         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
34494         Put subprograms in alphabetical order
34495
34496         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
34497         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
34498         Opt.Follow_Links.
34499
34500         * mlib-prj.adb: Back out modification in last version, as they are
34501         incorrect.
34502         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
34503
34504         * make.adb: (Mains): Moved to package Makeutl
34505         (Linker_Opts): Moved to package Makeutl
34506         (Is_External_Assignment): Moved to package Makeutl
34507         (Test_If_Relative_Path): Moved to package Makeutl
34508         (Gnatmake): Move sorting of linker options to function
34509         Makeutl.Linker_Options_Switches.
34510
34511         * makeutl.ads, makeutl.adb: New files.
34512
34513         * Makefile.in: Add makeutl.o to the object files for gnatmake
34514
34515         * makeusg.adb: Add line for new switch -eL.
34516
34517         * gnatls.adb (Image): New function.
34518         (Output_Unit): If in verbose mode, output the list of restrictions
34519         specified by pragmas Restrictions.
34520
34521         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
34522         Text_IO.
34523
34524         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
34525         needed, to put it in the range 1970 (included) - 2026 (excluded).
34526         (Time_Of): Do not shift Unix_Min_Year (1970).
34527         Shift the date by multiple of 56 years, if needed, to put it in the
34528         range 1970 (included) - 2026 (excluded).
34529
34530         * adaint.h, adaint.c (__gnat_set_executable): New function.
34531
34532 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34533
34534         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
34535         and pop GC context.
34536         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
34537         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
34538         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
34539         (tree_transform, case N_Code_Statement): Likewise.
34540         (gnat_expand_stmt, case LABEL_STMT): Don't look at
34541         LABEL_STMT_FIRST_IN_EH.
34542         (gnat_expand_stmt, case ASM_STMT): New case.
34543
34544         * utils2.c (build_unary_op): Properly set TREE_READONLY of
34545         UNCONSTRAINED_ARRAY_REF.
34546
34547         * utils.c (poplevel): Temporarily push/pop GC context around inline
34548         function expansion.
34549
34550         * decl.c (maybe_variable): Properly set TREE_READONLY of
34551         UNCONSTRAINED_ARRAY_REF.
34552         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
34553
34554         * ada-tree.def: (ASM_STMT): New.
34555
34556         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
34557         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
34558         ASM_STMT_INPUT): New.
34559         (ASM_STMT_CLOBBER): Likewise.
34560
34561 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
34562
34563         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
34564         general rcheck mechanism to raise Program_Error for E.4(18), instead
34565         of a custom raiser in System.Partition_Interface.
34566         Part of general cleanup work before PolyORB integration.
34567
34568         * snames.ads, snames.adb: Add new runtime library entities and names
34569         for PolyORB DSA.
34570
34571         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
34572         exp_dist.
34573         (Build_Subprogram_Id): New subprogram provided by exp_dist
34574         Code reorganisation in preparation for PolyORB integration.
34575
34576         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
34577         exp_dist.
34578         (Build_Subprogram_Id): New subprogram provided by exp_dist
34579
34580         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
34581         actual parameter types for call to dereference of an
34582         access-to-subprogram type.
34583
34584         * rtsfind.ads: Add new runtime library entities and names for PolyORB
34585         DSA.
34586
34587         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
34588         instead, which has the same behaviour here since we never pass it a
34589         NULL pointer.
34590
34591         * link.c (run_path_option, Solaris case): Use -Wl, as for other
34592         platforms.
34593
34594         * Makefile.in: adjust object file lists for gnatlink and gnatmake
34595         to account for new dependency upon Interfaces.C.Strings + link.o
34596         For x86 FreeBSD, use 86numaux.
34597
34598         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
34599         from Mlib.Tgt to Mlib.
34600
34601         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
34602         target-independent.
34603
34604         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
34605         target-specific versions of this subprogram, now implemented as a
34606         target-independent function in Mlib.
34607
34608         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
34609         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
34610         (Linker_Library_Path_Option): Remove target-specific versions of this
34611         subprogram, now implemented as a target-independent function in Mlib.
34612
34613         * atree.adb: (Allocate_Initialize_Node): New subprogram.
34614         Factors out node table slots allocation.
34615         (Fix_Parents): New subprogram.
34616         Encapsulate the pattern of fixing up parent pointers for syntactic
34617         children of a rewritten node.
34618         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
34619         (Rewrite): Use New_Copy when creating saved copy of original node.
34620         (Replace): Use Copy_Node to copy nodes.
34621
34622 2004-04-19  Javier Miranda  <miranda@gnat.com>
34623
34624         * sprint.adb (Sprint_Node_Actual): Give support to the new
34625         Access_To_Subprogram node available in Access_Definition nodes. In
34626         addition, give support to the AI-231 node fields: null-exclusion,
34627         all-present, constant-present.
34628
34629         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
34630
34631         * sinfo.ads, sinfo.adb:
34632         New field Access_To_Subprogram_Definition in Access_Definition nodes
34633
34634         * sem_ch6.adb (Process_Formals): Move here the code that creates and
34635         decorates internal subtype declaration corresponding to the
34636         null-excluding formal. This code was previously in Set_Actual_Subtypes.
34637         In addition, carry out some code cleanup on this code. In case of
34638         access to protected subprogram call
34639         Replace_Anonymous_Access_To_Protected_Subprogram.
34640         (Set_Actual_Subtypes): Code cleanup.
34641
34642         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
34643         Find_Type in case of anonymous access renamings. Add warning in case of
34644         null-excluding attribute used in anonymous access renaming.
34645
34646         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
34647         subprogram
34648
34649         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
34650         subprogram.
34651         (Access_Definition): In case of anonymous access to subprograms call
34652         the corresponding semantic routine to decorate the node.
34653         (Access_Subprogram_Declaration): Addition of some comments indicating
34654         some code that probably should be added here. Detected by comparison
34655         with the access_definition subprogram.
34656         (Analyze_Component_Declaration): In case of access to protected
34657         subprogram call Replace_Anonymous_Access_To_Protected.
34658         (Array_Type_Declaration): In case of access to protected subprogram call
34659         Replace_Anonymous_Access_To_Protected_Subprogram.
34660         (Process_Discriminants): In case of access to protected subprogram call
34661         Replace_Anonymous_Access_To_Protected_Subprogram.
34662
34663         * par.adb (P_Access_Definition): New formal that indicates if the
34664         null-exclusion part was present.
34665         (P_Access_Type_Definition): New formal that indicates if the caller has
34666         already parsed the null-excluding part.
34667
34668         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
34669         (P_Identifier_Declarations): Code cleanup and give support to renamings
34670         of anonymous access to subprogram types.
34671         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
34672         (P_Array_Type_Definition): Give support to AI-254.
34673         (P_Component_Items): Give support to AI-254.
34674         (P_Access_Definition): New formal that indicates if the header was
34675         already parsed by the caller.
34676         (P_Access_Type_Definition): New formal that indicates if the caller has
34677         already parsed the null-excluding part.
34678
34679         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
34680         call to P_Access_Definition.
34681
34682 2004-04-19  Geert Bosch  <bosch@gnat.com>
34683
34684         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
34685         the delicate semantics of floating-point to integer conversion.
34686         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
34687
34688         * eval_fat.adb (Machine_Mantissa): Moved to spec.
34689         (Machine_Radix): New function.
34690
34691         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
34692         conversion checks.
34693         (Machine_Radix): New function also for use in conversion checks.
34694
34695 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
34696
34697         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
34698
34699         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
34700         to decorate the access-to-protected subprogram and the equivalent type.
34701
34702         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
34703         to anonymous access to subprogram types.
34704
34705         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
34706         constant-folding, for legality checks in contexts that require an RM
34707         static expression.
34708
34709         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
34710         temporary but stack checking is not enabled, increment serial number
34711         to so that symbol generation is consistent with and without stack
34712         checking.
34713
34714         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
34715         independent on whether stack checking is enabled, caller must check
34716         the corresponding flag.
34717
34718         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
34719         range checks.
34720         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
34721         parent if it has discriminants.
34722         (Build_Derived_Private_Type): Constructed full view does
34723         not come from source.
34724         (Process_Discriminants): Default discriminants on a tagged type are
34725         legal if this is the internal completion of a private untagged
34726         derivation.
34727
34728         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
34729         no constraint checks, because it corresponds to an existing object.
34730
34731         * sem_prag.adb (Process_Convention): Pragma applies
34732         only to subprograms in the same declarative part, i.e. the same unit,
34733         not the same scope.
34734
34735         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
34736         ignore type mismatch on a numeric conversion if expression comes from
34737         expansion.
34738
34739 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
34740
34741         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
34742         Homonym_Number parameter, add processing for Source_Location parameter
34743         corresponding.
34744         (Check_Eliminated): Remove the check for homonym numbers, add the check
34745         for source location traces.
34746
34747         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
34748         with Arg_Source_Location corresponding to the changes in the format of
34749         the pragma.
34750
34751         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
34752         Eliminate pragma corresponding to the changes in the format of the
34753         pragma: Homonym_Number is replaced with Source_Location, two ways of
34754         distinguishing homonyms are mutially-exclusive.
34755
34756 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
34757
34758         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
34759
34760         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
34761         No_Dollar_In_Label, no longer necessary, as it is always True.
34762         (Strip_Suffixes): Likewise.
34763
34764 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
34765
34766         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
34767         modulus for compatibility with size clause on targets with 16-bit
34768         Integer.
34769
34770         * layout.adb (Discrimify): In the case of private types, set Vtyp to
34771         full type to fix type mismatches on calls to size functions for
34772         discriminant-dependent array components.
34773
34774 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
34775
34776         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
34777         lib.
34778
34779 2004-04-19  Pascal Obry  <obry@gnat.com>
34780
34781         * mdll-utl.adb (Locate): New version is idempotent.
34782
34783 2004-04-17  Laurent Guerby  <laurent@guerby.net>
34784
34785         PR ada/14988 (partial)
34786         * impunit.adb: Fix typo.
34787
34788 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
34789
34790         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
34791         and install-rts-cert targets.  Remove all gnatlib and gnattools
34792         targets and all other rts-* targets (moved to libada).  Remove (now)
34793         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
34794         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
34795
34796 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34797
34798         * trans.c (tree_transform): Shortcut returning error_mark_node for
34799         statements in annotate_only_mode.
34800         (tree_transform, case N_Label, case N_Return_Statement,
34801         N_Goto_Statement): Make statement tree instead of generating code.
34802         (tree_transform, case N_Assignment_Statement): No longer check
34803         type_annotate_only.
34804         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
34805         RETURN_STMT): New.
34806         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
34807         New fcns.
34808         (gnat_to_gnu): Collect any RTL generated and deal with it.
34809         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
34810         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
34811         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
34812
34813         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
34814
34815         * ada-tree.def (EXPR_STMT): Fix typo in name.
34816         (BLOCK_STMT, IF_STMT): New nodes.
34817
34818         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
34819         LABEL_STMT_FIRST_IN_EH): New macros.
34820         (RETURN_STMT_EXPR): Likewise.
34821
34822         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
34823         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
34824
34825 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
34826
34827         * atree.ads: Correct documentation on extended nodes.
34828
34829         * link.c: Set run_path_option for FreeBSD.
34830
34831 2004-04-08  Vincent Celier  <celier@gnat.com>
34832
34833         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
34834         one of the ALI file, do not link with DEC lib.
34835
34836         * par.adb Remove the last two characters ("%s" or "%b") when checking
34837         if a language defined unit may be recompiled.
34838
34839 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
34840
34841         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
34842         removal of abstract operation leaves no possible interpretation for
34843         expression.
34844
34845         * sem_eval.adb (Eval_Qualified_Expression): Use
34846         Set_Raises_Constraint_Error on node when needed, so that it does not
34847         get optimized away by subsequent optimizations.
34848
34849         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
34850         operands even when they are not wrapped in a type conversion.
34851
34852 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
34853
34854         * sem_prag.adb (Set_Exported): Warn about making static as result of
34855         export only when the export is coming from source. This may be not
34856         be true e.g. on VMS where we expand export pragmas for exception codes
34857         together with imported or exported exceptions, and we don't want the
34858         user to be warned about something he didn't write.
34859
34860 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
34861
34862         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
34863         duplication between normal entities and those declared as renamings.
34864         No functional change.
34865
34866         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
34867         inline functions returning an unconstrained result.
34868
34869 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
34870
34871         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
34872         conform to what other front-ends do.
34873
34874 2004-04-08  Doug Rupp  <rupp@gnat.com>
34875
34876         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
34877         libraries.
34878
34879 2004-04-06  Pascal Obry  <obry@gnat.com>
34880
34881         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
34882
34883         * osint.adb (Program_Name): Do not look past a directory separator.
34884
34885 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
34886
34887         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
34888
34889         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
34890         requirement for preserving a copy of the original assignment node.
34891
34892         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
34893
34894 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
34895
34896         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
34897         when supported.
34898
34899 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
34900
34901         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
34902         operator calls in functional notation, and apply
34903         Universal_Interpretation to operands, not to their type.
34904
34905 2004-04-06  Robert Dewar  <dewar@gnat.com>
34906
34907         * 5wdirval.adb: Minor reformatting
34908
34909 2004-04-06  Ed Falis  <falis@gnat.com>
34910
34911         * gnat_rm.texi: Improve a reference to the GCC manual
34912
34913 2004-04-05  Vincent Celier  <celier@gnat.com>
34914
34915         * adaint.h, adaint.c: Add function __gnat_named_file_length
34916
34917         * impunit.adb: Add Ada.Directories to the list
34918
34919         * Makefile.in: Add VMS and Windows versions of
34920         Ada.Directories.Validity package body.
34921
34922         * Makefile.rtl: Add a-direct and a-dirval
34923
34924         * mlib-tgt.ads: Minor comment update.
34925
34926         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
34927         a-direct.ads, a-direct.adb: New files.
34928
34929 2004-04-05  Vincent Celier  <celier@gnat.com>
34930
34931         PR ada/13620
34932         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
34933         just to the compiler.
34934
34935 2004-04-05  Robert Dewar  <dewar@gnat.com>
34936
34937         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
34938         returned string is 1.
34939
34940         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
34941
34942         * eval_fat.ads: Minor reformatting
34943
34944         * g-curexc.ads: Document that lower bound of returned string values
34945         is always one.
34946
34947         * gnatlink.adb: Add ??? comment for previous change
34948         (need to document why this is VMS specific)
34949
34950         * s-stoele.ads: Minor reformatting
34951
34952         * tbuild.ads: Minor reformatting throughout (new function specs)
34953
34954         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
34955         after WITH.
34956
34957         * scng.adb: Minor reformatting
34958
34959 2004-04-05  Geert Bosch  <bosch@gnat.com>
34960
34961         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
34962         (Leading_Part): Still perform truncation to machine number if the
34963         specified radix_digits is greater or equal to machine_mantissa.
34964
34965 2004-04-05  Javier Miranda  <miranda@gnat.com>
34966
34967         * par-ch3.adb: Complete documentation of previous change
34968         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
34969         (aliased must appear before constant).
34970
34971         * par-ch4.adb: Complete documentation of previous change.
34972
34973         * par-ch6.adb: Complete documentation of previous change.
34974
34975         * sinfo.ads: Fix typo in commment.
34976
34977 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
34978
34979         * sem_ch3.adb (Inherit_Components): If derived type is private and has
34980         stored discriminants, use its discriminants to constrain parent type,
34981         as is done for non-private derived record types.
34982
34983         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
34984         Ada 2005 AI-310: an abstract non-dispatching operation is not a
34985         candidate interpretation in an overloaded call.
34986
34987         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
34988         expression is Null and target type is not an access type (e.g. a
34989         non-private address type).
34990
34991 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
34992
34993         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
34994         statement whose right-hand side is an inlined call, save a copy of the
34995         original assignment subtree to preserve enough consistency for
34996         Analyze_Assignment to proceed.
34997
34998         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
34999         complete assignment subtree which is now unnecessary, as the expansion
35000         of inlined call has been improved to preserve a consistent assignment
35001         tree.  Note_Possible_Modification must be called only
35002         after checks have been applied, or else unnecessary checks will
35003         be generated.
35004
35005         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
35006         of explicit dereferences that do not Come_From_Source:
35007          - be selective on cases where we must go back to the dereferenced
35008            pointer (an assignment to an implicit dereference must not be
35009            recorded as modifying the pointer);
35010          - do not rely on Original_Node being present (Analyze_Assignment
35011            calls Note_Possible_Modification on a copied tree).
35012
35013         * sem_warn.adb (Check_References): When an unset reference to a pointer
35014         that is never assigned is encountered, prefer '<pointer> may be null'
35015         warning over '<pointer> is never assigned a value'.
35016
35017 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
35018
35019         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
35020         the ABI.
35021
35022 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
35023
35024         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
35025         libexc. We currently don't reference anything in this library and
35026         linking it in triggers linker warnings we don't want to see.
35027
35028         * init.c: Update comments.
35029
35030 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35031
35032         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
35033         * utils.c (create_field_decl): Likewise.
35034         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
35035
35036 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
35037
35038         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
35039         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
35040         Add info directory entry and category.
35041
35042 2004-04-02  Jan Hubicka  <jh@suse.cz>
35043
35044         * utils.c: Include function.h
35045         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
35046
35047 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
35048
35049         PR ada/14150
35050         * Make-lang.in: Clean up generation of documentation
35051
35052         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
35053
35054         * xgnatug.adb: Removed, replaced by xgnatugn.adb
35055
35056         * xgnatugn.adb: Replaces xgnatug.adb
35057
35058         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
35059
35060         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
35061
35062         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35063         gnat_ug_wnt.texi: Removed.
35064
35065 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
35066
35067         * utils2.c: Update copyright notice.
35068
35069 2004-04-01  Robert Dewar  <dewar@gnat.com>
35070
35071         * checks.adb: Minor reformatting throughout
35072         Note that prev checkin added RM reference to alignment warning
35073
35074 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
35075
35076         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
35077         non-static when building aggregate for bit-packed array.
35078
35079         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
35080         function call that is itself the actual in a procedure call, build
35081         temporary for it.
35082
35083         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
35084         a string literal, create a temporary for it, constant folding only
35085         handles scalars here.
35086
35087 2004-04-01  Vincent Celier  <celier@gnat.com>
35088
35089         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
35090         Error_Msg_SP): New empty procedures to instantiate the Scanner.
35091         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
35092         tokens.
35093         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
35094         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
35095         and get the checksum.
35096
35097         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
35098         already in the Q.
35099         Increase the Marking_Label at the end of the Multiple_Main_Loop,
35100         instead of at the beginning.
35101
35102         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
35103         directly.
35104         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
35105         on VMS.
35106
35107         * osint.ads (Multi_Unit_Index_Character): New Character global variable
35108
35109         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
35110         not '~' directly.
35111
35112         * par.adb: Remove test on file name to detect language defined units.
35113         Add test on unit name, after parsing, to detect language defined units
35114         that are not compiled with -gnatg (except System.RPC and its children)
35115
35116         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
35117         following units without style checking.
35118
35119         * switch-c.adb: Change -gnatC to -gnateI
35120
35121         * usage.adb: Document new switch -gnateInnn
35122
35123         * scng.adb (Accumulate_Token_Checksum): New procedure
35124         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
35125         word or literal number.
35126         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
35127         numbers.
35128
35129 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
35130
35131         * a-tasatt.adb,
35132         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
35133         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
35134         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
35135         5vtpopde.adb: Add missing 'constant' keywords.
35136
35137 2004-04-01  Javier Miranda  <miranda@gnat.com>
35138
35139         * par-ch4.adb: (P_Allocator): Code cleanup
35140
35141         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
35142         attribute.
35143
35144         * sinfo.ads: Complete documentation of previous change
35145
35146 2004-04-01  Pascal Obry  <obry@gnat.com>
35147
35148         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
35149         only on VMS.  This special handling was done because an old GNU/ld bug
35150         on Windows which has been fixed.
35151
35152 2004-04-01  GNAT Script  <nobody@gnat.com>
35153
35154         * Make-lang.in: Makefile automatically updated
35155
35156 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35157
35158         * decl.c (gnat_to_gnu_entity, make_type_from_size):
35159         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
35160         * trans.c (tree_transform, convert_with_check): Likewise.
35161         * utils.c (gnat_signed_or_unsigned_type): Likewise.
35162         (build_vms_descriptor, unchecked_convert): Likewise.
35163         * utils2.c (nonbinary_modular_operation): Likewise.
35164
35165 2004-03-29  Javier Miranda  <miranda@gnat.com>
35166
35167         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
35168         (Install_Null_Excluding_Check): Local subprogram that determines whether
35169         an access node requires a runtime access check and if so inserts the
35170         appropriate run-time check.
35171         (Apply_Access_Check): Call Install_Null_Excluding check if required
35172         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
35173
35174         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
35175
35176         * einfo.ads: Fix typo in comment
35177
35178         * exp_ch3.adb (Build_Assignment): Generate conversion to the
35179         null-excluding type to force the corresponding run-time check.
35180         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
35181         type to force the corresponding run-time check.
35182
35183         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
35184         the null-excluding type to force the corresponding run-time check.
35185
35186         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
35187         case of access types unless they have the null-excluding attribute.
35188
35189         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
35190         part.
35191
35192         * exp_util.ads: Fix typo in comment
35193
35194         * par.adb (P_Null_Exclusion): New subprogram
35195         (P_Subtype_Indication): New formal that indicates if the null-excluding
35196         part has been scanned-out and it was present
35197
35198         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
35199
35200         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
35201         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
35202         type to force the corresponding run-time check
35203         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
35204         components
35205         (Resolve_Array_Aggregate): Carry out some static checks
35206         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
35207
35208         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
35209         attribute must be set only if specified by means of the null-excluding
35210         part. In addition, we must also propagate the access-constant attribute
35211         if present.
35212         (Access_Subprogram_Declaration, Access_Type_Declaration,
35213         Analyze_Component_Declaration, Analyze_Object_Declaration,
35214         Array_Type_Declaration, Process_Discriminants,
35215         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
35216         and carry out some static checks.
35217         (Build_Derived_Access_Type): Set the null-excluding attribute
35218         (Derived_Type_Declaration, Process_Subtype): Carry out some static
35219         checks.
35220
35221         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
35222
35223         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
35224
35225         * sem_ch6.adb (Process_Formals): Carry out some static checks.
35226         (Set_Actual_Subtypes): Generate null-excluding subtype if the
35227         null-excluding part was present; it is not required to be done here in
35228         case of anonymous access types.
35229         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
35230         value.
35231
35232         * sem_res.adb (Resolve_Actuals): Carry out some static check
35233         (Resolve_Null): Allow null in anonymous access
35234
35235         * sinfo.adb: New subprogram Null_Exclusion_Present
35236         All_Present and Constant_Present available on access_definition nodes
35237
35238         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
35239         object_declaration, derived_type_definition, component_definition,
35240         discriminant_specification, access_to_object_definition,
35241         access_function_definition, allocator, access_procedure_definition,
35242         access_definition, parameter_specification, All_Present and
35243         Constant_Present flags available on access_definition nodes.
35244
35245 2004-03-29  Robert Dewar  <dewar@gnat.com>
35246
35247         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
35248         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
35249         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
35250         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
35251         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
35252         sem_prag.adb: Updates to handle multiple units/file
35253
35254         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
35255
35256         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
35257         sem_util.adb: Minor reformatting
35258
35259         * sem_ch12.adb: Add comment for previous change
35260
35261 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
35262
35263         * osint.adb (Executable_Prefix): Set Exec_Name to the current
35264         executable name when not initialized. Otherwise, use its current value.
35265
35266         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
35267         initialize it to another executable name than the current one. This
35268         allows to configure paths for an executable name (gnatmake) different
35269         from the current one (gnatdist).
35270
35271 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
35272
35273         * exp_ch6.adb (Expand_Call): A call to a function declared in the
35274         current unit cannot be inlined if it appears in the body of a withed
35275         unit, to avoid order of elaboration problems in gigi.
35276
35277         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
35278         information for protected (wrapper) operation as well, to simplify gdb
35279         use.
35280
35281         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
35282         protected body, indicate that the entity for the generated spec comes
35283         from source, to ensure that references are properly generated for it.
35284         (Build_Body_To_Inline): Do not inline a function that returns a
35285         controlled type.
35286
35287         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
35288         apply convention to homonyms that are declared explicitly.
35289
35290         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
35291         that renames an equality operator and the operands are overloaded,
35292         resolve them with the declared formal types, before rewriting as an
35293         operator.
35294
35295 2004-03-29  GNAT Script  <nobody@gnat.com>
35296
35297         * Make-lang.in: Makefile automatically updated
35298
35299 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
35300
35301         * memtrack.adb: Log realloc calls, which are treated as free followed
35302         by alloc.
35303
35304 2004-03-25  Vincent Celier  <celier@gnat.com>
35305
35306         * prj-makr.adb (Process_Directories): Detect when a file contains
35307         several units. Do not include such files in the config pragmas or
35308         in the naming scheme.
35309
35310         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
35311         Resolve links only when not in Trusted_Mode.
35312         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
35313         Do not resolve links for the display names.
35314
35315         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
35316         resolve links when computing the display names.
35317
35318 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
35319
35320         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
35321         attribute reference does not denote a subtype, it can be any
35322         expression that has a classwide type, potentially after an implicit
35323         dereference.  In particular, the prefix can be a view conversion for
35324         a classwide type (for which Is_Object_Reference holds), but it can
35325         also be a value conversion for an access-to-classwide type. In the
35326         latter case, there is an implicit dereference, and the original node
35327         for the prefix does not verify Is_Object_Reference.
35328
35329         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
35330         conversion of a discriminant-dependent component of a mutable object
35331         is one itself.
35332
35333 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
35334
35335         * freeze.adb (Freeze_Entity): When an inherited subprogram is
35336         inherited, has convention C, and has unconstrained array parameters,
35337         place the corresponding warning on the derived type declaration rather
35338         than the original subprogram.
35339
35340         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
35341         indication on renaming declaration, if formal has a box and actual
35342         is absent.
35343
35344         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
35345         determine whether to generate an implicit or explicit reference to
35346         the renamed entity.
35347
35348         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
35349         subprogram renaming comes from a defaulted formal subprogram in an
35350         instance.
35351
35352 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
35353
35354         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
35355         value expressions to ensure that calls within a component definition
35356         will be checked (since those are evaluated during the record type's
35357         elaboration).
35358
35359 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
35360
35361         * s-tpobop.adb: Code clean up:
35362         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
35363         code.
35364         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
35365
35366 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
35367
35368         * Makefile.in: Clean up in the ravenscar run time.
35369
35370 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35371
35372         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
35373         of No_Strict_Aliasing to build_pointer_type_for_mode.
35374         * utils.c (update_pointer_to): Walk pointer and ref chains.
35375
35376 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
35377
35378         * ali.ads: Fix Comment about Dynamic_Elab.
35379
35380         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
35381         Has_RACW, Is_Generic, etc.)
35382         (Output_Object, Gnatls): Take into account ALI files not attached to
35383         an object.
35384
35385 2004-03-22  Vincent Celier  <celier@gnat.com>
35386
35387         * gprep.adb: Change all String_Access to Name_Id
35388         (Is_ASCII_Letter): new function
35389         (Double_File_Name_Buffer): New procedure
35390         (Preprocess_Infile_Name): New procedure
35391         (Process_Files): New procedure
35392         (Gnatprep): Check if output and input are existing directories.
35393         Call Process_Files to do the real job.
35394
35395 2004-03-22  Robert Dewar  <dewar@gnat.com>
35396
35397         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
35398         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
35399
35400 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
35401
35402         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
35403         case when the source contains only comments.
35404
35405 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
35406
35407         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
35408         declaration for a child subprogram body that acts as a spec, indicate
35409         that the entity in the declaration needs debugging information.
35410
35411         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
35412         full view if the subtype is created for a constrained record component;
35413         gigi has enough information to construct the record, and there is no
35414         place in the tree for the declaration.
35415
35416         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
35417         serial number for the dummy body that is built for analysis, to avoid
35418         inconsistencies in the generation of internal names when compiling
35419         with -gnatN.
35420
35421 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
35422
35423         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
35424         object.
35425
35426 2004-03-22  GNAT Script  <nobody@gnat.com>
35427
35428         * Make-lang.in: Makefile automatically updated
35429
35430 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35431
35432         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
35433         * trans.c (tree_transform, emit_index_check): Likewise.
35434         * utils.c (build_template): Likewise.
35435         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
35436         (maybe_unconstrained_array, unchecked_convert): Likewise.
35437         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
35438         (build_unary_op): Likewise.
35439         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
35440         (fill_vms_descriptor): Likewise.
35441         (build_call_alloc_dealloc): Likewise.
35442         ALIGN is unsigned.
35443         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
35444
35445 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
35446
35447         PR other/14630
35448         * gnat_ug.texi: Add info directory category and entry.
35449         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35450         gnat_ug_wnt.texi: Regenerate.
35451
35452 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
35453
35454         * ada-tree.h: Update copyright notice.
35455         Minor reformatting.
35456
35457 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
35458
35459         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
35460         as regular exception objects and not as mere integers representing the
35461         condition code.  The latter approach required some dynamics to mask off
35462         severity bits, which did not fit well into the GCC table based model.
35463         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
35464         exception data objects. We don't it and it would conflict with the other
35465         external symbol we have to generate for such exceptions.
35466
35467         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
35468         the special code for VMS exceptions, since these are now represented
35469         as regular exceptions objects.
35470
35471 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35472
35473         * decl.c (debug_no_type_hash): Remove.
35474         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
35475         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
35476
35477 2004-03-19  Laurent Guerby  <laurent@guerby.net>
35478
35479         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
35480         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
35481
35482 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35483
35484         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
35485         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
35486         (TYPE_RM_SIZE_INT): Directly use type.values.
35487         (TREE_LOOP_ID): Clean up check.
35488         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
35489         TYPE_VALUES, not TYPE_FIELDS.
35490         * trans.c (convert_with_check): Delay access of bounds of basetype
35491         until sure is numeric.
35492
35493 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
35494
35495         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
35496
35497         Code clean up:
35498         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
35499         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
35500         Specific.Set instead of direct call to e.g pthread_setspecific.
35501
35502 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
35503
35504         * adaint.c: Update comments.
35505
35506         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
35507         GNATLIB_SHARED for FreeBSD.
35508
35509 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
35510
35511         * init.c [VxWorks]: Do not fix the stack size for the environment task.
35512         When needed (stack checking) the stack size is retrieved
35513         from the VxWorks kernel.
35514
35515         * Makefile.in: Flag -nostdinc is required when building the run time
35516         for avoiding looking for files in the base compiler.
35517         Add the VxWorks specific version of the package body for
35518         System.Stack_checking.Operations (5zstchop.adb).
35519
35520         * Make-lang.in: Add the object file for
35521         System.Stack_Checking.Operations.
35522
35523         * Makefile.rtl: Add object file for the package
35524         System.Stack_Checking.Operations.
35525
35526         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
35527
35528         * s-stache.ads, s-stache.adb: Move the operations related to stack
35529         checking from this package to package System.Stack_Checking.Operations.
35530         This way, stack checking operations are only linked in the final
35531         executable when using the -fstack-check flag.
35532
35533 2004-03-18  Doug Rupp  <rupp@gnat.com>
35534
35535         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
35536         Reorganize ifeq's.
35537
35538         * 5qsystem.ads, 5xcrtl.ads: New files.
35539
35540 2004-03-18  Vincent Celier  <celier@gnat.com>
35541
35542         * prj.adb (Reset): Reset hash table Files_Htable
35543
35544         * prj-env.adb (Source_Paths, Object_Paths): New tables.
35545         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
35546         the procedures Add_To_Path_File.
35547         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
35548         making sure that each directory is present only once and, for object
35549         dirs, when a directory already present is added, the duplicate is
35550         removed and the directory is always put as the last in the table.
35551         Write the path files at the end of these accumulations.
35552
35553         * prj-nmsc.adb (Record_Source): Add source file name in hash table
35554         Files_Htable for all sources.
35555
35556         * prj-proc.adb (Process): Remove restrictions between not directly
35557         related extending projects.
35558
35559 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
35560
35561         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
35562         (Find_Sources): Minor speed optimization.
35563
35564         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
35565         parameter Trusted_Mode.
35566
35567 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
35568
35569         * scn.adb (Determine_License): Take into account a degenerated case
35570         when the source contains only comments.
35571
35572 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
35573
35574         * sem_warn.adb (Check_References): For a warning on a selected
35575         component that does not come from source, locate an uninitialized
35576         component of the record type to produce a more precise error message.
35577
35578 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
35579
35580         * 3zsoccon.ads: Fix multicast options.
35581
35582         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
35583         in the spec.
35584
35585 2004-03-15  Robert Dewar  <dewar@gnat.com>
35586
35587         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
35588         pragma used for a private type.
35589
35590         * lib-xref.adb (Generate_Reference): Do not generate warning if
35591         reference is in a different unit from the pragma Unreferenced.
35592
35593         * 5vtpopde.adb: Minor reformatting
35594         Fix casing of To_Task_ID
35595
35596         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
35597         flag if we have an unchecked conversion to an access type in the same
35598         unit.
35599
35600 2004-03-15  Geert Bosch  <bosch@gnat.com>
35601
35602         * a-ngcoty.adb (Modulus): In alternate formula for large real or
35603         imaginary parts, use Double precision throughout.
35604
35605         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
35606         we want to be able to compile run-time with -gnata for testing, but
35607         this may also be instantiated in user code that is compiled with -gnata.
35608
35609 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
35610
35611         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
35612         codes. Having a separate type for this is useful to enforce consistency
35613         throughout the various run-time units.
35614         (Exception_Data): Use Exception_Code for Import_Code.
35615
35616         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
35617         Natural and Integer in various places.
35618         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
35619         with the severity bits masked off.
35620         (Register_VMS_Exception): Handle the additional exception data pointer
35621         argument.
35622
35623         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
35624         component, now reflected by an exported accessor.
35625         (is_handled_by): New routine to compute whether the propagated
35626         occurrence matches some handler choice specification. Extracted out of
35627         get_action_description_for, and expanded to take care of the VMS
35628         specifities.
35629         (get_action_description_for): Use is_handled_by instead of an explicit
35630         complex condition to decide if the current choice at hand catches the
35631         propagated occurrence.
35632
35633         * raise.h (Exception_Code): New type for C.
35634
35635         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
35636         System.Standard_Library.Exception_Code, to allow references from the
35637         pragma import/export expander.
35638
35639         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
35640         New accessors to allow easy access to GNAT exception data
35641         characteristics.
35642         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
35643         redundant Handled_By_Others component, helper for the personality
35644         routine which will now be able to call the appropriate exception data
35645         accessor instead.
35646
35647         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
35648         component of Standard_Exception_Type to be the closest possible to
35649         Exception_Code in System.Standard_Library, that we cannot get at this
35650         point. Expand a ??? comment to notify that this type node should
35651         probably be rewritten later on.
35652
35653         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
35654         registration call to include a pointer to the exception object in the
35655         arguments.
35656
35657         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
35658         instead of int and explicit bitmasks.
35659
35660 2004-03-15  Vincent Celier  <celier@gnat.com>
35661
35662         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
35663         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
35664
35665         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
35666         longer needed now that it is in the spec of
35667         System.Tasking.Task_Attributes.
35668
35669         * adaint.h, adaint.c: (__gnat_create_output_file): New function
35670
35671         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
35672
35673         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
35674
35675         * make.adb (Gnatmake): Do not check the executable suffix; it is being
35676         taken care of in Scan_Make_Arg.
35677         (Scan_Make_Arg): Add the executable suffix only if the argument
35678         following -o, in canonical case, does not end with the executable
35679         suffix.  When in verbose mode and executable file name does not end
35680         with executable suffix, output the executable name, in canonical case.
35681
35682         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
35683         to avoid warnings when instantiating Ada.Task_Attributes.
35684         Minor reformating.
35685
35686         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
35687         in the correct order.
35688
35689         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
35690         redirect standard output and error to a file for the invocation of the
35691         compiler, then read the file.
35692
35693         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
35694         directory, instead of the Value.
35695         (Find_Source_Dirs): Remove useless code & comments.
35696
35697 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
35698
35699         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
35700         tagged type is inherited, and the parent operation is not frozen yet,
35701         force generation of a freeze node for the inherited operation, so the
35702         corresponding dispatch entry is properly initialized.
35703         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
35704         when looking for user-defined equality operation.
35705
35706         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
35707         boolean when locating primitive equality of tagged component.
35708
35709         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
35710         bit-aligned field and the right-hand side a string literal, introduce
35711         a temporary before expanding assignment into a loop.
35712
35713         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
35714         priority in full, to ensure that any expanded subepxressions of it are
35715         elaborated in the scope of the init_proc.
35716
35717         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
35718         after object declaration, skipping over code that may have been
35719         generated for validity checks.
35720
35721         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
35722         discriminants, ignore the known discriminants of its full view, if
35723         any, to check legality.
35724
35725         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
35726         component if type has unknown discriminants.
35727         (Analyze_Private_Extension_Declaration): Discriminant constraint is
35728         null if type has unknown discriminants.
35729
35730         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
35731         for end label when present.
35732
35733         * s-fileio.adb (Open): When called with a C_Stream, use given name for
35734         temporary file, rather than an empty string.
35735
35736 2004-03-15  Ed Falis  <falis@gnat.com>
35737
35738         * s-thread.adb: Removed, no longer used.
35739
35740 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35741
35742         * decl.c (target.h): Now include.
35743         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
35744         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
35745         (validate_size): For POINTER_TYPE, get smallest size permitted on
35746         machine.
35747
35748         * fe.h: Sort Einfo decls and add Set_Mechanism.
35749
35750         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
35751         (ada/decl.o): Depends on target.h.
35752
35753         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
35754         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
35755
35756 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
35757
35758         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
35759
35760         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
35761         Insert_Dereference_Action when rewriting an implicit dereference into
35762         an explicit one, this will be taken care of during expansion of the
35763         explicit dereference.
35764         (Expand_N_Slice): Same. Always do the rewriting, even for the case
35765         of non-packed slices, since the dereference action generated by
35766         expansion of the explicit dereference is needed in any case.
35767         (Expand_N_Selected_Component): When rewriting an implicit dereference,
35768         analyze and resolve the rewritten explicit dereference so it is seen
35769         by the expander.
35770         (Insert_Dereference_Action): This procedure is now called only for the
35771         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
35772         dereferences that do not come from source (including explicit
35773         dereferences resulting from rewriting implicit ones), but do not
35774         recursively insert a check for the dereference nodes contained within
35775         the check.
35776         (Insert_Dereference_Action): Clarify and correct comment.
35777
35778 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
35779
35780         PR ada/14131
35781         Move language detection to the top level.
35782         * config-lang.in: Build by default.
35783
35784 2004-03-05  Robert Dewar  <dewar@gnat.com>
35785
35786         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
35787
35788         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
35789         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
35790         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
35791         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
35792         unchecked conversion to spec to avoid warnings.
35793
35794         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
35795         to Task_ID
35796
35797         * 7stpopsp.adb: Correct casing in To_Task_ID call
35798
35799         * a-strsea.ads, a-strsea.adb: Minor reformatting
35800
35801         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
35802
35803         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
35804         Adjust Max_Msg_Length to be clearly large enough.
35805
35806         * fe.h: Define In_Same_Source_Unit
35807
35808         * osint.adb: Add pragma Warnings Off to suppress warnings
35809         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
35810         aliasing warnings.
35811
35812         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
35813
35814         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
35815
35816         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
35817
35818         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
35819
35820         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
35821
35822         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
35823         node. We now do generate them for gcc back end.
35824
35825         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
35826         warning.
35827
35828         * sinput-c.adb: Fix bad name in header.
35829         Add pragma Warnings Off to suppress aliasing warning.
35830
35831         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
35832
35833         * snames.h, snames.ads, snames.adb: Add entry for pragma
35834         No_Strict_Aliasing.
35835
35836 2004-03-05  Vincent Celier  <celier@gnat.com>
35837
35838         * prj-com.ads: Add hash table Files_Htable to check when a file name
35839         is already a source of another project.
35840
35841         * prj-nmsc.adb (Record_Source): Before recording a new source, check
35842         if its file name is not already a source of another project. Report an
35843         error if it is.
35844
35845         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
35846         source file name, call gnatpp with all the sources of the main project.
35847
35848         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
35849         of file names.
35850
35851         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
35852         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
35853         /RUNTIME_SYSTEM=, converted to --RTS=
35854         /NOTABS, converted to -notabs
35855
35856 2004-03-05  Pascal Obry  <obry@gnat.com>
35857
35858         * make.adb: Minor reformatting.
35859
35860 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
35861
35862         Part of implemention of AI-262.
35863         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
35864
35865         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
35866         procedure.
35867
35868         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
35869         when component type is a partially constrained class-wide subtype.
35870         (Constrain_Discriminated_Type): If parent type has unknown
35871         discriminants, a constraint is illegal, even if full view has
35872         discriminants.
35873         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
35874         with unknown discriminants whose full view is a discriminated record.
35875
35876         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
35877         flag, to handle properly derivations of tagged types with unknown
35878         discriminants.
35879         (Analyze_Package_Spec, Analyze_Package_Body): Install
35880         Private_With_Clauses before analyzing private part or body.
35881
35882         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
35883         Has_Discriminants can be true for a given type (documentation).
35884
35885 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
35886
35887         * s-restri.ads: Fix license (GPL->GMGPL).
35888
35889         * s-tassta.adb: Minor reformatting.
35890
35891         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
35892         by calls to Exit_One_ATC_Level, since additional clean up is performed
35893         by this function.
35894
35895         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
35896         by calls to Exit_One_ATC_Level, since additional clean up is performed
35897         by this function.
35898
35899 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35900
35901         * trans.c: Reflect GCC changes to fix bootstrap problem.
35902         Add warning for suspicious aliasing unchecked conversion.
35903
35904 2004-03-05  GNAT Script  <nobody@gnat.com>
35905
35906         * Make-lang.in: Makefile automatically updated
35907
35908 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
35909
35910         * ali.adb (Read_Instantiation_Instance): Do not modify the
35911         current_file_num when reading information about instantiations, since
35912         this corrupts files in later references.
35913
35914 2004-03-02  Vincent Celier  <celier@gnat.com>
35915
35916         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
35917         before checking if it is read-only.
35918
35919         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
35920         of SRC_DIRS and eliminate duplicates.
35921
35922         * gprcmd.adb: Replace command "path" with command "path_sep" to return
35923         the path separator.
35924         (Usage): Document path_sep
35925
35926         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
35927         C++ compiler. No need for a script.
35928         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
35929         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
35930         subst.
35931
35932         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
35933         where there are Ada sources.
35934         (Set_Ada_Paths): Only add to the include path the source dirs of project
35935         with Ada sources.
35936         (Add_To_Path): Add the Display_Values of the directories, not their
35937         Values.
35938
35939         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
35940         data.
35941
35942         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
35943         is not No_Name.
35944         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
35945         Value is canonicalized.
35946         (Language_Independent_Check): Do not copy Value to Display_Value when
35947         canonicalizing Value.
35948
35949         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
35950         path to find limited with cycles.
35951         (Parse_Single_Project): Use canonical cased path to find the end of a
35952         with cycle.
35953
35954 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
35955
35956         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
35957         and not a child unit.
35958
35959         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
35960         appear in a with_clause.
35961
35962         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
35963         only happen in type_annotate mode, do not try to elaborate it.
35964
35965         * exp_util.adb (Force_Evaluation): If expression is a selected
35966         component on the left of an assignment, use a renaming rather than a
35967         temporary to remove side effects.
35968
35969         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
35970         inlined instance body, which is analyzed before the end of the
35971         enclosing scope.
35972
35973 2004-03-02  Robert Dewar  <dewar@gnat.com>
35974
35975         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
35976         sem_ch4.adb: Use new feature for substitution of keywords in VMS
35977
35978         * errout.ads, errout.adb: Implement new circuit for substitution of
35979         keywords in VMS.
35980
35981         * sem_case.adb (Analyze_Choices): Place message properly when case is
35982         a subtype reference rather than an explicit range.
35983
35984         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
35985
35986 2004-03-02  Doug Rupp  <rupp@gnat.com>
35987
35988         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
35989
35990 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
35991
35992         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
35993
35994 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35995
35996         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
35997         BLKmode bitfield.
35998
35999 2004-02-25  Robert Dewar  <dewar@gnat.com>
36000
36001         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
36002         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
36003         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
36004         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
36005         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
36006         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
36007         the defining instance of the type to avoid aliasing problems.
36008         Fix copyright header.  Fix bad comments in package header.
36009
36010         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
36011
36012 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
36013
36014         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
36015         rewritten as references when aliased through an address clause.
36016
36017         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
36018         whether call can be interpreted as an indirect call to the result of a
36019         parameterless function call returning an access subprogram.
36020
36021 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
36022
36023         Code clean up:
36024         * exp_ch7.adb (Make_Clean): Remove generation of calls to
36025         Unlock[_Entries], since this is now done by Service_Entries directly.
36026
36027         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
36028
36029         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
36030         Requeue_Call for better code readability. Change spec and update calls:
36031         PO_Service_Entries now unlock the PO on exit.
36032         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
36033         PO_Service_Entries.
36034
36035         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
36036
36037         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
36038
36039 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
36040
36041         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
36042         protected subprogram call and analyzing the result of such expanding
36043         in case when the called protected subprogram is eliminated.
36044
36045         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
36046         names.
36047
36048 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
36049
36050         * Makefile.in: Clean ups.
36051
36052 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
36053
36054         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
36055         protected operations if original subprogram is flagged as eliminated.
36056         (Expand_N_Subprogram_Body): For a protected operation, create
36057         discriminals for next operation before checking whether the operation
36058         is eliminated.
36059
36060         * exp_ch9.adb (Expand_N_Protected_Body,
36061         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
36062         for internal protected operations if the original subprogram is
36063         eliminated.
36064
36065         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
36066         declared in a single protected object.
36067
36068 2004-02-23  Vincent Celier  <celier@gnat.com>
36069
36070         * prj-attr.adb: Make attribute Builder'Executable an associative array,
36071         case insensitive if file names are case insensitive, instead of a
36072         standard associative array.
36073
36074         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
36075         them as case insensitive on platforms where the file names are case
36076         sensitive.
36077
36078         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
36079         project file has already been parsed that canonical path are compared.
36080
36081 2004-02-23  Robert Dewar  <dewar@gnat.com>
36082
36083         * sinput-c.ads: Correct bad unit title in header
36084
36085         * freeze.adb: Minor reformatting
36086
36087 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36088
36089         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
36090         nonaddressable COMPONENT_REF that is removing padding that we are
36091         taking the address of, take the address of the padded record instead
36092         if item is variable size.
36093
36094 2004-02-20  Robert Dewar  <dewar@gnat.com>
36095
36096         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
36097
36098 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
36099
36100         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
36101         itype references for the constrained designated type of a component
36102         whose base type is already frozen.
36103
36104 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
36105
36106         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
36107         avoid GCC warnings.
36108
36109 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
36110
36111         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
36112         identifier for a phantom package that rewrites the formal package
36113         declaration with a box. The Add semantic decorations for the defining
36114         identifier from the original node (that represents the formal package).
36115
36116 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
36117
36118         * Make-lang.in (ada/stamp-sdefault): Use the top level
36119         move-if-change.
36120
36121 2004-02-19  Richard Henderson  <rth@redhat.com>
36122
36123         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
36124
36125 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
36126
36127         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
36128         Scan_ALI can be used for multiple ALI files without reinitializing
36129         between calls.
36130
36131 2004-02-18  Robert Dewar  <dewar@gnat.com>
36132
36133         * debug.adb: Minor reformatting.
36134
36135 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36136
36137         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
36138         to zero if there is an address clause.
36139
36140 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
36141
36142         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
36143
36144 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
36145
36146         * layout.adb (Layout_Component_List): Revise generation of call to
36147         discriminant-checking function to pass selections of all of the type's
36148         discriminants rather than just the variant-controlling discriminant.
36149
36150 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
36151
36152         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
36153         fail in the current setup and triggers spurious system error messages.
36154         Pretend it occurred and failed instead.
36155
36156 2004-02-18  Vincent Celier  <celier@gnat.com>
36157
36158         * bld.adb: Mark FLDFLAGS as saved
36159         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
36160         it is not the root project.  Put each directory to be
36161         extended between double quotes to prevent it to be expanded on Windows.
36162         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
36163         the project file. Set them back to their initial values if they have not
36164         been set in the project file.
36165
36166         * gprcmd.adb: (Gprdebug, Debug): New global variables
36167         (Display_Command): New procedure
36168         (Usage): Document new command "linkopts"
36169         Call Display_Command when env var GPRDEBUG has the value "TRUE"
36170         Implement new command "linkopts"
36171         Remove quotes that may be around arguments for "extend"
36172         Always call Normalize_Pathname with arguments formatted for the platform
36173
36174         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
36175         Change @echo to @$(display) in target clean to be able to clean silently
36176
36177         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
36178
36179         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
36180         canonical case.
36181
36182         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
36183         = Extending_All when current project is an extending all project.
36184
36185         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
36186         set to True only for LINK command, after Unix switch -o.
36187         (Process_Arguments): Set Output_File_Expected to True for LINK command
36188         after Unix switch -o. When Output_File_Expected is True, never add an
36189         extension to a file name.
36190
36191         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
36192         option file name, only to the --for-linker= switch.
36193         (Option_File_Name): If option file name do not end with ".opt", append
36194         "/OPTIONS".
36195
36196 2004-02-18  GNAT Script  <nobody@gnat.com>
36197
36198         * Make-lang.in: Makefile automatically updated
36199
36200 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
36201
36202         * Make-lang.in (stamp-sdefault): Do not depend on
36203         move-if-change.
36204
36205 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
36206
36207         * config-lang.in: Disable Ada by default until probe logic for
36208         a bootstrap Ada compiler can be moved to the top level configure
36209         script.
36210
36211 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
36212
36213         * decl.c (components_to_record): Don't claim that the internal fields
36214         we make to hold the variant parts are semantically addressable, because
36215         they are not.
36216
36217         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
36218         adjust the comment describing the modular type form when we can use it.
36219         (Install_PAT): Account for the Esiz renaming.
36220
36221         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
36222         sc_onstack context indication before raising the exception to which
36223         the signal is mapped. Allows better handling of later signals possibly
36224         triggered by the resumed user code if the exception is handled.
36225
36226 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
36227
36228         * 5zinit.adb: Removed, no longer used.
36229
36230 2004-02-12  Robert Dewar  <dewar@gnat.com>
36231
36232         * ali.adb: Remove separating space between parameters on R line. Makes
36233         format consistent with format used by the binder for Set_Globals call.
36234
36235         * atree.ads, atree.adb: Minor reformatting (new function header format)
36236
36237         * bindgen.adb: Add Run-Time Globals documentation section containing
36238         detailed documentation of the globals passed from the binder file to
36239         the run time.
36240
36241         * gnatls.adb: Minor reformatting
36242
36243         * init.c (__gnat_set_globals): Add note pointing to documentation in
36244         bindgen.
36245
36246         * lib-writ.ads, lib-writ.adb: Remove separating space between
36247         parameters on R line.
36248         Makes format consistent with format used by the binder for Set_Globals
36249         call.
36250
36251         * osint.ads: Add 2004 to copyright notice
36252         Minor reformatting
36253
36254         * snames.ads: Correct capitalization of FIFO_Within_Priorities
36255         Noticed during code reading, documentation issue only
36256
36257         * usage.adb: Remove junk line for obsolete C switch
36258         Noticed during code reading
36259
36260 2004-02-12  Vincent Celier  <celier@gnat.com>
36261
36262         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
36263         extend for each directory, so that multiple /** directories are
36264         extended individually.
36265         (Recursive_Process): Set the default for LANGUAGES to ada
36266
36267         * gprcmd.adb: Define new command "ignore", to do nothing.
36268         Implement new comment "path".
36269
36270         * Makefile.generic: Suppress output when SILENT is set
36271         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
36272         used, so that the correct compiler is invoked.
36273         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
36274         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
36275
36276 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
36277
36278         * Makefile.in: Clean ups and remove obsolete targets.
36279
36280 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
36281
36282         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
36283         predicate declared in exp_util.
36284
36285         * exp_util.adb: Add comments.
36286
36287         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
36288         visibility before compiling context of the subunit.
36289
36290         * sem_res.adb (Check_Parameterless_Call): If the context expects a
36291         value but the name is a procedure, do not attempt to analyze as a call,
36292         in order to obtain more telling diagnostics.
36293
36294         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
36295         'Access on parameterless function calls.
36296         (Normalize_Actuals): For a parameterless function call with missing
36297         actuals, defer diagnostic until resolution of enclosing call.
36298
36299         * sem_util.adb (Wrong_Type): If the context type is an access to
36300         subprogram and the expression is a procedure name, suggest a missing
36301         'attribute.
36302
36303 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
36304             Nathanael Nerode  <neroden@gcc.gnu.org>
36305
36306         PR ada/6637
36307         PR ada/5911
36308         Merge with libada-branch:
36309         * config-lang.in: Build libada only when ada is built.
36310
36311 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
36312
36313         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
36314         for a tagged type, verify that both formals have the same type.
36315
36316         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
36317         temporary when the formal is an in-parameter and the actual a possibly
36318         unaligned slice.
36319
36320         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
36321         when expansion is disabled, to ensure proper name capture with
36322         overloaded literals.  Condition can be of any boolean type, resolve
36323         accordingly.
36324
36325         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
36326         renaming is for a formal subprogram with a default operator name, and
36327         there is a usable operator that is visible at the point of
36328         instantiation.
36329
36330 2004-02-09  Robert Dewar  <dewar@gnat.com>
36331
36332         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
36333         rewrite to ignore errors in ali files, intended to allow tools downward
36334         compatibility with new versions of ali files.
36335
36336         * ali.ads: Add new parameter Ignore_Errors
36337
36338         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
36339         duplicating the error message giving the file with restrictions.
36340
36341         * debug.adb: Add debug flag I for gnatbind
36342
36343         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
36344         operators for the case where the operator is a defining operator.
36345
36346         * exp_ch3.adb: Minor reformatting (new function spec format).
36347
36348         * exp_ch4.adb: Add comment for previous change, and make minor
36349         adjustment to loop to always check for improper loop termination.
36350         Minor reformatting throughout (new function spec format).
36351
36352         * gnatbind.adb: Implement -di debug flag for gnatbind
36353
36354         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
36355
36356         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
36357
36358         * lib-load.adb: Fix bad assertion.
36359         Found by testing and code reading.
36360         Minor reformatting.
36361
36362         * lib-load.ads: Minor reformatting.
36363
36364         * lib-writ.adb: There is only one R line now.
36365
36366         * lib-writ.ads: Add documentation on making downward compatible changes
36367         to ali files so old tools work with new ali files.
36368         There is only one R line now.
36369         Add documentation on format incompatibilities (with special GPS note)
36370
36371         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
36372
36373         * par-load.adb: Minor reformatting
36374
36375         * sem_ch8.adb: Fix to error message from last update
36376         Minor reformatting and restructuring of code from last update
36377
36378         * par-prag.adb, snames.adb, snames.ads, snames.h,
36379         sem_prag.adb: Implement pragma Profile.
36380
36381         * stylesw.adb: Implement -gnatyN switch to turn off all style check
36382         options.
36383
36384         * usage.adb: Add line for -gnatyN switch
36385
36386         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
36387
36388 2004-02-09  Albert Lee  <lee@gnat.com>
36389
36390         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
36391
36392 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
36393
36394         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
36395         slices.
36396
36397         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
36398         is nested in an instance that is not frozen yet, to avoid
36399         order-of-elaboration problems in gigi.
36400
36401         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
36402         body the attribute is legal.
36403
36404 2004-02-09  Robert Dewar  <dewar@gnat.com>
36405
36406         * s-rident.ads: Minor comment correction
36407
36408         * targparm.adb: Remove dependence on uintp completely. There was
36409         always a bug in Make in that it called Targparm before initializing
36410         the Uint package. The old code appeared to get away with this, but
36411         the new code did not! This caused an assertion error in gnatmake.
36412
36413         * targparm.ads: Fix bad comment, restriction pragmas with parameters
36414         are indeed fully supported.
36415
36416 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
36417
36418         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
36419
36420 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
36421
36422         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
36423         with targetm.calls.promote_prototypes.
36424
36425 2004-02-04  Robert Dewar  <dewar@gnat.com>
36426
36427         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
36428         ali.ads, gprcmd.adb: Minor reformatting
36429
36430         * bindgen.adb: Output restrictions string for new style restrictions
36431         handling
36432
36433         * impunit.adb: Add s-rident.ads (System.Rident) and
36434         s-restri (System.Restrictions)
36435
36436         * lib-writ.adb: Fix bug in writing restrictions string (last few
36437         entries wrong)
36438
36439         * s-restri.ads, s-restri.adb: Change name Restrictions to
36440         Run_Time_Restrictions to avoid conflict with package name.
36441         Add circuit to read and acquire run time restrictions.
36442
36443 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
36444
36445         * restrict.ads, restrict.adb: Use the new restriction
36446         No_Task_Attributes_Package instead of the old No_Task_Attributes.
36447
36448         * sem_prag.adb: No_Task_Attributes is a synonym of
36449         No_Task_Attributes_Package.
36450
36451         * snames.ads, snames.adb: New entry for proper handling of
36452         No_Task_Attributes.
36453
36454         * s-rident.ads: Adding restriction No_Task_Attributes_Package
36455         (AI-00249) that supersedes the GNAT specific restriction
36456         No_Task_Attributes.
36457
36458 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
36459
36460         * sem_prag.adb:
36461         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
36462          body, an identifier may be wrapped in an unchecked conversion.
36463
36464 2004-02-04  Vincent Celier  <celier@gnat.com>
36465
36466         * lib-writ.ads: Comment update for the W lines
36467
36468         * bld.adb: (Expression): An empty string list is static
36469
36470         * fname-uf.adb: Minor comment update
36471
36472         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
36473
36474         * gnatbind.adb: Initialize Cumulative_Restrictions with the
36475         restrictions on the target.
36476
36477 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
36478
36479         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
36480         gen_rtx.
36481
36482 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
36483
36484         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
36485
36486 2004-02-02  Vincent Celier  <celier@gnat.com>
36487
36488         * gprcmd.adb (Check_Args): If condition is false, print the invoked
36489         comment before the usage.
36490         Gprcmd: Fail when command is not recognized.
36491         (Usage): Document command "prefix"
36492
36493         * g-md5.adb (Digest): Process last block.
36494         (Update): Do not process last block. Store remaining characters and
36495         length in Context.
36496
36497         * g-md5.ads (Update): Document that several call to update are
36498         equivalent to one call with the concatenated string.
36499         (Context): Add fields to allow new Update behaviour.
36500
36501         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
36502         defaulted to False.
36503         When May_Fail is True and no existing file can be found, return No_File.
36504
36505         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
36506         functions.
36507
36508         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
36509         spec file name instead on the W line.
36510
36511 2004-02-02  Robert Dewar  <dewar@gnat.com>
36512
36513         * ali.adb: Read and acquire info from new format restrictions lines
36514
36515         * bcheck.adb: Add circuits for checking restrictions with parameters
36516
36517         * bindgen.adb: Output dummy restrictions data
36518         To be changed later
36519
36520         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
36521         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
36522         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
36523         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
36524         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
36525
36526         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
36527         the warning message on access to possibly uninitialized variable S)
36528         Minor changes for new restrictions handling.
36529
36530         * gnatbind.adb: Minor reformatting
36531         Minor changes for new restrictions handling
36532         Move circuit for -r processing here from bcheck (cleaner)
36533
36534         * gnatcmd.adb, gnatlink.adb: Minor reformatting
36535
36536         * lib-writ.adb: Output new format restrictions lines
36537
36538         * lib-writ.ads: Document new R format lines for new restrictions
36539         handling.
36540
36541         * s-restri.ads/adb: New files
36542
36543         * Makefile.rtl: Add entry for s-restri.ads/adb
36544
36545         * par-ch3.adb: Fix bad error messages starting with upper case letter
36546         Minor reformatting
36547
36548         * restrict.adb: Major rewrite throughout for new restrictions handling
36549         Major point is to handle restrictions with parameters
36550
36551         * restrict.ads: Major changes in interface to handle restrictions with
36552         parameters. Also generally simplifies setting of restrictions.
36553
36554         * snames.ads/adb: New entry for proper handling of No_Requeue
36555
36556         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
36557         restriction counting.
36558         Other minor changes for new restrictions handling
36559
36560         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
36561         Restriction_Warnings now allows full parameter notation
36562         Major rewrite of Restrictions for new restrictions handling
36563
36564 2004-02-02  Javier Miranda  <miranda@gnat.com>
36565
36566         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
36567         syntax rule for object renaming declarations.
36568         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
36569         component definitions.
36570
36571         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
36572         components.
36573         (Array_Type_Declaration): Give support to access components. In addition
36574         it was also modified to reflect the name of the object in anonymous
36575         array types. The old code did not take into account that it is possible
36576         to have an unconstrained anonymous array with an initial value.
36577         (Check_Or_Process_Discriminants): Allow access discriminant in
36578         non-limited types.
36579         (Process_Discriminants): Allow access discriminant in non-limited types
36580         Initialize the new Access_Definition field in N_Object_Renaming_Decl
36581         node.  Change Ada0Y to Ada 0Y in comments
36582
36583         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
36584         equality operators.
36585         Change Ada0Y to Ada 0Y in comments
36586
36587         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
36588         renamings Change Ada0Y to Ada 0Y in comments
36589
36590         * sem_type.adb (Find_Unique_Type): Give support to the equality
36591         operators for universal access types
36592         Change Ada0Y to Ada 0Y in comments
36593
36594         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
36595
36596         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
36597         field.
36598         (N_Object_Renaming_Declaration): Addition of Access_Definition field
36599         Change Ada0Y to Ada 0Y in comments
36600
36601         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
36602         component definition and object renaming nodes
36603         Change Ada0Y to Ada 0Y in comments
36604
36605 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
36606
36607         * restrict.adb: Use the new restriction identifier
36608         No_Requeue_Statements instead of the old No_Requeue for defining the
36609         restricted profile.
36610
36611         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
36612         No_Requeue_Statements.
36613
36614         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
36615         that supersedes the GNAT specific restriction No_Requeue. The later is
36616         kept for backward compatibility.
36617
36618 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
36619
36620         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
36621         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
36622         pragma and fix incorrect ones.
36623
36624         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
36625         warning if the pragma is redundant.
36626
36627 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
36628
36629         * 5staprop.adb: Add missing 'constant' keywords.
36630
36631         * Makefile.in: use consistent value for SYMLIB on
36632         platforms where libaddr2line is supported.
36633
36634 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36635
36636         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
36637         annotating types.
36638
36639 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
36640
36641         * init.c (__gnat_install_handler): Setup an alternate stack for signal
36642         handlers in the environment thread. This allows proper propagation of
36643         an exception on stack overflows in this thread even when the builtin
36644         ABI stack-checking scheme is used without support for a stack reserve
36645         region.
36646
36647         * utils.c (create_field_decl): Augment the head comment about bitfield
36648         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
36649         here, because the former is not accurate enough at this point.
36650         Let finish_record_type decide instead.
36651         Don't make a bitfield if the field is to be addressable.
36652         Always set a size for the field if the record is packed, to ensure the
36653         checks for bitfield creation are triggered.
36654         (finish_record_type): During last pass over the fields, clear
36655         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
36656         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
36657         from DECL_BIT_FIELD.
36658
36659 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
36660
36661         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
36662         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
36663         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
36664
36665 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
36666
36667         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
36668
36669         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
36670         (ZCX_By_Default): Likewise.
36671         (Front_End_ZCX_Support): Likewise.
36672
36673         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
36674         (Initialize_Lock): Mark Level unreferenced.
36675         (Sleep): Mark Reason unreferenced.
36676         (Timed_Sleep): Likewise.
36677         (Wakeup): Likewise.
36678         (Exit_Task): Use Result.
36679         (Check_No_Locks): Mark Self_ID unreferenced.
36680
36681         * 5gtasinf.adb (New_Sproc): Make Attr constant.
36682         (Bound_Thread_Attributes): Make Sproc constant.
36683         (New_Bound_Thread_Attributes): Likewise.
36684
36685 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
36686
36687         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
36688         one-dimensional array an slice assignments, when component type is
36689         controlled.
36690
36691         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
36692         component type is controlled, and control_actions are in effect, use
36693         TSS procedure rather than generating inline code.
36694
36695         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
36696         arrays with controlled components.
36697
36698 2004-01-26  Vincent Celier  <celier@gnat.com>
36699
36700         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
36701         command line for the non VMS case.
36702
36703         * gnatlink.adb (Process_Binder_File): When building object file, if
36704         GNU linker is used, put all object paths between quotes, to prevent ld
36705         error when there are unusual characters (such as '!') in the paths.
36706
36707         * Makefile.generic: When there are sources in Ada and the main is in
36708         C/C++, invoke gnatmake with -B, instead of -z.
36709
36710         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
36711         from VMS_Conversion.
36712         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
36713         specification of argument file on the command line.
36714
36715 2004-01-26  Bernard Banner  <banner@gnat.com>
36716
36717         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
36718
36719 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
36720
36721         * snames.adb: Update copyright notice.
36722         Add info on slice assignment for controlled arrays.
36723
36724 2004-01-23  Robert Dewar  <dewar@gnat.com>
36725
36726         * exp_aggr.adb: Minor reformatting
36727
36728         * exp_ch9.adb: Minor code clean up
36729         Minor reformatting
36730         Fix bad character in comment
36731
36732         PR ada/13471
36733         * targparm.adb (Get_Target_Parameters): Give clean abort error on
36734         unexpected end of file, along with more detailed message.
36735
36736 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36737
36738         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
36739         PAT.
36740
36741         * decl.c (copy_alias_set): New function.
36742         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
36743
36744 2004-01-23  Doug Rupp  <rupp@gnat.com>
36745
36746         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
36747         lib$${file} in case subsequent character is not a separator.
36748
36749 2004-01-23  Vincent Celier  <celier@gnat.com>
36750
36751         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
36752         when the GCC version is at least 3.
36753
36754         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
36755         Remove all "Opt.", to prepare for opt split
36756
36757         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
36758         Extends_All. Set to True when the project parsed is an extending all
36759         project. Fails for importing an extending all project only when the
36760         imported project is an extending all project.
36761         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
36762         depending on the value of Extends_All returned.
36763
36764         * prj-proc.adb (Process): Check that no project shares its object
36765         directory with a project that extends it, directly or indirectly,
36766         including a virtual project.
36767         Check that no project extended by another project shares its object
36768         directory with another also extended project.
36769
36770         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
36771         Kind = N_With_Clause
36772
36773         * prj-tree.ads: Minor reformatting
36774         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
36775
36776 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
36777
36778         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
36779         applies to a type with an incomplete view, use full view in Name of
36780         clause, for consistency with uses of Get_Attribute_Definition_Clause.
36781
36782 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
36783
36784         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
36785         SCHED_RR, since other values are not supported by this policy.
36786         (Initialize): Move initialization of mutex attribute to package
36787         elaboration, to prevent early access to this variable.
36788
36789         * Makefile.in: Remove mention of Makefile.adalib, unused.
36790
36791         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
36792         1ssecsta.ads: Removed, unused.
36793
36794 2004-01-21  Javier Miranda  <miranda@gnat.com>
36795
36796         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
36797         entity if already built in the current scope.
36798
36799         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
36800         reminder in internal scopes. Required for nested limited aggregates.
36801
36802 2004-01-21  Doug Rupp  <rupp@gnat.com>
36803
36804         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
36805         VMS. Replace all occurences of libgnat- and libgnarl- with
36806         libgnat$(hyphen) and libgnarl$(hyphen).
36807         Fixed shared library build problem on VMS.
36808
36809 2004-01-21  Robert Dewar  <dewar@gnat.com>
36810
36811         * mlib-prj.adb: Minor reformatting
36812
36813 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
36814
36815         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
36816         'constant' keywords for declaration of pointers that are not modified.
36817
36818         * exp_pakd.adb: Fix English in comment.
36819
36820 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
36821
36822         PR ada/10889
36823         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
36824         copy all attributes of the parent, including the foreign language
36825         convention.
36826
36827 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
36828
36829         PR ada/10565
36830         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
36831         for 'delay until' statement.
36832
36833 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
36834
36835         * Make-lang.in: Replace $(docdir) with doc.
36836         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
36837         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
36838         to use consistent MAKEINFO rule.
36839         (ada.man, ada.srcman): Dummy entry.
36840         (ADA_INFOFILES): Define.
36841         (ada.info, ada.srcinfo): New rules.
36842
36843 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
36844
36845         * utils.c: Update copyright notice, missed in previous change.
36846
36847 2004-01-19  Vincent Celier  <celier@gnat.com>
36848
36849         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
36850         args if Bind is True. Set First_ALI, if not already done.
36851         (Build_Library): For Stand Alone Libraries, extract from one ALI file
36852         an eventual --RTS switch, for gnatbind, and all backend switches +
36853         --RTS, for linking.
36854
36855 2004-01-19  Robert Dewar  <dewar@gnat.com>
36856
36857         * sem_attr.adb, memtrack.adb: Minor reformatting
36858
36859 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
36860
36861         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
36862         that rename enumeration literals. This is properly done in sem_eval.
36863
36864         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
36865         to functions that rename enumeration literals.
36866
36867         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
36868         functions that rename enumeration literals.
36869
36870 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
36871
36872         * Make-lang.in (utils.o): Depend on target.h.
36873         * utils.c: Include target.h.
36874         (process_attributes): Use targetm.have_named_sections instead
36875         of ASM_OUTPUT_SECTION_NAME.
36876
36877 2004-01-16  Andreas Jaeger  <aj@suse.de>
36878
36879         * Makefile.in: Add $(DESTDIR).
36880
36881 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
36882
36883         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
36884         also when not defining if a Size clause applies. That information is
36885         not to be ignored.
36886
36887 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
36888
36889         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
36890         symbolic links for the shared gnat run time when needed.
36891
36892 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
36893
36894         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
36895         for writing, and terminate with an error message if not.
36896
36897 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
36898
36899         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
36900         warning on an access to subprogram in an instance, when the target
36901         type is declared in the same generic unit.
36902         (Eval_Attribute): If 'access is known to fail accessibility check,
36903         rewrite as a raise statement.
36904
36905 2004-01-15  GNAT Script  <nobody@gnat.com>
36906
36907         * Make-lang.in: Makefile automatically updated
36908
36909 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
36910
36911         * Make-lang.in (ada.srcextra): Dummy entry.
36912
36913 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
36914
36915         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
36916
36917 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
36918
36919         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
36920         components that are initialized with aggregates.
36921
36922 2004-01-13  Vincent Celier  <celier@gnat.com>
36923
36924         * gnatlink.adb (Process_Binder_File): To find directory of shared
36925         libgcc, if "gcc-lib" is not a subdirectory, look for the last
36926         subdirectory "lib" in the path of the shared libgnat or libgnarl.
36927
36928         * make.adb (Gnatmake): If GCC version is at least 3, link with
36929         -shared-libgcc, when there is at least one shared library project.
36930
36931         * opt.ads (GCC_Version): New integer constant.
36932
36933         * adaint.c (get_gcc_version): New function.
36934
36935 2004-01-13  Robert Dewar  <dewar@gnat.com>
36936
36937         * sem_dist.adb, sem_res.adb, sem_util.adb,
36938         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
36939         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
36940
36941 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
36942
36943         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
36944         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
36945         declarations.
36946
36947 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
36948
36949         * misc.c: Remove trailing spaces.
36950         Update copyright notice missed in previous change.
36951
36952         PR ada/13572
36953         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
36954         prefix/share/make
36955
36956         * Makefile.generic: Update copyright.
36957         Add license notice.
36958
36959         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
36960         of prefix/share/make.
36961
36962         * Makefile.prolog: Update copyright.
36963         Add license notice.
36964
36965 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
36966
36967         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
36968         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
36969         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
36970         instead of String.
36971
36972         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
36973         signature.
36974
36975 2004-01-12  Javier Miranda  <miranda@gnat.com>
36976
36977         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
36978         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
36979         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
36980         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
36981         Component_Definition node.
36982
36983 2004-01-12  Ed Falis  <falis@gnat.com>
36984
36985         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
36986
36987 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
36988
36989         * link.c: Change default libgnat kind to STATIC for FreeBSD.
36990
36991 2004-01-12  Bernard Banner  <banner@gnat.com>
36992
36993         * Makefile.in: map 86numaux to a-numaux for x86_64
36994
36995 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
36996
36997         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
36998         generated to rename a generic actual, go to the actual itself, the
36999         subtype is not a user-visible entity.
37000
37001         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
37002         part is a private subtype, reset the visibility of its full view, if
37003         any, to be consistent.
37004
37005         PR ada/13417
37006         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
37007         to use a generic package G as a formal package for another generic
37008         declared within G.
37009
37010 2004-01-12  Robert Dewar  <dewar@gnat.com>
37011
37012         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
37013
37014         * usage.adb: Remove mention of obsolete -gnatwb switch
37015         Noticed during code reading
37016
37017 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
37018
37019         * 1ssecsta.adb: Minor changes for -gnatwa warnings
37020
37021 2004-01-12  GNAT Script  <nobody@gnat.com>
37022
37023         * Make-lang.in: Makefile automatically updated
37024
37025 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
37026
37027         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
37028
37029 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
37030
37031         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
37032
37033 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
37034
37035         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
37036         Update comment and copyright date.
37037         * stamp-xgnatug: Delete.
37038
37039 2004-01-05  Robert Dewar  <dewar@gnat.com>
37040
37041         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
37042         be modified by the binder generated main program if the -D switch is
37043         used.
37044
37045         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
37046         imported functions (since now we expect this to be done for imported
37047         functions)
37048
37049         * 5vtaprop.adb: Add several ??? for sections requiring more comments
37050         Minor reformatting throughout
37051
37052         * 5zinit.adb: Minor reformatting
37053         Add 2004 to copyright date
37054         Minor changes to avoid -gnatwa warnings
37055         Correct some instances of using OR instead of OR ELSE (noted while
37056         doing reformatting)
37057
37058         * sprint.adb: Minor updates to avoid -gnatwa warnings
37059
37060         * s-secsta.ads, s-secsta.adb:
37061         (SS_Get_Max): New function to obtain high water mark for ss stack
37062         Default_Secondary_Stack is not a constant since it may be modified by
37063         the binder generated main program if the -D switch is used.
37064
37065         * switch-b.adb: New -Dnnn switch for binder
37066
37067         * switch-c.adb:
37068         Make -gnatg imply all warnings currently in -gnatwa
37069
37070         * vms_conv.adb: Minor reformatting
37071         Add 2004 to copyright notice
37072         Add 2004 to printed copyright notice
37073
37074         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
37075         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
37076         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
37077         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
37078         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
37079         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
37080         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
37081         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
37082         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
37083         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
37084         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
37085         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
37086         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
37087         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
37088         checks.adb, clean.adb, cstand.adb, einfo.ads,
37089         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
37090         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
37091         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
37092         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
37093         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
37094         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
37095         Minor reformatting and code clean ups.
37096         Minor changes to prevent -gnatwa warnings
37097
37098         * ali.adb: Minor reformatting and cleanup of code
37099         Acquire new SS indication of secondary stack use from ali files
37100
37101         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
37102         (since now we expect this to be done for imported functions)
37103
37104         * bindgen.adb: Generate call to modify default secondary stack size if
37105         -Dnnn switch given
37106
37107         * bindusg.adb: Add line for new -D switch
37108
37109         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
37110         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
37111         Add circuitry for both records and arrays to avoid gigi
37112         processing if the type involved has non-bit-aligned components
37113
37114         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
37115         N_String_Literal node always references an E_String_Literal_Subtype
37116         entity. This may not be true in the future.
37117         (Possible_Bit_Aligned_Component): Move processing of
37118         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
37119
37120         * exp_ch6.adb (Expand_Thread_Body): Pick up
37121         Default_Secondary_Stack_Size as variable so that we get value modified
37122         by possible -Dnnn binder parameter.
37123
37124         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
37125         (Type_May_Have_Bit_Aligned_Components): New function.
37126
37127         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
37128         (Type_May_Have_Bit_Aligned_Components): New function.
37129
37130         * fe.h: (Set_Identifier_Casing): Fix prototype.
37131         Add declaration for Sem_Elim.Eliminate_Error_Msg.
37132         Minor reformatting.
37133
37134         * freeze.adb (Freeze_Entity): Add RM reference to error message about
37135         importing constant atomic/volatile objects.
37136         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
37137         unless explicit Pure_Function pragma given, to avoid insidious bug of
37138         call to non-pure imported function getting eliminated.
37139
37140         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
37141         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
37142         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
37143         Add 2004 to printed copyright notice
37144
37145         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
37146         stack used.
37147
37148         * Makefile.rtl: Add entry for g-sestin.o
37149         g-sestin.ads: New file.
37150
37151         * mdll.adb: Minor changes to avoid -gnatwa warnings
37152
37153         * mlib-tgt.adb: Minor reformatting
37154
37155         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
37156         New switch Sec_Stack_Used (GNAT, GNATBIND)
37157         Make Default_Secondary_Stack_Size a variable instead of a constant,
37158         so that it can be modified by the new -Dnnn bind switch.
37159
37160         * rtsfind.adb (Load_Fail): Give full error message in configurable
37161         run-time mode if all_errors mode is set. This was not done in the case
37162         of a file not found, which was an oversight.
37163         Note if secondary stack unit is used by compiler.
37164
37165         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
37166         ineffective elaborate all pragmas on non-visible packages (this
37167         happened when a renamed subprogram was called). Now the elaborate all
37168         always goes on the package containing the renaming rather than the one
37169         containing the renamed subprogram.
37170
37171         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
37172         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
37173
37174         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
37175         has an Etype that references an E_String_Literal.
37176         (Eval_String_Literal): Avoid assumption that N_String_Literal node
37177         always references an E_String_Literal_Subtype entity. This may not
37178         be true in the future.
37179
37180         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
37181         pragma location.
37182
37183         * sem_res.adb (Resolve): Specialize msg for function name used in proc
37184         call.
37185
37186 2004-01-05  Ed Falis  <falis@gnat.com>
37187
37188         * g-debuti.adb: Replaced direct boolean operator with short-circuit
37189         form.
37190
37191 2004-01-05  Vincent Celier  <celier@gnat.com>
37192
37193         * bld.adb: Minor comment updates
37194         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
37195         of Item_Name).
37196
37197         * make.adb (Gnatmake): Special process for files to compile/check when
37198         -B is specified. Fail when there are only foreign mains in attribute
37199         Main of the project file and -B is not specified. Do not skip bind/link
37200         steps when -B is specified.
37201
37202         * makeusg.adb: Document new switch -B
37203
37204         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
37205
37206         * switch-m.adb: (Scan_Make_Switches): Process -B switch
37207
37208         * vms_data.ads: Add new GNAT PRETTY qualifier
37209         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
37210
37211 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37212
37213         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
37214         case.
37215
37216         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
37217         Set_Identifier_Casing.
37218
37219         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
37220         has size that overflows.
37221
37222 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
37223
37224         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
37225         -gnatwa warning on static condition.
37226
37227 2004-01-05  Doug Rupp  <rupp@gnat.com>
37228
37229         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
37230
37231 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
37232
37233         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
37234         all attributes, including read-only attribute.
37235
37236 2004-01-05  Pascal Obry  <obry@gnat.com>
37237
37238         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
37239         library naming scheme.
37240
37241         * mlib-prj.adb (Build_Library): Generate different names for the static
37242         or dynamic version of the GNAT runtime. This is needed to support the
37243         new shared library naming scheme.
37244         (Process_Binder_File): Add detection of shared library in binder file
37245         based on the new naming scheme.
37246
37247         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
37248         scheme for the shared runtime libraries.
37249
37250         * Makefile.in:
37251         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
37252         scheme.
37253         (install-gnatlib): Do not create symlinks for shared libraries.
37254         (gnatlib-shared-default): Idem.
37255         (gnatlib-shared-dual-win32): New target. Not used for now as the
37256         auto-import feature does not support arrays/records.
37257         (gnatlib-shared-win32): Do not create copy for the shared libraries.
37258         (gnatlib-shared-vms): Fix shared runtime libraries names.
37259
37260         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
37261         dependent runtime shared library name.
37262
37263 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
37264
37265         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
37266         than the object.
37267
37268 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
37269
37270         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
37271         protected objects when allocator has a subtype indication, not a
37272         qualified expression. Note that qualified expressions may have to be
37273         checked when limited aggregates are implemented.
37274
37275         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
37276         pure, emit warning.
37277         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
37278         subprogram is imported, remove warning.
37279
37280 2004-01-05  Geert Bosch  <bosch@gnat.com>
37281
37282         * s-poosiz.adb: Update copyright notice.
37283         (Allocate): Use Task_Lock to protect against concurrent access.
37284         (Deallocate): Likewise.
37285
37286 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
37287
37288         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
37289         comment.
37290
37291 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
37292
37293         * gnat_ug.texi: Force a CVS commit by updating copyright.
37294         * gnat_ug_vxw.texi: Regenerate.
37295         * gnat_ug_wnt.texi: Regenerate.
37296         * gnat_ug_vms.texi: Regenerate.
37297         * gnat_ug_unx.texi: Regenerate.
37298
37299 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
37300
37301         * trans.c: Remove uses of "register" specifier in
37302         declarations of local variables.
37303
37304 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
37305
37306         * stamp-xgnatug: New stamp file.
37307         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
37308         (ada/doctools/xgnatug): Add $(build_exeext).
37309         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
37310         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
37311
37312 2003-12-17  Ed Falis  <falis@gnat.com>
37313
37314         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
37315         eliminate warning.
37316
37317         * a-exextr.adb: Add context clause for
37318         Ada.Exceptions.Last_Chance_Handler.
37319
37320 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
37321
37322         * cstand.adb (Create_Standard): Change the way how the declaration of
37323         the Duration type is created (making it the same way as it is for all
37324         the other standard types).
37325
37326 2003-12-17  Robert Dewar  <dewar@gnat.com>
37327
37328         * s-crtl.ads: Fix header format
37329         Change Pure to Preelaborate
37330
37331 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
37332
37333         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
37334         the expression type only if it is declared in the current unit.
37335
37336         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
37337         are universal and already analyzed, as can occur in constrained
37338         subcomponents that depend on discriminants, when one constraint is a
37339         subtype mark.
37340
37341         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
37342         type Any_Fixed is legal as the argument of a conversion, if only one
37343         fixed-point type is in context.
37344
37345 2003-12-17  GNAT Script  <nobody@gnat.com>
37346
37347         * Make-lang.in: Makefile automatically updated
37348
37349 2003-12-15  Robert Dewar  <dewar@gnat.com>
37350
37351         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
37352         sec stack size.
37353
37354 2003-12-15  Vincent Celier  <celier@gnat.com>
37355
37356         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
37357         (Gnatchop): Do not set failure status when reporting the number of
37358         warnings.
37359
37360 2003-12-15  Doug Rupp  <rupp@gnat.com>
37361
37362         * s-ctrl.ads: New file.
37363
37364         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
37365
37366         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
37367         (GNATBIND_OBJS): Add ada/s-crtl.o.
37368
37369         * Makefile.in [VMS]: Clean up ifeq rules.
37370
37371         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
37372         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
37373         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
37374         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
37375         s-tasdeb.adb: Update copyright.
37376         Import System.CRTL.
37377         Make minor modifications to use System.CRTL declared functions instead
37378         of importing locally.
37379
37380 2003-12-15  GNAT Script  <nobody@gnat.com>
37381
37382         * Make-lang.in: Makefile automatically updated
37383
37384 2003-12-11  Ed Falis  <falis@gnat.com>
37385
37386         * 5zinit.adb: Clean up.
37387
37388         * 5zintman.adb (Notify_Exception): replaced case statement with a call
37389         to __gnat_map_signal, imported from init.c to support
37390         signal -> exception mappings that depend on the vxWorks version.
37391
37392         * init.c:
37393         Created and exported __gnat_map_signal to support signal -> exception
37394         mapping that is dependent on the VxWorks version.
37395         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
37396
37397 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
37398
37399         * 5wosinte.ads: Link with -mthreads switch.
37400
37401 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
37402
37403         * init.c (__gnat_install_handler [NetBSD]): Set
37404         __gnat_handler_installed, as done on all other platforms.
37405         Remove duplicated code.
37406
37407 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
37408
37409         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
37410
37411 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
37412
37413         * sinfo.ads: Fix inconsistent example code in comment.
37414
37415 2003-12-11  Robert Dewar  <dewar@gnat.com>
37416
37417         * a-tiinau.adb: Add a couple of comments
37418
37419         * sem_ch3.adb: Minor reformatting
37420
37421         * sem_prag.adb:
37422         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
37423         Minor reformatting throughout
37424
37425 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
37426
37427         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
37428         bounds of a loop, create a separate block in order to generate proper
37429         cleanup actions to prevent memory leaks.
37430
37431         * sem_res.adb (Resolve_Call): After a call to
37432         Establish_Transient_Scope, the call may be rewritten and relocated, in
37433         which case no further processing is needed.
37434
37435         * sem_util.adb: (Wrong_Type): Refine previous fix.
37436          Fixes ACATS regressions.
37437
37438         PR ada/13353
37439         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
37440         be inlined.
37441
37442 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
37443
37444         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
37445         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
37446         obsolete files.
37447
37448         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
37449         (rts-zfp): Ditto.
37450
37451 2003-12-08  Robert Dewar  <dewar@gnat.com>
37452
37453         * 7sintman.adb: Minor reformatting
37454
37455         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
37456         standard linker options to get standard libraries linked. We now plan
37457         to provide dummy versions of these libraries to match the appropriate
37458         configurable run-time (e.g. if a library is not needed at all, provide
37459         a dummy empty library).
37460
37461         * targparm.ads: Configurable_Run_Time mode no longer affects linker
37462         options (-L parameters and standard libraries). What we plan to do is
37463         to provide dummy libraries where the libraries are not required.
37464
37465         * gnatbind.adb: Minor comment improvement
37466
37467 2003-12-08  Javier Miranda  <miranda@gnat.com>
37468
37469         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
37470         aggregate in the parent. Otherwise constants with limited aggregates
37471         are not supported. Add new formal to pass the component type (Ctype).
37472         It is required to call the corresponding IP subprogram in case of
37473         default initialized components.
37474         (Gen_Assign): In case of default-initialized component, generate a
37475         call to the IP subprogram associated with the component.
37476         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
37477         of aggregate with default initialized components.
37478         (Has_Default_Init_Comps): Improve implementation to recursively check
37479         all the present expressions.
37480
37481         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
37482         to indicate that the initialization call corresponds to a
37483         default-initialized component of an aggregate.
37484         In case of default initialized aggregate with tasks this parameter is
37485         used to generate a null string (this is just a workaround that must be
37486         improved later). In case of discriminants, this parameter is used to
37487         generate a selected component node that gives access to the discriminant
37488         value.
37489
37490         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
37491         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
37492         allocated aggregates with default-initialized components.
37493
37494         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
37495         the box notation is used in positional aggregates.
37496
37497 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
37498
37499         * lib.ads: Fix typo in comment
37500
37501 2003-12-08  Vincent Celier  <celier@gnat.com>
37502
37503         * prj.adb (Project_Empty): New component Unkept_Comments
37504         (Scan): Remove procedure; moved to Prj.Err.
37505
37506         * prj.ads (Project_Data): New Boolean component Unkept_Comments
37507         (Scan): Remove procedure; moved to Prj.Err.
37508
37509         * prj-dect.adb: Manage comments for the different declarations.
37510
37511         * prj-part.adb (With_Record): New component Node
37512         (Parse): New Boolean parameter Store_Comments, defaulted to False.
37513         Set the scanner to return ends of line and comments as tokens, if
37514         Store_Comments is True.
37515         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
37516         comments are associated with these nodes. Store the node IDs in the
37517         With_Records.
37518         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
37519         With_Records.
37520         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
37521         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
37522         current project. Call Tree.Restore afterwards. Set the various nodes
37523         for comment storage (Next_End, End_Of_Line, Previous_Line,
37524         Previous_End).
37525
37526         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
37527         defaulted to False.
37528
37529         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
37530         to False. When Truncated is True, truncate the string, never go to the
37531         next line.
37532         (Write_End_Of_Line_Comment): New procedure
37533         (Print): Process comments for nodes N_With_Clause,
37534         N_Package_Declaration, N_String_Type_Declaration,
37535         N_Attribute_Declaration, N_Typed_Variable_Declaration,
37536         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
37537         Process nodes N_Comment.
37538
37539         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
37540         without comments and there are some comments, set the flag
37541         Unkept_Comments to True.
37542         (Scan): If there are comments, set the flag Unkept_Comments to True and
37543         clear the comments.
37544         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
37545         (Next_End_Nodes: New table
37546         (Comment_Zones_Of): New function
37547         (Scan): New procedure; moved from Prj. Accumulate comments in the
37548         Comments table and set end of line comments, comments after, after end
37549         and before end.
37550         (Add_Comments): New procedure
37551         (Save, Restore, Seset_State): New procedures
37552         (There_Are_Unkept_Comments): New function
37553         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
37554         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
37555         procedures.
37556         (First_Comment_After, First_Comment_After_End): New functions
37557         (First_Comment_Before, First_Comment_Before_End): New functions
37558         (Next_Comment): New function
37559         (End_Of_Line_Comment, Follows_Empty_Line,
37560         Is_Followed_By_Empty_Line): New functions
37561         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
37562         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
37563         (Set_Next_Comment): New procedure
37564         (Default_Project_Node): Associate comment before if the node can store
37565         comments.
37566
37567         * scans.ads (Token_Type): New enumeration value Tok_Comment
37568         (Comment_Id): New global variable
37569
37570         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
37571         defaulted to False.
37572         (Scan): Store position of start of comment. If comments are tokens, set
37573         Comment_Id and set Token to Tok_Comment when scanning a comment.
37574         (Set_Comment_As_Token): New procedure
37575
37576         * sinput-p.adb: Update Copyright notice
37577         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
37578         that no longer exists.
37579
37580 2003-12-08  Javier Miranda  <miranda@gnat.com>
37581
37582         * sem_aggr.adb: Add dependence on Exp_Tss package
37583         Correct typo in comment
37584         (Resolve_Aggregate): In case of array aggregates set the estimated
37585         type of the aggregate before calling resolve. This is needed to know
37586         the name of the corresponding IP in case of limited array aggregates.
37587         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
37588         in case of default initialized array components.
37589
37590         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
37591         types. Required to give support to limited aggregates in generic
37592         formals.
37593
37594 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
37595
37596         * sem_ch3.adb (Check_Initialization): For legality purposes, an
37597         inlined body functions like an instantiation.
37598         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
37599         until bounds are analyzed, to diagnose premature use of type.
37600
37601         * sem_util.adb (Wrong_Type): Improve error message when the type of
37602         the expression is used prematurely.
37603
37604 2003-12-08  GNAT Script  <nobody@gnat.com>
37605
37606         * Make-lang.in: Makefile automatically updated
37607
37608 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
37609
37610         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
37611         they are automatically generated by Make-lang.in and cause nothing but
37612         maintenance troubles.
37613
37614 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
37615
37616         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
37617         version of this unit).
37618
37619 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
37620
37621         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
37622         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
37623         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
37624         the body of System.Interrupt_Management common to several targets.
37625         Update copyright notice when appropriate.
37626
37627         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
37628         constant.
37629
37630         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
37631         to ensure that the kernel fills in the interrupted context structure
37632         before calling a signal handler, which is necessary to be able to
37633         unwind past it. Update the copyright notice.
37634
37635 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
37636
37637         * a-elchha.ads: New file.
37638
37639         * a-elchha.adb: New default last chance handler. Contents taken from
37640         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
37641
37642         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
37643         is moved to a-elchha.adb to provide a target-independent default last
37644         chance handler.
37645
37646         * Makefile.rtl: Add a-elchha.o
37647
37648         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
37649
37650 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
37651
37652         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
37653         declared in an instance, do not inline the call if the instance is not
37654         frozen yet, to prevent order of elaboration problems.
37655
37656         * sem_prag.adb: Add comments for previous fix.
37657
37658 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
37659
37660         * g-table.adb: Use the right variable in Set_Item.
37661         Update copyright notice.
37662
37663 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
37664
37665         * Makefile.in: Remove unused rules.
37666
37667 2003-12-05  Vincent Celier  <celier@gnat.com>
37668
37669         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
37670         -nostdlib. Not needed here after all.
37671
37672 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
37673
37674         PR ada/11724
37675         * adaint.h, adaint.c, g-os_lib.ads:
37676         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
37677         on some platforms (including FreeBSD), it is a 64 bit value.
37678         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
37679
37680 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
37681
37682         * gnatvsn.ads (Library_Version): Now contain only the relevant
37683         version info.
37684         (Verbose_Library_Version): New constant.
37685
37686         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
37687         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
37688         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
37689
37690         * gnatlbr.adb: Clean up: replace Library_Version by
37691         Verbose_Library_Version.
37692
37693         * make.adb, lib-writ.adb, exp_attr.adb:
37694         Clean up: replace Library_Version by Verbose_Library_Version.
37695
37696         * 5lintman.adb: Removed.
37697
37698         * Makefile.in:
37699         Update and simplify computation of LIBRARY_VERSION.
37700         Fix computation of GSMATCH_VERSION.
37701         5lintman.adb is no longer used: replaced by 7sintman.adb.
37702
37703 2003-12-03  Robert Dewar  <dewar@gnat.com>
37704
37705         * exp_ch5.adb:
37706         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
37707         name. Modified to consider small non-bit-packed arrays as troublesome
37708         and in need of component-by-component assigment expansion.
37709
37710 2003-12-03  Vincent Celier  <celier@gnat.com>
37711
37712         * lang-specs.h: Process nostdlib as nostdinc
37713
37714         * back_end.adb: Update Copyright notice
37715         (Scan_Compiler_Arguments): Process -nostdlib directly.
37716
37717 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
37718
37719         * Makefile.in:
37720         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
37721         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
37722         included in HIE_NONE_TARGET_PAIRS.
37723
37724 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
37725
37726         * sem_attr.adb:
37727         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
37728         is legal in an instance, because legality is cheched in the template.
37729
37730         * sem_prag.adb:
37731         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
37732         appplied to an unchecked conversion of a formal parameter.
37733
37734         * sem_warn.adb:
37735         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
37736         variables.
37737
37738 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
37739
37740         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
37741         routines. The second one is new functionality to deal with backtracing
37742         through signal handlers.
37743         (unwind): Split into the two separate subroutines above.
37744         Update the documentation, and deal properly with sizeof (REG) different
37745         from sizeof (void*).
37746
37747 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
37748
37749         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
37750         so that the debugger can reliably access the value of the parameter,
37751         and therefore is able to display the exception name when an exception
37752         breakpoint is reached.
37753
37754 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
37755
37756         * fmap.adb: Fix typo in warning message.
37757
37758         * g-socket.ads, g-socket.adb: Make Free a visible instance of
37759         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
37760
37761 2003-12-01  Vincent Celier  <celier@gnat.com>
37762
37763         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
37764         ther is no Afile.
37765         (Build_Library): Get the switches only if Default_Switches is declared
37766         in package Binder.
37767
37768 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
37769
37770         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
37771         actuals that are indexed components, reanalyze actual to ensure that
37772         packed array references are properly expanded.
37773
37774         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
37775         attempted assignment to a discriminant.
37776
37777 2003-12-01  Robert Dewar  <dewar@gnat.com>
37778
37779         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
37780         reformatting.
37781
37782         * switch-c.adb: Minor reformatting of comments
37783
37784 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
37785
37786         * Makefile.in: Clean ups.
37787
37788 2003-12-01  GNAT Script  <nobody@gnat.com>
37789
37790         * Make-lang.in: Makefile automatically updated
37791
37792 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
37793
37794         * 5wsystem.ads: Disable zero cost exception, not ready yet.
37795
37796 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
37797
37798         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
37799         to force serialization.
37800
37801 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
37802
37803         * g-socket.ads, g-socket.adb:
37804         Clarify documentation of function Stream. Introduce a Free procedure
37805         to release the returned Stream once it becomes unused.
37806
37807         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
37808
37809 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
37810
37811         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
37812         since NT 4 cannot handle timeout values that are too large,
37813         e.g. DWORD'Last - 1.
37814
37815 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
37816
37817         * exp_ch4.adb:
37818         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
37819         in procedure calls and whose expansion must be deferred.
37820
37821         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
37822         is in exp_ch4.
37823
37824         * sem_ch3.adb:
37825         (Build_Derived_Array_Type): Create operator for unconstrained type
37826         if ancestor is unconstrained.
37827
37828 2003-11-26  Vincent Celier  <celier@gnat.com>
37829
37830         * make.adb (Project_Object_Directory): New global variable
37831         (Change_To_Object_Directory): New procedure
37832         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
37833         of Change_Dir directly. Do not change working directory to object
37834         directory of main project after each compilation.
37835         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
37836         directly.
37837         Change to object directory of main project before binding step.
37838         (Initialize): Initialize Project_Object_Directory to No_Project
37839
37840         * mlib-prj.adb:
37841         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
37842         binding a Stand-Alone Library.
37843
37844         * output.adb: Update Copyright notice
37845         (Write_Char): Output buffer when full
37846
37847 2003-11-26  Robert Dewar  <dewar@gnat.com>
37848
37849         * sem_ch13.adb: (Check_Size): Reset size if size is too small
37850
37851         * sem_ch13.ads:
37852         (Check_Size): Fix documentation to include bit-packed array case
37853
37854         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
37855
37856         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
37857
37858         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
37859
37860 2003-11-24  Arnaud Charlet  <charlet@act-europe.fr>
37861
37862         PR ada/13142
37863         * utils.c (init_gigi_decls): Change name of built-in setjmp to
37864         __builtin_setjmp, since this is apparently needed by recent
37865         non Ada changes.
37866
37867 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
37868
37869         * adadecode.c: Only include ctype.h if not IN_GCC.
37870         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
37871
37872 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
37873
37874         * Makefile.in:
37875         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
37876         signals and interrupts.
37877
37878         * 5zintman.ads: New File.
37879
37880         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
37881         add exception signals to the set of unmasked signals.
37882
37883         * 5ztaprop.adb:
37884         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
37885         between signals and interrupts.
37886         Add to Unblocked_Signal_Mask the set of signals that are in
37887         Keep_Unmasked.
37888
37889         * 7sinmaop.adb:
37890         Adding a check to see whether the Interrupt_ID we want to unmask is in
37891         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
37892         reason is that the index type of the Keep_Unmasked array is not always
37893         Interrupt_ID; it may be a subtype of Interrupt_ID.
37894
37895 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
37896
37897         * exp_util.adb:
37898         (Remove_Side_Effects): Condition constantness of object created for a
37899          an unchecked type conversion on the constantness of the expression
37900          to ensure the correct value for 'Constrained when passing components
37901          of view-converted class-wide objects.
37902
37903 2003-11-24  Robert Dewar  <dewar@gnat.com>
37904
37905         * par-load.adb (Load): Improve handling of misspelled and missing units
37906         Removes several cases of compilation abandoned messages
37907
37908         * lib.adb: (Remove_Unit): New procedure
37909
37910         * lib.ads: (Remove_Unit): New procedure
37911
37912         * lib-load.adb: Minor reformatting
37913
37914 2003-11-24  Vincent Celier  <celier@gnat.com>
37915
37916         * make.adb:
37917         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
37918         (Marking_Label): Label to mark processed source files. Incremented for
37919         each executable.
37920         (Gnatmake): Increase Marking_Labet for each executable
37921         (Is_Marked): Compare against marking label
37922         (Mark): Mark with marking label
37923
37924 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
37925
37926         * s-thread.ads:
37927         Move the declaration of the TSD for System.Threads to System.Soft_Links.
37928         Add some comments.
37929
37930         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
37931         (rts-cert): build a single relocatable object for the run-time lib.
37932         Fix perms.
37933
37934 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
37935
37936         * Make-lang.in:
37937         Use gnatls rather than gcc to obtain the location of GNAT RTL for
37938         crosstools build.
37939
37940 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
37941
37942         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
37943         can not use it as before (that is, as a variable) when dumping it into
37944         the tree file. Add a local variable to store the result of this
37945         function and to be used as the string to be written into the tree.
37946
37947         * scn.adb (Initialize_Scanner): Add comments explaining the recent
37948         changes.
37949
37950         * sinput.adb (Source_First, Source_Last): In case of
37951         Internal_Source_File, replace returning attributes of
37952         Internal_Source_Ptr (which is wrong) with returning attributes of
37953         Internal_Source.
37954
37955 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
37956
37957         * sem_ch3.adb:
37958         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
37959         used for implicit concatenation operators.
37960         Code cleanup.
37961
37962         * sem_elab.adb:
37963         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
37964         task bodies that are in the scope of a Suppress pragma.
37965         (Check_A Call): Use the flag to prevent spurious elaboration checks.
37966
37967         * sinfo.ads, sinfo.adb:
37968         New flag No_Elaboration_Check on function/procedure calls, to properly
37969         suppress checks on calls in task bodies that are within a local suppress
37970         pragma.
37971
37972         * exp_ch4.adb:
37973         (Expand_Concatenate_Other): Use the proper integer type for the
37974         expression for the upper bound, to avoid universal_integer computations
37975         when possible.
37976
37977 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
37978
37979         * .cvsignore: Delete.
37980
37981 2003-11-21  Andreas Schwab  <schwab@suse.de>
37982
37983         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
37984
37985 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
37986
37987         * 5wsystem.ads: Enable zero cost exception.
37988
37989 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
37990
37991         * 5ztiitho.adb: Remove an unreferenced variable.
37992
37993 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
37994
37995         * adaint.c: For FreeBSD, use mkstemp.
37996
37997 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
37998
37999         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
38000
38001 2003-11-21  Robert Dewar  <dewar@gnat.com>
38002
38003         * bld.adb: Remove useless USE of gnatvsn
38004
38005         * gnatchop.adb: Minor reformatting
38006         Clean up version handling to be more consistent
38007
38008         * gnatxref.adb: Minor reformatting
38009
38010         * gprcmd.adb: Minor reformatting
38011         Fix output of copyright to be more consistent with other tools
38012
38013 2003-11-21  Vincent Celier  <celier@gnat.com>
38014
38015         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
38016
38017 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
38018
38019         * atree.adb (Initialize): Add initializations for global variables
38020         used in New_Copy_Tree.
38021
38022         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
38023         Internal_Source_File as the actual).
38024         Put the set of statements creating Any_Character before the set of
38025         statements creating Any_Array to have Any_Character fully initialized
38026         when it is used in creating Any_Array.
38027
38028         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
38029         not call Scan in case if the actual is Internal_Source_File
38030         Add 2003 to copyright note.
38031
38032         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
38033         processing Internal_Source_File.
38034
38035         * types.ads: Add the constant Internal_Source_File representing the
38036         source buffer for artificial source-code-like strings created within
38037         the compiler (the definition of Source_File_Index is changed).
38038
38039 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
38040
38041         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
38042         56system.ads: New file, FreeBSD version.
38043
38044 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
38045
38046         * Make-lang.in (ada.extraclean): Delete.
38047
38048 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
38049
38050         * gnatmem.adb: Clean up verbose output.
38051
38052         * gprcmd.adb: Change copyright to FSF.
38053
38054 2003-11-19  Vincent Celier  <celier@gnat.com>
38055
38056         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
38057         and Version (ignored).
38058
38059         * symbols.ads: (Policy): New type
38060         (Initialize): New parameter Reference, Symbol_Policy and
38061         Library_Version.
38062         Remove parameter Force.
38063         Minor reformatting.
38064
38065         * snames.ads, snames.adbadb: New standard names
38066         Library_Reference_Symbol_File and Library_Symbol_Policy
38067
38068         * mlib-prj.adb:
38069         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
38070         project.
38071
38072         * mlib-tgt.adb:
38073         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
38074
38075         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
38076
38077         * prj.adb: (Project_Empty): New component Symbol_Data
38078
38079         * prj.ads: (Policy, Symbol_Record): New types
38080         (Project_Data): New component Symbol_Data
38081
38082         * prj-attr.adb:
38083         New attributes Library_Symbol_File, Library_Symbol_Policy and
38084         Library_Reference_Symbol_File.
38085
38086         * prj-nmsc.adb:
38087         (Ada_Check): When project is a Stand-Alone library project, process
38088         attribute Library_Symbol_File, Library_Symbol_Policy and
38089         Library_Reference_Symbol_File.
38090
38091         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
38092         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
38093         5sml-tgt.adb (Build_Dynamic_Library): New parameter
38094         Symbol_Data (ignored).
38095
38096         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
38097         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
38098         functions Option_File_Name and Version_String. Set new options of
38099         gnatsym related to symbol file, symbol policy and reference symbol
38100         file.
38101
38102         * 5vsymbol.adb:
38103         Extensive modifications to take into account the reference symbol file,
38104         the symbol policy, the library version and to put in the symbol file the
38105         minor and major IDs.
38106
38107         * bld.adb (Process_Declarative_Items): Put second argument of
38108         gprcmd to_absolute between single quotes, to avoid problems with
38109         Windows.
38110
38111         * bld-io.adb: Update Copyright notice.
38112         (Flush): Remove last character of a line, if it is a back slash, to
38113         avoid make problems.
38114
38115         * gnatsym.adb:
38116         Implement new scheme with reference symbol file and symbol policy.
38117
38118         * g-os_lib.ads: (Is_Directory): Clarify comment
38119
38120 2003-11-19  Robert Dewar  <dewar@gnat.com>
38121
38122         * atree.adb: Move New_Copy_Tree global variables to head of package
38123
38124         * errout.adb: Minor reformatting
38125
38126 2003-11-19  Javier Miranda  <miranda@gnat.com>
38127
38128         * sem_ch4.adb: (Diagnose_Call): Improve error message.
38129         Add reference to Ada0Y (AI-50217)
38130
38131         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
38132         sem_util.adb: Add reference to AI-50217
38133
38134         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
38135
38136         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
38137
38138         * sem_aggr.adb: Complete documentation of AI-287 changes
38139
38140         * par-ch4.adb: Document previous changes.
38141
38142         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
38143         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
38144         Ada0Y (AI-50217)
38145
38146         * exp_aggr.adb: Add references to AI-287 in previous changes
38147
38148 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
38149
38150         * exp_ch6.adb:
38151         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
38152         in the rewriting is the result of an inlined call.
38153
38154         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
38155         parameter is a type conversion, use original node to construct the
38156         post-call assignment, because expression may have been rewritten, e.g.
38157         if it is a packed array.
38158
38159         * sem_attr.adb:
38160         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
38161         body, just as it is in an instance.
38162         Categorization routines
38163
38164         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
38165         Instantiate_Object): Set proper sloc reference for message on missing
38166         actual.
38167
38168 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
38169
38170         * Makefile.in: Add FreeBSD libgnat pairs.
38171
38172         * usage.adb: Fix typo in usage message.
38173
38174 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
38175
38176         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
38177         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
38178         pragma Thread_Body.
38179         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
38180
38181         * s-thread.adb: This file is now a dummy implementation of
38182         System.Thread.
38183
38184 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
38185
38186         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
38187
38188 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
38189
38190         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
38191         instanciation references in the parent type description.
38192
38193 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38194
38195         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
38196
38197         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
38198         TYPE_PRECISION directly from esize.
38199
38200 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
38201
38202         * cstreams.c:
38203         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
38204
38205         * init.c: Initialization routines for FreeBSD
38206
38207         * link.c: Link info for FreeBSD
38208
38209         * sysdep.c: Add the case of FreeBSD
38210
38211 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
38212
38213         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
38214         already called in System.Threads.
38215
38216         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
38217         environment task, as it has been moved to System.Threads.Initialization.
38218
38219 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
38220
38221         * adaint.c (__gnatlib_install_locks): Only reference
38222         __gnat_install_locks on VMS, since other platforms can avoid using
38223         --enable-threads=gnat
38224
38225 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38226
38227         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
38228
38229         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
38230         TYPE_PACKED_ARRAY_TYPE_P.
38231         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
38232
38233         Part of PR ada/12806
38234         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
38235         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
38236
38237 2003-11-17  Vincent Celier  <celier@gnat.com>
38238
38239         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
38240         to False.
38241         Do not set exit status to Failure when Warning is True.
38242         (Gnatchop): Make errors "no compilation units found" and
38243         "no source files written" warnings only.
38244
38245         * make.adb (Gnatmake): When using a project file, set
38246         Look_In_Primary_Dir to False.
38247         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
38248         and Local_Configuration_Pragmas in the project where they are declared
38249         not an extending project which might have inherited them.
38250
38251         * osint.adb (Locate_File): If Name is already an absolute path, do not
38252         look for a directory.
38253
38254         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
38255         -gnats (Check_Syntax) is used, issue only a warning, not an error.
38256
38257         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
38258         in objects of type Variable_Value.
38259
38260         * prj.ads: (Variable_Value): New component Project
38261
38262         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
38263         is in a project extended by Project.
38264
38265         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
38266         Project of Variable_Values to this new parameter value.
38267         (Expression): Set component Project of Variable_Values.
38268         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
38269         Set the component Project in array elements.
38270
38271 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
38272
38273         * errout.adb: (Initialize): Add initialization for error nodes.
38274
38275         * sem_ch12.adb (Initialize): Add missing initializations for
38276         Exchanged_Views and Hidden_Entities.
38277
38278 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
38279
38280         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
38281         already instantiated tree for use in subsequent inlining.
38282         (Analyze_Associations, Instantiate_Formal_Subprogram,
38283         Instantiate_Object): improve error message for mismatch in
38284         instantiations.
38285
38286         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
38287         instantiations of subprograms declared in instances.
38288
38289 2003-11-17  Javier Miranda  <miranda@gnat.com>
38290
38291         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
38292         executed only under the Extensions_Allowed flag.
38293
38294 2003-11-17  Robert Dewar  <dewar@gnat.com>
38295
38296         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
38297         zeroes suppressed.
38298         (Address_Image): Fix bug of returning 0x instead of 0x0
38299         Minor reformatting (function specs).
38300
38301         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
38302         (missed case of 33-63)
38303
38304         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
38305
38306         * s-thread.adb: Add comments for pragma Restriction
38307
38308         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
38309         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
38310
38311 2003-11-17  Ed Falis  <falis@gnat.com>
38312
38313         * s-thread.adb: Added No_Tasking restriction for this implementation.
38314
38315 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
38316
38317         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
38318         instanciation references in the parent type description.
38319
38320 2003-11-17  GNAT Script  <nobody@gnat.com>
38321
38322         * Make-lang.in: Makefile automatically updated
38323
38324 2003-11-16  Jason Merrill  <jason@redhat.com>
38325
38326         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
38327         and TAGS files that include them for each front end.
38328
38329 2003-11-14  Andreas Jaeger  <aj@suse.de>
38330
38331         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
38332         is the canonical version.
38333         * misc.c (gnat_handle_option): Likewise.
38334
38335         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
38336
38337         * 5nsystem.ads: New file for x86_64-linux-gnu.
38338
38339 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
38340
38341         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
38342
38343         * comperr.adb: Fix logic in previous change.
38344
38345 2003-11-13  Vincent Celier  <celier@gnat.com>
38346
38347         * 5bml-tgt.adb (Build_Dynamic_Library): Use
38348         Osint.Include_Dir_Default_Prefix instead of
38349         Sdefault.Include_Dir_Default_Name.
38350
38351         * gnatlbr.adb: Update Copyright notice
38352         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
38353         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
38354         instead of Sdefault.Object_Dir_Default_Name
38355
38356         * gnatlink.adb:
38357         (Process_Binder_File): Never suppress the option following -Xlinker
38358
38359         * mdll-utl.adb:
38360         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
38361         Sdefault.Object_Dir_Default_Name.
38362
38363         * osint.ads, osint.adb:
38364         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
38365         Minor reformatting.
38366
38367         * vms_conv.ads: Minor reformating
38368         Remove GNAT STANDARD and GNAT PSTA
38369
38370         * vms_conv.adb:
38371         Allow GNAT MAKE to have several files on the command line.
38372         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
38373         Sdefault.Object_Dir_Default_Name.
38374         Minor Reformating
38375         Remove data for GNAT STANDARD
38376
38377         * vms_data.ads:
38378         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
38379         Remove data for GNAT STANDARD
38380         Remove options and documentation for -gnatwb/-gnatwB: these warning
38381         options no longer exist.
38382
38383 2003-11-13  Ed Falis  <falis@gnat.com>
38384
38385         * 5zthrini.adb: (Init_RTS): Made visible
38386
38387         * 5zthrini.adb:
38388         (Register): Removed unnecessary call to taskVarGet that checked whether
38389          an ATSD was already set as a task var for the argument thread.
38390
38391         * s-thread.adb:
38392         Updated comment to reflect that this is a VxWorks version
38393         Added context clause for System.Threads.Initialization
38394         Added call to System.Threads.Initialization.Init_RTS
38395
38396 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
38397
38398         * 5zthrini.adb:
38399         (Init_RTS): New procedure, for the initialization of the run-time lib.
38400
38401         * s-thread.adb:
38402         Remove dependancy on System.Init, so that this file can be used in the
38403         AE653 sequential run-time lib.
38404
38405 2003-11-13  Robert Dewar  <dewar@gnat.com>
38406
38407         * bindgen.adb: Minor reformatting
38408
38409 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
38410
38411         * checks.adb:
38412         (Apply_Discriminant_Check): Do no apply check if target type is derived
38413         from source type with no applicable constraint.
38414
38415         * lib-writ.adb:
38416         (Ensure_System_Dependency): Do not apply the style checks that may have
38417         been specified for the main unit.
38418
38419         * sem_ch8.adb:
38420         (Find_Selected_Component): Further improvement in error message, with
38421         RM reference.
38422
38423         * sem_res.adb:
38424         (Resolve): Handle properly the case of an illegal overloaded protected
38425         procedure.
38426
38427 2003-11-13  Javier Miranda  <miranda@gnat.com>
38428
38429         * exp_aggr.adb:
38430         (Has_Default_Init_Comps): New function to check the presence of
38431         default initialization in an aggregate.
38432         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
38433         extension aggregate of a limited record. In addition, a new formal
38434         was added to do not initialize the record controller (if any) during
38435         this recursive expansion of ancestors.
38436         (Init_Controller): Add support for limited record components.
38437         (Expand_Record_Aggregate): In case of default initialized components
38438         convert the aggregate into a set of assignments.
38439
38440         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
38441         describing the new syntax.
38442         Nothing else needed to be done because this subprogram delegates part of
38443         its work to P_Precord_Or_Array_Component_Association.
38444         (P_Record_Or_Array_Component_Association): Give support to the new
38445         syntax for default initialization of components.
38446
38447         * sem_aggr.adb:
38448         (Resolve_Aggregate): Relax the strictness of the frontend in case of
38449         limited aggregates.
38450         (Resolve_Record_Aggregate): Give support to default initialized
38451         components.
38452         (Get_Value): In case of default initialized components, duplicate
38453         the corresponding default expression (from the record type
38454         declaration). In case of default initialization in the *others*
38455         choice, do not check that all components have the same type.
38456         (Resolve_Extension_Aggregate): Give support to limited extension
38457         aggregates.
38458
38459         * sem_ch3.adb:
38460         (Check_Initialization): Relax the strictness of the front-end in case
38461         of aggregate and extension aggregates. This test is now done in
38462         Get_Value in a per-component manner.
38463
38464         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
38465         expression corresponds to a limited aggregate. This test is now done
38466         in Get_Value.
38467
38468         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
38469         Box_Present flag.
38470
38471         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
38472         present in an N_Component_Association node
38473
38474 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
38475
38476         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
38477         type-conformant entry only if they are homographs.
38478
38479 2003-11-13  GNAT Script  <nobody@gnat.com>
38480
38481         * Make-lang.in: Makefile automatically updated
38482
38483 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38484
38485         * adadecode.c: Use <> form of include for ctype.h.
38486         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
38487
38488 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38489
38490         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
38491         Works around PR middle-end/6552.
38492
38493 2003-11-10  Ed Falis  <falis@gnat.com>
38494
38495         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
38496
38497         * 5zinit.adb: (Install_Handler): Moved back to spec
38498         (Install_Signal_Handlers): Deleted
38499
38500         * 5zthrini.adb: Added context clause for System.Storage_Elements
38501         (Register): Only handles creation of taskVar; initialization moved to
38502         Thread_Body_Enter.
38503         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
38504         Added declaration of environment task secondary stack and
38505         initialization.
38506
38507         * s-thread.adb: Implement bodies for thread body processing
38508
38509         * s-thread.ads:
38510         Added comment identifying supported targets for pragma Thread_Body.
38511
38512 2003-11-10  Pascal Obry  <obry@gnat.com>
38513
38514         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
38515         GNAT_MAX_PATH_LEN.
38516
38517         * s-fileio.adb:
38518         (Open): Properly check for string length before copying into the buffer.
38519         Raises Name_Error if buffer is too small. Note that this was a potential
38520         buffer overflow.
38521
38522 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
38523
38524         * bindgen.adb, comperr.adb: Code clean ups.
38525         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
38526
38527 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
38528
38529         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
38530
38531 2003-11-10  Vincent Celier  <celier@gnat.com>
38532
38533         * gprcmd.adb:
38534         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
38535         installation.
38536
38537         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
38538
38539         * prj.adb: (Project_Empty): Add new boolean component Virtual
38540
38541         * prj.ads: (Virtual_Prefix): New constant string
38542         (Project_Data): New boolean component Virtual
38543
38544         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
38545         a library project is extended by a virtual extending project.
38546
38547         * prj-part.adb:
38548         Modifications throughout to implement extending-all project, including:
38549         (Virtual_Hash, Processed_Hash): New hash tables
38550         (Create_Virtual_Extending_Project): New procedure
38551         (Look_For_Virtual_Projects_For): New procedure
38552
38553         * prj-proc.adb:
38554         (Process): After checking the projects, if main project is an
38555         extending-all project, set the object directory of all virtual extending
38556         project to the object directory of the main project.
38557         Adjust error message when a virtual extending project has the same
38558         object directory as an project being extended.
38559         (Recursive_Process): If name starts with the virtual prefix, set Virtual
38560         to True in the project data.
38561
38562         * prj-tree.adb:
38563         (Default_Project_Node): Add new boolean component Extending_All
38564         (Is_Extending_All): New function
38565         (Set_Is_Extending_All): New procedure
38566
38567         * prj-tree.ads: (Is_Extending_All): New function
38568         (Set_Is_Extending_All): New procedure
38569         (Project_Node_Record): New boolean component Extending_All
38570
38571         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
38572
38573         * vms_data.ads:
38574         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
38575
38576         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
38577         "gprcmd prefix" to define it.
38578
38579 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
38580
38581         * einfo.ads: Fix a typo and remove an extraneous word in comments.
38582
38583         * lib-load.adb:
38584         (Create_Dummy_Package_Unit): Set the scope of the entity for the
38585         created dummy package to Standard_Standard, not to itself, to
38586         defend other parts of the front-end against encoutering a cycle in
38587         the scope chain.
38588
38589         * sem_ch10.adb:
38590         (Analyze_With_Clause): When setting the entities for the successive
38591         N_Expanded_Names that constitute the name of a child unit, do not
38592         attempt to go further than Standard_Standard in the chain of scopes.
38593         This case arises from the placeholder units created by
38594         Create_Dummy_Package_Unit in the case of a with_clause for a
38595         nonexistent child unit.
38596
38597 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
38598
38599         * exp_ch6.adb:
38600         (Expand_Thread_Body): Place subprogram on scope stack, so that new
38601         declarations are given the proper scope.
38602
38603         * sem_ch13.adb:
38604         (Check_Expr_Constants): Reject an expression that contains a constant
38605         created during expansion, and that appears after the object to which
38606         the address clause applies.
38607
38608         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
38609         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
38610         that uses 'Range of a function call with controlled components, so
38611         that the function result can be finalized before starting the loop.
38612
38613         * sem_ch8.adb:
38614         (Find_Selected_Component): Improve error message when prefix is
38615         an implicit dereference of an incomplete type.
38616
38617 2003-11-10  Robert Dewar  <dewar@gnat.com>
38618
38619         * opt.ads: New Print_Standard flag for -gnatS switch
38620
38621         * sem_ch13.adb: Remove some additional checks for unaligned arrays
38622
38623         * cstand.adb (Create_Standard): Print out package standard if -gnatS
38624         switch set
38625
38626         * debug.adb: Update doc for -gnatds to discuss relationship with new
38627         -gnatS flag
38628
38629         * sinfo.adb: Add new field Entity_Or_Associated_Node
38630
38631         * sinfo.ads: Add new field Entity_Or_Associated_Node
38632         Update documentation for Associated_Node and Entity fields to clarify
38633         relationship and usage.
38634
38635         * sprint.adb:
38636         (Write_Id): Properly process Associated_Node field in generic template
38637
38638         * switch-c.adb:
38639         Recognize new -gnatS switch for printing package Standard
38640         This replaces gnatpsta
38641
38642         * usage.adb:
38643         Add line for  new -gnatS switch for printing package Standard
38644         This replaces gnatpsta
38645
38646 2003-11-10  Andreas Jaeger  <aj@suse.de>
38647
38648         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
38649         integer.
38650
38651 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
38652
38653         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
38654         by gnat1.
38655
38656 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
38657
38658         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
38659         no longer needed.
38660
38661         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
38662
38663         * sysdep.c: Add handling of cygwin.
38664
38665 2003-11-10  GNAT Script  <nobody@gnat.com>
38666
38667         * Make-lang.in: Makefile automatically updated
38668
38669 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
38670
38671         PR 12950
38672         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
38673         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
38674         Replace GNAT_ROOT by GCC_ROOT.
38675
38676         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
38677
38678 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
38679
38680         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
38681         and update for changed meaning of GET_MODE_BITSIZE.
38682
38683 2003-11-04  Doug Rupp  <rupp@gnat.com>
38684
38685         * sysdep.c: Problem discovered during IA64 VMS port.
38686         [VMS] #include <unixio.h> to get proper prototypes.
38687
38688         * adaint.c:
38689         Issues discovered/problems fixed during IA64 VMS port.
38690         [VMS] #define _POSIX_EXIT for proper semantics.
38691         [VMS] #include <unixio.h> for proper prototypes.
38692         [VMS] (fork): #define IA64 version.
38693         (__gnat_os_exit): Remove unnecessary VMS specific code.
38694
38695 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38696
38697         Part of PR ada/12806
38698         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
38699         tree, not integer.
38700
38701         * decl.c:
38702         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
38703         not integer.
38704
38705         * targtyps.c, decl.c, misc.c,
38706         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
38707         routines to work around change in FP sizing semantics in GCC.
38708
38709         * utils.c:
38710         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
38711
38712         * gigi.h: (enumerate_modes): New function.
38713
38714         * Make-lang.in: (ada/misc.o): Add real.h.
38715
38716         * misc.c: (enumerate_modes): New function.
38717
38718 2003-11-04  Robert Dewar  <dewar@gnat.com>
38719
38720         * 3vtrasym.adb: Minor reformatting
38721         Use terminology encoded/decoded name, rather than C++ specific notion
38722         of mangling (this is the terminology used throughout GNAT).
38723
38724         * einfo.h: Regenerated
38725
38726         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
38727
38728         * exp_ch6.adb:
38729         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
38730
38731         * par-prag.adb: Add dummy entry for Thread_Body pragma
38732
38733         * rtsfind.ads:
38734         Add entries for System.Threads entities for thread body processing
38735
38736         * sem_attr.adb:
38737         (Analyze_Pragma, Access attributes): Check these are not applied to a
38738         thread body, since this is not permitted
38739
38740         * sem_prag.adb: Add processing for Thread_Body pragma.
38741         Minor comment fix.
38742
38743         * sem_res.adb:
38744         (Resolve_Call): Check for incorrect attempt to call a thread body
38745          procedure with a direct call.
38746
38747         * snames.ads, snames.adb: Add entry for Thread_Body pragma
38748         Add names associated with thread body expansion
38749
38750         * snames.h: Add entry for Thread_Body pragma
38751
38752         * s-thread.adb: Add entries for thread body processing
38753         These are dummy bodies so far
38754
38755         * s-thread.ads: Add documentation on thread body handling.
38756         Add entries for thread body processing.
38757
38758 2003-11-04  Javier Miranda  <miranda@gnat.com>
38759
38760         * sem_ch10.adb:
38761         (Build_Limited_Views): Return after posting an error in case of limited
38762         with_clause on subprograms, generics, instances or generic renamings
38763         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
38764         on subprograms, generics, instances or generic renamings
38765
38766 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
38767
38768         * raise.c (setup_to_install): Correct mistake in last revision; two
38769         arguments out of order.
38770
38771         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
38772         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
38773         notice, missed in previous change.
38774         Remove trailing blanks and other style errors introduced in previous
38775         change.
38776
38777 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
38778
38779         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
38780         rid of the wrapper for a LJM type, ensuring we don't do that if the
38781         field is addressable.  This avoids potential low level type view
38782         mismatches later on, for instance in a by-reference argument passing
38783         process.
38784
38785 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38786
38787         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
38788         aligned at byte boundary.
38789
38790 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
38791
38792         * decl.c (components_to_record): Do not delete the empty variants from
38793         the end of the union type.
38794
38795 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
38796
38797         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
38798         operation for a derived type, an explicit declaration may use a local
38799         subtype of Boolean.
38800
38801 2003-11-04  Vincent Celier  <celier@gnat.com>
38802
38803         * make.adb (Gnatmake): Allow main sources on the command line with a
38804         library project when it is only for compilation (no binding or
38805         linking).
38806
38807 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38808
38809         * Makefile.in: Remove many duplicate variables.
38810
38811 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
38812
38813         * Make-lang.in (dvi): Move targets to $(docobjdir).
38814         (gnat_ug_vms.dvi): Simplify rule and adjust target.
38815         (gnat_ug_wnt.dvi): Likewise.
38816         (gnat_ug_unx.dvi): Likewise.
38817         (gnat_ug_vxw.dvi): Likewise.
38818         (gnat_rm.dvi): Likewise.
38819         (gnat-style.dvi): Likewise.
38820
38821 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
38822
38823         * gigi.h: Missed commit from update for C90.
38824
38825 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
38826
38827         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
38828
38829 2003-10-31  Andreas Schwab  <schwab@suse.de>
38830
38831         * raise.c (get_action_description_for): Fix typo in last change.
38832
38833 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
38834
38835         PR ada/12761
38836         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
38837         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
38838
38839 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
38840
38841         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
38842         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
38843         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
38844         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
38845         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
38846
38847 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
38848
38849         * 3vtrasym.adb:
38850         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
38851         numbers when symbol name is too long.
38852
38853 2003-10-30  Ed Falis  <falis@gnat.com>
38854
38855         * g-signal.ads, g-signal.adb: New files
38856
38857         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
38858
38859         * Makefile.rtl: Introduce GNAT.Signals
38860
38861 2003-10-30  Robert Dewar  <dewar@gnat.com>
38862
38863         * freeze.adb: Minor reformatting
38864
38865         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
38866
38867         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
38868         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
38869         New handling of Id_Check parameter to improve recognition of keywords
38870         used as identifiers.
38871         Update copyright notice to include 2003
38872
38873 2003-10-29  Robert Dewar  <dewar@gnat.com>
38874
38875         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
38876         sem_ch10.adb: Minor reformatting
38877
38878         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
38879         (Expand_Assign_Record): Test right hand side for bit unaligned as well
38880
38881 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
38882
38883         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
38884         Support for TBK$SYMBOLIZE-based symbolic traceback.
38885
38886 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
38887
38888         * exp_disp.adb:
38889         Revert previous change, that did not work well when pragma No_Run_Time
38890         was used in conjunction with a run-time other than ZFP.
38891
38892 2003-10-29  Vincent Celier  <celier@gnat.com>
38893
38894         * make.adb:
38895         (Gnatmake): When there are no Ada mains in attribute Main, disable the
38896          bind and link steps only is switch -z is not used.
38897
38898 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
38899
38900         * Makefile.generic: Remove duplicated setting of CC.
38901
38902         * Makefile.prolog: Set CC to gcc by default, to override make's
38903         default (cc).
38904
38905         * einfo.h: Regenerated.
38906
38907 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
38908
38909         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
38910         current body, after compiling subunit.
38911
38912         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
38913         when in deleted code, because gigi needs properly ordered freeze
38914         actions to annotate types.
38915
38916         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
38917         prevent the premature freezing of record type that contains
38918         subcomponents with a private type that does not yet have a completion.
38919
38920 2003-10-29  Javier Miranda  <miranda@gnat.com>
38921
38922         * sem_ch12.adb:
38923         (Analyze_Package_Instantiation): Check that instances can not be used in
38924         limited with_clauses.
38925
38926         * sem_ch8.adb:
38927         (Analyze_Package_Renaming): Check that limited withed packages cannot
38928         be renamed. Improve text on error messages related to limited
38929         with_clauses.
38930
38931         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
38932
38933         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
38934         Update copyright notice.
38935
38936         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
38937         (Install_Limited_Context_Clauses): New subprogram that isolates all the
38938         checks required for limited context_clauses and installs the limited
38939         view.
38940         (Install_Limited_Withed_Unit): Complete its documentation.
38941         (Analyze_Context): Check that limited with_clauses are only allowed in
38942         package specs.
38943         (Install_Context): Call Install_Limited_Context_Clauses after the
38944         parents have been installed.
38945         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
38946         package as 'From_With_Type'; this mark indicates that the limited view
38947         is installed. Used to check bad usages of limited with_clauses.
38948         (Build_Limited_Views): Do not add shadow entities to the scope's list
38949         of entities. Do not add real entities to the Non_Limited_Views chain.
38950         Improve error notification.
38951         (Remove_Context_Clauses): Remove context clauses in two phases:
38952         limited views first and regular views later (to maintain the
38953         stack model).
38954         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
38955         its visible entities.
38956
38957 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
38958
38959         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
38960         with any type that Is_Fixed_Point_Type.
38961
38962         * sinfo.ads: Fix documentation for Associated_Node attribute.
38963
38964 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
38965
38966         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
38967         both '-gnatc' and '-gnatt' are specified.
38968
38969         * atree.adb (Initialize): Add initialization for Node_Count (set to
38970         zero).
38971
38972 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38973
38974         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
38975         do not consider as Pure.
38976
38977         Part of implementation of function-at-a-time:
38978
38979         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
38980         (tree_transform): Add new argument to build_component_ref.
38981         (tree_transform, case N_Assignment_Statement): Make and return an
38982         EXPR_STMT.
38983         (tree_transform): If result IS_STMT, set flags and return it.
38984         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
38985
38986         * utils2.c (build_simple_component_ref, build_component_ref): Add new
38987         arg, NO_FOLD_P.
38988         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
38989         (build_allocator): Likewise.
38990
38991         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
38992         Add new arg to build_component_ref.
38993         (maybe_unconstrained_array, unchecked_convert): Likewise.
38994
38995         * ada-tree.def (EXPR_STMT): New code.
38996
38997         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
38998
38999         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
39000         build_component_ref calls.
39001
39002         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
39003
39004         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
39005         (build_component_ref): Add new argument, NO_FOLD_P.
39006
39007 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
39008
39009         * Makefile.generic: Add missing substitution on object_deps handling.
39010
39011         PR ada/5909
39012         * Make-lang.in (check-ada): Enable ACATS test suite.
39013
39014 2003-10-27  Robert Dewar  <dewar@gnat.com>
39015
39016         * exp_ch3.adb:
39017         (Freeze_Array_Type): We do not need an initialization routine for types
39018         derived from String or Wide_String. They should be treated the same
39019         as String and Wide_String themselves. This caused problems with the
39020         use of Initialize_Scalars.
39021
39022         * exp_ch5.adb:
39023         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
39024         composites. This allows use of component clauses that are not byte
39025         aligned.
39026
39027         * sem_prag.adb:
39028         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
39029         is an attempt to pack an array of atomic objects.
39030
39031         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
39032
39033 2003-10-27  Pascal Obry  <obry@gnat.com>
39034
39035         * g-dirope.adb:
39036         (Basename): Check for drive letters in a pathname only on DOS based OS.
39037
39038 2003-10-27  Vincent Celier  <celier@gnat.com>
39039
39040         * make.adb:
39041         (Gnatmake): When unable to change dir to the object dir, display the
39042         content of the parent dir of the obj dir, to try to understand why this
39043         happens.
39044
39045 2003-10-27  GNAT Script  <nobody@gnat.com>
39046
39047         * Make-lang.in: Makefile automatically updated
39048
39049 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
39050
39051         * sem_ch12.adb:
39052         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
39053         should not be done in Save/Restore_Scope_Stack, because it is performed
39054         locally.
39055
39056         * sem_ch8.adb:
39057         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
39058         whether use clauses should be removed/restored.
39059
39060         * sem_ch8.ads:
39061         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
39062         whether use clauses should be removed/restored.
39063
39064 2003-10-26  Andreas Jaeger  <aj@suse.de>
39065
39066         * Makefile.in: Remove duplicated lines.
39067
39068 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
39069
39070         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
39071         minimize the differences with ACT tree.
39072
39073         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
39074         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
39075         Gnatvsn.Gnat_Static_Version_String to reduce differences between
39076         ACT and FSF trees.
39077
39078 2003-10-24  Pascal Obry  <obry@gnat.com>
39079
39080         PR ada/12014
39081         * adadecode.c (ostrcpy): New function.
39082         (__gnat_decode): Use ostrcpy of strcpy.
39083         (has_prefix): Set first parameter a const.
39084         (has_suffix): Set first parameter a const.
39085         Update copyright notice. Fix source name in header.
39086         Removes a trailing space.
39087
39088 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
39089
39090         * exp_disp.adb:
39091         Remove the test against being in No_Run_Time_Mode before generating a
39092         call to Register_Tag. It is redundant with the test against the
39093         availability of the function Register_Tag.
39094
39095 2003-10-24  Vincent Celier  <celier@gnat.com>
39096
39097         * g-catiio.adb: (Month_Name): Correct spelling of February
39098
39099         * make.adb: (Mains): New package
39100         (Initialize): Call Mains.Delete
39101         (Gnatmake): Check that each main on the command line is a source of a
39102         project file and, if there are several mains, each of them is a source
39103         of the same project file.
39104         (Gnatmake): When a foreign language is specified in attribute Languages,
39105         no main is specified on the command line and attribute Mains is not
39106         empty, only build the Ada main. If there is no Ada main, just compile
39107         the Ada sources and their closure.
39108         (Gnatmake): If a main is specified on the command line with directory
39109         information, check that the source exists and, if it does, that the path
39110         is the actual path of a source of a project.
39111
39112         * prj-env.adb:
39113         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
39114         Full_Path is True, return the full path instead of the simple file name.
39115         (Project_Of): New function
39116
39117         * prj-env.ads:
39118         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
39119         defaulted to False.
39120         (Project_Of): New function
39121
39122 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
39123
39124         * Makefile.generic:
39125         Ensure objects of main project are always checked and rebuilt if needed.
39126         Set CC to gcc by default.
39127         Prepare new handling of link by creating a global archive (not activated
39128         yet).
39129
39130         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
39131         stringt.h: Update copyright notice. Remove trailing blanks.
39132         Fix source name in header.
39133
39134 2003-10-24  Robert Dewar  <dewar@gnat.com>
39135
39136         * sem_ch12.adb: Minor reformatting
39137
39138         * sem_ch3.adb:
39139         Minor reformatting (including new function return style throughout)
39140
39141         * sem_ch3.ads:
39142         Minor reformatting (including new function return style throughout)
39143
39144 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
39145
39146         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
39147         stringt.h: Update copyright notice. Remove trailing blanks.
39148         Fix source name in header.
39149
39150 2003-10-24  GNAT Script  <nobody@gnat.com>
39151
39152         * Make-lang.in: Makefile automatically updated
39153
39154 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
39155
39156         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
39157         stringt.h: Convert to ISO C90 declarations and definitions.
39158
39159 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
39160
39161         PR ada/11978
39162         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
39163         External_Tag attribute definition clauses.
39164
39165 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
39166
39167         PR ada/7613
39168         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
39169         child unit, generate a fully qualified name to avoid spurious errors
39170         when the context contains renamings of different child units with
39171         the same simple name.
39172
39173         * exp_dbug.ads: Add documentation on name qualification for renamings
39174         of child units.
39175
39176 2003-10-23  Robert Dewar  <dewar@gnat.com>
39177
39178         * g-regpat.ads, g-regpat.adb: Minor reformatting
39179
39180 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
39181
39182         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
39183
39184 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
39185
39186         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
39187         Machine call.
39188
39189         * urealp.h: (Machine): Update to proper definition.
39190
39191 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
39192
39193         * init.c, adaint.c: Minor reformatting.
39194
39195 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
39196
39197         * adaint.c (w32_epoch_offset): Define static const at file level.
39198         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
39199         rather than t_create, t_access in call to GetFileTime. Use union
39200         to convert between FILETIME and  unsigned long long.
39201         (__gnat_file_time_name): Test for invalid file handle.
39202         (__gnat_set_filetime_name): Support win32 targets using
39203         w32api SetFileTime.
39204
39205 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
39206
39207         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
39208
39209         * ctrl_c.c (__gnat_int_handler): Remove declaration.
39210
39211         * decl.c (creat_concat_name):  Const-ify prefix.
39212
39213         * adaint.c: Include ctype.h if __MINGW32__.
39214         (__gnat_readlink): Mark arguments as possibly unused.
39215         (__gnat_symlink): Likewise.
39216         (__gnat_is_symbolic_link): Likewise.
39217         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
39218         declaration
39219         (__gnat_file_time_name): Don't declare struct stat statbuf when
39220         not needed.
39221         (__gnat_is_absolute_path): Add parenthesis around condition of
39222         'if' statement to avoid warning.
39223         (__gnat_plist_init): Specify void as parameter.
39224         (plist_enter): Likewise.
39225         (plist_leave): Likewise.
39226         (remove_handle): Make static. Initialize prev.
39227
39228 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
39229
39230         PR ada/10110
39231         * Makefile.in: Disable build of gnatpsta.
39232         * cstreams.c (__gnat_full_name): Minor improvements and clean up
39233         of previous change.
39234
39235 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
39236
39237         * tracebak.c (MAX): Avoid redefinition warning.
39238
39239         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
39240         Change msg to const char *.
39241         (__gnat_install_handler): Remove ss, unused.
39242         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
39243         to const char *.
39244         * cstreams.c (__gnat_full_name): Declare p only when used.
39245         (__gnat_full_name) [sgi] Return buffer.
39246
39247 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
39248
39249         * mingw32.h: New file.
39250         * gnat_wrapper.adb: New file.
39251
39252 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
39253
39254         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
39255         string match a pre compiled regular expression (the corresponding
39256         version of the function working on a raw regular expression)
39257         Fix typos in various comments
39258         Update copyright notice in spec
39259
39260 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
39261
39262         * exp_ch3.adb:
39263         (Component_Needs_Simple_Initialization): Return False when the type is a
39264         packed bit array. Revise spec comments to document this case.
39265
39266         * exp_prag.adb:
39267         (Expand_Pragma_Import): Set any expression on the imported object to
39268         empty to avoid initializing imported objects (in particular this
39269         covers the case of zero-initialization of bit arrays).
39270         Update copyright notice.
39271
39272 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
39273
39274         * sem_ch12.adb:
39275         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
39276         a subunit is missing.
39277         (Instantiate_Subprogram_Body): If body of function is missing, set type
39278         of return expression explicitly in dummy body, to prevent cascaded
39279         errors when a subunit is missing.
39280         Fixes PR 5677.
39281
39282         * sem_ch3.adb:
39283         (Access_Subprogram_Declaration): Verify that return type is valid.
39284         Fixes PR 8693.
39285
39286         * sem_elab.adb:
39287         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
39288         generic.
39289         Fixes PR 12318.
39290
39291         * sem_util.adb:
39292         (Corresponding_Discriminant): If the scope of the discriminant is a
39293         private type without discriminant, use its full view.
39294         Fixes PR 8247.
39295
39296 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
39297
39298         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
39299         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
39300         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
39301         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
39302         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
39303         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
39304         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
39305         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
39306         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
39307         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
39308         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
39309         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
39310         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
39311         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
39312         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
39313         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
39314         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
39315         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
39316         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
39317         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
39318         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
39319         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
39320         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
39321         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
39322         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
39323         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
39324         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
39325         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
39326         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
39327         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
39328         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
39329         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
39330         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
39331         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
39332         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
39333         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
39334         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
39335         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
39336         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
39337         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
39338         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
39339         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
39340         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
39341         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
39342         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
39343         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
39344         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
39345         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
39346         vms_conv.ads, vms_conv.adb, vms_data.ads,
39347         vxaddr2line.adb: Files added. Merge with ACT tree.
39348
39349         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
39350         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
39351         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
39352         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
39353         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
39354         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
39355         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
39356         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
39357         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
39358         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
39359
39360         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
39361         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
39362         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
39363         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
39364         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
39365         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
39366         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
39367         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
39368         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
39369         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
39370         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
39371         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
39372         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
39373         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
39374         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
39375         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
39376         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
39377         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
39378         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
39379         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
39380         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
39381         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
39382         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
39383         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
39384         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
39385         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
39386         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
39387         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
39388         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
39389         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
39390         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
39391         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
39392         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
39393         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
39394         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
39395         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
39396         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
39397         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
39398         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
39399         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
39400         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
39401         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
39402         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
39403         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
39404         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
39405         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
39406         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
39407         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
39408         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
39409         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
39410         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
39411         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
39412         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
39413         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
39414         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
39415         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
39416         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
39417         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
39418         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
39419         checks.adb, checks.ads, cio.c, comperr.adb,
39420         comperr.ads, csets.adb, cstand.adb, cstreams.c,
39421         debug_a.adb, debug_a.ads, debug.adb, decl.c,
39422         einfo.adb, einfo.ads, errout.adb, errout.ads,
39423         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
39424         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
39425         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
39426         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
39427         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
39428         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
39429         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
39430         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
39431         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
39432         fe.h, fmap.adb, fmap.ads, fname.adb,
39433         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
39434         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
39435         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
39436         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
39437         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
39438         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
39439         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
39440         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
39441         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
39442         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
39443         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
39444         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
39445         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
39446         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
39447         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
39448         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
39449         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
39450         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
39451         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
39452         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
39453         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
39454         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
39455         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
39456         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
39457         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
39458         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
39459         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
39460         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
39461         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
39462         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
39463         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
39464         layout.adb, lib.adb, lib.ads, lib-list.adb,
39465         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
39466         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
39467         link.c, live.adb, make.adb, make.ads,
39468         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
39469         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
39470         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
39471         misc.c, mkdir.c, mlib.adb, mlib.ads,
39472         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
39473         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
39474         namet.adb, namet.ads, namet.h, nlists.ads,
39475         nlists.h, nmake.adt, opt.adb, opt.ads,
39476         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
39477         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
39478         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
39479         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
39480         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
39481         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
39482         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
39483         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
39484         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
39485         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
39486         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
39487         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
39488         prj-util.adb, prj-util.ads, raise.c, raise.h,
39489         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
39490         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
39491         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
39492         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
39493         scans.ads, scn.adb, scn.ads, s-crc32.adb,
39494         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
39495         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
39496         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
39497         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
39498         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
39499         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
39500         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
39501         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
39502         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
39503         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
39504         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
39505         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
39506         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
39507         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
39508         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
39509         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
39510         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
39511         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
39512         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
39513         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
39514         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
39515         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
39516         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
39517         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
39518         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
39519         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
39520         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
39521         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
39522         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
39523         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
39524         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
39525         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
39526         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
39527         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
39528         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
39529         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
39530         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
39531         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
39532         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
39533         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
39534         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
39535         stringt.adb, stringt.ads, stringt.h, style.ads,
39536         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
39537         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
39538         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
39539         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
39540         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
39541         table.adb, table.ads, targparm.adb, targparm.ads,
39542         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
39543         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
39544         ttypes.ads, types.ads, types.h, uintp.adb,
39545         uintp.ads, uintp.h, uname.adb, urealp.adb,
39546         urealp.ads, urealp.h, usage.adb, utils2.c,
39547         utils.c, validsw.adb, validsw.ads, widechar.adb,
39548         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
39549         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
39550         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
39551         gnatvsn.ads: Merge with ACT tree.
39552
39553         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
39554
39555 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
39556
39557         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
39558         (gnat_ug_vmx.info): Likewise.
39559         (gnat_ug_vxw.info): Likewise.
39560         (gnat_ug_wnt.info): Likewise.
39561         (gnat_rm.info): Likewise.
39562         (gnat-style.info): Likewise.
39563
39564         * Make-lang.in (ada.install-info): Remove target.
39565         (info): New target.
39566         (install-info): Likewise.
39567         (gnat_ug_unx.info): Simplify rule.
39568         (gnat_ug_vmx.info): Likewise.
39569         (gnat_ug_vxw.info): Likewise.
39570         (gnat_ug_wnt.info): Likewise.
39571         (gnat_rm.info): Likewise.
39572         (gnat-style.info): Likewise.
39573
39574 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
39575
39576         * Make-lang.in: Replace uses of $(target_alias) with
39577         $(target_noncanonical).
39578         * ada/Makefile.in: Remove unused mention of $(target_alias).
39579
39580 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
39581
39582         * Make-lang.in (ada.info): Replace with ...
39583         (info): ... this.
39584         (ada.dvi): Replace with ...
39585         (dvi): ... this.
39586
39587 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
39588
39589         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
39590         initialize dconstp5 and dconstmp5.
39591
39592 2003-09-28  Richard Henderson  <rth@redhat.com>
39593
39594         * trans.c (tree_transform): Update call to expand_asm_operands.
39595
39596 2003-09-21  Richard Henderson  <rth@redhat.com>
39597
39598         * trans.c, utils.c: Revert.
39599
39600 2003-09-21  Richard Henderson  <rth@redhat.com>
39601
39602         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
39603         change to const.
39604
39605 2003-09-04  Michael Matz  <matz@suse.de>
39606
39607         * misc.c: Include "target.h".
39608         * Make-lang.in (misc.o): Add dependency on target.h.
39609
39610 2003-09-03  DJ Delorie  <dj@redhat.com>
39611
39612         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
39613         hook.
39614
39615 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
39616
39617         * Makefile.in: Update substitutions to match changes to
39618         configure.  Use include directives instead of @-insertions
39619         to read in host and target fragments.  Add a rule to
39620         regenerate ada/Makefile.
39621
39622 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
39623
39624         * lang-options.h: Remove.
39625         * lang.opt: Add help text.
39626
39627 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
39628
39629         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
39630         calls.
39631
39632 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
39633
39634         * misc.c (gnat_handle_option): Don't handle filenames.
39635
39636 2003-07-04  H.J. Lu  <hongjiu.lu@intel.com>
39637
39638         * Make-lang.in: Replace PWD with PWD_COMMAND.
39639         * Makefile.adalib: Likewise.
39640         * Makefile.in: Likewise.
39641
39642 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
39643
39644         * misc.c (gnat_argv): Revert last change.
39645         (gnat_handle_option, gnat_init_options): Copy arguments.
39646
39647 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
39648
39649         * misc.c (gnat_argv): Make const.
39650
39651 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
39652
39653         * misc.c (save_argc, save_argv): Keep non-static!
39654
39655 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
39656
39657         * misc.c (save_argc, save_argv): Make static.
39658         (gnat_init_options): New prototype.
39659         (gnat_init_options): Update.
39660
39661 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
39662
39663         * gnat_ug.texi: Remove unlikely characters from @vars.
39664         * gnat_ug_vms.texi: Regenerate.
39665
39666 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
39667
39668         * misc.c (record_code_position): Adjust emit_note call.
39669
39670 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
39671
39672         * misc.c (gnat_handle_option): Don't check for missing arguments.
39673
39674 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
39675
39676         * utils.c (end_subprog_body): Adjust expand_function_end call.
39677
39678 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
39679
39680         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
39681         Bind_Main_Program.
39682
39683 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
39684
39685         * lang.opt: Declare Ada.
39686         * misc.c (gnat_init_options): Update.
39687
39688 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
39689
39690         * utils.c (begin_subprog_body): Adjust init_function_start call.
39691
39692 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
39693
39694         * Make-lang.in: Update to use options.c and options.h.
39695         * misc.c: Include options.h not aoptions.h.
39696         (gnat_handle_option): Abort on unrecognized switch.
39697         (gnat_init_options): Request Ada switches.
39698
39699 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
39700
39701         * lang.opt: Add -Wall.
39702         * misc.c (gnat_handle_option): Handle it.
39703
39704 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
39705
39706         * misc.c (gnat_handle_option): Fix warnings.
39707
39708 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
39709
39710         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
39711
39712 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
39713
39714         * Make-lang.in: Update to handle command-line options.
39715         * lang.opt: New file.
39716         * misc.c: Include aoptions.h.
39717         (cl_options_count, cl_options): Remove.
39718         (gnat_handle_option): New.
39719         (gnat_decode_option): Remove.
39720         (LANG_HOOKS_DECODE_OPTION): Remove.
39721         (LANG_HOOKS_HANDLE_OPTION): Override.
39722
39723 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
39724
39725         * init.c, misc.c, trans.c, utils.c: Remove dead code.
39726
39727 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
39728
39729         * Makefile.in: Replace "host_canonical" with "host" for autoconf
39730         substitution.
39731
39732 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
39733
39734         * Make-lang.in: Update.
39735         * misc.c: Include opts.h. Define cl_options_count and cl_options.
39736
39737 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
39738
39739         * misc.c (gnat_init_options): Update.
39740
39741 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
39742
39743         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
39744         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
39745         __attribute__ ((__unused__)).
39746
39747 2003-06-05  Jan Hubicka  <jh@suse.cz>
39748
39749         * Make-lang.in:  Add support for stageprofile and stagefeedback
39750
39751 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
39752
39753         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
39754         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
39755
39756 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
39757
39758         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
39759         Remove non-VMS directive.
39760         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
39761         alternatives.
39762         (Examples of gnatls Usage): Remove VMS alternative.
39763
39764 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
39765
39766         PR ada/9953
39767         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
39768         and turn ZCX_By_Default back to False since the underlying support
39769         is not quite there yet.
39770
39771 2003-06-01  Andreas Jaeger  <aj@suse.de>
39772
39773         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
39774         and ROUND_TYPE_SIZE_UNIT.
39775
39776 2003-05-22   Geert Bosch  <bosch@gnat.com>
39777
39778         * gnat_rm.texi : Remove reference to Ada Core Technologies.
39779
39780 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
39781
39782         * trans.c (tree_transform): Use location_t and input_location
39783         directly.
39784         (build_unit_elab): Likewise.
39785         * utils.c (create_label_decl): Likewise.
39786
39787 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
39788
39789         * trans.c (tree_transform, build_unit_elab,
39790         set_lineno): Rename lineno to input_line.
39791         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
39792         end_subprog_body): Likewise.
39793         * utils2.c (build_call_raise): Likewise.
39794
39795 2003-05-01  Laurent Guerby  <guerby@acm.org>
39796
39797         PR ada/10546
39798         * 5iosinte.ads: Increase pthread_cond_t size to match recent
39799         LinuxThread and NPTL version, merge from ACT.
39800
39801 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
39802
39803         * utils.c (convert): No need to clear TREE_CST_RTL.
39804
39805 2003-04-23   Geert Bosch  <bosch@gnat.com>
39806
39807         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
39808         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
39809         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
39810         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
39811         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
39812         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
39813         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
39814         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
39815         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
39816         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
39817         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
39818         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
39819         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
39820         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
39821         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
39822         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
39823         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
39824         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
39825         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
39826         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
39827         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
39828         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
39829         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
39830         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
39831         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
39832         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
39833         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
39834         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
39835         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
39836         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
39837         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
39838         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
39839         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
39840         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
39841         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
39842         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
39843         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
39844         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
39845         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
39846         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
39847         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
39848         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
39849         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
39850         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
39851         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
39852         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
39853         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
39854         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
39855         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
39856         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
39857         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
39858         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
39859         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
39860         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
39861         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
39862         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
39863         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
39864         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
39865         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
39866         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
39867         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
39868         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
39869         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
39870         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
39871         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
39872         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
39873         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
39874         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
39875         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
39876         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
39877         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
39878         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
39879         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
39880         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
39881         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
39882         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
39883         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
39884         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
39885         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
39886         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
39887         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
39888         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
39889         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
39890         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
39891         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
39892         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
39893         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
39894         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
39895         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
39896         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
39897         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
39898         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
39899         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
39900         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
39901         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
39902         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
39903         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
39904         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
39905         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
39906         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
39907         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
39908         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
39909         ali.adb, ali.ads, alloc.ads, argv.c,
39910         atree.adb, atree.ads, atree.h, aux-io.c,
39911         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
39912         binde.adb, binde.ads, binderr.adb, binderr.ads,
39913         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
39914         butil.adb, butil.ads, cal.c, calendar.ads,
39915         casing.adb, casing.ads, ceinfo.adb, checks.adb,
39916         checks.ads, cio.c, comperr.adb, comperr.ads,
39917         config-lang.in, csets.adb, csets.ads, csinfo.adb,
39918         cstand.adb, cstand.ads, cuintp.c, debug.adb,
39919         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
39920         dec-io.ads, dec.ads, deftarg.c, directio.ads,
39921         einfo.adb, einfo.ads, elists.adb, elists.ads,
39922         elists.h, errno.c, errout.adb, errout.ads,
39923         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
39924         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
39925         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
39926         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
39927         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
39928         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
39929         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
39930         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
39931         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
39932         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
39933         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
39934         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
39935         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
39936         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
39937         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
39938         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
39939         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
39940         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
39941         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
39942         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
39943         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
39944         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
39945         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
39946         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
39947         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
39948         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
39949         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
39950         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
39951         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
39952         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
39953         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
39954         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
39955         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
39956         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
39957         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
39958         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
39959         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
39960         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
39961         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
39962         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
39963         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
39964         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
39965         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
39966         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
39967         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
39968         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
39969         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
39970         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
39971         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
39972         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
39973         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
39974         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
39975         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
39976         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
39977         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
39978         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
39979         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
39980         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
39981         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
39982         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
39983         lib.adb, lib.ads, live.adb, live.ads,
39984         machcode.ads, make.adb, make.ads, makeusg.adb,
39985         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
39986         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
39987         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
39988         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
39989         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
39990         mlib.ads, namet.adb, namet.ads, nlists.adb,
39991         nlists.ads, opt.adb, opt.ads, osint-b.adb,
39992         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
39993         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
39994         osint.ads, output.adb, output.ads, par-ch10.adb,
39995         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
39996         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
39997         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
39998         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
39999         par-tchk.adb, par-util.adb, par.adb, par.ads,
40000         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
40001         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
40002         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
40003         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
40004         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
40005         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
40006         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
40007         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
40008         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
40009         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
40010         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
40011         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
40012         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
40013         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
40014         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
40015         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
40016         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
40017         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
40018         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
40019         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
40020         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
40021         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
40022         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
40023         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
40024         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
40025         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
40026         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
40027         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
40028         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
40029         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
40030         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
40031         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
40032         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
40033         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
40034         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
40035         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
40036         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
40037         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
40038         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
40039         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
40040         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
40041         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
40042         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
40043         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
40044         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
40045         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
40046         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
40047         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
40048         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
40049         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
40050         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
40051         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
40052         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
40053         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
40054         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
40055         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
40056         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
40057         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
40058         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
40059         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
40060         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
40061         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
40062         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
40063         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
40064         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
40065         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
40066         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
40067         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
40068         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
40069         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
40070         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
40071         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
40072         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
40073         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
40074         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
40075         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
40076         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
40077         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
40078         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
40079         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
40080         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
40081         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
40082         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
40083         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
40084         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
40085         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
40086         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
40087         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
40088         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
40089         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
40090         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
40091         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
40092         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
40093         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
40094         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
40095         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
40096         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
40097         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
40098         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
40099         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
40100         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
40101         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
40102         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
40103         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
40104         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
40105         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
40106         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
40107         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
40108         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
40109         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
40110         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
40111         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
40112         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
40113         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
40114         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
40115         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
40116         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
40117         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
40118         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
40119         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
40120         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
40121         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
40122         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
40123         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
40124         snames.ads, sprint.adb, sprint.ads, stand.adb,
40125         stand.ads, stringt.adb, stringt.ads, style.adb,
40126         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
40127         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
40128         switch-m.ads, switch.adb, switch.ads, system.ads,
40129         table.adb, table.ads, targparm.adb, targparm.ads,
40130         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
40131         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
40132         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
40133         ttypef.ads, ttypes.ads, types.adb, types.ads,
40134         uintp.adb, uintp.ads, uname.adb, uname.ads,
40135         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
40136         usage.adb, usage.ads, validsw.adb, validsw.ads,
40137         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
40138         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
40139         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
40140         formatting and other trivial changes from ACT.
40141
40142 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
40143
40144         * gigi.h, utils2.c (build_constructor):
40145         Rename gnat_build_constructor. Use build_constructor.
40146         * decl.c (gnat_to_gnu_entity)
40147         * trans.c (tree_transform, pos_to_constructor, extract_values)
40148         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
40149         (unchecked_convert)
40150         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
40151         (fill_vms_descriptor):
40152         Update to match.
40153
40154 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
40155
40156         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
40157         * misc.c (gnat_tree_size): New function.
40158         (LANG_HOOKS_TREE_SIZE): Override.
40159
40160 2003-04-03  Jason Merrill  <jason@redhat.com>
40161
40162         * misc.c (gnat_adjust_rli): #if 0.
40163
40164 2003-03-31   Geert Bosch  <bosch@gnat.com>
40165
40166         PR ada/10020
40167         * link.c : Fix misspelled "const" keyword
40168
40169 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
40170
40171         PR c++/7086
40172         * utils2.c: Adjust calls to put_var_into_stack.
40173
40174 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
40175
40176         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
40177
40178 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
40179
40180         * misc.c (gnat_init): Update for new prototype.
40181
40182 2003-03-05  Olivier Hainque  <hainque@gnat.com>
40183
40184         ada/9961
40185         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
40186         warning, and fix return type for the IN_RTS && !SJLJ case.
40187
40188 2003-03-04  Tom Tromey  <tromey@redhat.com>
40189
40190         * Make-lang.in (ada.tags): New target.
40191
40192 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
40193
40194         ada/9911
40195         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
40196         wrapper, which name remains constant whatever underlying GCC
40197         scheme.
40198
40199         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
40200         the stable interface needed for a-except.
40201
40202 2003-03-02  Andreas Jaeger  <aj@suse.de>
40203
40204         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40205         gnat_ug_wnt.texi: Regenerate.
40206
40207 2003-03-02  Laurent Guerby  <guerby@acm.org>
40208
40209         * Makefile.in (install-gnatlib): Match previous change there
40210         so it works.
40211
40212 2003-02-28  Andreas Schwab  <schwab@suse.de>
40213
40214         * Make-lang.in (install-gnatlib): Change to ada directory before
40215         running make instead of using ada/Makefile directly.
40216
40217 2003-02-18  Ben Elliston  <bje@redhat.com>
40218
40219         Part of PR ada/9406
40220         * gnat_ug.texi (Binder output file): Grammar fix.
40221
40222 2003-02-18  Ben Elliston  <bje@redhat.com>
40223
40224         PR other/7350
40225         * 5qtaprop.adb (Sleep): Fix typo in comment.
40226
40227 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
40228
40229         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
40230         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40231         gnat_ug_wnt.texi: Regenerate.
40232
40233 2003-02-03  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
40234
40235         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
40236         be created if necessary.
40237         (ada.install-common): Let $(DESTDIR)$(bindir) be created
40238         if necessary.  Remove erroneous and redundant gnatchop
40239         installation commands.  Test for gnatdll before attempting
40240         to install it.
40241         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
40242         and gnatdll from all plausible locations.
40243
40244 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
40245
40246         * utils2.c (build_unary_op): Don't check flag_volatile.
40247         * gnat_ug.texi: Remove -fvolatile from example.
40248         * gnat_ug_vxw.texi: Likewise.
40249
40250 2003-01-29  Laurent Guerby  <guerby@acm.org>
40251
40252         PR ada/8344
40253         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
40254         * Makefile.in: match previous change.
40255         * Make-lang.in: match previous change.
40256
40257 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
40258
40259         * 5rosinte.ads: Add SIGXCPU.
40260         * 5rtpopsp.adb: New file.
40261         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
40262         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
40263         specific file 5rtpopsp.adb.
40264         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
40265         is likely needed for all newlib targets.
40266         * init.c: Add RTEMS specific version of __gnat_initialize().
40267
40268 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40269
40270         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
40271
40272 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40273
40274         * init.c (__gnat_error_handler): Make msg const.
40275
40276         * gmem.c (convert_addresses): Move declaration ...
40277         * adaint.h: ... here.
40278         * adaint.c (convert_addresses): Adapt addrs type to match
40279         prototype.
40280
40281         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
40282
40283 2003-01-24  Andreas Schwab  <schwab@suse.de>
40284
40285         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
40286         size_t to avoid warning.
40287
40288 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
40289
40290         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
40291
40292 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
40293
40294         * gnat_rm.texi: Remove RCS version number.
40295
40296         * ada-tree.h (union lang_tree_node): Add chain_next option.
40297
40298 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
40299
40300         * Make-lang.in (ada.install-info, ada.install-common,
40301         ada.uninstall): Prepend $(DESTDIR) to the destination
40302         directory in all (un)installation commands.
40303         * Makefile.in (install-gnatlib, install-rts): Ditto.
40304
40305 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
40306
40307         * gnat_rm.texi, gnat_ug.texi: Use @copying.
40308         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40309         gnat_ug_wnt.texi: Regenerate.
40310
40311 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
40312
40313         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
40314         only.
40315         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
40316         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
40317         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
40318         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
40319         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
40320         $(srcdir)/doc/include/gcc-common.texi.
40321
40322 2002-12-15   Geert Bosch  <bosch@gnat.com>
40323
40324         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
40325
40326 2002-12-14   Geert Bosch  <bosch@gnat.com>
40327
40328         PR ada/5690
40329         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
40330         case of a body created for a Renaming_As_Body, on which
40331         conformance checks are not performed.
40332
40333 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
40334
40335         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
40336         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
40337         not already included.
40338         * Make-lang.in: Update dependencies.
40339
40340 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
40341         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
40342         solution to buffer overflow bug on GNU/Linux.
40343
40344 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
40345
40346         PR ada/5856
40347         PR ada/6919
40348         * bindgen.adb: Remove all references to Public_Version.
40349         * comperr.adb: Remove all references to Public_Version and
40350         GNATPRO_Version; correct bug reporting instructions.
40351         * comperr.ads: Change to match bug box.
40352         * gnatvsn.ads: Remove all references to Public version and
40353         GNATPRO version.
40354
40355 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
40356
40357         PR ada/6919
40358         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
40359         GNU/Linux.
40360
40361         PR ada/6558
40362         * config-lang.in: Remove diff_excludes.
40363
40364 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
40365
40366         PR ada/8358
40367         * trans.c (gnu_pending_elaboration_lists): New GC root.
40368         (build_unit_elab): Use..
40369
40370 2002-10-30   Geert Bosch  <bosch@gnat.com>
40371
40372         PR ada/6558
40373         * misc.c : Include optabs.h
40374
40375         * Make-lang.in (misc.o): Add dependency on optabs.h
40376
40377 2002-10-29   Geert Bosch  <bosch@gnat.com>
40378
40379         PR ada/6558
40380         * Make-lang.in (gnatbind): Depend on CONFIG_H
40381
40382 2002-10-29  Geert bosch  <bosch@gnat.com>
40383
40384         PR ada/6558
40385         * misc.c: Unrevert misc.c (1.13)
40386
40387 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
40388
40389         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
40390         maintainership comments.
40391
40392 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
40393
40394         PR ada/5904
40395         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
40396         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
40397         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
40398         7staprop.adb: Correct statements in comments about
40399         maintainership of GNAT.
40400
40401         PR ada/5904
40402         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
40403         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
40404         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
40405         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
40406         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
40407         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
40408         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
40409         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
40410         comments about maintainership of GNAT.
40411
40412         PR ada/6919 (forward port of patch for PR ada/5904)
40413         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
40414         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
40415         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
40416         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
40417         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
40418         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
40419         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
40420         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
40421         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
40422         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
40423         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
40424         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
40425         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
40426         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
40427         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
40428         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
40429         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
40430         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
40431         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
40432         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
40433         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
40434         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
40435         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
40436         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
40437         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
40438         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
40439         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
40440         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
40441         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
40442         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
40443         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
40444         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
40445         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
40446         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
40447         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
40448         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
40449         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
40450         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
40451         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
40452         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
40453         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
40454         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
40455         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
40456         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
40457         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
40458         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
40459         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
40460         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
40461         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
40462         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
40463         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
40464         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
40465         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
40466         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
40467         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
40468         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
40469         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
40470         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
40471         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
40472         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
40473         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
40474         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
40475         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
40476         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
40477         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
40478         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
40479         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
40480         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
40481         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
40482         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
40483         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
40484         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
40485         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
40486         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
40487         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
40488         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
40489         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
40490         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
40491         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
40492         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
40493         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
40494         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
40495         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
40496         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
40497         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
40498         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
40499         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
40500         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
40501         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
40502         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
40503         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
40504         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
40505         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
40506         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
40507         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
40508         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
40509         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
40510         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
40511         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
40512         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
40513         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
40514         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
40515         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
40516         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
40517         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
40518         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
40519         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
40520         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
40521         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
40522         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
40523         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
40524         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
40525         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
40526         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
40527         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
40528         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
40529         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
40530         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
40531         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
40532         par-endh.adb par-labl.adb par-load.adb par-prag.adb
40533         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
40534         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
40535         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
40536         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
40537         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
40538         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
40539         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
40540         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
40541         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
40542         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
40543         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
40544         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
40545         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
40546         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
40547         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
40548         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
40549         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
40550         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
40551         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
40552         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
40553         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
40554         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
40555         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
40556         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
40557         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
40558         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
40559         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
40560         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
40561         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
40562         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
40563         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
40564         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
40565         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
40566         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
40567         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
40568         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
40569         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
40570         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
40571         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
40572         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
40573         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
40574         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
40575         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
40576         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
40577         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
40578         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
40579         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
40580         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
40581         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
40582         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
40583         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
40584         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
40585         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
40586         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
40587         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
40588         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
40589         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
40590         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
40591         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
40592         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
40593         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
40594         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
40595         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
40596         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
40597         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
40598         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
40599         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
40600         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
40601         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
40602         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
40603         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
40604         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
40605         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
40606         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
40607         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
40608         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
40609         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
40610         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
40611         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
40612         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
40613         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
40614         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
40615         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
40616         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
40617         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
40618         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
40619         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
40620         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
40621         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
40622         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
40623         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
40624         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
40625         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
40626         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
40627         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
40628         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
40629         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
40630         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
40631         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
40632         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
40633         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
40634         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
40635         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
40636         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
40637         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
40638         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
40639         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
40640         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
40641         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
40642         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
40643         stringt.ads stringt.h style.adb style.ads stylesw.adb
40644         stylesw.ads switch.adb switch.ads sysdep.c system.ads
40645         table.adb table.ads targparm.adb targparm.ads targtyps.c
40646         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
40647         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
40648         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
40649         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
40650         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
40651         usage.ads utils.c utils2.c validsw.adb validsw.ads
40652         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
40653         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
40654         xtreeprs.adb: Correct statements in comments about maintainership
40655         of GNAT.
40656
40657 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
40658
40659         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
40660         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
40661         * gnatvsn.ads: Gnat_Version_String is now a function.
40662         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
40663         copy the C version_string into a String and return it.
40664         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
40665         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
40666         Remove pragma Ident (Gnat_Version_String).  If this was the
40667         sole use of package Gnatvsn, remove the with statement too.
40668         * gnat1drv.adb: Tweak -gnatv output.
40669
40670 2002-09-17  Richard Henderson  <rth@redhat.com>
40671
40672         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
40673         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
40674         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
40675         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
40676         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
40677         and real_2expN instead of a loop.
40678         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
40679         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
40680
40681 2002-08-25  Andre Leis  <a.leis@gmx.net>
40682             David Billinghurst  <David.Billinghurst@riotinto.com>
40683
40684         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
40685
40686 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40687
40688         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
40689         Remove $(CONFIG_H) dependency.
40690
40691 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
40692
40693         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
40694
40695 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
40696
40697         * adadecode.c (ada_demangle): Use xstrdup in lieu of
40698         xmalloc/strcpy.
40699         * misc.c (gnat_decode_option): Likewise.
40700
40701 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
40702
40703         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
40704         function approach did not work well because of a side effect (the
40705         function call could reallocate the table which was being indexed
40706         using its result). Fixes ada/4851. [RESURRECTED]
40707
40708 2002-07-01  Roger Sayle  <roger@eyesopen.com>
40709
40710         * ada/utils.c (builtin_function): Accept an additional parameter.
40711
40712 2002-06-28  Andreas Jaeger  <aj@suse.de>
40713
40714         PR ada/7144
40715         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
40716         <adi@thur.de>.
40717
40718 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
40719
40720         * Makefile.in (SHELL): Set to @SHELL@.
40721
40722 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
40723
40724         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
40725         array size calculation.
40726
40727 2002-06-04  Andreas Jaeger  <aj@suse.de>
40728
40729         * Make-lang.in (gnatbind): Readd rule that has been lost in last
40730         patch.
40731
40732 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
40733
40734         Merge from pch-branch:
40735
40736         * config-lang.in (gtfiles): Add ada-tree.h.
40737         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
40738         (SET_TYPE_MODULUS): New.
40739         (SET_TYPE_INDEX): New.
40740         (SET_TYPE_DIGITS_VALUE): New.
40741         (SET_TYPE_RM_SIZE): New.
40742         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
40743         (SET_TYPE_ADA_SIZE): New.
40744         (SET_TYPE_ACTUAL_BOUNDS): New.
40745         (SET_DECL_CONST_CORRESPONDING_VAR): New.
40746         (SET_DECL_ORIGINAL_FIELD): New.
40747         (TREE_LOOP_ID): Correct typo.
40748         * decl.c: Use new macros.
40749         * utils.c: Include debug.h, use new macros.
40750         * utils2.c: Use new macros.
40751
40752         * ada-tree.h: Update all macros for new tree description.
40753         (struct tree_loop_id): New.
40754         (union lang_tree_node): New.
40755         (struct lang_decl): New.
40756         (struct lang_type): New.
40757         * misc.c (gnat_mark_tree): Delete.
40758         (LANG_HOOKS_MARK_TREE): Delete.
40759         * trans.c (tree_transform): No longer any need to cast
40760         for TREE_LOOP_ID.
40761
40762         * utils.c (struct language_function): New dummy structure.
40763
40764         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
40765         (misc.o): Likewise.
40766         (utils.o): Likewise; also gtype-ada.h.
40767         * Make-lang.in (gnat1): Add dependency on s-gtype.
40768         (gnatbind): Add dependency on $(CONFIG_H).
40769         * utils.c: Correct last #include.
40770         (stuct e_stack): Remove unnecessary 'static'.
40771         (mark_e_stack): Remove unused prototype.
40772
40773         * scn-nlit.adb: Remove whitespace after version number to
40774         keep lines under 80 chars.
40775         * snames.adb: Likewise.
40776         * treepr.ads: Likewise.
40777
40778         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
40779         (misc.o): Likewise.
40780         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
40781         * config-lang.in (gtfiles): New.
40782         * decl.c: Use gengtype for roots.
40783         * gigi.h: Use gengtype for roots.
40784         * trans.c: Use gengtype for roots.
40785         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
40786
40787 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
40788
40789         * misc.c (gnat_init): Adjust setting of internal_error_function.
40790
40791 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
40792
40793         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
40794         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40795         gnat_ug_wnt.texi: Regenerate.
40796
40797 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
40798
40799         * 5ntaprop.adb (with System.OS_Primitives): Remove.
40800
40801         * cstreams.c (max_path_len): Move from here ...
40802         * adaint.c (__gnat_max_path_len): ... to here.
40803         * adaint.c (__gnat_max_path_len): Declare.
40804         * g-dirope.adb (Max_Path): Adjust.
40805         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
40806         * i-cstrea.ads (max_path_len): Adjust.
40807         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
40808         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
40809
40810         * Makefile.in, Make-lang.in: Documentation is now built in
40811         Make-lang.in.  Store Info and generated Texinfo files in the
40812         source directory.
40813         * gnat_ug.texi: Remove CVS keywords, correct version number.
40814         Set file name correctly.
40815
40816         * gnat_ug_*.texi: Add.
40817         * .cvsignore: Ignore generated Texinfo files.
40818
40819 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
40820
40821         * ada.h: Add MI guard macro.
40822         (SUBTYPE): Define constants with an anonymous enum, not static
40823         const variables.
40824         (IN): Cast constants to appropriate type before use.
40825
40826 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
40827
40828         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
40829         (experimental)".
40830
40831 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40832
40833         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
40834         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
40835         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
40836         (ALL_ADA_CFLAGS): Likewise.
40837         (ADA_INCLUDES): Likewise.
40838         Adapt for new working dir.
40839         (GNATBIND): Use Makefile.in version.
40840         (.SUFFIXES): Copy from Makefile.in.
40841         (ada-warn): Define.
40842         (.adb.o, .ads.o): Copy from Makefile.in.
40843         Added $(OUTPUT_OPTION).
40844         (GNAT1_C_OBJS): Moved from Makefile.in.
40845         Prefix with ada subdir.
40846         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
40847         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
40848         Adapt for new working dir.
40849         (EXTRA_GNATBIND_OBJS): Likewise.
40850         (ADA_BACKEND): Moved from Makefile.in.
40851         Renamed to avoid conflict with global BACKEND.
40852         Use that one.
40853         (TARGET_ADA_SRCS): Moved from Makefile.in.
40854         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
40855         Use ADA_BACKEND.
40856         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
40857         (ada_extra_files): Moved from Makefile.in.
40858         Prefix with ada subdir.
40859         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
40860         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
40861         (ada/nmake.ads): Likewise.
40862         (update-sources): Moved from Makefile.in.
40863         Prefix with ada subdir.
40864         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
40865         (ADA_TREE_H): Likewise.
40866         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
40867         (ada/memtrack.o): Likewise.
40868         (ada/adadecode.o): Likewise.
40869         Update dependencies.
40870         (ada/adaint.o): New.
40871         (ada/argv.o): Moved from Makefile.in.
40872         Prefix with ada subdir.
40873         Update dependencies.
40874         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
40875         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
40876         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
40877         Prefix with ada subdir.
40878         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
40879         (GNAT DEPENDENCIES): Regenerate.
40880         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
40881         toplevel Makefile.in.
40882         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
40883         (TARGET_ADA_SRCS): Removed.
40884         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
40885         (GNATBIND_OBJS): Likewise.
40886         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
40887         (BACKEND): Removed.
40888         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
40889         (TREE_H): Likewise.
40890         (ada_extra_files): Likewise.
40891         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
40892         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
40893         (update-sources): Likewise.
40894         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
40895         (ADA_TREE_H): Likewise.
40896         (adadecoce.o): Likewise.
40897         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
40898         (GNAT DEPENDENCIES): Likewise.
40899
40900 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40901
40902         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
40903         * Makefile.in: Likewise.
40904
40905 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40906
40907         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
40908         Restore $(CONFIG_H) and prefix.o dependencies.
40909         (ada.stage[1-4]): Depend on stage?-start.
40910
40911         * Makefile.in (b_gnatb.c): Depend on interfac.o.
40912
40913 2002-05-02  Jim Wilson  <wilson@redhat.com>
40914
40915         * utils.c (finish_record_type): Change record_size to record_type.
40916
40917 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
40918
40919         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
40920         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
40921         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
40922
40923 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
40924
40925         * misc.c (gnat_parse_file): Update.
40926
40927 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
40928
40929         * misc.c (gnat_init): Don't set lang_attribute_common.
40930
40931 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
40932
40933         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
40934
40935 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
40936
40937         * gnat_ug.texi: New file.
40938
40939         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
40940         instead of gfdl.texi
40941
40942         * xgnatug.adb, ug_words: New files.
40943
40944         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
40945         gnat_rm and gnat-style manuals.
40946
40947 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
40948
40949         * gigi.h (incomplete_type_error): Remove.
40950         * utils.c (incomplete_type_error): Remove.
40951
40952 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
40953
40954         * trans.c (tree_transform): Add has_scope argument to
40955         expand_start_stmt_expr.
40956
40957 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
40958
40959         * gigi.h (truthvalue_conversion): Rename.
40960         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
40961         * trans.c (tree_transform): Update.
40962         * utils2.c (truthvalue_conversion): Rename, update.
40963         (build_binary_op, build_unary_op): Update.
40964
40965 2002-04-04  Laurent Guerby  <guerby@acm.org>
40966
40967         * make.adb: Implement -margs, remove restriction about file name placement.
40968         * makeusg.adb: Documentation update.
40969         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
40970         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
40971
40972 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
40973
40974         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
40975         (builtin_function): Similarly.
40976
40977 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
40978
40979         * decl.c (gnat_to_gnu_entity): Update.
40980         * gigi.h (mark_addressable): Rename.
40981         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
40982         * trans.c (tree_transform): Update.
40983         * utils.c (create_var_decl): Update.
40984         * util2.c (build_binary_op, build_unary_op,
40985         fill_vms_descriptor): Update.
40986         (mark_addressable): Rename, update.
40987
40988 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
40989
40990         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
40991         Rename.
40992         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
40993         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
40994         * trans.c (tree_transform, convert_with_check): Update.
40995         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
40996         Rename.
40997
40998 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
40999
41000         * gigi.h (finish_incomplete_decl): Rename.
41001         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
41002         * utils.c (gnat_init_decl_processing): Don't set hook.
41003         (finish_incomplete_decl): Rename.
41004
41005 2002-03-29  Andreas Schwab  <schwab@suse.de>
41006
41007         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
41008         directory.
41009
41010 2001-03-28  Robert Dewar  <dewar@gnat.com>
41011
41012         * checks.ads:
41013         (Remove_Checks): New procedure
41014
41015         * checks.adb:
41016         (Remove_Checks): New procedure
41017
41018         * exp_util.adb:
41019         Use new Duplicate_Subexpr functions
41020         (Duplicate_Subexpr_No_Checks): New procedure
41021         (Duplicate_Subexpr_No_Checks_Orig): New procedure
41022         (Duplicate_Subexpr): Restore original form (checks duplicated)
41023         (Duplicate_Subexpr): Call Remove_Checks
41024
41025         * exp_util.ads:
41026         (Duplicate_Subexpr_No_Checks): New procedure
41027         (Duplicate_Subexpr_No_Checks_Orig): New procedure
41028         Add 2002 to copyright notice
41029
41030         * sem_util.adb: Use new Duplicate_Subexpr functions
41031
41032         * sem_eval.adb:
41033         (Eval_Indexed_Component): This is the place to call
41034         Constant_Array_Ref and to replace the value. We simply merge
41035         the code of this function in here, since it is now no longer
41036         used elsewhere. This fixes the problem of the back end not
41037         realizing we were clever enough to see that this was
41038         constant.
41039         (Expr_Val): Remove call to Constant_Array_Ref
41040         (Expr_Rep_Val): Remove call to Constant_Array_Ref
41041         Minor reformatting
41042         (Constant_Array_Ref): Deal with string literals (patch
41043         suggested by Zack Weinberg on the gcc list)
41044
41045 2001-03-28  Ed Schonberg  <schonber@gnat.com>
41046
41047         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
41048         Duplicate_Subexpr_Move_Checks.
41049
41050         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
41051         Duplicate_Subexpr_Move_Checks.
41052
41053         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
41054         value of array exists before retrieving it (it may a private
41055         protected component in a function).
41056
41057 2002-03-28   Geert Bosch  <bosch@gnat.com>
41058
41059         * prj-pp.adb : New file.
41060
41061         * prj-pp.ads : New file.
41062
41063 2002-03-28  Andreas Jaeger  <aj@suse.de>
41064
41065         * Makefile.in (stamp-sdefault): Fix path for Makefile.
41066
41067 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
41068
41069         * misc.c (gnat_expand_expr): Move prototype.
41070
41071 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
41072
41073         * misc.c (insert_default_attributes): Remove.
41074
41075 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
41076
41077         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
41078         (gnat_init): Don't set hook.
41079         (gnat_expand_expr): Fix prototype.
41080
41081 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
41082
41083         * misc.c (ggc_p): Remove.
41084
41085 2002-03-27  Geert Bosch  <bosch@gnat.com>
41086
41087         * prj-makr.ads, prj-makr.adb : New files.
41088
41089 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
41090
41091         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
41092         (lang_mark_tree): Make static, rename.
41093
41094 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
41095
41096         * misc.c (maybe_build_cleanup): Remove.
41097
41098 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
41099
41100         * gigi.h (yyparse): Remove.
41101
41102 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
41103
41104         From Ben Brosgol  <brosgol@gnat.com>
41105         * gnat_rm.texi: Sync with ACT version.
41106
41107 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
41108
41109         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
41110         (gnat_init): Remove old hook.
41111
41112 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
41113
41114         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
41115         (yyparse): Rename gnat_parse_file.
41116
41117 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
41118
41119         Delete all lines containing "$Revision:".
41120         * xeinfo.adb: Don't look for revision numbers.
41121         * xnmake.adb: Likewise.
41122         * xsinfo.adb: Likewise.
41123         * xsnames.adb: Likewise.
41124         * xtreeprs.adb: Likewise.
41125
41126 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
41127
41128         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
41129         gnat_tree_code_name): Delete.
41130         (tree_code_type, tree_code_length, tree_code_name): Define.
41131         (gnat_init): Don't try to copy into the various tree_code
41132         arrays.
41133
41134 2002-03-11  Richard Henderson  <rth@redhat.com>
41135
41136         * Makefile.in (.NOTPARALLEL): Add fake tag.
41137
41138 2002-03-07  Geert Bosch  <bosch@gnat.com>
41139
41140         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
41141         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
41142         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
41143         switch-m.adb, switch-m.ads : New files.
41144
41145 2002-03-07  Geert Bosch  <bosch@gnat.com>
41146
41147         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
41148         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
41149         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
41150         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
41151         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
41152         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
41153         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
41154         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
41155         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
41156         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
41157         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
41158         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
41159         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
41160         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
41161         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
41162         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
41163         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
41164         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
41165         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
41166         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
41167         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
41168         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
41169         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
41170         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
41171         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
41172         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
41173         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
41174         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
41175         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
41176         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
41177         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
41178         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
41179         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
41180         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
41181         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
41182         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
41183         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
41184         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
41185         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
41186         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
41187         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
41188         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
41189         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
41190         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
41191         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
41192         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
41193         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
41194         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
41195         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
41196         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
41197         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
41198         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
41199         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
41200         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
41201         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
41202         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
41203         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
41204         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
41205         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
41206         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
41207         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
41208         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
41209         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
41210         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
41211         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
41212         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
41213         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
41214         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
41215         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
41216         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
41217         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
41218         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
41219         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
41220         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
41221         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
41222         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
41223         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
41224         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
41225         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
41226         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
41227         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
41228         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
41229         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
41230         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
41231         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
41232         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
41233         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
41234         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
41235         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
41236         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
41237         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
41238         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
41239         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
41240         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
41241         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
41242         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
41243         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
41244
41245         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
41246         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
41247         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
41248         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
41249
41250         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
41251         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
41252
41253         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
41254         to mdll-fil.ad[bs] and mdll-util.ad[bs]
41255
41256         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
41257         from mdllfile.ad[bs] and mdlltool.ad[bs]
41258
41259 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
41260
41261         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
41262         lieu of explicit sizeof/sizeof.
41263
41264 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
41265
41266         * misc.c (copy_lang_decl): Remove.
41267
41268 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
41269
41270         * misc.c: Delete traditional-mode-related code copied from the
41271         C front end but not used, or used only to permit the compiler
41272         to link.
41273
41274 2002-02-07  Richard Henderson  <rth@redhat.com>
41275
41276         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
41277         * adaint.h (__gnat_to_gm_time): Update prototype.
41278
41279 2002-01-30  Richard Henderson  <rth@redhat.com>
41280
41281         * trans.c (tree_transform) [N_Loop_Statement]: Use
41282         expand_exit_loop_top_cond.
41283
41284 2001-12-23  Richard Henderson  <rth@redhat.com>
41285
41286         * utils.c (end_subprog_body): Push GC context around
41287         rest_of_compilation for nested functions.
41288
41289 2001-12-23  Richard Henderson  <rth@redhat.com>
41290
41291         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
41292
41293 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
41294
41295         * gnat-style.texi (Declarations and Types): Remove ancient style
41296         rule which was mandated by code generation issues.
41297
41298         * gnat-style.texi (header): Add @dircategory, @direntry.
41299         (title page): Remove date.
41300         (general) Add @./@: where approriate, and two spaces after the
41301         full stop at the end of a sentence.  Use @samp markup when
41302         referring concrete lexical entities (keywords, attribute names
41303         etc.), and @syntax for ARM grammar elements. Use @r for English
41304         text in comments.  Use @emph for emphasis.  Change "if-statements"
41305         etc. to "if statements" (without @samp). Break long lines.  Make
41306         casing of section names consistent.
41307         (Identifiers): Use @samp markup for variable names.
41308         (Comments): Use @samp markup for comment characters. Line-end
41309         comments may follow any Ada code, not just statements.  Fix
41310         misspelling of "Integer" as "integer".
41311         (Loop statements): Do not use variable name "I", use "J".
41312         (Subprogram Declarations): Document alignment.
41313         (Subprogram Bodies, Block statements): Document empty line before
41314         "begin".
41315
41316 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
41317
41318         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
41319         function approach did not work well because of a side effect (the
41320         function call could reallocate the table which was being indexed
41321         using its result). Fixes ada/4851.
41322
41323 2001-12-19  Robert Dewar  <dewar@gnat.com>
41324
41325         * bindgen.adb: Minor reformatting
41326
41327         * cstand.adb: Minor reformatting
41328
41329         * fmap.adb: Minor reformatting
41330         Change name from Add for Add_To_File_Map (Add is much too generic)
41331         Change Path_Name_Of to Mapped_Path_Name
41332         Change File_Name_Of to Mapped_File_Name
41333         Fix copyright dates in header
41334
41335         * fmap.ads:
41336         Change name from Add for Add_To_File_Map (Add is much too generic)
41337         Change Path_Name_Of to Mapped_Path_Name
41338         Change File_Name_Of to Mapped_File_Name
41339         Fix copyright dates in header
41340
41341         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
41342         Add use clause for Fmap.
41343
41344         * make.adb: Minor reformatting
41345
41346         * osint.adb: Minor reformatting.  Change of names in Fmap.
41347         Add use clause for Fmap.
41348
41349         * prj-env.adb: Minor reformatting
41350
41351         * prj-env.ads: Minor reformatting
41352
41353         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
41354         error found (there were odd exceptions to this general rule in
41355         -gnatec/-gnatem processing)
41356
41357 2001-12-19  Olivier Hainque  <hainque@gnat.com>
41358
41359         * raise.c (__gnat_eh_personality): Exception handling personality
41360         routine for Ada.  Still in rough state, inspired from the C++ version
41361         and still containing a bunch of debugging artifacts.
41362         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
41363         inspired from the C++ library.
41364
41365         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
41366         exception handling integration.
41367
41368 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
41369
41370         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
41371         (HIE_SOURCES): Add s-secsta.ad{s,b}.
41372         (HIE_OBJS): Add s-fat*.o
41373         (RAVEN_SOURCES): Remove files that are no longer required. Add
41374         interrupt handling files.
41375         (RAVEN_MOD): Removed, no longer needed.
41376
41377 2001-12-19  Robert Dewar  <dewar@gnat.com>
41378
41379         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
41380         Add 2001 to copyright date
41381
41382         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
41383         need to force universal inlining for these cases.
41384
41385 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
41386
41387         * s-taprob.adb: Minor clean ups so that this unit can be used in
41388         Ravenscar HI.
41389
41390         * exp_ch7.adb: Allow use of secondary stack in HI mode.
41391         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
41392
41393 2001-12-19  Vincent Celier  <celier@gnat.com>
41394
41395         * prj-tree.ads (Project_Node_Record): Add comments for components
41396         Pkg_Id and Case_Insensitive.
41397
41398 2001-12-19  Pascal Obry  <obry@gnat.com>
41399
41400         * g-socket.adb: Minor reformatting. Found while reading code.
41401
41402 2001-12-19  Robert Dewar  <dewar@gnat.com>
41403
41404         * prj-tree.ads: Minor reformatting
41405
41406 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
41407
41408         * config-lang.in (diff_excludes): Remove.
41409
41410 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41411
41412         * sem_res.adb (Resolve_Selected_Component): do not generate a
41413         discriminant check if the selected component is a component of
41414         the argument of an initialization procedure.
41415
41416         * trans.c (tree_transform, case of arithmetic operators): If result
41417         type is private, the gnu_type is the base type of the full view,
41418         given that the full view itself may be a subtype.
41419
41420 2001-12-17  Robert Dewar  <dewar@gnat.com>
41421
41422         * sem_res.adb: Minor reformatting
41423
41424         * trans.c (tree_transform, case N_Real_Literal): Add missing third
41425         parameter in call to Machine (unknown horrible effects from this
41426         omission).
41427
41428         * urealp.h: Add definition of Round_Even for call to Machine
41429         Add third parameter for Machine
41430
41431 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41432
41433         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
41434         predefined units in No_Run_Time mode.
41435
41436 2001-12-17  Richard Kenner  <kenner@gnat.com>
41437
41438         * misc.c (insn-codes.h): Now include.
41439
41440 2001-12-17  Olivier Hainque  <hainque@gnat.com>
41441
41442         * a-except.adb: Preparation work for future integration of the GCC 3
41443         exception handling mechanism
41444         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
41445         to factorize previous code sequences and make them externally callable,
41446         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
41447         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
41448         Use the new notification routines.
41449
41450 2001-12-17  Emmanuel Briot  <briot@gnat.com>
41451
41452         * prj-tree.ads (First_Choice_Of): Document the when others case
41453
41454 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
41455
41456         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
41457         HI-E mode, in order to support Ravenscar profile properly.
41458
41459         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
41460         mode on 32 bits targets.
41461
41462 2001-12-17  Vincent Celier  <celier@gnat.com>
41463
41464         * fmap.adb: Initial version.
41465
41466         * fmap.ads: Initial version.
41467
41468         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
41469         If search is successfully done, add to mapping.
41470
41471         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
41472
41473         * make.adb:
41474         (Gnatmake): Add new local variable Mapping_File_Name.
41475          Create mapping file when using project file(s).
41476          Delete mapping file before exiting.
41477
41478         * opt.ads (Mapping_File_Name): New variable
41479
41480         * osint.adb (Find_File): Use path name found in mapping, if any.
41481
41482         * prj-env.adb (Create_Mapping_File): New procedure
41483
41484         * prj-env.ads (Create_Mapping_File): New procedure.
41485
41486         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
41487         (Mapping_File)
41488
41489         * usage.adb: Add entry for new switch -gnatem.
41490
41491         * Makefile.in: Add dependencies for fmap.o.
41492
41493 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41494
41495         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
41496         is a package instantiation rewritten as a package body.
41497         (Install_Withed_Unit): Undo previous change, now redundant.
41498
41499 2001-12-17  Gary Dismuke  <dismukes@gnat.com>
41500
41501         * layout.adb:
41502         (Compute_Length): Move conversion to Unsigned to callers.
41503         (Get_Max_Size): Convert Len expression to Unsigned after calls to
41504         Compute_Length and Determine_Range.
41505         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
41506         Compute_Length and Determine_Range.
41507         Above changes fix problem with length computation for supernull arrays
41508         where Max (Len, 0) wasn't getting applied due to the Unsigned
41509         conversion used by Compute_Length.
41510
41511 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
41512
41513         * rtsfind.ads:
41514         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
41515          System.Secondary_Stack.
41516         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
41517          in HI-E mode.
41518         Remove unused entity RE_Exception_Data.
41519
41520         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
41521
41522         * rident.ads (No_Secondary_Stack): New restriction.
41523
41524 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
41525
41526         * gnat_rm.texi: Fix minor typos. Found while reading the section
41527         regarding "Bit_Order Clauses" that was sent to a customer.
41528         Very interesting documentation!
41529
41530 2001-12-17  Robert Dewar  <dewar@gnat.com>
41531
41532         * sem_case.adb (Choice_Image): Avoid creating improper character
41533         literal names by using the routine Set_Character_Literal_Name. This
41534         fixes bombs in certain error message cases.
41535
41536 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
41537
41538         * a-reatim.adb: Minor reformatting.
41539
41540 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41541
41542         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
41543         case where the formal is an extension of another formal in the current
41544         unit or in a parent generic unit.
41545
41546 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
41547
41548         * s-tposen.adb: Update comments.  Minor reformatting.
41549         Minor code clean up.
41550
41551         * s-tarest.adb: Update comments.  Minor code reorganization.
41552
41553 2001-12-17  Gary Dismukes  <dismukes@gnat.com>
41554
41555         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
41556         when Java_VM.
41557
41558 2001-12-17  Robert Dewa  <dewar@gnat.com>
41559
41560         * exp_attr.adb: Minor reformatting
41561
41562 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41563
41564         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
41565         derivations nested within a child unit: verify that the parent
41566         type is declared in an outer scope.
41567
41568 2001-12-17  Robert Dewar  <dewar@gnat.com>
41569
41570         * sem_ch12.adb: Minor reformatting
41571
41572 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41573
41574         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
41575         warning if current unit is a predefined one, from which bodies may
41576         have been deleted.
41577
41578 2001-12-17  Robert Dewar  <dewar@gnat.com>
41579
41580         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
41581         Fix header format. Add 2001 to copyright date.
41582
41583         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
41584         which caused CE during compilation if checks were enabled.
41585
41586 2001-12-17  Vincent Celier  <celier@gnat.com>
41587
41588         * make.adb:
41589         (Switches_Of): New function
41590         (Test_If_Relative_Path): New procedure
41591         (Add_Switches): Use new function Switches_Of
41592         (Collect_Arguments_And_Compile): Use new function Switches_Of.
41593         When using a project file, test if there are any relative
41594         search path. Fail if there are any.
41595         (Gnatmake): Only add switches for the primary directory when not using
41596         a project file. When using a project file, change directory to the
41597         object directory of the main project file. When using a project file,
41598         test if there are any relative search path. Fail if there are any.
41599         When using a project file, fail if specified executable is relative
41600         path with directory information, and prepend executable, if not
41601         specified as an absolute path, with the exec directory.  Make sure
41602         that only one -o switch is transmitted to the linker.
41603
41604         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
41605
41606         * prj-nmsc.adb:
41607         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
41608         when using a non standard naming scheme.
41609         (Check_Ada_Naming_Scheme): Make sure that error messages
41610         do not raise exceptions.
41611         (Is_Illegal_Append): Return True if there is no dot in the suffix.
41612         (Language_Independent_Check): Check the exec directory.
41613
41614         * prj.adb (Project_Empty): Add new component Exec_Directory
41615
41616         * prj.ads:
41617         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
41618         (Project_Data): Add component Exec_Directory
41619
41620         * snames.adb: Updated to match snames.ads revision 1.215
41621
41622         * snames.ads: Added Exec_Dir
41623
41624 2001-12-17  Robert Dewar  <dewar@gnat.com>
41625
41626         * make.adb: Minor reformatting
41627
41628         * prj-nmsc.adb: Minor reformatting
41629
41630         * snames.adb: Updated to match snames.ads
41631
41632         * snames.ads: Alphebetize entries for project file
41633
41634 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41635
41636         * trans.c (process_freeze_entity): Do nothing if the entity is a
41637         subprogram that was already elaborated.
41638
41639 2001-12-17  Richard Kenner  <kenner@gnat.com>
41640
41641         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
41642         and Esize if object is referenced via pointer.
41643
41644 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41645
41646         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
41647         is discrete before analyzing choices.
41648
41649 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
41650
41651         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
41652         containing the name of the Ada Main Program. This string is mainly
41653         intended for the debugger.
41654         (Gen_Output_File_C): Do the equivalent change when generating a C file.
41655
41656 2001-12-17  Robert Dewar  <dewar@gnat.com>
41657
41658         * ali.adb: Set new Dummy_Entry field in dependency entry
41659
41660         * ali.ads: Add Dummy_Entry field to source dependency table
41661
41662         * bcheck.adb (Check_Consistency): Ignore dummy D lines
41663
41664         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
41665
41666         * lib-writ.ads: Document dummy D lines for missing files.
41667
41668         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
41669
41670 2001-12-17  Robert Dewar  <dewar@gnat.com>
41671
41672         * ali.adb: Type reference does not reset current file.
41673
41674         * ali.adb: Recognize and scan renaming reference
41675
41676         * ali.ads: Add spec for storing renaming references.
41677
41678         * lib-xref.ads: Add documentation for handling of renaming references
41679
41680         * lib-xref.adb: Implement output of renaming reference.
41681
41682         * checks.adb:
41683         (Determine_Range): Document local variables
41684         (Determine_Range): Make sure Hbound is initialized. It looks as though
41685          there could be a real problem here with an uninitialized reference
41686          to Hbound, but no actual example of failure has been found.
41687
41688 2001-12-17  Laurent Pautet  <pautet@gnat.com>
41689
41690         * g-socket.ads:
41691         Fix comment of Shutdown_Socket and Close_Socket. These functions
41692         should not fail silently because if they are called twice, this
41693         probably means that there is a race condition in the user program.
41694         Anyway, this behaviour is consistent with the rest of this unit.
41695         When an error occurs, an exception is raised with the error message
41696         as exception message.
41697
41698 2001-12-17  Robert Dewar  <dewar@gnat.com>
41699
41700         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
41701         that it happens before modification of Sloc values for -gnatD.
41702
41703         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
41704         so that it happens before modification of Sloc values for -gnatD.
41705
41706         * switch.adb: Minor reformatting
41707
41708 2001-12-15  Richard Henderson  <rth@redhat.com>
41709
41710         * sem_ch7.adb: Wrap comment.
41711
41712 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
41713
41714         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
41715         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
41716         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
41717         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
41718         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
41719         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
41720         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
41721         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
41722         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
41723         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
41724         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
41725         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
41726         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
41727         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
41728         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
41729         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
41730         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
41731         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
41732         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
41733         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
41734         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
41735         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
41736         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
41737         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
41738         spelling errors.
41739
41740 2001-12-14  Vincent Celier  <celier@gnat.com>
41741
41742         * osint.adb(Create_Debug_File): When an object file is specified,
41743         put the .dg file in the same directory as the object file.
41744
41745 2001-12-14  Robert Dewar  <dewar@gnat.com>
41746
41747         * osint.adb: Minor reformatting
41748
41749         * lib-xref.adb (Output_Instantiation): New procedure to generate
41750         instantiation references.
41751
41752         * lib-xref.ads: Add documentation of handling of generic references.
41753
41754         * ali.adb (Read_Instantiation_Ref): New procedure to read
41755         instantiation references
41756
41757         * ali.ads: Add spec for storing instantiation references
41758
41759         * bindusg.adb: Minor reformatting
41760
41761         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41762
41763         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41764
41765         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41766
41767         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41768
41769         * csets.ads:
41770         Fix header format
41771         Add 2001 to copyright date
41772         Add entry for Latin-5 (Cyrillic ISO-8859-5)
41773
41774 2001-12-14  Matt Gingell  <gingell@gnat.com>
41775
41776         * adaint.c: mktemp is a macro on Lynx and can not be used as an
41777         expression.
41778
41779 2001-12-14  Richard Kenner  <kenner@gnat.com>
41780
41781         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
41782         if operand is CONSTRUCTOR.
41783
41784 2001-12-14  Ed Schonberg  <schonber@gnat.com>
41785
41786         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
41787         before emiting check on right-hand side, so that exception information
41788         is correct.
41789
41790 2001-12-14  Richard Kenner  <kenner@gnat.com>
41791
41792         * utils.c (create_var_decl): Throw away initializing expression
41793         if just annotating types and non-constant.
41794
41795 2001-12-14  Vincent Celier  <celier@gnat.com>
41796
41797         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
41798         Default_Ada_...
41799
41800         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
41801         Remove functions.
41802         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
41803
41804         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
41805         Remove functions.
41806         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
41807
41808 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
41809
41810         * ChangeLog: Remove piece of diff output.
41811
41812 2001-12-14  Geert Bosch  <bosch@gnat.com>
41813
41814         * config-lang.in: Update copyright notice
41815
41816         * layout.adb: Remove commented out code.
41817
41818         * mdllfile.ads: Update copyright notice. Fix header format.
41819
41820         * sem_case.ads: Likewise.
41821
41822         * sem_ch3.adb: Minor reformatting.
41823
41824 2001-12-12  Geert Bosch  <bosch@gnat.com>
41825
41826         * freeze.ads: Update copyright date.
41827
41828         * g-comlin.ads: Minor reformatting.
41829
41830         * gnat-style.texi: Fix typo.
41831
41832 2001-12-12  Geert Bosch  <bosch@gnat.com>
41833
41834         *  einfo.h: Regenerate.
41835
41836 2001-12-12  Ed Schonberg  <schonber@gnat.com>
41837
41838         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
41839         on known node types, rather than untyped fields. Further cleanups.
41840
41841 2001-12-12  Robert Dewar  <dewar@gnat.com>
41842
41843         * sem_ch12.adb:
41844         (Save_Entity_Descendant): Minor comment update.
41845         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
41846          of an N_Attribute_Reference node. As per note below, this does not
41847         eliminate need for Associated_Node in attribute ref nodes.
41848         (Associated_Node): Documentation explicitly mentions attribute
41849         reference nodes, since this field is used in such nodes.
41850
41851         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
41852
41853 2001-12-12  Robert Dewar  <dewar@gnat.com>
41854
41855         * s-stalib.adb: Add more comments on with statements being needed
41856
41857         * par-ch12.adb: Minor reformatting
41858
41859         * prj-dect.ads: Fix copyright header
41860
41861         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
41862         inputs fit in 32 bits, but the result still overflows.
41863
41864         * s-fatgen.ads: Minor comment improvement
41865
41866 2001-12-12  Ed Schonberg  <schonber@gnat.com>
41867
41868         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
41869         formal derived type, look for an inherited component from the full
41870         view of the parent, if any.
41871
41872 2001-12-12  Robert Dewar  <dewar@gnat.com>
41873
41874         * checks.ads (Apply_Alignment_Check): New procedure.
41875
41876         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
41877         ensure that the alignment of objects with address clauses is
41878         appropriate, and raise PE if not.
41879
41880         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
41881         Exp_Pakd.Known_Aligned_Enough
41882
41883         * mdllfile.ads: Minor reformatting
41884
41885         * mlib-fil.ads: Minor reformatting
41886
41887 2001-12-12  Ed Schonberg  <schonber@gnat.com>
41888
41889         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
41890         fix to any component reference if enclosing record has non-standard
41891         representation.
41892
41893 2001-12-12  Vincent Celier  <celier@gnat.com>
41894
41895         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
41896         Iteration
41897
41898 2001-12-12  Ed Schonberg  <schonber@gnat.com>
41899
41900         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
41901         sem_attr.
41902
41903 2001-12-12  Robert Dewar  <dewar@gnat.com>
41904
41905         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
41906
41907 2001-12-12  Emmanuel Briot  <briot@gnat.com>
41908
41909         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
41910         and it adds dependencies to system.io.
41911
41912 2001-12-12  Pascal Obry  <obry@gnat.com>
41913
41914         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
41915         variable name.
41916
41917 2001-12-11  Ed Schonberg  <schonber@gnat.com>
41918
41919         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
41920         that is the parent of other generics, the instance body replaces the
41921         instance node.  Retrieve the instance of the spec, which is the one
41922         that is visible in clients and within the body.
41923
41924 2001-12-11  Vincent Celier  <celier@gnat.com>
41925
41926         * gnatmain.adb: Initial version.
41927
41928         * gnatmain.ads: Initial version.
41929
41930         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
41931
41932         * snames.adb: Updated to match snames.ads.
41933
41934         * snames.ads: Added Gnatstub.
41935
41936 2001-12-11  Vincent Celier  <celier@gnat.com>
41937
41938         * prj-attr.adb (Initialization_Data): Change name from
41939         Initialisation_Data.
41940
41941 2001-12-11  Emmanuel Briot  <briot@gnat.com>
41942
41943         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
41944         + and * applied to backslashed expressions like \r.
41945
41946 2001-12-11  Vasiliy Fofanov  <fofanov@gnat.com>
41947
41948         * g-os_lib.ads: String_List type added, Argument_List type is now
41949         subtype of String_List.
41950
41951 2001-12-11  Robert Dewar  <dewar@gnat.com>
41952
41953         * g-os_lib.ads: Change copyright to FSF
41954         Add comments for String_List type
41955
41956 2001-12-11  Vincent Celier  <celier@gnat.com>
41957
41958         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
41959         string to the buffer).
41960
41961 2001-12-11  Ed Schonberg  <schonber@gnat.com>
41962
41963         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
41964         sem_attr.
41965
41966         * sem_attr.adb: Simplify previous fix for Address.
41967         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
41968         to avoid anomalies where the bound of the type appears to raise
41969         constraint error.
41970
41971 2001-12-11  Robert Dewar  <dewar@gnat.com>
41972
41973         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
41974         handled.
41975
41976 2001-12-11  Ed Schonber   <schonber@gnat.com>
41977
41978         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
41979         renamed unit before checking for recursive instantiations.
41980
41981 2001-12-11  Emmanuel Briot  <briot@gnat.com>
41982
41983         * prj.ads: Add comments for some of the fields.
41984
41985 2001-12-11  Robert Dewar  <dewar@gnat.com>
41986
41987         * lib-xref.adb (Output_Refs): Don't output type references outside
41988         the main unit if they are not otherwise referenced.
41989
41990 2001-12-11  Ed Schonberg  <schonber@gnat.com>
41991
41992         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
41993         code and diagnose additional illegal uses
41994
41995         * sem_util.adb (Is_Object_Reference): An indexed component is an
41996         object only if the prefix is.
41997
41998 2001-12-11  Vincent Celier  <celier@gnat.com>
41999
42000         * g-diopit.adb: Initial version.
42001
42002         * g-diopit.ads: Initial version.
42003
42004         * g-dirope.adb:
42005         (Expand_Path): Avoid use of Unbounded_String
42006         (Find, Wildcard_Iterator): Moved to child package Iteration
42007
42008         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
42009
42010 2001-12-11  Robert Dewar  <dewar@gnat.com>
42011
42012         * sem_attr.adb: Minor reformatting
42013
42014 2001-12-11  Ed Schonberg  <schonber@gnat.com>
42015
42016         * sem_ch3.adb: Clarify some ???.
42017
42018 2001-12-11  Robert Dewar  <dewar@gnat.com>
42019
42020         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
42021         Exp_Pakd.Known_Aligned_Enough
42022
42023         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
42024         version is moved to Exp_Ch13.
42025
42026 2001-12-11  Robert Dewar  <dewar@gnat.com>
42027
42028         * einfo.ads: Minor reformatting
42029
42030         * exp_ch5.adb: Add comment for previous.change
42031
42032         * ali.adb: New interface for extended typeref stuff.
42033
42034         * ali.ads: New interface for typeref stuff.
42035
42036         * checks.adb (Apply_Alignment_Check): New procedure.
42037
42038         * debug.adb: Add -gnatdM for modified ALI output
42039
42040         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
42041
42042         * lib-xref.adb: Extend generation of <..> notation to cover
42043         subtype/object types. Note that this is a complete rewrite,
42044         getting rid of the very nasty quadratic algorithm previously
42045         used for derived type output.
42046
42047         * lib-xref.ads: Extend description of <..> notation to cover
42048         subtype/object types. Uses {..} for these other cases.
42049         Also use (..) for pointer types.
42050
42051         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
42052
42053         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
42054         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
42055
42056 2001-12-11  Vincent Celier  <celier@gnat.com>
42057
42058         * gnatcmd.adb:
42059         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
42060         Changed /BIND_ONLY to /ACTIONS=BIND
42061         Changed /LINK_ONLY to /ACTIONS=LINK
42062
42063 2001-12-11  Ed Schonberg  <schonber@gnat.com>
42064
42065         * sem_ch8.adb (Find_Selected_Component): improved search for a
42066         candidate package in case of error.
42067
42068         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
42069         chain back on scope stack before reinstalling use clauses.
42070
42071         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
42072         is enabled, do not kill the code for the condition, to preserve
42073         warning.
42074
42075 2001-12-11  Robert Dewar  <dewar@gnat.com>
42076
42077         * checks.adb (Insert_Valid_Check): Apply validity check to expression
42078         of conversion, not to result of conversion.
42079
42080 2001-12-11  Ed Schonberg  <schonber@gnat.com>
42081
42082         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
42083         before freezing parent. If the declarations are mutually recursive,
42084         an access to the current record type may be frozen before the
42085         derivation is complete.
42086
42087 2001-12-05  Vincent Celier  <celier@gnat.com>
42088
42089         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
42090         -c /COMPILE_ONLY, -l /LINK_ONLY
42091
42092         * opt.ads:
42093         (Bind_Only): New Flag
42094         (Link_Only): New flag
42095
42096         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
42097         and -l (Link_Only)
42098
42099         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
42100
42101         * make.adb:
42102         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
42103         (Gnatmake): Set the step flags. Only perform a step if the
42104         corresponding step flag is True.
42105         (Scan_Make_Arg): Reset the bind and link step flags when -u
42106         or -gnatc has been specified.
42107
42108 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42109
42110         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
42111         get bounds from right operand.
42112
42113         * sem_eval.adb: Minor reformatting
42114
42115         * exp_util.adb (Make_Literal_Range): use bound of literal rather
42116         than Index'First, its lower bound may be different from 1.
42117
42118         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
42119         and C48009J
42120
42121 2001-12-05  Vincent Celier  <celier@gnat.com>
42122
42123         * prj-nmsc.adb Minor reformatting
42124
42125         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
42126         set and libraries are not supported.
42127
42128 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42129
42130         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
42131         private view explicitly, so the back-end can treat as a global
42132         when appropriate.
42133
42134 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42135
42136         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
42137          unit, always replace instance node with new body, for ASIS use.
42138
42139 2001-12-05  Vincent Celier  <celier@gnat.com>
42140
42141         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
42142         libraries are not supported and both attributes Library_Name and
42143         Library_Dir are specified.
42144
42145         * prj-proc.adb (Expression): Set location of Result to location of
42146         first term.
42147
42148         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
42149         (prj-nmsc is now importing MLib.Tgt)
42150
42151         * prj-proc.adb: Put the change indicated above that was forgotten.
42152
42153 2001-12-05  Robert Dewar  <dewar@gnat.com>
42154
42155         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
42156
42157 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42158
42159         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
42160         constraint, introduce explicit subtype declaration and derive from it.
42161
42162         * sem_ch3.adb: Minor reformatting
42163
42164 2001-12-05  Robert Dewar  <dewar@gnat.com>
42165
42166         * checks.adb (Determine_Range): Increase cache size for checks.
42167         Minor reformatting
42168
42169         * exp_ch6.adb: Minor reformatting
42170         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
42171         a parameter whose root type is System.Address, since treating such
42172         subprograms as pure in the code generator is almost surely a mistake
42173         that will lead to unexpected results.
42174
42175         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
42176         change handling of conversions.
42177
42178         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
42179
42180 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42181
42182         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
42183         aggregate with static wrong size, attach generated Raise node to
42184         declaration.
42185
42186 2001-12-05  Robert Dewar  <dewar@gnat.com>
42187
42188         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
42189         Fixes compilation abandoned bomb in B24009B.
42190
42191 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42192
42193         * sem_ch12.adb:
42194         Document use of Associated_Node on Selected_Components.
42195         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
42196         to clarify use of untyped descendant fields.
42197
42198 2001-12-05  Robert Dewar  <dewar@gnat.com>
42199
42200         * prj-dect.ads: Add ??? comment
42201         Add 2001 to copyright notice (was not done in after all)
42202
42203         * prj-part.adb: Minor reformatting. Reword one awkward error message.
42204
42205         * prj.ads: Minor reformatting throughout, and add some ??? comments
42206
42207         * snames.ads: Minor reformatting
42208
42209 2001-12-05  Geert Bosch  <bosch@gnat.com>
42210
42211         * snames.adb: Autoupdate
42212
42213 2001-12-05  Vincent Celier  <celier@gnat.com>
42214
42215         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
42216
42217         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
42218
42219         * prj-env.adb: Minor comment changes (modifying -> extends).
42220
42221         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
42222
42223         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
42224         Tok_Extends.
42225
42226         * prj.adb (Initialize): Change Modifying to Extends.
42227
42228         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
42229
42230         * prj.ads: Minor comment change (Modifying -> extending).
42231
42232         * snames.ads: Change modifying to extends.
42233
42234 2001-12-05  Robert Dewar  <dewar@gnat.com>
42235
42236         * sem_warn.adb: Remove stuff for conditionals, we are not going to
42237         do this after all.
42238
42239         * sem_warn.ads: Remove stuff for conditionals, we are not going to
42240         do this after all.  Add 2001 to copyright notice
42241
42242 2001-12-04  Geert Bosch  <bosch@gnat.com>
42243
42244         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
42245
42246 2001-12-04  Robert Dewar  <dewar@gnat.com>
42247
42248         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
42249         location if we already have errors. Stops some cases of cascaded
42250         errors.
42251
42252         * errout.adb: Improve comment.
42253
42254 2001-12-04  Robert Dewar  <dewar@gnat.com>
42255
42256         * sem_ch12.adb:
42257         (Analyze_Formal_Type_Definition): Defend against Error.
42258         (Analyze_Formal_Subprogram): Defend against Error.
42259
42260         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
42261         remove following semicolon if present. Removes cascaded error.
42262
42263 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
42264
42265         * bindgen.adb:
42266         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
42267          exceptions equals 0.
42268         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
42269         Fixes PIWG E tests (which have to be run with -gnatL).
42270
42271 2001-12-04  Robert Dewar  <dewar@gnat.com>
42272
42273         * einfo.ads: Minor reformatting
42274
42275 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42276
42277         * einfo.ads: Block_Node points to the identifier of the block, not to
42278         the block node itself, to preserve the link when the block is
42279         rewritten, e.g. within an if-statement with a static condition.
42280
42281         * inline.adb (Cleanup_Scopes): recover block statement from block
42282         entity using new meaning of Block_Node.
42283
42284         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
42285         identifier of block node, rather than to node itself.
42286
42287 2001-12-04  Gary Dismukes  <dismukes@gnat.com>
42288
42289         * layout.adb:
42290         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
42291         (Discrimify): Go back to setting the Etypes of the selected component
42292         because the Vname component does not exist at this point and will
42293         fail name resolution. Also set Analyzed.
42294         Remove with and use of Sem_Res.
42295
42296 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
42297
42298         * Makefile.in: (HIE_SOURCES): add s-fat*.
42299
42300 2001-12-04  Robert Dewar  <dewar@gnat.com>
42301
42302         * sem_attr.adb:
42303         (Compile_Time_Known_Attribute): New procedure.
42304         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
42305          proper range check.
42306
42307 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42308
42309         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
42310         processing discriminants to diagnose illegal default values.
42311
42312 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42313
42314         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
42315         access discriminant within a type extension that constrains its
42316         parent discriminants.
42317
42318 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42319
42320         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
42321         is malformed, use instance of Any_Id to allow analysis to proceed.
42322
42323         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
42324         type definition is illegal.
42325         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
42326         misplaced.
42327
42328 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42329
42330         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
42331         constants.
42332
42333 2001-12-04  Robert Dewar  <dewar@gnat.com>
42334
42335         * errout.adb: Minor reformatting
42336
42337 2001-12-04  Robert Dewar  <dewar@gnat.com>
42338
42339         * exp_util.adb: Minor reformatting from last change
42340
42341         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
42342         which is a rewriting of an expression, traverse the original
42343         expression to remove warnings that may have been posted on it.
42344
42345 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42346
42347         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
42348         record that has other packed components.
42349
42350 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
42351
42352         * adaint.c: Minor cleanups.
42353
42354 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
42355
42356         * adaint.c: Do not use utime.h on vxworks.
42357
42358 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
42359
42360         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
42361         more confusion than it solves.
42362
42363 2001-12-04  Geert bosch  <bosch@gnat.com>
42364
42365         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
42366
42367 2001-12-04  Geert Bosch  <bosch@gnat.com>
42368
42369         * Makefile.in (update-sources): New target.
42370         For use by gcc_release script.
42371
42372 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42373
42374         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
42375         a configuration pragma, it is now legal wherever a pragma can appear.
42376
42377 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
42378
42379         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
42380         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
42381         is now @CROSS@ -DIN_GCC; update comment.
42382
42383 2001-12-04  Robert Dewar  <dewar@gnat.com>
42384
42385         * einfo.adb (Has_Pragma_Pure_Function): New flag.
42386         Fix problem that stopped ceinfo from working
42387
42388         * einfo.ads (Has_Pragma_Pure_Function): New flag.
42389
42390         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
42391
42392 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
42393
42394         * gnatchop.adb:
42395         (File_Time_Stamp): New procedure.
42396         (Preserve_Mode): New boolean.
42397         (Write_Unit): Pass time stamp.
42398         Implement -p switch (preserve time stamps).
42399
42400         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
42401
42402         * gnatchop.adb: Do usage info for -p switch
42403
42404         * adaint.h (__gnat_set_file_time_name): New function
42405
42406         * adaint.c (__gnat_set_file_time_name): Implement
42407
42408         * adaint.h: Fix typo
42409
42410 2001-12-03  Robert Dewar  <dewar@gnat.com>
42411
42412         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
42413         have Associated_Node.
42414
42415 2001-12-03  Robert Dewar  <dewar@gnat.com>
42416
42417         * prj-proc.adb: Minor reformatting
42418
42419         * make.adb: Minor reformatting
42420
42421 2001-12-03  Geert Bosch  <bosch@gnat.com>
42422
42423         * make.adb: Minor reformatting.
42424
42425 2001-12-03 Robert Dewar  <dewar@gnat.com>
42426
42427         * sem_ch12.adb: Minor reformatting
42428
42429 2001-12-03  Ed Schonberg  <schonber@gnat.com>
42430
42431         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
42432         push Standard on the stack before analyzing the instance body,
42433         in order to have a clean visibility environment.
42434
42435         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
42436
42437 2001-12-03  Ed Schonberg  <schonber@gnat.com>
42438
42439         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
42440         instantiation of a body that contains an inlined body.
42441
42442 2001-12-03  Ed Schonberg  <schonber@gnat.com>
42443
42444         * sem_ch12.adb:
42445         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
42446         to prevent freezing within formal packages.
42447         (Freeze_Subprogram_Body): If body comes from another instance that
42448         appeared before its own body, place freeze node at end of current
42449         declarative part, to prevent a back-end crash.
42450         (Inline_Instance_Body): Handle properly a package instance within
42451         a subprogram instance that is a child unit.
42452
42453 2001-12-01  Graham Stott  <grahams@redhat.com>
42454
42455         * Makefile.in (misc.o): Add missing $(srcdir) prefix
42456         and add optabs.h dependency.
42457
42458         * misc.c: Include optabs.h
42459         (gnat_tree_code_type): Make static and const.
42460         (gnat_tree_code_length): Likewise.
42461         (gnat_tree_code_name): Likewise.
42462         (update_setjmp_buf): Obtain operands mode from insn_data.
42463
42464 2001-11-29  Richard Henderson  <rth@redhat.com>
42465
42466         * init.c: Remove obsolete dwarf2 frame.h section.
42467
42468 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
42469
42470         * Make-lang.in (ada.generated-manpages): New dummy target.
42471
42472 2001-11-29  Ed Schonberg  <schonber@gnat.com>
42473
42474         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
42475         into Command, an array conversion is illegal here. Uncovered by
42476         ACATS B460005.
42477
42478 2001-11-28  Geert Bosch  <bosch@gnat.com>
42479
42480         * init.c: Minor whitespace changes.
42481
42482 2001-11-28  Doug Rupp  <rupp@gnat.com>
42483
42484         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
42485         signal stack.
42486
42487 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
42488
42489         * misc.c (gnat_expand_constant): Move declaration above
42490         definition of lang_hooks.
42491         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
42492         (gnat_init): lang_expand_constant no longer exists.
42493
42494         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
42495         always have vprintf.
42496         (gnat_init): Always call set_internal_error_function.
42497
42498 2001-11-27  Andreas Jaeger  <aj@suse.de>
42499
42500         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
42501
42502 2001-11-27  Laurent Guerby  <guerby@acm.org>
42503
42504         * Makefile.in: Regenerate Ada dependencies.
42505
42506 2001-11-26  Richard Henderson  <rth@redhat.com>
42507
42508         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
42509         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
42510         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
42511
42512 2001-11-25  Laurent Guerby  <guerby@acm.org>
42513
42514         * sysdep.c (rts_get_*): Fix style.
42515
42516 2001-11-19  Laurent Guerby  <guerby@acm.org>
42517
42518         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
42519         since it is of no apparent use and cause warnings.
42520
42521 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
42522
42523         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
42524         static too.
42525         (gnat_init): Don't return NULL.
42526         (finish_parse): Remove.
42527
42528 2001-11-17  Laurent Guerby  <guerby@acm.org>
42529
42530         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
42531         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
42532         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
42533         * lang-spec.h: Add missing struct field to silence warnings.
42534         * sysdep.c (rts_get_*): Provide K&R prototype.
42535         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
42536         * traceback.c (Unlock_Task, Lock_Task): Likewise.
42537         * tracebak.c (__gnat_backtrace): Remove unused variable.
42538         * utils.c (end_subprog_body): Move to K&R style.
42539
42540 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
42541
42542         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
42543
42544 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
42545
42546         * misc.c (gnat_init): Change prototype.  Include the
42547         functionality of the old init_parse and init_decl_processing.
42548         (gnat_init_decl_processing): New prototype.
42549         (init_parse): Remove.
42550         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
42551
42552 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
42553
42554         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
42555         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
42556         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
42557         set_yydebug): Remove.
42558
42559 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
42560
42561         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
42562         (struct lang_hooks): Constify.
42563         (language_string, lang_identify): Remove.
42564         * utils.c (init_decl_processing): Update.
42565
42566 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
42567
42568         * misc.c: Include langhooks-def.h.
42569         * Makefile.in: Update.
42570
42571 2001-10-30  Robert Dewar  <dewar@gnat.com>
42572
42573         * style.adb:
42574         (Check_Identifier): Rewrite circuit to be compatible with use of letters
42575         in the upper half of ASCII.
42576         (Check_Identifier): Minor reformatting
42577
42578 2001-10-30  Geert Bosch  <bosch@gnat.com>
42579
42580         * (Associated_Node, Set_Associated_Node): Do not check for
42581         Freeze_Entity.
42582
42583 2001-10-30  Robert Dewar  <dewar@gnat.com>
42584
42585         * a-reatim.ads: Minor reformatting
42586
42587 2001-10-30  Robert Dewar  <dewar@gnat.com>
42588
42589         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
42590         undocumented declarations.
42591
42592 2001-10-30  Pascal Obry  <obry@gnat.com>
42593
42594         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
42595         to the binder and linker.
42596         Minor style fix.
42597
42598         * mdll.ads: Fix layout.  Update copyright notice.
42599
42600         * mdll.adb: Fix layout.  Update copyright notice.
42601
42602 2001-10-30  Robert Dewar  <dewar@gnat.com>
42603
42604         * usage.adb: Minor fix to output for -gnaty.
42605
42606 2001-10-30  Ed Schonberg  <schonber@gnat.com>
42607
42608         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
42609         to accommodate all its possible values.
42610
42611         * a-reatim.adb (Split): Special-case handling of Time_Span_First
42612         and of small absolute values of T.
42613
42614 2001-10-30  Richard Kenner  <kenner@gnat.com>
42615
42616         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
42617         set_mem_attributes since not needed and wrong if RESULT if a REG;
42618         fixes ACATS failures.
42619
42620 2001-10-30  Geert Bosch  <bosch@gnat.com>
42621
42622         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
42623         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
42624
42625 2001-10-30  Robert Dewar  <dewar@gnat.com>
42626
42627         * bindusg.adb: Undocument -f switch.
42628
42629         * gnatcmd.adb: Remove /FULL_ELABORATION.
42630
42631         * opt.ads (Force_RM_Elaboration_Order): Document that this is
42632         obsolescent.
42633
42634         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
42635
42636         * gnatbind.adb: Minor update of warning msg.
42637
42638 2001-10-30  Vincent Celier  <celier@gnat.com>
42639
42640         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
42641         for project file switches (-P (/PROJECT_FILE=),
42642          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
42643         or MEDIUM or HIGH)
42644
42645 2001-10-30  Geert Bosch  <bosch@gnat.com>
42646
42647         * decl.c: Minor whitespace fixes.
42648
42649 2001-10-30  Richard Kenner  <kenner@gnat.com>
42650
42651         * utils2.c (build_allocator): Test for SIZE overflow in array case too
42652
42653 2001-10-30  Geert Bosch  <bosch@gnat.com>
42654
42655         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
42656         Found due to GCC 3.0 warning of using uninitialized value.
42657
42658         * layout.adb:
42659         (Get_Max_Size): Use variant record for tracking value/expression.
42660          Makes logic clearer and prevents warnings for uninitialized variables.
42661         (Layout_Array_Type): Use variant record for tracking value/expression.
42662          Makes logic clearer and prevents warnings for uninitialized variables.
42663
42664 2001-10-30  Robert Dewar  <dewar@gnat.com>
42665
42666         * lib.adb: Minor reformatting
42667
42668         * s-taprop.ads: Minor reformatting
42669
42670 2001-10-29  Laurent Guerby  <guerby@acm.org>
42671
42672         * init.c:
42673         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
42674         const.
42675         (_gnat_error_handler): Make MSG const.
42676
42677 2001-10-29  Richard Kenner  <kenner@gnat.com>
42678
42679         * sysdep.c: Fix localtime_r problem on LynxOS.
42680         Also remove #elif to avoid warnings.
42681
42682         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
42683         used by this.
42684
42685         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
42686
42687 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
42688
42689         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
42690         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
42691         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
42692         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
42693         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
42694         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
42695         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
42696         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
42697         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
42698         types.ads, urealp.adb: Fix spelling errors.
42699
42700 2001-10-27  Laurent Guerby  <guerby@acm.org>
42701
42702         * trans.c (gigi): Fix non determinism leading to bootstrap
42703         comparison failures for debugging information.
42704
42705 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
42706
42707         * gnat_rm.texi: Use @./@: where appropriate.
42708
42709 2001-10-26  Robert Dewar  <dewar@gnat.com>
42710
42711         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
42712
42713 2001-10-26  Richard Kenner  <kenner@gnat.com>
42714
42715         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
42716
42717 2001-10-26  Richard Kenner  <kenner@gnat.com>
42718
42719         * decl.c (validate_size): Modify message for bad size to avoid
42720         implication that compiler is modifying the size.
42721
42722 2001-10-26  Robert Dewar  <dewar@gnat.com>
42723
42724         * prj-util.adb: Minor reformatting. Fix bad header format.
42725
42726 2001-10-26  Robert Dewar  <dewar@gnat.com>
42727
42728         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
42729
42730         * sinfo.ads: Clarify use of Associated_Node (documentation only).
42731
42732         * sem_ch12.adb: Change Node4 to Associated_Node. Change
42733         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
42734         much more narrowly in places where needed. These are cleanups.
42735
42736 2001-10-26  Joel Brobecker  <brobecke@gnat.com>
42737
42738         * 5zosinte.ads (null_pthread): new constant.
42739
42740         * 5ztaprop.adb:
42741         (Initialize_TCB): Initialize thread ID to null, to be able to verify
42742          later that this field has been set.
42743         (Finalize_TCB): ditto.
42744         (Suspend_Task): Verify that the thread ID is not null before using it.
42745         (Resume_Task): ditto.
42746
42747         * s-tasdeb.adb:
42748         (Resume_All_Tasks): Lock the tasks list before using it.
42749         (Suspend_All_Tasks): ditto.
42750
42751 2001-10-26  Richard Kenner  <kenner@gnat.com>
42752
42753         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
42754         Make constant variant of designated type for Is_Access_Constant.
42755         Call update_pointer_to with main variant.
42756
42757         * trans.c (process_freeze_entity, process_type):
42758         Call update_pointer_to on main variant.
42759
42760         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
42761         If main variant, update all other variants.
42762
42763         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
42764         TREE_STATIC.
42765
42766 2001-10-26  Robert Dewar  <dewar@gnat.com>
42767
42768         * prj-util.adb: Minor reformatting
42769
42770 2001-10-26  Robert Dewar  <dewar@gnat.com>
42771
42772         * prj-util.adb: Minor reformatting
42773
42774 2001-10-26  Robert Dewar  <dewar@gnat.com>
42775
42776         * prj-attr.adb: Minor reformatting throughout
42777
42778 2001-10-26  Robert Dewar  <dewar@gnat.com>
42779
42780         * prj-attr.ads: Minor reformatting
42781         Add ??? comment (this whole spec has almost no comments)
42782
42783 2001-10-26  Vincent Celier  <celier@gnat.com>
42784
42785         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
42786         ("//") that precede the drive letter on Interix.
42787
42788 2001-10-26  Geert Bosch  <bosch@gnat.com>
42789
42790         * gnat_rm.texi: Add GNAT Reference Manual.
42791
42792 2001-10-25  Robert Dewar  <dewar@gnat.com>
42793
42794         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
42795         is Error. Similar change for other renaming cases.
42796
42797 2001-10-25  Robert Dewar  <dewar@gnat.com>
42798
42799         * s-atacco.ads: Add pragma Inline_Always for functions.
42800         Fix header format. Add copyright 2001
42801
42802 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42803
42804         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
42805         return Error rather than Empty so that analysis can proceed.
42806
42807 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42808
42809         * sem_util.adb (Enter_Name): better handling of cascaded error
42810         messages when a unit appears in its own context.
42811
42812 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42813
42814         * sem_util.adb (Defining_Entity): in case of error, attach created
42815         entity to specification, so that semantic analysis can proceed.
42816
42817 2001-10-25  Robert Dewar  <dewar@gnat.com>
42818
42819         * sem_util.adb
42820         (Defining_Entity): Deal with Error.
42821         (Process_End_Label): Deal with bad end label for.
42822
42823 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42824
42825         * sem_elab.adb (Check_A_Call): refine message when call is in an
42826         instance but callee is not declared in the generic unit.
42827
42828 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42829
42830         * sem_elab.adb (Check_A_Call): check for renaming before finding the
42831         enclosing unit, which may already be different from the calling unit.
42832
42833 2001-10-25  Geert Bosch  <bosch@gnat.com>
42834
42835         * 4gintnam.ads: fix header format.
42836
42837 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42838
42839         * sem_res.adb (Resolve_Call): if the call is actually an indexing
42840         operation on the result of a parameterless call, perform elaboration
42841         check after the node has been properly rewritten.
42842
42843         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
42844         inlined within the generic tree, the defining identifier is not a
42845         compilation_unit.
42846
42847 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42848
42849         * sem_res.adb (Resolve): special-case resolution of Null in an
42850          instance or an inlined body to avoid view conflicts.
42851
42852         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
42853          compatibility by retrieving the access type of the generic copy.
42854
42855 2001-10-25  Robert Dewar  <dewar@gnat.com>
42856
42857         * sem_ch3.adb:
42858         (Analyze_Number_Declaration): Handle error expression.
42859         (Signed_Integer_Type_Declaration): Handle error bound.
42860         (Analyze_Subtype_Indication): Handle error range.
42861
42862         * sem_util.adb (Get_Index_Bounds): Check for Error.
42863
42864 2001-10-25  Robert Dewar  <dewar@gnat.com>
42865
42866         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
42867         in no run time mode.
42868
42869 2001-10-25  Pascal Obry  <obry@gnat.com>
42870
42871         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
42872         mode case for ALLOC case.
42873
42874         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
42875         all platforms. Improvement of last change.
42876
42877 2001-10-25  Robert Dewar  <dewar@gnat.com>
42878
42879         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
42880
42881 2001-10-25  Geert Bosch  <bosch@gnat.com>
42882
42883         * osint.adb (Is_Relative): Remove duplicate.
42884
42885 2001-10-25  Pascal Obry  <obry@gnat.com>
42886
42887         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
42888         pathnames in UNIX and DOS style with drive letter.
42889         (Is_Relative): new routine.
42890
42891         * osint.adb: Minor reformatting
42892
42893         * osint.adb (Is_Relative): implementation using
42894         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
42895
42896 2001-10-25  Pascal Obry  <obry@gnat.com>
42897
42898         * g-dirope.adb (Basename): correctly compute offset between the
42899         original Path and the translated one.
42900
42901         * g-dirope.adb: (Base_Name): add some comments.
42902
42903 2001-10-25  Robert Dewar  <dewar@gnat.com>
42904
42905         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
42906         in HIE mode, avoids compilation abandoned message
42907
42908         * exp_imgv.adb: Correct typo in previous change
42909
42910         * exp_imgv.adb: Correct typo in previous change (not my day!)
42911
42912 2001-10-25  Robert Dewar  <dewar@gnat.com>
42913
42914         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
42915
42916 2001-10-25  Pascal Obry  <obry@gnat.com>
42917
42918         * g-awk.ads: Move all pragma inlines next to the routine
42919          declarations. This is more uniform with other GNAT spec.
42920
42921 2001-10-22  Geert Bosch  <bosch@gnat.com>
42922
42923         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
42924
42925 2001-10-19  Geert Bosch  <bosch@gnat.com>
42926
42927         * Makefile.in (tools, gnattools): Remove gnatmem.
42928
42929 2001-10-17  Richard Henderson  <rth@redhat.com>
42930
42931         * Makefile.in (misc.o): Depend on langhooks.h.
42932         * misc.c: Include it.
42933         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
42934         (LANG_HOOKS_DECODE_OPTION): New.
42935         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
42936
42937 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
42938
42939         * trans.c (tree_transform): Adjust to recent change in
42940         expand_asm_operands to implement named asm operands.
42941
42942 2001-10-11  Ed Schonberg  <schonber@gnat.com>
42943
42944         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
42945         renaming of discriminant for mutable record type.
42946
42947 2001-10-11  Robert Dewar  <dewar@gnat.com>
42948
42949         * validsw.adb: Properly save -gnatVn status.
42950
42951 2001-10-11  Robert Dewar  <dewar@gnat.com>
42952
42953         * usage.adb: Add lines for V switch.
42954
42955         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
42956         (/VALIDITY_CHECKING).
42957
42958 2001-10-11  Ed Schonberg  <schonber@gnat.com>
42959
42960         * sem_type.adb (Add_One_Interp): an operator for a type declared in
42961         an extension of System is known to be visible.
42962
42963 2001-10-11  Ed Schonberg  <schonber@gnat.com>
42964
42965         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
42966         properly. Fixes regression on ACATS C34005G.
42967
42968 2001-10-11  Robert Dewar  <dewar@gnat.com>
42969
42970         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
42971         loop in generic instance, since this is likely not very useful.
42972
42973 2001-10-11  Robert Dewar  <dewar@gnat.com>
42974
42975         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
42976         the error message for high integrity mode.
42977
42978         * rtsfind.adb (RTE): Give message if we try to find an entity that
42979         is not available in high integrity mode.
42980
42981         * rtsfind.ads:
42982         (OK_To_Use_In_HIE_Mode): New array.
42983         (RTE): May return Empty in high integrity mode.
42984
42985         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
42986         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
42987
42988         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
42989         unit if not inlined always and in no runtime mode. Fixes problem
42990         caused by new Rtsfind changes.
42991
42992         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
42993         body is deleted.
42994
42995         * rtsfind.adb (RTE): Make sure we do not try to load unit after
42996         giving message for entity not available in high integrity mode.
42997
42998 2001-10-11  Pascal Obry  <obry@gnat.com>
42999
43000         * impunit.adb: Add GNAT.CRC32.
43001
43002 2001-10-11  Ed Schonberg  <schonber@gnat.com>
43003
43004         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
43005         properly the case where one universal operand in a non-static
43006         exponentiation of a real literal.
43007
43008 2001-10-11  Ed Schonberg  <schonber@gnat.com>
43009
43010         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
43011         clause, return the gobal finalization list, for lack of anthing else.
43012
43013 2001-10-11  Ed Schonberg  <schonber@gnat.com>
43014
43015         * exp_ch7.adb (Make_Transient_Block): if statement is within
43016         exception handler, always use new transient scope to place Clean
43017         procedure.
43018
43019 2001-10-11  Pascal Obry  <obry@gnat.com>
43020
43021         * Makefile.in:
43022         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
43023         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
43024         (GNATLS_RTL_OBJS): add g-crc32.o
43025         (GNATMAKE_RTL_OBJS): add g-crc32.o
43026
43027         * ali-util.adb:
43028         (CRC_Match): new function.
43029         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
43030         instead of the previous simple checksum algorithm.
43031         (Time_Stamp_Mismatch): use CRC_Match for comparison.
43032         (Set_Source_Table): idem.
43033
43034         * ali-util.ads:
43035         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
43036         instead of simple checksum.
43037         (CRC_Match): new function.
43038         (CRC_Error): new constant.
43039
43040         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
43041         a CRC now and not a simple checksum. A CRC uses lower-case hex
43042         letters, fixes ambiguity in parsing.
43043
43044         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
43045         is what this variable will store.
43046
43047         * bcheck.adb: Change reference to chechsum in comments by CRC.
43048         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
43049         rename All_Checksum_Match to All_CRC_Match. Change due to API
43050         renaming since now GNAT does not use a simple checksum but a
43051         CRC using GNAT.CRC32.
43052
43053         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
43054         now and not anymore a simple checksum.
43055
43056         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
43057         places.
43058
43059         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
43060
43061         * scans.adb:
43062         (Restore_Scan_State): rename Checksum to CRC.
43063         (Save_Scan_State): idem.
43064
43065         * scans.ads:
43066         With GNAT.CRC32.
43067         (Checksum): rename to CRC.
43068         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
43069
43070         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
43071         GNAT.CRC32).  Update copyright notice.
43072
43073         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
43074         GNAT.CRC32).  Update copyright notice.
43075
43076         * scn.adb:
43077         (Accumulate_Checksum): removed.
43078         (Update): new procedure. Add a wide-character into the CRC.
43079
43080         * sinput-l.adb:
43081         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
43082         (Load_File): fix initialization of S (change Source_Checksum to
43083         Source_CRC)
43084
43085         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
43086         Source_CRC in S initialization.
43087
43088         * sinput.adb (Source_Checksum): renamed to Source_CRC.
43089
43090         * sinput.ads (Source_Checksum): renamed to Source_CRC.
43091         Update comments for the CRC.
43092
43093         * types.adb (Hex): Use lowercase for the letter part.
43094
43095         * types.ads (Get_Hex_String): Returns the hexadecimal representation
43096         for a word. This is currently used only for CRC. In previous version,
43097         the checksum was using a representation with all letter being
43098         upper-case. With the new implementation (using CRC) we do not remove
43099         the 32th bit of the CRC, so we can have an upper-case starting letter
43100         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
43101         It is ambigous since the CRC was optional and could be followed by
43102         options like EB, EE. So now this routines uses lower-case letter for
43103         the hexadecimal representation. Strange enough only lower case letters
43104         where checked in Scan_ALI (even if this was not a possible case).
43105
43106         * gnatvsn.ads (Library_Version): changed to 3.15a.
43107
43108         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
43109         for the compiler.
43110
43111         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
43112         for the compiler.
43113
43114         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
43115         Add 2001 to copyright notice
43116         (Accumulate_Checksum): Modify to use System.CRC32.
43117
43118         * ali-util.ads: Redo changes of previous revision to continue to use
43119         the word Checksum. Add 2001 to copyright notice.
43120
43121         * ali.adb: Undo some of previous changes, not needed.
43122         Keep the change for lower case letters in the checksum.
43123
43124         * ali.ads: Undo previous change not needed.
43125
43126         * bcheck.adb: Undo most of previous change, not needed.
43127         But do use Checksums_Match for checksum comparison.
43128
43129         * gnatls.adb: Undo most of previous change, not needed.
43130         But do use Checksums_Match for comparing checksums.
43131
43132         * lib-load.adb: Undo previous change, not needed.
43133
43134         * lib-writ.adb: Undo previous change, not needed.
43135
43136         * lib-writ.ads: Document that checksums use lower case,
43137         not upper case letters.
43138
43139         * scans.adb: Undo previous change, not needed
43140
43141         * scans.ads: Undo previous change, not needed.
43142
43143         * scn-nlit.adb: Undo previous changes, not needed.
43144
43145         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
43146
43147         * scn.adb:
43148         (Accumulate_Checksum): Use System.CRC32.
43149         (Initialize_Checksum): New procedure.
43150         Remove other changes of previous revision.
43151
43152         * sinput-p.adb: Undo previous change, not needed.
43153
43154         * sinput.adb: Undo previous change, not needed.
43155
43156         * sinput-l.adb: Undo previous change, not needed.
43157
43158         * sinput.ads: Undo previous change, not needed.  Keep only comment
43159         on new checksum algorithm
43160
43161         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
43162         Also remove a-tags and a-stream from GNAT sources.
43163
43164         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
43165
43166         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
43167
43168 2001-10-11  Geert Bosch  <bosch@gnat.com>
43169
43170         * einfo.h: Regenerate.
43171
43172         * nmake.ads: Regenerate.
43173
43174         * nmake.adb: Regenerate.
43175
43176         * sinfo.h: Regenerate.
43177
43178         * treeprs.adb: Regenerate.
43179
43180 2001-10-10  Geert Bosch  <bosch@gnat.com>
43181
43182         * gnat-style.texi: New file describing coding guidelines for Ada.
43183
43184 2001-10-10  Ed Schonberg  <schonber@gnat.com>
43185
43186         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
43187         is Flag174.
43188
43189 2001-10-10  Geert Bosch  <bosch@gnat.com>
43190
43191         * snames.ads: Add new names for project facility.
43192
43193         * snames.adb: Update to reflect snames.ads changes.
43194
43195         * snames.h: Update to reflect snames.ads changes.
43196
43197 2001-10-10  Vincent Celier  <celier@gnat.com>
43198
43199         * make.adb:
43200         (Add_Switches): reflect the changes for the switches attributes
43201         Default_Switches indexed by the programming language,
43202         Switches indexed by the file name.
43203         (Collect_Arguments_And_Compile): Idem.
43204         Reflect the attribute name changes.
43205
43206         * prj-attr.adb:
43207         (Initialisation_Data): Change the names of some packages and
43208         attributes.
43209         (Initialize): process case insensitive associative arrays.
43210
43211         * prj-attr.ads:
43212         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
43213
43214         * prj-dect.adb:
43215         (Parse_Attribute_Declaration): For case insensitive associative
43216          arrays, set the index string to lower case.
43217
43218         * prj-env.adb:
43219         Reflect the changes of the project attributes.
43220
43221         * prj-nmsc.adb:
43222         Replace Check_Naming_Scheme by Ada_Check and
43223         Language_Independent_Check.
43224
43225         * prj-nmsc.ads:
43226         Replaced Check_Naming_Scheme by 2 procedures:
43227         Ada_Check and Language_Independent_Check.
43228
43229         * prj-proc.adb:
43230         (Process_Declarative_Items): For case-insensitive associative
43231         arrays, set the index string to lower case.
43232         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
43233         Prj.Nmsc.Check_Naming_Scheme.
43234
43235         * prj-tree.adb:
43236         (Case_Insensitive): New function
43237         (Set_Case_Insensitive): New procedure
43238
43239         * prj-tree.ads:
43240         (Case_Insensitive): New function
43241         (Set_Case_Insensitive): New procedure
43242         (Project_Node_Record): New flag Case_Insensitive.
43243
43244         * prj-util.adb:
43245         (Value_Of): new function to get the string value of a single
43246         string variable or attribute.
43247
43248         * prj-util.ads:
43249         (Value_Of): new function to get the string value of a single
43250         string variable or attribute.
43251
43252         * prj.adb:
43253         (Ada_Default_Spec_Suffix): New function
43254         (Ada_Default_Impl_Suffix): New function
43255         Change definitions of several constants to reflect
43256         new components of record types.
43257
43258         * prj.ads:
43259         (Naming_Data): Change several components to reflect new
43260         elements of naming schemes.
43261         (Project_Data): New flags Sources_Present and
43262         Language_Independent_Checked.
43263         (Ada_Default_Spec_Suffix): New function.
43264         (Ada_Default_Impl_Suffix): New function.
43265
43266         * snames.ads:
43267         Modification of predefined names for project manager: added
43268         Implementation, Specification_Exceptions, Implementation_Exceptions,
43269         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
43270         Default_Switches, _Languages, Builder, Cross_Reference,
43271         Finder. Removed Body_Part, Specification_Append, Body_Append,
43272         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
43273         Gnatlink.
43274
43275         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
43276         Add comments.
43277
43278         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
43279         not that it is Nil_Variable_Value.
43280
43281         * prj.ads: Add ??? for uncommented declarations
43282
43283 2001-10-10  Ed Schonberg  <schonber@gnat.com>
43284
43285         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
43286         constant, do not indicate possible modification, so that gigi can
43287         treat it as a bona fide constant.
43288
43289 2001-10-10  Robert Dewar  <dewar@gnat.com>
43290
43291         * sem_prag.adb: Add processing for pragma External.
43292
43293         * snames.ads: Add entry for pragma External.
43294
43295         * par-prag.adb: Add pragma External.
43296
43297         * snames.adb: Updated to match snames.ads.
43298
43299 2001-10-10  Ed Schonberg  <schonber@gnat.com>
43300
43301         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
43302         a dynamic task if the allocator appears in an indexed assignment
43303         or selected component assignment.
43304
43305         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
43306         For a dynamic task in an assignment statement, use target of
43307         assignment to generate meaningful name.
43308
43309 2001-10-10  Ed Schonberg  <schonber@gnat.com>
43310
43311         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
43312         a generic package.
43313
43314         * einfo.ads: Body_Entity is also defined for generic package.
43315         Documentation change only
43316
43317         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
43318         others_choice for a discriminated component initialization,
43319         convert discriminant references into the corresponding discriminals.
43320
43321         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
43322         only if original type is private and expression has to be wrapped
43323         in a conversion.
43324
43325         * checks.adb:
43326         (Apply_Constraint_Check): Do not perform length check
43327         if expression is an aggregate with only an others_choice.
43328         (Length_N_Cond): two references to the same in_parameter
43329         (typically the discriminal in an init_proc) denote the same value.
43330         Two useful optimization uncovered by bugfixes above.
43331
43332 2001-10-10  Robert Dewar  <dewar@gnat.com>
43333
43334         * xeinfo.adb: Change int to char in translation of enumeration types.
43335         This fixes a problem in the C representation of component alignment.
43336         Add 2001 to copyright notice
43337
43338 2001-10-10  Richard Kenner  <kenner@gnat.com>
43339
43340         * decl.c: (validate_size): Do check size of object of integral type
43341         if it is a packed array type.
43342
43343 2001-10-10  Richard Kenner  <kenner@gnat.com>
43344
43345         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
43346         VAR_DECL for constant if not Is_Public but -O0.
43347
43348 2001-10-10  Richard Kenner  <kenner@gnat.com>
43349
43350         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
43351
43352 2001-10-10  Geert Bosch  <bosch@gnat.com>
43353
43354         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
43355         use '/' as switch character, allowing for absolute file names.
43356
43357 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
43358
43359         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
43360         FSF address.
43361
43362 2001-10-08  Geert Bosch  <bosch@gnat.com>
43363
43364         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
43365         Automatically build utilities when files need to be regenerated.
43366
43367 2001-10-08  Geert Bosch  <bosch@gnat.com>
43368
43369         * xsnames.adb: New utility for updating snames.ads and snames.adb
43370
43371 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
43372
43373         * Make-lang.in (ADAFLAGS): Add -W -Wall.
43374         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
43375         (gnat1): Also depend on attribs.o.
43376         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
43377         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
43378         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
43379         (ADAFLAGS): Add -W -Wall.
43380         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
43381         take out CFLAGS.
43382
43383         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
43384         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
43385         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
43386         Use $(ADAC), not $(CC), as compilation command.
43387
43388         (gnattools): Depend directly on tools to build, don't use
43389         recursive make.
43390         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
43391
43392         * einfo.h, sinfo.h: New files (autogenerated).
43393
43394 2001-10-08  Richard Henderson  <rth@redhat.com>
43395
43396         * comperr.adb (Abort_In_Progress): New.
43397         (Compiler_Abort): Use it to prevent recursion.
43398
43399 2001-10-08  Robert Dewar  <dewar@gnat.com>
43400
43401         * atree.adb: Set Error_Posted in Error node, helps error recovery.
43402
43403         * par-endh.adb (Output_End_Expected): We should also not test
43404         Error_Posted on the Error node, since now it is always set.
43405
43406         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
43407         to help error recovery. Part of general work on 9407-004.
43408
43409         * par.adb: Add ??? for misuse of error
43410
43411         * sem_res.adb:
43412         (Resolve): Defend against Error, fixes 9407-003.
43413         (Resolve_Discrete_Subtype_Indication): Defend against Error.
43414
43415         * sinfo.ads (N_Error): Now has Etype field (which will be set
43416         to Any_Type to help error recovery).
43417
43418 2001-10-08  Richard Kenner  <kenner@gnat.com>
43419
43420         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
43421         Consistently set MEM attributes from expression; fixes
43422         bootstrap failure on x86.
43423
43424 2001-10-08  Geert Bosch  <bosch@gnat.com>
43425
43426         * 5oosinte.adb: Add 2001 to copyright notice.
43427
43428 2001-10-08  Geert Bosch  <bosch@gnat.com>
43429
43430         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
43431
43432         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
43433
43434 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
43435
43436         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
43437
43438 2001-10-05  Geert Bosch  <bosch@gnat.com>
43439
43440         * adaint.h: Small formatting fix.
43441
43442 2001-10-04  Geert Bosch  <bosch@gnat.com>
43443
43444         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
43445         Arg is int, not FILE *, in dummy version of functions.
43446
43447         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
43448         Arg is int, not FILE *.
43449
43450 2001-10-04  Geert Bosch  <bosch@gnat.com>
43451
43452         * 3lsoccon.ads: Added file, missed with initial check ins.
43453
43454         * 4lintnam.ads: Fix header format.
43455         Change Linux to GNU/Linux.
43456
43457         * 5iosinte.adb: Change Linux to GNU/Linux.
43458
43459         * 5iosinte.ads: Change Linux to GNU/Linux.
43460
43461         * 5itaprop.adb: Change Linux to GNU/Linux.
43462
43463         * 5itaspri.ads: Change Linux to GNU/Linux.
43464         Update copyright notice.
43465
43466         * 5lintman.adb: Change Linux to GNU/Linux.
43467
43468         * 5lml-tgt.adb: Change Linux to GNU/Linux.
43469
43470         * 5losinte.ads: Change Linux to GNU/Linux.
43471
43472         * 5lsystem.ads: Change Linux to GNU/Linux.
43473
43474         * 5qosinte.adb: Change Linux to GNU/Linux.
43475
43476         * 5qosinte.ads: Change Linux to GNU/Linux.
43477
43478         * 5qparame.ads: Change Linux to GNU/Linux.
43479
43480         * 5qtaprop.adb: Change Linux to GNU/Linux.
43481
43482         * 5qtaspri.ads: Change Linux to GNU/Linux.
43483         Add 2001 to copyright notice.
43484
43485         * 5vintman.ads: Change Linux to GNU/Linux.
43486         Fix header format.  Add 2001 to copyright notice.
43487
43488         * g-soccon.ads: Change Linux to GNU/Linux.
43489
43490         * g-trasym.ads: Change Linux to GNU/Linux.
43491         Add 2001 to copyright notice.
43492
43493         * memtrack.adb: Change Linux to GNU/Linux.
43494
43495         * s-intman.ads: Change Linux to GNU/Linux.
43496         Add 2001 to copyright notice.  Fix header format.
43497
43498         * s-stache.adb: Change Linux to GNU/Linux.
43499
43500         * adaint.c: Change Linux to GNU/Linux.
43501
43502         * cio.c: Change Linux to GNU/Linux.
43503
43504         * cstreams.c: Change Linux to GNU/Linux.
43505
43506         * init.c: Change Linux to GNU/Linux.
43507
43508         * gmem.c: Change Linux to GNU/Linux.
43509
43510         * tracebak.c: Change Linux to GNU/Linux.
43511
43512
43513 2001-10-02  Geert Bosch  <bosch@gnat.com>
43514
43515         * misc.c (insert_default_attributes): Add dummy version.