OSDN Git Service

2008-09-21 Laurent Guerby <laurent@guerby.net>
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2008-09-21  Laurent Guerby  <laurent@guerby.net>
2
3         PR ada/5911
4         * gcc-interface/Makefile.in: Add multilib handling for x86_64
5         and sparc.
6         * system-linux-sparcv9.ads: New file.
7         
8 2008-09-20  Eric Botcazou  <ebotcazou@adacore.com>
9
10         * exp_dbug.ads: Document new convention for the XVZ variable.
11         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Generate
12         debug info if necessary for the type padding the component type.
13         <E_Array_Subtype>: Likewise.
14         (maybe_pad_type): Emit the XVZ variable in units.
15         * gcc-interface/trans.c (Loop_Statement_to_gnu): Fix formatting nits.
16         (Subprogram_Body_to_gnu): Set the source line of the subprogram's node
17         on statements generated to initialize the parameter attributes cache.
18         Set the source line of the end label of the body on the special return
19         statement built for a procedure with copy-in copy-out parameters.
20
21 2008-09-20  Eric Botcazou  <ebotcazou@adacore.com>
22
23         PR ada/37585
24         * gcc-interface/utils.c (create_subprog_decl): Disable inlining for
25         inlined external functions if they contain a nested function not
26         declared inline.
27
28 2008-09-18  Jan Hubicka  <jh@suse.cz>
29
30         * gcc-interface/utils.c (create_subprog_decl): Use DECL_DECLARED_INLINE_P.
31         (end_subprog_body): Do not set DECL_INLINE.
32
33 2008-09-17  Pascal Rigaux  <pixel@mandriva.com>
34
35         PR ada/21327
36         * gnat_ugn.texi: Use proper format in direntry.
37
38 2008-09-15  Eric Botcazou  <ebotcazou@adacore.com>
39
40         * gcc-interface/trans.c (gigi): Declare the name of the compilation
41         unit as the first global name.
42
43 2008-09-14  Jan Hubicka  <jh@suse.cz>
44
45         * gcc-interface/Make-lang.in (gnat1): Add CFLAGS.
46
47 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48
49         * a-crbtgk.adb, a-direct.ads, a-tasatt.adb, ali.ads,
50         bindgen.adb, checks.adb, einfo.ads, exp_aggr.adb, exp_ch11.adb,
51         exp_ch3.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb,
52         exp_dbug.ads, exp_disp.adb, exp_dist.adb, exp_pakd.adb,
53         exp_util.adb, g-alveop.ads, g-comlin.adb, g-comlin.ads,
54         g-diopit.adb, g-socket.ads, gcc-interface/decl.c,
55         gcc-interface/gigi.h, gcc-interface/trans.c,
56         lib-load.adb, lib-xref.ads, make.adb, mlib-prj.adb, nlists.ads,
57         opt.ads, par-ch10.adb, par-ch5.adb, par.adb, s-os_lib.ads,
58         s-oscons-tmplt.c, s-parint.ads, s-regpat.ads, s-shasto.ads,
59         s-stausa.ads, s-taprop-vms.adb, sem.adb, sem_ch10.adb,
60         sem_ch11.adb, sem_ch12.adb, sem_ch13.adb, sem_ch3.adb,
61         sem_ch3.ads, sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
62         sem_elim.adb, sem_prag.adb, sem_util.adb, sem_util.ads,
63         sem_warn.adb, sinfo.ads, styleg.adb, vms_data.ads: Fix typos in
64         comments.
65         * gnathtml.pl: Fix typos.
66
67 2008-09-10  Joel Sherrill <joel.sherrill@oarcorp.com>
68
69         * gcc-interface/Makefile.in: Switch RTEMS to s-interr-hwint.adb.
70         * s-osinte-rtems.ads: Add shared hardware interrupt adapter
71         layer. RTEMS binds to OS provided adapter routines so there are
72         no modifications to s-osinte-rtems.adb.
73
74 2008-09-09  Arnaud Charlet  <charlet@adacore.com>
75             Joel Sherrill  <joel.sherrill@oarcorp.com>
76
77        * gcc-interface/Makefile.in: Switch VxWorks to s-interr-hwint.adb.
78
79        * s-interr-vxworks.adb: Renamed to s-interr-hwint.adb
80
81        * s-interr-hwint.adb: New file.
82
83         * s-osinte-vxworks.ads, s-osinte-vxworks.adb: Add new functions
84         needed by s-interr-hwint.adb.
85
86         * s-osinte-vxworks-kernel.adb: New file.
87
88 2008-09-05  Joel Sherrill <joel.sherrill@oarcorp.com>
89
90         * s-stchop-rtems.adb: Add file missed in early commit.  Already
91         referenced in gcc-interface/Makefile.in.
92
93 2008-08-30  Thomas Quinot  <quinot@adacore.com>
94
95         * gcc-interface/Make-lang.in: Allow s-oscons.{o,ali} to
96         be built even without a separate libada directory.
97
98 2008-08-22  Arnaud Charlet  <charlet@adacore.com>
99
100         * lib-xref.ads: Fix typo in subprogram reference definition.
101
102 2008-08-22  Robert Dewar  <dewar@adacore.com>
103
104         * s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-strops.adb: Minor code fix
105         to avoid warning.
106
107         * g-trasym.adb: Ditto
108
109         * s-utf_32.adb (Get_Category): Fix obvious typo
110
111         * s-wwdcha.adb: Minor code reorganization
112         Remove dead code
113
114 2008-08-22  Robert Dewar  <dewar@adacore.com>
115
116         * checks.adb (Determine_Range): Deal with values that might be invalid
117
118         * opt.adb, opt.ads (Assume_No_Invalid_Values[_Config]): New
119         configuration switches.
120
121         * par-prag.adb: Dummy entry for pragma Assume_No_Invalid_Values
122
123         * sem_prag.adb: Implement pragma Assume_No_Default_Values
124
125         * snames.adb, snames.ads, snames.h:
126         Add entries for pragma Assume_No_Invalid_Values
127
128         * switch-c.adb: Add processing for -gnatB switch
129
130         * usage.adb: Add entry for flag -gnatB (no bad invalid values)
131
132 2008-08-22  Javier Miranda  <miranda@adacore.com>
133
134         * exp_ch3.adb (Build_Init_Statements): Transfer to the body of the
135         init procedure all the expanded code associated with the spec of
136         task types and protected types.
137
138 2008-08-22  Gary Dismukes  <dismukes@adacore.com>
139
140         * exp_aggr.adb (Static_Array_Aggregate): Call Analyze_And_Resolve on the
141         component expression copies rather than directly setting Etype and
142         Is_Static_Expression.
143
144 2008-08-22  Gary Dismukes  <dismukes@adacore.com>
145
146         * sem_util.adb (Has_Preelaborable_Initialization): Revise checking of
147         private types to allow for types derived from a private type with
148         preelaborable initialization, but return False for a private extension
149         (unless it has the pragma).
150
151 2008-08-22  Robert Dewar  <dewar@adacore.com>
152
153         * opt.ads: Minor code reorganization (put entries in alpha order)
154
155 2008-08-22  Pascal Obry  <obry@adacore.com>
156
157         * initialize.c, adaint.c: Use Lock_Task and Unlock_Task for non-blocking
158         spawn.
159
160 2008-08-22  Geert Bosch  <bosch@adacore.com>
161
162         * gcc-interface/trans.c: Define FP_ARITH_MAY_WIDEN
163         (convert_with_check): Only use longest_float_type if FP_ARITH_MAY_WIDEN is 0
164
165 2008-08-22  Doug Rupp  <rupp@adacore.com>
166
167         * bindgen.adb [VMS] (Gen_Adainit_Ada, Gen_Adainit_C): Import and call
168         __gnat_set_features.
169
170         * init.c
171         (__gnat_set_features): New function.
172         (__gnat_features_set): New tracking variable.
173         (__gl_no_malloc_64): New feature global variable
174
175 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
176
177         * sem_ch8.adb (Use_One_Type): Do not emit warning message about redundant
178         use_type_clause in an instance.
179
180 2008-08-22  Bob Duff  <duff@adacore.com>
181
182         * exp_ch6.ads: Remove pragma Precondition, since it breaks some builds.
183
184 2008-08-22  Robert Dewar  <dewar@adacore.com>
185
186         * exp_ch6.adb: Minor reformatting
187
188         * exp_ch7.adb: Minor reformatting
189
190         * exp_ch7.ads: Put routines in proper alpha order
191
192         * exp_dist.adb: Minor reformatting
193
194 2008-08-22  Vincent Celier  <celier@adacore.com>
195
196         * prj.ads: Minor comment update
197
198 2008-08-22  Robert Dewar  <dewar@adacore.com>
199
200         * sem_ch5.adb (One_Bound): Fix latent bug involving secondary stack
201
202 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
203
204         * exp_tss.adb:
205         (Base_Init_Proc): For a protected subtype, use the base type of the
206         corresponding record to locate the propoer initialization procedure.
207
208 2008-08-22  Robert Dewar  <dewar@adacore.com>
209
210         * checks.adb:
211         (In_Subrange_Of): New calling sequence
212         (Determine_Range): Prepare for new processing using base type
213
214         * exp_ch4.adb:
215         (Compile_Time_Compare): Use new calling sequence
216
217         * exp_ch5.adb:
218         (Compile_Time_Compare): Use new calling sequence
219
220         * sem_eval.adb:
221         (Compile_Time_Compare): New calling sequence allows dealing with
222         invalid values.
223         (In_Subrange_Of): Ditto
224
225         * sem_eval.ads:
226         (Compile_Time_Compare): New calling sequence allows dealing with
227         invalid values.
228         (In_Subrange_Of): Ditto
229
230 2008-08-22  Pascal Obry  <obry@adacore.com>
231
232         * adaint.c: Fix possible race condition on win32_wait().
233
234 2008-08-22  Bob Duff  <duff@adacore.com>
235
236         * exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb, freeze.adb,
237         exp_ch4.adb, exp_ch6.ads, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
238         exp_intr.adb, exp_ch3.adb: Rename:
239         Exp_Ch7.Controlled_Type => Needs_Finalization
240         Exp_Ch7.CW_Or_Controlled_Type => CW_Or_Has_Controlled_Part
241         Exp_Ch5.Expand_N_Extended_Return_Statement.Controlled_Type =>
242          Has_Controlled_Parts
243         (Has_Some_Controlled_Component): Fix bug in array case.
244
245 2008-08-22  Robert Dewar  <dewar@adacore.com>
246
247         * sem_ch8.adb: Minor reformatting
248
249 2008-08-22  Kevin Pouget  <pouget@adacore.com>
250
251         * s-shasto.ads, s-shasto.adb: Move Shared_Var_ROpen, Shared_Var_WOpen and
252         Shared_Var_Close procedure specifications from package spec to package body.
253
254         * rtsfind.ads: Remove RE_Shared_Var_Close, RE_Shared_Var_ROpen,
255         RE_Shared_Var_WOpen entries.
256
257         * exp_dist.adb: Update RE_Any_Content_Ptr to RE_Any_Container_Ptr in
258         Build_To_Any_Call, Build_TypeCode_Call and Build_From_Any_Call procedures.
259
260 2008-08-22  Eric Botcazou  <ebotcazou@adacore.com>
261
262         * init.c: adjust EH support code on Alpha/Tru64 as well.
263
264         * raise-gcc.c: Add back a couple of comments.
265
266 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
267
268         * exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is
269         involved and the return type is class-wide, use the type of the expression
270         for the generated access type. Suppress useless discriminant checks on the
271         allocator.
272
273 2008-08-22  Bob Duff  <duff@adacore.com>
274
275         * exp_ch7.adb: Minor comment fix
276
277         * exp_ch6.ads: Minor comment fix
278
279 2008-08-22  Thomas Quinot  <quinot@adacore.com>
280
281         * sem_ch8.adb: Minor reformatting
282         Minor code reorganization (introduce subprogram to factor duplicated
283         code).
284
285 2008-08-22  Sergey Rybin  <rybin@adacore.com>
286
287         * gnat_ugn.texi: Change the description of gnatcheck default rule
288         settings.
289
290 2008-08-22  Eric Botcazou  <ebotcazou@adacore.com>
291
292         * init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX,
293         Solaris, FreeBSD, VxWorks and PowerPC/Linux.  For x86{-64}/Linux,
294         do not adjust the PC anymore.
295         (__gnat_error_handler): Do not call __gnat_adjust_context_for_raise
296         on AIX, HP-UX, Solaris, FreeBSD and VxWorks.
297
298         * raise-gcc.c (get_call_site_action_for): Use _Unwind_GetIPInfo
299         instead of _Unwind_GetIP.
300
301 2008-08-22  Gary Dismukes  <dismukes@adacore.com>
302
303         * exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate
304         with a range is transformed into a positional aggregate, any copied
305         component literals should be marked Is_Static_Expression.
306
307         * sem_eval.adb (Compile_Time_Known_Value): Don't treat null literals as
308         not being known at at compile time when Configurable_Run_Time_Mode is
309         true.
310
311 2008-08-22  Robert Dewar  <dewar@adacore.com>
312
313         * exp_attr.adb:
314         (Expand_N_Attribute_Reference): No validity checking on OUT parameter of
315         Read or Input attribute.
316
317 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
318
319         * sem_ch8.adb (Use_One_Type): when checking which of two use_type
320         clauses in related units is redundant, if one of the units is a package
321         instantiation, use its instance_spec to determine which unit is the
322         ancestor of the other.
323
324 2008-08-22  Javier Miranda  <miranda@adacore.com>
325
326         * exp_attr.adb (Expand_N_Attribute_Reference): In case of access
327         attributes add missing support to handle designated types that come
328         from the limited view.
329
330         * exp_disp.adb (Expand_Interface_Conversion): Remove wrong assertion.
331
332 2008-08-22  Sergey Rybin  <rybin@adacore.com>
333
334         * vms_data.ads: Add entry for new gnatcheck -mNNN option
335
336         * gnat_ugn.texi: Add description for gnatcheck option '-m'
337
338 2008-08-22  Sergey Rybin  <rybin@adacore.com>
339
340         * gnat_ugn.texi: Update the gnatcheck subsection for metric rules
341         acoording to the latest changes in the metric rule interface
342
343 2008-08-22  Vincent Celier  <celier@adacore.com>
344
345         * make.adb (Check.File_Not_A_Source_Of): New Boolean function
346         (Check): Check if the file names registered in the ALI file for the
347         spec, the body and each of the subunits are the ones expected.
348
349 2008-08-22  Robert Dewar  <dewar@adacore.com>
350
351         * g-catiio.adb: Code cleanup.
352
353 2008-08-20  Vincent Celier  <celier@adacore.com>
354
355         * make.adb (Gnatmake): Remove extra space in version line
356
357         * ali.adb:
358         (Scan_ALI): Use Name_Find, not Name_Enter to get the name of a subunit,
359         as the name may already have been entered in the table by the Project
360         Manager.
361
362 2008-08-20  Jose Ruiz  <ruiz@adacore.com>
363
364         * errno.c (__get_errno, __set_errno for MaRTE): Transform then into
365         weak symbols so we use the version provided by MaRTE when available.
366
367 2008-08-20  Emmanuel Briot  <briot@adacore.com>
368
369         * g-catiio.ads, g-catiio.adb:
370         (Value): Avoid an unnecessary system call to Clock in most cases.
371         This call is only needed when only the time is provided in the string,
372         and ignored in all other cases. This is more efficient.
373
374 2008-08-20  Eric Botcazou  <ebotcazou@adacore.com>
375
376         * raise-gcc.c: Fix formatting nits.
377
378 2008-08-20  Robert Dewar  <dewar@adacore.com>
379
380         * sem_ch13.adb:
381         (Adjust_Record_For_Reverse_Bit_Order): Do not access First_Bit for
382         non-existing component clause.
383
384         * exp_ch5.adb: Minor reformatting
385
386         * g-comlin.adb: Minor reformatting
387
388         * make.adb: Minor reformatting
389
390         * prj-proc.adb: Minor reformatting
391
392         * stylesw.ads: Minor reformatting
393
394 2008-08-20  Vincent Celier  <celier@adacore.com>
395
396         * make.adb (Gnatmake_Switch_Found): New Boolean global variable
397         (Switch_May_Be_Passed_To_The_Compiler): New Boolean global variable
398         (Add_Switches): New Boolean parameter Unknown_Switches_To_The_Compiler
399          defaulted to True. Fail when Unknown_Switches_To_The_Compiler is False
400         and a switch is not recognized by gnatmake.
401         (Gnatmake): Implement new scheme for gnatmake switches and global
402         compilation switches.
403         (Switches_Of): Try successively Switches (<file name>),
404         Switches ("Ada"), Switches (others) and Default_Switches ("Ada").
405
406 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
407
408         * styleg-c.ads, styleg-c.adb (Missing_Overriding): new procedure to
409         implement style check that overriding operations are explicitly marked
410         at such.
411
412         * style.ads (Missing_Overriding): new procedure that provides interface
413         to previous one.
414
415         * stylesw.ads, stylesw.adb: New style switch -gnatyO, to enable check
416         that the declaration or body of overriding operations carries an
417         explicit overriding indicator.
418
419         * sem_ch8.adb
420         (Analyze_Subprogram_Renaming): if operation is overriding, check whether
421         explicit indicator should be present.
422
423         * sem_ch6.adb (Verify_Overriding_Indicator,
424         Check_Overriding_Indicator): If operation is overriding, check whether
425         declaration and/or body of subprogram should be present
426
427 2008-08-20  Vincent Celier  <celier@adacore.com>
428
429         * prj-nmsc.adb (Check_Naming_Schemes): Accept source file names for
430         gprbuild when casing is MixedCase, whatever the casing of the letters
431         in the file name.
432
433 2008-08-20  Gary Dismukes  <dismukes@adacore.com>
434
435         * exp_ch3.adb (Build_Array_Init_Proc): Clarify comment related to
436         creating dummy init proc.
437         (Requires_Init_Proc): Return False in the case No_Default_Initialization
438         is in force and the type does not have associated default
439         initialization. Move test of Is_Public (with tests of restrictions
440         No_Initialize_Scalars and No_Default_Initialization) to end, past tests
441         for default initialization.
442
443 2008-08-20  Jerome Lambourg  <lambourg@adacore.com>
444
445         * g-comlin.adb (For_Each_Simple_Switch): Take care of switches not part
446         of any alias or prefix but having attached parameters (as \"-O2\").
447
448 2008-08-20  Robert Dewar  <dewar@adacore.com>
449
450         * s-fileio.adb: Minor reformatting
451
452 2008-08-20  Thomas Quinot  <quinot@adacore.com>
453
454         * exp_strm.adb (Build_Elementary_Input_Call,
455         Build_Elementary_Write_Call): Fix incorrect condition in circuitry that
456         selects the stream attribute routines for long float types.
457
458 2008-08-20  Vincent Celier  <celier@adacore.com>
459
460         * prj-proc.adb (Process_Declarative_Items): Add Location for Array_Data
461
462         * prj.ads (Array_Data): Add a component Location
463
464 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
465
466         * sem_prag.adb:
467         (Analyze_Pragma, case Obsolescent): Add entity information on the pragma
468         argument for ASIS and navigation use.
469
470 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
471
472         * einfo.ads: Add comment.
473
474 2008-08-20  Bob Duff  <duff@adacore.com>
475
476         * sem_eval.ads: Minor comment fix.
477
478 2008-08-20  Bob Duff  <duff@adacore.com>
479
480         * exp_ch4.adb (Expand_N_And_Then, Expand_N_Or_Else): Improve constant
481         folding. We were folding things like "False and then ...", but not
482         "X and then ..." where X is a constant whose value is known at compile
483         time.
484
485 2008-08-20  Hristian Kirtchev  <kirtchev@adacore.com>
486
487         * exp_ch5.adb (Controlled_Type): New routine.
488         (Expand_N_Extended_Return_Statement): When generating a move of the
489         final list in extended return statements, check the type of the
490         function and in the case of double expanded return statements, the type
491         of the returned object.
492         (Expand_Simple_Function_Return): Perform an interface conversion when
493         the type of the returned object is an interface and the context is an
494         extended return statement.
495
496 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
497
498         * sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type
499         and the full view is visible, set flag on full view as well.
500
501 2008-08-20  Thomas Quinot  <quinot@adacore.com>
502
503         * g-comlin.adb: Minor reformatting
504         Minor code reorganization.
505
506         * freeze.adb: Minor reformatting
507
508 2008-08-20  Vincent Celier  <celier@adacore.com>
509
510         * prj-nmsc.adb (Check_File): An excluded Ada source file may be a
511         source of another project.
512
513 2008-08-20  Pascal Obry  <obry@adacore.com>
514
515         * s-os_lib.ads: Minor reformatting.
516
517 2008-08-20  Arnaud Charlet  <charlet@adacore.com>
518
519         * gnatvsn.ads: Minor reformatting.
520
521 2008-08-20  Arnaud Charlet  <charlet@adacore.com>
522
523         * a-crbtgk.adb, repinfo.adb, g-traceb.ads, repinfo.ads,
524         system-linux-s390x.ads, s-fatflt.ads, s-parame-ae653.ads, g-spipat.adb,
525         g-spipat.ads, g-tasloc.adb, g-debpoo.adb, g-except.ads, g-debpoo.ads,
526         mdll-utl.adb, g-string.adb, g-soliop-solaris.ads, par-sync.adb,
527         exp_ch6.ads, a-cihama.ads, g-curexc.ads, system-linux-sh4.ads,
528         g-utf_32.adb, g-hesorg.adb, s-proinf-irix-athread.ads, s-parint.adb,
529         s-parint.ads, exp_ch7.ads, system-linux-alpha.ads, g-dirope.adb,
530         sinfo-cn.adb, par-labl.adb, a-ciorse.adb, g-calend.adb,
531         s-parame-vms-alpha.ads, nlists.h, exp_imgv.adb, exp_fixd.ads,
532         g-calend.ads, gnatcmd.ads, g-table.adb, s-memory-mingw.adb,
533         g-alveop.ads, g-memdum.ads, g-altive.ads, initialize.c, g-regpat.adb,
534         g-busorg.ads, g-regpat.ads, g-encstr.ads, g-regexp.adb, g-regexp.ads,
535         live.ads, g-dyntab.adb, prj-nmsc.ads, par-ch12.adb, 9drpc.adb,
536         g-alvevi.ads, s-memory.adb, math_lib.adb, s-parame.ads, s-memory.ads,
537         s-regexp.adb, a-exexda.adb, i-cstrea-vms.adb, a-exexpr.adb,
538         g-soliop-mingw.ads, s-imgrea.adb, namet.adb, system-vms.ads,
539         s-inmaop-dummy.adb, s-finroo.ads, a-ngcefu.adb, s-hibaen.ads,
540         g-soliop.ads, s-auxdec.adb, g-locfil.ads, gnatxref.adb, memroot.adb,
541         osint-b.ads, memroot.ads, s-parame-hpux.ads, errutil.adb,
542         system-linux-s390.ads, par-util.adb, osint-c.ads, exp_pakd.ads,
543         i-pacdec.ads, par-endh.adb, mlib-tgt.ads, prj-strt.ads,
544         s-osprim-vms.adb, s-proinf.ads, output.ads, g-moreex.ads,
545         a-finali.ads, s-fatlfl.ads, namet.h, mdll.ads, g-dynhta.ads,
546         s-imgenu.ads, par-tchk.adb, g-excact.ads, memtrack.adb, s-fatgen.adb,
547         a-exexpr-gcc.adb, g-arrspl.adb, par-ch4.adb, g-cgideb.adb, freeze.ads,
548         g-altcon.adb, s-fatllf.ads, gnatfind.adb, s-osinte-lynxos-3.adb,
549         a-exextr.adb, g-htable.ads, a-calfor.adb, s-imgcha.adb, argv.c,
550         a-chahan.ads, g-hesora.adb, system-vms_64.ads, par-ch5.adb, g-md5.adb,
551         lib-xref.ads, g-md5.ads, g-casuti.ads, s-fatsfl.ads, exp_dbug.ads,
552         s-htable.ads, a-ngcoar.adb, s-arit64.ads, a-ngelfu.adb, a-filico.ads,
553         par-ch6.adb, s-inmaop.ads, s-parame-vxworks.ads, s-casuti.ads,
554         a-numaux-darwin.adb, a-cohama.ads, system-linux-sparc.ads, g-os_lib.adb,
555         system-vms-ia64.ads, s-parame-vms-restrict.ads, a-clrefi.ads,
556         s-parame-vms-ia64.ads, a-strfix.adb, a-coorse.adb, a-comlin.ads,
557         a-chtgke.adb, s-imgint.adb, g-expect.ads, exp_ch4.ads, s-finimp.adb,
558         mingw32.h, g-heasor.adb, g-alleve.adb, a-ngrear.adb, s-mastop-irix.adb,
559         s-poosiz.adb, link.c: Fix copyright notice.
560
561 2008-08-20  Arnaud Charlet  <charlet@adacore.com>
562
563         * g-comlin.ads: Update comments.
564
565 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
566
567         * sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag.
568
569 2008-08-20  Gary Dismukes  <dismukes@adacore.com>
570
571         * exp_ch11.adb:
572         (Expand_Exception_Handlers): Call Make_Exception_Handler instead of
573         Make_Implicit_Exception_Handler when rewriting an exception handler with
574         a choice parameter, and pass the handler's Sloc instead of that of the
575         handled sequence of statements. Make_Implicit_Exception_Handler sets the
576         Sloc to No_Location (unless debugging generated code), which we don't
577         want for the case of a user handler.
578
579 2008-08-20  Robert Dewar  <dewar@adacore.com>
580
581         * freeze.adb (Freeze_Record_Type): Improve msg for non-contiguous field
582         
583         * sem_ch13.adb:
584         (Adjust_Record_For_Reverse_Bit_Order): Messages about layout are
585         now labeled as info msgs, not warnings.
586
587         * tbuild.ads: Clarify documentation of Make_Implicit_Exception_Handler
588
589         * usage.adb: Minor change to avoid overlong line for -gnatwz/Z
590
591         * a-textio.adb: Remove redundant test.
592
593         * a-witeio.adb: Minor code reorganization
594         Remove redundant test found working on another issue
595
596         * a-ztexio.adb: Minor code reorganization
597         Remove redundant test found working on another issue
598
599 2008-08-20  Thomas Quinot  <quinot@adacore.com>
600
601         * s-fileio.adb (Open) Use C helper function to determine whether a
602         given errno value corresponds to a "file not found" error.
603
604         * sysdep.c (__gnat_is_file_not_found_error): New C helper function.
605
606 2008-08-20  Jose Ruiz  <ruiz@adacore.com>
607
608         * errno.c (__get_errno for MaRTE): Use the MaRTE function pthread_errno
609         to get access to the per-task errno variable.
610         (__set_errno for MaRTE): Do not redefine this function here since it is
611         already defined in MaRTE.
612
613 2008-08-20  Tristan Gingold  <gingold@adacore.com>
614
615         * gnat_ugn.texi: Gcov is not supported on static library on AIX.
616
617 2008-08-20  Robert Dewar  <dewar@adacore.com>
618
619         * freeze.adb: Minor reformatting
620
621         * g-comlin.adb: Minor reformatting
622
623         * g-socket.adb: Minor reformatting
624
625         * g-socthi-mingw.adb: Minor reformatting
626
627         * g-stheme.adb: Minor reformatting
628
629 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
630
631         * sem_aggr.adb, sem_type.adb, exp_ch9.ads, einfo.ads,
632         exp_ch6.adb, exp_aggr.adb (Valid_Ancestor): Resolve
633         confusion between partial and full views of an ancestor of the context
634         type when the parent is a private extension declared in a parent unit,
635         and full views are available for the context type.
636
637 2008-08-18  Samuel Tardieu  <sam@rfc1149.net>
638             Robert Dewar  <dewar@adacore.com>
639
640         PR ada/30827
641         * bindgen.adb (Gen_Output_File_Ada): Zero-terminate the
642         version string.
643         Move comment in the right place.
644         * g-comver.adb (Version): Look for a zero-termination in
645         addition to a closing parenthesis.
646
647 2008-08-18  Samuel Tardieu  <sam@rfc1149.net>
648
649         * exp_ch13.adb, exp_disp.adb, sem_cat.adb, sem_ch10.adb,
650         * sem_ch12.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
651         * sem_prag.adb, sem_util.adb, sem_warn.adb: Use
652         Is_Package_Or_Generic_Package instead of hand-crafted tests.
653
654 2008-08-18  Samuel Tardieu  <sam@rfc1149.net>
655
656         PR ada/15808
657         * sem_ch6.adb (Check_Private_Overriding): Check for generic packages
658         as well.
659
660 2008-08-17  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
661
662         * adaint.c (_gnat_set_close_on_exec) [_WIN32]: Implement.
663
664 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
665
666         * gcc-interface/trans.c (call_to_gnu): Use the Sloc of the call
667         for back-copy statements in lieu of that of the actual.
668
669 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
670
671         PR ada/20548
672         * gcc-interface/decl.c (gnat_to_gnu_entity): Use DECL_SIZE_UNIT in the
673         setjmp test consistently.  Adjust for new behavior of flag_stack_check.
674         * gcc-interface/utils2.c (build_call_alloc_dealloc): Remove redundant
675         test of flag_stack_check.  Adjust for new behavior of flag_stack_check.
676
677 2008-08-13  Samuel Tardieu  <sam@rfc1149.net>
678
679         PR ada/36777
680         * sem_util.ads, sem_util.adb (Is_Protected_Self_Reference): New.
681         * sem_attr.adb (Check_Type): The current instance of a protected
682         object is not a type name.
683         (Analyze_Access_Attribute): Accept instances of protected objects.
684         (Analyze_Attribute, Attribute_Address clause): Ditto.
685         * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite
686         the prefix as being the current instance if needed.
687
688 2008-08-12  Danny Smith  <danyssmith@users.sourceforge.net>
689
690         * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) [WINDOWS]:
691         Remove duplicate s-win32.o. Add s-winext.o.
692
693 2008-08-12  Danny Smith  <danyssmith@users.sourceforge.net>
694
695         * g-stsifd-sockets.adb (Create): Replace Constants.SOCK_STREAM
696         with SOSC.SOCK__STREAM.
697         * g-socthi-mingw.adb (C_Select) Replace Constants.MSG_OOB with
698         SOSC.MSG_OOB.
699
700 2008-08-11  Joel Sherrill  <joel.sherrill@oarcorp.com>
701
702         * s-oscons-tmplt.c: RTEMS defines AF_INET6 but does support it.
703         * gsocket.h, socket.c: Update to support RTEMS.
704         * gcc-interface/Make-lang.in: Include CFLAGS_FOR_TARGET when cross.
705
706 2008-08-10  Samuel Tardieu  <sam@rfc1149.net>
707             Robert Dewar <dewar@adacore.com>
708
709         * exp_ch4.adb (Expand_N_Op_Expon): Force evaluation of
710         left argument even when right argument is 0.
711         (Expand_N_Op_Mod): Ditto when right argument is 1.
712         (Expand_N_Op_Multiply): Ditto when any argument is 0.
713         (Expand_N_Op_Rem): Ditto when right argument is 1.
714
715 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
716
717         * gcc-interface/misc.c (gnat_handle_option): Replace set_Wunused
718         by warn_unused.
719         
720 2008-08-08  Ed Schonberg  <schonberg@adacore.com>
721
722         * freeze.adb (Generate_Prim_Op_References): New procedure, abstracted
723         from Freeze_Entity. Used to generate cross-reference information for
724         types declared in generic packages.
725
726 2008-08-08  Thomas Quinot  <quinot@adacore.com>
727
728         * gcc-interface/Makefile.in: Reintroduce g-soccon.ads as a
729         compatibility shim.
730
731 2008-08-08  Thomas Quinot  <quinot@adacore.com>
732
733         * gsocket.h:
734         On Windows, include <errno.h> and redefine only selected errno values
735         from their <winsock2.h> definitions.
736
737         * s-osinte-freebsd.ads: Minor reformatting
738
739         * s-osinte-hpux.ads, s-osinte-irix.ads: Minor reformatting
740
741         * g-soccon.ads: New file.
742
743         * g-stheme.adb, g-socthi-vms.adb, g-socthi-vxworks.adb,
744         g-socthi-mingw.adb, g-sttsne-vxworks.adb, g-socthi.adb,
745         g-stsifd-sockets.adb, g-socket.adb, g-socket.ads,
746         g-sothco.adb, g-sothco.ads: Add back GNAT.Sockets.Constants as a child
747         unit, to allow building software that depends on this internal unit
748         with both older and newer compilers.
749
750 2008-08-08  Robert Dewar  <dewar@adacore.com>
751
752         * s-strxdr.adb: Minor reformatting
753
754 2008-08-08  Bob Duff  <duff@adacore.com>
755
756         * gnat_ugn.texi: The "Run-Time Checks" section said "arithmetic overflow
757         checking for integer operations (including division by zero)", which
758         is wrong -- divide by zero is not part of overflow checking.
759         Also added misc clarification about what check-suppression means.
760
761         * gnat_rm.texi: Clarify the meaning of pragma Suppress.
762
763 2008-08-08  Jerome Lambourg  <lambourg@adacore.com>
764
765         * g-comlin.adb (Add_Switch): Handle addition of switches at the
766         begining of the command line.
767         (Append, Add): Renaming of Append to Add as this now allows addition
768         at the begining of the list.
769         
770         * g-comlin.ads (Add_Switch): Handle addition of switches at the
771         begining of the command line.
772
773 2008-08-08  Thomas Quinot  <quinot@adacore.com>
774
775         * g-sercom.ads:
776         (Name): Document application scope (only legacy PC serial ports on
777         Linux and Windows).
778
779 2008-08-08  Thomas Quinot  <quinot@adacore.com>
780
781         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Revert
782         previous change, not needed after all.
783
784 2008-08-08  Ed Schonberg  <schonberg@adacore.com>
785
786         * exp_ch4.adb (Expand_Allocator_Expression): add check if null
787         exclusion indicator is present
788
789 2008-08-08  Robert Dewar  <dewar@adacore.com>
790
791         * g-comlin.adb: Minor code reorganization
792         Minor reformatting
793
794         * g-comlin.ads: Minor reformatting
795
796         * s-fileio.adb: Minor reformatting
797
798         * sem_attr.adb: Minor code reorganization (use Nkind_In)
799         Minor reformatting
800
801 2008-08-06  Samuel Tardieu  <sam@rfc1149.net>
802
803         * gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing
804         with s-oscons-tmplt.i.
805
806 2008-08-06  Samuel Tardieu  <sam@rfc1149.net>
807
808         * gcc-interface/Make-lang.in (OSCONS_CPPFLAGS): Remove.
809
810 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
811
812         * sem_ch3.adb (Analyze_Component_Declaration): Protect against misuse
813         of incomplete type.
814
815         * sem_ch8.adb (Analyze_Object_Renaming): Diagnose properly a renaming
816         of a formal parameter of an incomplete type. Improve error message for
817         other improper uses of incomplete types.
818
819 2008-08-06  Robert Dewar  <dewar@adacore.com>
820
821         * gnat_ugn.texi: Clarify -gnato documentation
822
823 2008-08-06  Thomas Quinot  <quinot@adacore.com>
824
825         * gcc-interface/Makefile.in,
826         g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb,
827         g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads,
828         g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads,
829         g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads,
830         g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads,
831         g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads,
832         g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads,
833         g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads,
834         g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads:
835         Remove GNAT.Sockets.Constants. This internal package is replaced by
836         System.OS_Constants.
837
838 2008-08-06  Thomas Quinot  <quinot@adacore.com>
839
840         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
841         Remove obsolete targets referencing gen-soccon
842         When generating s-oscons.ads, use a file name that includes the
843         THREAD_KIND, to ensure that the (potentially different) version from a
844         previous build with a different threads flavour does not get reused.
845
846 2008-08-06  Thomas Quinot  <quinot@adacore.com>
847
848         * sem_res.adb: Minor reformatting
849
850         * s-fileio.adb (Open): When file open operation fails, raise Name_Error
851         only when the operating system reports a non-existing file or directory
852         (ENOENT), otherwise raise Name_Error.
853
854         * exp_ch11.adb: Minor reformatting
855
856 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
857
858         * sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
859         incomplete, add the access_to_subprogram type to the list of private
860         dependents only if the incomplete type will be completed in the current
861         scope.
862         (Build_Discriminant_Constraints): If the type of the discriminant is
863         access_to_variable, reject a constraint that is access_to_constant.
864
865 2008-08-06  Thomas Quinot  <quinot@adacore.com>
866
867         * g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb,
868         g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads,
869         g-sttsne-dummy.ads: New files.
870
871         * gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources
872         with pragma Unimplemented_Unit for sockets packages on Nucleus.
873
874 2008-08-06  Pascal Obry  <obry@adacore.com>
875
876         * adaint.c: Another fix for ACL support on Windows.
877
878 2008-08-06  Javier Miranda  <miranda@adacore.com>
879
880         * exp_disp (Expand_Interface_Actuals): Adds missing support for
881         expansion of calls to subprograms using selected components.
882
883 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
884
885         * sem_res.adb (Resolve_Call): Use base type to determine whether a
886         dereference is needed because a subtype of an access_to_subprogram is
887         simply an access-subtype
888
889 2008-08-06  Jerome Lambourg  <lambourg@adacore.com>
890
891         * g-comlin.adb (Set_Command_Line): Now that aliases can contain
892         parameters, always specify the expected separator.
893
894 2008-08-06  Thomas Quinot  <quinot@adacore.com>
895
896         * xnmake.adb: Use new XUtil package for platform independent text
897         output.
898
899 2008-08-06  Vincent Celier  <celier@adacore.com>
900
901         * gnat_ugn.texi: Document compiler switch -gnateG
902
903 2008-08-06  Quentin Ochem  <ochem@adacore.com>
904
905         * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark
906         in the case of an empty pattern size.
907         (Compute_Result): Do not do any computation in the case of an empty
908         pattern size.
909         (Report_Result): Fixed computation of the overflow guard.
910
911 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
912
913         * g-awk.adb (Finalize): Do not use directly objects of the type in the
914         finalization routine to prevent elaboration order anomalies in new
915         finalization scheme.
916
917 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
918
919         * sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
920         declaration for the same type.
921
922 2008-08-06  Thomas Quinot  <quinot@adacore.com>
923
924         * sem.adb: Minor rewording (comment)
925
926 2008-08-06  Jerome Lambourg  <lambourg@adacore.com>
927
928         * g-comlin.adb (Define_Switch, Get_Switches): New.
929         (Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
930         ungrouping switches.
931         (For_Each_Simple_Switch): Allow more control over parameters handling.
932         This generic method now allows ungrouping of switches with parameters
933         and switches with more than one letter after the prefix.
934         (Set_Command_Line): Take care of switches that are prefixed with a
935         switch handling parameters without delimiter (-gnatya and -gnaty3 for
936         example).
937         (Add_Switch, Remove_Switch): Handle parameters possibly present inside
938         a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
939         the operation.
940         (Start, Alias_Switches, Group_Switches): Take care of parameters
941         possibly present inside a group.
942
943         * g-comlin.ads (Define_Switch): New method used to define a list of
944         expected switches, that are necessary for correctly ungrouping switches
945         with more that one character after the prefix.
946         (Get_Switches): Method that builds a getopt string from the list of
947         switches as set previously by Define_Switch.
948         (Add_Switch, Remove_Switch): New versions of the methods, reporting the
949         status of the operation. Also allow the removal of switches with
950         parameters only.
951         (Command_Line_Configuration_Record): Maintain a list of expected
952         switches.
953
954 2008-08-06  Doug Rupp  <rupp@adacore.com>
955
956         * gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if
957         TARGET_MALLOC64 clear.
958
959         * gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc
960         if TARGET_MALLOC64 clear.
961
962         * gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c
963         (TARGET_MALLC64): New macro. Default to clear.
964
965 2008-08-06  Doug Rupp  <rupp@adacore.com>
966
967         * gcc-interface/utils2.c (snames.h) Include
968         (TARGET_ABI_OPEN_VMS): Initialize.
969         (build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap
970         for Convention C.
971
972 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
973
974         * sem_ch3.adb (Process_Discriminants): diagnose redundant or improper
975         null exclusion in a discriminant declaration
976
977         * sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion
978         indicators when type is not an access type.
979
980         * sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion
981         indicators when type is not an access type.
982
983 2008-08-06  Javier Miranda  <miranda@adacore.com>
984
985         * exp_disp (Expand_Interface_Conversion): Freeze the entity associated
986         with the target interface before expanding the code of the interface
987         conversion.
988
989 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
990
991         * freeze.adb:
992         (Freeze_Entity): A deferred constant does not violate the restriction
993         No_Default_Initialization, 
994
995         * sem_ch3.adb (Process_Subtype): An allocator is a valid construct that
996         can carry a null exclusion indicator, and on which an error may be
997         posted if the indicator is redundant.
998
999         * sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion
1000         does not apply to a subtype mark that already excludes null.
1001
1002         * sem_ch12.adb (Formal_Object_Declaration): Verify that a null
1003         exclusion does not apply to a subtype mark that already excludes null.
1004
1005 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1006
1007         * Makefile.rtl: Compile s-oscons.ads as part of the runtime library.
1008
1009 2008-08-05  Doug Rupp  <rupp@adacore.com>
1010
1011         * vms_data.ads: Translation for /POINTER_SIZE qualifier.
1012
1013 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1014
1015         * gsocket.h: Make this file includable in a Nucleus environment, which
1016         does not support sockets.
1017
1018         * socket.c: Remove Nucleus-specific hack.
1019
1020 2008-08-05  Pascal Obry  <obry@adacore.com>
1021
1022         * adaint.c: Remove support for readable attribute on vxworks and nucleus
1023
1024 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
1025
1026         * sem_attr.adb:
1027         (Analyze_Attribute, case 'Result): handle properly the case where some
1028         operand of the expression in a post-condition generates a transient
1029         block.
1030
1031         * sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to
1032         right-hand side when it is an anonymous access_to_subprogram, to force
1033         static accessibility check when needed.
1034
1035 2008-08-05  Sergey Rybin  <rybin@adacore.com>
1036
1037         * gnat_ugn.texi: Changing the description of the gnatcheck metrics
1038         rule according to the change in the rule option.
1039         Add documentation for -gnatw.b/-gnatw.B
1040
1041 2008-08-05  Robert Dewar  <dewar@adacore.com>
1042
1043         * ug_words: Add entries for -gnatw.b/-gnatw.B
1044
1045         * vms_data.ads: Add entries for -gnatw.b/-gnatw.B
1046
1047 2008-08-05  Vincent Celier  <celier@adacore.com>
1048
1049         * a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
1050         (File).
1051         
1052         * a-ztdeio.adb: Ditto.
1053
1054 2008-08-05  Pascal Obry  <obry@adacore.com>
1055
1056         * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
1057         readable attribute.
1058
1059 2008-08-05  Vincent Celier  <celier@adacore.com>
1060
1061         * s-wchwts.adb:
1062         (Wide_String_To_String): Returns a String with the same 'First as its
1063         parameter S.
1064         (Wide_Wide_String_To_String): Ditto
1065         
1066         * s-wchwts.ads:
1067         (Wide_String_To_String): Document that the lowest index of the returned
1068         String is equal to S'First.
1069
1070 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1071
1072         * xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.
1073
1074         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
1075         s-oscons.ads
1076
1077 2008-08-05  Robert Dewar  <dewar@adacore.com>
1078
1079         * opt.ads (Warn_On_Biased_Representation): New flag
1080         
1081         * sem_ch13.adb:
1082         (Analyze_Attribute_Definition_Clause): Issue warning when biased
1083         representation is required.
1084         (Minimum_Size): Don't allow biasing if enum rep clause case
1085         
1086         * sem_warn.adb:
1087         (Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
1088         (Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
1089         
1090         * usage.adb: Add lines for -gnatw.b/B switches
1091
1092 2008-08-05  Pascal Obry  <obry@adacore.com>
1093
1094         * a-coinve.adb: Reorder the code to avoid uninitialized warning.
1095
1096         * adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
1097
1098 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1099
1100         * socket.c: Minor reformatting.
1101
1102 2008-08-05  Robert Dewar  <dewar@adacore.com>
1103
1104         * sem_ch3.adb: Minor reformatting
1105
1106         * prj-nmsc.adb: Minor reformatting
1107
1108 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
1109
1110         * sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
1111         visibility check on the component type if the simple test fails.
1112
1113 2008-08-05  Jose Ruiz  <ruiz@adacore.com>
1114
1115         * init.c (__gnat_install_handler for linux): If we are building the
1116         Xenomai run time then we need to do two additional things: avoid
1117         memory swapping and transform the Linux environment task into a native
1118         Xenomai task.
1119
1120         * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
1121         time): Use interface to Xenomai native skin and avoid linux-specific
1122         way of setting CPU affinity.
1123         (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.
1124
1125 2008-08-05  Bob Duff  <duff@adacore.com>
1126
1127         * checks.ads: Minor comment fix
1128
1129 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1130
1131         * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
1132         g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
1133         CS8.
1134
1135 2008-08-05  Robert Dewar  <dewar@adacore.com>
1136
1137         * mlib.adb: Minor code reorganization
1138         Minor reformatting
1139
1140         * make.adb: Minor reformatting
1141
1142         * prj-attr.ads: Minor reformatting
1143
1144         * s-os_lib.adb: Minor reformatting
1145
1146         * s-fileio.adb: Minor code reorganization
1147         Minor reformatting
1148
1149         * prj.ads: Minor reformatting
1150
1151 2008-08-05  Bob Duff  <duff@adacore.com>
1152
1153         * sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
1154         unresolved initial value of "null", because it causes implicitly
1155         generated "=" operators to be ambiguous, and because this type should
1156         not be passed to gigi.
1157
1158 2008-08-05  Vincent Celier  <celier@adacore.com>
1159
1160         * mlib.adb: Update comments.
1161
1162         * make.adb (Switches_Of): Check for Switches (others), before checking
1163         for Default_Switches ("Ada").
1164         (Gnatmake): Use Builder'Switches (others) in preference to
1165         Builder'Default_Switches ("Ada") if there are several mains.
1166
1167         * prj-attr-pm.adb:
1168         (Add_Attribute): Add component Others_Allowed in Attribute_Record
1169         aggregate.
1170
1171         * prj-attr.adb:
1172         Add markers to indicates that attributes Switches allow others as index
1173         (Others_Allowed_For): New Boolean function, returning True for
1174         attributes with the mark.
1175         (Initialize): Recognize optional letter 'O' as the marker for
1176         associative array attributes where others is allowed as the index.
1177
1178         * prj-attr.ads:
1179         (Others_Allowed_For): New Boolean function
1180         (Attribute_Record): New Boolean component Others_Allowed
1181         
1182         * prj-dect.adb:
1183         (Parse_Attribute_Declaration): For associative array attribute where
1184         others is allowed as the index, allow others as an index.
1185
1186         * prj-nmsc.adb:
1187         (Process_Binder): Skip associative array attributes with index others
1188         (Process_Compiler): Ditto
1189
1190         * prj-util.adb:
1191         (Value_Of (Index, In_Array)): Make no attempt to put in lower case when
1192         index is All_Other_Names.
1193
1194         * prj.ads:
1195         (All_Other_Names): New constant
1196
1197         * prj-proc.adb:
1198         (Process_Declarative_Items): Skip associative array attribute when index
1199         is reserved word "others".
1200
1201 2008-08-05  Vasiliy Fofanov  <fofanov@adacore.com>
1202
1203         * gen-oscons.c: Adapt for VMS where termios.h is not available.
1204
1205 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1206
1207         * a-rttiev.adb: Minor reformatting (comments)
1208
1209         * gen-soccon.c: Rename to gen-oscons.c
1210
1211         * gen-oscons.c: New file. Now generate System.OS_Constants instead of
1212         GNAT.Sockets.Constants.
1213         Add new constants for GNAT.Serial_Communications and System.File_IO.
1214
1215 2008-08-05  Javier Miranda  <miranda@adacore.com>
1216
1217         * sem_util.adb (Collect_Interfaces_Info): Minor reformating.
1218         * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
1219         implementation of this routine has been simplified.
1220
1221 2008-08-05  Pascal Obry  <obry@adacore.com>
1222
1223         * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
1224         Set_Read_Only Win32 implementation.
1225
1226 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1227
1228         * exp_strm.adb: Minor reformatting (comments)
1229
1230         * sem_ch12.adb: Minor reformatting.
1231
1232 2008-08-05  Robert Dewar  <dewar@adacore.com>
1233
1234         * sem_ch3.adb: Minor reformatting
1235
1236         * checks.adb: Minor reformatting
1237
1238 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1239
1240         * tbuild.ads (New_External_Name): Update spec to reflect relaxed
1241         restriction on Prefix.
1242
1243 2008-08-05  Jerome Lambourg  <lambourg@adacore.com>
1244
1245         * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
1246         methods needed to handle switch sections when building a command line.
1247         (Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
1248         Current_Section): New public methods or methods modified to handle
1249         building command lines with sections.
1250         (Set_Command_Line): Take into account sections when analysing a switch
1251         string.
1252         (Start): Sort the switches by sections before iterating the command line
1253         elements.
1254         
1255         * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
1256         Is_New_Section, Current_Section): New methods or methods modified to
1257         handle building command lines with sections.
1258
1259 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
1260
1261         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
1262         discriminants, indicate that the corresponding object declaration has
1263         no initialization, to prevent spurious warnings when the access type is
1264         null-excluding.
1265
1266 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
1267
1268         * sem_res.adb (Resolve_Call): If this is a call to the predefined
1269         Abort_Task, warn if the call appears within a protected operation.
1270
1271 2008-08-04  Robert Dewar  <dewar@adacore.com>
1272
1273         * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
1274
1275 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1276
1277         * sem_ch3.adb:
1278         (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
1279         anonymous access to protected subprogram that is the return type of the
1280         specification of a subprogram body.
1281
1282         * sem_ch6.adb:
1283         (Analyze_Subprogram_Body): if the return type is an anonymous access to
1284         subprogram, freeze it now to prevent access anomalies in the back-end.
1285
1286         * exp_ch9.adb: Minor code cleanup.
1287         Make sure that new declarations are inserted into the tree before
1288         analysis (from code reading).
1289
1290 2008-08-04  Robert Dewar  <dewar@adacore.com>
1291
1292         * exp_ch5.adb:
1293         (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
1294         at point of return.
1295
1296 2008-08-04  Thomas Quinot  <quinot@adacore.com>
1297
1298         * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
1299
1300 2008-08-04  Vasiliy Fofanov  <fofanov@adacore.com>
1301
1302         * g-soccon-mingw.ads: Fix value for MSG_WAITALL
1303
1304 2008-08-04  Javier Miranda  <miranda@adacore.com>
1305
1306         * sem_prag.adb (Process_Convention): Add missing support for
1307          N_Private_Extension_Declaration nodes.
1308
1309 2008-08-04  Robert Dewar  <dewar@adacore.com>
1310
1311         * exp_ch4.adb: Minor reformatting
1312
1313 2008-08-04  Pascal Obry  <obry@adacore.com>
1314
1315         * adaint.h: Add missing prototype.
1316
1317         * adaint.c: Refine support for Windows file attributes.
1318
1319 2008-08-04  Robert Dewar  <dewar@adacore.com>
1320
1321         * sem_res.adb:
1322         (Valid_Conversion): Catch case of designated types having different
1323         sizes, even though they statically match.
1324
1325 2008-08-04  Javier Miranda  <miranda@adacore.com>
1326
1327         * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
1328         added in previous patch to handle access to subprograms.
1329
1330 2008-08-04  Robert Dewar  <dewar@adacore.com>
1331
1332         * freeze.adb:
1333         (Freeze_Entity): Only check No_Default_Initialization restriction for
1334         constructs that come from source
1335
1336 2008-08-04  Thomas Quinot  <quinot@adacore.com>
1337
1338         * exp_ch6.adb: Minor comment fix.
1339
1340         * sem_ch4.adb: Minor reformatting.
1341
1342 2008-08-04  Robert Dewar  <dewar@adacore.com>
1343
1344         * sem_res.adb: (Large_Storage_Type): Improve previous change.
1345
1346 2008-08-04  Pascal Obry  <obry@adacore.com>
1347
1348         * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
1349         file attributes.
1350
1351 2008-08-04  Javier Miranda  <miranda@adacore.com>
1352
1353         * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
1354         for N_Formal_Object_Declaration nodes. Adding kludge required by
1355         First_Formal to provide its functionality with access to functions.
1356         (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
1357         for anonymous access types returned by functions.
1358
1359         * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
1360         conversion of null-excluding access types (required only once to force
1361         the generation of the required runtime check).
1362
1363         * sem_type.adb (Covers): minor reformating
1364
1365         * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
1366         with internally generated nodes. Avoid generating the error inside init
1367         procs.
1368
1369         * sem_res.adb (Resolve_Membership_Test): Minor reformating.
1370         (Resolve_Null): Generate the null-excluding check in case of assignment
1371         to a null-excluding object.
1372         (Valid_Conversion): Add missing support for anonymous access to
1373         subprograms.
1374
1375         * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
1376         anonymous access types whose designated type is an itype. This case
1377         occurs with anonymous access to protected subprograms types.
1378         (Analyze_Return_Type):  Add missing support for anonymous access to
1379         protected subprogram.
1380
1381         * sem_eval.adb (Subtypes_Statically_Match): In case of access to
1382         subprograms addition of missing check on matching convention. Required
1383         to properly handle access to protected subprogram types.
1384
1385         * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
1386         null excluding access types.
1387
1388 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1389
1390         * sem_ch12.adb: Add comments
1391
1392         * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
1393         access type and the allocator is not initialized, warn rather than
1394         reporting an error.
1395
1396 2008-08-04  Robert Dewar  <dewar@adacore.com>
1397
1398         * exp_ch4.adb: Minor reformatting
1399
1400         * exp_dist.adb: Minor reformatting
1401
1402         * g-comlin.adb: Minor reformatting
1403
1404 2008-08-04  Gary Dismukes  <dismukes@adacore.com>
1405
1406         * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
1407         target to the type of the aggregate in the case where the target object
1408         is class-wide.
1409
1410         * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
1411         result type is class-wide and inherently limited, and the expression
1412         has a specific type, create a return object of the specific type, for
1413         more efficient handling of returns of build-in-place aggregates (avoids
1414         conversions of the class-wide return object to the specific type on
1415         component assignments).
1416
1417         * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
1418         about a type mismatch for a class-wide function with a return object
1419         having a specific type when the object declaration doesn't come from
1420         source. Such an object can result from the expansion of a simple return.
1421
1422 2008-08-04  Vasiliy Fofanov  <fofanov@adacore.com>
1423
1424         * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
1425
1426         * gcc-interface/Makefile.in: Use 64bit-specific system files when
1427         compiling for 64bit windows.
1428
1429 2008-08-04  Jerome Lambourg  <lambourg@adacore.com>
1430
1431         * g-comlin.adb (Group_Switches): Preserve the switch order when
1432         grouping and allow switch grouping of switches with more than one
1433         character extension (e.g. gnatw.x).
1434         (Args_From_Expanded): Remove this now obsolete method.
1435
1436 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1437
1438         * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
1439         chain at once, to ensure that type is properly decorated for back-end,
1440         when allocator appears within a loop.
1441
1442 2008-08-04  Kevin Pouget  <pouget@adacore.com>
1443
1444         * snames.h, snames.adb, snames.ads:
1445         Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
1446
1447         * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
1448         Build_To_Any_Call and Build_TypeCode_Call procedures.
1449
1450         * exp_attr.adb, sem_attr.adb: Add corresponding cases.
1451
1452         * rtsfind.ads: Add corresponding names.
1453
1454         * tbuild.adb: Update prefix restrictions to allow '_' character.
1455
1456 2008-08-04  Doug Rupp  <rupp@adacore.com>
1457
1458         * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
1459         * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
1460         * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
1461         use it.  Calculate pointer range overflow using 64bit types.
1462
1463 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1464
1465         * sem_ch3.adb (Access_Definition): A formal object declaration is a
1466         legal context for an anonymous access to subprogram.
1467
1468         * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
1469         indirect call, report success to the caller to include possible
1470         interpretation.
1471
1472         * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
1473         check when the type
1474         of the extended return is an anonymous access_to_subprogram type.
1475
1476         * sem_res.adb:
1477         (Resolve_Call): Insert a dereference if the type of the subprogram is an
1478         access_to_subprogram and the context requires its return type, and a
1479         dereference has not been introduced previously.
1480
1481 2008-08-04  Arnaud Charlet  <charlet@adacore.com>
1482
1483         * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
1484         gnatcheck support in GPS.
1485
1486 2008-08-04  Vincent Celier  <celier@adacore.com>
1487
1488         * mlib.adb (Create_Sym_Links): Create relative symbolic links when
1489         requested
1490
1491 2008-08-04  Vincent Celier  <celier@adacore.com>
1492
1493         * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
1494         variable, but don't check the resulting value as it has no impact on
1495         the processing.
1496         
1497         * opt.ads:
1498         (Generate_Processed_File): New Boolean flag, set to True in the compiler
1499         when switch -gnateG is used.
1500         
1501         * prep.adb:
1502         (Preprocess): new Boolean out parameter Source_Modified. Set it to True
1503         when the source is modified by the preprocessor and there is no
1504         preprocessing errors.
1505         
1506         * prep.ads (Preprocess): new Boolean out parameter Source_Modified
1507         
1508         * sinput-l.adb:
1509         (Load_File): Output the result of preprocessing if the source text was
1510         modified.
1511         
1512         * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
1513         
1514         * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
1515         
1516         * ug_words: Add VMS equivalent for -gnateG
1517         
1518         * vms_data.ads:
1519         Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
1520
1521 2008-08-04  Doug Rupp  <rupp@adacore.com>
1522
1523         * gcc-interface/utils2.c:
1524         (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
1525         in 32bit descriptor.
1526
1527 2008-08-04  Robert Dewar  <dewar@adacore.com>
1528
1529         * par-ch10.adb: Minor reformatting
1530
1531         * i-cobol.adb: Minor reformatting.
1532
1533 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1534
1535         * sem_ch3.adb (Access_Definition): Create an itype reference for an
1536         anonymous access return type of a regular function that is not a
1537         compilation unit.
1538
1539 2008-08-04  Vincent Celier  <celier@adacore.com>
1540
1541         * prj-attr.adb: New Builder attribute Global_Compilation_Switches
1542         
1543         * snames.adb: New standard name Global_Compilation_Switches
1544         
1545         * snames.ads: New standard name Global_Compilation_Switches
1546
1547         * make.adb: Correct spelling error in comment
1548
1549 2008-08-04  Arnaud Charlet  <charlet@adacore.com>
1550
1551         * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
1552         target.
1553
1554 2008-08-04  Thomas Quinot  <quinot@adacore.com>
1555
1556         * sem_ch10.adb: Minor comment fix.
1557
1558 2008-08-04  Robert Dewar  <dewar@adacore.com>
1559
1560         * restrict.adb: Improved messages for restriction warnings
1561
1562         * restrict.ads: Improved messages for restriction messages
1563
1564         * s-rident.ads (Profile_Name): Add No_Profile
1565
1566 2008-08-04  Robert Dewar  <dewar@adacore.com>
1567
1568         * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
1569
1570 2008-08-04  Robert Dewar  <dewar@adacore.com>
1571
1572         * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
1573
1574 2008-08-04  Vincent Celier  <celier@adacore.com>
1575
1576         * prj-proc.adb:
1577         (Copy_Package_Declarations): When inheriting package Naming from a
1578         project being extended, do not inherit source exception names.
1579
1580 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1581
1582         * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
1583         list of declaration to find previous subprogram, do not go to the
1584         original node of a generic unit.
1585
1586 2008-08-02  Eric Botcazou  <ebotcazou@adacore.com>
1587
1588         * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
1589         New case.  Convert BOOLEAN_TYPE operation to the default integer type.
1590
1591 2008-08-01  Eric Botcazou  <ebotcazou@adacore.com>
1592
1593         * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
1594         * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
1595         and adjust for above renaming.
1596         * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
1597         gnu_expr_alt_type parameter.  Convert the expression to it instead
1598         of changing its type in place.
1599         (build_function_stub): Adjust call to above function.
1600
1601 2008-08-01  Eric Botcazou  <ebotcazou@adacore.com>
1602
1603         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
1604         code.  Do not get full definition of deferred constants with address
1605         clause for a use.  Do not ignore deferred constant definitions with
1606         address clause.  Ignore constant definitions already marked with the
1607         error node.
1608         <object>: Remove obsolete comment.  For a deferred constant with
1609         address clause, get the initializer from the full view.
1610         * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
1611         Rework and remove obsolete comment.
1612         <N_Object_Declaration>: For a deferred constant with address clause,
1613         mark the full view with the error node.
1614         * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
1615         formatting nits.
1616
1617 2008-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
1618
1619         * rtsfind.ads: Add block IO versions of stream routines for Strings.
1620         
1621         * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
1622         sem_prag.adb, snames.adb, snames.ads, snames.h,
1623         par-prag.adb: Undo previous stream related changes.
1624         
1625         * s-rident.ads: Add new restriction No_Stream_Optimizations.
1626         
1627         * s-ststop.ads, s-ststop.adb: Comment reformatting.
1628         Define enumeration type to designate different IO mechanisms.
1629         Enchance generic package Stream_Ops_Internal to include an
1630         implementation of Input and Output.
1631
1632         * exp_attr.adb (Find_Stream_Subprogram): If restriction
1633         No_Stream_Optimization is active, choose the default byte IO
1634         implementations of stream attributes for Strings.
1635         Otherwise use the corresponding block IO version.
1636
1637 2008-08-01  Olivier Hainque  <hainque@adacore.com>
1638         
1639         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
1640         turn Ada Pure into GCC const, now implicitely implying nothrow as well.
1641
1642 2008-08-01  Robert Dewar  <dewar@adacore.com>
1643
1644         * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
1645         convert plain identifier into defining identifier.
1646
1647 2008-08-01  Robert Dewar  <dewar@adacore.com>
1648
1649         * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
1650         warnings
1651
1652         * lib-xref.adb: Add error defense.
1653
1654 2008-08-01  Bob Duff  <duff@adacore.com>
1655
1656         * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
1657
1658 2008-08-01  Gary Dismukes  <dismukes@adacore.com>
1659
1660         * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
1661         correct accessibility levels. In the "when others" case, retrieve the
1662         access level of the Etype of Prev rather than Prev_Orig, because the
1663         original exression has not always been analyzed.
1664
1665 2008-08-01  Robert Dewar  <dewar@adacore.com>
1666
1667         * prj-nmsc.adb: Minor reformatting
1668
1669         * sem_ch4.adb: Minor reformatting
1670         Minor code reorganization
1671
1672         * prj.ads: Minor reformatting
1673
1674         * s-os_lib.adb: Minor reformatting
1675
1676         * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
1677         half encodings
1678
1679         * scans.ads: Minor reformatting.
1680
1681         * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
1682         (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
1683
1684         * sem_res.adb:
1685         (Resolve_Call): Check violation of No_Specific_Termination_Handlers
1686
1687         * sem_ch12.adb: Minor comment reformatting
1688
1689         * par-ch3.adb (P_Type_Declaration): Properly handle missing type
1690         keyword
1691
1692 2008-08-01  Robert Dewar  <dewar@adacore.com>
1693
1694         * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
1695         generating code
1696
1697 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
1698
1699         * checks.adb (Apply_Float_Conversion_Check): If the expression to be
1700         converted is a real literal and the target type has static bounds,
1701         perform the conversion exactly to prevent floating-point anomalies on
1702         some targets.
1703
1704 2008-08-01  Vincent Celier  <celier@adacore.com>
1705
1706         * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
1707         
1708         * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
1709         
1710         * prj.adb (Object_Exist_For): Use Object_Generated, not
1711         Objects_Generated that is removed and was never modified anyway.
1712
1713         * prj.ads:
1714         (Path_Syntax_Kind): New enumeration type
1715         (Language_Config): New component Path_Syntax, defaulted to Host.
1716         Components PIC_Option and Objects_Generated removed, as they are not
1717         used.
1718
1719         * snames.adb: New standard name Path_Syntax
1720         
1721         * snames.ads: New standard name Path_Syntax
1722
1723 2008-08-01  Vincent Celier  <celier@adacore.com>
1724
1725         * mlib-utl.adb:
1726         (Adalib_Path): New variable to store the path of the adalib directory
1727         when procedure Specify_Adalib_Dir is called.
1728         (Lib_Directory): If Adalib_Path is not null, return its value
1729         (Specify_Adalib_Dir): New procedure
1730         
1731         * mlib-utl.ads (Specify_Adalib_Dir): New procedure
1732
1733 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
1734
1735         * sem_prag.adb:
1736         (Check_Precondition_Postcondition): If not generating code, analyze the
1737         expression in a postcondition that appears in a subprogram body, so that
1738         it is properly decorated for ASIS use.
1739
1740 2008-08-01  Gary Dismukes  <dismukes@adacore.com>
1741
1742         * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
1743         Orig_Prev to Prev in the case where the actual is N_Function_Call or
1744         N_Identifier. This was interfering with other cases that are rewritten
1745         as N_Identifier, such as allocators, resulting in passing of the wrong
1746         accessibility level, and based on testing this code is apparently no
1747         longer needed at all.
1748
1749 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
1750
1751         * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
1752         procedure call whose prefix
1753         is a parameterless function call that returns an access_to_procedure.
1754
1755 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
1756
1757         * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
1758         for RTX. Adding a suffix that is incremented at each iteration.
1759
1760 2008-08-01  Robert Dewar  <dewar@adacore.com>
1761
1762         * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
1763         Raise_Exception
1764
1765 2008-08-01  Jerome Lambourg  <lambourg@adacore.com>
1766
1767         * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
1768         paths, which are authorized by Windows but can lead to errors when used
1769         elsewhere.
1770
1771 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
1772
1773         * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
1774         a pending instantiation for the body of a subprogram that is to be
1775         inlined.
1776
1777         * sem_ch12.adb:
1778         (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
1779
1780         * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
1781         create a pending instance for its body, so that calls to the subprogram
1782         can be inlined by the back-end.
1783
1784 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
1785
1786         * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
1787         rts-rtx-w32).
1788
1789 2008-08-01  Robert Dewar  <dewar@adacore.com>
1790
1791         * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
1792
1793 2008-08-01  Doug Rupp  <rupp@adacore.com>
1794
1795         * gnat_rm.texi: Document new mechanism Short_Descriptor.
1796         
1797         * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
1798         mechanism values.
1799
1800         * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
1801         mechanism and Short_Descriptor mechanism values.
1802
1803         * snames.adb (preset_names): Add short_descriptor entry.
1804
1805         * snames.ads: Add Name_Short_Descriptor.
1806
1807         * types.h: Add new By_Short_Descriptor mechanism values.
1808
1809         * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
1810         mechanism and Short_Descriptor mechanism values.
1811
1812         * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
1813         values.
1814         (Descriptor_Codes): Modify range for new mechanism values.
1815
1816         * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
1817         mechanism values.
1818
1819         * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
1820         (gnat_to_gnu_param): Handle By_Short_Descriptor.
1821
1822         * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
1823         (build_vms_descriptor32): New prototype.
1824         (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
1825
1826         * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
1827         argument in call fill_vms_descriptor.
1828
1829         * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
1830         build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
1831         (build_vms_descriptor): Renamed from build_vms_descriptor64. 
1832         (convert_vms_descriptor32): New function.
1833         (convert_vms_descriptor64): New function.
1834         (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
1835         descriptors.
1836
1837         * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
1838         no longer needed.
1839
1840 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
1841
1842         * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
1843         nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
1844         name.
1845
1846 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
1847
1848         * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
1849         current directory so only fully qualified names are allowed.
1850
1851 2008-08-01  Robert Dewar  <dewar@adacore.com>
1852
1853         * gnat_ugn.texi:
1854         Minor editing, remove uncomfortable use of semicolon
1855
1856         * s-ststop.adb: Add some ??? comments
1857
1858         * sem_ch10.adb: Minor reformatting
1859
1860         * snames.ads:
1861         Minor comment fixes, some pragmas were not properly
1862         categorized in the comments, documentation change only
1863
1864         * xref_lib.adb: Minor reformatting
1865
1866         * sinput.adb: Minor reformatting
1867
1868         * gnatchop.adb: Minor reformatting
1869
1870         * sem_util.ads: Minor reformatting.
1871
1872         * opt.ads: Minor documentation fix
1873
1874         * scng.adb: Minor reformatting
1875
1876         * prj-part.adb: Update comments
1877
1878 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
1879
1880         * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
1881         tagged synchronized type, use corresponding record type.
1882
1883 2008-08-01  Doug Rupp  <rupp@adacore.com>
1884
1885         * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
1886         dummy transfer address for debugging.
1887         
1888         * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
1889
1890         * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
1891
1892 2008-07-31  Eric Botcazou  <ebotcazou@adacore.com>
1893
1894         * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
1895         * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
1896
1897 2008-07-31  Pascal Obry  <obry@adacore.com>
1898
1899         * prj-nmsc.adb: Keep Object and Exec directory casing.
1900
1901 2008-07-31  Jose Ruiz  <ruiz@adacore.com>
1902
1903         * system-rtx-rtss.ads
1904         Change the default stack size. It is important to set the commit part.
1905         
1906         * s-taprop-rtx.adb
1907         (Initialize): Get the clock resolution.
1908         (RT_Resolution): Return the clock resolution that is indicated by the
1909         system.
1910
1911         * s-parame-vxworks.adb
1912         Document that this body is used for RTX in RTSS (kernel) mode.
1913
1914         * gcc-interface/Makefile.in
1915         (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
1916         s-parame-vxworks.adb body in order to have reasonable stack sizes in
1917         RTX RTSS kernel mode. Virtual memory is not used in that case, so we
1918         cannot ask for too big values.
1919
1920 2008-07-31  Robert Dewar  <dewar@adacore.com>
1921
1922         * exp_aggr.adb: Minor reformatting
1923
1924         * makeutl.adb: Minor reformatting
1925
1926         * prj-env.adb: Minor reformatting
1927
1928 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
1929
1930         * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
1931         tagged type is completed by a concurrent type.
1932
1933 2008-07-31  Gary Dismukes  <dismukes@adacore.com>
1934
1935         * sem_aggr.adb:
1936         (Resolve_Record_Aggregate): Bypass error that a type without
1937         components must have a "null record" aggregate when compiling for Ada
1938         2005, since it's legal to give an aggregate of form (others => <>)
1939         for such a type.
1940
1941 2008-07-31  Javier Miranda  <miranda@adacore.com>
1942
1943         * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
1944         handle synchronized types. Required to handle well the object.operation
1945         notation applied to synchronized types.
1946
1947 2008-07-31  Quentin Ochem  <ochem@adacore.com>
1948
1949         * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
1950         anymore - just used internally.
1951         Added handling of very small tasks - when the theoretical size is
1952         already full at the point of the call.
1953         (Report_Result): Fixed result computation, Stack_Used_When_Filling does
1954         not need to be added to the result.
1955
1956 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
1957
1958         * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
1959         corresponding spec is a primitive wrapper. Update comment.
1960
1961 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
1962
1963         * bindgen.adb Comment reformatting. Update the list of run-time globals.
1964         (Gen_Adainit_Ada): Add the declaration, import and value set for
1965         configuration flag Canonical_Streams.
1966         (Gen_Adainit_C): Add the declaration and initial value of external
1967         symbol __gl_canonical_streams.
1968         
1969         * init.c: Update the list of global values computed by the binder.
1970         
1971         * opt.ads: Add flag Canonical_Streams.
1972         
1973         * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
1974         semantically handled pragmas.
1975         
1976         * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
1977         (Analyze_Pragma): Add case for pragma Canonical_Streams.
1978         
1979         * snames.adb: Add character value for name Canonical_Streams.
1980         
1981         * snames.ads:
1982         Add Name_Canonical_Streams to the list of configuration pragmas.
1983         Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
1984         
1985         * snames.h: Add a definition for Pragma_Canonical_Streams.
1986         
1987         * s-ststop.adb:
1988         Add a flag and import to seize the value of external symbol
1989         __gl_canonical_streams. Update comment and initial value of constant
1990         Use_Block_IO.
1991         
1992         * gnat_rm.texi: Add section of pragma Canonical_Streams.
1993         
1994         * gnat_ugn.texi:
1995         Add pragma Canonical_Streams to the list of configuration pragmas.
1996
1997 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
1998
1999         * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
2000         has the form A.B.C and B is a unit renaming, analyze its compilation
2001         unit and add a with_clause on A.b to the context.
2002
2003 2008-07-31  Vincent Celier  <celier@adacore.com>
2004
2005         * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
2006         return the empty string, instead of raising Constraint_Error.
2007
2008 2008-07-31  Gary Dismukes  <dismukes@adacore.com>
2009
2010         * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
2011         
2012         * checks.adb (Apply_Accessibility_Check): Insert the check on
2013         Insert_Node.
2014         
2015         * exp_attr.adb:
2016         (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
2017         to new parameter Insert_Node on call to Apply_Accessibility_Check.
2018         Necessary to distinguish the insertion node because the dereferenced
2019         formal may come from a rename, but the check must be inserted in
2020         front of the attribute.
2021         
2022         * exp_ch4.adb:
2023         (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
2024         call to Apply_Accessibility_Check.
2025         (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
2026         on call to Apply_Accessibility_Check.
2027         Minor reformatting
2028
2029 2008-07-31  Javier Miranda  <miranda@adacore.com>
2030
2031         * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
2032         types when the candidate type is a synchronized type.
2033         
2034         * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
2035         types, and complete management of synchronized types adding missing
2036         code to handle formal that is a synchronized type.
2037         
2038         * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
2039         are not available and cause the compiler to blowup. Found compiling
2040         test with switch -gnatc
2041         
2042         * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
2043         Has_Correct_Formal_Mode plus code cleanup.
2044
2045 2008-07-31  Bob Duff  <duff@adacore.com>
2046
2047         * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
2048         recognized as two end-of-lines, but it should be just one.
2049
2050 2008-07-31  Thomas Quinot  <quinot@adacore.com>
2051
2052         * exp_ch9.adb: Minor reformatting
2053
2054         * tbuild.ads: Fix several occurrences of incorrectly referring to
2055         Name_Find as Find_Name.
2056
2057 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
2058
2059         * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
2060         and the context is an object declaration with non-static bounds, treat
2061         the aggregate as non-static.
2062
2063 2008-07-31  Vincent Celier  <celier@adacore.com>
2064
2065         * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
2066         Move back spec of Parse_Single_Project to body, as it is not called
2067         outside of package Prj.Part.
2068         (Project_Data): Remove components Linker_Name, Linker_Path and
2069         Minimum_Linker_Options as they are no longer set.
2070         Remove function There_Are_Ada_Sources from package Prj and move code
2071         in the only place it was used, in Prj.Env.Set_Ada_Paths.
2072
2073 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
2074
2075         * mlib-utl.ads: Fix typo.
2076
2077 2008-07-31  Robert Dewar  <dewar@adacore.com>
2078
2079         * sem_ch12.adb: Minor reformatting
2080
2081 2008-07-31  Sergey Rybin  <rybin@adacore.com>
2082
2083         * gnat_ugn.texi: Change the description of the
2084         Overly_Nested_Control_Structures: now the rule always requires a
2085         positive parameter for '+R' option
2086
2087 2008-07-31  Thomas Quinot  <quinot@adacore.com>
2088
2089         * g-pehage.adb: Minor reformatting
2090
2091 2008-07-31  Pascal Obry  <obry@adacore.com>
2092
2093         * s-finimp.ads: Minor reformatting.
2094
2095 2008-07-31  Vincent Celier  <celier@adacore.com>
2096
2097         * s-regexp.ads: Minor comment fix
2098
2099 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
2100
2101         * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
2102         so that we can compile this file successfully with -gnatc.
2103
2104 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
2105
2106         * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
2107         of the type when looking for stream subprograms for type String,
2108         Wide_String and Wide_Wide_String.
2109         
2110         * s-ststop.adb: Change the initialization expression of constant
2111         Use_Block_IO.
2112
2113 2008-07-31  Geert Bosch  <bosch@adacore.com>
2114
2115         * arit64.c:
2116         New file implementing __gnat_mulv64 signed integer multiplication with
2117         overflow checking
2118
2119         * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
2120
2121         * gcc-interface/gigi.h:
2122         (standard_types): Add ADT_mulv64_decl
2123         (mulv64_decl): Define subprogram declaration for __gnat_mulv64
2124
2125         * gcc-interface/utils.c:
2126         (init_gigi_decls): Add initialization of mulv64_decl
2127
2128         * gcc-interface/trans.c:
2129         (build_unary_op_trapv): New function
2130         (build_binary_op_trapv): New function
2131         (gnat_to_gnu): Use the above functions instead of
2132         build_{unary,binary}_op
2133
2134         * gcc-interface/Makefile.in
2135         (LIBGNAT_SRCS): Add arit64.c
2136         (LIBGNAT_OBJS): Add arit64.o
2137
2138 2008-07-31  Vincent Celier  <celier@adacore.com>
2139
2140         * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
2141         Linker'Default_Switches are declared. Warn if they are declared.
2142
2143 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
2144
2145         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
2146         Insert_Actions to place the pointer declaration in the code, rather
2147         than Insert_Before_And_Analyze, so that insertions of temporaries are
2148         kept in the proper order when transient scopes are present.
2149
2150
2151 2008-07-31  Robert Dewar  <dewar@adacore.com>
2152
2153         * einfo.adb (Spec_PPC): Now defined for generic subprograms
2154         
2155         * einfo.ads (Spec_PPC): Now defined for generic subprograms
2156         
2157         * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
2158         subprogram case
2159
2160 2008-07-31  Vincent Celier  <celier@adacore.com>
2161
2162         * s-os_lib.adb: Minor comment fix
2163
2164 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
2165
2166         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
2167         transfer pre/postconditions from generic copy to original tree, so that
2168         they will appear in each instance.
2169         (Process_PPCs): Do not transform postconditions into a procedure in a
2170         generic context, to prevent double expansion of check pragmas.
2171         
2172         * sem_attr.adb: In an instance, the prefix of the 'result attribute
2173         can be the renaming of the
2174         current instance, so check validity of the name accordingly.
2175
2176 2008-07-31  Robert Dewar  <dewar@adacore.com>
2177
2178         * mlib-utl.ads: Minor reformatting
2179
2180 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
2181
2182         sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
2183         from context. This attribute must be usable in Ada95 mode.
2184         The attribute can appear in the body of a function marked
2185         Inline_Always, but in this case the postocondition is not enforced.
2186         
2187         sem_prag.adb (Check_Precondition_Postcondition): within the expansion
2188         of an inlined call pre- and postconditions are legal
2189
2190 2008-07-31  Vincent Celier  <celier@adacore.com>
2191
2192         * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
2193         were for gprmake only
2194
2195 2008-07-31  Robert Dewar  <dewar@adacore.com>
2196
2197         * gnat_ugn.texi: Update -gnatN documentation.
2198
2199         * gnat_rm.texi: Add note about pre/postcondition
2200         pragmas not checked in conjunction with front-end inlining.
2201
2202 2008-07-31  Robert Dewar  <dewar@adacore.com>
2203
2204         * g-pehage.adb, g-pehage.ads: Minor reformatting
2205
2206 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
2207
2208         * mlib-utl.ads, prj-makr.ads: Add comments.
2209
2210 2008-07-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2211
2212         * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) 
2213         [WINDOWS]: Add s-winext.o.
2214
2215 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
2216
2217         PR ada/36554
2218         * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
2219         * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
2220         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
2221         Set precision to 1 for subtype of BOOLEAN_TYPE.
2222         (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
2223         (make_type_from_size): Deal with BOOLEAN_TYPE.
2224         * gcc-interface/misc.c (gnat_print_type): Likewise.
2225         * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
2226         Set boolean_type_node as its translation in the table, as well
2227         as boolean_false_node for False and boolean_true_node for True.
2228         * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
2229         8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
2230         (create_param_decl): Deal with BOOLEAN_TYPE.
2231         (build_vms_descriptor): Likewise.
2232         (build_vms_descriptor64): Likewise.
2233         (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
2234
2235 2008-07-30  Robert Dewar  <dewar@adacore.com>
2236
2237         * exp_ch9.adb: Minor reformatting
2238
2239         * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
2240         if no primitive operation is found.
2241
2242         * exp_util.adb: (Find_Prim_Op): Add comments for previous change
2243
2244         * sem_ch8.adb: Minor reformatting
2245
2246 2008-07-30  Laurent Pautet  <pautet@adacore.com>
2247
2248         * g-pehage.adb:
2249         Remove a limitation on the length of the words handled by the minimal
2250         perfect hash function generator.
2251
2252         * g-pehage.ads:
2253         Detail the use of subprograms Insert, Initialize, Compute and Finalize.
2254         Fix some typos.
2255
2256 2008-07-30  Robert Dewar  <dewar@adacore.com>
2257
2258         * gnatlink.adb: Minor reformatting
2259
2260 2008-07-30  Thomas Quinot  <quinot@adacore.com>
2261
2262         * rtsfind.adb (Check_RPC): Check version consistency even when not
2263         generating RCI stubs. Provide more detailed error message in case of
2264         mismatch.
2265
2266 2008-07-30  Ed Schonberg  <schonberg@adacore.com>
2267
2268         * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
2269         as a actual in an instance, check for a missing attribute to prevent
2270         program_error on an illegal program.
2271         
2272         * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
2273         error if primitive is not found, so that exception can be handled
2274         elsewhere on illegal programs.
2275
2276 2008-07-30  Robert Dewar  <dewar@adacore.com>
2277
2278         * uintp.adb (UI_GCD): Fix potential overflow
2279
2280 2008-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
2281
2282         * einfo.adb: Flag245 is now used.
2283         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
2284         check to include functions.
2285         (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
2286         (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
2287         include functions.
2288         (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
2289         to the list of displayed flags.
2290
2291         * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
2292         Wrapped_Entity. These two flags are now present in functions.
2293         New flag Is_Private_Primitive.
2294         (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
2295
2296         * exp_ch9.adb:
2297         (Build_Wrapper_Bodies): New subprogram.
2298         (Build_Wrapper_Body): The spec and body have been moved to in
2299         Build_Wrapper_ Bodies. Code cleanup.
2300         (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
2301         Wrappers are now generated for primitives declared between the private
2302         and full view of a concurrent type that implements an interface.
2303         (Build_Wrapper_Specs): New subprogram.
2304         (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
2305         creation mechanism with a call to Build_Wrapper_Bodies.
2306         (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
2307         wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
2308         (Expand_N_Task_Body): Replace the wrapper body creation
2309         mechanism with a call to Build_Wrapper_Bodies.
2310         (Expand_N_Task_Type_Declaration): Replace the wrapper spec
2311         creation mechanism with a call to Build_Wrapper_Specs.
2312         (Is_Private_Primitive_Subprogram): New subprogram.
2313         (Overriding_Possible): Code cleanup.
2314         (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
2315
2316         * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
2317
2318         * sem_ch3.adb: Add with and use clause for Exp_Ch9.
2319         (Process_Full_View): Build wrapper specs for all primitives
2320         that belong to a private view completed by a concurrent type
2321         implementing an interface.
2322         
2323         * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
2324         is a primitive of a
2325         concurrent type with a private view that implements an interface, try to
2326         find the proper spec.
2327         (Analyze_Subprogram_Declaration): Mark a subprogram as a private
2328         primitive if the type of its first parameter is a non-generic tagged
2329         private type.
2330         (Analyze_Subprogram_Specification): Code reformatting.
2331         (Disambiguate_Spec): New routine.
2332         (Find_Corresponding_Spec): Add a flag to controll the output of errors.
2333         (Is_Private_Concurrent_Primitive): New routine.
2334
2335         * sem_ch6.ads:
2336         (Find_Corresponding_Spec): Add a formal to control the output of errors.
2337
2338 2008-07-30  Doug Rupp  <rupp@adacore.com>
2339
2340         * gigi.h (build_vms_descriptor64): New function prototype.
2341         (fill_vms_descriptor): Modified function prototype.
2342
2343         * utils.c (build_vms_descriptor64): New function.
2344
2345         * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
2346
2347         * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
2348         argument.
2349
2350         * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
2351         64bit and 32bit descriptor and save the 64bit version as an alternate
2352         TREE_TYPE in the parameter.
2353         (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
2354         thin pointer.
2355
2356         * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
2357
2358 2008-07-30  Robert Dewar  <dewar@adacore.com>
2359
2360         * make.adb: Minor reformatting
2361
2362         * mlib-utl.adb: Minor reformatting
2363
2364         * osint.ads: Minor reformatting
2365
2366 2008-07-30  Jose Ruiz  <ruiz@adacore.com>
2367
2368         * adaint.c
2369         (__gnat_file_exists): Do not use __gnat_stat for RTX.
2370         (__main for RTX in RTSS mode): Create this dummy procedure symbol to
2371         avoid the use of this symbol from libgcc.a in RTX kernel mode.
2372
2373         * cio.c
2374         (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
2375         the function RtPrintf for console output.
2376         
2377         * argv.c Do not use the environ variable for RTX.
2378         
2379         * gnatlink.adb (gnatlink): The part that handles the --RTS option has
2380         been moved before the call to Osint.Add_Default_Search_Dirs in order
2381         to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
2382         from the appropriate run time.
2383         
2384         * targparm.ads
2385         (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
2386         target is a RTSS module for RTX.
2387         
2388         * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
2389         RTX_RTSS_Kernel_Module
2390         (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
2391
2392         * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
2393         exception handling mechanism for Windows and RTX in Win32 mode, but
2394         not for RTX in kernel mode (RTSS).
2395         (LIBGNAT_SRCS): Remove ada.h
2396
2397 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
2398
2399         * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
2400         T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
2401         (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
2402         * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
2403         X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
2404         ALL_ADA_CFLAGS): Remove.
2405         (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
2406         replace ALL_ADA_CFLAGS with ADA_CFLAGS.
2407         (GCC_CFLAGS): Remove X_CFLAGS.
2408         (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
2409         (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
2410         (ADA_CFLAGS): Substitute.
2411
2412 2008-07-30  Laurent Guerby  <laurent@guerby.net>
2413
2414         PR ada/5911
2415         * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
2416         Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
2417         Replace stamp-gnatlib* by stamp-gnatlib*-rts.
2418         * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
2419         by stamp-gnatlib2-rts.
2420         
2421 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2422
2423         PR documentation/15479
2424         * gnat-style.texi: Remove AdaCore copyright statement and GPL
2425         statement for GNAT.  Add @copying stanza, use it.  Update to
2426         GFDL 1.2.  Do not list GFDL as Invariant Section, do not list
2427         title as Front-Cover Text.
2428         * gnat_rm.texi: Likewise.
2429         * gnat_ugn.texi: Likewise.
2430
2431 2008-07-29  Jan Hubicka  <jh@suse.cz>
2432
2433         * trans.c (process_inlined_subprograms): Remove tree_really_inline
2434         check.
2435
2436 2008-07-29  Arnaud Charlet  <charlet@adacore.com>
2437
2438         * gcc-interface: New directory.
2439
2440         * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
2441         utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
2442         config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
2443         to gcc-interface subdirectory.
2444
2445 2008-07-29  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2446
2447         * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
2448
2449 2008-07-28  Jan Hubicka  <jh@suse.cz>
2450
2451         * misc.c (gnat_post_options): Do not set flag_no_inline.
2452
2453 2008-07-28  Richard Guenther  <rguenther@suse.de>
2454
2455         Merge from gimple-tuples-branch.
2456
2457         2008-07-22  Olivier Hainque  <hainque@adacore.com>
2458
2459         * gigi.h (end_subprog_body): New ELAB_P argument, saying if
2460         this is called for an elab proc to be discarded if empty.
2461         * utils.c (end_subprog_body): Honor ELAB_P.
2462         (build_function_stub): Adjust call to end_subprog_body.
2463         * trans.c (Subprogram_Body_to_gnu): Likewise.
2464         (gigi): Reorganize processing of elab procs to prevent
2465         gimplifying twice, using the new end_subprog_body argument.
2466
2467         2008-07-19  Richard Guenther  <rguenther@suse.de>
2468
2469         * Make-lang.in (trans.o): Add tree-iterator.h dependency.
2470         (utils.o): Likewise.
2471         * trans.c: Include tree-iterator.h.
2472         (gnat_gimplify_expr): Adjust prototype.  Fix typo.
2473         (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
2474         (set_expr_location_from_node): Likewise.
2475         (gigi): Tuplify.
2476         * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
2477         of GENERIC_NEXT.
2478         * utils.c: Include tree-iterator.h.
2479         * gigi.h (gnat_gimplify_expr): Adjust prototype.
2480
2481         2008-07-18  Aldy Hernandez  <aldyh@redhat.com>
2482
2483         * trans.c: Include gimple.h instead of tree-gimple.h.
2484         * utils.c: Same.
2485
2486         2008-07-14  Aldy Hernandez  <aldyh@redhat.com>
2487
2488         * trans.c (gnat_gimplify_expr): Use gimplify_assign.
2489
2490 2008-07-25  Jan Hubicka  <jh@suse.cz>
2491
2492         * utils.c (end_subprog_body): Remove inline trees check.
2493         * misc.c (gnat_post_options): Do not set flag_inline_trees.
2494
2495 2008-07-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2496
2497         * raise-gcc.c: Move tsystem.h before tm.h.
2498
2499 2008-07-20  Arnaud Charlet  <charlet@adacore.com>
2500
2501         * gnathtml.pl: New file.
2502
2503 2008-07-19  Olivier Hainque  <hainque@adacore.com>
2504
2505         * targtyps.c (get_target_default_allocator_alignment): Use
2506         MALLOC_ABI_ALIGNMENT.
2507
2508 2008-07-17  Olivier Hainque  <hainque@adacore.com>
2509
2510         * adaint.c (__MINGW32__ section): Include ctype.h and define
2511         a fallback ISALPHA if IN_RTS.
2512         (__gnat_is_absolute_path): Use ISALPHA instead of isalpha. 
2513
2514 2008-07-17  Olivier Hainque  <hainque@adacore.com>
2515
2516         * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
2517         argument, to apply to references in addition to definitions.  Prevent
2518         setting TREE_STATIC on externals.
2519         (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
2520
2521 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2522
2523         PR documentation/15479
2524         * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
2525         Replace backets around optional parameters with @ovar
2526         where possible, use @r{[}, @r{]} otherwise.
2527         Replace some @r, @i, and @emph with @var where appropriate.
2528
2529 2008-07-02  Eric Botcazou  <ebotcazou@adacore.com>
2530
2531         * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
2532
2533 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2534
2535         * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
2536         -Wc++-compat warnings.
2537         * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
2538         __gnat_locate_exec_on_path): Likewise.
2539         * decl.c (annotate_value): Likewise.
2540         * misc.c (gnat_handle_option): Likewise.
2541         * trans.c (gnat_to_gnu, extract_encoding, decode_name,
2542         post_error_ne_tree): Likewise.
2543
2544 2008-06-27  Eric Botcazou  <ebotcazou@adacore.com>
2545
2546         * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
2547         version of its type, attempt to first convert its elements.
2548
2549 2008-06-26  Chris Proctor  <chrisp_42@bigpond.com>
2550
2551         * Makefile.in: Fix *86 kfreebsd target specific pairs.
2552
2553 2008-06-25  Samuel Tardieu  <sam@rfc1149.net>
2554
2555         * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
2556
2557 2008-06-24  Eric Botcazou  <ebotcazou@adacore.com>
2558
2559         * utils2.c (known_alignment): Derive the alignment from pointed-to
2560         types only if it is otherwise unknown.
2561         <INTEGER_CST>: Tidy.
2562         <MULT_EXPR>: Likewise.
2563         <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
2564         that of the base.
2565
2566 2008-06-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2567
2568         PR ada/36573
2569         * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
2570
2571 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2572
2573         * gnat_rm.texi (Implementation Defined Characteristics)
2574         (Standard Library Routines): Use @smallexample for indented
2575         text.  Drop Indentation outside examples.
2576         * gnat_ugn.texi: Likewise.
2577
2578 2008-06-13  Olivier Hainque  <hainque@adacore.com>
2579
2580         * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
2581         if undefined.
2582         (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
2583         realignment with force_align_arg_pointer attribute on foreign
2584         convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
2585         
2586 2008-06-13  Olivier Hainque  <hainque@adacore.com>
2587
2588         * utils.c (rest_of_record_type_compilation): When computing
2589         encodings for the components of a variable size type, early
2590         strip conversions on the current position expression to make
2591         sure it's shape is visible.  Use remove_conversions for this
2592         purpose.
2593
2594 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
2595
2596         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
2597         constrained subtype of a discriminated type, discard the fields that
2598         are beyond its limits according to its size.
2599
2600 2008-06-10  Olivier Hainque  <hainque@adacore.com>
2601
2602         * utils.c (create_subprog_decl): If this is for the 'main' entry
2603         point according to the asm name, redirect main_identifier_node.
2604
2605 2008-06-09  Eric Botcazou  <ebotcazou@adacore.com>
2606
2607         * decl.c (components_to_record): Adjust the packedness for the
2608         qualified union as well.
2609
2610 2008-06-09  Arnaud Charlet  <charlet@adacore.com>
2611
2612         * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
2613         checks non fatal.
2614
2615 2008-06-07  Samuel Tardieu  <sam@rfc1149.net>
2616
2617         * sem_res.adb (Large_Storage_Type): A type is large if it
2618         requires as many bits as Positive to store its values and its
2619         bounds are known at compile time.
2620         * sem_ch13.adb (Minimum_Size): Note that this function returns
2621         0 if the size is not known at compile time.
2622
2623 2008-06-06  Nicolas Setton  <setton@adacore.com>
2624             Olivier Hainque  <hainque@adacore.com>
2625
2626         * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
2627         attribute, parallel descriptive type attached to another
2628         type for debug info generation purposes.
2629         * utils.c (add_parallel_type): New function, register
2630         parallel type to be attached to a type.
2631         (get_parallel_type): New function, fetch a registered
2632         parallel type, if any.
2633         (rest_of_record_type_compilation): Register the parallel
2634         type we make for variable size records.
2635         * gigi.h (add_parallel_type, get_parallel_type): Declare.
2636         * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
2637         parallel debug types we make.
2638         * trans.c (extract_encoding, decode_name): New functions.
2639         (gigi): If the DWARF attribute extensions are available, setup
2640         to use them.
2641         * lang.opt: Register language specific processing request
2642         for -gdwarf+.
2643         * misc.c (gnat_dwarf_extensions): New global variable. How much
2644         do we want of our DWARF extensions. 0 by default.
2645         (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
2646         (gnat_post_options): Map gnat_dwarf_extensions to the
2647         commonuse_gnu_debug_info_extensions for later processing.
2648         
2649 2008-06-04  Samuel Tardieu  <sam@rfc1149.net>
2650
2651         * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
2652
2653 2008-06-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2654
2655         * Makefile.in (common_tools): Fix typos in $(exeext) extension.
2656         * gnat_ugn.texi (Style Checking)
2657         (Adding the Results of Compiler Checks to gnatcheck Output)
2658         (Example of Binder Output File): Fix typos.
2659         * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
2660         exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
2661         s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
2662         s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
2663         sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
2664         sinfo.ads, utils.c: Fix typos in comments.
2665         * sem_ch6.adb, vms_data.ads: Fix typos in strings.
2666
2667 2008-05-29  Thomas Quinot  <quinot@adacore.com>
2668
2669         * sem_eval.adb: Minor reformatting
2670
2671 2008-05-29  Ed Schonberg  <schonberg@adacore.com>
2672
2673         * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
2674         is abstract, do not apply abstractness check on subprogram if this is
2675         a renaming declaration.
2676
2677 2008-05-29  Arnaud Charlet  <charlet@adacore.com>
2678
2679         PR ada/864
2680         * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
2681         allow recognition of program suffix in addition to prefix.
2682         
2683         * gnatchop.adb (Locate_Executable): Add support for prefix.
2684         
2685         * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
2686         mlib-utl.adb: Adjust calls to Program_Name.
2687
2688 2008-05-29  Robert Dewar  <dewar@adacore.com>
2689
2690         * sem_ch3.adb: Minor reformatting
2691         * sem_prag.adb: Minor reformatting
2692         * sem_res.adb: Minor reformatting
2693         * sinput-p.ads: Minor reformatting
2694
2695 2008-05-29  Javier Miranda  <miranda@adacore.com>
2696
2697         * sem_util.adb:
2698         (Abstract_Interface_List): Add missing support for full type-declaration
2699         associated with synchronized types.
2700
2701 2008-05-29  Robert Dewar  <dewar@adacore.com>
2702
2703         * sem_eval.adb (Is_Same_Value): Take care of several more cases
2704
2705 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
2706
2707         * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
2708         access type, wrap the expression in a conversion to force an
2709         accessibility check.
2710
2711         * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
2712         accessibility checks even when expansion is disabled in order to
2713         generate messages in the presence of previous errors or in
2714         semantics-only mode.
2715
2716 2008-05-28  Eric Botcazou  <ebotcazou@adacore.com>
2717
2718         * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
2719         * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
2720
2721 2008-05-28  Vincent Celier  <celier@adacore.com>
2722
2723         PR ada/34446
2724         * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
2725         preprocessing expressions
2726
2727 2008-05-28  Vincent Celier  <celier@adacore.com>
2728
2729         * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
2730         for preprocessing
2731         
2732         * sinput-p.ads: Minor comment update and reformatting
2733
2734 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
2735
2736         * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
2737         type has a deeper level than any master only when it is the type of an
2738         access parameter.
2739
2740 2008-05-28  Javier Miranda  <miranda@adacore.com>
2741
2742         * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
2743
2744 2008-05-28  Javier Miranda  <miranda@adacore.com>
2745
2746         * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
2747         * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
2748         * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
2749         Add code that was previously located in
2750         Find_Overridden_Synchronized_Primitive because it is only used here.
2751
2752 2008-05-28  Sergey Rybin  <rybin@adacore.com>
2753
2754         * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
2755         Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
2756
2757 2008-05-28  Robert Dewar  <dewar@adacore.com>
2758
2759         * restrict.ads:
2760         Add missing restrictions, and properly label all GNAT defined ones
2761         
2762         * rtsfind.ads:
2763         Add entry for Ada_Real_Time.Timing_Events.Timing_Event
2764         Add entry for Ada.Task_Termination.Set_Specific_Handler
2765         Add entry for Ada.Task_Termination.Specific_Handler
2766         
2767         * s-rident.ads:
2768         Add missing restrictions and properly mark all gnat defined ones
2769         
2770         * sem_ch3.adb:
2771         (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
2772         
2773         * sem_res.adb:
2774         (Resolve_Call): Check violation of No_Specific_Termination_Handlers
2775
2776         * gnat_rm.texi: Add missing restrictions, and properly label all
2777         GNAT defined ones
2778
2779 2008-05-28  Robert Dewar  <dewar@adacore.com>
2780
2781         * restrict.adb:
2782         (Check_Restriction): violation of restriction No_Finalization is
2783         treated as a serious error to stop expansion
2784
2785 2008-05-28  Robert Dewar  <dewar@adacore.com>
2786
2787         * exp_util.adb: Minor reformatting
2788         * exp_util.ads: Minor reformatting.
2789
2790 2008-05-28  Arnaud Charlet  <charlet@adacore.com>
2791
2792         * Make-lang.in: Remove gprmake.
2793
2794         * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
2795
2796 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
2797
2798         * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
2799         improper progenitor names, and avoid cascaded errors.
2800
2801 2008-05-28  Robert Dewar  <dewar@adacore.com>
2802
2803         * gnat_rm.texi: Add note on Old giving warning when applied to constant
2804
2805         * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
2806         a constant
2807
2808 2008-05-28  Robert Dewar  <dewar@adacore.com>
2809
2810         * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
2811         size
2812
2813 2008-05-28  Robert Dewar  <dewar@adacore.com>
2814
2815         * exp_ch5.adb:
2816         (Expand_Simple_Function_Return): Copy unaligned result into temporary
2817
2818 2008-05-28  Javier Miranda  <miranda@adacore.com>
2819
2820         * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
2821         for user-defined predefined primitives.
2822         
2823         * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
2824         (Find_Overridden_Synchronized_Primitive): Ditto.
2825
2826         * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
2827
2828 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
2829
2830         * a-ststio.adb, s-direio.adb:
2831         Further code clean up of previous change.
2832         Update comments.
2833
2834 2008-05-27  Vincent Celier  <celier@adacore.com>
2835
2836         * prj-nmsc.adb: Minor reformatting
2837
2838 2008-05-27  Bob Duff  <duff@adacore.com>
2839
2840         * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
2841         untagged private type with a tagged full type, where the full type has
2842         a self reference, create the corresponding class-wide type early, in
2843         case the self reference is "access T'Class".
2844
2845 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
2846
2847         * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
2848         tasks and context is an object declaration. create master entity before
2849         expansion.
2850
2851 2008-05-27  Robert Dewar  <dewar@adacore.com>
2852
2853         * mlib-prj.adb: Minor reformatting
2854
2855         * prj-part.adb: Minor reformatting
2856
2857         * prj.ads: Minor reformatting
2858
2859         * exp_ch3.adb: Minor reformatting.
2860
2861         * sem_ch3.ads: Minor reformatting
2862
2863         * sem_eval.adb: Minor reformatting
2864
2865 2008-05-27  Vincent Celier  <celier@adacore.com>
2866
2867         * gnatcmd.adb:
2868         <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
2869
2870 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
2871
2872         * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
2873         tasks, create an activation chain now, before the expansion into
2874         assignments and build-in-place calls that require the presence of an
2875         activation chain.
2876         (Backend_Processing_Possible): If the component type is inherently
2877         limited, the aggregate must be expanded into individual built-in-place
2878         assignments.
2879
2880         * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
2881         determine whether an allocation extra parameter must be built, to
2882         handle case of a private type whose full type is a discriminated type
2883         with defaults.
2884
2885 2008-05-27  Bob Duff  <duff@adacore.com>
2886
2887         * gnat_rm.texi:
2888         Document the new behavior regarding trampolines.
2889
2890 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
2891
2892         * a-direio.adb, a-sequio.adb: Replace address clause by
2893         unrestricted_access, simpler and compatible with .NET.
2894
2895 2008-05-27  Vincent Celier  <celier@adacore.com>
2896
2897         * prj-part.adb:
2898         (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
2899         a project file, so that symbolic links are not resolved.
2900
2901 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
2902
2903         * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
2904         Replace heavy address clause by 'Unrestricted_Access, cleaner and more
2905         portable across GNAT targets, since this kind of address clause is not
2906         supported by VM back-ends (.NET/JGNAT).
2907
2908 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
2909
2910         * bindgen.adb: Update comments.
2911         
2912         * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
2913
2914 2008-05-27  Vincent Celier  <celier@adacore.com>
2915
2916         * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
2917         prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
2918         mlib-tgt.adb, prj-env.adb, prj-env.ads:
2919         (Path_Information): New record type
2920         Use component of type Path_Information when there are two paths, one in
2921         canonical format and one in display format.
2922         Update the project manager to these new components.
2923
2924 2008-05-27  Robert Dewar  <dewar@adacore.com>
2925
2926         * makeutl.adb: Minor reformatting
2927         * prj-nmsc.adb: Minor reformatting
2928         * s-stausa.adb: Minor reformatting
2929         * s-stausa.ads: Minor reformatting
2930         * sem_ch6.adb: Minor reformatting
2931
2932 2008-05-27  Thomas Quinot  <quinot@adacore.com>
2933
2934         * sem_res.adb: Minor comment fixes
2935
2936 2008-05-27  Thomas Quinot  <quinot@adacore.com>
2937
2938         * makeutl.adb: Minor code reorganization
2939
2940         * exp_aggr.adb: Add ??? comment
2941         Fix typo
2942
2943         * exp_ch6.adb: Minor reformatting
2944
2945 2008-05-27  Quentin Ochem  <ochem@adacore.com>
2946
2947         * s-stausa.adb (Initialize): Updated result initialization, and
2948         initialization of environment stack.
2949         (Fill_Stack): Improved computation of the pattern zone, taking into
2950         account already filled at the calling point.
2951         (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
2952         Measure and Overflow_Guard.
2953         (Report_Result): Fixed computation of the result using new fields of
2954         Stack_Analyzer.
2955         
2956         * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
2957         params by more explicit Stack_Size / Max_Pattern_Size params.
2958         (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
2959         Added Stack_Used_When_Filling field.
2960         (Task_Result): Replaced Measure / Overflow_Guard by more explicit
2961         Min_Measure and Max_Measure fields.
2962         
2963         * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
2964
2965 2008-05-27  Vincent Celier  <celier@adacore.com>
2966
2967         * prj-nmsc.adb:
2968         (Check_File): Make sure that a unit that replaces the same unit in a
2969          project being extended is properly processed.
2970
2971 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
2972
2973         * sem_ch3.adb:
2974         (Get_Discr_Value): Remove obsolete code that failed to find the value
2975         of a discriminant for an inherited task component appearing in a type
2976         extension.
2977
2978 2008-05-27  Thomas Quinot  <quinot@adacore.com>
2979
2980         (System.File_IO.{Close, Delete, Reset}):
2981         Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
2982         
2983         (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
2984         Pass File parameter by reference.
2985
2986 2008-05-27  Vincent Celier  <celier@adacore.com>
2987
2988         * prj-nmsc.adb:
2989         (Process_Sources_In_Multi_Language_Mode): Check that there are not two
2990         sources of the same project that have the same object file name.
2991         (Find_Explicit_Sources): Always remove a source exception that was not
2992         found.
2993
2994 2008-05-27  Thomas Quinot  <quinot@adacore.com>
2995
2996         * sem_ch3.adb: Minor reformatting
2997
2998 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
2999
3000         * sem_ch6.adb:
3001         (Is_Interface_Conformant): Handle properly a primitive operation that
3002         overrides an interface function with a controlling access result.
3003         (Type_Conformance): If Skip_Controlling_Formals is true, when matching
3004         inherited and overriding operations, omit as well the conformance check
3005         on result types, to prevent spurious errors.
3006
3007 2008-05-27  Vincent Celier  <celier@adacore.com>
3008
3009         * makeutl.ads, makeutl.adb:
3010         (Set_Location): New procedure
3011         (Get_Location): New function
3012         (Update_Main): New procedure
3013
3014 2008-05-27  Vincent Celier  <celier@adacore.com>
3015
3016         * prj-nmsc.adb:
3017         (Check_Library): Allow standard project to be extended as a static
3018         library project.
3019         (Get_Mains): Do not inherit attribute Main in an extending library
3020         project.
3021
3022 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
3023
3024         * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
3025         * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
3026         * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
3027         * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
3028         * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
3029         * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
3030         * system-mingw.ads (Always_Compatible_Rep): Likewise.
3031         * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
3032         * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
3033         * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
3034         
3035 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
3036
3037         * sem_attr.adb: add guard to previous patch.
3038
3039 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
3040
3041         * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
3042         a synchronized tagged type, do not attempt to build dispatch table for
3043         full view. The table is built for the corresponding record type, which
3044         has its own declaration.
3045
3046 2008-05-27  Gary Dismukes  <dismukes@adacore.com>
3047
3048         * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
3049         to the known type entity E, rather than setting it to Any_Type. Fixes
3050         possible blowup in function Base_Init_Proc, as called from Freeze_Entity
3051         for objects whose type had an illegal constraint.
3052
3053 2008-05-27  Vincent Celier  <celier@adacore.com>
3054
3055         * gnat_ugn.texi:
3056         Add succinct documentation for attribute Excluded_Source_List_File
3057
3058 2008-05-27  Vincent Celier  <celier@adacore.com>
3059
3060         * prj-attr.adb: Add new project level attribute Map_File_Option
3061         
3062         * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
3063         
3064         * prj.ads: Minor reformatting and comment update
3065         (Project_Configuration): New component Map_File_Option
3066         
3067         * snames.adb: New standard name Map_File_Option
3068         
3069         * snames.ads: New standard name Map_File_Option
3070
3071 2008-05-27  Vincent Celier  <celier@adacore.com>
3072
3073         * xsnames.adb: Remove unused variable Oname
3074
3075 2008-05-27  Doug Rupp  <rupp@adacore.com>
3076
3077         * exp_ch6.adb:
3078         (Expand_N_Function_Call): Fix comments. Minor reformatting.
3079
3080         * exp_vfpt.ads:
3081         (Expand_Vax_Foreign_Return): Fix comments.
3082
3083 2008-05-27  Thomas Quinot  <quinot@adacore.com>
3084
3085         * exp_dist.adb: Minor reformating
3086
3087 2008-05-26  Gary Dismukes  <dismukes@adacore.com>
3088
3089         * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
3090         No_Default_Initialization, which is now delayed until the freeze point
3091         of the object. Add a comment about deferral of the check.
3092         
3093         * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
3094         on objects is moved here.
3095
3096 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
3097
3098         * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
3099         (Compare_Array_S16): Adjust for above change.
3100         * s-casi32.adb (Uword): Likewise.
3101         (Compare_Array_S32): Likewise.
3102         * s-casi64.adb (Uword): Likewise.
3103         (Compare_Array_S64): Likewise.
3104         * s-caun16.adb (Uhalf): Likewise.
3105         (Compare_Array_U16): Likewise.
3106         * s-caun32.adb (Uword): Likewise.
3107         (Compare_Array_U32): Likewise.
3108         * s-caun64.adb (Uword): Likewise.
3109         (Compare_Array_U64): Likewise.
3110         
3111 2008-05-26  Robert Dewar  <dewar@adacore.com>
3112
3113         * exp_ch6.adb: Add ??? comment for previous change
3114
3115         * exp_vfpt.adb: Minor reformatting
3116
3117         * exp_vfpt.ads: Add ??? comment for last change
3118
3119         * sem_attr.adb: Add some ??? comments for previous change
3120
3121         * s-vaflop.ads: Add comments for previous change
3122
3123 2008-05-26  Doug Rupp  <rupp@adacore.com>
3124
3125         * s-vaflop-vms-alpha.adb:
3126         Remove System.IO use clause, to prevent spurious ambiguities when
3127         package is access through rtsfind.
3128
3129 2008-05-26  Sergey Rybin  <rybin@adacore.com>
3130
3131         * tree_io.ads (ASIS_Version_Number): Update because of the changes
3132         made in front-end
3133
3134 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3135
3136         * sem_attr.adb:
3137         (Resolve_Attribute, case 'address):  S (A .. B)' address can be safely
3138         converted to S (A)'address only if A .. B is known to be a non-null
3139         range.
3140
3141 2008-05-26  Doug Rupp  <rupp@adacore.com>
3142
3143         * s-vaflop.adb:
3144         (Return_D, Return_F, Return_G): New functions.
3145
3146         * s-vaflop.ads:
3147         (Return_D, Return_F, Return_G): New functions.
3148
3149         * exp_vfpt.adb:
3150         (Expand_Vax_Foreign_Return): New procedure
3151
3152         * exp_vfpt.ads:
3153         (Expand_Vax_Foreign_Return): New procedure
3154
3155         * rtsfind.ads:
3156         (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
3157         (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
3158
3159         * exp_ch6.adb:
3160         Import Exp_Vfpt
3161         (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
3162
3163         * s-vaflop-vms-alpha.adb:
3164         (Return_D, Return_F, Return_G): New functions.
3165
3166 2008-05-26  Gary Dismukes  <dismukes@adacore.com>
3167
3168         * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
3169         init proc entity when there is actual default initialization associated
3170         with the component type, to avoid spurious errors on objects of scalar
3171         array types that are marked Is_Public when No_Default_Initialization
3172         applies.
3173
3174 2008-05-26  Thomas Quinot  <quinot@adacore.com>
3175
3176         * rtsfind.ads, rtsfind.adb:
3177         (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
3178         (Check_RPC): Support per-PCS-kind API versioning.
3179         
3180         exp_dist.ads, exp_dist.adb:
3181         (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
3182         (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
3183          library function Get_RACW.
3184         (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
3185         library function Get_Reference.
3186         (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
3187         through an intermediate Any.
3188         (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
3189         going through an intermediate Any.
3190         
3191         * sem_dist.adb: Minor reformatting.
3192
3193 2008-05-26  Javier Miranda  <miranda@adacore.com>
3194
3195         * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
3196         (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
3197         (Is_Internal): Adding documentation on internal entities that have
3198         attribute Interface_Alias (old attribute Abstract_Interface_Alias)
3199
3200         * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
3201         (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
3202         Added assertion to force entities with this attribute to have
3203         attribute Is_Internal set to True.
3204         (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
3205
3206         * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
3207         renamed as Derive_Progenitor_Subprograms. In addition, its code is
3208         a new implementation.
3209         (Add_Interface_Tag_Components): Remove special management of
3210         synchronized interfaces.
3211         (Analyze_Interface_Declaration): Minor reformating
3212         (Build_Derived_Record_Type): Minor reformating
3213         (Check_Abstract_Overriding): Avoid reporting error in case of abstract
3214         predefined primitive inherited from interface type because the body of
3215         internally generated predefined primitives of tagged types are generated
3216         later by Freeze_Type
3217         (Derive_Subprogram): Avoid generating an internal name if the parent
3218         subprogram overrides an interface primitive.
3219         (Derive_Subprograms): New implementation that keeps separate the
3220         management of tagged types not implementing interfaces, from tagged
3221         types that implement interfaces.
3222         (Is_Progenitor): New implementation.
3223         (Process_Full_View): Add documentation
3224         (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
3225         by call to Derive_Progenitor_Subprograms.
3226
3227         * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
3228         (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
3229         Skip_Controlling_Formals.
3230
3231         * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
3232         (Check_Conventions): New implementation. Remove local subprogram
3233         Skip_Check. Remove formal Search_From of routine Check_Convention.
3234         (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
3235         Skip_Controlling_Formals.
3236         (New_Overloaded_Entity): Enable addition of predefined dispatching
3237         operations.
3238
3239         * sem_disp.ads
3240         (Find_Primitive_Covering_Interface): New subprogram.
3241
3242         * sem_disp.adb (Check_Dispatching_Operation): Disable registering
3243         the task body procedure as a primitive of the corresponding tagged
3244         type.
3245         (Check_Operation_From_Private_Type): Avoid adding twice an entity
3246         to the list of primitives.
3247         (Find_Primitive_Covering_Interface): New subprogram.
3248         (Override_Dispatching_Operation): Add documentation.
3249
3250         * sem_type.adb (Covers): Minor reformatings
3251
3252         * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
3253         Collect_Interfaces.
3254         Rename formal.
3255         (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
3256         (Implements_Interface): New subprogram.
3257         (Is_Parent): Removed.
3258         (Primitive_Names_Match): New subprogram.
3259         (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
3260         (Ultimate_Alias): New subprogram.
3261
3262         * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
3263         Collect_Interfaces.
3264         Remove special management for synchronized types. Rename formal. Remove
3265         internal subprograms Interface_Present_In_Parent and Add_Interface.
3266         (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
3267         on non-record types by code to return false in such case.
3268         (Implements_Interface): New subprogram.
3269         (Is_Parent): Removed. No special management is now required for
3270         synchronized types covering interfaces.
3271         (Primitive_Names_Match): New subprogram.
3272         (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
3273         (Ultimate_Alias): New subprogram.
3274
3275         * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
3276         Add internal entities associated with secondary dispatch tables to
3277         the list of tagged type primitives that are not interfaces.
3278         (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
3279         (Make_Predefined_Primitive_Specs): Code reorganization to improve
3280         the management of predefined equality operator. In addition, if
3281         the type has an equality function corresponding with a primitive
3282         defined in an interface type, the inherited equality is abstract
3283         as well, and no body can be created for it.
3284
3285         * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
3286         exp_util to exp_disp.
3287         (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
3288         an entity corresponds with one of the predefined primitives required
3289         to implement interfaces.
3290         Update copyright notice.
3291
3292         * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
3293         final check on abstract subprograms all the primitives associated with
3294         interface primitives because they must be visible in the public and
3295         private part.
3296         (Write_DT): Use Find_Dispatching_Type to locate the name of the
3297         interface type. This allows the use of this routine, for debugging
3298         purposes, when the tagged type is not fully decorated.
3299         (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
3300         Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
3301         (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
3302         entity corresponds with one of the predefined primitives required to
3303         implement interfaces.
3304
3305         * exp_util.adb (Find_Interface_ADT): New implementation
3306         (Find_Interface): Removed.
3307
3308         * sprint.adb (Sprint_Node_Actual): Generate missing output for the
3309         list of interfaces associated with nodes
3310         N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
3311
3312 2008-05-26  Thomas Quinot  <quinot@adacore.com>
3313
3314         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
3315         condition for assignment to temporary.
3316
3317 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3318
3319         * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
3320         checks on the upper bound if the index type is a modular type, to
3321         prevent wrap-around computations when size is close to upper bound of
3322         type.
3323
3324 2008-05-26  Robert Dewar  <dewar@adacore.com>
3325
3326         * sem_ch3.adb: Minor reformatting
3327
3328 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3329
3330         * sem_ch12.adb (Remove_Parent): Use specification of instance
3331         to retrieve generic parent,
3332         to handle properly the case where the instance is a child unit.
3333         Add guard to handle properly wrapper packages.
3334         Minor reformatting
3335
3336 2008-05-26  Thomas Quinot  <quinot@adacore.com>
3337
3338         * sinfo.ads: Minor reformatting
3339
3340 2008-05-26  Hristian Kirtchev  <kirtchev@adacore.com>
3341
3342         * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
3343         Generate a tag check when the result subtype of a function, defined by
3344         an access definition, designates a specific tagged type.
3345         (Make_Tag_Check): New routine.
3346
3347 2008-05-26  Arnaud Charlet  <charlet@adacore.com>
3348
3349         * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
3350
3351 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
3352
3353         * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
3354         (builtin_decl_for): Likewise.
3355         * trans.c (gigi): Likewise.
3356         * utils.c (def_builtin_1): Fix formatting.
3357
3358 2008-05-26  Hristian Kirtchev  <kirtchev@adacore.com>
3359
3360         * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
3361         Create the statements which map a string name to protected or task
3362         entry indix.
3363
3364         * exp_ch9.adb: Add with and use clause for Stringt.
3365         Minor code reformatting.
3366         (Build_Entry_Names): New routine.
3367         (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
3368         for flag Build_Entry_Names which controls the allocation of the data
3369         structure for the string names of entries.
3370
3371         * exp_ch9.ads (Build_Entry_Names): New subprogram.
3372
3373         * exp_util.adb (Entry_Names_OK): New function.
3374
3375         * exp_util.ads (Entry_Names_OK): New function.
3376
3377         * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
3378         enumerations RE_Id and RE_Unit_Table.
3379
3380         * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
3381         (Free_Entry_Names_Array): New routine.
3382
3383         * s-taskin.ads: Comment reformatting.
3384         Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
3385         Add component Entry_Names to record Ada_Task_Control_Block.
3386         (Free_Entry_Names_Array): New routine.
3387
3388         * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
3389         dynamically allocate an array
3390         of string pointers. This structure holds string entry names.
3391         (Free_Entry_Names): New routine.
3392         (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
3393         (Set_Entry_Names): New routine.
3394
3395         * s-tassta.ads:
3396         (Create_Task): Add formal Build_Entry_Names. The flag is used to
3397         control the allocation of the data structure which stores entry names.
3398         (Set_Entry_Name): New routine.
3399
3400         * s-tpoben.adb:
3401         Add with and use clause for Ada.Unchecked_Conversion.
3402         (Finalize): Deallocate the entry names array.
3403         (Free_Entry_Names): New routine.
3404         (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
3405         create an array of string pointers to hold the entry names.
3406         (Set_Entry_Name): New routine.
3407
3408         * s-tpoben.ads:
3409         Add field Entry_Names to record Protection_Entries.
3410         (Initialize_Protection_Entries): Add formal Build_Entry_Names.
3411         (Set_Entry_Name): New routine.
3412
3413 2008-05-26  Vincent Celier  <celier@adacore.com>
3414
3415         * prj-nmsc.adb:
3416         (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
3417
3418         * prj.ads:
3419         (Project_Configuration): New component Shared_Lib_Driver
3420
3421 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3422
3423         * inline.adb:
3424         (Cleanup_Scopes): For a protected operation, transfer finalization list
3425         to protected body subprogram, to force cleanup actions when needed.
3426
3427 2008-05-26  Robert Dewar  <dewar@adacore.com>
3428
3429         * sem_cat.adb: Minor reformatting
3430
3431         * gnatname.adb: Minor reformatting
3432
3433         * osint.ads: Minor reformatting
3434
3435         * s-carun8.ads: Minor reformatting
3436
3437         * g-heasor.ads: Minor comment fix (unit is now pure)
3438
3439 2008-05-26  Robert Dewar  <dewar@adacore.com>
3440
3441         * exp_ch2.adb:
3442         (Expand_Current_Value): Properly type generated integer literal
3443
3444 2008-05-26  Sergey Rybin  <rybin@adacore.com>
3445
3446         * gnat_ugn.texi: Add description for the new gnatcheck rule -
3447         Separate_Numeric_Error_Handlers.
3448
3449 2008-05-26  Pascal Obry  <obry@adacore.com>
3450
3451         * sem_aggr.adb: Minor reformatting.
3452
3453 2008-05-26  Jose Ruiz  <ruiz@adacore.com>
3454
3455         * s-osinte-aix.adb:
3456         (To_Target_Priority): Setting the time slice value to 0 or greater sets
3457         the scheduling policy to FIFO within priorities or round-robin
3458         respectively.
3459         Hence, the priority must be set in this case to the one selected by the
3460         user.
3461         
3462 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3463
3464         * sem_ch12.adb:
3465         (Remove_Parent): If the enclosing scope is an instance whose generic
3466         parent is declared within some parent scope of the just completed
3467         instance, make full views of the entities in that parent visible, when
3468         applicable.
3469         
3470 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
3471
3472         * mingw32.h (STD_MINGW): Set to true for target w64.
3473
3474 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
3475
3476         * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
3477         instead of TREE_STATIC on the ADDR_EXPR.
3478
3479 2008-05-24  Eric Botcazou  <ebotcazou@adacore.com>
3480
3481         * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
3482         (Sloc_to_locus): Do not overwrite known GCC locations when translating
3483         GNAT standard locations.
3484
3485 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
3486
3487         * gigi.h (mark_visited): Declare.
3488         * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
3489         only the topmost node of expressions.
3490         (elaborate_expression_1): Look deeper for read-only variables.
3491         * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
3492         (mark_visited): Move logic to mark_visited_r.  Invoke walk_tree.
3493         (mark_visited_r): New function.
3494
3495 2008-05-23  Vincent Celier  <celier@adacore.com>
3496
3497         * snames.adb: New standard name Excluded_Source_List_File.
3498
3499         * snames.ads: New standard name Excluded_Source_List_File.
3500
3501         * prj-attr.adb: New project level attribute Excluded_Source_List_File.
3502
3503         * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
3504         Get excluded sources from
3505         file indicated by attribute Excluded_Source_List_File, when present and
3506         neither Excluded_Source_Files nor Locally_Removed_Files are declared.
3507
3508 2008-05-23  Robert Dewar  <dewar@adacore.com>
3509
3510         * exp_dist.adb: Minor reformatting
3511
3512 2008-05-23  Ed Schonberg  <schonberg@adacore.com>
3513
3514         * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
3515         slice, convert it to an indexed component, which is equivalent, more
3516         efficient, and usable even if the slice itself is not addressable.
3517
3518 2008-05-23  Olivier Hainque  <hainque@adacore.com>
3519
3520         * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
3521         convention also allows access to named compiler built-in subprograms
3522         such as the GCC __builtin family.
3523
3524 2008-05-23  Vincent Celier  <celier@adacore.com>
3525
3526         * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
3527         sep. If there are several possibilities, choose the one with the
3528         longer prefix.
3529
3530 2008-05-23  Vincent Celier  <celier@adacore.com>
3531
3532         * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
3533         back end switches when executable specified with --GCC= is same as
3534         default, even if there are additional options.
3535
3536         * gnat_ugn.texi:
3537         Document when the back end switches from the ALI file are taken into
3538         account when gnatlink is invoked with --GCC=
3539
3540 2008-05-23  Thomas Quinot  <quinot@adacore.com>
3541
3542         * s-os_lib.adb:
3543         (copy_File): Do not open destination file if source file is unreadable.
3544
3545 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
3546
3547         * utils.c (handle_type_generic_attribute): Adjust to accept
3548         fixed arguments before an elipsis.
3549
3550 2008-05-21  Thomas Quinot  <quinot@adacore.com>
3551
3552         * g-sothco.ads, g-sothco.adb: New files.
3553
3554 2008-05-20  Thomas Quinot  <quinot@adacore.com>
3555
3556         * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
3557
3558         * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
3559         Add missing "with" of Ada.Unchecked_Conversion
3560
3561         * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads, 
3562         g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads, 
3563         g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads, 
3564         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads, 
3565         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads, 
3566         g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads: 
3567         Move common code out of GNAT.Sockets.Thin implementations and into
3568         Thin_Common.
3569         New constant SIZEOF_fd_set
3570         New flag Has_Sockaddr_Len
3571         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3572
3573         * g-stsifd-sockets.adb
3574         (Create): Remove call to Set_Length; use Set_Family to set the family
3575         and (on appropriate platforms) length fields in struct sockaddr.
3576
3577         * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb, 
3578         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb, 
3579         g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
3580         Move common code out of GNAT.Sockets.Thin implementations and into
3581         Thin_Common.
3582
3583         * g-socket.ads, g-socket.adb: 
3584         Move common code out of GNAT.Sockets.Thin implementations and into
3585         Thin_Common.
3586         (Connect_Socket, Accept_Socket): Provide new versions of these two
3587         routines that operate with a user specified timeout.
3588         (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
3589         this is now handled automatically by Set_Family on platforms that
3590         require it.
3591
3592         * gen-soccon.c: 
3593         Move common code out of GNAT.Sockets.Thin implementations and into
3594         Thin_Common.
3595         (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
3596         this constant to 0 (not -1) because we use it to initialize an
3597         unsigned_char value.
3598         Align values for numeric constants only.
3599         Handle the case of systems that do not support AF_INET6.
3600         New constant SIZEOF_fd_set
3601         New flag Has_Sockaddr_Len
3602         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3603
3604         * gsocket.h: New flag Has_Sockaddr_Len
3605         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3606
3607 2008-05-20  Santiago Uruena  <uruena@adacore.com>
3608
3609         * i-cobol.ads: Interfaces.COBOL should be preelaborate.
3610
3611 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
3612
3613         * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
3614         the underlying issue with malloc/free has been fixed. Remove associated
3615         comments.
3616         Minor reformatting.
3617         Related to PR ada/24533
3618
3619 2008-05-20  Robert Dewar  <dewar@adacore.com>
3620
3621         * ali.adb: Correct casing of ASCII.NUL
3622
3623         * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
3624         properly.
3625
3626 2008-05-20  Robert Dewar  <dewar@adacore.com>
3627             Gary Dismukes  <dismukes@adacore.com>
3628
3629         * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
3630         overflow if result converted to wider integer type.
3631         (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
3632         discriminated types when discriminant checks are suppressed.
3633
3634 2008-05-20  Vincent Celier  <celier@adacore.com>
3635
3636         * cstand.adb (Print_Standard): Issue the correct Size clause for type
3637         Wide_Wide_Character.
3638
3639 2008-05-20  Tristan Gingold  <gingold@adacore.com>
3640
3641         * decl.c: Do not emit a variable for a object that has an address
3642         representation clause whose value is known at compile time.
3643         When a variable has an address clause whose value is known at compile
3644         time, refer to this variable by using directly the address instead of
3645         dereferencing a pointer.
3646
3647 2008-05-20  Robert Dewar  <dewar@adacore.com>
3648
3649         PR ada/30740
3650         * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
3651         subtypes, always False for non-modular types.
3652         Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
3653         entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
3654         for Shared_Storage package.
3655         (Is_RACW_Stub_Type): New entity flag.
3656
3657         * exp_ch4.adb
3658         (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
3659         case where we have a modular type with a non-binary modules.
3660         Comments reformattings.
3661
3662         * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
3663         all types.
3664
3665 2008-05-20  Javier Miranda  <miranda@adacore.com>
3666
3667         * exp_aggr.adb
3668         (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
3669         tests did not covered the case in which the type of the aggregate has
3670         no progenitors but some its parents has progenitors.
3671
3672 2008-05-20  Gary Dismukes  <dismukes@adacore.com>
3673             Hristian Kirtchev  <kirtchev@adacore.com>
3674
3675         * exp_ch3.adb
3676         (Expand_N_Object_Declaration): Correct the condition which triggers the
3677         generation of a call to Displace when initializing a class-wide object.
3678         (Build_Dcheck_Functions): Build discriminant-checking for null variants
3679         when Frontend_Layout_On_Target is true to ensure that they're available
3680         for calling when a record variant size function is built in Layout.
3681
3682 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3683
3684         * exp_ch5.adb (Expand_Assign_Record): Within an initialization
3685         procedure for a derived type retrieve the discriminant values from the
3686         parent using the corresponding discriminant.
3687         (Expand_N_Assignment_Statement): Skip generation of implicit
3688         if-statement associated with controlled types if we are
3689         compiling with restriction No_Finalization.
3690
3691 2008-05-20  Vincent Celier  <celier@adacore.com>
3692
3693         * prj.adb (Hash (Project_Id)): New function
3694         (Project_Empty): Add new component Interfaces_Defined
3695
3696         * prj.ads (Source_Data): New component Object_Linked
3697         (Language_Config): New components Object_Generated and Objects_Linked
3698         (Hash (Project_Id)): New function
3699         (Source_Data): New Boolean components In_Interfaces and
3700         Declared_In_Interfaces.
3701         (Project_Data): New Boolean component Interfaces_Defined
3702
3703         * prj-attr.adb: 
3704         New project level attribute Object_Generated and Objects_Linked
3705         Add new project level attribute Interfaces
3706
3707         * prj-dect.adb: Use functions Present and No throughout
3708         (Parse_Variable_Declaration): If a string type is specified as a simple
3709         name and is not found in the current project, look for it also in the
3710         ancestors of the project.
3711
3712         * prj-makr.adb: 
3713         Replace procedure Make with procedures Initialize, Process and Finalize
3714         to implement H414-023: process different directories with different
3715         patterns.
3716         Use functions Present and No throughout
3717
3718         * prj-makr.ads: 
3719         Replace procedure Make with procedures Initialize, Process and Finalize
3720
3721         * prj-nmsc.adb
3722         (Add_Source): Set component Object_Exists and Object_Linked accordnig to
3723         the language configuration.
3724         (Process_Project_Level_Array_Attributes): Process new attributes
3725         Object_Generated and Object_Linked.
3726         (Report_No_Sources): New Boolean parameter Continuation, defaulted to
3727         False, to indicate that the erreor/warning is a continuation.
3728         (Check): Call Report_No_Sources with Contnuation = True after the first
3729         call.
3730         (Error_Msg): Process successively contnuation character and warning
3731         character.
3732         (Find_Explicit_Sources): Check that all declared sources have been found
3733         (Check_File): Indicate in hash table Source_Names when a declared source
3734         is found.
3735         (Check_File): Set Other_Part when found
3736         (Find_Explicit_Sources): In multi language mode, check if all exceptions
3737         to the naming scheme have been found. For Ada, report an error if an
3738         exception has not been found. Otherwise, disregard the exception.
3739         (Check_Interfaces): New procedure
3740         (Add_Source): When Other_Part is defined, set mutual pointers in spec
3741         and body.
3742         (Check): In multi-language mode, call Check_Interfaces
3743         (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
3744         for an excluded source.
3745         (Remove_Source): A source replacing a source in the interfaces is also
3746         in the interfaces.
3747
3748         * prj-pars.adb: Use function Present
3749
3750         * prj-part.adb: Use functions Present and No throughout
3751         (Parse_Single_Project): Set the parent project for child projects
3752         (Create_Virtual_Extending_Project): Register project with no qualifier
3753         (Parse_Single_Project): Allow an abstract project to be extend several
3754         times. Do not allow an abstract project to extend a non abstract
3755         project.
3756
3757         * prj-pp.adb: Use functions Present and No throughout
3758         (Print): Take into account the full associative array attribute
3759         declarations.
3760
3761         * prj-proc.adb: Use functions Present and No throughout
3762         (Expression): Call itself with the same From_Project_Node for the
3763         default value of an external reference.
3764
3765         * prj-strt.adb: Use functions Present and No throughout
3766         (Parse_Variable_Reference): If a variable is specified as a simple name
3767         and is not found in the current project, look for it also in the
3768         ancestors of the project.
3769
3770         * prj-tree.ads, prj-tree.adb (Present): New function
3771         (No): New function
3772         Use functions Present and No throughout
3773         (Parent_Project_Of): New function
3774         (Set_Parent_Project_Of): New procedure
3775
3776         * snames.ads, snames.adb: 
3777         Add new standard names Object_Generated and Objects_Linked
3778
3779 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
3780
3781         * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
3782         and the derived type are of the same kind.
3783         (Expand_Call): Generate type conversions for actuals of
3784         record or array types when the parent and the derived types differ in
3785         size and/or packed status.
3786
3787 2008-05-20  Javier Miranda  <miranda@adacore.com>
3788             Ed Schonberg  <schonberg@adacore.com>
3789
3790         * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
3791         generating dispatch tables of locally defined tagged types statically.
3792         Remove implicit if-statement that is no longer required.
3793         (Expand_Dispatching_Call): If this is a call to an instance of the
3794         generic dispatching constructor, the type of the first argument may be
3795         a subtype of Tag, so always use the base type to recognize this case.
3796
3797 2008-05-20  Thomas Quinot  <quinot@adacore.com>
3798
3799         * exp_dist.adb
3800         (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
3801         and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
3802         assigning NULL into the result, to avoid a spurious warning.
3803         (Add_RACW_Features, case Same_Scope): Add assertion that designated type
3804         is not frozen.
3805         (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
3806         type.
3807         (Build_From_Any_Function, Build_To_Any_Function,
3808         Build_TypeCode_Function): For a type that has user-specified stream
3809         attributes, use an opaque sequence of octets as the representation.
3810
3811 2008-05-20  Kevin Pouget  <pouget@adacore.com>
3812
3813         * exp_smem.ads, exp_smem.adb: Construction of access and assign
3814         routines has been replaced by an instantiation of
3815         System.Shared_Storage.Shared_Var_Procs generic package, while expanding
3816         shared variable declaration.
3817         Calls to access and assign routines have been replaced by calls to
3818         Read/Write routines of System.Shared_Storage.Shared_Var_Procs
3819         instantiated package.
3820         
3821         * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
3822         It identifies the new generic package added in s-shasto.
3823
3824         * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
3825         is instantiated for each shared passive variable. It provides
3826         supporting procedures called upon each read or write access by the
3827         expanded code.
3828
3829         * sem_attr.adb:
3830         For this runtime unit (always compiled in GNAT mode), we allow
3831         stream attributes references for limited types for the case where
3832         shared passive objects are implemented using stream attributes,
3833         which is the default in GNAT's persistent storage implementation.
3834
3835 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3836
3837         * freeze.adb
3838         (Freeze_Enumeration_Type): For a subtype that inherits a foreign
3839         convention from its base type, do not set the type to that of integer,
3840         because it may inherit a size clause.
3841         Warn on a size clause with a size different
3842         from that of Integer, if the type has convention C.
3843
3844 2008-05-20  Vincent Celier  <celier@adacore.com>
3845
3846         * gnatname.adb
3847         (Scan_Args): Rewrite to take into account new switch --and to separate
3848         arguments into sections.
3849         (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
3850         section, then Finalize.
3851
3852 2008-05-20  Tristan Gingold  <gingold@adacore.com>
3853
3854         * init.c: Enable stack probing on ppc-linux.
3855
3856         * tracebak.c: Add symbolic traceback for ppc-linux.
3857
3858         * system-linux-ppc.ads: Enable stack probing on ppc-linux.
3859
3860 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
3861
3862         * Makefile.in
3863         (common-tools): New rule, to avoid parallel build failure on gnat tools.
3864         Reenable parallel builds on this Makefile.
3865
3866         * Make-lang.in: Update dependencies.
3867
3868 2008-05-20  Robert Dewar  <dewar@adacore.com>
3869
3870         * opt.ads (Treat_Restrictions_As_Warnings): New switch
3871
3872         * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
3873         Treat_Restrictions_As_Warnings.
3874
3875         * switch-c.adb: Recognize new switch -gnatr
3876
3877         * usage.adb: Add line for -gnatr
3878
3879 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
3880
3881         * par-ch3.adb
3882         (P_Access_Definition): Change the error message when parsing "access
3883         all" in Ada 95 mode. The message no longer forces the user to recompile
3884         in 05 mode only to discover that anonymous access types are not allowed
3885         to have "all".
3886
3887 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
3888
3889         * par-ch9.adb
3890         (P_Protected): Update the error message on missing "-gnat05" switch when
3891         using interfaces in conjunction with protected types. Remove the
3892         incorrect error message associated with the presence of "private" after
3893         a "with".
3894
3895 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3896
3897         * sem_aggr.adb: Update comments.
3898         Improve previous change for PR ada/17985
3899
3900 2008-05-20  Thomas Quinot  <quinot@adacore.com>
3901
3902         * sem_cat.adb
3903         (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
3904         the visible part of the spec of a remote types unit.
3905         (Validate_Remote_Access_Object_Type_Declaration):
3906         New local subprogram Is_Valid_Remote_Object_Type, replaces
3907         Is_Recursively_Limited_Private.
3908         (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
3909         non-controlling formals (and the return type, even though this is not
3910         explicit in the standard) must support external streaming.
3911         (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
3912         as above for of RAS types and RCI subprograms. (The return type is not
3913         checked yet).
3914         Update comments related to RACWs designating limited interfaces per
3915         ARG ruling on AI05-060.
3916
3917         * sem_util.ads, sem_util.adb
3918         (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
3919         Is_Remote_Call_Interface to identify RACW types in a stable and
3920         consistent way. We used to rely in this predicate on the privateness of
3921         the designated type and its ancestors, but depending on the currently
3922         visible private parts, this caused false negatives. We now uniformly
3923         rely on checks made at the point where the RACW type is declared.
3924         (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
3925
3926 2008-05-20  Javier Miranda  <miranda@adacore.com>
3927             Ed Schonberg  <schonberg@adacore.com>
3928             Hristian Kirtchev  <kirtchev@adacore.com>
3929
3930         * sem_ch3.adb
3931         (Analyze_Object_Declaration): Fix over-conservative condition
3932         restricting use of predefined assignment with tagged types that have
3933         convention CPP.
3934         (Analyze_Object_Declaration): Relax the check regarding deferred
3935         constants declared in scopes other than packages since they can be
3936         completed with pragma Import.
3937         Add missing escaping of all-caps word 'CPP' in error messages.
3938         (Build_Discriminated_Subtype): Do not inherit representation clauses
3939         from parent type if subtype already carries them, because they are
3940         inherited earlier during derivation and already include those that may
3941         come from a partial view.
3942
3943         * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
3944         Check the declarations of a subprogram body for proper deferred
3945         constant completion.
3946
3947         * sem_ch7.ads, sem_ch7.adb
3948         (Inspect_Deferred_Constant_Completion): Moved to sem_util.
3949
3950 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3951             Thomas Quinot  <quinot@adacore.com>
3952
3953         * sem_ch4.adb
3954         (Try_Indexed_Call): Handle properly a construct of the form F(S) where
3955         F is a parameterless function that returns an array, and S is a subtype
3956         mark.
3957         (Analyze_Call): Insert dereference when the prefix is a parameterless
3958         function that returns an access to subprogram and the call has
3959         parameters.
3960         Reject a non-overloaded call whose name resolves to denote
3961         a primitive operation of the stub type generated to support a remote
3962         access-to-class-wide type.
3963
3964 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3965
3966         * sem_ch8.adb
3967         (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
3968         when there is a use clause for the same entity in the context.
3969         (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
3970         created for a stream attribute of an abstract type or interface type.
3971
3972 2008-05-20  Thomas Quinot  <quinot@adacore.com>
3973
3974         * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
3975         subprogram.
3976
3977         * sem_type.adb
3978         (Add_One_Interp): Ignore any interpretation that is a primitive
3979         operation of an RACW stub type (these primitives are only executed
3980         through dispatching, never through static calls).
3981         (Collect_Interps): When only one interpretation has been found, set N's
3982         Entity and Etype to that interpretation, otherwise Entity and Etype may
3983         still refer to an interpretation that was ignored by Add_One_Interp,
3984         in which case would end up with being marked as not overloaded but with
3985         an Entity attribute not pointing to its (unique) correct interpretation.
3986
3987 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3988
3989         * sem_eval.adb
3990         (Eval_Slice): Warn when a slice whose discrete range is a subtype name
3991         denotes the whole array of its prefix.
3992
3993 2008-05-20  Robert Dewar  <dewar@adacore.com>
3994
3995         * sem_res.adb (Resolve_Op_Not): Warn on double negation
3996
3997 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3998
3999         * sprint.adb
4000         (Print_Itype): Do not modify the sloc of the component type of a
4001         (packed) array itype, because it is an unrelated type whose source
4002         location is independent of the point of creation of the itype itself.
4003
4004 2008-05-20  Thomas Quinot  <quinot@adacore.com>
4005
4006         * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
4007         Append.
4008
4009 2008-05-20  Robert Dewar  <dewar@adacore.com>
4010             Vincent Celier  <celier@adacore.com>
4011
4012         * vms_data.ads: Add entry for -gnatr
4013         Put GNAT SYNC section in proper alpha order
4014         Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
4015
4016         * gnat_ugn.texi: Add documentation for new gnatname switch --and
4017         Update the style checks section
4018         Add documentation of -gnatr
4019         Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
4020         subsection the explanation how compiler checks should be disabled for
4021         gnatcheck.
4022         Update the list of Ada 95 reserved words used by in the project language
4023         Add documentation for project qualifiers.
4024         Document that abstract projects may be extended by different projects in
4025         the same project tree.
4026         Add documentation for gnatmake switch -d
4027
4028         * ug_words: Add -gnatyy VMS equivalence string.
4029         Add entry for -gnatr
4030
4031 2008-05-20  Bob Duff  <duff@adacore.com>
4032
4033         * a-rttiev.adb
4034         (Set_Handler): Remove code from both of these that implements
4035         RM-D.15(15/2), because it causes a race condition and potential
4036         deadlock.
4037         (Process_Queued_Events): Add comment explaining "exception when others
4038         => null". Add clarifying ".all", even though implicit .all is legal
4039         here.
4040
4041 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
4042
4043         * s-winext.ads: Replace representation clause by pragma Pack. Gives
4044         equivalent representation, but has the advantage of allowing
4045         compilation of this file under 64 bits platforms.
4046
4047         * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
4048
4049         * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
4050
4051         * adaint.c: 
4052         Don't define dummy implementation of convert_addresses on ppc-linux.
4053
4054 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
4055
4056         * exp_ch7.adb
4057         (Expand_Ctrl_Function_Call): Do not attach result to finalization list
4058         if expression is aggregate component.
4059
4060 2008-05-20  Robert Dewar  <dewar@adacore.com>
4061
4062         * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
4063         sem_ch12.adb: Update comments. Minor reformatting.
4064
4065         * exp_ch2.adb: Typo
4066
4067         * s-unstyp.ads: Fixed some typos in comments.
4068
4069 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
4070
4071         * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
4072         type/constant.
4073
4074         * g-socthi-vxworks.ads: Update to latest socket changes.
4075
4076         * a-caldel-vms.adb: Resync with a-caldel spec.
4077
4078         * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
4079         Update comments.
4080
4081 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
4082
4083         * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
4084         for dummy types pointed to by the converted pointer types.
4085
4086 2008-05-15  Eric Botcazou  <ebotcazou@adacore.com>
4087
4088         * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
4089         of records and unions.
4090         (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
4091
4092 2008-05-14  Samuel Tardieu  <sam@rfc1149.net>
4093             Robert Dewar <dewar@adacore.com>
4094
4095         * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
4096         restrictions to the prefix of 'Old.
4097         * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
4098         * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
4099         variables.
4100
4101 2008-05-13  Eric Botcazou  <ebotcazou@adacore.com>
4102
4103         PR ada/24880
4104         PR ada/26635
4105         * utils.c (convert) <INTEGER_TYPE>: When converting an additive
4106         expression to an integral type with lower precision, use NOP_EXPR
4107         directly in a couple of special cases.
4108
4109 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
4110             Ed Schonberg <schonberg@adacore.com>
4111
4112         * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
4113         constraint expressions.
4114
4115 2008-05-12  Tomas Bily  <tbily@suse.cz>
4116
4117         * utils2.c (known_alignment, contains_save_expr_p)
4118         (gnat_mark_addressable): Use CASE_CONVERT.
4119         * decl.c (annotate_value): Likewise.
4120         * trans.c (maybe_stabilize_reference): Likewise.
4121         * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
4122         * utils.c (rest_of_record_type_compilation): Likewise.
4123         * trans.c (protect_multiple_eval, Attribute_to_gnu)
4124         (protect_multiple_eval): Likewise.
4125
4126 2008-05-08  Andreas Schwab  <schwab@suse.de>
4127
4128         * utils.c (handle_pure_attribute, init_gigi_decls): Rename
4129         DECL_IS_PURE to DECL_PURE_P.
4130
4131 2008-05-05  Eric Botcazou  <ebotcazou@adacore.com>
4132
4133         * decl.c (maybe_pad_type): Add ??? comment.
4134
4135 2008-05-03  Eric Botcazou  <ebotcazou@adacore.com>
4136
4137         * decl.c (components_to_record): Zero the alignment of the qualified
4138         union built for the variant part upon creating it.
4139
4140 2008-05-03  Eric Botcazou  <ebotcazou@adacore.com>
4141
4142         * decl.c (maybe_pad_type): Try to get a form of the type with integral
4143         mode even if the alignment is not a factor of the original size.  But
4144         make sure to create the inner field with the original size.  Reorder.
4145         * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
4146         record as always addressable.
4147         * utils.c (convert): Deal specially with conversions between original
4148         and packable versions of a record type.
4149         * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
4150         recognizing an assignment between padded objects.
4151
4152 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
4153
4154         * decl.c (make_packable_type): Resize the last component to its RM size
4155         only if it is of an aggregate type.
4156         * trans.c (call_to_gnu): Fix nit in comment.
4157         (gnat_to_gnu): Likewise.
4158
4159 2008-04-30  Samuel Tardieu  <sam@rfc1149.net>
4160
4161         * Makefile.in: Adapt sh4-linux target.
4162
4163 2008-04-29  Ed Schonberg  <schonberg@adacore.com>
4164
4165         PR ada/35792
4166         * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
4167         tagged type by an untagged protected or task type.
4168
4169 2008-04-28  Eric Botcazou  <ebotcazou@adacore.com>
4170             Tristan Gingold  <gingold@adacore.com>
4171
4172         PR ada/36007
4173         * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
4174         of aliased objects with an unconstrained nominal subtype.
4175         Cap the promotion to the effective alignment of the word mode.
4176
4177 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4178
4179         * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
4180         (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
4181         Use '&&' instead of ';'.
4182
4183 2008-04-24  Olivier Hainque  <hainque@adacore.com>
4184
4185         * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
4186         doesn't require signed arithmetic anymore.
4187
4188 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
4189
4190         * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
4191         (call_to_gnu): Don't set TREE_INVARIANT.
4192         * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
4193
4194 2008-04-22  Joel Sherrill <joel.sherrill@oarcorp.com>
4195
4196         * s-osinte-rtems.adb: Add sigalstack function.
4197         * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
4198         function. Add Alternate_Stack and Alternate_Stack_Size.
4199         Add missing process_shared field to pthread_condattr_t
4200         and change ss_low_priority to int from timespec.
4201
4202 2008-04-22  Samuel Tardieu  <sam@rfc1149.net>
4203
4204         * i-forbla.adb: Link against -llapack and -lblas by default
4205         instead of the private -lgnalasup.
4206
4207 2008-04-21  Olivier Hainque  <hainque@adacore.com>
4208
4209         Access to most C builtins from Ada
4210         * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
4211         (handle_pure_attribute, handle_novops_attribute,
4212         handle_nonnull_attribute, handle_sentinel_attribute,
4213         handle_noreturn_attribute, handle_malloc_attribute,
4214         handle_type_generic_attribute): New attribute handlers, from C fe.
4215         (gnat_internal_attribute_table): Map the new handlers.
4216         (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
4217         (init_gigi_decls): ... here.
4218         (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
4219         Move to a section dedicated to builtins processing.
4220         (build_void_list_node, builtin_type_for_size): New functions.
4221         (def_fn_type, get_nonnull_operand): Likewise.
4222         (install_builtin_elementary_type, install_builtin_function_types,
4223         install_builtin_attributes): Likewise.
4224         (fake_attribute_handler): Fake handler for attributes we don't
4225         support in Ada.
4226         (def_builtin_1): New function, worker for DEF_BUILTIN.
4227         (install_builtin_functions): New function.
4228         (gnat_install_builtins): Move to the builtins processing section.
4229         Now calling the newly introduced installers.
4230
4231 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
4232
4233         * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
4234         constant objects, but not exceptions.
4235         * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
4236         compatibility test.
4237         * utils.c (create_var_decl_1): Likewise.
4238         * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
4239         the type when copying to padded object and the source is a constructor.
4240
4241 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4242
4243         * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
4244         alignment, reset it to zero if it would end up not being greater
4245         than that of the type.
4246
4247 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4248
4249         * decl.c (maybe_pad_type): Only generate the XVS parallel type if
4250         the padded type has a variable size.
4251
4252 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4253
4254         * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
4255         target pointer mechanism as soon as the size is not constant.
4256
4257 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4258
4259         * gigi.h (create_var_decl_1): Declare.
4260         (create_var_decl): Turn into a macro invoking create_var_decl_1.
4261         (create_true_var_decl): Likewise.
4262         * utils.c (create_var_decl_1): Make global and reorder parameters.
4263         (create_var_decl): Delete.
4264         (create_true_var_decl): Likewise.
4265
4266 2008-04-17  Eric Botcazou  <ebotcazou@adacore.com>
4267
4268         * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
4269         objects by default.
4270         * fe.h (Debug_Flag_Dot_A): Delete.
4271         * debug.adb (-gnatd.a): Update documentation.
4272
4273 2008-04-17  Samuel Tardieu  <sam@rfc1149.net>
4274
4275         * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
4276         "not null" parameter.
4277
4278 2008-04-17  Samuel Tardieu  <sam@rfc1149.net>
4279
4280         * g-socket.adb: Add a message "IPv6 not supported" to the
4281         Socket_Error exception.
4282
4283 2008-04-16  Samuel Tardieu  <sam@rfc1149.net>
4284
4285         PR ada/29015
4286         * sem_ch12.adb (Instantiate_Type): Check whether the full view of
4287         the type is known instead of the underlying type.
4288
4289 2008-04-15  Ed Schonberg  <schonberg@adacore.com>
4290
4291         PR ada/22387
4292         * exp_ch5.adb (Expand_Assign_Record): Within an initialization
4293         procedure for a derived type retrieve the discriminant values from
4294         the parent using the corresponding discriminant.
4295
4296 2008-04-15  Samuel Tardieu  <sam@rfc1149.net>
4297             Gary Dismukes  <dismukes@adacore.com>
4298
4299         PR ada/28733
4300         * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
4301         which is not an entity (and hence not a package).
4302         (End_Use_Package): Ditto.
4303
4304 2008-04-15  Ed Schonberg  <schonberg@adacore.com>
4305
4306         PR ada/16086
4307         * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
4308         protected operation that matches the signature, not only an entry, a
4309         regular subprogram or a literal.
4310
4311 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4312
4313         * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
4314         * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
4315         if a size or alignment is specified.  Do not take into account
4316         alignment promotions for the computation of the object's size.
4317         <type>: Call maybe_pad_type only if a size or alignment is specified.
4318         (maybe_pad_type): Really reuse the RM_Size of the original type if
4319         requested.
4320         * trans.c (Attribute_to_gnu): Fix a couple of nits.
4321         * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
4322         statements.  Use the padded view of the type when copying between
4323         padded objects of the same underlying type.
4324
4325 2008-04-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4326
4327         * vms_data.ads: Fix typo in constant.
4328         * gen-soccon.c: Fix typo in error string.
4329         * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
4330         Fix typos.
4331         * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
4332         bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
4333         erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
4334         exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
4335         exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
4336         g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
4337         mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
4338         s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
4339         s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
4340         sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
4341         sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
4342         sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
4343         sinfo.ads: Fix typos in comments.
4344
4345 2008-04-14  Robert Dewar  <dewar@adacore.com>
4346
4347         * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
4348         to every non-object and change error message.
4349
4350 2008-04-14  Robert Dewar  <dewar@adacore.com>
4351
4352         * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
4353         * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
4354         directly.
4355
4356 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4357
4358         PR ada/18680
4359         * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
4360         apply pragma Linker_Section on type.
4361
4362 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4363
4364         PR ada/16098
4365         * sem_prag.adb (Error_Pragma_Ref): New.
4366         (Process_Convention): Specialized message for non-local
4367         subprogram renaming. Detect the problem in homonyms as well.
4368
4369 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4370
4371         PR ada/15915
4372         * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
4373         * sem_ch12.adb (Instantiate_Object): Use it.
4374         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
4375         storage pool denotes a variable as per RM 13.11(15).
4376
4377 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4378
4379         * sem_util.ads, sem_util.adb (In_Subprogram): New function.
4380         * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
4381
4382 2008-04-14  Rolf Ebert  <rolf.ebert.gcc@gmx.de>
4383
4384         PR ada/20822
4385         * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
4386         line endings even on non-Unix platforms.
4387
4388 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4389
4390         PR ada/35050
4391         * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
4392         renaming information.
4393
4394 2008-04-13  Samuel Tardieu  <sam@rfc1149.net> 
4395
4396         PR ada/17985
4397         * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
4398         itself.
4399
4400 2008-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4401
4402         * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
4403         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
4404         snames.ads, sprint.adb, stand.ads, stringt.ads,
4405         styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
4406         switch.ads, sysdep.c, table.adb, table.ads,
4407         targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
4408         trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
4409         uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
4410         vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
4411         widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
4412         xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
4413         Fix comment typos.
4414
4415         * sem_ch10.adb, sem_ch10.ads,
4416         sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
4417         sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
4418         sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
4419         sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
4420         sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
4421         sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
4422         sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
4423         sem_warn.ads: Fix comment typos.
4424
4425         * s-secsta.adb, s-sequio.ads, s-shasto.ads,
4426         s-soflin.ads, s-stalib.ads, s-stausa.adb,
4427         s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
4428         s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
4429         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
4430         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
4431         s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
4432         s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
4433         s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
4434         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
4435         s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
4436         s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
4437         s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
4438         s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
4439         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
4440         scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
4441         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
4442         sem_cat.adb, sem_cat.ads: Fix comment typos.
4443
4444 2008-04-12  Joel Sherrill  <joel@oarcorp.com>
4445
4446         PR ada/35825
4447         * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
4448
4449 2008-04-12  Arnaud Charlet  <charlet@adacore.com>
4450
4451         * s-linux-hppa.ads: Fix syntax errors.
4452
4453 2008-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4454
4455         * gnat_ugn.texi: Fix typos.
4456         * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
4457         restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
4458         s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
4459         s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
4460         s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
4461         s-finimp.adb, s-finroo.ads, s-fishfl.ads,
4462         s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
4463         s-hibaen.ads, s-htable.ads, s-imgcha.adb,
4464         s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
4465         s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
4466         s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
4467         s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
4468         s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
4469         s-osinte-darwin.ads, s-osinte-freebsd.ads,
4470         s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
4471         s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
4472         s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
4473         s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
4474         s-parame-hpux.ads, s-parame-vms-alpha.ads,
4475         s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
4476         s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
4477         s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
4478         s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
4479         s-rident.ads: Fix comment typos.
4480
4481 2008-04-09  Samuel Tardieu  <sam@rfc1149.net>
4482
4483         PR ada/28305
4484         * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
4485         environment if generic instance is a top-level one.
4486
4487 2008-04-09  Doug Rupp  <rupp@adacore.com>
4488
4489         * decl.c (validate_size): Set minimum size for fat pointers same as
4490         access types. Code clean ups.
4491
4492         * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
4493         (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
4494
4495         * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
4496
4497         * s-crtl.ads (malloc32) New function, alias for malloc
4498         (realloc32) New function, alias for realloc
4499
4500         * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
4501
4502         * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
4503         allocator size is 32 and default pointer size is 64.
4504         (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
4505         lhs type if smaller, whatever the modes.
4506
4507         * gigi.h (malloc32_decl): New macro definition
4508
4509         * utils.c (init_gigi_decls): New malloc32_decl
4510         Various code clean ups.
4511
4512         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
4513         Task_Address vice System.Address.
4514
4515         * s-taspri-vms.ads: Import System.Aux_DEC
4516         (Task_Address): New subtype of System.Aux_DEC.Short_Address
4517         (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
4518
4519         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
4520         Task_Address vice System.Address.
4521
4522         * s-inmaop-vms.adb: Import System.Task_Primitives
4523         (To_Address): Unchecked convert to Task_Address vice System.Address
4524
4525         * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
4526         expires now.
4527         (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
4528         (To_Address) Unchecked convert to Task_Address vice System.Address
4529
4530         * s-tpopde-vms.adb: Remove unnecessary warning pragmas
4531
4532         * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
4533
4534 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4535
4536         * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
4537         (fdesc_type_node): Define.
4538         (null_fdesc_node): Likewise.
4539         * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
4540         uses descriptors for vtables and the type comes from a dispatch table,
4541         return the descriptor type.
4542         * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
4543         uses descriptors for vtables and the type comes from a dispatch table,
4544         build a descriptor in the static case and copy the existing one in the
4545         non-static case.
4546         (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
4547         the type is a pointer-to-subprogram coming from a dispatch table,
4548         return the null descriptor.
4549         <N_Unchecked_Type_Conversion>: If the target uses descriptors for
4550         vtables, the source type is the descriptor type and the target type
4551         is a pointer type, first build the pointer.
4552         * utils.c (init_gigi_decls): If the target uses descriptors for vtables
4553         build the descriptor type and the null descriptor.
4554
4555 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4556
4557         * decl.c (prepend_attributes): Fix typo.
4558         * trans.c (Pragma_to_gnu): Likewise.
4559         * utils.c (gnat_genericize): Likewise.
4560
4561 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4562             Richard Kenner  <kenner@adacore.com>
4563
4564         * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
4565         * decl.c (gnat_to_gnu_entity): Adjust for above change.
4566         <E_Record_Type>: Try to get a better form of the component for
4567         packing, even if it has an integral mode.
4568         <E_Record_Subtype>: Likewise.
4569         * trans.c (gnat_to_gnu): Do not require BLKmode for the special
4570         exception suppressing the final conversion between record types.
4571
4572 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4573
4574         * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
4575         alignment for space, promote the alignment of non-scalar variables with
4576         no size and alignment.
4577         * gigi.h (gnat_types_compatible_p): Declare.
4578         * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
4579         * trans.c (gnat_to_gnu): Revert revision 129339 change.  Minor cleanup.
4580         * utils.c (gnat_types_compatible_p) : New predicate.
4581         (convert): Use it throughout to test for cases where a mere view
4582         conversion is sufficient.
4583         * utils2.c (build_binary_op): Minor tweaks.
4584         (build_unary_op): Likewise.
4585
4586 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4587
4588         * decl.c (adjust_packed): Expand comment.
4589
4590 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
4591
4592         * s-tasuti.ads: Use Task_Address instead of System.Address.
4593
4594         * makeutl.adb (Path_Or_File_Name): New function
4595
4596         * nlists.ads, itypes.ads: Update comments.
4597
4598         * s-crtl.ads (malloc32, realloc32): New functions.
4599
4600         * s-auxdec.ads (Short_Address_Size): New constant.
4601
4602         * a-taside.adb, s-tasdeb.adb: Use Task_Address.
4603
4604         * s-ststop.ads, s-ststop.adb: New file.
4605
4606         * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
4607         Minor reformatting.
4608
4609 2008-04-08  Pascal Obry  <obry@adacore.com>
4610
4611         * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
4612         (Stop_Bits_Number): New type.
4613         (Parity_Check): Likewise.
4614         (Set): Add parameter to set the number of stop bits and
4615         the parity. Parameter timeout is now a duration instead
4616         of a plain integer.
4617
4618         * g-sercom-linux.adb:
4619         Implement the stop bits and parity support for GNU/Linux.
4620         Fix handling of timeout, it must be given in tenth of seconds.
4621         
4622         * g-sercom-mingw.adb:
4623         Implement the stop bits and parity support for Windows.
4624         Use new s-win32.ads unit instead of declaring Win32 services
4625         directly into this body.
4626         Update handling of timeout as now a duration.
4627
4628         * s-win32.ads, s-winext.ads: New files.
4629
4630 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4631             Arnaud Charlet  <charlet@adacore.com>
4632
4633         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
4634
4635         s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
4636         s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
4637
4638         * s-osinte-lynxos-3.ads,
4639         (Alternate_Stack): Remove when not needed. Simplify declaration
4640         otherwise.
4641         (Alternate_Stack_Size): New constant.
4642
4643         s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
4644         'Unrestricted_Access.
4645
4646         * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
4647         s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
4648         s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
4649         s-osinte-solaris.ads, s-osinte-vms.ads
4650         (SA_ONSTACK): New constant.
4651         (stack_t): New record type.
4652         (sigaltstack): New imported function.
4653         (Alternate_Stack): New imported variable.
4654         (Alternate_Stack_Size): New constant.
4655
4656         * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
4657
4658         * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
4659         s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
4660         s-taspri-vms.ads (Task_Address): New subtype of System.Address
4661         (Task_Address_Size): New constant size of System.Address
4662         (Alternate_Stack_Size): New constant.
4663
4664         * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
4665         (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
4666         Establish the alternate stack if the platform makes use of n alternate
4667         signal stack for stack overflows.
4668         (Create_Task): Take into account the alternate stack in the stack size.
4669         (Initialize): Save the address of the alternate stack into the ATCB for
4670         the environment task.
4671         (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
4672
4673         * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
4674
4675         * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
4676
4677         * s-intman-posix.adb: 
4678         (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
4679         alternate signal stack for stack overflows.
4680
4681         * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
4682         x86-64, adjust the saved value of the stack pointer if the signal was
4683         raised by a stack checking probe.
4684         (HP-UX section): Use global __gnat_alternate_stack as signal handler
4685         stack and only for SIGSEGV.
4686         (Linux section): Likewise on x86 and x86-64.
4687         [VxWorks section]
4688         (__gnat_map_signal): Now static.
4689         (__gnat_error_handler): Not static any more.
4690         (__gnat_adjust_context_for_raise): New function. Signal context
4691         adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
4692         propagation circuitry.
4693         (__gnat_error_handler): Second argument of a sigaction handler is a
4694         pointer, not an int, and is unused.
4695         Adjust signal context before mapping to exception.
4696         Install signal handlers for LynxOS case.
4697
4698         * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
4699         (Task_Id): Set size to Task_Address_Size
4700         (To_Task_id): Unchecked convert from Task_Address vice System.Address
4701         (To_Address): Unchecked convert to Task_Address vice System.Address
4702
4703         * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
4704         address into the ATCB if the platform makes use of an alternate signal
4705         stack for stack overflows.
4706         (Free_Task): Add call to Finalize_Attributes_Link.
4707         Add argument Relative_Deadline to pass the value specified for
4708         the task. This is not yet used for any target.
4709
4710         * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
4711         the value specified for the task.
4712
4713 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
4714
4715         (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
4716         (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
4717         s-vxwext-rtp.adb): New files.
4718
4719         * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb: 
4720         Minor updates to accomodate changes above.
4721
4722 2008-04-08  Pascal Obry  <obry@adacore.com>
4723
4724         * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
4725         s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
4726         Use new s-win32.ads unit instead of declaration
4727         from s-osinte-mingw.ads.
4728         
4729         * s-osinte-mingw.ads:
4730         Move all non tasking based interface to s-win32.ads.
4731         
4732         * s-osprim-mingw.adb:
4733         Remove duplicated declarations and use s-win32.ads
4734         unit instead.
4735
4736 2008-04-08  Vincent Celier  <celier@adacore.com>
4737             Arnaud Charlet  <charlet@adacore.com>
4738
4739         * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
4740         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
4741         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
4742         mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
4743         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
4744
4745         * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
4746         mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
4747         mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
4748         mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
4749         mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
4750         mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
4751         mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
4752         mlib-tgt-specific-mingw.adb: New names.
4753
4754         * Makefile.in: 
4755         On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
4756         Get rid of gnatbl.
4757         (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
4758         Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
4759         Minor updates for VMS
4760
4761         * gnatbl.c: Removed.
4762
4763 2008-04-08  Thomas Quinot  <quinot@adacore.com>
4764
4765         * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
4766         g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
4767         gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
4768         a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
4769         s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
4770         ASCII.NUL throughout.
4771
4772 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
4773             Matthew Heaney  <heaney@adacore.com>
4774
4775         * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
4776         renaming.
4777
4778         * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,  
4779         a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
4780         to convention for non-RM specs.
4781         Add descriptive header, and documented each operation
4782         document each operation
4783
4784 2008-04-08  Robert Dewar  <dewar@adacore.com>
4785             Bob Duff  <duff@adacore.com>
4786             Gary Dismukes  <dismukes@adacore.com>
4787             Ed Schonberg  <schonberg@adacore.com>
4788
4789         * alloc.ads: Add entries for Obsolescent_Warnings table
4790
4791         * einfo.ads, einfo.adb: Minor reformatting.
4792         (Is_Discriminal): New subprogram.
4793         (Is_Prival): New subprogram.
4794         (Is_Protected_Component): New subprogram.
4795         (Is_Protected_Private): Removed.
4796         (Object_Ref, Set_Object_Ref): Removed.
4797         (Prival, Set_Prival): Change assertion.
4798         (Privals_Chain, Set_Privals_Chain): Removed.
4799         (Prival_Link, Set_Prival_Link): New subprogram.
4800         (Protected_Operation, Set_Protected_Operation): Removed.
4801         (Protection_Object, Set_Protection_Object): New subprogram.
4802         (Write_Field17_Name): Remove case for Object_Ref.
4803         (Write_Field20_Name): Add case for Prival_Link.
4804         (Write_Field22_Name): Remove case for Protected_Operation,
4805         Privals_Chain.
4806         Add case for Protection_Object.
4807         (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
4808         so clients
4809         (Overlays_Constant): New flag
4810         (Is_Constant_Object): New predicate
4811         (Is_Standard_Character_Type): New predicate
4812         (Optimize_Alignment_Space): New flag
4813         (Optimize_Alignment_Time): New flag
4814         (Has_Postconditions): New flag
4815         (Obsolescent_Warrning): Field removed
4816         (Spec_PPC_List): New field
4817         (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
4818         subprograms to get and set the relative deadline associated to a task.
4819
4820         * exp_attr.adb (May_Be_External_Call): Account for the case where the
4821         Access attribute is part of a named parameter association.
4822         (Expand_Access_To_Protected_Op): Test for the attribute occurring
4823         within an init proc and use that directly as the scope rather than
4824         traversing up to the protected operation's enclosing scope. Only apply
4825         assertion on Is_Open_Scopes in the case the scope traversal is done.
4826         For the init proc case use the address of the first formal (_init) as
4827         the protected object reference.
4828         Implement Invalid_Value attribute
4829         (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
4830         contents of the dispatch table there is no need to duplicate the
4831         itypes associated with record types (i.e. the implicit full view
4832         of private types).
4833         Implement Enum_Val attribute
4834         (Expand_N_Attribute_Reference, case Old): Properly handle appearence
4835         within _Postconditions procedure
4836         (Expand_N_Attribute_Reference, case Result): Implement new attribute
4837
4838         * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
4839         a return statement calls a function that is not available in
4840         configurable runtime.
4841         (Analyze_If_Statement): don't optimize simple True/False cases in -O0
4842         (Expand_Non_Function_Return): Generate call to _Postconditions proc
4843         (Expand_Simple_Function_Return): Ditto
4844
4845         * frontend.adb: Add call to Sem_Aux.Initialize
4846
4847         * sem_aux.ads, sem_aux.adb: New file.
4848
4849         * par-prag.adb: Add entries for pragmas Precondition/Postcondition
4850         Add new Pragma_Relative_Deadline.
4851         Add support for pragmas Check and Check_Policy
4852
4853         * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
4854         (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
4855         (Analyze_Attribute): In case of attributes 'Alignment and 'size add
4856         missing check because they are not allowed in CPP tagged types.
4857         Add Sure parameter to Note_Possible_Modification calls
4858         Add implementation of Invalid_Value attribute
4859         Implement new attribute Has_Tagged_Values
4860         Implement Enum_Val attribute
4861         (Analyze_Attribute, case Range): Set Name_Req True for prefix of
4862         generated attributes.
4863         (Analyze_Attribute, case Result): If prefix of the attribute is
4864         overloaded, it always resolves to the enclosing function.
4865         (Analyze_Attribute, case Result): Properly deal with analysis when
4866         Postconditions are not active.
4867         (Resolve_Attribute, case Result): Properly deal with appearence during
4868         preanalysis in spec.
4869         Add processing for attribute Result
4870
4871         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
4872         for operators.
4873         (Analyze_Subprogram_Body): Install private_with_clauses when the body
4874         acts as a spec.
4875         (Check_Inline_Pragma): recognize an inline pragma that appears within
4876         the subprogram body to which it applies.
4877         (Analyze_Function_Return): Check that type of the expression of a return
4878         statement in a function with a class-wide result is not declared at a
4879         deeper level than the function.
4880         (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
4881         (Verify_Overriding_Indicator): Handle properly subprogram bodies for
4882         user- defined operators.
4883         (Install_Formals): Moved to spec to allow use from Sem_Prag for
4884         analysis of precondition/postcondition pragmas.
4885         (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
4886         Last_Formal, along with lots of comments on what this is about
4887         (Analyze_Subprogram_Body): Fix case where we move entities from the
4888         spec to the body when there are no body entities (now possible with
4889         precondition and postcondition pragmas).
4890         (Process_PPCs): New procedure
4891         (Analyze_Subprogram_Body): Add call to Process_PPCs
4892
4893         * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
4894         clause.
4895         (Pop_Scope): Restore Check_Policy_List on scope exit
4896         (Push_Scope): Save Check_Policy_List on scope entry
4897         Change name In_Default_Expression      => In_Spec_Expression
4898         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
4899         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
4900         (Analyze_Object_Renaming): Allow 'Reference as object
4901         (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
4902         (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
4903         of restriction identifier.
4904         Add Sure parameter to Note_Possible_Modication calls
4905
4906         * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
4907         Don't check for primitive operations when calling Rep_Item_Too_Late.
4908         (Process_Import_Or_Interface): Do not place flag on formal
4909         subprograms.
4910         (Analyze_Pragma, case Export): If the entity is a deferred constant,
4911         propagate information to full view, which is the one elaborated by the
4912         back-end.
4913         (Make_Inline): the pragma is effective if it applies to an internally
4914         generated subprogram declaration for a body that carries the pragma.
4915         (Analyze_Pragma, case Optimize_Alignment): Set new flag
4916         Optimize_Alignment_Local.
4917         (Analyze_PPC_In_Decl_Part): New procedure
4918         (Get_Pragma_Arg): Moved to outer level
4919         (Check_Precondition_Postcondition): Change to allow new visibility
4920         rules for package spec
4921         (Analyze_Pragma, case Check_Policy): Change placement rules to be
4922         same as pragma Suppress/Unsuppress.
4923         Change name In_Default_Expression      => In_Spec_Expression
4924         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
4925         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
4926         (Check_Precondition_Postcondition): Do proper visibility preanalysis
4927         for the case of these pragmas appearing in the spec.
4928         (Check_Enabled): New function
4929         (Initialize): New procedure
4930         (Tree_Read): New procedure
4931         (Tree_Write): New procedure
4932         (Check_Precondition_Postcondition): New procedure
4933         Implement pragmas Check and Check_Policy
4934         Merge Assert processing with Check
4935
4936         * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
4937         New warning flag -gnatw.e
4938
4939         * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
4940         returning whether a task (or main procedure) has a pragma
4941         Relative_Deadline.
4942         (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
4943         (or main procedure) has a pragma Relative_Deadline.
4944         Add Next_Pragma field to N_Pragma node
4945         (PPC_Enabled): New flag
4946         (Next_Pragma): Now used for Pre/Postcondition processing
4947
4948         * snames.h, snames.ads, snames.adb: New standard name
4949         Inherit_Source_Path
4950         Add entry for 'Invalid_Value attribute
4951         Add entry for new attribute Has_Tagged_Values
4952         Add entry for Enum_Val attribute
4953         Add new standard names Aggregate, Configuration and Library.
4954         Add _Postconditions
4955         Add _Result
4956         Add Pragma_Precondition
4957         Add Pragma_Postcondition
4958         Add Attribute_Result
4959         New standard name Archive_Builder_Append_Option
4960         (Preset_Names): Add _relative_deadline and relative_deadline definitions
4961         There was also a missing non_preemptive_within_priorities.
4962         (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
4963         Relative_Deadline.
4964         Add support for pragmas Check and Check_Policy
4965
4966         * tree_gen.adb: Call Sem_Aux.Tree_Write
4967
4968         * tree_in.adb: Call Sem_Aux.Tree_Read
4969
4970         * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
4971         sequence
4972
4973         * exp_intr.adb (Expand_Source_Info): New Build_Location calling
4974         sequence
4975
4976         * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
4977         (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
4978         Relative_Deadline.
4979         (Expand_Pragma_Check): New procedure
4980
4981         * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
4982         buffer.
4983
4984         * sinfo.adb (PPC_Enabled): New flag
4985
4986 2008-04-08  Robert Dewar  <dewar@adacore.com>
4987             Gary Dismukes  <dismukes@adacore.com>
4988             Javier Miranda  <miranda@adacore.com>
4989             Ed Schonberg  <schonberg@adacore.com>
4990
4991         * fe.h: Remove global Optimize_Alignment flag, no longer used
4992
4993         * layout.adb: Test Optimize_Alignment flags rather than global switch
4994
4995         * lib.ads, lib.adb: New OA_Setting field in library record
4996
4997         * lib-load.adb: New OA_Setting field in library record
4998
4999         * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
5000         units mentioned in limited_with_ clauses in the ali file, with an
5001         'Y' marker.
5002         New Ox fields in U line
5003
5004         * opt.adb: New flag Optimize_Alignment_Local
5005         (Check_Policy_List[_Config]): New flags
5006
5007         * opt.ads (Invalid_Value_Used): New flag
5008         New switch Optimize_Alignment_Local
5009         (Warn_On_Parameter_Order): New flag
5010         (Check_Policy_List[_Config]): New flags
5011
5012         * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
5013         limited_with clauses.
5014         New data structures for Optimize_Alignment
5015
5016         * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
5017         New procedure
5018         (Check_Consistent_Optimize_Alignment): Rework for new structure
5019         (Check_Consistent_Restrictions): Fix incorrect error message
5020
5021         sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
5022         created class-wide type (to the Parent field of the specific type).
5023         (Install_Siblings): Handle properly private_with_clauses on subprogram
5024         bodies and on generic units.
5025         (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
5026         illegal limited_with_clause that names a non-existent package.
5027         (Check_Body_Required): Determine whether a unit named a limited_with
5028         clause needs a body.
5029         (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
5030         Capture Optimize_Alignment settings to set new OA_Setting field in
5031         library record.
5032         (Build_Limited_Views): Include task and protected type declarations.
5033
5034         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
5035         case of a possible constant redeclaration where the current object is
5036         an entry index constant.
5037         (Analyze_Object_Declaration): Generate an error in case of CPP
5038         class-wide object initialization.
5039         (Analyze_Object_Declaration): Add extra information on warnings for
5040         declaration of unconstrained objects.
5041         (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
5042         conflicts with the setting of Stored_Constraint in the case where the
5043         access type entity has already been created as an E_Incomplete_Type due
5044         to a limited with clause.
5045         Use new Is_Standard_Character_Type predicate
5046         (Analyze_Object_Declaration): Apply access_constant check only after
5047         expression has been resolved, given that it may be overloaded with
5048         several access types.
5049         (Constant_Redeclaration): Additional legality checks for deferred
5050         constant declarations tha involve anonymous access types and/or null
5051         exclusion indicators.
5052         (Analyze_Type_Declaration): Set Optimize_Alignment flags
5053         (Analyze_Subtype_Declaration): Ditto
5054         (Analyze_Object_Declaration): Ditto
5055         (Analyze_Object_Declaration): Don't count tasks in generics
5056         Change name In_Default_Expression      => In_Spec_Expression
5057         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5058         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
5059         (Process_Discriminants): Additional check for illegal use of default
5060         expressions in access discriminant specifications in a type that is not
5061         explicitly limited.
5062         (Check_Abstract_Overriding): If an inherited function dispaches on an
5063         access result, it must be overridden, even if the type is a null
5064         extension.
5065         (Derive_Subprogram): The formals of the derived subprogram have the
5066         names and defaults of the parent subprogram, even if the type is
5067         obtained from the actual subprogram.
5068         (Derive_Subprogram): In the presence of interfaces, a formal of an
5069         inherited operation has the derived type not only if it descends from
5070         the type of the formal of the parent operation, but also if it
5071         implements it. This is relevant for the renamings created for the
5072         primitive operations of the actual for a formal derived type.
5073         (Is_Progenitor): New predicate, to determine whether the type of a
5074         formal in the parent operation must be replaced by the derived type.
5075
5076         * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
5077         predicate recursive to handle components that have a user-defined
5078         Initialize procedure. Handle controlled derived types whose ancestor
5079         has a user-defined Initialize procedured.
5080         (Note_Possible_Modification): Add Sure parameter, generate warning if
5081         sure modification of constant
5082         Use new Is_Standard_Character_Type predicate
5083         (Find_Parameter_Type): when determining whether a protected operation
5084         implements an interface operation, retrieve the type of the formal from
5085         the entity when the formal is an access parameter or an
5086         anonymous-access-to-subprogram.
5087         Move Copy_Parameter_List to sem_util, for use when building stubbed
5088         subprogram bodies.
5089         (Has_Access_Values): Tagged types now return False
5090         (Within_HSS_Or_If): New procedure
5091         (Set_Optimize_Alignment_Flags): New procedure
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
5096 2008-04-08  Tristan Gingold  <gingold@adacore.com>
5097
5098         * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
5099
5100 2008-04-08  Tristan Gingold  <gingold@adacore.com>
5101
5102 PR ada/10768
5103
5104         * cuintp.c: Fix 16 bits issue for AVR.
5105         On AVR, integer is 16 bits, so it can't be used to do math with
5106         Base (=32768).
5107         So use long_integer instead.
5108
5109 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5110
5111         * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
5112         System.OS_Primitives.
5113         Change type of various constants, parameters and local variables from
5114         Time to representation type OS_Time.
5115         (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
5116         Remove the declaration of constant Mili_F from several routines. New
5117         body for internal package Conversions_Operations.
5118         (Time_Of): Add default parameters for several formals.
5119
5120         * a-caldel.adb: Minor reformatting
5121
5122         * a-calend.ads, a-calend.adb: New body for internal package
5123         Conversions_Operations.
5124         (Time_Of): Add default parameters for several formals.
5125
5126         * Makefile.rtl: Add a-ststop
5127         Add Ada.Calendar.Conversions to the list of runtime files.
5128         Add g-timsta
5129
5130         * a-calcon.adb, a-calcon.ads: New files.
5131
5132 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
5133             Tristan Gingold  <gingold@adacore.com>
5134
5135         * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
5136         (Install_Restricted_Handlers): New procedure
5137         which is a simplified version of Install_Handlers that does not store
5138         previously installed.
5139
5140         * s-interr-vxworks.adb: Fix ACATS cxc3001
5141         On VxWorks interrupts can't be detached.
5142         (Install_Restricted_Handlers): New procedure.
5143
5144         * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
5145         procedure.
5146
5147 2008-04-08  Olivier Hainque  <hainque@adacore.com>
5148
5149         * s-intman-vxworks.ads, s-intman-vxworks.adb
5150         (Map_And_Raise_Exception): Remove. Was an import of only part of the
5151         required services already implemented elsewhere.
5152         (Notify_Exception): Delete body, import __gnat_error_handler instead.
5153         (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
5154         argument passed to the handler, which we need for ZCX propagation
5155         purposes.
5156
5157 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5158
5159         * adaint.h, adaint.c (__gnat_current_time_string): New routine.
5160
5161         * g-timsta.adb, g-timsta.ads: New files.
5162
5163 2008-04-08  Robert Dewar  <dewar@adacore.com>
5164
5165         * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
5166         (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
5167         (Raise_Exception_Always): Fix documentation accordingly
5168
5169 2008-04-08  Robert Dewar  <dewar@adacore.com>
5170
5171         * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
5172         Stream_Convert)
5173
5174         * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
5175         FOnly
5176
5177 2008-04-08  Javier Miranda  <miranda@adacore.com>
5178             Robert Dewar  <dewar@adacore.com>
5179             Ed Schonberg  <schonberg@adacore.com>
5180
5181         * a-tags.adb (Register_Interface_Offset): New subprogram.
5182         (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
5183         (To_Predef_Prims_Table_Ptr): Removed.
5184         (Acc_Size): Removed.
5185         (To_Acc_Size): Removed.
5186         (Parent_Size): Modified to the call the subprogram returning the size of
5187         the parent by means of the new TSD component Size_Func.
5188
5189         * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
5190         (DT_Offset_To_Top_Offset): New constant value that is used to generate
5191         code referencing the Offset_To_Top component of the dispatch table's
5192         prologue.
5193         (Prim_Ptr): New declaration of access to procedure. Used to avoid the
5194         use of 'address to initialize dispatch table slots.
5195         (Size_Func): New component of the TSD. Used by the run-time to call the
5196         size primitive of the tagged type.
5197
5198         * checks.adb (Apply_Access_Check): Avoid check when accessing the
5199         Offset_To_Top component of a dispatch table.
5200         (Null_Exclusion_Static_Checks): If the non-null access type appears in a
5201         deferred constant declaration. do not add a null expression, to prevent
5202         spurious errors when full declaration is analyzed.
5203         (Apply_Discriminant_Check): If both discriminant constraints share a
5204         node which is not static but has no side effects, do not generate a
5205         check for that discriminant.
5206         (Generate_Index_Checks): Set Name_Req to true in call to duplicate
5207         subexpr, since the prefix of an attribute is a name.
5208
5209         * checks.ads: Fix nit in comment.
5210
5211         * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
5212         and body of predefined primitives in case of CPP tagged type
5213         derivations.
5214         (Freeze_Type): Deal properly with no storage pool case
5215         (Make_Predefined_Primitive_Specs): Generate specification of abstract
5216         primitive Deep_Adjust if a nonlimited interface is derived from a
5217         limited interface.
5218         (Build_Dcheck_Functions): Create discriminant-checking functions only
5219         for variants that have some component(s).
5220         (Build_Slice_Assignment): In expanded code for slice assignment, handle
5221         properly the case where the slice bounds extend to the last value of the
5222         underlying representation.
5223         (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
5224         (Is_Variable_Size_Record): An array component has a static size if
5225         index bounds are enumeration literals.
5226
5227         * exp_disp.adb (Make_DT): Use the first subtype to determine whether
5228         an external tag has been specified for the type.
5229         (Building_Static_DT): Add missing support for private types.
5230         (Make_DT): Add declaration of Parent_Typ to ensure consistent access
5231         to the entity associated with the parent of Typ. This is done to
5232         avoid wrong access when the parent is a private type.
5233         (Expand_Interface_Conversion): Improve error message when the
5234         configurable runtime has no support for dynamic interface conversion.
5235         (Expand_Interface_Thunk): Add missing support to interface types in
5236         configurable runtime.
5237         (Expand_Dispatching_Call): remove obsolete code.
5238         (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
5239         ensure that all subtypes and aggregates associated with dispatch
5240         tables have the attribute Is_Dispatch_Table_Entity set to true.
5241         (Register_Primitive): Rename one variable to improve code reading.
5242         Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
5243         of the pointer to the 'size primitive in the TSD.
5244
5245         * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
5246         (RE_Offset_To_Top_Ptr): New entity.
5247         (RE_Register_Interface_Offset): New entity.
5248         (RE_Set_Dynamic_Offset_To_Top): New entity.
5249         (RE_Set_Offset_To_Top): Removed entity.
5250         (RE_Prim_Ptr): New entity
5251         (RE_Size_Func): New entity
5252         (RE_Size_Ptr): New entity
5253         (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
5254         (Ada_Dispatching_Child): Define this new subrange.
5255         (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
5256          RE_Time_Span, and RE_Time_Span_Zero).
5257         (RE_Unit_Table): Add new required run-time calls
5258
5259         * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
5260         children.
5261
5262         * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
5263         (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
5264          initializes the Offset_To_Top component of a dispatch table.
5265         (Build_Predef_Prims): Removed.
5266         (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
5267          its actual code.
5268         (Build_Set_Size_Function): New subprogram.
5269
5270         * exp_ch13.adb: Do not generate storage variable for storage_size zero
5271         (Expand): Handle setting/restoring flag Inside_Freezing_Actions
5272
5273 2008-04-08  Robert Dewar  <dewar@adacore.com>
5274
5275         * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
5276         computing Fore when Exp > 0
5277
5278 2008-04-08  Robert Dewar  <dewar@adacore.com>
5279
5280         * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
5281
5282         * errout.adb: Remove Big_String_Ptr declarations (now in Types)
5283         Change name Is_Style_Msg to Is_Style_Or_Info_Msg
5284
5285         * fmap.adb: Remove Big_String declarations (now in Types)
5286         (No_Mapping_File): New Boolean global variable
5287         (Initialize): When mapping file cannot be read, set No_Mapping_File to
5288         False.
5289         (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
5290         tables were empty before adding entries, open the mapping file
5291         with Truncate = True, instead of delete/re-create.
5292
5293         * fname-sf.adb: Remove Big_String declarations (now in Types)
5294
5295         * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
5296         s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
5297         big pointer types
5298
5299         * table.ads: Add for Table_Ptr'Storage_Size use 0
5300
5301         * types.ads: Add Big_String declarations
5302         Add Size_Clause of zero for big pointer types
5303
5304 2008-04-08  Vincent Celier  <celier@adacore.com>
5305
5306         * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
5307         (Usage): Add line for switch --subdirs=
5308         Add new switch -eL, to follow symbolic links when processing project
5309         files.
5310
5311         * gnatcmd.adb: Process switches -eL and --subdirs=
5312         (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
5313         Program_Name to get proper tool names when AAMP_On_Target is set.
5314         (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
5315         AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
5316         Osint.Program_Name).
5317
5318         * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
5319         (Usage): Add lines for switches -eL and --subdirs=
5320
5321         * makeusg.adb: Add line for switch --subdirs=
5322
5323         * prj.ads: 
5324         (Source_Data): New Boolean component Compiled, defaulted to True
5325         (Empty_File_Name: New global variable in private part, initialized in
5326         procedure Initialize.
5327         (Subdirs_Option): New constant string
5328         (Subdirs): New String_Ptr global variable
5329         (Language_Config): New component Include_Compatible_Languages
5330         (Project_Qualifier): New type for project qualifiers
5331         (Project_Data): New component Qualifier
5332         (Project_Configuration): New component Archive_Builder_Append_Option
5333
5334         * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
5335         another imported project indicate the name of this imported project.
5336         (Check_File): When a unit is in two project files, indicate the project
5337         names and the paths of the source files for each project.
5338         (Add_Source): Set Compiled to False if compiler driver is empty. Only
5339         set object, dependency and switches file names if Compiled is True.
5340         (Process_Compiler): Allow the empty string for value of attribute Driver
5341         (Get_Directories): When Subdirs is not null and Object_Dir is not
5342          specified, locate and create if necessary the actual object dir.
5343         (Locate_Directory): When Subdirs is not empty and Create is not the
5344         empty string, locate and create if necessary the actual directory
5345         as a subdirectory of directory Name.
5346         (Check_Library_Attributes.Check_Library): Allow a project where the only
5347         "sources" are header files of file based languages to be imported by
5348         library projects, in multi-language mode (gprbuild).
5349         (Check_Library_Attributes.Check_Library): In multi-language mode
5350         (gprbuild), allow a library project to import a project with no
5351         sources, even when this is not declared explicitly.
5352         (Check_If_Externally_Built): A virtual project extending an externally
5353         built project is also externally built.
5354         (Check_Library_Attributes): For a virtual project extending a library
5355         project, inherit the library directory.
5356         (Process_Project_Level_Array_Attributes): Process new attribute
5357         Inherit_Source_Path.
5358         For projects with specified qualifiers "standard", "library" or
5359         "abstract", check that the project conforms to the qualifier.
5360         (Process_Project_Level_Simple_Attributes): Process new attribute
5361          Archive_Builder_Append_Option.
5362
5363         * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
5364         (Normalize_Compiler_Switches): Only keep compiler switches that are
5365         passed to gnat1 by the gcc driver and that are stored in the ALI file
5366         by gnat1.
5367         Do not take into account switc -save-temps
5368
5369         * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
5370         gprmake is called with -eL.
5371         (Scan_Arg): Recognize switch -eL
5372         (Usage): Add line for switch -eL
5373
5374         * prj.adb (Initialize): Initialize Empty_File_Name
5375         (Project_Empty): New component Qualifier
5376
5377         * prj-attr.ads, prj-attr.adb: New project level attribute
5378         Inherit_Source_Path.
5379         New project level attribute Archive_Builder_Append_Option
5380
5381         * prj-dect.adb: Replace System.Strings by GNAT.Strings.
5382
5383         * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
5384         <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
5385         upward compatibility.
5386
5387         * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
5388         each Trying ..." on different lines.
5389         (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
5390         is "configuration" when not in configuration. Fail when in configuration
5391         when a specified qualifier is other than "configuration".
5392
5393         * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
5394         full associative array together.
5395         (Recursive_Process): Put the project qualifier in the project data
5396         
5397         * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
5398         (Set_Project_Qualifier_Of): New procedure
5399
5400 2008-04-08  Robert Dewar  <dewar@adacore.com>
5401
5402         * errout.ads: Update comments for new handling of info: messages
5403
5404         * erroutc.adb (Matches): New procedure
5405         (Warning_Specifically_Suppressed): Modified to handle multiple * chars
5406         (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
5407          info messages as well as style messages.
5408
5409         * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
5410
5411         * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
5412         subprograms.
5413         (Check_A_Call): Special "info: " warnings now have ? in the text
5414         (Elab_Warning): Use info message in static case
5415
5416 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5417
5418         * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
5419         whether an array aggregate with static bounds and scalar components
5420         should be expanded into a static constant.
5421
5422 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
5423             Ed Schonberg  <schonberg@adacore.com>
5424             Robert Dewar  <dewar@adacore.com>
5425
5426         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
5427         Has_Stream_Attribute_ Definition when checking for available stream
5428         attributes on parameters of a limited type in Ada 2005. Necessary for
5429         proper recognition of visible stream attribute clauses.
5430         (Has_Stream_Attribute_Definition): If the type is derived from a
5431         private type, then use the derived type's underlying type for checking
5432         whether it has stream attributes.
5433         (Validate_Object_Declaration): The check for a user-defined Initialize
5434         procedure applies also to types with controlled components or a
5435         controlled ancestor.
5436         Reject an object declaration in a preelaborated unit if the type is a
5437         controlled type with an overriding Initialize procedure.
5438         (Validate_Remote_Access_To_Class_Wide_Type): Return without further
5439         checking when the parent of a dereference is a selected component and
5440         the name has not been analyzed.
5441
5442         * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
5443         prefixes that are invalid explicit dereferences of remote
5444         access-to-class-wide values, first checking whether the selected
5445         component is a prefixed form of call to a tagged operation.
5446         (Analyze_Call): Remove code that issues an error for limited function
5447         calls in illegal contexts, as we now support all of the contexts that
5448         were forbidden here.
5449         Allow a function call that returns a task.and appears as the
5450         prefix of a selected component.
5451         (Analyze_Reference): Give error message if we try to make a 'Reference
5452         for an object that is atomic/aliased without its type having the
5453         corresponding attribute.
5454         (Analyze_Call): Remove condition checking for attributes to allow
5455         calls to functions with inherently limited results as prefixes of
5456         attributes. Remove related comment about Class attributes.
5457         (Analyze_Selected_Component): If the prefix is a remote type, check
5458         whether this is a prefixed call before reporting an error.
5459         (Complete_Object_Operation): If the controlling formal is an access to
5460         variable reject an actual that is a constant or an access to one.
5461         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
5462         primitive operations from base type.
5463
5464         * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
5465         build-in-place
5466         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
5467         (Expand_N_Selected_Component): Test for prefix that is a build-in-place
5468         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
5469         (Expand_N_Slice): Test for prefix that is a build-in-place function call
5470         and call Make_Build_In_Place_Call_In_Anonymous_Context.
5471         (Analyze_Call): Remove code that issues an error for limited function
5472         calls in illegal contexts, as we now support all of the contexts that
5473         were forbidden here.
5474         New calling sequence for Get_Simple_Init_Val
5475         (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
5476         (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
5477
5478 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5479             Ed Schonberg  <schonberg@adacore.com>
5480             Robert Dewar  <dewar@adacore.com>
5481
5482         * exp_ch2.adb: Minor reformatting.
5483         (Expand_Entry_Index_Parameter): Set the type of the identifier.
5484         (Expand_Entry_Reference): Add call to Expand_Protected_Component.
5485         (Expand_Protected_Component): New routine.
5486         (Expand_Protected_Private): Removed.
5487         Add Sure parameter to Note_Possible_Modification calls
5488
5489         * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
5490         generated subprogram declaration must inherit the overriding indicator
5491         from the instantiation node.
5492         (Validate_Access_Type_Instance): If the designated type of the actual is
5493         a limited view, use the available view in all cases, not only if the
5494         type is an incomplete type.
5495         (Instantiate_Object):  Actual is illegal if the formal is null-excluding
5496         and the actual subtype does not exclude null.
5497         (Process_Default): Handle properly abstract formal subprograms.
5498         (Check_Formal_Package_Instance): Handle properly defaulted formal
5499         subprograms in a partially parameterized formal package.
5500         Add Sure parameter to Note_Possible_Modification calls
5501         (Validate_Derived_Type_Instance): if the formal is non-limited, the
5502         actual cannot be limited.
5503         (Collect_Previous_Instances): Generate instance bodies for subprograms
5504         as well.
5505
5506         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
5507         try to set RM_Size.
5508         Add Sure parameter to Note_Possible_Modification calls
5509         (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
5510         (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
5511         constant overlaid by variable and issue warning.
5512         Use new Is_Standard_Character_Type predicate
5513         (Analyze_Record_Representation_Clause): Check that the specified
5514         Last_Bit is not less than First_Bit - 1.
5515         (Analyze_Attribute_Definition_Clause, case Address): Check for
5516         self-referential address clause
5517
5518         * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
5519         detection mechanism when the lhs is a prival.
5520         (Analyze_Assignment): Call Check_Unprotected_Access to detect
5521         assignment of a pointer to protected data, to an object declared
5522         outside of the protected object.
5523         (Analyze_Loop_Statement): Check for unreachable code after loop
5524         Add Sure parameter to Note_Possible_Modication calls
5525         Protect analysis from previous syntax error such as a scope mismatch
5526         or a missing begin.
5527         (Analyze_Assignment_Statement): The assignment is illegal if the
5528         left-hand is an interface.
5529
5530         * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
5531         violation of restriction No_Implicit_Conditionals
5532         Add Sure parameter to Note_Possible_Modication calls
5533         Use new Is_Standard_Character_Type predicate
5534         (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
5535         call as operator. Fixes problems (e.g. validity checking) which
5536         come from the result looking as though it does not come from source).
5537         (Resolve_Call): Check case of name in named parameter if style checks
5538         are enabled.
5539         (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
5540         from the checking that such calls should not occur from an entry body.
5541         (Resolve_Call): If the return type of an Inline_Always function
5542         requires the secondary stack, create a transient scope for the call
5543         if the body of the function is not available for inlining.
5544         (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
5545         that are actuals for in-out formals.
5546         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
5547         primitive operations from base type.
5548         (Analyze_Selected_Component): If the context is a call to a protected
5549         operation the parent may be an indexed component prior to expansion.
5550         (Resolve_Actuals): If an actual is of a protected subtype, use its
5551         base type to determine whether a conversion to the corresponding record
5552         is needed.
5553         (Resolve_Short_Circuit): Handle pragma Check
5554
5555         * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
5556         Use new Is_Standard_Character_Type predicate
5557         (Eval_Relational_Op): Catch more cases of string comparison
5558
5559 2008-04-08  Robert Dewar  <dewar@adacore.com>
5560             Gary Dismukes  <dismukes@adacore.com>
5561
5562         * s-rident.ads: Add No_Default_Initialization restriction
5563
5564         * exp_tss.adb: 
5565         (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
5566         (Set_TSS): Handle No_Default_Initialization case
5567
5568         * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
5569         No_Default_Initialization
5570         (Expand_N_Subprogram_Body): Remove redundant initialization of out
5571         parameters when Normalize_Scalars is active.
5572         (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
5573         Fix casing error in formal parameter name in call
5574         (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
5575         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
5576         dispatching call on VM targets.
5577
5578 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
5579             Thomas Quinot  <quinot@adacore.com>
5580
5581         * exp_ch7.adb (Find_Final_List): Change the test for generating a
5582         selected component from an access type's Associated_Final_Chain to
5583         check for the presence of that field, rather than assuming it exists
5584         for all named access types.
5585         (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
5586         procedure to call at the end of the generated cleanup procedure.
5587         (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
5588         and an At_End_Proc already exists in the handled sequence of statements
5589         for which cleanup actions are being expanded, the original cleanup
5590         action must be preserved.
5591
5592 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5593             Ed Schonberg  <schonberg@adacore.com>
5594             Robert Dewar  <dewar@adacore.com>
5595             Gary Dismukes  <dismukes@adacore.com>
5596
5597         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
5598         Build_Unprotected_Subprogram_Body): Generate debug info for
5599         declarations related to the handling of private data in task and
5600         protected types.
5601         (Debug_Private_Data_Declarations): New subprogram.
5602         (Install_Private_Data_Declarations): Remove all debug info flagging.
5603         This is now done by Debug_Private_Data_Declarations at the correct
5604         stage of expansion.
5605         (Build_Simple_Entry_Call): If the task name is a function call, expand
5606         the prefix into an object declaration, and make the surrounding block a
5607         task master.
5608         (Build_Master_Entity): An internal block is a master if it wraps a call.
5609         Code reformatting, update comments. Code clean up.
5610         (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
5611         (Replicate_Entry_Formals): If the formal is an access parameter or
5612         anonymous access to subprogram, copy the original tree to create new
5613         entities for the formals of the subprogram.
5614         (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
5615         for tasks to store the value passed using pragma Relative_Deadline.
5616         (Make_Task_Create_Call): Add the Relative_Deadline argument to the
5617         run-time call to create a task.
5618         (Build_Wrapper_Spec): If the controlling argument of the interface
5619         operation is an access parameter with a non-null indicator, use the
5620         non-null indicator on the wrapper.
5621
5622         * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
5623         present, which it may not be in the case where the type entity is an
5624         incomplete view brought in by a limited with.
5625         (Analyze_Task_Type): Only retrieve the full view when present, which it
5626         may not be in the case where the type entity is an incomplete view brought
5627         in by a limited with.
5628         (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
5629         private components of a protected type, to prevent the generation of freeze
5630         nodes for which there is no proper scope of elaboration.
5631
5632         * exp_util.ads, exp_util.adb
5633         (Remove_Side_Effects): If the expression is a function call that returns a
5634         task, expand into a declaration to invoke the build_in_place machinery.
5635         (Find_Protection_Object): New routine.
5636         (Remove_Side_Effects): Also make a copy of the value
5637         for attributes whose result is of an elementary type.
5638         (Silly_Boolean_Array_Not_Test): New procedure
5639         (Silly_Boolean_Array_Xor_Test): New procedure
5640         (Is_Volatile_Reference): New function
5641         (Remove_Side_Effects): Use Is_Volatile_Reference
5642         (Possible_Bit_Aligned_Component): Handle slice case properly
5643
5644         * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
5645         case test to Exp_Util
5646         (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
5647
5648 2008-04-08  Thomas Quinot  <quinot@adacore.com>
5649
5650         * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
5651         in call
5652         (Add_RACW_Features): When processing an RACW in another unit than the
5653         main unit, set Body_Decls to No_List to indicate that the bodies of
5654         the type's TSS must not be generated.
5655         (GARLIC_Support.Add_RACW_Read_Attribute,
5656         GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
5657         Body_Decls is No_List.
5658         (PolyORB_Support.Add_RACW_Read_Attribute,
5659         PolyORB_Support.Add_RACW_Write_Attribute,
5660         PolyORB_Support.Add_RACW_From_Any,
5661         PolyORB_Support.Add_RACW_To_Any,
5662         PolyORB_Support.Add_RACW_TypeCode): Same.
5663         (Transmit_As_Unconstrained): New function.
5664         (Build_Ordered_Parameters_List): Use the above to order parameters.
5665         (GARLIC_Support.Build_General_Calling_Stubs):
5666         Use the above to determine which parameters to unmarshall using 'Input
5667         at the point where their temporary is declared (as opposed to later on
5668         with a 'Read call).
5669         (PolyORB_Support.Build_General_Calling_Stubs):
5670         Use the above to determine which parameters to unmarshall using From_Any
5671         at the point where their temporary is declared (as opposed to later on
5672         with an assignment).
5673
5674 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5675
5676         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
5677         an Input function for an access type, do not perform default
5678         initialization on the local variable that receives the value, to
5679         prevent spurious warnings when the type is null-excluding.
5680
5681 2008-04-08  Robert Dewar  <dewar@adacore.com>
5682             Ed Schonberg  <schonberg@adacore.com>
5683
5684         * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
5685         units.
5686         (Size_Known): Generic formal scalar types have known at compile
5687         time size, so remove check.
5688         Fix casing error in formal parameter name in call
5689         (Freeze_Subprogram): If the subprogram is a user-defined operator,
5690         recheck its overriding indication.
5691
5692 2008-04-08  Vincent Celier  <celier@adacore.com>
5693
5694         * gnat1drv.adb: Send all messages indicating an error to standard error
5695
5696 2008-04-08  Robert Dewar  <dewar@adacore.com>
5697
5698         * gnatbind.adb (Restriction_Could_Be_Set): New procedure
5699         (List_Applicable_Restrictions): Do not list existing restrictions
5700
5701 2008-04-08  Thomas Quinot  <quinot@adacore.com>
5702
5703         * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
5704         add a pointer to generic sockets literature
5705         do not mention that the given example is "typical" usage.
5706         Remove obsolete comment about multicast not being supported on Windows.
5707         (Connect_Socket): Make Server mode IN rather than IN OUT
5708         since this formal is never modified.
5709
5710 2008-04-08  Robert Dewar  <dewar@adacore.com>
5711
5712         * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
5713         the declaration for some different entity.
5714         (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
5715         list is precent (following the parent subtype indication), display
5716         appropriate "and" keyword.
5717
5718         * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
5719         Remove unnecessary calls to Init_Size_Align and Init_Esize.
5720         Add notes on use of Parent field of an Itype
5721
5722 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5723             Robert Dewar  <dewar@adacore.com>
5724             Gary Dismukes  <dismukes@adacore.com>
5725
5726         * lib-xref.adb (Is_On_LHS): Remove dead code
5727         (Output_Overriden_Op): If the overridden operation is itself inherited,
5728         list the ancestor operation, which is the one whose body or absstract
5729         specification is actually being overridden. For source navigation
5730         purposes.
5731
5732         * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
5733         operation is primitive for the type.
5734         (Declare_Inherited_Private_Subprograms): If the new operation overrides
5735         an inherited private subprogram, set properly the Overridden_Operation
5736         attribute, for better cross-reference information.
5737         (Analyze_Package_Specification): Do late analysis of spec PPCs
5738         (Install_Private_Declaration, Uninstall_Declarations): Save/restore
5739         properly the full view and underlying full views of a private type in a
5740         child unit, whose full view is derived from a private type in a parent
5741         unit, and whose own full view becomes visible in the child body.
5742
5743         * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
5744         primitive operation after the type has been frozen, add an explicit
5745         reference to the type and the operation, because other primitive
5746         references have been emitted already.
5747         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
5748         dispatching call on VM targets.
5749
5750 2008-04-08  Vincent Celier  <celier@adacore.com>
5751             Thomas Quinot  <quinot@adacore.com>
5752
5753         * make.adb: (Gnatmake_Called): Remove, no longer necessary
5754         (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
5755         is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
5756         (Insert_Project_Sources): Take into account index in multi-unit source
5757         files.
5758         After building a library project, delete all temporary files.
5759         (Initialize): Reset current output after parsing project file.
5760         (Collect_Arguments_And_Compile): Never insert in the queue the sources
5761         of library projects that are externally built.
5762         Put file name in error and inform messages if -df is used
5763         (Display): If invoked with -d7, do not display path names, but only
5764         file names.
5765
5766         * makeutl.ads (Path_Or_File_Name): New function
5767         (Path_Or_File_Name): New function
5768
5769 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
5770
5771         * Make-lang.in: Disable warnings during first stage of bootstrap
5772         Get rid of gnatbl.
5773         Update dependencies.
5774
5775 2008-04-08  Vincent Celier  <celier@adacore.com>
5776
5777         * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
5778         case to decide if ALI object file is included in library.
5779         (Build_Library): Never attempt to build a library if the project is
5780         externally built.
5781
5782 2008-04-08  Thomas Quinot  <quinot@adacore.com>
5783
5784         * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
5785         (No_List) is defined to return Empty.
5786
5787 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
5788
5789         * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
5790         documentation.
5791         Update comments.
5792         (Read_Default_Search_Dirs): Do not consider spaces as path separators
5793         because spaces may be part of legal paths.
5794
5795 2008-04-08  Robert Dewar  <dewar@adacore.com>
5796
5797         * par-ch11.adb (P_Exception_Handler): Check indentation level for
5798         handler
5799
5800 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5801
5802         * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
5803         in a type declaration, if this is not an interface declaration or
5804         private type extension.
5805
5806 2008-04-08  Vincent Celier  <celier@adacore.com>
5807
5808         * prj-util.adb (Executable_Of): New String parameter Language. When
5809         Ada_Main is False and Language is not empty, attempt to remove the body
5810         suffix or the spec suffix of the language to get the base of the
5811         executable file name.
5812         (Put): New Boolean parameter Lower_Case, defauilted to False. When
5813         Lower_Case is True, put the value in lower case in the name list.
5814         (Executable_Of): If there is no executable suffix in the configuration,
5815         then do not modify Executable_Extension_On_Target.
5816
5817         * prj-util.ads (Executable_Of): New String parameter Language,
5818         defaulted to the empty string.
5819         (Put): New Boolean parameter Lower_Case, defauilted to False
5820
5821 2008-04-08  Robert Dewar  <dewar@adacore.com>
5822
5823         * scng.adb (Scan_Identifier): Handle case of identifier starting with
5824         wide character using UTF-8 encoding.
5825
5826 2008-04-08  Javier Miranda  <miranda@adacore.com>
5827
5828         * sem.adb (Analyze): Consider case in which we analyze an empty node
5829         that was generated by a call to a runtime function that is not
5830         available under the configurable runtime.
5831
5832         * sem.ads (Inside_Freezing_Actions): New flag.
5833         (Save_Check_Policy_List): New field in scope stack entry
5834
5835 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5836             Robert Dewar  <dewar@adacore.com>
5837
5838         * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
5839         the ancestor part of an extension aggregate for a limited type.
5840         (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
5841         enumeration index bounds.
5842         (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
5843         when array is too short.
5844         (Check_Expr_OK_In_Limited_Aggregate): Move function
5845         Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
5846         change name).
5847         (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
5848         Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
5849         component associations.
5850         (Check_Non_Limited_Type): Moved to outer level and renamed.
5851         (Resolve_Record_Aggregate): In an extension aggregate, an association
5852         with a box initialization can only designate a component of the
5853         extension, not a component inherited from the given ancestor
5854
5855         * sem_case.adb: Use new Is_Standard_Character_Type predicate
5856
5857 2008-04-08  Robert Dewar  <dewar@adacore.com>
5858
5859         * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
5860         negative scale
5861         (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
5862         Properly handle case where Aft > Scale and input number is less than
5863         one.
5864
5865 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5866
5867         * s-stoele.ads, s-soflin.ads: Move the location of
5868         Dummy_Communication_Block from System.Storage_Elements to
5869         System.Soft_Links.
5870
5871         * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
5872         emulate Communication_Block in certain scenarios.
5873
5874 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5875
5876         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
5877         subprogram.
5878         Add new subtype S_WWC, unchecked conversion routines From_WWC and
5879         To_WWC.
5880         (I_WWC, O_WWC): New routines for input and output of
5881         Wide_Wide_Character.
5882
5883 2008-04-08  Robert Dewar  <dewar@adacore.com>
5884
5885         * stringt.adb (Write_String_Table_Entry): Handle wide characters
5886         properly
5887
5888 2008-04-08  Robert Dewar  <dewar@adacore.com>
5889
5890         * styleg.adb (Check_Comment): Allow special char after -- in
5891         non-end-of-line case
5892
5893 2008-04-08  Robert Dewar  <dewar@adacore.com>
5894
5895         * stylesw.adb: Implement -gnaty + - y options
5896         (Set_GNAT_Style_Check_Options): Includ I in style check string
5897
5898         * stylesw.ads: Add comments for new style switch options
5899
5900 2008-04-08  Sergey Rybin  <rybin@adacore.com>
5901
5902         * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
5903         to the set of the GNAT components needed by ASIS.
5904
5905 2008-04-08  Bob Duff  <duff@adacore.com>
5906
5907         * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
5908
5909 2008-04-08  Tristan Gingold  <gingold@adacore.com>
5910
5911         * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
5912         Improve error message generation.
5913
5914 2008-04-08  Vincent Celier  <celier@adacore.com>
5915
5916         * a-direct.adb (Start_Search): Check for Name_Error before checking for
5917         Use_Error, as specified in the RM. Check if directory is open and raise
5918         Use_Error if it is not.
5919
5920 2008-04-08  Vincent Celier  <celier@adacore.com>
5921             Robert Dewar  <dewar@adacore.com>
5922
5923         * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
5924         AAMP_On_Target is set.
5925
5926         * vms_data.ads: Add NOxxx to style check switch list
5927         Add entry COMPONENTS for -gnatVe
5928         Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
5929         (/SUBDIRS=).
5930         (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
5931         Add qualifiers for gnatmetric coupling options
5932         Add note that -gnata enables all checks
5933         Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
5934         Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
5935         New warning flag -gnatw.e
5936
5937         * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
5938         Add entry for -gnatyN (forgotten before)
5939         Line for new warning switch -gnatw.p
5940         New warning flag -gnatw.e
5941
5942         * gnat_ugn.texi: Add documentation fpr project file switch -aP
5943         Document -gnaty - + y
5944         Replace occurences of "package specification" with "package spec"
5945         Define preprocessing symbols in documentation of gnatprep
5946         Clarify reason for distinguishing overflow checking
5947         Add documentation for project-aware tool switches -eL and --subdirs=
5948         Complete list of configuration pragmas
5949         Specify that, even when gnatmake switch -x is used, mains on the command
5950         line need to be sources of project files.
5951         Editing of gnatcheck/gnatmetric doc.
5952         Add documentation for -gnatw.p/-gnatw.P
5953         Add missing documentation for -fno-inline-functions.
5954         Add documentation for -gnatw.e
5955
5956         * gnat_rm.texi: Add documentation for No_Default_Initialization
5957         Replace occurences of "package specification" with "package spec"
5958         Document use of * in Warnings Off string
5959         Update documentation of alignment/component clauses.
5960         Add documentation for Invalid_Value
5961         Document new consistency rule for Optimize_Alignment
5962         Add documentation for Precondition and Postcondition pragmas
5963         Add documentation for Check and Check_Policy pragmas
5964         Document new Enum_Val attribute
5965         Remove requirement for static string in pragma Assert
5966         Add documentation on GNAT.Time_Stamp
5967
5968         * ug_words: add entry for -gnatVe
5969         Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
5970         Add entry for -gnatw.e
5971
5972         * debug.adb: Add missing documentation for d.a flag
5973         Document new -gnatd.a switch.
5974         Add documentation for new gnatmake debug switch -df
5975
5976 2008-04-08  Thomas Quinot  <quinot@adacore.com>
5977
5978         * gen-soccon.c: Bump year in copyright notices.
5979
5980         * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
5981
5982 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
5983
5984         * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
5985         Minor reformatting.
5986
5987 2008-04-08  Robert Dewar  <dewar@adacore.com>
5988             Bob Duff  <duff@adacore.com>
5989
5990         * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
5991         Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
5992
5993         * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
5994
5995         * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
5996
5997         * g-trasym.ads: Minor comment improvements
5998
5999         * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
6000
6001         * a-sequio.ads, a-direio.ads: improve message for tagged type
6002
6003         * a-strunb.ads: Minor reformatting
6004
6005         * a-tifiio.adb: Minor reformatting
6006
6007         * atree.adb (Fix_Parents): Use clearer names for formals
6008         Cleanup and simplify code
6009         Use named notation in calls
6010
6011         * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
6012         confusing calls
6013
6014         * uintp.adb: Used named notation for some confusing calls
6015
6016         * bindusg.adb: Minor change in one line of output
6017
6018         * cstand.adb: Minor reformatting of src representation of Standard
6019
6020         * a-assert.ads: Add comment.
6021
6022         * g-decstr.adb: Fix bad indentation
6023
6024         * expander.ads, expander.adb: Code clean up.
6025
6026         * sem_dist.ads: Minor comment improvement
6027
6028         * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
6029         s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
6030
6031         * i-cstrin.adb: Fix casing error in formal parameter name in call
6032
6033 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
6034
6035         * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
6036         mentioned in limited_with_clauses to do create semantic dependencies
6037         even though they appear in the ali file.
6038
6039 2008-04-08  Emmanuel Briot  <briot@adacore.com>
6040
6041         * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
6042         statement.
6043         (Get_Configuration): New subprogram.
6044
6045         * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
6046         These optional parameters help preserve the casing of the project's name
6047         when pretty-printing.
6048
6049 2008-04-08  Jerome Lambourg  <lambourg@adacore.com>
6050             Arnaud Charlet  <charlet@adacore.com>
6051
6052         * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
6053         then use __gnat_set_exit_status to report the returned status code.
6054
6055         * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
6056         messages on .NET, since some constructs of the language are not
6057         properly supported.
6058
6059         * gnatlink.adb (Gnatlink): In case the command line is too long for the
6060         .NET linker, gnatlink now concatenate all .il files and pass this to
6061         ilasm.
6062
6063 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
6064             Xavier Grave  <grave@ipno.in2p3.fr>
6065
6066         * Makefile.in: Add make ifeq define for mips/mipsel support.
6067         * g-soccon-linux-mips.ads, system-linux-mipsel.ads, 
6068         system-linux-mips.ads: New files.
6069
6070 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
6071
6072         * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
6073         detect systems using GNU libc.
6074         * gsocket.h: ditto.
6075         * socket.c: ditto.
6076         * adaint.c: ditto.
6077         * link.c: ditto.
6078
6079 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
6080
6081         * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New 
6082         constant constant for sysconf call.
6083         (bit_field): New packed boolean type used by cpu_set_t.
6084         (cpu_set_t): New type corresponding to the C type with
6085         the same name. Note that on the Ada side we use a bit
6086         field array for the affinity mask. There is not need
6087         for the C macro for setting individual bit.
6088         (pthread_setaffinity_np): New imported routine.
6089         * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
6090         on GNU/kFreeBSD.
6091
6092 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
6093
6094         * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
6095
6096 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
6097
6098         * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
6099         * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
6100         * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
6101         * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
6102         Return by Depressed Stack Pointer.
6103
6104 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6105
6106         * decl.c (is_variable_size): Do not unconditionally return false
6107         on non-strict alignment platforms.
6108
6109 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6110
6111         * decl.c (rest_of_type_decl_compilation_no_defer): New local function
6112         used to process all the variants of the specified type.
6113         (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
6114         types too.  Call rest_of_type_decl_compilation_no_defer if undeferring.
6115         (rest_of_type_decl_compilation): Likewise.
6116         * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
6117
6118 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
6119
6120         * gigi.h (insert_block): Kill.
6121         * utils.c (insert_block): Kill.
6122
6123 2008-04-02  Eric Botcazou  <ebotcazou@adacore.com>
6124
6125         * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
6126         type has self-referential size, get the size from the initializing
6127         expression directly if it is also a constant whose nominal type
6128         has self-referential size.
6129
6130 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6131
6132         PR ada/33688
6133         * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
6134
6135         PR ada/33857
6136         * env.c: Always include crt_externs.h if __APPLE__ is defined.
6137         (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
6138
6139 2008-04-01  Andreas Jaeger  <aj@suse.de>
6140
6141         * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
6142         IP_PKTINFO.
6143
6144 2008-03-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6145
6146         * g-table.adb, g-tasloc.adb, g-traceb.ads,
6147         g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
6148         gnatbind.adb, gnatchop.adb, gnatcmd.adb,
6149         gnatcmd.ads, gnatdll.adb, gnatfind.adb,
6150         gnatlink.adb, gnatmem.adb, gprep.adb,
6151         i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
6152         i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
6153         layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
6154         lib-xref.ads, lib.adb, link.c, live.ads,
6155         make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
6156         mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
6157         misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
6158         mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
6159         namet.adb, namet.h, nlists.adb, nlists.ads,
6160         nlists.h, opt.ads, osint-b.ads, osint-c.adb,
6161         osint-c.ads, osint.adb, osint.ads, output.ads,
6162         par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
6163         par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
6164         par-endh.adb, par-labl.adb, par-prag.adb,
6165         par-sync.adb, par-tchk.adb, par-util.adb,
6166         par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
6167         prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
6168         prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
6169         prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
6170
6171 2008-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6172
6173         * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
6174         size if it has overflowed.
6175
6176 2008-03-31  Olivier Hainque  <hainque@adacore.com>
6177             Eric Botcazou  <ebotcazou@adacore.com>
6178
6179         * utils2.c (find_common_type): Document assumption on t1/t2 vs
6180         lhs/rhs. Force use of lhs type if smaller, whatever the modes.
6181
6182 2008-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6183
6184         * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
6185         einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
6186         exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
6187         exp_pakd.ads, exp_prag.adb, exp_smem.adb,
6188         exp_tss.ads, exp_util.adb, exp_util.ads,
6189         exp_vfpt.adb, freeze.adb, freeze.ads,
6190         frontend.adb, g-alleve.adb, g-altcon.adb,
6191         g-altive.ads, g-alveop.ads, g-alvevi.ads,
6192         g-arrspl.adb, g-busorg.ads, g-calend.adb,
6193         g-calend.ads, g-casuti.ads, g-cgideb.adb,
6194         g-comlin.adb, g-comlin.ads, g-curexc.ads,
6195         g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
6196         g-dirope.adb, g-dirope.ads, g-dynhta.ads,
6197         g-dyntab.adb, g-encstr.ads, g-excact.ads,
6198         g-except.ads, g-expect.ads, g-heasor.adb,
6199         g-hesora.adb, g-hesorg.adb, g-htable.ads,
6200         g-locfil.ads, g-md5.adb, g-md5.ads,
6201         g-memdum.ads, g-moreex.ads, g-os_lib.adb,
6202         g-pehage.adb, g-pehage.ads, g-regexp.adb,
6203         g-regexp.ads, g-regpat.adb, g-regpat.ads,
6204         g-soccon-aix.ads, g-soccon-darwin.ads,
6205         g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
6206         g-soccon-hpux.ads, g-soccon-irix.ads,
6207         g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
6208         g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
6209         g-soccon-mingw.ads, g-soccon-solaris-64.ads,
6210         g-soccon-solaris.ads, g-soccon-tru64.ads,
6211         g-soccon-vms.ads, g-soccon-vxworks.ads,
6212         g-soccon.ads, g-socket.adb, g-socket.ads,
6213         g-socthi-mingw.adb, g-socthi-vms.adb,
6214         g-socthi-vxworks.adb, g-soliop-mingw.ads,
6215         g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
6216         g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
6217         typos.
6218
6219 2008-03-27  Eric Botcazou  <ebotcazou@adacore.com>
6220
6221         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
6222         if the procedure is imported.
6223
6224 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6225
6226         * adaint.c: Fix warnings.
6227
6228 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6229
6230         * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
6231
6232 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6233
6234         * a-witeio.adb: Fix problem with Current_Output (introduce Self).
6235         Fix problem of status check for null file
6236
6237 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6238
6239         * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
6240         s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
6241         s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
6242         i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
6243         s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
6244         comments.
6245
6246 2008-03-26  Thomas Quinot  <quinot@adacore.com>
6247
6248         PR ada/33688
6249         * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
6250         Get_Socket_Option): Add support for Receive_Packet_Info.
6251
6252         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
6253         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
6254         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
6255         g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
6256         g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
6257         new constants SO_REUSEPORT and IP_PKTINFO
6258
6259 2008-03-26  Robert Dewar  <dewar@adacore.com>
6260
6261         * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
6262         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
6263         a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
6264         a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
6265         a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
6266         a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
6267         s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
6268         s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
6269         a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
6270         s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
6271         s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
6272         s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
6273         s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
6274         s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
6275         s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
6276         s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
6277         s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
6278         s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
6279         s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
6280         s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
6281         a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
6282         a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
6283         s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
6284         s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
6285         s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
6286         s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
6287         s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
6288         a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
6289         a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
6290         s-tasloc.adb: Minor reformatting.
6291         Update comments.
6292         Remove "used for" sections from comments.
6293
6294 2008-03-26  Robert Dewar  <dewar@adacore.com>
6295
6296         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
6297         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
6298         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
6299         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
6300         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
6301         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
6302         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
6303         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
6304         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
6305         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
6306         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
6307         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
6308         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
6309         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
6310         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
6311         double spaced if it fits on one line and otherwise single spaced.
6312
6313 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6314
6315         * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb, 
6316         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb, 
6317         s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
6318         or task info if the thread could not be created.
6319
6320 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6321
6322         * gnatvsn.ads (Library_Version): Bump to 4.4.
6323         (Current_Year): Bump to 2008.
6324
6325 2008-03-26  Robert Dewar  <dewar@adacore.com>
6326
6327         * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
6328
6329         * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
6330
6331         * debug.adb: Add debug flags d.r and d.v
6332         Add debug flag .T (Optimize_Alignment (Time))
6333         Add debug flag .S (Optimize_Alignment (Space))
6334
6335         * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
6336         depending on setting of relevant debug flags.
6337         Replace use of Warnings_Off by Has_Warnings_Off
6338         (Freeze_Entity): In circuit for warning on suspicious convention
6339         actuals, do not give warning if subprogram has same entity as formal
6340         type, or if subprogram does not come from source.
6341         (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
6342         if Optimize_Alignment set to Space.
6343
6344         * frontend.adb: Add call to Sem_Warn.Initialize
6345         Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
6346         Reset Optimize_Alignment mode from debug switches .S and .T
6347
6348         * layout.adb (Layout_Composite_Object): Rewritten for
6349         Optimize_Aligment pragma.
6350
6351         * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
6352         mode.
6353
6354         * opt.ads, opt.adb: (Optimize_Alignment): New global switch
6355
6356         * par-prag.adb (N_Pragma): Chars field removed, use Chars
6357         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
6358         this change. Add entry for pragma Optimize_Alignment
6359
6360         * sem_prag.adb (N_Pragma): Chars field removed, use Chars
6361         (Pragma_Identifier (..
6362         instead, adjustments throughout to accomodate this change.
6363         (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
6364         (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
6365         Add implementation of pragma Optimize_Alignment
6366
6367 2008-03-26  Vincent Celier  <celier@adacore.com>
6368
6369         * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
6370         Improve memory usage to avoid use of stack.
6371
6372 2008-03-26  Robert Dewar  <dewar@adacore.com>
6373
6374         * a-teioed.ads: Correct value of Default_Fill
6375
6376         * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
6377
6378 2008-03-26  Robert Dewar  <dewar@adacore.com>
6379
6380         * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
6381         with Current_Output (introduce Self).
6382
6383 2008-03-26  Robert Dewar  <dewar@adacore.com>
6384
6385         * checks.adb (Ensure_Valid): Capture valid status if possible
6386         (eliminate checks)
6387
6388 2008-03-26  Robert Dewar  <dewar@adacore.com>
6389
6390         * stand.ads: Deal with reordering of package standard declarations
6391
6392         * cstand.adb: Put package Standard declarations in proper order
6393
6394 2008-03-26  Robert Dewar  <dewar@adacore.com>
6395
6396         * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
6397         (Pragma_Identifier (.. instead.
6398         (OK_To_Reorder_Components): New flag
6399         (Has_Entries): Code cleanup.
6400         (Warnings_Off_Used): New flag
6401         (Warnings_Off_Used_Unmodified): New flag
6402         (Warnings_Off_Used_Unreferenced): New flag
6403         (Has_Warnings_Off): New function
6404         (Has_Unmodified): New function
6405         (Has_Unreferenced): New function
6406         (Is_Trivial_Subprogram): New flag
6407         (Is_Static_Dispatch_Table_Entity): New attribute.
6408         Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
6409         (more consistent with other similar names)
6410         (Access_Subprogram_Type): New classification function
6411
6412 2008-03-26  Robert Dewar  <dewar@adacore.com>
6413
6414         * errout.ads: Document new !! insertion sequence
6415
6416         * errout.adb (N_Pragma): Chars field removed, use Chars
6417         (Pragma_Identifier (..  instead.
6418         Replace use of Warnings_Off by Has_Warnings_Off
6419         (Error_Msg_Internal): Don't delete warning ending in !!
6420
6421 2008-03-26  Robert Dewar  <dewar@adacore.com>
6422
6423         * par.adb (Check_No_Right_Paren): Removed no longer used
6424
6425         * par-ch10.adb (N_Pragma): Chars field removed, use Chars
6426         (Pragma_Identifier (..  instead.
6427
6428         * par-ch10.adb (P_Subunit): Improvement in error recovery and message
6429
6430         * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
6431         par-ch4.adb: Minor improvements in error recovery and messages.
6432
6433         * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
6434         non-serious
6435
6436         * par-ch9.adb: Minor improvements in error recovery and messages
6437         (P_Protected): Better error recovery for "protected type x;"
6438
6439         * par-util.adb: Minor improvements in error recovery and messages
6440         (Check_No_Right_Paren): Removed no longer used
6441
6442 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6443
6444         * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
6445         that the prefix of an attribute is the type of the aggregate being
6446         expanded.
6447
6448 2008-03-26  Javier Miranda  <miranda@adacore.com>
6449             Robert Dewar  <dewar@adacore.com>
6450
6451         * exp_attr.adb (N_Pragma): Chars field removed.
6452         (Expand_N_Attribute_Reference): If the designated type associated with
6453         attribute 'Unrestricted_Access is a subprogram entity then replace it
6454         by an E_Subprogram_Type itype.
6455         Implement attribute Old
6456
6457         * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
6458
6459         * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
6460         Replace call to
6461         New_Internal_Entity by call to Create_Itype to centralize calls
6462         building itypes, ad propagate the convention of the designated
6463         subprogram. In addition, disable the machinery cleaning constant
6464         indications from all entities in current scope when 'Unrestricted_Access
6465         corresponds with a node initializing a dispatch table slot.
6466         (Analyze_Attribute): Parameterless attributes returning a string or a
6467         type will not be called with improper arguments, so we can remove junk
6468         code that was dealing with this case.
6469         Implement attribute Old
6470
6471         * snames.ads, snames.h, snames.adb: Add entries for attribute Old
6472         Add entry for pragma Optimize_Alignment
6473         New standard names Sync and Synchronize
6474
6475 2008-03-26  Robert Dewar  <dewar@adacore.com>
6476             Arnaud Charlet  <charlet@adacore.com>
6477
6478         * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
6479         stmt.
6480         (No_Exception_Propagation_Active): New function.
6481         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
6482         Update comments, and review all uses of No_Exception_Propagation, which
6483         are now correct and in sync with what gigi expects.
6484
6485         * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
6486         function.
6487         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
6488         Update comments, and review all uses of No_Exception_Propagation, which
6489         are now correct and in sync with what gigi expects.
6490
6491 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6492
6493         * sem_ch3.adb (Access_Definition): If the access type is the return
6494         result of a protected function, create an itype reference for it
6495         because usage will be in an inner scope from the point of declaration.
6496         (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
6497         OK_To_Reorder_Components.
6498         (Make_Index): If an overloaded range includes a universal integer
6499         interpretation, resolve to Standard.Integer.
6500         (Analyze_Subtype_Indication): Copy Convention to subtype
6501         (Check_Abstract_Interfaces): Complete semantic checks on the legality of
6502         limited an synchronized progenitors in type declaration and private
6503         extension declarations.
6504
6505         * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
6506         protected subprogram body, determine proper scope from subprogram
6507         declaration.
6508
6509 2008-03-26  Robert Dewar  <dewar@adacore.com>
6510
6511         * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
6512         No_Run_Time_Mode
6513
6514 2008-03-26  Gary Dismukes  <dismukes@adacore.com>
6515
6516         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
6517         of a heap allocator for a limited unconstrained function return when
6518         resstriction No_Allocators is active.
6519         (Analyze_Allocator): The restriction No_Allocators is now only checked
6520         on allocators that have Comes_From_Source set, as per RM-H.4(7).
6521
6522         * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
6523         of a heap allocator for a limited unconstrained function return when
6524         resstriction No_Allocators is active.
6525         (Analyze_Allocator): The restriction No_Allocators is now only checked
6526         on allocators that have Comes_From_Source set, as per RM-H.4(7).
6527         (Has_Fixed_Op):  If the name in a function call is Standard."*" and the
6528         operands are fixed-point types, the universal_fixed predefined operation
6529         is used, regardless of whether the operand type (s) have a primitive
6530         operation of the same name.
6531
6532 2008-03-26  Javier Miranda  <miranda@adacore.com>
6533
6534         * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
6535         Is_Static_Dispatch_Table
6536         (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
6537         to Exchange_Declarations to exchange the private and full-view. Bug
6538         found working in this issue.
6539         (Expand_Dispatching_Call): Propagate the convention of the subprogram
6540         to the subprogram pointer type.
6541         (Make_Secondary_DT): Replace generation of Prim'Address by
6542         Address (Prim'Unrestricted_Access)
6543         (Make_DT): Replace generation of Prim'Address by
6544         Address (Prim'Unrestricted_Access)
6545         (Make_Disp_*_Bodies): When compiling for a restricted profile, use
6546         simple call form for single entry.
6547         (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
6548         tables of predefined primitives).
6549         (Make_Secondary_DT): Add support to handle access to dispatch tables of
6550         predefined primitives.
6551         (Make_Tags): Add entities to Access_Dispatch_Table associated with
6552         access to dispatch tables containing predefined primitives.
6553
6554         * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
6555         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
6556         this change.
6557         (Register_Predefined_DT_Entry): Updated to handle the new contents
6558         of attribute Access_Disp_Table (pointers to dispatch tables containing
6559         predefined primitives).
6560
6561         * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
6562         subprogram.
6563         (Find_Interface_ADT): Updated to skip the new contents of attribute
6564         Access_Dispatch_Table (pointers to dispatch tables containing predefined
6565         primitives).
6566
6567         * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
6568         concurrent types.
6569         (Set_Convention): Use new function Is_Access_Subprogram_Type
6570         (Collect_Interfaces_Info): Updated to skip the new contents of attribute
6571         Access_Dispatch_Table (pointers to dispatch tables containing predefined
6572         primitives).
6573
6574         * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
6575         expanded code avoiding calls to Build_Predef_Prims.
6576         (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
6577         call to Build_Get_Predefined_Prim_Op_Address.
6578
6579 2008-03-26  Javier Miranda  <miranda@adacore.com>
6580
6581         * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
6582         subprogram Corresponding_Runtime_Package to know the runtime package
6583         that will provide support to a given protected type.
6584
6585         * exp_ch9.adb (Add_Private_Declarations,
6586         Build_Protected_Subprogram_Call,
6587         Build_Protected_Entry, Build_Simple_Entry_Call,
6588         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
6589         Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
6590         cleanup using the new centralized subprogram Corresponding_Runtime
6591         Package to know the runtime package that provides support to
6592         a given protected type.
6593
6594 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6595
6596         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
6597         assignment is within the initialization procedure for a packed array,
6598         and Initialize_Scalars is enabled, compile right-hand side with checks
6599         off, because the value is purposely out of range.
6600
6601 2008-03-26  Vincent Celier  <celier@adacore.com>
6602
6603         * gnatcmd.adb: Add processing for GNAT SYNC
6604
6605         * vms_conv.ads: (Command_Type): Add command Sync
6606
6607         * vms_conv.adb (Initialize): Add Command_List data for new command Sync
6608
6609         * vms_data.ads: Add entries for -gnatw.w
6610         Add qualifier for gnatstub --header-file option
6611         Add switches for GNAT SYNC
6612
6613         * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
6614         (Add_Package_Name): New procedure
6615         (Package_Name_List): New function
6616         (Initialize): Add known package names to the list
6617         (Register_New_Package): Add the new package name to the list
6618
6619 2008-03-26  Robert Dewar  <dewar@adacore.com>
6620
6621         * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
6622         s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
6623         Raise_Exception by "raise with" construct.
6624
6625 2008-03-26  Pascal Obry  <obry@adacore.com>
6626
6627         * Makefile.in: Add proper GNAT.Serial_Communications implementation on
6628         supported platforms.
6629         
6630         * Makefile.rtl: Add g-sercom.o.
6631         
6632         * impunit.adb: Add g-sercom.adb.
6633         
6634         * s-crtl.ads (open): New routine.
6635         (close): Likewise.
6636         (write): Likewise.
6637         
6638         * s-osinte-mingw.ads (BYTE): New type.
6639         (CHAR): Likewise.
6640         (OVERLAPPED): Likewise.
6641         (GENERIC_READ): New constant.
6642         (GENERIC_WRITE): Likewise.
6643         (OPEN_EXISTING): Likewise.
6644         (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
6645         type instead.
6646         (CreateFile): New routine.
6647         (WriteFile): Likewise.
6648         (ReadFile): Likewise.
6649         (CloseHandle): Move next to the other file oriented routines.
6650
6651         * g-sercom.ads: New unit.
6652
6653         * g-sercom.adb: Default implementation, calls to this unit will raise
6654         a program error exception.
6655         
6656         * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
6657         GNU/Linux implementations.
6658
6659 2008-03-26  Robert Dewar  <dewar@adacore.com>
6660
6661         * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
6662
6663         * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
6664         unchecked conversion for different conventions only for subprogram
6665         pointers or on VMS.
6666
6667 2008-03-26  Vincent Celier  <celier@adacore.com>
6668
6669         * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
6670         to check if the specified object file is correct.
6671
6672 2008-03-26  Thomas Quinot  <quinot@adacore.com>
6673
6674         * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
6675         Comes_From_Source to exclude primitives from being checked. We want to
6676         exclude predefined primitives only, so use the appropriate specific
6677         predicate. Also, flag a formal parameter of an anonymous
6678         access-to-subprogram type as illegal for a primitive operation of a
6679         remote access to class-wide type.
6680
6681 2008-03-26  Vincent Celier  <celier@adacore.com>
6682
6683         * prj-dect.adb (Parse_Package_Declaration): When a package name is not
6684         known, check if it may be a missspelling of a known package name. In
6685         not verbose, not mode, issue warnings only if the package name is a
6686         possible misspelling.
6687         In verbose mode, always issue a warning for a not known package name,
6688         plus a warning if the name is a misspelling of a known package name.
6689
6690         * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
6691         limited withs or limited withs are parse during one call.
6692         (Parse_Single_Project): Post parse context clause in two passes: non
6693         limited withs before current project and limited withs after current
6694         project.
6695
6696         * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
6697         project with the name With_Name, even if it is only extended indirectly.
6698         (Recursive_Process): Process projects in order: first single withs, then
6699         current project, then limited withs.
6700
6701         * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
6702         project with the name With_Name, even if it is only extended indirectly.
6703
6704 2008-03-26  Robert Dewar  <dewar@adacore.com>
6705
6706         * scn.adb (Initialize_Scanner): Format messages belong on standard error
6707
6708 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6709
6710         * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
6711         a generic subprogram that is imported, do not attempt to compile
6712         non-existent body.
6713
6714         * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
6715         imported, do not generate a raise_program_error for the non-existent
6716         body.
6717         (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
6718         perform minimal name resolution on the generic to avoid spurious
6719         warnings.
6720         (Find_Actual_Type): the designated type of the actual in a child unit
6721         may be declared in a parent unit without being an actual.
6722
6723 2008-03-26  Robert Dewar  <dewar@adacore.com>
6724
6725         * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
6726         * sinfo.ads, sinfo.adb (From_At_End): New flag
6727
6728 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6729
6730         * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
6731         operations that have an interface parameter.
6732         (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
6733         Don't treat No_Return call as raise.
6734
6735         * sem_disp.adb (Check_Dispatching_Operations): apply check for
6736         non-primitive interface primitives to access parameters, not to all
6737         parameters of an access type.
6738
6739 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6740
6741         * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
6742         declarations of a parent unit are made visible when compiling a child
6743         instance, the parent is not a hidden open scope, even though it may
6744         contain other pending instance.
6745         
6746         * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
6747         hidden open scope for some child instance, it does affect the
6748         visibility status of other stach entries.
6749         (Analyze_Object_Renaming): Check that a class-wide object cannot be
6750         renamed as an object of a specific type.
6751
6752 2008-03-26  Robert Dewar  <dewar@adacore.com>
6753
6754         * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
6755         recursion and raise SE directly.
6756         (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
6757         set for formal type for IN mode parameter.
6758
6759 2008-03-26  Robert Dewar  <dewar@adacore.com>
6760
6761         * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
6762         (Initialize): New procedure
6763         (Output_Warnings_Off_Warnings): New procedure
6764         (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
6765         (Output_Non_Modifed_In_Out_Warnings): Ditto
6766         (Warn_On_Unreferenced_Entity): Ditto
6767
6768 2008-03-26  Vincent Celier  <celier@adacore.com>
6769
6770         * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
6771         readable.
6772
6773 2008-03-26  Matthew Heaney  <heaney@adacore.com>
6774
6775         * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads, 
6776         a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
6777         Marked with clauses as private, and controlled operations as overriding
6778
6779 2008-03-26  Robert Dewar  <dewar@adacore.com>
6780
6781         * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
6782
6783 2008-03-26  Robert Dewar  <dewar@adacore.com>
6784
6785         * back_end.adb, back_end.ads: Minor reformatting
6786
6787         * bindgen.adb: Minor clarification of comments
6788
6789         * fname.ads: Minor comment fixes
6790
6791         * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
6792         prj-nmsc.adb, sem_aggr.adb: Minor reformatting
6793
6794         * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
6795         xsnames.adb: Remove warnings off pragma no longer needed
6796
6797         * a-catizo.ads, a-calari.ads, a-calfor.adb,
6798         a-calfor.ads: Fix header.
6799
6800 2008-03-26  Tristan Gingold  <gingold@adacore.com>
6801
6802         * init.c: Do not adjust pc for HPARITH on alpha/vms.
6803
6804 2008-03-26  Robert Dewar  <dewar@adacore.com>
6805
6806         * lib-xref.adb: (OK_To_Set_Reference): New function
6807         (Generate_Reference): Don't set referenced from occurrence in Warnings,
6808         Unmodified, or Unreferenced pragma
6809
6810 2008-03-26  Robert Dewar  <dewar@adacore.com>
6811
6812         * alloc.ads: Add entries for Warnings_Off_Pragmas table
6813
6814 2008-03-26  GNAT Script  <nobody@adacore.com>
6815
6816         * Make-lang.in: Makefile automatically updated
6817
6818 2008-03-26  Robert Dewar  <dewar@adacore.com>
6819
6820         * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
6821         par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
6822         removed, use Chars (Pragma_Identifier (..  instead, adjustments
6823         throughout to accomodate this change.
6824
6825         * s-pooglo.ads, s-pooloc.ads: Minor comment updates
6826
6827         * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
6828         Einfo.Set_Needs_Debug_Info)
6829
6830 2008-03-26  Robert Dewar  <dewar@adacore.com>
6831
6832         * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
6833         Add description for the new gnatstub option '--header-file'
6834         clarification of -gnatwz/-gnatwZ
6835         Add a "Irix-Specific Considerations" section to document the need to
6836         set LD_LIBRARY_PATH when using the default shared runtime library.
6837         Added documentation for both gcov and gprof.
6838
6839         * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
6840         messages that are not suppressed when clients are compiled.
6841         Add documentation of s-pooglo s-pooloc
6842         Document the new GNAT.Serial_Communications API.
6843         Add documentation for 'Old attribute
6844         Add description of pragma Optimize_Alignment
6845
6846         * ug_words: Add entries for -gnatw.w -gnatw.W
6847
6848         * usage.adb: Add line for -gnatw.w (warn on warnings off)
6849
6850 2008-03-25  Eric Botcazou  <ebotcazou@adacore.com>
6851
6852         Revert
6853         2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
6854         PR ada/35186
6855         * decl.c (maybe_pad_type): Avoid padding an integral type when
6856         bumping its alignment is sufficient.
6857
6858 2008-03-25  Arnaud Charlet  <charlet@adacore.com>
6859
6860         * exp_ch6.adb, exp_disp.adb: Update copyright notice.
6861         Fix wrong formatting (lines too long)
6862
6863 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6864
6865         * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
6866         a-calend-vms.adb, a-calend.adb, a-calend.ads,
6867         a-calfor.adb, a-chahan.ads, a-chtgke.adb,
6868         a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
6869         a-cohama.ads, a-comlin.ads, a-coorse.adb,
6870         a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
6871         a-except-2005.ads, a-except.adb, a-except.ads,
6872         a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
6873         a-exextr.adb, a-filico.ads, a-finali.ads,
6874         a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
6875         a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
6876         a-sequio.ads, a-strbou.ads, a-strfix.adb,
6877         checks.adb, exp_ch3.adb, exp_ch4.adb,
6878         exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
6879         exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
6880         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
6881         exp_dbug.ads, exp_disp.adb, exp_dist.adb,
6882         exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
6883
6884 2008-03-24  Robert Dewar  <dewar@adacore.com>
6885
6886         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
6887         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
6888         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
6889         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
6890         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
6891         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
6892         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
6893         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
6894         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
6895         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
6896         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
6897         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
6898         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
6899         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
6900         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
6901         double spaced if it fits on one line and otherwise single spaced.
6902
6903 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6904
6905         PR documentation/15479
6906         * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
6907         (doc/gnat_ugn_unw.texi): ... this, and adjusted.
6908         (doc/gnat_ugn.info): Renamed from ...
6909         (doc/gnat_ugn_unw.info): ... this.
6910         (doc/gnat_ugn.dvi): Renamed from ...
6911         (doc/gnat_ugn_unw.dvi): ... this.
6912         (doc/gnat_ugn.pdf): Renamed from ...
6913         (doc/gnat_ugn_unw.pdf): ... this.
6914         (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
6915         Adjusted.
6916         * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
6917         unconditionally to gnat_ugn.info.  Fix cross references to the
6918         GNAT Reference Manual.  Convert links to the GCC, GDB, Emacs,
6919         and GNU make manuals to be proper texinfo links.
6920         * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
6921
6922 2008-03-21  Olivier Hainque  <hainque@adacore.com>
6923
6924         * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
6925         ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
6926
6927 2008-03-21  Eric Botcazou  <ebotcazou@adacore.com>
6928
6929         * trans.c (addressable_p): Add notes on addressability issues.
6930
6931 2008-03-21  Olivier Hainque  <hainque@adacore.com>
6932             Ed Schonberg  <schonberg@adacore.com>
6933
6934         * trans.c (addressable_p): Accept COND_EXPR when both arms
6935         are addressable.
6936         (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
6937         (call_to_gnu): Do not use name reference in the error message
6938         for a misaligned by_reference_parameter. The actual may be a
6939         general expression.
6940
6941 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
6942
6943         * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
6944
6945 2008-03-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6946
6947         * gnat_rm.texi (Implementation Defined Characteristics)
6948         (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
6949         appropriate.
6950         * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
6951         (Switches for gnatchop, Installing a library): Likewise.
6952
6953 2008-03-10  Eric Botcazou  <ebotcazou@adacore.com>
6954
6955         * trans.c (emit_range_check): Do not emit the check if the base type
6956         of the expression is the type against which its range must be checked.
6957
6958 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6959
6960         * decl.c (maybe_pad_type): Use value_factor_p.
6961
6962 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6963
6964         * lang.opt (nostdlib): Move around.
6965         * misc.c (gnat_handle_option): Fix formatting.
6966         (gnat_dwarf_name): Move around.
6967         * trans.c (Case_Statement_to_gnu): Fix formatting.
6968         (gnat_to_gnu): Likewise.
6969         * utils.c (aggregate_type_contains_array_p): Likewise.
6970         (create_subprog_decl): Likewise.
6971
6972 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6973
6974         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
6975         bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
6976
6977 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6978
6979         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
6980         BIGGEST_ALIGNMENT when capping the alignment of records with
6981         strict alignment and size clause.
6982
6983 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6984
6985         * lang-specs.h: Pass -gnatwa if -Wall is passed.
6986         * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
6987         and -Wuninitialized.
6988         (gnat_post_options): Clear warn_unused_parameter.
6989
6990 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6991
6992         * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
6993         aligned bit-fields, bumping the alignment of the record type if deemed
6994         profitable.
6995         (value_factor_p): Return false instead of 0.
6996
6997 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6998
6999         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
7000         for scalar types with small alignment.
7001
7002 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
7003
7004         * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
7005         from that of the front-end's end label.
7006         (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
7007         from that of the loop label.
7008
7009 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
7010
7011         * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
7012         comment for the packed array type case.
7013         * utils.c (build_template): Use a loop to strip padding or
7014         containing records for justified modular types.
7015
7016 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
7017
7018         * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
7019         large alignments specified for types.
7020         (validate_alignment): Minor cleanup.
7021
7022 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
7023
7024         * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
7025         (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
7026         the component for packing, if possible, as well as if a component
7027         size clause is specified.
7028         <E_Record_Subtype>: For an array type used to implement a packed
7029         array, get the component type from the original array type.
7030         Try to get a smaller form of the component for packing, if possible,
7031         as well as if a component size clause is specified.
7032         (round_up_to_align): New function.
7033         (make_packable_type): Add in_record parameter.
7034         For a padding record, preserve the size.  If not in_record and the
7035         size is too large for an integral mode, attempt to shrink the size
7036         by lowering the alignment.
7037         Ditch the padding bits of the last component.
7038         Compute sizes and mode manually, and propagate the RM size.
7039         Return a BLKmode record type if its size has shrunk.
7040         (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
7041         Use Original_Array_Type to retrieve the type in case of an error.
7042         Adjust call to make_packable_type.
7043         (gnat_to_gnu_field): Likewise.
7044         (concat_id_with_name): Minor tweak.
7045         * trans.c (larger_record_type_p): New predicate.
7046         (call_to_gnu): Compute the nominal type of the object only if the
7047         parameter is by-reference.  Do the conversion actual type -> nominal
7048         type if the nominal type is a larger record.
7049         (gnat_to_gnu): Do not require integral modes on the source type to
7050         avoid the conversion for types with identical names.
7051         (addressable_p): Add gnu_type parameter.  If it is specified, do not
7052         return true if the expression is not addressable in gnu_type.
7053         Adjust recursive calls.
7054         * utils.c (finish_record_type): Remove dead code.
7055
7056 2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
7057
7058         PR ada/35186
7059         * decl.c (maybe_pad_type): Avoid padding an integral type when
7060         bumping its alignment is sufficient.
7061
7062 2008-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7063
7064         * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
7065         * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
7066         statement.
7067         * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
7068         gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
7069         sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
7070         code output strings.
7071         * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
7072         system-vms_64.ads: Fix typos in ada source code comments.
7073         * sinfo-cn.adb: Remove incomplete sentence.
7074
7075         PR documentation/15479
7076         * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
7077
7078 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
7079
7080         PR ada/22255
7081         * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
7082
7083 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
7084
7085         PR ada/34799
7086         * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
7087         that underlying type is present.
7088
7089 2008-02-26  Tom Tromey  <tromey@redhat.com>
7090
7091         * misc.c (internal_error_function): Remove test of
7092         USE_MAPPED_LOCATION.
7093         * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
7094         (Sloc_to_locus): Remove old location code.
7095
7096 2008-02-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7097
7098         * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
7099         `i.e.' by adding comma or `@:' as appropriate.
7100         * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
7101         plain characters `C', use `@samp{C}'.
7102         * gnat_ugn.texi (File Naming Rules, About gnatkr)
7103         (Krunching Method): Likewise.
7104
7105         * gnat_ugn.texi (Conventions): List environment variables and
7106         metasyntactic variables.
7107         (Compiling Programs): Fix notation of metasyntactic variables.
7108         Add @file where appropriate.  Use @file for file extensions,
7109         @samp for strings.
7110         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
7111         instead of @file, @env instead of @code.
7112
7113 2008-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7114
7115         PR documentation/15479
7116         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
7117         and `...' with `@dots{}' or `@enddots{}'.
7118
7119         PR documentation/15479
7120         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
7121         use @command instead of @code, @option instead of @samp or @code,
7122         @code instead of @var, @samp instead of @file.
7123
7124         PR documentation/15479
7125         * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
7126         in Makefile rules, by using `&&' rather than `;'.
7127
7128 2008-02-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7129
7130         PR documentation/15479
7131         * gnat_ugn.texi: In non-code, avoid space before colon.
7132         (Regular Expressions in gnatfind and gnatxref): Fix indentation.
7133         (Examples of gnatxref Usage): Use @command{vi} instead of
7134         @file{vi}.
7135         (Character Set Control): Do not use @code for UTF-8.
7136         (Validity Checking): Fix typo "NaNs" instead of "NaN's".  Do not
7137         use @code for IEEE.
7138         * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
7139         sample.
7140         * gnat_rm.texi, gnat_ugn.texi: Fix typos.  Bump copyright years.
7141
7142 2008-02-11  Joel Sherrill  <joel.sherrill@oarcorp.com>
7143
7144         PR ada/35143
7145         * env.c: Add __rtems__ to if defined.
7146         * s-osinte-rtems.adb: Add To_Target_Priority.  Fix formatting.
7147         * s-osinte-rtems.ads: Add To_Target_Priority prototype and
7148         PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants.  Add
7149         pragma Convention as required.
7150         * gsocket.h: Make compile in and out of RTS.
7151         * Makefile.in: Add system-rtems.ads.  Build DEC extensions.
7152         Use g-soccon-rtems.ads.
7153         * g-soccon-rtems.ads, system-rtems.ads: New files.
7154
7155 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7156
7157         PR other/35107
7158         * Make-lang.in (gnat1): Add $(GMPLIBS).
7159
7160 2008-01-26  Eric Botcazou  <ebotcazou@adacore.com>
7161
7162         * decl.c (components_to_record): Improve comment.
7163
7164 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
7165
7166         * decl.c (components_to_record): Do not reuse the empty union type
7167         if there is a representation clause on the record.
7168         * trans.c (addressable_p): Return true for INTEGER_CST.
7169
7170 2008-01-21  Eric Botcazou  <ebotcazou@adacore.com>
7171
7172         * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
7173         in pointer arithmetics.
7174         * utils2.c (build_allocator): Likewise.
7175
7176 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
7177
7178         * utils.c (build_function_stub): Properly build the call expression.
7179
7180 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
7181
7182         * decl.c (gnat_to_gnu_entity) <object>: Process renamings
7183         before converting the expression to the type of the object.
7184         * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
7185         Stabilize constructors for special wrapping types.
7186
7187 2008-01-13  Eric Botcazou  <ebotcazou@adacore.com>
7188
7189         * trans.c (call_to_gnu): Invoke the addressable_p predicate only
7190         when necessary.  Merge some conditional statements.  Update comments.
7191         Rename unchecked_convert_p local variable to suppress_type_conversion.
7192         Do not suppress conversions in the In case.
7193         (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
7194         into account on non strict-alignment platforms.
7195
7196 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
7197
7198         * utils.c (aggregate_type_contains_array_p): New predicate.
7199         (create_field_decl): In a packed record, force byte alignment
7200         for fields without specified position that contain an array.
7201
7202 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
7203
7204         * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
7205
7206 2008-01-10  John David Anglin  <dave.anglin.@nrc-cnrc.gc.ca>
7207
7208         PR ada/34466
7209         * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
7210         sysconf call.
7211         (bit_field): New packed boolean type used by cpu_set_t.
7212         (cpu_set_t): New type corresponding to the C type with
7213         the same name. Note that on the Ada side we use a bit
7214         field array for the affinity mask. There is not need
7215         for the C macro for setting individual bit.
7216         (pthread_setaffinity_np): New imported routine.
7217
7218 2008-01-03  Tero Koskinen  <tero.koskinen@iki.fi>
7219
7220         PR ada/34647
7221         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
7222         on OpenBSD as is done on other BSD systems.
7223
7224         PR ada/34645
7225         * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
7226         getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
7227         I/O.
7228
7229         PR ada/34644
7230         * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
7231         clearenv().
7232
7233         PR ada/34646
7234         * init.c (__gnat_error_handler, __gnat_install_handler,
7235         __gnat_init_float): Define for OpenBSD.
7236
7237         * initialize.c (__gnat_initialize): Define for OpenBSD.
7238
7239 2007-12-27  Samuel Tardieu  <sam@rfc1149.net>
7240
7241         PR ada/34553
7242         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
7243         instead of mktemp() or tmpnam() on NetBSD.
7244
7245 2007-12-23  Eric Botcazou  <ebotcazou@adacore.com>
7246
7247         * trans.c (call_to_gnu): Make the temporary for non-addressable
7248         In parameters passed by reference.
7249         (addressable_p): Return true for STRING_CST and CALL_EXPR.
7250
7251 2007-12-19  Robert Dewar  <dewar@adacore.com>
7252
7253         * g-expect-vms.adb, g-expect.adb, s-poosiz.adb: 
7254         Add pragma Warnings (Off) for unassigned IN OUT arguments
7255
7256         * sem_warn.adb (Output_Reference): Suppress messages for internal names
7257         (Check_References): Extensive changes to tune up warnings
7258         (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
7259         (Has_Pragma_Unmodifed_Check_Spec): New function
7260         (Check_References): Implement pragma Unmodified
7261         (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
7262
7263         * par-prag.adb: Dummy entry for pragma Unmodified
7264
7265         * sem_prag.adb: Implement pragma Unmodified
7266
7267         * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
7268         (Proc_Next_Component_Or_Discriminant): Fix typo.
7269         Update comments.
7270
7271         * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
7272         Unmodified.
7273         (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
7274         because the former already takes care of discarding the result.
7275         (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
7276         Add comment.
7277
7278         * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
7279
7280 2007-12-19  Eric Botcazou  <ebotcazou@adacore.com>
7281
7282         * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
7283         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
7284         system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
7285         system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
7286         system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7287         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7288         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
7289         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
7290         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7291         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
7292         (Dynamic_Trampolines_Used): Delete.
7293
7294         * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
7295         Turn on stack probing mechanism on LynxOS.
7296
7297 2007-12-19  Bob Duff  <duff@adacore.com>
7298
7299         * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
7300         the resulting tail recursion by hand. This prevents running out of
7301         memory on deeply nested concatenations, since Field2 is where the left
7302         operand of concatenations is stored.
7303         Fix bug (was returning OK_Orig in some cases). Fix return subtype to
7304         clarify that it can only return OK or Abandon.
7305
7306         * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
7307         operand by iteration, in order to avoid running out of memory on
7308         deeply-nested concatenations. Use the Parent pointer to get back up the
7309         tree.
7310         (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
7311          Resolve_Op_Concat_Rest): New procedures split out of
7312         Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
7313         clearer.
7314
7315         * checks.adb (Remove_Checks): Use Traverse_Proc instead of
7316         Traverse_Func, because the former already takes care of discarding the
7317         result.
7318
7319         * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
7320         because the former already takes care of discarding the result.
7321         (Remove_Warning_Messages): Use appropriate subtype for Status and
7322         Discard 
7323
7324 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7325
7326         * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
7327         discriminants forces expansion of the aggregate into assignments.
7328         (Init_Record_Controller):  If the type of the aggregate is untagged and
7329         is not inherently limited, the record controller is not limited either.
7330
7331 2007-12-19  Robert Dewar  <dewar@adacore.com>
7332
7333         * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
7334         handling compile time known size of record or array (case of front end
7335         layout active, e.g. in GNAAMP).
7336
7337 2007-12-19  Javier Miranda  <miranda@adacore.com>
7338
7339         * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
7340         that forces the construction of static dispatch tables in case of
7341         record subtypes.
7342
7343 2007-12-19  Robert Dewar  <dewar@adacore.com>
7344
7345         * exp_ch9.adb (Null_Statements): Moved to library level
7346         (Trivial_Accept_OK): New function
7347         (Expand_Accept_Declaration): Use Trivial_Accept_OK
7348         (Expand_N_Accept_Statement): Use Trivial_Accept_OK
7349
7350 2007-12-19  Robert Dewar  <dewar@adacore.com>
7351
7352         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
7353         in complex case where array is Volatile.
7354
7355 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7356
7357         * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
7358         properly the Ada2005 rules concerning when the current instance of a
7359         record type is aliased.
7360
7361 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7362
7363         * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
7364         mangled declaration
7365         (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
7366         declarations.
7367         (P_Variant_Part): Cleaner patch for parenthesized discriminant
7368
7369 2007-12-19  Vincent Celier  <celier@adacore.com>
7370
7371         * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
7372         package is not known
7373
7374         * prj-attr.ads (Unknown_Package): New constant
7375         Do not crash when an unknown package is in several projects
7376
7377         * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
7378         ignored
7379
7380         * prj-nmsc.adb (Check): Remove obsolete code related to no longer
7381         existing package Language_Processing.
7382
7383 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7384             Gary Dismukes  <dismukes@adacore.com>
7385             Samuel Tardieu  <sam@rfc1149.net>
7386
7387         PR ada/15803, ada/15805
7388         * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
7389         illegal access subtypes when there is a constrained partial view.
7390         (Check_For_Premature_Usage): New procedure inside
7391         Access_Subprogram_Declaration for checking that an access-to-subprogram
7392         type doesn't reference its own name within any formal parameters or
7393         result type (including within nested anonymous access types).
7394         (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
7395         (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
7396         context is an access_to_variable, the expression cannot be an
7397         access_to_constant.
7398
7399 2007-12-19  Bob Duff  <duff@adacore.com>
7400
7401         * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
7402         (Analyze_Concatenation): Use iteration instead of recursion in order
7403         to avoid running out of stack space for deeply nested concatenations.
7404
7405 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7406             Gary Dismukes  <dismukes@adacore.com>
7407
7408         * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
7409         whose renamed entity is a subprogram that requires overriding.
7410         (Premature_Usage): Test for the case of N_Full_Type_Declaration when
7411         issuing an error for premature usage and issue a message that says
7412         'type' rather than 'object'.
7413
7414 2007-12-19  Gary Dismukes  <dismukes@adacore.com>
7415
7416         PR ada/34149
7417         * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
7418         presence of a statically tagged operand (Present (Static_Tag)) with
7419         test for Indeterm_Ancestor_Call when determining whether to propagate
7420         the static tag to tag-indeterminate operands (which forces dispatching
7421         on such calls).
7422         (Check_Controlling_Formals): Ada2005, access parameters can have
7423         defaults.
7424         (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
7425         not insert subprogram in list of primitive operations if already there.
7426
7427 2007-12-19  Tristan Gingold  <gingold@adacore.com>
7428
7429         * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
7430         global variable.
7431
7432 2007-12-19  Thomas Quinot  <quinot@adacore.com>
7433
7434         Part of PR ada/33688
7435         * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
7436         datagram info on Linux.
7437
7438 2007-12-19  Vincent Celier  <celier@adacore.com>
7439
7440         * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
7441         that the source path name is always found in the dependencies.
7442
7443 2007-12-19  Robert Dewar  <dewar@adacore.com>
7444
7445         * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
7446         Fix name of Wide_Wide_Latin_1/9 file names
7447         Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
7448         Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
7449         Add missing documentation for Ada.Command_Line.Response_File
7450         Update list of warning letters for Warnings pragma
7451         Add documentation for pragma Unmodified
7452
7453 2007-12-19  Samuel Tardieu  <sam@rfc1149.net>
7454
7455         * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
7456
7457 2007-12-17  Arnaud Charlet  <charlet@adacore.com>
7458
7459         * s-vxwork-alpha.ads: Removed, no longer used.
7460
7461 2007-12-15  Jakub Jelinek  <jakub@redhat.com>
7462
7463         * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
7464
7465 2007-12-13  Samuel Tardieu  <sam@rfc1149.net>
7466
7467         PR ada/34360
7468         * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
7469         mlib-tgt-specific.adb.
7470
7471 2007-12-13  Bob Duff  <duff@adacore.com>
7472
7473         * trans.c (Attribute_to_gnu): Check for violations of the
7474         No_Implicit_Dynamic_Code restriction. This checking used to be done in
7475         the front end, but is moved here so we can make it more accurate.
7476
7477 2007-12-13  Pascal Obry  <obry@adacore.com>
7478
7479         * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
7480          version is provided for older GNU/Linux distribution not
7481          supporting thread affinity sets.
7482         
7483         * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
7484         call.
7485         (bit_field): New packed boolean type used by cpu_set_t.
7486         (cpu_set_t): New type corresponding to the C type with
7487         the same name. Note that on the Ada side we use a bit
7488         field array for the affinity mask. There is not need
7489         for the C macro for setting individual bit.
7490         (pthread_setaffinity_np): New imported routine.
7491         
7492         * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
7493         no null.
7494         (Create_Task): Set the processor affinity mask if information
7495         is present.
7496         
7497         * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
7498         
7499 2007-12-13  Robert Dewar  <dewar@adacore.com>
7500
7501         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads, 
7502         s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads, 
7503         s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads, 
7504         s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
7505         s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
7506         s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads, 
7507         s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads, 
7508         i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
7509         for subprogram pointers.
7510
7511         * g-ctrl_c.adb: New file.
7512
7513         * g-ctrl_c.ads (Install_Handler): New body.
7514
7515         * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
7516         instead of obsolete function Is_Always_Inlined.
7517         (Freeze_Entity): check for tagged type in imported C subprogram
7518         (Freeze_Entity): check for 8-bit boolean in imported C subprogram
7519         (Freeze_Entity): check for convention Ada subprogram pointer in
7520         imported C subprogram.
7521         (Freeze_Fixed_Point_Type): In the case of a base type where the low
7522         bound would be chopped off and go from negative to zero, force
7523         Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
7524         bound) so that the size computation for the base type will take
7525         negative values into account.
7526
7527 2007-12-13  Eric Botcazou  <ebotcazou@adacore.com>
7528             Bob Duff  <duff@adacore.com>
7529             Tristan Gingold  <gingold@adacore.com>
7530
7531         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, 
7532         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads, 
7533         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
7534         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, 
7535         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads, 
7536         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
7537         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
7538         system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
7539         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, 
7540         system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
7541         system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
7542         (Always_Compatible_Rep): New flag to control trampolines globally.
7543         (Dynamic_Trampolines_Used): New flag for implementing the
7544         No_Implicit_Dynamic_Code restriction more correctly (not yet used,
7545         and not yet set correctly for some targets).
7546
7547         * s-taprop-vxworks.adb: Use stack limit method of stack checking.
7548         Simply indirectly call s-stchop when a task is created.
7549
7550         * ali.ads: 
7551         New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
7552         appears as an argument (entries A) in an ALI file.
7553
7554         * fe.h (Stack_Check_Limits): Declare new target parameter.
7555         (Check_Implicit_Dynamic_Code_Allowed): New procedure.
7556
7557         * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
7558         This variable is declared in C to be sure not subject to elaboration
7559         code.
7560         (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
7561         Storage_Error.
7562
7563         * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
7564         (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
7565
7566         * s-stchop.ads: Add comments.
7567
7568         * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
7569         limit method of stack checking.
7570
7571         * s-stchop-limit.ads: New file.
7572
7573 2007-12-13  Robert Dewar  <dewar@adacore.com>
7574
7575         * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb, 
7576         a-cihama.adb, g-awk.adb, 
7577         s-inmaop-posix.adb: Update handling of assigned value/unreferenced
7578         warnings
7579
7580         * exp_smem.adb: Update handling of assigned value/unreferenced warnings
7581
7582         * sem.adb: Update handling of assigned value/unreferenced warnings
7583
7584         * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
7585
7586         * lib-xref.ads: Improve documentation for k xref type
7587
7588         * lib-xref.adb: 
7589         Update handling of assigned value/unreferenced warnings
7590         (Generate_Reference): Warning for reference to entity for which a
7591         pragma Unreferenced has been given should be unconditional.
7592         If the entity is a discriminal, mark the original
7593         discriminant as referenced.
7594
7595         * sem_warn.ads, sem_warn.adb
7596         (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
7597         no entities referenced in package
7598         (Check_One_Unit): Don't give message about no entities referenced in
7599         a package if a pragma Unreferenced has appeared.
7600         Handle new warning flag -gnatw.a/-gnatw.A
7601         Update handling of assigned value/unreferenced warnings
7602
7603         * atree.h: Add flags up to Flag247
7604         (Flag231): New macro.
7605
7606 2007-12-13  Jose Ruiz  <ruiz@adacore.com>
7607
7608         * adaint.h: (__gnat_plist_init): Not defined for RTX.
7609
7610         * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
7611         RTX systems.
7612
7613         * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
7614         (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
7615         EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
7616         GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
7617
7618         * mingw32.h: 
7619         Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
7620
7621         * sysdep.c (winflush_function for RTX): Procedure that does nothing
7622         since we only have problems with Windows 95/98, which are not
7623         supported by RTX.
7624         (__gnat_ttyname): Return the empty string on Nucleus, just as
7625         done on vxworks.
7626
7627 2007-12-13  Robert Dewar  <dewar@adacore.com>
7628
7629         * a-textio.adb, a-textio.ads: 
7630         Extensive changes to private part for wide character encoding
7631
7632         * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
7633         (Look_Ahead): Fix mishandling of encoded sequences
7634         Move declaration of Wch_Con to private part (should not be visible)
7635
7636         * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
7637         UTF-8. Probably this is never used, but if it is, brackets is
7638         clearly correct.
7639
7640         * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
7641         setting wide character encoding for no main program case and when
7642         encoding is specified using -W?
7643         Initialize stack limit of environment task if stack limit method of
7644         stack checking is enabled.
7645         (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
7646         (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
7647         (Get_Main_Unit_Name): New function.
7648         (Gen_Adainit_Ada): Add call to main program for .NET when needed.
7649         (Gen_Output_File): Set Bind_Main_Program to True for .NET
7650
7651         * bindusg.adb: Add line for -Wx switch
7652
7653         * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
7654         Add comments
7655         Add new useful constant WC_Longest_Sequences
7656
7657         * switch-b.adb: Clean up handling of -Wx switch
7658         For -gnatWx, set Wide_Character_Encoding_Method_Specified
7659
7660         * switch-c.adb: -gnatg activates warning on assertion errors
7661         For -gnatWx, set Wide_Character_Encoding_Method_Specified
7662
7663         * s-wchcon.adb: (Is_Start_Of_Encoding): New function
7664
7665 2007-12-13  Robert Dewar  <dewar@adacore.com>
7666             Ed Schonberg  <schonberg@adacore.com>
7667
7668         * a-ngcoty.adb: New pragma Fast_Math
7669
7670         * opt.adb: New pragma Fast_Math
7671
7672         * par-prag.adb: 
7673         Add Implemented_By_Entry to the list of pragmas which do not require any
7674         special processing.
7675         (Favor_Top_Level): New pragma.
7676         New pragma Fast_Math
7677
7678         * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
7679         (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
7680         Expand_Allocator_Expression): Take into account VM_Target
7681         (Expand_Attribute, case 'Identity):  Handle properly the case where
7682         the prefix is a task interface.
7683         New pragma Fast_Math
7684
7685         * par.adb (Next_Token_Is): New function
7686         (P_Pragma): Add Skipping parameter
7687         (U_Left_Paren): New procedure
7688         (U_Right_Paren): New procedure
7689         New pragma Fast_Math
7690
7691         * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
7692         subunit
7693         New pragma Fast_Math
7694
7695         * sem_prag.adb: Add significance value to table Sig_Flag for pragma
7696         Implemented_By_Entry.
7697         (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
7698         (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
7699         items, since it can apply to more than one overloadable entity. Set
7700         new flag Has_Pragma_Inline_Always for Inline_Always case.
7701         (Analyze_Pragma, case Complex_Representation): Improve error message.
7702         (Analyze_Pragma, case Assert): When assertions are disabled build the
7703         rewritten code with Sloc of expression rather than pragma, so new
7704         warning about failing is not deleted.
7705         (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
7706         protected types and update error message to reflect that. Test whether
7707         the protected type is allowed for the pragma (an error is issued if the
7708         type has any entries, or components that do not have preelaborable
7709         initialization).
7710         New pragma Fast_Math
7711         (Analyze_Pragma, case No_Return): Handle generic instance
7712
7713         * snames.h, snames.ads, snames.adb: 
7714         Add new predefined name for interface primitive _Disp_Requeue.
7715         New pragma Fast_Math
7716
7717         * a-tags.ads, a-tags.adb: New calling sequence for
7718         String_To_Wide_[Wide_]String
7719         (Secondary_Tag): New subprogram.
7720
7721         * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
7722         from Exp_Attr
7723         New calling sequence for String_To_Wide_[Wide_]String
7724         (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
7725         the use of the secondary stack for image routines.
7726
7727         * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
7728         calling sequence for String_To_Wide_[Wide_]String
7729
7730         * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
7731         Ada 95 mode
7732         (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
7733         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7734
7735         * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
7736         (P_Formal_Part): Use Skipping parameter in P_Pragma call
7737         to improve error recovery
7738
7739         * par-util.adb (Next_Token_Is): New function
7740         (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
7741
7742         * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
7743         semicolon if missing
7744         (P_Pragma): Implement new Skipping parameter
7745         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7746         Fix location of flag for unrecognized pragma message
7747
7748         * par-tchk.adb (U_Left_Paren): New procedure
7749         (U_Right_Paren): New procedure
7750
7751 2007-12-13  Geert Bosch  <bosch@adacore.com>
7752
7753         * a-tifiio.adb: 
7754         (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
7755         the second or later Scaled_Divide would omit leading zeroes,
7756         resulting in too few digits produced and a Layout_Error as result.
7757         (Put): Initialize Pos.
7758
7759 2007-12-13  Robert Dewar  <dewar@adacore.com>
7760
7761         atree.ads, atree.adb (Flag231..Flag247): New functions
7762         (Set_Flag231..Set_Flag247): New procedures
7763         (Basic_Set_Convention): Rename Set_Convention to be
7764         Basic_Set_Convention
7765         (Nkind_In): New functions
7766         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7767
7768         * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
7769         instead
7770          of obsolete function Is_Always_Inlined
7771         (Register_Predefined_DT_Entry): Initialize slots of the second
7772         secondary dispatch table.
7773         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7774         (Expand_N_Function_Call): Remove special provision for stack checking.
7775
7776         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
7777         Include _Disp_Requeue in the list of predefined operations.
7778         (Find_Interface_ADT): Modified to fulfill the new specification.
7779         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7780
7781         * par-ch4.adb, nlists.ads, nlists.adb: 
7782         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7783
7784         * sinfo.ads, sinfo.adb: (Nkind_In): New functions
7785         Fix location of flag for unrecognized pragma message
7786
7787         * sem_ch7.adb: Use Nkind_In
7788
7789 2007-12-13  Vincent Celier  <celier@adacore.com>
7790
7791         * opt.ads: 
7792         Indicate what flags are used by the Project Manager, gprbuild and
7793         gprclean.
7794         (Opt.Follow_Links_For_Dirs): New flag
7795         (Warn_On_Assertion_Failure): New flag
7796         (Wide_Character_Encoding_Method_Specified): New flag
7797         (Suppress_All_Inlining): New switch set by -fno-inline
7798         (Real_VMS_Target): New flag
7799         New pragma Fast_Math
7800
7801 2007-12-13  Robert Dewar  <dewar@adacore.com>
7802
7803         * back_end.adb: Recognize -fno-inline
7804
7805 2007-12-13  Robert Dewar  <dewar@adacore.com>
7806
7807         * checks.adb: Fix optimization problem with short-circuited form
7808
7809 2007-12-13  Bob Duff  <duff@adacore.com>
7810
7811         * clean.adb (Usage): Add line for -aP
7812         (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
7813         with a parameter "procedure Usage", instead of passing a pointer to a
7814         procedure. This is to eliminate trampolines (since the Usage procedure
7815         is often nested in a main procedure, and it would be inconvenient to
7816         unnest it).
7817
7818         * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
7819         to be generic, with a parameter "procedure Callback (...)", instead of
7820         passing a pointer to a procedure. This is to eliminate trampolines
7821         (since the Callback procedure is usually nested).
7822
7823         * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb, 
7824         gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
7825         (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
7826
7827         * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
7828         Use the generic Heap_Sort_G instead of Heap_Sort_A.
7829
7830 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7831
7832         * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
7833         (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
7834         (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
7835         (Renamed_In_Spec): New flag
7836         (Has_Pragma_Inline_Always): New flag
7837         Add missing doc for pragma Obsolescent_Warning
7838         Add missing doc for 17 additional unused flags (230-247)
7839         (Is_Derived_Type): Remove condition "not Is_Generic_Type".
7840         Alphabetize with clauses.
7841         Separate Is_Thunk and Has_Thunks flags
7842         (Write_Entity_Flags): Add forgotten entry for Has_Thunks
7843         (Related_Interface): Renamed to Related_Type.
7844         (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
7845         (Set_Is_Flag): Restrict the assertion.
7846
7847 2007-12-13  Vincent Celier  <celier@adacore.com>
7848
7849         * errout.adb (Output_Source_Line): Do not keep a trailing space after
7850         the source line number if the source line is empty.
7851
7852 2007-12-13  Geert Bosch  <bosch@adacore.com>
7853
7854         * eval_fat.adb (Decompose_Int): Handle argument of zero.
7855         (Compose): Remove special casing of zero.
7856         (Exponent): Likewise.
7857         (Fraction): Likewise.
7858         (Machine): Likewise.
7859         (Decompose): Update comment.
7860
7861 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
7862
7863         * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
7864         limited ancestor part, initialize controllers of enclosing record
7865         before expanding ancestor aggregate.
7866         (Gen_Assign): If a component of the aggregate is box-initialized, add
7867         code to call Initialize if the component is controlled, and explicit
7868         assignment of null if the component is an access type.
7869
7870         Handle properly aggregates for limited types that appear in object
7871         declarations when the aggregate contains controlled values such as
7872         protected types.
7873         When expanding limited aggregates into individual components, do not
7874         call Adjust on controlled components that are limited.
7875
7876 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
7877
7878         * expander.adb: Take into account N_Subprogram_Renaming_Declaration
7879
7880 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7881
7882         * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
7883         predefined primitive _Disp_Requeue.
7884         (Make_Predefined_Primitive_Specs): Create the spec for predefined
7885         primitive _Disp_Requeue.
7886         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
7887         type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
7888         (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
7889         an interface type. In case of limited interfaces we now declare all the
7890         predefined primitives associated with synchronized interfaces as
7891         abstract.
7892         (Predef_Spec_Or_Body): For interface types generate abstract subprogram
7893         declarations.
7894         (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
7895         tagged type is an interface type and there is no user-defined equality
7896         function.
7897         Add also bodies of predefined primitives associated with synchronized
7898         interfaces.
7899         (Freeze_Record_Type): Do not build bodies of predefined primitives of
7900         interface types because they are now defined abstract.
7901         Add missing documentation.
7902         (Expand_Record_Controller): Update occurrence of Related_Interface
7903         to Related_Type.
7904         (Build_Offset_To_Top_Functions): Do nothing in case of VM.
7905         (Expand_N_Object_Declaration): Take into account VM_Target when handling
7906         class wide interface object declaration.
7907         (Expand_Previous_Access_Type): Do not create a duplicate master entity
7908         if the access type already has one.
7909         (Expand_N_Object_Declaration): Defend against attempt to validity check
7910         generic types. Noticed for -gnatVcf specified with previous errors.
7911
7912 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
7913
7914         * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
7915         Expand_Allocator_Expression): Take into account VM_Target
7916
7917         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
7918         secondary stack when VM_Target /= No_VM
7919
7920 2007-12-13  Javier Miranda  <miranda@adacore.com>
7921             Ed Schonberg  <schonberg@adacore.com>
7922
7923         * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
7924         Is_Complation_Unit by Is_Library_Level_Entity in the code
7925         that decides if the static dispatch tables need to be built.
7926         (Wrap_Transient_Declaration): Do not generate a finalization call if
7927         this is a renaming declaration and the renamed object is a component
7928         of a controlled type.
7929
7930 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
7931
7932         * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
7933         In the case where the renamed subprogram is a dereference, call
7934         Force_Evaluation on the prefix.
7935
7936 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7937             Ed Schonberg  <schonberg@adacore.com>
7938
7939         * exp_ch9.adb (Expand_N_Asynchronous_Select,
7940         Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
7941         comment reformatting.
7942         (Set_Privals): Inherit aliased flag from formal. From code reading.
7943         (Build_Simple_Entry_Call): Out parameters of an access type are passed
7944         by copy and initialized from the actual. This includes entry parameters.
7945         (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
7946         and Ada 2005 models of requeue.
7947         (Null_Statements): Still connsider do-end block null if it contains
7948         Unreferenced and Warnings pragmas.
7949         (Expand_N_Accept_Statement): Do not optimize away null do end if
7950         dispatching policy is other than defaulted.
7951         (Expand_N_Timed_Entry_Call): When the triggering statement is a
7952         dispatching call, manually analyze the delay statement.
7953         (Find_Parameter_Type): Move subprogram to Sem_Util.
7954
7955 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7956             Javier Miranda  <miranda@adacore.com>
7957
7958         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
7959         _Disp_Requeue occupies dispatch table slot number 15. Move
7960         _Disp_Timed_Select to slot 16.
7961         (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
7962         generate the spec and body of _Disp_Reqeueue.
7963         (Make_DT): Build and initialize the second dispatch table.
7964         Handle initialization of RC_Offset when the parent
7965         is a private type with variable size components.
7966         (Make_Secondary_DT): Complete documentation. Add support to
7967         initialize the second dispatch table.
7968         (Make_Tags): Generate the tag of the second dispatch table.
7969         (Register_Primitive): Add support to register primitives in the
7970         second dispatch table.
7971
7972 2007-12-13  Pascal Obry  <obry@adacore.com>
7973
7974         * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
7975         Windows. This signal is used by gnatmake to kill child processes for
7976         example.
7977
7978 2007-12-13  Javier Miranda  <miranda@adacore.com>
7979
7980         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
7981         support for generic dispatching constructor calls in which we need to
7982         locate the tag of a secondary dispatch table associated with an
7983         interface type to properly dispatch the call.
7984         (Expand_N_Attribute_Reference [case Address],
7985         Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
7986         handling of VM targets.
7987
7988 2007-12-13  Robert Dewar  <dewar@adacore.com>
7989             Ed Schonberg  <schonberg@adacore.com>
7990
7991         * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
7992         assert fail
7993
7994         * ug_words: Add entries for -gnatw.a -gnatw.A
7995
7996         * sem_res.adb (Set_String_Literal_Subtype): If the context of the
7997         literal is a subtype with non-static constraints, use the base type of
7998         the context as the base of the string subtype, to prevent type
7999         mismatches in gigi.
8000         (Resolve_Actuals): If the actual is an entity name, generate a
8001         reference before the actual is resolved and expanded, to prevent
8002         spurious warnings on formals of enclosing protected operations.
8003         (Analyze_Overloaded_Selected_Component): If type of prefix if
8004         class-wide, use visible components of base type.
8005         (Resolve_Selected_Component): Ditto.
8006         (Resolve_Short_Circuit): Detect case of pragma Assert argument
8007         evaluating to False, and issue warning message.
8008
8009         * usage.adb: Add lines for -gnatw.a and -gnatw.A
8010
8011 2007-12-13  Emmanuel Briot  <briot@adacore.com>
8012
8013         * g-calend.ads (No_Time): New constant, to represent an uninitialized
8014         time value
8015
8016         * g-catiio.ads, g-catiio.adb (Value): Added support for more date
8017         formats.
8018         (Month_Name_To_Number): New subprogram
8019
8020         * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
8021         letter to upper-case.
8022
8023 2007-12-13  Robert Dewar  <dewar@adacore.com>
8024             Ed Schonberg  <schonberg@adacore.com>
8025
8026         * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
8027
8028         * layout.adb (Resolve_Attribute, case 'Access): If designated type of
8029         context is a limited view, use non-limited view when available. If the
8030         non-limited view is an unconstrained array, this enforces consistency
8031         requirements in 3.10.2 (27).
8032         (Layout_Type): For an access type whose designated type is a limited
8033         view, examine its declaration to determine if it is an unconstrained
8034         array, and size the access type accordingly.
8035         (Layout_Type): Do not force 32-bits for convention c subprogram
8036         pointers in -gnatdm mode, only if real vms target.
8037
8038         * sem_attr.adb (Analyze_Access_Attribute): Use new flag
8039         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
8040         (Analyze_Access_Attribute,Attribute_Address): Remove checks for
8041         violations of the No_Implicit_Dynamic_Code restriction.
8042         (Resolve_Attribute, case 'Access): If designated type of context is a
8043         limited view, use non-limited view when available. If the non-limited
8044         view is an unconstrained array, this enforces consistency requirements
8045         in 3.10.2 (27).
8046         (Layout_Type): For an access type whose designated type is a limited
8047         view, examine its declaration to determine if it is an unconstrained
8048         array, and size the access type accordingly.
8049
8050 2007-12-13  Vincent Celier  <celier@adacore.com>
8051
8052         * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
8053         object directory of main project does not exist.
8054         On VMS, correctly set then environment variable for the source
8055         directories.
8056
8057 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
8058
8059         * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
8060         set to True this procedure will create the value of type REG_EXPAND_SZ.
8061         It was only possible to create REG_SZ values before.
8062
8063 2007-12-13  Robert Dewar  <dewar@adacore.com>
8064
8065         * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
8066         g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
8067         namet-sp.adb, namet-sp.ads: New files.
8068
8069         * g-speche.adb: Use generic routine in g-spchge
8070
8071         * s-wchcnv.ads, s-wchcnv.adb: 
8072         Minor code cleanup (make formal type consistent with spec)
8073
8074         * namet.adb: Update comments.
8075
8076         * par-endh.adb (Evaluate_End_Entry): Use new
8077         Namet.Sp.Is_Bad_Spelling_Of function
8078
8079         * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
8080
8081         * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
8082         ancestor is an access type initialized with a box, set its type
8083         explicitly, for use in subsequent expansion.
8084         (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
8085         function
8086
8087 2007-12-13  Robert Dewar  <dewar@adacore.com>
8088
8089         * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
8090         access Vstring)
8091
8092 2007-12-13  Robert Dewar  <dewar@adacore.com>
8093
8094         * inline.adb (Back_End_Cannot_Inline): Use new flag
8095         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
8096
8097         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
8098         Has_Pragma_Inline_Always instead.
8099         of obsolete function Is_Always_Inlined
8100         (Build_Body_To_Inline): Same change
8101         (Cannot_Inline): Same change
8102         Do not give warning on exception raise in No_Return function
8103
8104         * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
8105         component has two inconsistent component clauses in the same record
8106         representation clause, favor the message that complains about
8107         duplication rather than inconsistency.
8108         Update comments.
8109         (Record_Representation_Clause): Do not warn on missing component
8110         clauses for inherited components of a type extension.
8111         (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
8112         an overloadable item if it is a pragma that can apply to multiple
8113         overloadable entities (e.g. Inline) because a pragma cannot be on
8114         more than one chain at a time.
8115         (Validate_Unchecked_Conversion): Add code to warn on unchecked
8116         conversion where one of the operands is Ada.Calendar.Time.
8117         (Analyze_Attribute_Definition_Clause): Fix typo in error message.
8118         For now, ignore Component_Size clause on VM targets, as done for
8119         pragma Pack.
8120
8121 2007-12-13  Emmanuel Briot  <briot@adacore.com>
8122             Vincent Celier  <celier@adacore.com>
8123
8124         * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
8125         string
8126         (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
8127         prj.ads
8128         (Hash): Move instantiation of System.HTable.Hash from spec to body
8129         (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
8130         systems, since we do not need to recompute the Name_Id for the canonical
8131         file name.
8132         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
8133         as a parameter. This parameter is in fact always "ada" in all calls, and
8134         we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
8135         while loading a project with 40000 files
8136
8137         * prj-attr.adb: Fix name of attribute Dependency_Driver
8138         Change the kind of indexing for attribute Root
8139
8140         * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
8141         variables already declared, in case constructions.
8142
8143         * prj-env.adb (Initialize): Reset Current_Source_Path_File and
8144         Current_Object_Path_File to No_Path.
8145
8146         * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
8147         ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
8148
8149         * prj-makr.adb: new parameter Current_Dir
8150
8151         * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
8152         Ada sources when language is not Ada.
8153         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
8154         (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
8155         (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
8156         (Locate_Directory): Always resolve links when computing Canonical_Path
8157         (Look_For_Sources): Make sure that Name_Buffer contains the file name
8158         in Source_Files before checking for the presence of a directory
8159         separator.
8160         Optimize calls to Name_Find when on case sensitive systems.
8161         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
8162         as a parameter.
8163         (Prj.Nmsc.Check): new parameter Current_Dir
8164         (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
8165         cannot be empty and the spec suffix cannot be the same as the body or
8166         separate suffix.
8167         (Get_Unit): When a file name can be of several unit kinds (spec, body or
8168         subunit), always consider the longest suffix.
8169         (Check_Configuration): Do not issue an error if there is no compiler
8170         for a language. Just issue a warning and ignore the sources for the
8171         language.
8172         (Check_Library_Attributes): Only check Library_Dir if Library_Name is
8173         not empty.
8174         (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
8175         (Unit_Exceptions): New hash table
8176         (Check_Naming_Schemes): Check if a file that could be a unit because of
8177         the naming scheme is not in fact a source because there is an exception
8178         for the unit.
8179         (Look_For_Sources): Put the unit exceptions in hash table
8180         Unit_Exceptions
8181         (Get_Unit_Exceptions): Give initial value No_Source to local variable
8182         Other_Part to avoid exception when code is compiled with validity
8183         checking.
8184         (Get_Sources_From_File): Check that there is no directory information
8185         in the file names.
8186         (Look_For_Sources): Check that there is no directory information in the
8187         list of file names in Source_Files.
8188         (Look_For_Sources): In multi-language mode, do not allow exception file
8189         names that are excluded.
8190         (Excluded_Sources_Htable): New hash table
8191         (Search_Directories.Check_File): New procedure to simplify
8192         Search_Directories.
8193         (Search_Directories): Do not consider excluded sources
8194         (Look_For_Sources): Populate Excluded_Sources_Htable before calling
8195         Search_Directories.
8196         (Get_Exceptions): Set component Lang_Kind of Source_Data
8197         (Get_Unit_Exceptions): Ditto
8198         (Search_Directories): Ditto
8199
8200         * prj-pars.adb: new parameter Current_Dir
8201
8202         * prj-part.ads, prj-part.adb: 
8203         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
8204         (Opt.Follow_Links_For_Dirs): New flag
8205         (Project_Path_Name_Of): Cache information returned by this routine as
8206         Locate_Regular_File is a costly routine. The code to output a log
8207         information and the effective call to Locate_Regular_File is now
8208         factorized into a routine (code clean-up).
8209         (Parse, Parse_Single_Project): new parameter Current_Dir
8210         When main project file cannot be found, indicate in the error
8211         message the project path that was used to do the search.
8212
8213         * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
8214         (Prj.Proc.Process*): new parameter Current_Dir
8215
8216         * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
8217
8218 2007-12-13  Bob Duff  <duff@adacore.com>
8219
8220         * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
8221         procedure to be called from the back end to check the
8222         No_Implicit_Dynamic_Code restriction.
8223
8224 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
8225
8226         * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
8227         Fixes another case where RTE_Available_Call was ignored instead of being
8228         taken into account.
8229         (Load_Fail): Ditto.
8230
8231         * rtsfind.ads: Add new entries.
8232
8233 2007-12-13  Robert Dewar  <dewar@adacore.com>
8234
8235         * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
8236         g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
8237
8238         * scn.adb: Implement BOM recognition
8239
8240 2007-12-13  Thomas Quinot  <quinot@adacore.com>
8241             Ed Schonberg  <schonberg@adacore.com>
8242
8243         * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
8244         subprogram body that acts as its own spec may not have a non-private
8245         WITH clause on a private sibling.
8246         (Build_Unit_Name): If the parent unit in the name in a with_clause on a
8247         child unit is a renaming, create an implicit with_clause on that
8248         parent, and not on the unit it renames, to prevent visibility errors
8249         in the current unit.
8250
8251 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
8252
8253         * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
8254         renaming declaration, use the Slocs of the formal parameters from the
8255         declaration of the formal subprogram when creating the formal parameter
8256         entities in the renaming declaration.
8257         (Analyze_Formal_Type_Declaration): Change the placement of the error
8258         message concerning illegal known discriminants. It is now posted on the
8259         type rather than on the first discriminant. This change ensures early
8260         error report.
8261         (Freeze_Subprogram_Body): If the generic subprogram is nested within
8262         the package body that contains the instance, do not generate an
8263         out-of-place freeze node for the enclosing package.
8264         (Collect_Previous_Instantiations): Ignore internal instantiations
8265         generated for formal packages.
8266         (Validate_Derived_Type_Instance): Add a check that when a formal
8267         derived type is Known_To_Have_Preelab_Init then the actual type must
8268         have preelaborable initialization, and issue an error when this
8269         condition is violated.
8270
8271 2007-12-13  Robert Dewar  <dewar@adacore.com>
8272
8273         * s-imenne.adb, s-imenne.ads: New files.
8274
8275         * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb, 
8276         s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb, 
8277         s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads, 
8278         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb, 
8279         s-imgwch.ads: New calling sequence for Image routines to avoid sec
8280         stack usage.
8281
8282 2007-12-13  Javier Miranda  <miranda@adacore.com>
8283             Ed Schonberg  <schonberg@adacore.com>
8284
8285         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
8286         generation of spurious error if parent is an interface type; caused
8287         because predefined primitive bodies will be generated later by
8288         Freeze_Record_Type.
8289         (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
8290         flag.
8291         (Derive_Subprograms): Handle derivations of predefined primitives
8292         after all the user-defined primitives to ensure that they are
8293         found in proper order in instantiations.
8294         (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
8295         of Related_Interface to Related_Type.
8296         (Record_Type_Declaration): Minor reordering of calls to decorate the
8297         Tag component because the entity must have set its Ekind attribute
8298         before setting its Is_Tag attribute.
8299         (Analyze_Subtype_Declaration): In the case of subtypes with
8300         Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
8301
8302 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8303             Ed Schonberg  <schonberg@adacore.com>
8304
8305         * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
8306         statement to the list of contexts where a selected component with a
8307         concurrent tagged type prefix should yield a primitive operation.
8308         (Find_Primitive_Operation): Handle case of class-wide types.
8309         (Analyze_Overloaded_Selected_Component): If type of prefix is
8310         class-wide, use visible components of base type.
8311         (Resolve_Selected_Component): Ditto.
8312         (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
8313         formal of a generic subprogram. find candidate interpretations by
8314         scanning the list of generic formal declarations.:
8315         (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
8316         type from a limited_with_clause, and the full view is available, use it
8317         for subsequent semantic checks.
8318         (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
8319         (Find_Primitive_Operation): New function.
8320         (Analyze_Overloaded_Selected_Component): insert explicit dereference
8321         only once if several interpretations of the prefix yield an access type.
8322         (Try_Object_Operation): Code and comment cleanup.
8323         (Analyze_Selected_Component): Reorder local variables. Minot comment and
8324         code reformatting. When the type of the prefix is tagged concurrent, a
8325         correct interpretation might be available in the primitive and
8326         class-wide operations of the type.
8327
8328 2007-12-13  Robert Dewar  <dewar@adacore.com>
8329             Ed Schonberg  <schonberg@adacore.com>
8330
8331         * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
8332         renaming entry as subprogram using rename-as-body if subprogram spec
8333         frozen.
8334         (Use_One_Type): The clause is legal on an access type whose designated
8335         type has a limited view.
8336         (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
8337         (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
8338         (Analyze_Renamed_Primitive_Operation): new procedure to determine the
8339         operation denoted by a selected component.
8340         (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
8341         it can be an expression, possibly overloaded, that returns a task or
8342         an access to one.
8343
8344 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8345             Gary Dismukes  <dismukes@adacore.com>
8346
8347         * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
8348         requeue statement is dispatching. Do not emit an error when the name is
8349         not an entry and the context is a dispatching select. Add code to
8350         perform subtype conformance between the formals of the current entry
8351         and those of the target interface primitive.
8352         (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
8353         Timed_Entry_Call): Analyze the triggering statement as the first step of
8354         the processing. If this is a dispatching select, postpone the analysis
8355         of all select statements until the Expander transforms the select. This
8356         approach avoids generating duplicate identifiers after the Expander has
8357         replicated some of the select statements. In case the Expander is
8358         disabled, perform regular analysis.
8359         (Check_Triggering_Statement): New routine.
8360         (Analyze_Requeue): Exclude any interpretations that are not entries when
8361         checking overloaded names in a requeue. Also test type conformance for
8362         matching interpretations rather than requiring subtype conformance at
8363         that point to conform with the RM's resolution rule for requeues.
8364
8365 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
8366
8367         * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
8368         inherited operation is a defaulted tag-indeterminate call, and there is
8369         a statically tagged actual, use the static tag as a controlling actual
8370         for the defaulted actual.
8371
8372 2007-12-13  Geert Bosch  <bosch@adacore.com>
8373
8374         * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
8375         context, so do not call Check_Non_Static_Context.
8376
8377 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8378
8379         * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
8380         whether formal E is an entity which may have parameters.
8381
8382 2007-12-13  Bob Duff  <duff@adacore.com>
8383             Javier Miranda  <miranda@adacore.com>
8384             Robert Dewar  <dewar@adacore.com>
8385
8386         * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
8387         (Set_Convention): New procedure to set the Convention flag, and in
8388         addition make sure the Favor_Top_Level flag is kept in sync (all
8389         foreign-language conventions require Favor_Top_Level = True).
8390         (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
8391         to Related_Type.
8392         (Collect_Interfaces_Info): Minor update to handle the two secondary
8393         dispatch tables. Update occurrence of Related_Interface to Related_Type.
8394         (Generate_Parent_Ref): Add parameter to specify entity to check
8395         (Is_Preelaborable_Expression): Allow the name of a discriminant to
8396         initialize a component of a type with preelaborable initialization.
8397         This includes the case of a discriminal used in such a context.
8398         (Is_Dependent_Component_Of_Mutable_Object): Take into account the
8399         latest Ada 2005 rules about renaming and 'Access of
8400         discriminant-dependent components.
8401         (Check_Nested_Access): Add handling when there are no enclosing
8402         subprograms (e.g. case of a package body).
8403         (Find_Parameter_Type): Factor routine from several other compiler files.
8404         Remove routine from Find_Overridden_Synchronized_Primitive.
8405
8406 2007-12-13  Thomas Quinot  <quinot@adacore.com>
8407
8408         * sinput.adb (Get_Source_File_Index): Add assertion to guard against
8409         an invalid access to an uninitialized slot in the
8410         Source_File_Index_Table.
8411
8412 2007-12-13  Thomas Quinot  <quinot@adacore.com>
8413
8414         * sinput-l.adb (Load_File): Disable style checks when preprocessing.
8415
8416 2007-12-13  Bob Duff  <duff@adacore.com>
8417
8418         * s-soflin.ads: Apply new pragma Favor_Top_Level to all
8419         access-to-subprogram types in this package.
8420
8421 2007-12-13  Olivier Hainque  <hainque@adacore.com>
8422
8423         * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
8424         with Stack_Grows_Down in System.Parameters. Rename Array_Address into
8425         Stack_Overlay_Address and document that we are using an internal
8426         abstraction.
8427         (Byte_Size, Unsigned_32_Size): Remove, now useless.
8428         (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
8429         consistently throughout the various implementation pieces.
8430
8431         * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
8432         overlay we are using to fill the stack area with patterns.
8433         (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
8434         (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
8435         (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
8436
8437 2007-12-13  Robert Dewar  <dewar@adacore.com>
8438
8439         * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
8440
8441 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
8442
8443         * s-tassta.adb: 
8444         (Create_Task): Take into account tasks created by foreign threads.
8445         Code clean up: use constants instead of hard coded values.
8446
8447 2007-12-13  Robert Dewar  <dewar@adacore.com>
8448
8449         * styleg.adb (Check_Comment): More liberal rules for comment placement
8450
8451 2007-12-13  Olivier Hainque  <hainque@adacore.com>
8452
8453         * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
8454         of Procedure Value instead of Frame Pointer as the invocation
8455         identifier associated with the instruction pointer in each traceback
8456         entry.
8457
8458         * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
8459         TB_Entry_For): Revert back to use of Procedure Value instead of Frame
8460         Pointer as the invocation identifier passed to tbk$symbolize.
8461
8462         * s-traent-vms.ads, s-traent-vms.adb
8463         (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
8464         Procedure Value instead of Frame Pointer as the invocation identifier
8465         passed to tbk$symbolize.
8466
8467 2007-12-13  Robert Dewar  <dewar@adacore.com>
8468
8469         * tbuild.ads, tbuild.adb: 
8470         Fix location of flag for unrecognized pragma message
8471
8472 2007-12-13  Robert Dewar  <dewar@adacore.com>
8473
8474         * treepr.ads, treepr.adb: (pl): implement use of positive value
8475         shorthands
8476
8477 2007-12-13  Robert Dewar  <dewar@adacore.com>
8478
8479         * xeinfo.adb: Remove warnings
8480         * xnmake.adb: Remove warnings
8481         * xsinfo.adb: Remove warnings
8482         * xtreeprs.adb: Remove warnings
8483         * xsnames.adb: Remove warnings
8484
8485         * a-ngcoar.adb: Fix typo.
8486         * s-interr.adb: Minor reformatting
8487         * env.c: Minor reformatting.
8488         * g-bytswa.adb: Minor reformatting.
8489         * g-rannum.ads: Minor documentation improvements
8490         * s-tasinf-mingw.adb: Minor header fix
8491         * a-clrefi.adb: Minor reformatting
8492         * g-sttsne.ads: Minor documentation improvement
8493         * g-sttsne-locking.ads: Minor documentation improvement
8494         * g-soliop-solaris.ads: Minor documentation improvement
8495         * g-soliop-mingw.ads: Minor documentation improvement
8496         * g-soliop.ads: Minor documentation improvement
8497         * exp_aggr.ads: Minor reformatting
8498         * debug.adb: Add documentation for the gprbuild debug flags
8499         * exp_ch2.adb: Use Nkind_In to simplify code throughout
8500         * exp_pakd.adb: Minor reformatting
8501
8502         * g-altive.ads, g-alleve.adb: Remove assertions.
8503         Add comment about minor differences between targets regarding
8504         floating-point operations.
8505
8506         * g-thread.adb: Remove pragma unreferenced.
8507         * lib.ads: Minor reformatting
8508         * par-ch9.adb: Minor reformatting of error messages
8509         * sem_case.adb: Minor reformatting
8510         * s-fileio.adb: Minor reformattinng
8511         * s-vmexta.ads: Minor typo
8512         * vxaddr2line.adb: 
8513         Take into account 'Success' value as per new GNAT warning.
8514
8515 2007-12-13  Vincent Celier  <celier@adacore.com>
8516
8517         * a-direct.adb (Create_Path): Always take '/' as a directory separator,
8518         even on Windows
8519
8520 2007-12-13  Robert Dewar  <dewar@adacore.com>
8521             Bob Duff  <duff@adacore.com>
8522
8523         * gnat_ugn.texi: Dcoument new rules for style check comment alignment
8524         Document that suffixes may be terminations of each others
8525         Add doc for -gnatw.a and -gnatw.A
8526         Document gnatbind -Wx switch
8527         Document BOM recognition
8528         Document pragma Implemented_By_Entry.
8529         Document new units.
8530
8531         * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
8532         Add doc for pragma Unreferenced suppressing no entities referenced msg
8533         Add documentation of GNAT.Directory_Operations.Iteration
8534         Add documentation of GNAT.Random_Numbers
8535         Add documentation for pragma Shared.
8536         Correct documentation for Bit_Order
8537         Add documentation for the Pool_Address attribute.
8538         Fix and improve documentation of pragma machine_attribute.
8539         New pragma Fast_Math
8540         Document BOM recognition
8541
8542         * vms_data.ads: Add entries for -gnatw.a -gnatw.A
8543         Add /Wide_Character_Encoding for binder
8544         Add qualifier for the new gnatpp option --no-separate-loop-then
8545
8546 2007-12-13  Matthew Heaney  <heaney@adacore.com>
8547
8548         * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
8549         which generic formal operations are called for each operation.
8550
8551 2007-12-13  Olivier Hainque  <hainque@adacore.com>
8552
8553         * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
8554         (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
8555
8556 2007-12-13  Emmanuel Briot  <briot@adacore.com>
8557
8558         * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
8559         Reference_Dir unless we actually need it.
8560
8561 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
8562             Tristan Gingold  <gingold@adacore.com>
8563
8564         * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
8565
8566         * s-osprim-vms.adb,
8567         a-calend-vms.adb: Remove pragma warning off and add pragma
8568         unreferenced.
8569
8570 2007-12-13  Robert Dewar  <dewar@adacore.com>
8571
8572         * impunit.adb: Add entries for missing units
8573
8574         * Makefile.rtl: Add new run-time units.
8575
8576         * Make-lang.in:  Update dependencies.
8577
8578 2007-12-13  Bob Duff  <duff@adacore.com>
8579
8580         * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
8581         types, set Can_Use_Internal_Rep appropriately, based on
8582         Always_Compatible_Rep_On_Target.
8583
8584 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
8585             Arnaud Charlet  <charlet@adacore.com>
8586
8587         * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
8588         it to the front end and setting the aamp_target environment variable
8589         to the switch's argument to ensure that gnaampbind and gnaamplink will
8590         take the specified library into account.
8591         (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
8592         target, since the CIL compiler supports an "object" file (.il files).
8593
8594 2007-12-13  Vincent Celier  <celier@adacore.com>
8595
8596         * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
8597         (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
8598
8599 2007-12-13  Geert Bosch  <bosch@adacore.com>
8600
8601         * s-parame-vxworks.adb: 
8602         Update comments to reflect usage of this package by Nucleus.
8603
8604 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
8605
8606         * i-vxwork.ads: Kill new warning on Convention C, since changing the
8607         spec would break code.
8608
8609         * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
8610
8611         * system-vxworks-alpha.ads: Removed.
8612
8613 2007-12-10  Eric Botcazou  <ebotcazou@adacore.com>
8614
8615         * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
8616
8617 2007-12-09  Samuel Tardieu  <sam@rfc1149.net>
8618
8619         PR ada/34366
8620         * sem_ch3.adb (Designates_T): New function.
8621         (Mentions_T): Factor reusable part of the logic into Designates_T.
8622         Consider non-access parameters and access and non-access result.
8623         (Check_Anonymous_Access_Components): Set ekind of anonymous access to
8624         E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
8625
8626         * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
8627
8628 2007-12-07  Ludovic Brenta  <ludovic@ludovic-brenta.org>
8629
8630         PR ada/34361
8631         * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
8632         the new implementation of target-specific calls.
8633
8634 2007-12-07  Olivier Hainque  <hainque@adacore.com>
8635
8636         * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
8637         the designated full view, only follow a second level Full_View link
8638         for Non_Limited_Views of from_limited_with references.
8639         
8640 2007-12-07  Samuel Tardieu  <sam@rfc1149.net>
8641
8642         PR ada/15805
8643         * sem_ch6.adb (Process_Formals): Prevent an access type formal
8644         to be initialized with an access to constant object.
8645
8646         * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
8647         when an access to constant is used to initialize an access
8648         value.
8649
8650         PR ada/21346
8651         * a-direct.adb (Compose): Containing_Directory can be an empty string.
8652
8653 2007-12-07  Olivier Hainque  <hainque@adacore.com>
8654
8655         PR ada/34173
8656         * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
8657         the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
8658         this is from an alignment clause on the GNAT entity.
8659         * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
8660         to distinguish the case where we set it from the type's alignment.
8661         When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
8662         whether this alignment was set from an explicit alignment clause.
8663
8664 2007-12-06  Eric Botcazou  <ebotcazou@adacore.com>
8665
8666         * decl.c (make_packable_type): Revert last change.
8667         (gnat_to_gnu_field): Avoid setting size and position multiple times.
8668         * utils.c (finish_record_type): Retrieve the real name of the type.
8669
8670 2007-12-05  Eric Botcazou  <ebotcazou@adacore.com>
8671
8672         * trans.c (lvalue_required_p): Take base node directly instead
8673         of its parent.  Rename second parameter to 'gnu_type'.
8674         <N_Indexed_Component>: Return 0 if the node isn't the prefix.
8675         <N_Slice>: Likewise.
8676         (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
8677         Adjust calls to lvalue_required_p.
8678
8679 2007-12-05  Samuel Tardieu  <sam@rfc1149.net>
8680
8681         PR ada/21489
8682         * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
8683         parameters of an entry call.
8684
8685 2007-12-03  Robert Dewar  <dewar@adacore.com>
8686             Samuel Tardieu  <sam@rfc1149.net>
8687
8688         PR ada/34287
8689         * sem_util.adb (Safe_To_Capture_Value): Do not capture values
8690         of variables declared in a library-level package.
8691     
8692 2007-12-02  Samuel Tardieu  <sam@rfc1149.net>
8693
8694         * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
8695         of Empty_String'Unchecked_Access.
8696
8697         * Makefile.in: Add support for sh4-linux.
8698
8699         * system-linux-sh4.ads: New file.
8700
8701 2007-12-01  Kostik Belousov  <kostikbel@ukr.net>
8702
8703         PR ada/33722
8704         * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
8705         and its argument must not be free()ed.
8706
8707 2007-11-29  Eric Botcazou  <ebotcazou@adacore.com>
8708
8709         * decl.c (make_packable_type): Retrieve the real name of the type.
8710         (maybe_pad_type): Simplify similar code.
8711
8712 2007-11-28  Samuel Tardieu  <sam@rfc1149.net>
8713
8714         PR ada/15804
8715         * par-ch3.adb (P_Variant_Part): Signal an error when anything other
8716         than an identifier is used after "case" in a variant_part.
8717
8718         PR ada/17318
8719         * par-ch4.adb (Is_Parameterless_Attribute): New map.
8720         (P_Name, Scan_Apostrophe block): Parse left parenthesis following
8721         attribute name or not depending on the new map.
8722
8723         * sem-attr.adb (Analyze_Attribute): Parameterless attributes
8724         returning a string or a type will not be called with improper
8725         arguments.
8726
8727         * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
8728
8729         * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
8730
8731         PR ada/32792
8732         * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
8733         Signal an error when attribute argument is a fixed-point value of
8734         an unknown type.
8735
8736         PR ada/22559
8737         * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
8738         a derived ordinary fixed point type.
8739
8740         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
8741         RM_Size when a Small clause is found.
8742
8743 2007-11-26  Andreas Krebbel  <krebbel1@de.ibm.com>
8744
8745         PR 34081/C++
8746         * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
8747         Pass 'false' for the new allocate_struct_function parameter.
8748         * utils.c (build_function_stub): Likewise.
8749
8750 2007-11-25  Richard Guenther  <rguenther@suse.de>
8751
8752         * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
8753         (gnat_poplevel): Likewise.
8754
8755 2007-11-25  Eric Botcazou  <ebotcazou@adacore.com>
8756
8757         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
8758         strict alignment, no alignment clause and a known static size, cap
8759         the type alignment to the greatest power of 2 factor of the size.
8760         (gnat_to_gnu_field): If the field has a component clause, is aliased
8761         or of a type with strict alignment, require that its size be equal to
8762         that of the type.
8763         (validate_size): Use the type size as the minimum size for a type with
8764         strict alignment.
8765
8766 2007-11-23  Samuel Tardieu  <sam@rfc1149.net>
8767
8768         * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
8769         s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
8770         s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
8771         Use 'Access instead of 'Unchecked_Access in second and third
8772         arguments of pthread_sigmask.
8773
8774 2007-11-23  Eric Botcazou  <ebotcazou@adacore.com>
8775
8776         * decl.c (ceil_alignment): New function.
8777         (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
8778         (make_packable_type): Likewise.
8779
8780 2007-11-22  Olivier Hainque  <hainque@adacore.com>
8781
8782         * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
8783         to fit in 80 columns.
8784
8785 2007-11-21  Aurelien Jarno  <aurelien@aurel32.net>
8786
8787         * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
8788         * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
8789
8790 2007-11-19  Eric Botcazou  <ebotcazou@adacore.com>
8791
8792         PR ada/34098
8793         * misc.c (gnat_adjust_rli): Delete.
8794         (gnat_init): Do not initialize the translation code here.
8795         Do not call set_lang_adjust_rli.
8796         * trans.c (init_code_table): Make static.
8797         (gnat_init_stmt_group): Delete.
8798         (gigi): Initialize the translation code entirely here.
8799         Emit debug info for the common types here instead of...
8800         * utils.c (gnat_init_decl_processing): ...here.
8801         * gigi.h (init_code_table): Delete.
8802         (gnat_init_stmt_group): Likewise.
8803
8804 2007-11-16  Olivier Hainque  <hainque@adacore.com>
8805
8806         * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
8807         retrieving an allocator return value from a super-aligned address from
8808         here to ...
8809         * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
8810         expect a super-aligned address for a fat or thin pointer.
8811         
8812 2007-11-14  Eric Botcazou  <ebotcazou@adacore.com>
8813
8814         * trans.c (call_to_gnu): Always set the source location on the call
8815         expression.  If the function returns-by-target, also set it on the
8816         address expression.
8817
8818 2007-11-14  Samuel Tardieu  <sam@rfc1149.net>
8819
8820         * adaint.c, init.c, initialize.c, link.c: Remove system-specific
8821         sections of non-supported Interix target.
8822
8823         * s-osinte-interix.ads: Removed.
8824
8825         * i-cstrin.ads (chars_ptr): Make it a C convention type.
8826
8827 2007-11-13  Samuel Tardieu  <sam@rfc1149.net>
8828
8829         * a-tasatt.adb: Add a comment at the beginning of the package
8830         explaining why in general 'Unchecked_Access must be used instead
8831         of 'Access.
8832
8833         * sem_prag.adb (Process_Convention): Move the test for the
8834         entity on which the Convention pragma applies down to also
8835         forbid pragma Convention on enumeration literals reached
8836         through renamings.
8837
8838 2007-11-10  Samuel Tardieu  <sam@rfc1149.net>
8839
8840         * a-tasatt.adb: Revert previous change for this file as it will
8841         generate an error when this package is instantiated from a
8842         local context.
8843
8844 2007-11-07  Samuel Tardieu  <sam@rfc1149.net>
8845
8846         * a-tasatt.adb: Type Wrapper should be declared in comment instead
8847         of already declared type Node_Access.
8848         Use 'Access instead of 'Unchecked_Access when applicable. Local
8849         lifetime is the one of the package.
8850         (Set_Value): W is allocated on the heap.
8851
8852         * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
8853         applicable.
8854         (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
8855         access type.
8856         (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
8857         access type.
8858
8859         * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
8860         applicable.
8861         (elaboration code): Timer_Queue lifetime is the one of the
8862         package.
8863
8864         * tracebak.c (i386 alternative): Remove useless comparaison
8865         which is always false; LOWEST_ADDRESS is 0 and is never greater
8866         than an unsigned integer.
8867
8868         * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
8869         embedded check for "Ada_Version >= Ada_05".
8870
8871 2007-11-07  Olivier Hainque  <hainque@adacore.com>
8872
8873         * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
8874         craft and expand comment.
8875
8876 2007-11-01  Eric Botcazou  <ebotcazou@adacore.com>
8877
8878         * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
8879
8880 2007-10-23  Eric Botcazou  <ebotcazou@adacore.com>
8881
8882         * misc.c (gnat_handle_option): Replace call to abort with
8883         call to gcc_unreachable.
8884         (gnat_init): Likewise.
8885         (gnat_expand_expr): Likewise.
8886         (fp_prec_to_size): Likewise.
8887         (fp_size_to_prec): Likewise.
8888
8889 2007-10-23  Richard Guenther  <rguenther@suse.de>
8890
8891         PR bootstrap/33608
8892         * tracebak.c: #undef abort after including system.h.
8893
8894 2007-10-20  Danny Smith  <dannysmith@users.sourceforge.net>
8895
8896         * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
8897         s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
8898         for win32 targets.
8899         (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
8900
8901 2007-10-15  Eric Botcazou  <ebotcazou@adacore.com>
8902
8903         * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
8904         Set the protection status of the guard page based on the value of On.
8905
8906         * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
8907
8908         * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
8909         (Exit_Task): Pass False to Hide_Yellow_Zone.
8910
8911 2007-10-15  Robert Dewar  <dewar@adacore.com>
8912
8913         * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
8914         s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
8915         a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb, 
8916         checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb, 
8917         freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb, 
8918         gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb, 
8919         mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb, 
8920         prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb, 
8921         sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb, 
8922         s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
8923         uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb, 
8924         a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb, 
8925         a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb, 
8926         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb, 
8927         a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb, 
8928         a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
8929         Minor reformatting.
8930         Add Unreferenced and Warnings (Off) pragmas for cases of
8931         variables modified calls where they are IN OUT or OUT parameters and
8932         the resulting values are not subsequently referenced. In a few cases,
8933         we also remove redundant code found by the new warnings.
8934
8935         * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads, 
8936         sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
8937         sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
8938         sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
8939         warning controlled by -gnatw.o that warns on cases of out parameter
8940         values being ignored.
8941
8942 2007-10-15  Geert Bosch  <bosch@adacore.com>
8943
8944         * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
8945
8946         * expect.c: Initial port to arm-mentor-nucleus.
8947         Use kill for __gnat_kill() on VMS.
8948
8949 2007-10-15  Emmanuel Briot  <briot@adacore.com>
8950
8951         * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
8952         value.
8953         (Xref_Record): Change type for Line, since in the case of a reference to
8954         a predefined entity (as happens for array index types), the line is set
8955         to 0.
8956         Add support for parsing multiple array index types info, or
8957         multiple inherited interfaces info. This information cannot be stored
8958         in Xref_Entity_Record, which only supports a single instance of Tref_*,
8959         and is therefore stored in the list of references instead. It has a
8960         special treatement later on in tools that use this information.
8961
8962 2007-10-15  Tristan Gingold  <gingold@adacore.com>
8963
8964         * debug.adb: Document use of -gnatd.a and -gnatd.I
8965
8966         * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
8967
8968 2007-10-15  Javier Miranda  <miranda@adacore.com>
8969
8970         * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
8971         Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
8972         care of access to class-wide interface types plus removal of bizarre
8973         conversion of tagged object to access type (reported by Gary
8974         Dismukes). After this patch there is no need to perform any
8975         additional management on these nodes in Expand_Interface_Actuals.
8976
8977         * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
8978         that handles use of 'Access and 'Unchecked_Access applied to
8979         actuals covering interface types. Such code is now
8980         centralized in Expand_N_Attribute_Reference.
8981
8982 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
8983
8984         * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
8985         of tagged types whose ultimate ancestor is a CPP type.
8986         (Freeze_Array_Type): For a packed array type, generate an initialization
8987         procedure if the type is public, to handle properly a client that
8988         specifies Normalize_Scalars.
8989
8990 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
8991
8992         * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
8993         inside a generic body, retrieve the full view of the entry family
8994         discrete subtype if available.
8995
8996 2007-10-15  Thomas Quinot  <quinot@adacore.com>
8997
8998         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
8999         attempt to generate stubs for hidden primitive operations.
9000
9001 2007-10-15  Vincent Celier  <celier@adacore.com>
9002
9003         * mlib-tgt-specific.adb (Support_For_Libraries): New function,
9004         returning None, used when there is no platform specific body for
9005         MLib.Tgt.Specific.
9006
9007 2007-10-15  Bob Duff  <duff@adacore.com>
9008
9009         * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
9010         (passing'Unrestricted_Access of nested subprograms to Sort) with use of
9011         the generic Heap_Sort_G, in order to avoid trampolines.
9012
9013 2007-10-15  Vasiliy Fofanov  <fofanov@adacore.com>
9014             Jose Ruiz  <ruiz@adacore.com>
9015
9016         * vx_stack_info.c: New file.
9017
9018         * i-forbla-unimplemented.ads: New file.
9019
9020         * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
9021         for unsupported configurations; use it on VMS targets instead of the
9022         real one.
9023         (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
9024         vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
9025         used by VxWorks targets to have access to task-specific data and be
9026         able to extract the stack boundaries for stack checking.
9027         Use system-vms-ia64.ads on ivms.
9028
9029         * Make-lang.in: Update dependencies.
9030
9031         * sysdep.c (__gnat_get_stack_info): Move to a standalone file
9032         (vx_stack_info.c).
9033
9034 2007-10-15  Vincent Celier  <celier@adacore.com>
9035
9036         * snames.adb, snames.ads: Add new standard name runtime_library_dir
9037
9038         * prj.ads (Language_Config): Add new component Runtime_Library_Dir
9039
9040         * prj-attr.adb: Add project level attribute Runtime_Library_Dir
9041
9042         * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
9043         the source is unknown.
9044
9045         * prj-ext.adb: Spelling error fix
9046
9047         * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
9048         95 reserved word in its name.
9049         (Process_Project_Level_Array_Attributes): Process new attribute
9050         Runtime_Library_Dir.
9051
9052         * prj-part.adb (Parse_Single_Project): Do not check the name of the
9053         config project against the user project names.
9054
9055         * prj-proc.adb (Expression): In multi-language mode, indexes that do
9056         not include a dot are always case insensitive.
9057         (Process_Declarative_Items): Ditto
9058         (Process_Project_Tree_Phase_1): Set Success to False in case an error is
9059         detected.
9060
9061         * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
9062         True, compare both indexes in lower case.
9063
9064 2007-10-15  Robert Dewar  <dewar@adacore.com>
9065
9066         * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
9067
9068 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
9069
9070         * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
9071         association for an access component, add an association with null as
9072         the expression. Remove testing for array subtypes and the setting in
9073         that case of Ctyp to the array component type, which prevented proper
9074         inclusion of an association for null-initialized arrays. Collapse
9075         condition that tests for array subtypes into just a test of
9076         Is_Partially_Initialized_Type (which already covers arrays anyway).
9077
9078 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
9079
9080         * sem_ch12.adb: Minor code reformatting.
9081         (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
9082         find the parent package which may have been hidden by local
9083         declarations.
9084
9085 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
9086
9087         * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
9088         flag of derived concurrent types, taking into account the flag setting
9089         on the parent subtype and any new set of discriminants.
9090
9091 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
9092
9093         * sem_ch4.adb: Minor code and comment reformatting.
9094         (Analyze_Allocator): When the designated type of an unconstrained
9095         allocator is a record with unknown discriminants or an array with
9096         unknown range bounds, emit a detailed error message depending on the
9097         compilation mode and whether the designated type is limited.
9098
9099 2007-10-15  Tristan Gingold  <gingold@adacore.com>
9100
9101         * system-vms-ia64.ads: New file.
9102
9103         * system-vms_64.ads: Minor comment fix.
9104
9105 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
9106
9107         * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
9108         body generated for a function with a controlling result that is a null
9109         extension, discard the generated body in favor of the current explicit
9110         one.
9111
9112 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
9113
9114         * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
9115         examining its original form, to handle properly operator calls that
9116         have been rewritten.
9117
9118 2007-10-15  Olivier Hainque  <hainque@adacore.com>
9119
9120         * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
9121         instead of a procedure value in each traceback entry.
9122
9123         * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
9124         instead of procedure value to TBK$SYMBOLIZE.
9125
9126         * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
9127         field.
9128         (TB_Entry_For): Account for the PV/FP renaming.
9129
9130         * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
9131         add comment.
9132         (Null_TB_Entry): Account for change of component name.
9133         (PV_For): Rename as FP_For.
9134
9135 2007-10-15  Tristan Gingold  <gingold@adacore.com>
9136
9137         * trans.c (gnat_to_gnu): Remove the padding structure more often.
9138         This optimize assignment to over-aligned record.
9139
9140 2007-10-15  Emmanuel Briot  <briot@adacore.com>
9141
9142         * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
9143         interfaces.
9144
9145         * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
9146         type, for dispatching calls.
9147
9148 2007-10-15  Vincent Celier  <celier@adacore.com>
9149             Robert Dewar  <dewar@adacore.com>
9150
9151         * gnat_ugn.texi: Add documentation for switches --version and --help
9152         for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
9153         gnatxref, gnatfind, gnatls, and gnatclean.
9154         Document -gnatw.o.
9155         Mention attribute Excluded_Source_Dirs
9156         Replace obsolescent attribute Locally_Removed_Files with attribute
9157         Excluded_Source_Files.
9158         Improve documentation of -u (gnatbind)
9159         Document how to do reliable stack checking for the environmental task
9160         on iVMS.
9161
9162         * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
9163         Document attribute Excluded_Source_Files and indicate that attribute
9164         Locally_Removed_Files is obsolescent.
9165
9166 2007-10-15  Thomas Quinot  <quinot@adacore.com>
9167
9168         * g-soccon-vms.ads: Fix value of MSG_WAITALL.
9169
9170         * gen-soccon.c: 
9171         Update documentation to note that OpenVMS 8.3 or later must be used
9172         to generate g-soccon-vms.ads.
9173
9174         * atree.adb: Add ??? comment
9175
9176         * exp_util.adb: Minor reformatting.
9177         Add ??? comment in Kill_Dead_Code.
9178
9179 2007-10-15  Robert Dewar  <dewar@adacore.com>
9180
9181         * errout.ads: Comment clarification
9182
9183         * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
9184         (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
9185
9186         * lib.ads: Comment update
9187
9188         * init.c: Minor reformatting.
9189
9190         * sem_attr.adb: Minor formatting
9191
9192         * osint-b.ads: Minor reformatting
9193
9194         * sem_ch9.adb: Implement -gnatd.I switch
9195
9196         * g-comlin.adb: (Start): Fix handling of empty command line.
9197
9198         * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
9199         even when -rules follows the -cargs section.
9200
9201 2007-10-08  Ollie Wild  <aaw@google.com>
9202
9203         * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
9204         gnat_return_tree.
9205         (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
9206         gnat_return_tree.
9207         (gnat_eh_runtime_type): Removed.
9208         (gnat_return_tree): New function.
9209
9210 2007-10-08  Ben Elliston  <bje@au.ibm.com>
9211
9212         PR ada/33454
9213         Revert:
9214         2007-08-31  Ben Elliston  <bje@au.ibm.com>
9215
9216         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
9217         when compiling for powerpc64-*-linux.
9218         * system-linux-ppc64.ads: New file.
9219
9220 2007-09-27  Eric Botcazou  <ebotcazou@adacore.com>
9221
9222         Mapped location support
9223         * back_end.adb (Call_Back_End): Pass information about source
9224         files instead of units to gigi.
9225         * gigi.h (struct File_Info_Type): New.
9226         (gigi): Rename and change type of number_units parameter, change
9227         type of file_info_ptr parameter.
9228         * trans.c (number_files): New global variable.
9229         (gigi): Rename and change type of number_units parameter, change
9230         type of file_info_ptr parameter.
9231         If mapped location support is enabled, create the isomorphic mapping
9232         between source files and line maps.
9233         (Sloc_to_locus): If mapped location support is enabled, translate
9234         source location into mapped location.
9235         (annotate_with_node): Rename into set_expr_location_from_node.
9236         Call set_expr_location instead of annotate_with_locus.
9237         (Pragma_to_gnu): Adjust for above change.
9238         (Loop_Statement_to_gnu): Likewise.
9239         (call_to_gnu): Likewise.
9240         (Handled_Sequence_Of_Statements_to_gnu): Likewise.
9241         (gnat_to_gnu): Likewise.
9242         (add_stmt_with_node): Likewise.
9243         (add_cleanup): Likewise.
9244         * utils.c (gnat_init_decl_processing): Do not set input_line.
9245
9246 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
9247
9248         * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
9249         (Applicable_Use): Emit a warning when a package tries to use itself.
9250         (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
9251         is already in use or the package where it is declared is in use or is
9252         declared in the current package.
9253         (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
9254
9255         * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
9256         s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
9257         s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
9258
9259 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
9260
9261         * a-calend-vms.adb, a-calend.adb: 
9262         Add a section on leap seconds control along with two entities used to
9263         enable and disable leap seconds support. The array Leap_Second_Times is
9264         now constant and contains hard time values pre-generated. Remove
9265         all elaboration code used to populate the table of leap seconds.
9266
9267         * bindgen.adb: 
9268         Add entity Leap_Seconds_Support to the list of global run-time variables
9269         along with a comment on its usage and values.
9270         (Gen_Adainit_Ada): Add code to generate the declaration and import of
9271         Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
9272         or one (enabled) depending on the presence of binder switch "-y".
9273         (Gen_Adainit_C): Add code to generate the declaration of external int
9274         __gl_leap_seconds_support. Set is value to zero (disabled) or one
9275         (enabled) depending on the presence of binder switch "-y".
9276
9277         * init.c: Add __gl_leap_seconds_support to the list of global values
9278         computed by the binder.
9279
9280 2007-09-26  Jerome Guitton  <guitton@adacore.com>
9281
9282         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
9283         s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
9284          s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
9285         s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
9286
9287         * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
9288
9289         * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
9290         function which can be called by the debugger to interrupt the tasks of
9291         an Ada application asynchronously, as needed on VxWorks.
9292         (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
9293
9294         * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
9295         renamed from Stop_All_Tasks. Update comments.
9296         (Stop_All_tasks): New function declaration.
9297
9298 2007-09-26  Olivier Hainque  <hainque@adacore.com>
9299
9300         * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
9301         #include <utime.h> and #define GCC_RESOURCE_H before
9302         #include <sys/wait.h>.
9303         Add more protections in __gnat_translate_vms.
9304
9305         * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
9306         #include <sys/wait.h>.
9307
9308 2007-09-26  Thomas Quinot  <quinot@adacore.com>
9309             Sergey Rybin  <rybin@adacore.com>
9310
9311         * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
9312
9313         * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
9314         where it belongs.
9315
9316         * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
9317
9318         * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
9319         where it belongs.
9320
9321         * sem_dist.ads: Minor comment fix
9322
9323         * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
9324
9325 2007-09-26  Javier Miranda  <miranda@adacore.com>
9326             Eric Botcazou  <ebotcazou@adacore.com>
9327
9328         * a-tags.adb: 
9329         (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
9330          indirection added to the HT_Link component of the TSD. This is required
9331          to statically allocate the TSD.
9332
9333         * a-tags.ads: 
9334         Minor reordering of the declarations in the private part. Required to
9335         add a level of indirection to the contents of the TSD component HT_Link.
9336         This is required to statically allocate the TSD.
9337
9338         * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
9339         Is_Statically_Allocated set from constant objects.
9340         Do not make exported constants created by the compiler volatile.
9341         (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
9342         as read-only.
9343
9344         * trans.c (Identifier_to_gnu): For constants, unshare initializers
9345         before returning them.
9346
9347         * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
9348         public part of the package.
9349         (Make_DT): Move HT_Link component out of the TSD record. For this
9350         purpose Make_DT now declares a separate object that stores the
9351         HT_Link value, and initializes the TSD component with the address
9352         of this new object. The addition of this level of indirection is
9353         required to statically allocate the TSD because the TSD cannot
9354         have variable components.
9355         (Expand_Interface_Conversion): Improve the expanded code.
9356         (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
9357
9358         * sem_disp.adb (Check_Dispatching_Operation): In case of a body
9359         declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
9360         if we are building static dispatch tables then we must not generate
9361         extra code to register the primitive because the dispatch table will
9362         be built at the end of the library package; otherwise we notify that
9363         we cannot build the static dispatch table.
9364
9365 2007-09-26  Robert Dewar  <dewar@adacore.com>
9366
9367         * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
9368         overlays.
9369
9370         * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
9371         (Analyze_Record_Representation_Clause): Suppress junk warning for
9372         missing component clause.
9373         (Analyze_Attribute_Definition_Clause, case Address): Apply the special
9374         tests for controlled type overlay to composites with controlled
9375         components.
9376         (Analyze_Record_Representation_Clause): Add reference for component name
9377
9378 2007-09-26  Javier Miranda  <miranda@adacore.com>
9379             Gary Dismukes  <dismukes@adacore.com>
9380
9381         * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
9382         for thunks associated with interface types.
9383
9384         * einfo.ads: Improve documentatation of Is_Internal
9385         (Is_Thunk): New attribute applicable to subprograms. True for thunks
9386         associated with interface types.
9387         Extensive comment fixes regarding flags that appear in all entities. The
9388         documentation is now consistent for all such flags (there were a number
9389         of errors in the documentation in this regard).
9390
9391         * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
9392
9393         * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
9394         of these procedures are passed a function call that already has
9395         build-in-place actuals (testing new flag
9396         Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
9397         the case where processing continues.
9398         (Expand_Call): If the call is generated from a thunk body then we
9399         propagate the extra actuals associated with the accessibility
9400         level of the access type actuals.
9401
9402         * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
9403         of each extra formal of a protected operation to reference the
9404         corresponding extra formal of the subprogram denoted by the
9405         operation's Protected_Body_Subprogram.
9406         
9407         * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
9408         N_Function_Call nodes.
9409
9410 2007-09-26  Robert Dewar  <dewar@adacore.com>
9411
9412         * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
9413
9414         * debug.adb: Add d.s flag.
9415
9416 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
9417
9418         * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
9419         debug variable so that it won't be initialized when pragma
9420         Initialize_Scalars is in effect.
9421
9422 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
9423
9424         * freeze.adb (Freeze_Entity): Remove check for preelaborable
9425         initialization of a full view. This is moved to
9426         Analyze_Package_Specification.
9427
9428         * sem_ch7.adb (Analyze_Package_Specification): Add check for
9429         preelaborable initialization of a full view in entity loop.
9430         (Uninstall_Declarations): If entity is a use-visible compilation unit,
9431         its child units are use-visible only if they are visible child units.
9432
9433         * sem_util.adb (Is_Preelaborable_Expression): New function to determine
9434         whether an expression can be used within a type declaration that
9435         requires preelaborable init.
9436         (Check_Components): Replace inline code that does partial checking for
9437         preelaborable default expressions with call to
9438         Is_Preelaborable_Expression.
9439         (Has_Preelaborable_Initialization): In the case of a generic actual
9440         subtype, (that is, Is_Generic_Actual is True), return the result of
9441         applying Has_Preelaborable_Initialization to the generic actual's base
9442         type.
9443
9444 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
9445
9446         * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
9447         call to Jan_1_Day _Of_Week to optimize its performance.
9448         (Is_Leap): Move the routine to the scope of Week_In_Year.
9449         (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
9450         weekday on which January 1 falls of Year - 1 and Year + 1. This function
9451         avoids calling Time_Of and Split, thus making it more efficent.
9452         (Week_In_Year): Reimplemented in oder to follow ISO 8601.
9453
9454         * g-calend.ads (Week_In_Year): Change comment to reflect new
9455         implementation.
9456
9457 2007-09-26  Emmanuel Briot  <briot@adacore.com>
9458
9459         * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
9460         Command_Line): New types
9461         (Define_Alias, Define_Prefix, Free): New subprograms. These provide
9462         support for defining how switches can be grouped on a command line (as
9463         is the case for -gnatw... for GNAT), and how simple switches can be
9464         used as aliases for more complex switches (-gnatwa is same as
9465         -gnatwbcef...)
9466         (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
9467         (Start, Current_*): New subprograms
9468         Added support for parsing an array of strings in addition to the real
9469         command line.
9470         (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
9471          be moved from the body to the private part of the spec.
9472         (*): All subprograms now have an extra parameter with default value to
9473         specify which parser should be used. For backward compatibility, it
9474         defaults to parsing the command line of the application. They were also
9475         modified to properly handle cases where each of the argument does not
9476         start at index 1 (which is always true for Ada.Command_Line, but not
9477         when processing any Argument_List).
9478         (Free): New subprogram
9479         (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
9480         Argument): New subprograms
9481         (Switch_Parameter_Type): New enum, which clarifies the code. The extra
9482         special characters like ':', '=',... are now handled in a single place,
9483         which makes the code more extensible eventually.
9484         (Getopt, Full_Switch): When the switch was returned as part of the
9485         special character '*', make sure it is prepended by the switch character
9486         ('-' in general), so that the application knows whether "foo" or "-foo"
9487         was specified on the command line.
9488
9489 2007-09-26  Florian Villoing  <villoing@adacore.com>
9490
9491         * g-dirope.adb (Remove_Dir): In case we are removing directories
9492         recursively, make sure that if an exception is raised during the
9493         processing, the current working directory is reset to its initial
9494         value before propagating the exception.
9495
9496 2007-09-26  Vincent Celier  <celier@adacore.com>
9497
9498         * gnatbind.adb: If there are several ALI files specified and there is
9499         a main program to bind, the first ALI is expected to contain the main
9500         subprogram and the names of the binder generated files will be derived
9501         from the first ALI file name.
9502         (Gnatbind): Fix insertion character in invocation of Error_Msg
9503
9504 2007-09-26  Vincent Celier  <celier@adacore.com>
9505
9506         * gnatcmd.adb (Check_Files): Do not include sources that have been
9507         removed by attributes Exclude_Source_Files or Locally_Removed_Files.
9508
9509 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
9510
9511         * lib-xref.ads, lib-xref.adb: The entry for array types now carries
9512         information about each of its index types, following the type
9513         reference for its component type.
9514
9515 2007-09-26  Vincent Celier  <celier@adacore.com>
9516
9517         * make.adb: (Kill): New procedure (__gnat_kill imported)
9518         (Running_Compile, Outstanding_Compiles): Global variables that
9519         were previously local to procedure Compile_Sources.
9520         (Sigint_Intercepted): Send signal SIGINT to all outstanding
9521         compilation processes.
9522
9523         (Gnatmake): If project files are used, create the mapping of all the
9524         sources, so that the correct paths will be found.
9525
9526         * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
9527
9528 2007-09-26  Vincent Celier  <celier@adacore.com>
9529
9530         * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
9531
9532         * prj.ads, prj.adb (Default_Language): Remove function, no longer used
9533         Replace components Compiler_Min_Options and Binder_Min_Options with
9534         Compiler_Required_Switches and Binder_Required_Switches in record
9535         Language_Config.
9536         Remove components Default_Language and Config in Project_Tree_Data,
9537         no longer used.
9538
9539         * prj-attr.adb: New attributes Required_Switches (<language>) in
9540         packages Compiler and Binder.
9541
9542         * prj-nmsc.adb: Major rewrite of the processing of configuration
9543         attributes for gprbuild. No impact on GNAT tools.
9544
9545         * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
9546         process configuration attributes: this is done in Prj.Nmsc.Check.
9547         (Recursive_Process): Make a full copy of packages inherited from project
9548         being extended, instead of a shallow copy.
9549         (Process_Project_Tree_Phase_1): New procedure
9550         (Process_Project_Tree_Phase_1): New procedure
9551         (Process): Implementation now uses the two new procedures
9552
9553         * prj-util.adb (Executable_Of): Get the suffix and the default suffix
9554         from the project config, not the tree config that no longer exists.
9555
9556 2007-09-26  Vincent Celier  <celier@adacore.com>
9557
9558         * Make-lang.in: Update dependencies..
9559
9560 2007-09-26  Vincent Celier  <celier@adacore.com>
9561
9562         * osint.adb, osint.ads: Minor reformatting
9563
9564         * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
9565
9566 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
9567
9568         * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
9569         message to cite use of <> in aggregate component associations rather
9570         than wrongly indicating use of limited aggregates.
9571
9572 2007-09-26  Robert Dewar  <dewar@adacore.com>
9573
9574         * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
9575         Address_Taken.
9576
9577 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
9578
9579         * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
9580         ancestor of the derived type, the operations are inherited from the
9581         primary dispatch table of the parent.
9582         (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
9583         when the context is an explicit type conversion.
9584
9585 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
9586
9587         * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
9588         rule for qualified expressions properly, to detect improper conversions
9589         and resolve some cases of overloading.
9590
9591 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
9592
9593         * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
9594         proper kind of reference to the primitive operation, for better source
9595         navigation.
9596         (Valid_Conversion): A tagged conversion is legal if both operands are
9597         tagged.
9598
9599 2007-09-26  Robert Dewar  <dewar@adacore.com>
9600
9601         * sem_warn.adb (Check_References): Catch more cases of unreferenced
9602         packages.
9603
9604 2007-09-26  Vincent Celier  <celier@adacore.com>
9605
9606         * snames.adb, snames.ads: Change Include_Option to Include_Switches
9607
9608 2007-09-26  Robert Dewar  <dewar@adacore.com>
9609
9610         * s-wchstw.adb: provide messages for run time unit exceptions
9611
9612         * a-witeio.adb: Minor reformatting
9613
9614         * exp_ch13.adb: Minor reformatting
9615
9616 2007-09-26  Sergey Rybin  <rybin@adacore.com>
9617
9618         * vms_data.ads: Revise gnatmetric qualifiers.
9619         Add qualified for the new gnatbind option '-y'
9620
9621         * gnat_ugn.texi: Revise the gnatmetric section.
9622         Add entry for new gnatbind option '-y'.
9623
9624         * gnat_rm.texi: Minor spelling correction.
9625         Document restriction on overlaying controlled types
9626
9627 2007-09-26  Vincent Celier  <celier@adacore.com>
9628
9629         * makegpr.adb (Link_Executables): Do not fail when the root project has
9630         no sources, but is an extending project.
9631
9632 2007-09-25  Eric Botcazou  <ebotcazou@adacore.com>
9633
9634         * trans.c: Fix misplaced #define.
9635
9636 2007-09-22  Eric Botcazou  <ebotcazou@adacore.com>
9637
9638         * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
9639         the TYPE_REF_CAN_ALIAS_ALL flag to the result.
9640
9641 2007-09-21  Olivier Hainque  <hainque@adacore.com>
9642
9643         * utils.c (type_for_nonaliased_component_p): Return false for
9644         all AGGREGATE_TYPEs.
9645
9646 2007-09-17  Eric Botcazou  <ebotcazou@adacore.com>
9647
9648         * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
9649         object covered by 13.3(19) volatile.
9650
9651 2007-09-12  Eric Botcazou  <ebotcazou@adacore.com>
9652
9653         PR ada/26797
9654         PR ada/32407
9655         * utils.c (unchecked_convert): Use a subtype as the intermediate type
9656         in the special VIEW_CONVERT_EXPR case.
9657
9658 2007-09-12  Robert Dewar  <dewar@adacore.com>
9659
9660         * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
9661
9662         * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
9663         lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
9664         s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
9665         s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
9666         s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
9667         s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
9668         s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
9669         s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
9670         a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads, 
9671         g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads, 
9672         s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb, 
9673         s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb, 
9674         snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads, 
9675         s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads, 
9676         s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads, 
9677         s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads, 
9678         s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
9679         pragma Compiler_Unit and adds it to relevant library units.
9680
9681 2007-09-12  Ed Schonberg  <schonberg@adacore.com>
9682
9683         * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
9684         a box need not correspond to any component.
9685
9686 2007-09-12  Robert Dewar  <dewar@adacore.com>
9687
9688         * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
9689         the tasking version of the Ada run time when foreign threads are
9690         present and there are no explicit Ada tasks or tasking constructs.
9691
9692         * gnat_rm.texi: Clarify documentation of GNAT.Threads.
9693
9694 2007-09-12  Hristian Kirtchev  <kirtchev@adacore.com>
9695
9696         * bindusg.adb (Display): Correct comment for switch -X. Add a line for
9697         the usage of switch -y.
9698
9699         * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
9700         when switch -y is present.
9701
9702         * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
9703         leap seconds in Ada.Calendar and its children.
9704
9705 2007-09-12  Jose Ruiz  <ruiz@adacore.com>
9706
9707         * a-extiti.ads (Timer): The discriminant is a "not null access
9708         constant" in the Reference Manual.
9709         (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
9710
9711 2007-09-12  Robert Dewar  <dewar@adacore.com>
9712
9713         * a-swuwha.adb: Remove junk RM header
9714
9715 2007-09-12  Vincent Celier  <celier@adacore.com>
9716
9717         * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
9718         indicator
9719
9720         * g-bytswa.ads: Minor reformatting
9721
9722 2007-09-12  Thomas Quinot  <quinot@adacore.com>
9723
9724         * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads: 
9725         Add new constant Thread_Blocking_IO, always True by default, set False
9726         on a per-runtime basis.
9727         (Need_Netdb_Buffer): New constant.
9728
9729 2007-09-12  Arnaud Charlet  <charlet@adacore.com>
9730
9731         * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
9732         Added renames for corresponding functions in System.Partition_Interface.
9733
9734 2007-09-12  Doug Rupp  <rupp@adacore.com>
9735
9736         * Makefile.in: Remove VMS specific System.CRTL packages which are no
9737         longer needed.
9738
9739         * s-crtl-vms64.ads: Removed.
9740
9741 2007-09-12  Olivier Hainque  <hainque@adacore.com>
9742
9743         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
9744         with discriminant constraints, generalize the code for BIT_FIELDs
9745         to PACKED fields of constant size and propagate DECL_PACKED.
9746
9747 2007-09-11  Eric Botcazou  <ebotcazou@adacore.com>
9748
9749         * decl.c (array_type_has_nonaliased_component): New predicate.
9750         (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
9751         set the TYPE_NONALIASED_COMPONENT flag on the type.
9752         <E_Array_Subtype>: Likewise.
9753         * gigi.h (type_for_nonaliased_component_p): Declare.
9754         * utils.c (type_for_nonaliased_component_p): New predicate.
9755         (create_field_decl): Invoke the above predicate to set the
9756         DECL_NONADDRESSABLE_P flag on the field.
9757
9758 2007-09-11  Javier Miranda  <miranda@adacore.com>
9759
9760         * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
9761         in library level record type entities if we are generating statically
9762         allocated dispatch tables.
9763
9764         * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
9765         importing/exporting the _tag declaration by new code
9766         importing/exporting the dispatch table wrapper. This change allows us
9767         to statically allocate of the TSD.
9768         (Make_DT.Export_DT): New procedure.
9769         (Build_Static_DT): New function.
9770         (Has_DT): New function.
9771
9772         * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
9773         True_Constant and Current_Value. Required to statically
9774         allocate the dispatch tables.
9775         (Check_Allocator): Make function iterative instead of recursive.
9776         Also return inner allocator node, when present, so that we do not have
9777         to look for that node again in the caller.
9778
9779 2007-09-11  Jan Hubicka  <jh@suse.cz>
9780
9781         * misc.c (gnat_expand_body): Kill.
9782         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
9783
9784 2007-09-10  Robert Dewar  <dewar@adacore.com>
9785
9786         * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
9787         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
9788         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
9789         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
9790         ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
9791         bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
9792         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
9793         butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
9794         comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
9795         elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
9796         err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
9797         exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
9798         exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
9799         exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
9800         exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
9801         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
9802         exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
9803         exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
9804         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
9805         exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
9806         exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
9807         exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
9808         fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
9809         get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
9810         gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
9811         gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
9812         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
9813         gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
9814         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
9815         gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
9816         inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
9817         lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
9818         lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
9819         make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
9820         mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
9821         mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
9822         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
9823         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
9824         osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
9825         osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
9826         par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
9827         par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
9828         par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
9829         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
9830         par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
9831         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
9832         prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
9833         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
9834         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
9835         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
9836         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
9837         prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
9838         rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
9839         scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
9840         sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
9841         sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
9842         sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
9843         sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
9844         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
9845         sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
9846         sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
9847         sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
9848         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
9849         sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
9850         sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
9851         sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
9852         sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
9853         sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
9854         stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
9855         styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
9856         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
9857         switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
9858         tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
9859         treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
9860         types.h, uintp.h, urealp.h, usage.adb, usage.ads,
9861         validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
9862         xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
9863         xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
9864         gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
9865         mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
9866         symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
9867         mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
9868         mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
9869
9870 2007-09-10  Emmanuel Briot  <briot@adacore.com>
9871
9872         * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
9873         classes ("[]").
9874
9875 2007-09-10  Vasiliy Fofanov  <fofanov@adacore.com>
9876
9877         * adaint.c (__gnat_translate_vms): new function.
9878
9879 2007-09-10  Gary Dismukes  <dismukes@adacore.com>
9880             Thomas Quinot  <quinot@adacore.com>
9881
9882         * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
9883         create an abstract subprogram in the case of 'Input. For 'Output we now
9884         create a real spec/body when the type is abstract, since it can
9885         potentially be called.
9886         (Predefined_Primitive_Bodies): Now allow the creation of a predefined
9887         body for 'Output when the type is abstract (only the creation of the
9888         body for 'Input is excluded when the type is abstract).
9889         (Stream_Operation_OK): Add an additional condition in the return
9890         statement, so that False will be returned for TTS_Stream_Input if the
9891         associated tagged type is an abstract extension. Add comments for
9892         return statement.
9893         (Expand_N_Object_Declaration): For the case of a shared passive
9894         variable, insert init proc call only after the shared variable
9895         procedures have been processed, because the IP call needs to undergo
9896         shared passive variable reference expansion, which requires these
9897         procedures to be available (and elaborated).
9898
9899 2007-09-10  Vincent Celier  <celier@adacore.com>
9900
9901         * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
9902         parameter Runtime_Project.
9903
9904 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
9905
9906         * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
9907         given a box association, the type of the component is discriminated,
9908         and the value of the discriminant is the discriminant of the enclosing
9909         type, retrieve its value from the aggregate itself, where it must have
9910         been supplied.
9911
9912         * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
9913         to remove other spurious ambiguities on arithmetic operations involving
9914         literals and addresses, on systems where Address is a visible integer
9915         type, when the operator is called in functional notation.
9916         (Try_Primitive_Operation): Within an instance, a call in prefixed form
9917         is legal when the types match, even if the operation is currently
9918         hidden.
9919
9920 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
9921
9922         * sem_ch12.adb (Build_Local_Package): A formal package with no
9923         associations is legal if all formals have defaults. It is not
9924         equivalent to a formal declared with a box.
9925
9926 2007-09-10  Sergey Rybin  <rybin@adacore.com>
9927
9928         * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
9929
9930 2007-09-10  Sergey Rybin  <rybin@adacore.com>
9931
9932         * gnat_ugn.texi: Add description of the new '-lratio' option
9933         Update 7.3.1 section about availability of the feature.
9934
9935 2007-09-10  Thomas Quinot  <quinot@adacore.com>
9936
9937         * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
9938         inserted node.
9939
9940 2007-09-10  Olivier Hainque  <hainque@adacore.com>
9941
9942         * Makefile.in: (mips-irix section): Activate build of libgmem.
9943
9944 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
9945
9946         * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
9947         x87 registers.
9948
9949 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
9950
9951         * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
9952         a debug renaming declaration specially.
9953
9954 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
9955
9956         * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
9957         which a constant renaming is treated as a normal object declaration.
9958         * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
9959         the N_Indexed_Component case.
9960         <N_Indexed_Component>: Fall through to above case.
9961         <N_Object_Renaming_Declaration>: Return true for all composite types.
9962
9963 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
9964
9965         * decl.c (make_packable_type): If the new type has been given BLKmode,
9966         try again to get an integral mode for it.
9967
9968 2007-09-07  Eric Botcazou  <ebotcazou@adacore.com>
9969
9970         Re-apply accidentally reverted change:
9971
9972         2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
9973
9974         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
9975         get_action_description_for): Replace _Unwind_Word with _uleb128_t 
9976         and _Unwind_SWord with _sleb128_t.
9977
9978 2007-09-06  Eric Botcazou  <ebotcazou@adacore.com>
9979
9980         * trans.c (convert_with_check): Update call to real_2expN.
9981
9982 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
9983
9984         * trans.c (Compilation_unit_to_gnu): Use set_cfun.
9985         * utils.c (end_subprog_body): Likewise.
9986
9987 2007-09-03  Nick Clifton  <nickc@redhat.com>
9988
9989         * Make-lang.in: Change copyright header to refer to version 3 of
9990         the GNU General Public License and to point readers at the
9991         COPYING3 file and the FSF's license web page.
9992         * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
9993         Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
9994         namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
9995         treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
9996         Likewise.
9997
9998 2007-08-31  Vincent Celier  <celier@adacore.com>
9999
10000         PR ada/4720
10001
10002         * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb, 
10003         gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
10004         (Check_Version_And_Help): New procedure in package Switch to process
10005         switches --version and --help.
10006         Use Check_Version_And_Help in GNAT tools
10007
10008         * make.adb:  Ditto.
10009         (Compile_Sources): Make sure that sources that are "excluded" are not
10010         compiled.
10011         (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
10012         project file is used.
10013         (Version_Switch): Remove, moved to Switch
10014         (Help_Switch): Remove, moved to Switch
10015         (Display_Version): Remove, moved to Switch
10016
10017         * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
10018         package Switch to process switches --version and --help.
10019         (Display_Version): New procedure
10020
10021         * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
10022
10023 2007-08-31  Javier Miranda  <miranda@adacore.com>
10024
10025         * a-tags.adb (Internal_Tag): Protect the run-time against wrong
10026         internal tags.
10027
10028 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
10029
10030         * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
10031         (Mark_Non_Null): If the node for which we just generated an access check
10032         is a reference to an *in* parameter and the reference appears in the
10033         declarative part of a subprogram body, mark the node as known non null.
10034
10035 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
10036
10037         * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
10038         structure of E_Exception to reflect the new flag.
10039         (Is_Raised, Set_Is_Raised): New inlined routines.
10040         Update the usage of available flag to reflect the addition of Is_Raised.
10041         (Is_Raised, Set_Is_Raised): Bodies of new routines.
10042         (Write_Entity_Flags): Write the status of flag Is_Raised.
10043         (Is_Descendent_Of_Address): New entity flag, to simplify handling of
10044         spurious ambiguities when integer literals appear in the context of an
10045         address type that is a visible integer type.
10046
10047         * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
10048         exceptions never being raised.
10049         (Analyze_Raise_Statement): When analyzing an exception, mark it as being
10050         explicitly raised.
10051
10052 2007-08-31  Javier Miranda  <miranda@adacore.com>
10053
10054         * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
10055         statement when compiling under restriction No_Exceptions_Proparation.
10056
10057 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
10058
10059         * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
10060         initialization aggregate for the type, generate itype references for
10061         thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
10062
10063 2007-08-31  Gary Dismukes  <dismukes@adacore.com>
10064
10065         * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
10066         library-level package renaming, pass the declaration associated with
10067         the renaming's special debug variable to Qualify_Entity_Names to ensure
10068         that its encoded name is properly qualified.
10069
10070         * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
10071         occurring in the list of entities to qualify, and do not attempt to
10072         traverse an entity list in that case. Variables associated with
10073 `       library-level package renamings can now occur in the table.
10074
10075         * exp_dbug.ads: Revise documentation of the encoding for renaming
10076         declarations.
10077
10078 2007-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10079
10080         * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
10081         access type points to an unconstrained array.
10082
10083 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
10084
10085         * restrict.adb, namet.adb, par-util.adb: Remove redundant type
10086         conversion.
10087
10088         * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
10089         simple redundant qualifications. The check is performed whenever the
10090         expression is a non-overloaded identifier.
10091         (Resolve_Type_Conversion): Enchance the redundant type conversion check
10092         to include loop parameters.
10093         (Valid_Conversion): Avoid generation of spurious error message.
10094
10095 2007-08-31  Bob Duff  <duff@adacore.com>
10096
10097         * par-ch4.adb (P_Simple_Expression): Fold long sequences of
10098         concatenations of string literals into a single literal, in order to
10099         avoid very deep recursion in the front end, which was causing stack
10100         overflow.
10101
10102         * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
10103         string, and the right operand is a string literal (the case of "" &
10104         "..."), optimize by avoiding copying the right operand -- just use the
10105         value of the right operand directly.
10106
10107         * stringt.adb (Store_String_Chars): Optimize by growing the
10108         String_Chars table all at once, rather than appending characters one by
10109         one.
10110         (Write_String_Table_Entry): If the string to be printed is very long,
10111         just print the first few characters, followed by the length. Otherwise,
10112         doing "pn(n)" in the debugger can take an extremely long time.
10113
10114         * sem_prag.adb (Process_Interface_Name): Replace loop doing
10115         Store_String_Char with Store_String_Chars.
10116
10117 2007-08-31  Vincent Celier  <celier@adacore.com>
10118
10119         * prj-attr.adb: Add new attribute Excluded_Source_Files
10120
10121         * prj-nmsc.adb: Use attribute Excluded_Source_Files before
10122         Locally_Removed_Files.
10123
10124         * snames.ads, snames.adb: New standard name Excluded_Source_Files
10125
10126 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
10127
10128         * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
10129         clauses of subunits, ignore limited_with_clauses that are illegal and
10130         have not been fully analyzed.
10131
10132 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
10133
10134         * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
10135         flag, for effiency. It is called when analyzing arithmetic operators
10136         and also for actuals in calls that are universal_integers. The flag is
10137         set for the predefined type address, and for any type or subtype
10138         derived from it.
10139
10140         * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
10141         Universal_Integer, when the formal is a descendent of address and the
10142         call appears in user code.
10143         (Analyze_Selected_Component): if the prefix is a private extension, the
10144         tag component is visible.
10145
10146         * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
10147         entity flag.
10148
10149 2007-08-31  Robert Dewar  <dewar@adacore.com>
10150
10151         * s-fileio.adb (Open): Normalize file name to lower case in non-case
10152         sensitive file name systems to avoid unexpected mismatch in Vista.
10153
10154 2007-08-31  Vincent Celier  <celier@adacore.com>
10155
10156         * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
10157
10158 2007-08-31  Vincent Celier  <celier@adacore.com>
10159
10160         * symbols-vms.adb (Initialize): Read symbol files with continuation
10161         lines
10162         (Finalize): If symbol is long, split the line
10163
10164 2007-08-31  Vincent Celier  <celier@adacore.com>
10165
10166         * fmap.ads: Minor comment updates
10167
10168 2007-08-31  GNAT Script  <nobody@adacore.com>
10169
10170         * Make-lang.in: Makefile automatically updated
10171
10172 2007-08-31  Bob Duff  <duff@adacore.com>
10173
10174         * sinfo.ads: Minor comment fix.
10175
10176 2007-08-31  Thomas Quinot  <quinot@adacore.com>
10177
10178         * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
10179         with implementation.
10180         Documentation cleanup only.
10181
10182 2007-08-31  Sergey Rybin  <rybin@adacore.com>
10183
10184         * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
10185         gnatpp '--separate-stmt-name' option.
10186         Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
10187         option.
10188
10189         * gnat_ugn.texi: Add description for the new gnatpp
10190         '--separate-stmt-name' and '--use-on-new-line' options.
10191
10192 2007-08-31  Ben Elliston  <bje@au.ibm.com>
10193
10194         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
10195         when compiling for powerpc64-*-linux.
10196         * system-linux-ppc64.ads: New file.
10197
10198 2007-08-22  Krister Walfridsson  <cato@df.lth.se>
10199
10200         * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
10201         NetBSD.
10202
10203 2007-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10204
10205         * misc.c (gnat_type_max_size): Constify.
10206
10207 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
10208
10209         * cstand.adb (Create_Standard): Create an entity for a zero-sized type
10210         associated with Standard_Debug_Renaming_Type, to be used as the type of
10211         the special variables whose names provide debugger encodings for
10212         renaming declarations.
10213
10214         * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
10215         (Set_Debug_Renaming_Link): Change to set Node25.
10216         (Write_Field13_Name): Remove case for E_Enumeration_Literal.
10217         (Write_Field25_Name): Add case for E_Variable to output
10218         "Debug_Renaming_Link".
10219         (Write_Field23_Name): Correct the output string for "Limited_View".
10220
10221         * exp_dbug.adb: Add with and use of Tbuild.
10222         (Debug_Renaming_Declaration): Replace creation of an enumeration type
10223         and literal with creation of a variable of type
10224         Standard_Debug_Renaming_Type whose name encodes both the renamed object
10225         and the entity of the renaming declaration.
10226         (Qualify_Entity_Name): Add the delayed qualification of the entity name
10227         part of the name of a variable that has a Debug_Renaming_Link.
10228
10229         * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
10230         special type to be associated with variables that provide debugger
10231         encodings for renaming declarations.
10232
10233 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
10234             Ed Schonberg  <schonberg@adacore.com>
10235             Javier Miranda  <miranda@adacore.com>
10236
10237         * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
10238         ancestor part given by an aggregate to test for an unchecked conversion,
10239         since this can occur in some cases when the ancestor part is a function
10240         call, and we don't want to fall into the recursive call to this
10241         procedure in that case.
10242
10243         * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
10244         stream attributes on limited types to account for user-specified
10245         attributes as well as whether Input (resp. Output) becomes available
10246         due to Read (resp. Write) being available for the type. Change Boolean
10247         variable to the more accurate name
10248         Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
10249         double-"not" predicate at beginning of return statement to more
10250         understandable form.
10251
10252         * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
10253         return has an associated N_Handled_Sequence_Of_Statements, then wrap it
10254         in a block statement and use that as the first statement of the
10255         expanded return rather than incorrectly using the handled sequence as
10256         the first statement.
10257
10258         * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
10259         operation, generate an explicit freeze node for it rather than
10260         generating extra formals, to ensure that gigi has the proper order of
10261         elaboration for anonymous subtypes in the signature of the subprograms.
10262         (Build_In_Place_Formal): Move assertion to beginning of loop.
10263         (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
10264         applied to a function call (occurs for some cases of 'Input).
10265         (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
10266         applied to a function call (occurs for some cases of 'Input).
10267
10268         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
10269         2005, generate an extended return statement enclosing the result object
10270         and 'Read call.
10271
10272         * freeze.adb (Freeze_Record_Type): Extend the current management of
10273         components that are access type with an allocator as default value: add
10274         missing support to the use of qualified expressions of the
10275         allocator (which also cause freezing of the designated type!)
10276         (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
10277         dispatching operation, since extra formals may be needed by calls to
10278         build-in-place functions (such as stream 'Input).
10279
10280         * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
10281         formals for 'Constrained and accessibility level in the case of a
10282         predefined dispatching operation.
10283
10284         * exp_util.adb (Insert_Actions): A protected body is a valid insertion
10285         point, no need to find the parent node.
10286
10287 2007-08-16  Javier Miranda  <miranda@adacore.com>
10288
10289         * exp_attr.adb (Attribute_Priority): Add missing support for entries
10290         and entry barriers.
10291
10292 2007-08-16  Javier Miranda  <miranda@adacore.com>
10293
10294         * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
10295         is not really required and can introduce regression with the debugger.
10296         The original problem is fixed with the patch written for checks.adb.
10297
10298 2007-08-16  Thomas Quinot  <quinot@adacore.com>
10299
10300         * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
10301         Range_Check on Allocated_Table.
10302
10303 2007-08-16  Vincent Celier  <celier@adacore.com>
10304
10305         * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
10306         Including_Non_Switch set to False.
10307         (Gnatmake): For the compiler, call Test_If_Relative_Path with
10308         Including_Non_Switch set to False.
10309
10310         * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
10311         parameter Including_Non_Switch, defaulted to True. When
10312         Including_Non_Switch is False, options that are not switches and
10313         appear as relative path are not converted to absolute paths.
10314
10315 2007-08-16  Nicolas Roche  <roche@adacore.com>
10316
10317         * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
10318         makefiles
10319
10320         * Make-lang.in: Update dependencies
10321
10322 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
10323
10324         * sem_ch10.adb (Has_With_Clause): If the name of the with clause
10325         currently inspected is a selected component, retrieve the entity of
10326         its selector.
10327         (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
10328         from the immediate ancestor of Main_Unit_Entity.
10329         (Install_Limited_Withed_Unit): Do not install the limited view of
10330         package P if P is reachable through an ancestor chain from package C
10331         and C also has a with clause for P in its body.
10332         (Has_Limited_With_Clause): New routine.
10333         (Has_With_Clause): New routine.
10334
10335 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
10336
10337         * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
10338         generic for an enclosing instance is a global reference, even though
10339         its scope is the enclosing instance.
10340
10341 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
10342             Javier Miranda  <miranda@adacore.com>
10343
10344         * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
10345         initialize a limited object.
10346         (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
10347         13/2 and 14/2.
10348         Make sure Has_Complex_Representation is inherited by derived type.
10349
10350 2007-08-16  Robert Dewar  <dewar@adacore.com>
10351
10352         * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
10353         exception case
10354
10355 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
10356
10357         * sem_disp.adb (Check_Dispatching_Operation): If the operation
10358         implements an operation inherited from a progenitor interface, verify
10359         that they are subtype-conformant.
10360
10361 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
10362             Bob Duff  <duff@adacore.com>
10363             Nicolas Setton  <setton@adacore.com>
10364
10365         * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
10366         (Resolve): Alphabetize local variables. Add new variable From_Lib. When
10367         the statement which is being resolved comes from a predefined library
10368         unit, all non-predefined library interpretations are skipped.
10369         (Resolve_Op_Concat): If string concatenation was folded in the parser,
10370         but the "&" is user defined, give an error, because the folding would
10371         be wrong.
10372
10373         * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
10374         the parser has folded a long sequence of concatenations of string
10375         literals.
10376
10377         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
10378         and "JMP_BUF" variables as artificial.
10379         (N_String_Literal): Do not use alloca for very long string literals. Use
10380         xmalloc/free instead. Otherwise the stack might overflow.
10381
10382         * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
10383         compiler.
10384
10385 2007-08-16  Vincent Celier  <celier@adacore.com>
10386
10387         * vms_conv.adb (Process_Argument): Ensure that project related options
10388         are not put in the -cargs section when using GNAT COMPILE.
10389
10390 2007-08-16  Robert Dewar  <dewar@adacore.com>
10391
10392         * gnat_ugn.texi: Add note on preprocessing (output file not written)
10393
10394 2007-08-16  Thomas Quinot  <quinot@adacore.com>
10395
10396         * a-tags.adb: Minor reformatting.
10397
10398 2007-08-16  Bob Duff  <duff@adacore.com>
10399
10400         * sem_type.ads, sem_ch4.adb: Minor reformatting.
10401
10402 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10403
10404         * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads, 
10405         s-osinte-interix.ads, system-interix.ads: Removed.
10406
10407 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
10408
10409         * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
10410         calls to Check_Within_Time_Bounds.
10411         ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
10412         (Difference): Account for possible rounding of the resulting difference
10413
10414 2007-08-14  Robert Dewar  <dewar@adacore.com>
10415
10416         * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
10417         par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
10418         s-osinte-solaris.adb, s-osinte-solaris.ads,
10419         s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
10420
10421         * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
10422         switch -gnatyS. Enable -gnatyS in GNAT style check mode
10423
10424 2007-08-14  Robert Dewar  <dewar@adacore.com>
10425             Ed Schonberg  <schonberg@adacore.com>
10426
10427         * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads: 
10428         Suppress unmodified in-out parameter warning in some cases
10429         This patch is a also fairly significant change to the way suppressible
10430         checks are handled.
10431
10432         * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
10433         needed for access to concurrent record types generated by the expander.
10434         (Generate_Range_Check): When generating a temporary to capture the
10435         value of a conversion that requires a range check, set the type of the
10436         temporary before rewriting the node, so that the type is always
10437         properly placed for back-end use.
10438         (Apply_Float_Conversion_Check): Handle case where the conversion is
10439         truncating.
10440         (Get_Discriminal): Code reformatting. Climb the scope stack looking
10441         for a protected type in order to examine its discriminants.
10442
10443 2007-08-14  Robert Dewar  <dewar@adacore.com>
10444             Gary Dismukes  <dismukes@adacore.com>
10445             Ed Schonberg  <schonberg@adacore.com>
10446             Thomas Quinot  <quinot@adacore.com>
10447
10448         * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb, 
10449         a-stwisu.adb, a-strsup.adb: Fix warnings for range
10450         tests optimized out.
10451
10452         * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
10453         (Get_Allocator_Final_List): For the case of an anonymous access type
10454         that has a specified Associated_Final_Chain, do not go up to the
10455         enclosing scope.
10456         (Expand_N_Type_Conversion): Test for the case of renamings of access
10457         parameters when deciding whether to apply a run-time accessibility
10458         check.
10459         (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
10460         aggregate code before allocator, and ahead of declaration for
10461         temporary, to prevent access before elaboration when the allocator is
10462         an actual for an access parameter.
10463         (Expand_N_Type_Conversion): On an access type conversion involving an
10464         access parameter, do not apply an accessibility check when the
10465         operand's original node was an attribute other than 'Access. We now
10466         create access conversions for the expansion of 'Unchecked_Access and
10467         'Unrestricted_Access in certain cases and clearly accessibility should
10468         not be checked for those.
10469
10470         * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
10471         includes a type conversion of a packed component that has been expanded,
10472         recover the original expression for the object, and use this expression
10473         in the post-call assignment statement, so that the assignment is made
10474         to the object and not to a back-end temporary.
10475         (Freeze_Subprogram): In case of primitives of tagged types not defined
10476         at the library level force generation of code to register the primitive
10477         in the dispatch table. In addition some code reorganization has been
10478         done to leave the implementation clear.
10479         (Expand_Call): When expanding an inherited implicit conversion,
10480         preserve the type of the inherited function after the intrinsic
10481         operation has been expanded.
10482
10483         * exp_ch2.ads, exp_ch2.adb
10484         (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
10485         of an entry formal appearing in an assignment statement does not assign
10486         to the formal.
10487         (Expand_Current_Value): Instead of calling a routine to determine
10488         whether the prefix of an attribute reference should be optimized or
10489         not, prevent the optimization of such prefixes all together.
10490
10491         * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
10492         component whose prefix is known to be of an access type is an implicit
10493         dereference and does not assign to the prefix.
10494
10495 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10496             Robert Dewar  <dewar@adacore.com>
10497
10498         * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
10499         itype is visited, make an entry into table to link associated node and
10500         new itype.
10501         Add comments and correct harmless error in Build_NCT_Hash_Tables
10502         (Array_Aggr_Subtype): Associate each itype created for an index type to
10503         the corresponding range construct, and not to the aggregate itself. to
10504         maintain a one-to-one correspondence between itype and its associated
10505         node, to prevent errors when complex expression is copied.
10506         Fix mishandling of multiple levels of parens
10507
10508         * sem_aggr.adb: Create a limited view of an incomplete type, to make
10509         treatment of limited views uniform for all visible declarations in a
10510         limited_withed package.
10511         (New_Copy_Tree): If hash table is being used and itype is visited,
10512         make an entry into table to link associated node and new itype.
10513         (Resolve_Record_Aggregate): Do not add an others box association for a
10514         discriminated record component that has only discriminants, when there
10515         is a box association for the component itself.
10516
10517         * par-ch4.adb: Fix mishandling of multiple levels of parens
10518
10519 2007-08-14  Robert Dewar  <dewar@adacore.com>
10520
10521         * comperr.adb: Fix problem with suppressing warning messages from gigi
10522
10523         * erroutc.ads, erroutc.adb, errout.ads, 
10524         errout.adb (Write_Eol): Remove trailing spaces before writing the line
10525         (Write_Eol_Keep_Blanks): New procedure to write a line, including
10526         possible trailing spaces.
10527         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
10528         Fix problem with suppressing warning messages from back end
10529         Improve handling of deleted warnings
10530
10531         * gnat1drv.adb: 
10532         Fix problem with suppressing warning messages from back end
10533         Handle setting of Static_Dispatch_Tables flag.
10534
10535         * prepcomp.adb: 
10536         Fix problem with suppressing warning messages from back end
10537
10538         * exp_intr.adb: Improve handling of deleted warnings
10539
10540 2007-08-14  Robert Dewar  <dewar@adacore.com>
10541
10542         * debug.adb: Improve -gnatdI to cover all cases of serialization
10543         Add documentation of dZ, d.t
10544
10545         * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
10546         serialization.
10547         (Sprint_Node_Actual): Generate new output associated with implicit
10548         importation and implicit exportation of object declarations.
10549
10550 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10551             Robert Dewar  <dewar@adacore.com>
10552             Javier Miranda  <miranda@adacore.com>
10553             Gary Dismukes  <dismukes@adacore.com>
10554
10555         * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
10556         to make treatment of limited views uniform for all visible declarations
10557         in a limited_withed package.
10558         Improve warnings for in out parameters
10559         (Set_Related_Interaface/Related_Interface): Allow the use of this
10560         attribute with constants.
10561         (Write_Field26_Name): Handle attribute Related_Interface in constants.
10562         Warn on duplicate pragma Preelaborable_Initialialization
10563
10564         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
10565         generation of a freezing node to ensure proper management of null
10566         excluding access types in the backend.
10567         (Create_Extra_Formals): Test base type of the formal when checking for
10568         the need to add an extra accessibility-level formal. Pass the entity E
10569         on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
10570         originally being done in a couple of cases), to ensure that the
10571         Extra_Formals list gets set on the entity E when the first entity is
10572         added.
10573         (Conforming_Types): Add missing calls to Base_Type to the code that
10574         handles anonymous access types. This is required to handle the
10575         general case because Process_Formals builds internal subtype entities
10576         to handle null-excluding access types.
10577         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
10578         functions that need it, even when not marked Requires_Overriding.
10579         Improve warnings for in out parameters
10580         (Analyze_Function_Return): Warn for disallowed null return
10581         Warn on return from procedure with unset out parameter
10582         Ensure consistent use of # in error messages
10583         (Check_Overriding_Indicator): Add in parameter Is_Primitive.
10584         (Analyze_Function_Return): Move call to Apply_Constraint_Check before
10585         the implicit conversion of the expression done for anonymous access
10586         types. This is required to generate the code of the null excluding
10587         check (if required).
10588
10589         * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
10590         A formal parameter is never publicly referenceable outside of its body.
10591         (Check_References): For an unreferenced formal parameter in an accept
10592         statement, use the same warning circuitry as for subprogram formal
10593         parameters.
10594         (Warn_On_Unreferenced_Entity): New subprogram, taken from
10595         Output_Unreferenced_Messages, containing the part of that routine that
10596         is now reused for entry formals as described above.
10597         (Goto_Spec_Entity): New function
10598         (Check_References): Do not give IN OUT warning for dispatching operation
10599         Improve warnings for in out parameters
10600         (Test_Ref): Check that the entity is not undefinite before calling
10601         Scope_Within, in order to avoid infinite loops.
10602         Warn on return from procedure with unset out parameter
10603         Improved warnings for unused variables
10604
10605 2007-08-14  Robert Dewar  <dewar@adacore.com>
10606             Javier Miranda  <miranda@adacore.com>
10607             Gary Dismukes  <dismukes@adacore.com>
10608
10609         * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
10610         (Expand_N_Attribute_Reference): Further unify the handling of the
10611         three forms of access attributes, using common code now for all three
10612         cases. Add a test for the case of applying an access attribute to
10613         an explicit dereference when the context is an access-to-interface
10614         type. In that case we need to apply the conversion to the prefix
10615         of the explicit dereference rather than the prefix of the attribute.
10616         (Attribute_Version, UET_Address): Set entity as internal to ensure
10617         proper dg output of implicit importation.
10618         (Expand_Access_To_Type): Removed.
10619         (Expand_N_Attribute_Reference): Merge the code from the three cases
10620         of access attributes, since the processing is largely identical for
10621         these cases. The substantive fix here is to process the case of a
10622         type name prefix (current instance case) before handling the case
10623         of interface prefixes.
10624
10625 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10626             Ed Schonberg  <schonberg@adacore.com>
10627             Javier Miranda  <miranda@adacore.com>
10628             Robert Dewar  <dewar@adacore.com>
10629
10630         * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
10631         (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
10632         type that is an anonymous access to controlled object, establish
10633         an associated finalization chain to avoid corrupting the global
10634         finalization list when a dynamically allocated object designated
10635         by such a component is deallocated.
10636         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
10637         functions that need it, even when not marked Requires_Overriding.
10638         (Initialize_Tag): Replace call to has_discriminants by call to
10639         Is_Variable_Size_Record in the circuitry that handles the
10640         initialization of secondary tags.
10641         (Is_Variable_Size_Record): New implementation.
10642         (Expand_N_Object_Declaration): Suppress call to init proc if there is a
10643         Suppress_Initialization pragma for a derived type.
10644         (Is_Variable_Size_Record): New subprogram.
10645         (Build_Offset_To_Top_Functions): New implementation that simplifies the
10646         initial version of this routine and also fixes problems causing
10647         incomplete initialization of the table of interfaces.
10648         (Build_Init_Procedure): Improve the generation of code to initialize the
10649         the tag components of secondary dispatch tables.
10650         (Init_Secondary_Tags): New implementation that simplifies the previous
10651         version of this routine.
10652         (Make_DT): Add parameter to indicate when type has been frozen by an
10653         object declaration, for diagnostic purposes.
10654         (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
10655         diagnose attemps to freeze a subprogram when some untagged type of its
10656         profile is a private type whose full view has not been analyzed yet.
10657         (Freeze_Array_Type): Generate init proc for packed array if either
10658         Initialize or Normalize_Scalars is set.
10659         (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
10660         constructing the new profile, copy the null_exclusion indicator for each
10661         parameter, to ensure full conformance of the new body with the spec.
10662
10663         * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
10664         Create wrappers for constructor functions that need it, even when not
10665         marked Requires_Overriding.
10666         (Covers): Handle properly designated types of anonymous access types,
10667         whose non-limited views are themselves incomplete types.
10668         (Add_Entry): Use an entity to store the abstract operation which hides
10669         an interpretation.
10670         (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
10671         (Collect_Interps): Use Empty as an actual for Abstract_Op in the
10672         initialization aggregate.
10673         (Function_Interp_May_Be_Hidden): Rename to
10674         Function_Interp_Has_Abstract_Op.
10675         (Has_Compatible_Type): Remove machinery that skips interpretations if
10676         they are labeled as potentially hidden by an abstract operator.
10677         (Has_Hidden_Interp): Rename to Has_Abstract_Op.
10678         (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
10679         (Write_Overloads): Output the abstract operator if present.
10680         (Add_Entry): Before inserting a new entry into the interpretation table
10681         for a node, determine whether the entry will be disabled by an abstract
10682         operator.
10683         (Binary_Op_Interp_May_Be_Hidden): New routine.
10684         (Collect_Interps): Add value for flag May_Be_Hidden in initialization
10685         aggregate.
10686         (Function_Interp_May_Be_Hidden): New routine.
10687         (Has_Compatible_Type): Do not consider interpretations hidden by
10688         abstract operators when trying to determine whether two types are
10689         compatible.
10690         (Has_Hidden_Interp): New routine.
10691         (Set_May_Be_Hidden_Interp): New routine.
10692         (Write_Overloads): Write the status of flag May_Be_Hidden.
10693
10694 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10695             Javier Miranda  <miranda@adacore.com>
10696
10697         * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
10698         types declared in the declarative part of a nested package body or in
10699         the proper body of a stub.
10700         (Set_All_DT_Position): Add missing check to avoid wrong assignation
10701         of the same dispatch table slot to renamed primitives.
10702         (Make_Select_Specific_Data_Table): Handle private types.
10703         (Tagged_Kind): Handle private types.
10704         (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
10705         output of implicit importation and exportation.
10706         (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
10707         first formal of the thunk is always associated with the controlling
10708         type. In addition perform the following code cleanup: remove formal
10709         Thunk_Alias which is no longer required, cleanup evaluation of the
10710         the controlling type, and update the documentation.
10711         Replace occurrence of Default_Prim_Op_Count by
10712         Max_Predef_Prims. Addition of compile-time check to verify
10713         that the value of Max_Predef_Prims is correct.
10714         (Check_Premature_Freezing): Apply check in Ada95 mode as well.
10715         (Make_DT): Add parameter to indicate when type has been frozen by an
10716         object declaration, for diagnostic purposes.
10717         (Build_Static_Dispatch_Tables): New subprogram that takes care of the
10718         construction of statically allocated dispatch tables.
10719         (Make_DT): In case of library-level tagged types export the declaration
10720         of the primary tag. Remove generation of tags (now done by Make_Tags).
10721         Additional modifications to handle non-static generation of dispatch
10722         tables. Take care of building tables for asynchronous interface types
10723         (Make_Tags): New subprogram that generates the entities associated with
10724         the primary and secondary tags of Typ and fills the contents of Access_
10725         Disp_Table. In case of library-level tagged types imports the forward
10726         declaration of the primary tag that will be declared later by Make_DT.
10727         (Expand_Interface_Conversion): In case of access types to interfaces
10728         replace an itype declaration by an explicit type declaration to avoid
10729         problems associated with the scope of such itype in transient blocks.
10730
10731 2007-08-14  Robert Dewar  <dewar@adacore.com>
10732             Ed Schonberg  <schonberg@adacore.com>
10733             Javier Miranda  <miranda@adacore.com>
10734
10735         * exp_util.ads, exp_util.adb: 
10736         This patch replaces a number of occurrences of explicit tests for N_Null
10737         with calls to Known_Null. This improves tracking of null values, since
10738         Known_Null also catches null constants, and variables currently known to
10739         be null, so we get better tracking.
10740         (Ensure_Defined): create an itype reference only in the scope of the
10741         itype.
10742         (Side_Effect_Free): A selected component of an access type that
10743         denotes a component with a rep clause must be treated as not
10744         side-effect free, because if it is part of a linked structure its
10745         value may be affected by a renaming.
10746         (Expand_Subtype_From_Expr): For limited objects initialized with build
10747         in place function calls, do nothing; otherwise we prematurely introduce
10748         an N_Reference node in the expression initializing the object, which
10749         breaks the circuitry that detects and adds the additional arguments to
10750         the called function. Bug found working in the new patch for statically
10751         allocated dispatch tables.
10752         (Is_Library_Level_Tagged_Type): New subprogram.
10753         (Remove_Side_Effects): If the expression of an elementary type is an
10754         operator treat as a function call.
10755         (Make_Literal_Range): If the index type of the array is not integer, use
10756         attributes properly to compute the constraint on the resulting aggregate
10757         which is a string.
10758
10759         * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
10760         class-wide type whose base type is an incomplete private type, leave
10761         class-wide type unfrozen so that freeze nodes can be generated
10762         properly at a later point.
10763         (Freeze_Entity, array case): Handle case of pragma Pack and component
10764         size attributre clause for same array.
10765
10766 2007-08-14  Vincent Celier  <celier@adacore.com>
10767
10768         * prj.ads, prj.adb: Update Project Manager to new attribute names for
10769         gprbuild.
10770         Allow all valid declarations in configuration project files
10771         (Reset): Initialize all tables and hash tables in the project tree data
10772         Major update of the Project Manager and of the project aware tools,
10773         including gprmake, so that the same sources in the GNAT repository
10774         can be used by gprbuild.
10775         (Slash_Id): Change type to be Path_Name_Type
10776         (Slash): Return a Path_Name_Type instead of a File_Name_Type
10777
10778         * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
10779         gprbuild.
10780         Update Project Manager to new attribute names for ghprbuild
10781         Allow all valid declarations in configuration project files
10782         Major update of the Project Manager and of the project aware tools,
10783         including gprmake, so that the same sources in the GNAT repository
10784         can be used by gprbuild.
10785
10786         * prj-com.ads: 
10787         Major update of the Project Manager and of the project aware tools,
10788         including gprmake, so that the same sources in the GNAT repository
10789         can be used by gprbuild.
10790
10791         * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
10792         insensitive flag for attributes with optional index.
10793         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
10794         array attribute, put the index in lower case.
10795         Update Project Manager to new attribute names for ghprbuild
10796         Allow all valid declarations in configuration project files
10797         Major update of the Project Manager and of the project aware tools,
10798         including gprmake, so that the same sources in the GNAT repository
10799         can be used by gprbuild.
10800
10801         * prj-env.ads, prj-env.adb: 
10802         Major update of the Project Manager and of the project aware tools,
10803         including gprmake, so that the same sources in the GNAT repository
10804         can be used by gprbuild.
10805         (Get_Reference): Change type of parameter Path to Path_Name_Type
10806
10807         * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
10808         removing '-' from the path to start with the first character of the
10809         next directory.
10810         Major update of the Project Manager and of the project aware tools,
10811         including gprmake, so that the same sources in the GNAT repository
10812         can be used by gprbuild.
10813         Major update of the Project Manager and of the project aware tools,
10814         including gprmake, so that the same sources in the GNAT repository
10815         can be used by gprbuild.
10816
10817         * prj-nmsc.ads, prj-nmsc.adb: 
10818         Update Project Manager to new attribute names for ghprbuild
10819         Allow all valid declarations in configuration project files
10820         (Search_Directories): Detect subunits that are specified with an
10821         attribute Body in package Naming. Do not replace a source/unit in the
10822         same project when the order of the source dirs are known. Detect
10823         duplicate sources/units in the same project when the order of the
10824         source dirs are not known.
10825         (Check_Ada_Name): Allow all identifiers that are not reserved words
10826         in Ada 95.
10827         Major update of the Project Manager and of the project aware tools,
10828         including gprmake, so that the same sources in the GNAT repository
10829         can be used by gprbuild.
10830         (Look_For_Sources): If the list of sources is empty, set the object
10831         directory of non extending project to nil.
10832         Change type of path name variables to be Path_Name_Type
10833         (Locate_Directory): Make sure that on Windows '/' is converted to '\',
10834         otherwise creating missing directories will fail.
10835
10836         * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb, 
10837         prj-part.ads, prj-part.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
10842         * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
10843         insensitive flag for attributes with optional index.
10844         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
10845         array attribute, put the index in lower case.
10846         (Parse_Variable_Reference): Allow the current project name to be used in
10847         the prefix of an attribute reference.
10848
10849         * prj-util.ads, prj-util.adb
10850         (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
10851         defaulted to False. When True, always check against indexes in lower
10852         case.
10853
10854         * snames.ads, snames.h, snames.adb: 
10855         Update Project Manager to new attribute names for gprbuild
10856         Allow all valid declarations in configuration project files
10857
10858 2007-08-14  Robert Dewar  <dewar@adacore.com>
10859             Ed Schonberg  <schonberg@adacore.com>
10860
10861         * opt.ads: Warning for non-local exception propagation now off by
10862         default
10863         New switch -gnatI to disable representation clauses
10864         Implement new pragma Implicit_Packing
10865
10866         * usage.adb: 
10867         Warning for non-local exception propagation now off by default
10868         Add warning for unchecked conversion of pointers wi different
10869         conventions.
10870         New switch -gnatI to disable representation clauses
10871
10872         * usage.adb: new switch -gnatyS
10873
10874         * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
10875         note that aggregates of anonymous array types are not flagged.
10876         -gnatwc now includes membership tests optimized away
10877         -gnatw.x warnings are now off by default
10878         Added conditional compilation Appendix
10879         Add documentation of -gnatI
10880         Add documentation for new -gnatyS style check
10881         Update documentation about SAL and auto-init on Windows.
10882
10883         * gnat_rm.texi: 
10884         Add documentation for pragma Check_Name and 'Enabled attribute
10885         Document that Eliminate on dispatching operation is ignored
10886         Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
10887         Document pragma Main
10888         Document pragma Implicit_Packing
10889
10890         * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
10891         different conventions
10892         New switch -gnatI to disable representation clauses
10893
10894         * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
10895         recognized, report the invalid characters including "-gnat" instead of
10896         just the first character in the switch.
10897         New switch -gnatI to disable representation clauses
10898         Set Warn_On_Object_Renames_Function true for -gnatg
10899
10900         * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
10901         Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
10902         Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
10903         to switch -aP (add directory to project search dir).
10904
10905         * par-prag.adb: Implement new pragma Implicit_Packing
10906
10907         * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
10908         type as having a non-standard representation, to force expansion on
10909         conversion to related types.
10910         (Analyze_Pragma): Warn on misspelled pragma
10911         (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
10912         Ensure consistent use of # in error messages
10913         Implement pragma Implicit_Packing
10914
10915 2007-08-14  Olivier Hainque  <hainque@adacore.com>
10916             Eric Botcazou  <ebotcazou@adacore.com>
10917
10918         * targtyps.c (get_target_maximum_default_alignment): New function.
10919         Maximum alignment
10920         that the compiler might choose by default for a type or object.
10921         (get_target_default_allocator_alignment): New function. Alignment known
10922         to be honored by the target default allocator.
10923         (get_target_maximum_allowed_alignment): New function. Maximum alignment
10924         we might accept for any type or object on the target.
10925         (get_target_maximum_alignment): Now synonym of maximum_default_alignment
10926
10927         * gigi.h (get_target_maximum_default_alignment): Declare new function.
10928         (get_target_default_allocator_alignment): Likewise.
10929         (get_target_maximum_allowed_alignment): Likewise.
10930
10931         PR ada/19037
10932         * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
10933         result of a function call, first try to use a stabilized reference for
10934         a constant renaming too.
10935         (validate_alignment): Use target_maximum_allowed_alignment instead of
10936         MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
10937         (gnat_to_gnu_entity): Use common nodes directly.
10938         (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
10939         alignment and size for the object.
10940         (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
10941         and N_Procedure_Call_Statement.
10942         (takes_address): Rename to lvalue_required_p, add third parameter
10943         'aliased' and adjust recursive calls.
10944         <N_Indexed_Component>: Update 'aliased' from the array type.
10945         <N_Selected_Component>: New case.
10946         <N_Object_Renaming_Declaration>: New Likewise.
10947         (Identifier_to_gnu): Adjust for above changes.
10948         (maybe_stabilize_reference) <CONST_DECL>: New case.
10949
10950         * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
10951         between type variants.
10952         (build_simple_component_ref): Likewise.
10953         (build_call_alloc_dealloc): Use target_default_allocator_alignment
10954         instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
10955         aligning type circuitry for allocations from the default storage pool.
10956         (build_allocator): Likewise.
10957         (build_simple_component_ref): Manually fold the reference for a
10958         constructor if the record type contains a template.
10959
10960         * utils.c (value_zerop): Delete.
10961         (gnat_init_decl_processing): Emit debug info for common types.
10962         (rest_of_record_type_compilation): If a union contains a field
10963         with a non-constant qualifier, treat it as variable-sized.
10964         (finish_record_type): Give the stub TYPE_DECL a name.
10965         (rest_of_record_type_compilation): Likewise.
10966         (convert) <CONSTRUCTOR>: New case.  Build a new constructor if
10967         types are equivalent array types.
10968         (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
10969         even if the type is not passed by reference.
10970         (static_ctors, static_dtors): Delete.
10971         (end_subprog_body): Do not record constructors and destructors.
10972         (build_global_cdtor): Delete.
10973         (gnat_write_global_declarations): Do not call build_global_cdtor.
10974
10975         * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
10976         -fRTS=rtp is specified.
10977         If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
10978         specified.
10979
10980         * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
10981         of the personality function with SJLJ exceptions.
10982
10983         * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
10984         the name of the personality function with SJLJ exceptions.
10985
10986 2007-08-14  Robert Dewar  <dewar@adacore.com>
10987             Ed Schonberg  <schonberg@adacore.com>
10988
10989         * par.ads, par.adb: Improve handling of extra right parens.
10990         (Par): Remove flag From_Limited_With_Clause.
10991
10992         * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
10993         Improve handling of extra right parens.
10994
10995 2007-08-14  Robert Dewar  <dewar@adacore.com>
10996
10997         * par-tchk.adb (TF_Semicolon): Improve error recovery
10998
10999 2007-08-14  Robert Dewar  <dewar@adacore.com>
11000             Ed Schonberg  <schonberg@adacore.com>
11001
11002         * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
11003         enumeration type, mark all literals as referenced.
11004         (Eval_Attribute, case 'Image): If the argument is an enumeration
11005         literal and names are available, constant-fold but mark nevertheless as
11006         non-static.
11007         Clean up function names.
11008         (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
11009         comment.
11010         (Requires_Simple_Name_Prefix): Removed.
11011
11012 2007-08-14  Robert Dewar  <dewar@adacore.com>
11013             Ed Schonberg  <schonberg@adacore.com>
11014
11015         * sem_ch11.adb: Improved warnings for unused variables
11016
11017         * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
11018         is a synchronized interface, the derived type is limited.
11019         (Analyze_Object_Declaration): Mark the potential coextensions in the
11020         definition and expression of an object declaration node.
11021         (Build_Derived_Type): For the completion of a private type declaration
11022         with a derived type declaration, chain the parent type's representation
11023         items to the last representation item of the derived type (not the
11024         first one) if they are not present already.
11025         (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
11026         object declaration of forward references to tags.
11027         (Access_Subprogram_Declaration): In Ada2005, anonymous access to
11028         subprogram types can appear as access discriminants of synchronized
11029         types.
11030         (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
11031         given in prefixed form as a selected component.
11032         (Process_Discriminants): If not all discriminants have defaults, place
11033         error message on a default that is present.
11034         (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
11035         extend a synchronized tagged type.
11036         Improved warnings for unused variables
11037         (Is_Visible_Component): Fix a visibility hole on a component inherited
11038         by a private extension when parent is itself declared as a private
11039         extension, and the derivation is in a child unit.
11040         (Find_Hidden_Interface): Move spec from the package body.
11041
11042 2007-08-14  Robert Dewar  <dewar@adacore.com>
11043             Ed Schonberg  <schonberg@adacore.com>
11044
11045         * sem_ch5.adb: Improve warnings on redundant assignments
11046
11047         * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
11048         parameter
11049         (Is_Synchronized_Tagged_Type): New subprogram that returns true
11050         in case of synchronized tagged types (AARM 3.9.4 (6/2)).
11051         (Safe_To_Capture_Value): Can now return True for constants, even if Cond
11052         is set to False. Improves handling of Known_[Not_]Null.
11053         (Wrong_Type): Special case address arithmetic attempt
11054         (Collect_Abstract_Interfaces): Add new formal to allow collecting
11055         abstract interfaces just using the partial view of private types.
11056         (Has_Abstract_Interfaces): Add new formal to allow checking types
11057         covering interfaces using the partial view of private types.
11058         (Is_Fully_Initialized_Type): Special VM case for uTag component. This
11059         component still needs to be defined in this case, but is never
11060         initialized as VMs are using other dispatching mechanisms.
11061         (Abstract_Interface_List): For a protected type, use base type to get
11062         proper declaration.
11063         Improve warnings on redundant assignments
11064         (Is_Variable): Handle properly an implicit dereference of a prefixed
11065         function call.
11066         (Build_Actual_Subtype): If this is an actual subtype for an
11067         unconstrained formal parameter, use the sloc of the body for the new
11068         declaration, to prevent anomalises in the debugger.
11069
11070 2007-08-14  Robert Dewar  <dewar@adacore.com>
11071
11072         * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
11073         dispatching operation
11074
11075 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11076             Gary Dismukes  <dismukes@adacore.com>
11077
11078         * exp_aggr.ads, 
11079         exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
11080         expanded aggregate code before allocator, and ahead of declaration for
11081         temporary, to prevent access before elaboration when the allocator is
11082         an actual for an access parameter.
11083         (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
11084         the TSD and the table of interfaces.
11085         (Convert_To_Assignments): Augment the test for delaying aggregate
11086         expansion for limited return statements to include the case of extended
11087         returns, to prevent creation of an unwanted transient scope.
11088         (Is_Static_Dispatch_Table_Aggregate): New subprogram.
11089         (Expand_Array_Aggregate): Handle aggregates associated with
11090         statically allocated dispatch tables.
11091         (Expand_Record_Aggregate): Handle aggregates associated with
11092         statically allocated dispatch tables.
11093         (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
11094         of anonymous access type.
11095
11096 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11097
11098         * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
11099         is a variable that renames a slice, use the variable itself in the
11100         expannsion when the renamed expression itself may be modified between
11101         the declaration of the renaming and the array assignment.
11102
11103 2007-08-14  Jerome Guitton  <guitton@adacore.com>
11104
11105         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb, 
11106         s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb, 
11107         s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
11108         New functions; dummy implementations.
11109
11110         * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
11111         functions, used to implement the multi-tasks mode routines on VxWorks.
11112
11113         * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
11114         New functions, thin
11115         binding to the VxWorks routines which have changed between VxWorks 5
11116         and 6.
11117         (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
11118         which are not callable from a RTP.
11119
11120         * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
11121         implemented for the multi-tasks mode on VxWorks 5 and 6.
11122
11123         * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
11124
11125         * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
11126         functions.
11127
11128 2007-08-14  Vincent Celier  <celier@adacore.com>
11129
11130         * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb, 
11131         gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
11132         mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb, 
11133         mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb, 
11134         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, 
11135         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
11136         mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
11137         procedure.
11138         (Major_Id_Name): New function.
11139         mlib-tgt.ads/mlib.tgt.adb:
11140         (Library_Major_Minor_Id_Supported): New function, default returns True
11141         Most mlib-tgt-*.adb that support shared libraries and symbolic links:
11142         (Build_Dynamic_Library): Add support for major/minor ids for shared libs
11143         Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
11144         Implementation of Library_Major_Minor_Id_Supported returns False
11145         clean.adb:
11146         (Clean_Library_Directory): If major/minor ids are supported, clean all
11147         library files.
11148         Major update of the Project Manager and of the project aware tools,
11149         including gprmake, so that the same sources in the GNAT repository
11150         can be used by gprbuild.
11151
11152 2007-08-14  Olivier Hainque  <hainque@adacore.com>
11153
11154         * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
11155         (GCC_ZCX_Support): Switch to True.
11156         
11157         * s-intman-solaris.adb (Notify_Exception): Call
11158         Adjust_Context_For_Raise before raising, as expected for signal
11159         handlers in general.
11160         
11161         * s-intman-posix.adb (Notify_Exception): Remove declaration of
11162         Adjust_Context_For_Raise, moved to the spec of this unit to be visible
11163         to other implementation bodies.
11164         
11165         * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
11166         be visible by multiple implementation bodies.
11167         
11168         * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
11169         only for conditions coming from hardware.
11170         [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
11171         adjustments to signal context prior to exception raise from signal
11172         handler.
11173         (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
11174         mode.
11175         Solaris section: (__gnat_adjust_context_for_raise): New function.
11176         Implementation of the machine context adjustments to perform prior to
11177         raise from a signal handler. Version for both sparc and x86.
11178         (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
11179         (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
11180         prior to raising as expected for any handler, before possible nested
11181         faults to make sure all the contexts in a chain have been adjusted by
11182         the time we propagate.
11183
11184 2007-08-14  Pascal Obry  <obry@adacore.com>
11185
11186         * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
11187         (SYSTEM_INFO): New record.
11188         (SetThreadIdealProcessor): New imported routine needed for supporting
11189         task_info pragma on Windows.
11190
11191         * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
11192         info can be applied to the current host.
11193         (Create_Task): Set the ideal processor if information is present.
11194
11195         * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
11196         a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
11197
11198 2007-08-14  Olivier Hainque  <hainque@adacore.com>
11199
11200         * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
11201         stack size and initial stack pointer value for a given task.
11202         (Enter_Task): Get the stack attributes of the task we are entering and
11203         let the stack checking engine know about them.
11204
11205         * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
11206         Let the stack-checking engine know about the initial sp value and stack
11207         size associated with the current task.
11208         (Set_Stack_Info): If a stack base has been notified for the current
11209         task, honor it. Fallback to the previous less accurate method otherwise.
11210
11211         * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
11212
11213 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11214
11215         * sem_ch10.adb: Create a limited view of an incomplete type, to make
11216         treatment of limited views uniform for all visible declarations in a
11217         limited_withed package.
11218         Set flag indicating that a subprogram body for a child unit has a
11219         generated spec.
11220         (Analyze_Compilation_Unit): If unit is a subprogram body that has no
11221         separate declaration, remove the unit name from visibility after
11222         compilation, so that environment is clean for subsequent compilations.
11223         (Install_Limited_Context_Clauses): Do not install a
11224         limited_private_with_clause unless the current unit is a body or a
11225         private child unit.
11226         (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
11227         in the same fashion.
11228         (Install_Limited_Withed_Unit): Do not install a limited with clause if
11229         it applies to the declaration of the current package body.
11230         (Remove_Private_With_Clauses): If there is a regular with_clause for
11231         the unit, delete Private_With_Clause from context, to prevent improper
11232         hiding when processing subsequent nested packages and instantiations.
11233
11234 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
11235
11236         * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
11237         dir/file, device:/dir/file, and device:drive_letter:/dir/file as
11238         representing absolute path names.
11239         __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
11240
11241         * cstreams.c (__gnat_full_name for VxWorks): Use
11242         __gnat_is_absolute_path to detect whether we need to add the current
11243         directory to normalize the path.
11244
11245 2007-08-14  Javier Miranda  <miranda@adacore.com>
11246
11247         * a-tags.ads, 
11248         a-tags.adb (Displace): Associate a message with the raised CE
11249         exception.
11250         (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
11251         To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
11252         To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
11253         spec.
11254         (Default_Prim_Op_Count): Removed.
11255         (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
11256         Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
11257         Remove pragma Inline_Always.
11258
11259         * rtsfind.ads (Default_Prim_Op_Count): Removed
11260         (Max_Predef_Prims): New entity
11261         (RE_Expanded_Name): Removed
11262         (RE_HT_Link): Removed
11263         (RE_Iface_Tag): Remmoved
11264         (RE_Ifaces_Table): Removed
11265         (RE_Interfaces_Array): Removed
11266         (RE_Interface_Data_Element): Removed
11267         (RE_Nb_Ifaces): Removed
11268         (RE_RC_Offset): Removed
11269         (RE_Static_Offset_To_Top): Removed
11270
11271         * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
11272         formal.
11273         (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
11274         Prim_Op_Count by Max_Predef_Prims.
11275
11276 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11277             Vincent Celier  <celier@adacore.com>
11278
11279         * binde.adb (Elab_All_Links): Remove unnecessary call to
11280         Generic_Separately_Compiled (if a unit satisfies this predicate, there
11281         won't be an associated Afile).
11282         (Elab_All_Links): Fail if a referenced unit cannot be found
11283
11284         * bindgen.adb: 
11285         Fix comments in bindgen regarding consistency checks done in Bcheck:
11286         the checks are made across units within a partition, not across several
11287         partitions.
11288         Fix generation of C binder file for VxWorks.
11289
11290         * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
11291         Generic_May_Lack_ALI, more descriptive of the current use of the
11292         predicate, and update documentation.
11293
11294         * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
11295         reorganization and documentation update for the case of predefined
11296         library generics (for which we do not reference an Afile).
11297
11298 2007-08-14  Robert Dewar  <dewar@adacore.com>
11299
11300         * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
11301         s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
11302         s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
11303         s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
11304         s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
11305         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
11306         s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
11307         s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
11308         exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
11309         s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
11310         s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
11311         a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
11312         s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
11313         g-altcon.adb: Minor reformatting
11314
11315         ada-tree.h: Delete empty line.
11316
11317         ali.ads: Minor reformatting
11318         Clarification of comments.
11319         Minor spelling correction
11320
11321         * exp_dbug.adb: Add Warnings Off to suppress new warning
11322
11323         * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
11324         formal
11325
11326         * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
11327         value
11328
11329         * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
11330
11331         * a-textio.ads: Reorder the standard input/output/error declarations
11332         for consistency.
11333
11334         * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
11335
11336         * par-ch2.adb: Recognize RM specially in errout
11337         Change 'R'M to RM in all error messages
11338
11339         * scng.adb: Recognize RM specially in errout
11340
11341         * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
11342         N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
11343
11344         * s-direio.adb: Add missing routine header box.
11345
11346         * sem_attr.ads: Add ??? comments
11347
11348         * sem_eval.adb: Recognize RM specially in errout
11349         Change 'R'M to RM in all error messages
11350
11351         * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
11352
11353         * s-tasinf.ads: Fix minor comment typo.
11354
11355         * a-cihama.adb: Minor comment addition
11356
11357         * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
11358         formal
11359
11360         * s-tasinf-tru64.ads: Fix minor comment typo.
11361
11362         * itypes.ads: Comment update.
11363
11364         * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
11365         anymore.
11366
11367         * argv.c: Added protection against null gnat_argv and gnat_envp.
11368
11369         * bcheck.adb (Check_Consistency): Use correct markup character ({) in
11370         warning message when Tolerate_Consistency_Errors is True.
11371
11372         * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
11373         Any_Id, as this subprogram is only applicable to *type* entities (it
11374         sets RM_Size). Instead initialize just Esize and Alignment.
11375
11376 2007-08-14  Bob Duff  <duff@adacore.com>
11377
11378         * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads, 
11379         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
11380         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads, 
11381         a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
11382         a-coorse.ads (Next): Applied pragma Inline.
11383         Make all Containers packages Remote_Types (unless they are already
11384         Pure).
11385         (Previous): applied pragma Inline
11386         (Elements_Type): is now a record instead of an array
11387
11388 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11389
11390         * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
11391         of Set_Item.
11392         (Set_Item): When the new item is an element of the currently allocated
11393         table passed by reference, save a copy on the stack if we're going
11394         to reallocate. Also, in Table.Set_Item, make sure we test the proper
11395         variable to determine whether to call Set_Last.
11396
11397         * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
11398         symbols-vms.adb, symbols-processing-vms-alpha.adb,
11399         symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
11400         some occurrences of the pattern
11401            T.Increment_Last;
11402            T.Table (T.Last) := Value;
11403         with a cleaner call to
11404            T.Append (Value);
11405
11406 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11407             Gary Dismukes  <dismukes@adacore.com>
11408             Thomas Quinot  <quinot@adacore.com>
11409
11410         * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
11411         derived type with interface progenitors use the analyzed formal as the
11412         parent of the actual, to create renamings for all the inherited
11413         operations in Derive_Subprograms.
11414         (Collect_Previous_Instances): new procedure within of
11415         Load_Parent_Of_Generic, to instantiate all bodies in the compilation
11416         unit being loaded, to ensure that the generation of global symbols is
11417         consistent in different compilation modes.
11418         (Is_Tagged_Ancestor): New function testing the ancestor relation that
11419         takes progenitor types into account.
11420         (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
11421         traversing over the primitives of the formal and actual types to locate
11422         any abstract subprograms of the actual type that correspond to a
11423         nonabstract subprogram of the formal type's ancestor type(s), and issue
11424         an error if such is found.
11425         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
11426         Instantiate_Package_Body, Instantiate_Subprogram_Body):
11427         Remove bogus guard around calls to Inherit_Context.
11428         (Reset_Entity): If the entity is the selector of a selected component
11429         that denotes a named number, propagate constant-folding to the generic
11430         template only if the named number is global to the generic unit.
11431         (Set_Instance_Env): Only reset the compilation switches when compiling
11432         a predefined or internal unit.
11433
11434 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11435
11436         * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
11437         parameter to determine whether operation applies to the prefix.
11438         (Complete_Object_Operation): If actual has an access type and
11439         controlling formal is not an in_parameter, reject the actual if it is
11440         an access_to_constant type.
11441         (Try_Primitive_Operation): If the type of the prefix is a formal tagged
11442         type, the candidate operations are found in the scope of declaration of
11443         the type, because the type has no primitive subprograms.
11444         (Analyze_Selected_Component): If prefix is class-wide, and root type is
11445         a private extension, only examine visible components before trying to
11446         analyze as a prefixed call.
11447         Change Entity_List to Type_To_Use, for better readability.
11448         (Has_Fixed_Op): Use base type when checking whether the type of an
11449         operator has a user-defined multiplication/division
11450         (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
11451         user-defined operators are available for fixed-point types.
11452
11453 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11454             Ed Schonberg  <schonberg@adacore.com>
11455
11456         * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
11457         formal At_Any_Place indicating, when True, that we want to test for
11458         availability of the stream attribute at any place (as opposed to the
11459         current visibility context only).
11460         (Missing_Read_Write_Attributes): A stream attribute is missing for the
11461         purpose of enforcing E.2.2(8) only if it is not available at any place.
11462         Take into account the Ada2005 pragma Has_Preelaborable_Initialization
11463         when checking the legality of an extension aggregate in a preelaborable
11464         package. Treat the literal null as a valid default expression in a
11465         component declaration for a type with preelaborable initialization.
11466         A limited interface is a legal progenitor for the designated type of a
11467         remote access to class-wide type.
11468
11469 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11470             Ed Schonberg  <schonberg@adacore.com>
11471
11472         * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
11473         reference): Use correct entity as denoted entity for the selector of
11474         the rewritten node.
11475         (Find_Direct_Name): Add comment about Generate_Reference incorrectly
11476         setting the Referenced_As_LHS flag for entities that are implicitly
11477         dereferenced.
11478         (Find_Type): If the type is an internally generated incomplete type,
11479         mark the full view as referenced, to prevent spurious warnings.
11480         (Find_Selected_Component, Has_Components): Handle properly non-limited
11481         views that are themselves incomplete types.
11482         Handle interfaces visible through limited-with clauses.
11483         (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
11484         subprogram generic actual for which we have generated a renaming.
11485         Warn when the renaming introduces a homonym of
11486         the renamed entity, and the renamed entity is directly visible.
11487
11488 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11489             Hristian Kirtchev  <kirtchev@adacore.com>
11490
11491         * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
11492         appear in the subtree to the current allocator if it is not a static
11493         coextension.
11494         (Resolve_Allocator): Perform cleanup if resolution has determined that
11495         the allocator is not a coextension.
11496         (Resolve): Skip an interpretation hidden by an abstract operator only
11497         when the type of the interpretation matches that of the context.
11498         (Resolve): When looping through all possible interpretations of a node,
11499         do not consider those that are hidden by abstract operators.
11500         (Resolve_Actuals): When verifying that an access to class-wide object
11501         is an actual  for a controlling formal, ignore anonymous access to
11502         subprograms whose return type is an access to class_wide type.
11503         (Resolve_Slice): If the prefix of the slice is a selected component
11504         whose type depends on discriminants, build its actual subtype before
11505         applying range checks on the bounds of the slice.
11506         (Valid_Conversion): In an instance or inlined body, compare root types,
11507         to prevent anomalies between private and public views.
11508         (Resolve): Improve error message for ambiguous fixed multiplication
11509         expressions that involve universal_fixed multiplying operations.
11510
11511 2007-08-14  Javier Miranda  <miranda@adacore.com>
11512             Hristian Kirtchev  <kirtchev@adacore.com>
11513
11514         * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
11515         location to allow the correct generation of errors in case of
11516         restrictions applied to the expanded code.
11517         (Expand_Entry_Barrier): Remove all generated renamings for a barrier
11518         function if the condition does not reference them.
11519         (Expand_Entry_Body_Declarations): Mark the index constant as having a
11520         valid value.
11521
11522 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11523             Pablo Oliveira  <oliveira@adacore.com>
11524
11525         * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
11526         typecode parameters for a union (in a variant record), remove
11527         extraneous layer of Any wrapping for member label.
11528         (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
11529         elabration statements, register the package with the name server
11530         at the beginning, not at the end, of the elaboration statements so
11531         that they can create remote access to subprogram values that designate
11532         remote subprograms from the package.
11533
11534 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
11535
11536         * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
11537         values to compute the number of seconds since the Unix Epoc in order to
11538         account for Daylight Savings Time. Perform special processing for dates
11539         that are earlier than the Unix Epoc to obtain a negative number.
11540
11541 2007-08-14  Emmanuel Briot  <briot@adacore.com>
11542
11543         * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
11544         switches.
11545
11546 2007-08-14  Eric Botcazou  <ebotcazou@adacore.com>
11547
11548         * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
11549         binder-generated file is not in Ada.
11550         Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
11551         recorded in the ALI file.
11552         Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
11553
11554 2007-08-14  Vincent Celier  <celier@adacore.com>
11555
11556         * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
11557         (Output_Source): Do nothing if parameter is No_Sdep_Id
11558
11559         * make.adb (Gnatmake): Do not rebuild an archive simply because a
11560         shared library it imports has a later time stamp.
11561         (Check): Resolve the symbolic links in the path name of the object
11562         directory.
11563         Check that the ALI file is in the correct object directory
11564         Check if a file name does not correspond to the mapping of units
11565         to file names.
11566         (Display_Version): New procedure
11567         (Initialize): Process switches --version and --help
11568         Use type Path_Name_Type for path name
11569
11570 2007-08-14  Paul Hilfinger  <hilfinger@adacore.com>
11571
11572         * impunit.adb: Re-organize System.Random_Numbers and
11573         GNAT.Random_Numbers and add to builds.
11574
11575         * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
11576
11577         * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
11578
11579         * a-assert.ads, a-assert.adb: New files.
11580
11581 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
11582
11583         * layout.adb (Layout_Type): In the case of access-to-subprogram types,
11584         if AAMP_On_Target is True, then the size of the type encompasses two
11585         addresses (a static link and a subprogram address), except in the case
11586         of library-level access types.
11587
11588 2007-08-14  Vincent Celier  <celier@adacore.com>
11589
11590         * output.ads, output.adb (Write_Eol): Remove trailing spaces before
11591         writing the line.
11592         (Write_Eol_Keep_Blanks): New procedure to write a line, including
11593         possible trailing spaces.
11594         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
11595
11596 2007-08-14  Javier Miranda  <miranda@adacore.com>
11597
11598         * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
11599         null-excluding access types.
11600
11601 2007-08-14  Javier Miranda  <miranda@adacore.com>
11602
11603         * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
11604         that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
11605         of private types add missing check on matching interfaces in the
11606         partial and full declarations.
11607         (Analyze_Protected_Type): Code cleanup.
11608         (Analyze_Task_Type): Code cleanup.
11609
11610 2007-08-14  Javier Miranda  <miranda@adacore.com>
11611
11612         * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
11613         generated interface thunk.
11614
11615 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11616
11617         * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
11618         obsolescent warning on application of 'Class to an incomplete type.
11619
11620         * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
11621         prevent obsolescent warning on application of 'Class to an incomplete
11622         type.
11623
11624 2007-08-14  Pascal Obry  <obry@adacore.com>
11625
11626         * s-fileio.adb (Is_Open): Add check for usability of the underlying
11627         file stream.
11628
11629 2007-08-14  Cyrille Comar  <comar@adacore.com>
11630
11631         * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
11632         since it is potentially used in cases implying double finalization of
11633         the same object.
11634
11635 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
11636
11637         * s-tasini.adb (Get_Stack_Info): Move this function to
11638         System.Soft_Links.Tasking because it is common to the full and the
11639         restricted run times.
11640         (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
11641         in SSL.Tasking.Init_Tasking_Soft_Links.
11642
11643         * s-solita.adb (Get_Stack_Info): Function moved from
11644         System.Tasking.Initialization because it is common to the full and the
11645         restricted run times.
11646         (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
11647
11648 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
11649
11650         * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
11651         s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
11652         (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
11653         parameter.
11654
11655         * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
11656         guard to 12K.
11657
11658 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
11659
11660         * s-veboop.adb (SU): New named number initialized to
11661         System.Storage_Unit.
11662         (True_Val): The initialization expression is revised to use SU (=
11663         Storage_Unit) rather than assuming 8 for the component size of an
11664         unpacked Boolean array.
11665
11666 2007-08-14  Tristan Gingold  <gingold@adacore.com>
11667
11668         * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
11669
11670         * tb-ivms.c: New file.
11671
11672         * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
11673
11674 2007-08-14  Geert Bosch  <bosch@adacore.com>
11675
11676         * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
11677         s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
11678         Add required linker pragmas for automatically linking with the gnalasup
11679         linear algebra support library, and the systems math library.
11680         Rename cdot to cdotu and zdot to zdotu.
11681         Update header comment to describe purpose of package.
11682
11683 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11684
11685         * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
11686         an explicitly specified Associated_Final_Chain, use that list.
11687         (Expand_N_Package_Body): Build dispatch tables of library level tagged
11688         types.
11689         (Expand_N_Package_Declaration): Build dispatch tables of library level
11690         tagged types. Minor code cleanup.
11691
11692 2007-08-14  Vincent Celier  <celier@adacore.com>
11693
11694         * gnatchop.adb (Terminate_Program): Remove exception and use
11695         Types.Terminate_Program instead.
11696
11697         * osint.ads, osint.adb (Current_Exit_Status): New global variable
11698         (Find_Program_Name): Added protection against empty name.
11699         (OS_Exit_Through_Exception): New procedure
11700
11701         * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
11702         (OS_Exit_Default): New procedure that contains the previous
11703         implementation of procedure OS_Exit.
11704         (Final_Value): Remove obsolete Interix stuff.
11705
11706 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11707
11708         * g-socket.ads: Reorganize example code so that it also works on
11709         Windows XP.
11710
11711 2007-08-14  Tristan Gingold  <gingold@adacore.com>
11712
11713         * g-trasym.ads: AIX now supports symbolic backtraces.
11714
11715 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11716
11717         * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
11718         units being loaded to detect circularities. A circularity may be
11719         present even if the current chain of pending units to load starts from
11720         a limited_with_clause.
11721
11722         * lib-load.ads: Change profile of Load_Unit to use a with_clause
11723         rather than a boolean flag, in order to detect circularities in
11724         with_clauses.
11725
11726         * par-load.adb: Use current with_clause in calls to Load_Unit, rather
11727         than propagating the From_Limited_With flag, in order to handle
11728         properly circularities involving with_clauses.
11729
11730 2007-08-14  Nicolas Setton  <setton@adacore.com>
11731
11732         * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
11733         warnings.
11734
11735 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
11736
11737         * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
11738         to build for libgnala.
11739         libgnat: Add rules to build libgnala.a
11740         (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
11741         target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
11742         Add s-osinte-vxworks-kernel.adb to the target pairs of the
11743         kernel run-time lib for VxWorks 6, which would provide a different
11744         implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
11745         x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
11746         running ZCX by default.
11747         Add g-sttsne-locking to LynxOS version.
11748         Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
11749         On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
11750
11751         * system-darwin-x86.ads: New file.
11752
11753         * Make-lang.in: Delete files before copying onto them, so if they are
11754         read-only, the copy won't fail.
11755         Update dependencies
11756
11757 2007-08-14  Pascal Obry  <obry@adacore.com>
11758
11759         * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
11760         naming scheme.
11761
11762 2007-08-14  Vincent Celier  <celier@adacore.com>
11763
11764         * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
11765         (Gcc): Initialize Gcc_Name at the first call
11766
11767 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11768
11769         * sem_ch7.adb (Analyze_Package_Specification): Do not install private
11770         with_clauses of the enclosing unit when analyzing the package
11771         specification of a nested instance.
11772
11773 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
11774
11775         * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
11776         (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
11777         Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
11778         layout of N_Allocator.
11779
11780 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11781
11782         * rtsfind.adb (Check_RPC): Add PCS version check.
11783
11784         * gnatvsn.ads, gnatvsn.adb: Add PCS version.
11785         (Gnat_Free_Software): New function.
11786
11787         * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
11788         the PCS_Version value from s-parint, used to check that it is consistent
11789         with what exp_dist expects.
11790
11791         * s-parint.ads (PCS_Version): New entity for checking consistency
11792         between exp_dist and PCS.
11793
11794         * gen-soccon.c: (SO_REUSEPORT): New constant.
11795
11796 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
11797
11798         * a-calfor.adb (Image (Duration; Boolean)): Change type of local
11799         variable Sub_Second to Duration in order to accomodate a larger range
11800         of arithmetic operations.
11801
11802 2007-08-14  Bob Duff  <duff@adacore.com>
11803
11804         * g-sttsne-locking.ads: Move comments from spec to body.
11805         * g-sttsne-locking.adb: Move comments from spec to body.
11806         * g-sttsne-vxworks.ads: Removed.
11807         * g-sttsne-vxworks.adb: Removed.
11808
11809 2007-08-11  Ian Lance Taylor  <iant@google.com>
11810
11811         * misc.c (gnat_get_alias_set): Change return type to
11812         alias_set_type.
11813
11814 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11815
11816         * decl.c, utils2.c: Fix whitespace in last change.
11817
11818 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11819
11820         * decl.c (compare_field_bitpos): Constify.
11821         * utils2.c (compare_elmt_bitpos): Likewise.
11822
11823 2007-07-27  Aurelien Jarno  <aurelien@aurel32.net>
11824
11825         * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by 
11826         anonymous access type.
11827         (pthread_sigmask): Now take an access sigset_t.
11828
11829 2007-07-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
11830
11831         * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
11832         
11833 2007-06-21  Eric Botcazou  <ebotcazou@adacore.com>
11834
11835         PR tree-optimization/25737
11836         * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
11837
11838 2007-06-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11839
11840         * trans.c (Attribute_to_gnu): When subtracting an
11841         offset from a pointer, use POINTER_PLUS_EXPR with
11842         NEGATE_EXPR instead of MINUS_EXPR.
11843         (gnat_to_gnu): Likewise.
11844         * utils.c (convert): When converting between
11845         thin pointers, use POINTER_PLUS_EXPR and sizetype
11846         for the offset.
11847         * utils2.c (known_alignment): POINTER_PLUS_EXPR
11848         have the same semantics as PLUS_EXPR for alignment.
11849         (build_binary_op): Add support for the semantics of
11850         POINTER_PLUS_EXPR's operands.
11851         When adding an offset to a pointer, use POINTER_PLUS_EXPR.
11852
11853 2007-06-11  Rafael Ávila de Espíndola  <espindola@google.com>
11854
11855         * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
11856         of get_signed_or_unsigned_type.
11857         * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
11858
11859 2007-06-11  Bob Duff  <duff@adacore.com>
11860             Thomas Quinot  <quinot@adacore.com>
11861
11862         * g-stsifd-sockets.adb (Create): Work around strange behavior of
11863         'bind' on windows that causes 'connect' to fail intermittently, by
11864         retrying the 'bind'.
11865         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11866
11867 2007-06-10  Duncan Sands  <baldrick@free.fr>
11868
11869         * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
11870         than to void, for the fields when making a new fat pointer type.
11871         (gnat_substitute_in_type): Now substitute_in_type.
11872         * gigi.h (gnat_substitute_in_type): Likewise.  Adjust recursive calls.
11873         * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
11874         * utils.c (update_pointer_to): Update fat pointers by updating the
11875         dummy node pointers used for the fields.
11876
11877 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11878             Bob Duff  <duff@adacore.com>
11879
11880         * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
11881         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads, 
11882         g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads:  Add new
11883         constant Thread_Blocking_IO, always True by default, set False
11884         on a per-runtime basis.
11885         (Need_Netdb_Buffer): New constant.
11886
11887         * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
11888         g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
11889         files.
11890
11891         * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
11892         g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
11893         Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
11894         child package Task_Safe_NetDB
11895         (Host_Error_Messages): Add stub body.
11896         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11897
11898         * g-soccon-mingw.ads: Add Windows-specific constants.
11899         (Need_Netdb_Buffer): New constant.
11900         (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
11901         wrapper and import inet_addr(3) from the standard sockets library
11902         directly instead.
11903         (In_Addr): Add alignment clause.
11904         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11905
11906 2007-06-06  Robert Dewar  <dewar@adacore.com>
11907
11908         * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
11909         s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
11910         s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
11911         s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
11912         s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
11913         s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
11914         a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
11915         a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
11916         a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
11917         g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
11918         g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
11919         i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
11920         s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
11921         s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
11922         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
11923         s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
11924         s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
11925         s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
11926         s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
11927         s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
11928         s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
11929         s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
11930         s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
11931         s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
11932         s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
11933         s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
11934         s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
11935         s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
11936         s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
11937         s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
11938         s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
11939         a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
11940         Unchecked_* by Ada.Unchecked_*
11941
11942 2007-06-06  Robert Dewar  <dewar@adacore.com>
11943
11944         * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
11945         s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
11946         g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
11947         output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
11948         g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
11949         a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
11950
11951         * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
11952         s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
11953         s-tasloc.adb, s-tasloc.ads: New files.
11954
11955 2007-06-06  Bob Duff  <duff@adacore.com>
11956
11957         * g-expect-vms.adb: 
11958         (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
11959         * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
11960         (Send_Signal, Close): Raise Invalid_Process if the process id is
11961         invalid.
11962         (Pattern_Matcher_Access): Is now a general access type to be able to
11963         use aliased string.
11964
11965 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11966             Arnaud Charlet  <charlet@adacore.com>
11967
11968         * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
11969         (SIGEMT is now used instead of SIGTERM on AIX).
11970
11971         * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
11972         (Time_Slice_Supported): Set to True.
11973         Use SIGEMT instead of SIGTERM as SIGADAABORT.
11974
11975 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
11976
11977         * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
11978         (Time, Time)): Use To_Relative_Time rather than manual calculation to
11979         express the bounds of Duration as Time. Raise Time_Error when the
11980         result is greater or equal to the higher bound of Duration (on the
11981         margin case).
11982         ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
11983         Ada_High_And_Leaps.
11984         ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
11985         Ada_High_And_Leaps.
11986         ("-" (Time, Time)): Reorder code.
11987         (All_Leap_Seconds): Removed.
11988         (Arithmetic_Operations.Add): Remove sign related kludge.
11989         (Arithmetic_Operations.Difference): Control the leaps seconds processing
11990         with flag Leap_Support.
11991         (Arithmetic_Operations.Subtract): Remove sign related kludge.
11992         (Check_Within_Time_Bounds): New procedure.
11993         (Clock): Control the leap seconds processing with flag Leap_Support.
11994         (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
11995         (Formatting_Operations.Split): Control the leap seconds processing with
11996         flag Leap_Support.
11997         (Formatting_Operations.Time_Of): Control the leaps seconds processing
11998         with flag Leap_Support. Adjust the year, month and day (if applicable)
11999         when the value of day seconds designates a new day.
12000         (Split): Use parameter associations for better readability. Integrate
12001         flag Is_Ada_05.
12002         (Time_Of): Use parameter associations for better readability. Integrate
12003         flag Is_Ada_05.
12004
12005         * a-calfor.adb (Split): Use parameter associations for better
12006         readability. Integrate flag Is_Ada_05.
12007         (Time_Of): Remove flag Leap_Checks. Use parameter associations for
12008         better readability. Integrate flag Is_Ada_05.
12009
12010 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12011
12012         * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb, 
12013         s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb, 
12014         s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb, 
12015         s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads, 
12016         s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb, 
12017         s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb, 
12018         s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads, 
12019         s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads, 
12020         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads, 
12021         s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
12022         s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
12023         time when entering this routine to detect a backward clock setting
12024         (manual setting or DST adjustment), to avoid waiting for a longer delay
12025         than needed.
12026         (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
12027         Remove handling of deferred priority change, and replace by setting the
12028         task priority directly, as required by AI-188.
12029         Update comments.
12030         (Max_Task_Image_Length): New constant.
12031         Replace Warnings (Off) by Unreferenced pragma, cleaner.
12032         (Dynamic_Priority_Support): Removed, no longer needed.
12033         (Poll_Base_Priority_Change): Ditto.
12034         (Set_Ceiling): Add this procedure to change the ceiling priority
12035         associated to a lock. This is a dummy implementation because dynamic
12036         priority ceilings are not supported by the underlying system.
12037
12038         * a-dynpri.adb (Set_Priority): Take into account case where Target is
12039         accepting a RV with its priority boosted.
12040         Remove handling of deferred priority change, and replace by setting the
12041         task priority directly, as required by AI-188.
12042
12043         * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
12044         Succeeded = True.
12045         Remove handling of deferred priority change, and replace by setting the
12046         task priority directly, as required by AI-188.
12047         (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
12048         of Self_Id earlier.
12049
12050         * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
12051         (Poll_Base_Priority_Change): Removed.
12052         Code clean up: use SSL.Current_Target_Exception.
12053
12054         * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
12055         to run as this is a potentially dispatching point.
12056         (Call_Synchronous): Use Local_Defer_Abort.
12057         (Callable): Relax assertion.
12058         (Selective_Wait): Relax assertion in case abort is not allowed.
12059         Remove handling of deferred priority change, and replace by setting the
12060         task priority directly, as required by AI-188.
12061
12062         * s-tasuti.adb (Make_Passive): Adjust assertions.
12063         Remove handling of deferred priority change, and replace by setting the
12064         task priority directly, as required by AI-188.
12065
12066 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12067
12068         * system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
12069         system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, 
12070         system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads, 
12071         system-vxworks-mips.ads, system-vxworks-alpha.ads, 
12072         system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads, 
12073         system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads, 
12074         system-interix.ads, system-linux-hppa.ads, system-tru64.ads, 
12075         system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads, 
12076         system-solaris-sparcv9.ads, system-vms.ads, system.ads,
12077         system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
12078         system-linux-ia64.ads: Document mapping between Ada and OS priorities.
12079         This patch changes the largest non-binary modulus from 2**31-1 to
12080         2**32-1.
12081         (Compiler_System_Version): Removed, no longer used.
12082         Clean up system files by removing flags only used on a single target.
12083         Also remove obsolete flags, only used during bootstrap from system.ads
12084         (Address): Add a pragma Preelaborable_Initialization.
12085
12086         * system-aix.ads:  Ditto.
12087         (GCC_ZCX_Support): Set to true.
12088         Update priority range on AIX and map Ada priorities to target
12089         priorities appropriately for different scheduling policies.
12090
12091         * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
12092
12093 2007-06-06  Vincent Celier  <celier@adacore.com>
12094
12095         * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
12096         mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
12097
12098         * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb, 
12099         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb, 
12100         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, 
12101         mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb, 
12102         mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
12103         MLib.Tgt, containing the default versions of the exported subprograms.
12104         For each platform, create a specific version of the body of new child
12105         package MLib.Tgt.Specific that contains only the body of subprograms
12106         that are different from the default.
12107         (Archive_Builder_Append_Options): New function.
12108
12109 2007-06-06  Matthew Gingell  <gingell@adacore.com>
12110
12111         * s-osinte-aix.adb: Map Ada priorities to target priorities
12112         appropriately for different scheduling policies.
12113
12114 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12115
12116         * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
12117         its C counterpart.
12118         Remove references to Unchecked_Conversion, and use Ada.xxx instead.
12119         Replace Unchecked_Conversion by Ada.Unchecked_Conversion. 
12120
12121 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
12122
12123         * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
12124         Noop on VMS, added for interface commonality.
12125
12126 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
12127             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12128             Olivier Hainque  <hainque@adacore.com>
12129
12130         * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
12131         renamed expression of a full renaming at toplevel.
12132         (gnat_to_gnu_entity, case object): If not defining, do not look inside
12133         the values the constant is initialized to if it is an N_Allocator.
12134         (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
12135         TYPE_SIZE_UNIT of inner types after the stride is elaborated.
12136         (make_aligning_type): Accept an extra ROOM argument for storage to be
12137         made available before the aligned field, and an extra BASE_ALIGN
12138         argument for callers to pass the alignment guaranteed to be honored for
12139         the whole aligning object. Avoid call to finish_record_type, which only
12140         interferes with the sizes we want to set.
12141         (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
12142         make_aligning_type for super-aligned objects on stack.
12143         (components_to_record): Pass the adjusted size of the type when creating
12144         fields in the qualified union for the variant part.
12145         (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
12146         (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
12147         packed array type.
12148         (maybe_pad_type): Set TYPE_USER_ALIGN.
12149         (make_aligning_type): Likewise.
12150         ALIGN argument is unsigned int.
12151         (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
12152         (gnat_to_gnu_param): Likewise, for parameters.
12153         (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
12154         if it is constant and stems from a function call.
12155         (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
12156         of the record is specified.  Adjust accordingly.
12157         (adjust_packed): New static function.
12158         (gnat_to_gnu_field): Use it to adjust the packedness setting.
12159         (components_to_record): Likewise.
12160         (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
12161         side-effects if the object is deemed constant.
12162         (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
12163         type instead of merely finalizing it.  Tidy.
12164         <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
12165         <E_Access_Type>: Likewise.
12166         (defer_debug_incomplete_list): Rename to defer_finalize_list.
12167         (defer_debug_level): Delete.
12168         (gnat_to_gnu_entity) <debug_deferred>: Likewise
12169         <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
12170         type.
12171         <E_Record_Type>: Do not explicitly defer finalizing the type.
12172         Adjust for write_record_type_debug_info renaming.
12173         <E_Subprogram_Type>: Likewise.
12174         Finalize deferred types right after deferred incomplete types are
12175         expanded.
12176         (rest_of_type_decl_compilation): New global function.
12177         (components_to_record): Rename defer_debug parameter to do_not_finalize.
12178         (components_to_record): Propagate the packedness to the fields of the
12179         qualified union type if there is a variant part.
12180         (gnat_to_gnu_entity) <E_Array_Type>: Use new function
12181         instead of inline code to adjust the XUT field offsets.
12182         (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
12183         <E_Record_Subtype>: Do not let finish_record_type compute the sizes
12184         and write the debug info if the type derives from a discriminated one.
12185         (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
12186         <E_Array_Subtype>: Likewise.
12187         <E_String_Literal_Subtype>: Likewise.
12188         (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
12189         an alignment clause.
12190         (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
12191         before giving warning.
12192         (prepend_one_attribute_to): New function, helper to prepend an attribute
12193         to an attribute list.
12194         (gnat_to_gnu_entity) <E_Procedure>: Use it.
12195         (prepend_attributes): Likewise.
12196         (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
12197         <E_Array_Type>: Declare the padding type for the element type, if any.
12198         <E_Array_Subtype>: Likewise.
12199         (defer_limited_with): New variable.
12200         (Gigi_Equivalent_Type): New function.
12201         (gnat_to_gnu_entity): Use it at start and use result throughout.
12202         (gnat_to_gnu_entity, case E_Access_Type): Rework to use
12203         Gigi_Equivalent_Type, support Limited_With, allow two levels of
12204         indirection, precompute if unconstrained array to simplify logic, and
12205         use defer_limited_with to defer elaboration of some types from limited
12206         with.
12207         (finalize_from_with_types): New function.
12208
12209 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
12210             Eric Botcazou  <ebotcazou@adacore.com>
12211             Tristan Gingold  <gingold@adacore.com>
12212             Olivier Hainque  <hainque@adacore.com>
12213
12214         * trans.c (Identifier_to_gnu): Change test for deferred constant by
12215         adding guard that the entity is an E_Constant before testing presence
12216         of Full_view (and remove unnecessary test that entity is not a type).
12217         For a CONST_DECL used by reference, manually retrieve
12218         the DECL_INITIAL.  Do not invoke fold in the other DECL_P cases either.
12219         (struct language_function): Move from utils.c to here.
12220         (struct parm_attr): New structure.
12221         (parm_attr, parm_attr vector, parm_attr GC vector): New types.
12222         (f_parm_attr_cache): New macro.
12223         (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
12224         expressions for the 'First, 'Last and 'Length attributes of the
12225         unconstrained array IN parameters.
12226         (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
12227         Allocate the information structure for the function earlier, as well
12228         as the language-specific part.
12229         If the parameter attributes cache has been populated, evaluate the
12230         cached expressions on entry.
12231         (takes_address): Add OPERAND_TYPE parameter.  Handle N_Function_Call,
12232         N_Procedure_Call_Statement and N_Indexed_Component.
12233         (Pragma_to_gnu): Translate inspection_point to an asm statement
12234         containaing a comment and a reference to the object (either its address
12235         for BLKmode or its value).
12236         (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
12237         to go to DECL_INITIAL. Together with the size constraint relaxation
12238         in create_var_decl, enlarges the set of situations in which an
12239         identifier may be used as an initializer without implying elaboration
12240         code.
12241         (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
12242         DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
12243         node.
12244         (maybe_stabilize_reference): Remove lvalues_only parameter.
12245         (gnat_stabilize_reference): Adjust for above change.
12246         (gnat_to_gnu): Do not set location information on the result
12247         if it is a reference.
12248         (add_cleanup): Add gnat_node parameter and set the location of the
12249         cleanup to it.
12250         (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
12251         (Exception_Handler_to_gnu_zcx): Likewise.
12252         (gigi): Remove the cgraph node if the elaboration procedure is empty.
12253         (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
12254         the former right after the latter.
12255         (start_stmt_group): Make global.
12256         (end_stmt_group): Likewise.
12257         (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
12258         vars.
12259         (gnu_program_error_label_stack): Likewise.
12260         (gigi): Initialize them.
12261         (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
12262         (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
12263         New cases.
12264         (push_exception_label_stack): New function.
12265         (takes_address): New function.
12266
12267         * utils.c (struct language_function): Move to trans.c from here.
12268         (unchecked_convert): Do not wrap up integer constants in
12269         VIEW_CONVERT_EXPRs.
12270         (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
12271         the latter for aggregate types, unexpected by later passes, and relax an
12272         arbitrary size constraint on the former.
12273         (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
12274         to compare the sizes.
12275         (convert_vms_descriptor): When converting to a fat pointer type, be
12276         prepared for a S descriptor at runtime in spite of a SB specification.
12277         (shift_unc_components_for_thin_pointers): New function.
12278         (write_record_type_debug_info): For variable-sized fields, cap the
12279         alignment of the pointer to the computed alignment.
12280         (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
12281         If REP_LEVEL is 2, do not compute the sizes.
12282         (build_vms_descriptor): Adjust for new prototype of finish_record_type.
12283         (build_unc_object_type): Likewise.
12284         (declare_debug_type): New function.
12285
12286         * ada-tree.def: USE_STMT: removed (not emitted anymore).
12287
12288         * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
12289         no statement is expandable anymore.
12290         (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
12291         (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
12292         when the user requested it explicitely.
12293         (gnat_post_options): By default, set flag_eliminate_unused_debug_types
12294         to 0 for Ada.
12295         (get_alias_set): Return alias set 0 for a type if
12296         TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
12297
12298         * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
12299         (DECL_FUNCTION_STUB): New accessor macro.
12300         (SET_DECL_FUNCTION_STUB): New setter macro.
12301
12302         * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
12303
12304         * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
12305         declarations.
12306
12307 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
12308
12309         * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
12310         Rename to Abort_Task_Interrupt to be able to keep the same interface
12311         as the rest of the targets.
12312
12313         * s-osinte-vxworks.ads s-osinte-vxworks.adb
12314         (To_VxWorks_Priority): Remove explicit "in" mode indicator
12315
12316         * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
12317         New files.
12318
12319 2007-06-06  Robert Dewar  <dewar@adacore.com>
12320
12321         * a-chahan.ads: Remove obsolescent pragmas
12322
12323         * a-chlat1.ads: Minor reformatting
12324
12325 2007-06-06  Robert Dewar  <dewar@adacore.com>
12326
12327         * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
12328         for Errout
12329
12330         * errout.adb: New Finalize/Compilation_Errors/Output_Messages
12331         implementation
12332
12333         * errout.ads (Finalize): Changed interface
12334         (Output_Messages): New procedure
12335         (Compilation_Errors): New Interface
12336
12337         * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
12338         Finalize/Output_Messages interface for Errout
12339         (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
12340         Errout.
12341
12342 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12343             Olivier Hainque  <hainque@adacore.com>
12344             Robert Dewar  <dewar@adacore.com>
12345
12346         * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
12347         check.
12348         (Raise_Current_Excep): Call Debug_Raise_Exception just before
12349         propagation starts, to let debuggers know about the event in a reliable
12350         fashion.
12351         (Local_Raise): Moved to System.Exceptions
12352         More convenient to have this as a separate unit
12353
12354         * s-except.adb, s-except.ads: New files.
12355
12356         * a-exextr.adb (Unhandled_Exception): Delete - replaced by
12357         Debug_Unhandled_Exception in System.Exceptions where it belongs
12358         together with a couple of other debug helpers.
12359         (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
12360         the former Unhandled_Exception.
12361
12362         * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
12363         (Warn_No_Exception_Propagation): New procedure
12364         (Warn_If_No_Propagation): Rewritten for new warning generation
12365         (Expand_Exception_Handlers): New warning generation
12366         (Expand_N_Raise_xxx_Error): Rewritten for new warnings
12367         (Add_Exception_Label): Use Special_Exception_Package_Used for test
12368         instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
12369         (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
12370         even if restriction is set (makes life easier in Check_Returns)
12371         (Expand_Local_Exception_Handlers): Follow renamed entity chain when
12372         checking exception identities.
12373         (Expand_Local_Exception_Handlers): Do not optimize when all others case
12374         (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
12375         block for handler (used by Check_Returns)
12376         (Expand_Local_Exception_Handlers): Local_Raise now takes an address
12377         (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
12378         remove all exception handlers when optimizing local raise statements.
12379         (Find_Local_Handler): Use Get_Renamed_Entity
12380         (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
12381         marked analyzed after expanding exception handlers, do not generate
12382         redundant cleanup actions, because they have been constructed already.
12383
12384 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12385
12386         * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
12387         presence of this categorization pragma is mandated by the language.
12388         (Limited_Controlled): Add missing pragma Preelaborable_Initialization
12389         for this type.
12390
12391 2007-06-06  Vincent Celier  <celier@adacore.com>
12392             Robert Dewar  <dewar@adacore.com>
12393
12394         * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb, 
12395         butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads, 
12396         err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads, 
12397         fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads, 
12398         lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads, 
12399         makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb, 
12400         par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb, 
12401         prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads, 
12402         prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb, 
12403         sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb, 
12404         uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
12405         ali.ads, ali.adb: 
12406         Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
12407         package Namet. Make File_Name_Type and Unit_Name_Type types derived from
12408         Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
12409         Use variables of types File_Name_Type and Unit_Name_Type in error
12410         messages.
12411         (Get_Name): Add parameter Ignore_Special, and set it reading file name
12412         (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
12413         here.
12414         Define flags Flag217-Flag230 with associated subprograms
12415         (Flag_Word5): New record type.
12416         (Flag_Word5_Ptr): New access type.
12417         (To_Flag_Word5): New unchecked conversion.
12418         (To_Flag_Word5_Ptr): Likewise.
12419         (Flag216): New function.
12420         (Set_Flag216): New procedure.
12421
12422 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12423
12424         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
12425         instead of 'Size.
12426
12427         * a-stwifi.ads, a-stzfix.ads: Minor reformatting
12428
12429 2007-06-06  Javier Miranda  <miranda@adacore.com>
12430
12431         * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
12432         the package.
12433         (Object_Specific_Data_Array): This is now internal to the package.
12434         (Object_Specific_Data): This is now internal to the package.
12435         (Select_Specific_Data_Element): This is now internal to the package.
12436         (Select_Specific_Data_Array): This is now internal to the package.
12437         (Select_Specific_Data): This is now internal to the package.
12438         (Offset_To_Top_Function_Ptr): This is now public.
12439         (To_Offset_To_Top_Function_Ptr): Removed.
12440         (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
12441          local to subprogram Offset_To_Top.
12442         (Predefined_DT): Removed.
12443         (Typeinfo_Ptr): Removed.
12444         (OSD): This function is now internal to this package.
12445         (SSD): This function is now internal to this package.
12446         (DT): New function that displaces the pointer to the table of primitives
12447          to get access to the enclosing wrapper record.
12448         (IW_Membership): Code cleanup.
12449         (Offset_To_Top): Code cleanup.
12450         (Predefined_DT): Removed.
12451         (Register_Interface_Tag): Removed.
12452         (Set_Interface_Table): Removed.
12453         (Set_Offset_Index): Removed.
12454         (Set_Offset_To_Top): Code cleanup.
12455         (Set_OSD): Removed.
12456         (Set_Signature): Removed.
12457         (Set_SSD): Removed.
12458         (Set_Tagged_Kind): Removed.
12459         (Typeinfo_Ptr): Removed.
12460         (TSD): Removed.
12461         (Displace): Add missing check on null actual.
12462
12463         * exp_disp.ads, exp_disp.adb
12464         (Select_Expansion_Utilities): Removed.
12465         (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
12466         (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
12467         the interface requires a new parameter.
12468         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
12469         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
12470         calls to subprograms Build_T, Build_S, etc. by the corresponding code.
12471         Done to remove package Select_Expansion_Utilities.
12472         (Make_DT): New implementation for statically allocated dispatch tables.
12473         (Make_Secondary_DT): Moved to the scope of Make_DT.
12474         (Register_Primitive): Code cleanup plus incoporate the use of the new
12475         function DT_Address_Attribute.
12476         (Expand_Interface_Thunk): The profile of this subprogram has been
12477         changed to return the Thunk_Id and the corresponding code.
12478         (Fill_DT_Entry): Removed. Its functionality is now provided by
12479         subprogram Register_Primitive.
12480         (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
12481         subprogram Register_Primitive.
12482         (Register_Primitive): New subprogram that incorporates the previous
12483         functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
12484         (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
12485         was only required to call Make_DT_Access_Action, which is now removed.
12486         (Ada_Actions): Removed
12487         (Action_Is_Proc): Removed
12488         (Action_Nb_Arg): Removed
12489         Replace all the calls to Make_DT_Access_Action by direct calls to
12490         Make_Procedure_Call_Statement or Make_Function_Call.
12491         (Set_DTC_Entity_Value): New subprogram.
12492         (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
12493         (Expand_Interface_Thunk): Add missing support for primitives that are
12494         functions with a controlling result (case in which there is no need
12495         to generate the thunk).
12496
12497         * exp_atag.ads, exp_atag.adb
12498         (Build_DT): New subprogram that displaces the pointer to reference the
12499         base of the wrapper record.
12500         (Build_Typeinfo_Offset): Removed.
12501         (RTE_Tag_Node): Removed.
12502         (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
12503         (Build_Get_RC_Offset): Removed.
12504         (Build_Inherit_Predefined_Prims): Removed.
12505         (Build_Inherit_TSD: Removed.
12506         (Build_New_TSD): Removed.
12507         (Build_Set_External_Tag): Removed.
12508         (Build_Set_Predefined_Prim_Op_Address): Add documentation.
12509         (Build_Set_Prim_Op_Address): Add documentation.
12510         (Build_Set_TSD): Removed.
12511
12512         * rtsfind.ads, rtsfind.adb
12513         (Load_Fail): If load fails and we are not in configurable run-time
12514         mode, then raise Unrecoverable_Error.
12515         (Text_IO_Kludge): Generate an error message if a run-time library is
12516         not available in a given run-time (ie. zfp run-time).
12517         (RTE_Record_Component): Add code to check that the component we search
12518         for is not found in two records in the given run-time package.
12519         (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
12520         (RE_DT_Predef_Prims_Offset): New entity
12521         (RE_Static_Offset_To_Top): New entity
12522         (RE_HT_Link): New entity.
12523         (System_Address_Image): Addition of this run-time package.
12524         (RE_Address_Image): New entity.
12525         (RE_Abstract_Interface): Removed.
12526         (RE_Default_Prim_Op_Count): Removed.
12527         (RE_DT_Entry_Size): Removed.
12528         (RE_DT_Min_Prologue_Size): Removed.
12529         (RE_DT_Prologue_Size): Removed.
12530         (RE_Ifaces_Table_Ptr): Removed.
12531         (RE_Interface_Data_Ptr): Removed.
12532         (RE_Type_Specific_Data): Removed.
12533         (RE_Primary_DT): Removed.
12534         (RE_Register_Interface_Tag): Removed.
12535         (RE_Set_Offset_Index): Removed.
12536         (RE_Set_OSD): Removed.
12537         (RE_Set_SSD): Removed.
12538         (RE_Set_Signature): Removed.
12539         (RE_Set_Tagged_Kind): Removed.
12540         (RE_Address_Array): New entity.
12541         (RE_DT): New entity.
12542         (RE_Iface_Tag): New entity.
12543         (RE_Interfaces_Table): New entity.
12544         (RE_No_Dispatch_Table): New entity.
12545         (RE_NDT_Prims_Ptr): New entity.
12546         (RE_NDT_TSD): New entity.
12547         (RE_Num_Prims): New entity.
12548         (RE_Offset_To_Top_Function_Ptr): New entity.
12549         (RE_OSD_Table): New entity.
12550         (RE_OSD_Num_Prims): New entity.
12551         (RE_Predef_Prims): New entity
12552         (RE_Predef_Prims_Table_Ptr): New entity.
12553         (RE_Primary_DT): New entity.
12554         (RE_Signature): New entity.
12555         (RE_SSD): New entity.
12556         (RE_TSD): New entity.
12557         (RE_Type_Specific_Data): New entity.
12558         (RE_Tag_Kind): New entity.
12559
12560 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12561
12562         * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
12563         C imported variable.
12564         (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
12565         on entry.
12566
12567 2007-06-06  Robert Dewar  <dewar@adacore.com>
12568
12569         * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
12570         character
12571
12572 2007-06-06  Vincent Celier  <celier@adacore.com>
12573
12574         * a-tifiio.adb (Put, internal): For negative numbers, check that there
12575         is room for at least one digit and the minus sign.
12576         (Put.Put_Character): Never put a character outside of the range of
12577         string To.
12578
12579 2007-06-06  Olivier Hainque  <hainque@adacore.com>
12580             Eric Botcazou  <ebotcazou@adacore.com>
12581
12582         * utils2.c (build_allocator): Provide the extra arguments to
12583         make_aligning_type for super-aligned objects allocated from the default
12584         pool. Leave enough room for a pointer before the aligning field, and
12585         store the system's allocator return value there.
12586         (build_call_alloc_dealloc): When releasing a super-aligned object,
12587         retrieve the system's allocator return value from where build_allocator
12588         has stored it, just ahead of the adjusted address we are passed.
12589         (build_call_raise): Handle properly the generation of line numbers when
12590         the node is marked No_Location.
12591         (compare_elmt_bitpos): Use tree_int_cst_compare.  Stabilize the sort
12592         by using DECL_UID on ties.
12593         (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
12594         main variant.
12595         (build_call_raise): Handle converting exception into goto; support new
12596         argument KIND.
12597         (build_component_ref): Add new arg to build_call_raise.
12598
12599 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
12600
12601         * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
12602         "." in the case of nnn.xxx when nnn terminates with an underscore.
12603         Parse the remaining "#" or ":" in the case of nnn#.xxx#
12604
12605 2007-06-06  Robert Dewar  <dewar@adacore.com>
12606
12607         * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
12608
12609 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12610             Vincent Celier  <celier@adacore.com>
12611             Robert Dewar  <dewar@adacore.com>
12612
12613         * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
12614         needed.
12615         (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
12616         ((destructor)) for adafinal, even when switch -a is used.
12617         Do not issue pragma Linker_Destructor for adafinal when switch -a is
12618         used.
12619         (Gen_Object_Files_Options): Add formatting of Linker Options, when
12620         Output_Linker_Option_List is set. Suppress this formatting when
12621         Zero_Formatting is set.
12622         Add case for CLI_Target.
12623         (System_Restrictions_Used): New flag, used to avoid generating with of
12624         System_Restrictions and initialization of the data unless there is
12625         some use of System.Restrictions in the partition.
12626         (Check_System_Restrictions_Used): New procedure
12627
12628         * s-stalib.adb: Remove with of System.Restrictions. No longer needed
12629         since we only with this unit in the binder file if it is used elsewhere
12630         in the partition.
12631
12632 2007-06-06  Vincent Celier  <celier@adacore.com>
12633
12634         * bindusg.adb: Add line for @<response file>
12635         Add lines for new switches -R and -Z
12636
12637         * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
12638         hierarchy in the list of files of the closure when -R is used
12639         (Gnatbind): Accept arguments starting with '@' to indicate response
12640         files and take the arguments from the response files.
12641         If List_Closure is set, display the referenced files
12642
12643 2007-06-06  Javier Miranda  <miranda@adacore.com>
12644             Robert Dewar  <dewar@adacore.com>
12645             Ed Schonberg  <schonberg@adacore.com>
12646
12647         * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
12648         which the address-clause is applied to in-mode actuals (allowed by
12649         13.1(22)).
12650         (Apply_Discriminant_Check): Do not generate a check if the type is
12651         constrained by a current instance.
12652         (Activate_Division_Check): New procedure
12653         (Activate_Overflow_Check): New procedure
12654         (Activate_Range_Check): New procedure
12655         Call these new Activate procedures instead of setting flags directly
12656         (Apply_Array_Size_Check): Removed, no longer needed.
12657         Code clean up: remove obsolete code related to GCC 2.
12658         (Get_E_Length): Protect against bomb in case scope is standard
12659         (Selected_Range_Checks): If the node to be checked is a conversion to
12660         an unconstrained array type, and the expression is a slice, use the
12661         bounds of the slice to construct the required constraint checks.
12662         Improve NOT NULL error messages
12663         (Apply_Constraint_Check): If the context is a null-excluding access
12664         type, diagnose properly the literal null.
12665
12666 2007-06-06  Pascal Obry  <obry@adacore.com>
12667
12668         * clean.adb (Clean_Archive): Use untouched casing for the archive name
12669         and the corresponding .deps file.
12670         (Clean_Interface_Copy_Directory): Use untouched casing for the library
12671         src directory. Minor code-clean-up. Use untouched casing for files
12672         read into the library src dir.
12673         (Clean_Library_Directory): Idem.
12674         (Parse_Cmd_Line): Accept new switch -aP
12675
12676 2007-06-06  Javier Miranda  <miranda@adacore.com>
12677             Ed Schonberg  <schonberg@adacore.com>
12678             Robert Dewar  <dewar@adacore.com>
12679             Eric Botcazou  <ebotcazou@adacore.com>
12680             Arnaud Charlet  <charlet@adacore.com>
12681
12682         * einfo.ads, einfo.adb (Available_View): New synthesized attribute
12683         applicable to types that have the With_Type flag set. Returns the
12684         non-limited view of the type, if available, otherwise the type itself.
12685         For class-wide types, there is no direct link in the tree, so we have
12686         to retrieve the class-wide type of the non-limited view of the Etype.
12687         New attributes Static_Initialization and Static_Elaboration_Desired.
12688         Remove the pragma Thread_Body, and the associated flag
12689         Is_Thread_Body in entities, and all related code.
12690         (Suppress_Value_Tracking_On_Call): New flag
12691         E_Exception has Esize and Alignment fields
12692         (Universal_Aliasing): New function.
12693         (Set_Universal_Aliasing): New procedure.
12694         (Write_Entity_Flags): Deal with Universal_Aliasing flag.
12695         (Check_Nested_Access): New procedure.
12696         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
12697         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
12698         (Related_Interface): New attribute. Present in dispatch table pointer
12699         components of records. Set to point to the entity of the corresponding
12700         interface type.
12701         (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
12702         (Original_Access_Type): Remove, not needed.
12703         (Root_Type): Handle properly subtypes of class-wide-types.
12704         Update comments.
12705
12706         * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
12707         class-wide types visible through limited-with clauses.
12708         (Try_Primitive_Operation): When examining all primitive operations of a
12709         tagged type, do not consider subprograms labeled as hidden unless they
12710         belong to a private generic type with a tagged parent.
12711         (Try_Object_Operation): Extensive rewriting, to handle properly various
12712         overloading cases, when several ancestors may have class-wide operations
12713         that are possible candidates, and when the overloaded functions return
12714         array types and have defaulted parameters so that the call may be
12715         interpreted as an indexing.
12716         (Analyze_Allocator): Remove Mark_Allocator and its invocation.
12717         (Process_Function_Call): use Next, rather than Next_Actual, to analyze
12718         successive actuals before analyzing the call itself.
12719         (Try_Primitive_Operation): A primitive operation is compatible with the
12720         prefix if the prefix has a synchronized type and the type of the formal
12721         is its corresponding record, as can be the case when the primitive
12722         operation is declared outside of the body of the type.
12723         (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
12724         perform homonym traversal, looking for class-wide operation matches
12725         (formerly done in statements of Try_Class_Wide_Operation). Matches on
12726         access parameters are now restricted to anonymous access types.
12727         (Mark_Allocator): An allocator with a discriminant association parent is
12728         a coextension.
12729         (Try_One_Prefix_Interpretation): If the type of the object is
12730         incomplete, as can be happen when it is a limited view obtained through
12731         a limited_with_clause, the selected component is not part of a prefixed
12732         call.
12733         (Complete_Object_Operation): Diagnose properly an object that is not
12734         aliased when the corresponding controlling formal is an access
12735         parameter.
12736         (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
12737         ambiguous calls in prefixed notation, where two primitives differ only
12738         in that the controlling argument of one is an access parameter.
12739
12740         * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
12741         whether a function that returns an unconstrained type can be inlined.
12742         (Process_Formals): Diagnose properly the illegal use of an incomplete
12743         type in the profile of an access_to_subprogram declaration.
12744         (Check_Synchronized_Overriding): Nothing check for concurrent types, the
12745         operations are attached to the corresponding record.
12746         (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
12747         When processing a primitive of a concurrent type which implements an
12748         interface change the type of all controlling formals to that of the
12749         corresponding record type.
12750         (Check_Synchronized_Overriding): Relax the conditional logic when trying
12751         to determine the tagged type to which a primitive belongs.
12752         (Check_Conventions): Capture condition to ignore a primitive operation
12753         (which is shared between the loop in Check_Conventions and the one in
12754         Check_Convention) in a new local function Skip_Check.
12755         (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
12756         confusion with Check_Conventions' own Prim_Op local variable.
12757         (Create_Extra_Formals): Test for a tagged result type rather than a
12758         controlling result when determining whether to add a BIP_Alloc_Form
12759         formal and a BIP_Final_List formal to the function.
12760         (Check_Conformance); For parameters that are anonymous access types,
12761         subtype conformance requires that the not null and the constant
12762         indicators must match
12763         (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
12764         to retrieve the appropriate type when processing a concurrent type
12765         declared within a generic. Minor comment reformatting. Change invocation
12766         of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
12767         mitive.
12768         (Analyze_Subprogram_Body): If the return type of a function is an
12769         anonymous access to the limited view of a class-wide type, and the
12770         non-limited view of the type is available, update the type of the
12771         function so that code can be generated.
12772         (Process_Formals): In case of access-subtype itype whose designated
12773         type is also an itype (situation that happens now with access to
12774         subprograms) we mark the access-type itype with the Has_Delayed_Freeze
12775         attribute to avoid backend problems.
12776         (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
12777         init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
12778         anonymous types' designated types are same before testing
12779         Subtypes_Statically_Match.
12780         (Create_Extra_Formals): Test for a named access parameter that is a
12781         controlling formal as an additional condition for adding an
12782         accessibility level formal. This can occur in the subp type created for
12783         dispatching calls in Expand_Dispatching_Call, and allows calling
12784         Create_Extra_Formals from that procedure rather than special-casing the
12785         extra formals there.
12786         (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
12787         when the function has a controlling result.
12788         (Check_Returns): Add much more knowledge of the optimization of local
12789         raise statements to gotos, to retain proper warnings in this case.
12790         (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
12791         nodes when looking for last statement.
12792
12793         * sem_type.ads, sem_type.adb (Specific_Type): Add support for
12794         class-wide types visible through limited with clauses.
12795         (Add_One_Interp): If the operands are anonymous access types, the
12796         predefined operator on universal_access is immediately visibles
12797         (Find_Unique_Type): Handle anonymous access to subprogram types just as
12798         other anonymous access types.
12799         (Disambiguate): Take into account CIL convention.
12800         (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
12801
12802 2007-06-06  Robert Dewar  <dewar@adacore.com>
12803
12804         * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
12805         sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
12806         elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
12807         Fix lower bound of tables.
12808         Add rep clauses.
12809
12810         * nlists.adb: Ditto.
12811         (Prev_Node, Next_Node): Change index type to Int so that it properly
12812         covers the range First_Node_Id - 1 up.
12813
12814 2007-06-06  Javier Miranda  <miranda@adacore.com>
12815             Ed Schonberg  <schonberg@adacore.com>
12816             Bob Duff  <duff@adacore.com>
12817             Hristian Kirtchev  <kirtchev@adacore.com>
12818
12819         * exp_aggr.ads, exp_aggr.adb: 
12820         (Build_Record_Aggr_Code): Add missing initialization of secondary tags
12821         in extension aggregates.
12822         (Flatten): Other conditions being met, an aggregate is static if the
12823         low bound given by component associations is different from the low
12824         bound of the base index type.
12825         (Packed_Array_Aggregate_Handled): If the component type is itself a
12826         packed array or record, the front-end must expand into assignments.
12827         (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
12828         Init_Pr, instead of Ancestor_Is_Expression.
12829         (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
12830         coextension chain root, either generate a list controller or use the
12831         already existing one.
12832         (Static_Array_Aggregate): New procedure to construct a positional
12833         aggregate that can be handled by the backend, when all bounds and
12834         components are compile-time known constants.
12835         (Expand_Record_Aggregate): Force conversion of aggregates of tagged
12836         types covering interface types into assignments.
12837         (Replace_Type): move to Build_Record_Aggr_Code.
12838         (Expand_Record_Aggr_Code): if the target of the aggregate is an
12839         interface type, convert to the definite type of the aggregate itself,
12840         so that needed components are visible.
12841         (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
12842         components and the context is an extended return statement do not
12843         create a transient block for it, to prevent premature finalization
12844         before the return is executed.
12845         (Gen_Assign): Do not generate a call to deep adjust routine if the
12846         component type is itself an array of controlled (sub)-components
12847         initialized with an inner aggregate.
12848         (Component_Check): New name for Static_Check. This name is now more
12849         appropriate, and documentation is added which was missing.
12850         (Component_Check): Add test for bit aligned component value
12851         (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
12852         Tagged_Comps, name is more appropriate given added function below.
12853         (Component_Not_OK_For_Backend): Check for bit aligned component ref.
12854
12855 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
12856             Javier Miranda  <miranda@adacore.com>
12857             Robert Dewar  <dewar@adacore.com>
12858
12859         * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
12860         Terminated: Add unchecked type conversion from System.Address to
12861         System.Tasking.Task_Id when calling the predefined primitive
12862         _disp_get_task_id.
12863         Disable new Ada 05 accessibility check for JVM.NET targets, which
12864         cannot be implemented in a practical way.
12865         (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
12866         the sources always references the tag of the actual object. Therefore,
12867         if 'Tag is applied in the sources to class-wide interface objects we
12868         generate code that displaces "this" to reference the base of the object.
12869         (Expand_N_Attribute_Reference, case Size): Return specified size if
12870         known to front end.
12871         (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
12872         has code that displaces the pointer of the object to manage interface
12873         types. However this code must not be executed when the prefix is a
12874         subprogram. This bug caused the wrong expansion of the internally
12875         generated assignment that fills the dispatch table when the primitive
12876         is a function returning a class-wide interface type.
12877         (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
12878         Set_Attribute_Name for Name_Unaligned_Valid.
12879
12880 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12881             Gary Dismukes  <dismukes@adacore.com>
12882
12883         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
12884         If the initialization is the equivalent aggregate of the initialization
12885         procedure of the type, do not remove it.
12886         (Expand_N_Attribute_Definition_Clause): Exclude access variables
12887         initialized to null from having their expression reset to empty and
12888         note this exception in the comment.
12889
12890 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
12891             Robert Dewar  <dewar@adacore.com>
12892             Ed Schonberg  <schonberg@adacore.com>
12893             Gary Dismukes  <dismukes@adacore.com>
12894
12895         * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
12896         Add "with" and "use" clauses for Sem_Attr.
12897         (Expand_Current_Value): Do not replace occurences of attribute
12898         references where the prefix must be a simple name.
12899
12900         * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
12901         Namet. Add new arrays Attribute_Name_Modifies_Prefix and
12902         Attribute_Requires_Simple_Name_Prefix.
12903         (Name_Modifies_Prefix): Body of new function.
12904         (Requires_Simple_Name_Prefix): Body of new function.
12905         (Resolve_Attribute, case Access): Improve error message for case of
12906         mismatched conventions.
12907         (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
12908         incomplete type.
12909         (Analyze_Attribute, case 'Access): If the type of the prefix is a
12910         constrained subtype for a nominal unconstrained type, use its base type
12911         to check for conformance with the context.
12912         (Resolve_Attribute): Remove test of the access type being associated
12913         with a return statement from condition for performing accessibility
12914         checks on access attributes, since this case is now captured by
12915         Is_Local_Anonymous_Access.
12916         (Analyze_Access_Attribute): Set Address_Taken on entity
12917         (Analyze_Attribute, case Address): Set Address_Taken on entity
12918         (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
12919         validating an access attribute whose prefix is a current instance.
12920         (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
12921         applied to dispatching operations, if freezing is required then we set
12922         the attribute Has_Delayed_Freeze in the prefix's entity.
12923         (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
12924         current scope if access of local subprogram taken
12925         (Analyze_Access_Attribute): Check legality of self-reference even if the
12926         expression comes from source, as when a single component association in
12927         an aggregate has a box association.
12928         (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
12929         the prefix if it is a protected operation and the attribute is
12930         Unrestricted_Access.
12931         (Resolve_Attribute, case 'Access): Set the Etype of the attribute
12932         reference to the base type of the context, to force a constraint check
12933         when the context is an access subtype with an explicit constraint.
12934         (Analyze_Attribute, case 'Class): If the prefix is an interface and the
12935         node is rewritten as an interface conversion. leave unanalyzed after
12936         resolution, to ensure that type checking against the context will take
12937         place.
12938
12939 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12940             Javier Miranda  <miranda@adacore.com>
12941             Robert Dewar  <dewar@adacore.com>
12942
12943         * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
12944         wrapper when the full view of the controlling type of an inherited
12945         function that dispatches on result implements interfaces.
12946         (Expand_N_Object_Declaration): In cases where the type of the
12947         declaration is anonymous access, create finalization list for it.
12948         (Expand_N_Object_Declaration): Generate a persistent_bss directive only
12949         if the object has no explicit initialization, to match description of
12950         functionality of pragam Persistent_BSS.
12951         (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
12952         new function to build static aggregates, to replace initialization call
12953         when static initialization is desired.
12954         (Freeze_Type): Generate a list controller for an access type whenever
12955         its designated type has controlled anonymous access discriminants.
12956         (Build_Equivalent_Aggregate): New procedure to compute a static
12957         aggregate to be used as default initialization for composite types,
12958         instead of a generating a call to the initialization procedure for the
12959         type.
12960         (Build_Initialization_Call): When available, replace a call to the
12961         initialization procedure with a copy of the equivalent static aggregate
12962         for the type.
12963         (Expand_N_Object_Declaration):  Use New_Occurrence_Of in generated
12964         declarations for objects of a class-wide interface type, rather than
12965         just identifiers, to prevent visibility problems.
12966         (Expand_N_Object_Declaration): When expanding the declaration for an
12967         object of a class-wide interface type, preserve the homonym chain of
12968         the original entity before exchanging it with that of the generated
12969         renaming declaration.
12970         (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
12971         active, because there is no way to handle the exception.
12972         (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
12973         to do a minimum decoration of the Access_Disp_Table list.
12974         (Expand_Record_Controller): Avoid the addition of the controller between
12975         the component containing the tag of a secondary dispatch table and its
12976         adjacent component that stores the offset to the base of the object.
12977         This latter component is only generated when the parent type has
12978         discriminants ---documented in Add_Interface_Tag_Components).
12979         (Apply_Array_Size_Check): Removed, no longer needed.
12980         (Expand_N_Full_Type_Declaration): If the type has anonymous access
12981         components, create a Master_Entity for it only if it contains tasks.
12982         (Build_Init_Procedure): Suppress the tag assignment compiling under
12983         no run-time mode.
12984         (Freeze_Record_Type): Remove code associated with creation of dispatch
12985         table.
12986         (Init_Secondary_Tags): Update type of actuals when generating calls to
12987         Ada.Tags.Set_Offset_To_Top
12988         (Stream_Operation_OK): Disable use of streams compiling under no
12989         run-time mode
12990         (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
12991         if Has_Init_Expression set.
12992         (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
12993         Register_Primitive, which provides the same functionality.
12994         (Requires_Init_Proc): Return false in case of interface types.
12995         (Add_Secondary_Tables): Use the new attribute Related_Interface to
12996         cleanup the code.
12997         (Predefined_Primitive_Freeze): Do not assume that an internal entity
12998         is always associated with a predefined primitive because the internal
12999         entities associated with interface types are not predefined primitives.
13000         Therefore, the call to Is_Internal is replaced by a call to the
13001         function Is_Predefined_Dispatching_Operation.
13002         (Make_Eq_If): When generating the list of comparisons for the
13003         components of a given variant, omit the controller component that is
13004         present if the variant has controlled components.
13005
13006 2007-06-06  Javier Miranda  <miranda@adacore.com>
13007             Hristian Kirtchev  <kirtchev@adacore.com>
13008             Bob Duff  <duff@adacore.com>
13009
13010         * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
13011         handle the creation of finalization lists and calls for nested
13012         coextensions when the root of the chains is part of a return statement.
13013         (Inside_A_Return_Statement): New function inside Complete_Coextension_
13014         Finalization.
13015         (Expand_Record_Equality): Skip components that are interface types.
13016         (Displace_Allocator_Pointer): Add missing support for interface subtypes
13017         (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
13018         with Rewrite_Coextension. Change the condition for detecting coextension
13019         root nodes.
13020         (Is_Local_Access_Discriminant): Removed.
13021         (Rewrite_Coextension): New routine which rewrites a static coextension
13022         as a temporary and uses its unrestricted access in the construction of
13023         the outer object.
13024         (Complete_Coextension_Finalization): New routine. Generate finalization
13025         attachment calls to all delayed coextensions.
13026         (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
13027         the allocator is not a coextension itself and has delayed coextensions.
13028         If the current allocator is controlled, but also a coextension, delay
13029         the generation of the finalization attachment call.
13030         Rename local variable "Node" to "Nod" in order to avoid confusion with
13031         "Elists.Node".
13032         (Expand_Allocator_Expression): Call Adjust for initialized allocators of
13033         limited types that are not inherently limited. Such an allocator is
13034         illegal, but is generated by the expander for a return statement, to
13035         copy the result onto the secondary stack. This is the only case where a
13036         limited object can be copied. Generate code to displace the pointer
13037         to the object if the qualified expression is a class-wide interface
13038         object. Such displacement was missing and hence the copy of the object
13039         was wrong.
13040         (Apply_Accessibility_Check): Handle allocated objects initialized in
13041         place.
13042         (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
13043         and Expand_Allocator_Expression. Allocating class-wide interface objects
13044         this routine displaces the pointer to the allocated object to reference
13045         the component referencing the corresponding secondary dispatch table.
13046         Expand_Allocator_Expression): Add missing support to allocate class-wide
13047         interface objects initialized with a qualified expression.
13048         (Get_Allocator_Final_List): Test for an anonymous access type that is a
13049         function result type, and use the finalization list associated with the
13050         function scope in that case (such an anonymous type should not be
13051         treated like an access parameter's type).
13052
13053 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13054             Gary Dismukes  <dismukes@adacore.com>
13055             Javier Miranda  <miranda@adacore.com>
13056
13057         * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
13058         controlled type, use Make_Handler_For_Ctrl_Operation to construct the
13059         required exception handler.
13060         (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
13061         properly the case of a function whose return type is a limited
13062         class-wide interface type. Modify the code of the accessibility
13063         check to handle class-wide interface objects. In this case we need to
13064         displace "this" to reference the primary dispatch table to get access
13065         to the TSD of the object (to evaluate its accessibility level).
13066         (Expand_N_Extended_Return_Statement): Test for a tagged result type
13067         rather than a controlling result as one of the conditions for
13068         generating tests of the implicit BIP_Alloc_Form formal. The
13069         initialization assignment is also handled according to whether the
13070         result is tagged instead of controlling.
13071         In the case where the init assignment is inserted in the "then" part of
13072         the allocation conditional, rewrite the target to be a dereference of
13073         the implicit BIP_Object_Access formal.
13074         If the returned value is unconstrained and created on the secondary
13075         stack, mark the enclosing block and function so that the secondary
13076         stack is not reclaimed on return.
13077         Treat returns from functions with controlling results similarly to
13078         returns from functions with unconstrained result subtypes.
13079         If the object returned is unconstrained, and an allocator must be
13080         created for it, analyze the allocator once the block for the extended
13081         return is installed, to ensure that finalizable components
13082         of the expression use the proper finalization list. Guard the call to
13083         Move_Final_List with a check that there is something to finalize.
13084         (Make_Tag_Ctrl_Assignment): Use "old" handling
13085         of controlled type assignment for virtual machines, since new code uses
13086         unsupported features (such as direct access to bytes in memory).
13087
13088 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
13089             Ed Schonberg  <schonberg@adacore.com>
13090
13091         * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
13092         accessibility actual, check for the case of an aliased object that has
13093         been rewritten as an Access attribute, and assign Prev to Prev_Orig so
13094         we fall into processing for the attribute rather than the name of the
13095         object.
13096         (Expand_Inline_Call): If an actual is a literal, and the corresponding
13097         formal has its address taken in the body, create a temporary to capture
13098         value.  If the return type is a limited interface, do not treat the
13099         return value as Controlled.
13100         (Is_In_Place_Function):  If the return type is a limited interface,
13101         treat as returning in place. The actual returned object may not always
13102         be limited, but the caller has to assume that it is returned in place.
13103         (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
13104         context of an allocator, use the correct finalization chain (that is,
13105         the chain belonging to the access type, rather than the chain belonging
13106         to the current scope).
13107         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
13108         result type rather than a controlling result as a precondition for
13109         adding an allocation form actual to a build-in-place call.
13110         (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
13111         (Freeze_Subprogram): Code cleanup. Remove all the code that register the
13112         primitive in the dispatch tables. This work is now done by Make_DT when
13113         the type is frozen.
13114         (Register_Predefined_DT_Entry): Removed.
13115         (Add_Return): If end label is not present, use sloc of last statement
13116         for generated return statement in procedure, for better gdb behavior
13117         on expanded code.
13118         (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
13119         object address nodes to ensure proper processing by routines like
13120         Insert_After*.
13121         (Expand_Call): Fix generation of validity check for parameter
13122         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
13123         the allocation form parameter if the result subtype is constrained,
13124         except when the function has a controlling result.
13125         (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
13126         rather than Is_Controlled and Has_Controlled_Component, since we want to
13127         include class-wide result types in this treatment. Also test for a
13128         controlling result, since that also requires passing a finalization
13129         list.
13130         (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
13131         even when the result subtype is constrained, to handle calls involving
13132         controlling results.
13133         (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
13134         is now called even when the result subtype is constrained, to handle
13135         calls involving controlling results.
13136         (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
13137         on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
13138         now performs the test).
13139         (Make_Build_In_Place_Call_In_Object_Declaration):
13140         Add_Alloc_Form_Actual_* is now called even when the result subtype is
13141         constrained, to handle calls involving controlling results.
13142         (Add_Return): Accomodate rewritten pattern from local raise to goto
13143         transformation, so that we still recognize an transfer statement
13144         and do the right thing here in that case.
13145         (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
13146         and end of subprogram code.
13147         (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
13148         support for primitives that are functions (without formals) with a
13149         controlling result.
13150         (Inherited_From_Formal): If the actual subtype has not generic parent
13151         type, it is not an actual for a formal derived type, and there is no
13152         operation to inherit from the formal.
13153
13154 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13155             Thomas Quinot  <quinot@adacore.com>
13156
13157         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
13158         inserted cleanup code appropriately for GDB use.
13159         (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
13160         exception handler for Deep_Adjust or Deep_Finalize.
13161         (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
13162         Raise_From_Controlled_Operation is available, use a call to that
13163         subprogram instead of a plain "raise Program_Error" node to raise
13164         Program_Error if an exception is propagated from an Adjust or Finalize
13165         operation.
13166         (Insert_Actions_In_Scope_Around): If the statement to be wrapped
13167         appears in the optional statement list of a triggering alternative, the
13168         scope actions can be inserted directly there, and not in the list that
13169         includes the asynchronous select itself.
13170
13171 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13172             Robert Dewar  <dewar@adacore.com>
13173             Hristian Kirtchev  <kirtchev@adacore.com>
13174
13175         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
13176         generated exception handler appropriately when debugging generated code.
13177         Deal properly with No_Exception_Propagation restriction mode.
13178         (Expand_N_Abort_Statement): Add an unchecked type conversion from
13179         System.Address to System.Tasking.Task_Id when processing the result of
13180         the predefined primitive _disp_get_task_id.
13181         (Expand_N_Asynchronous_Select): Clarify comment.
13182         (Expand_N_Protected_Type_Declaration): Minor code cleanup.
13183         (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
13184         (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
13185         (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
13186         privals and for generated call to Complete_Entry_Body, for better gdb
13187         behavior.
13188         (Copy_Result_Type): Utility to construct a parameter and result profile
13189         for protected functions whose return type is an anonymous access to
13190         subprogram.
13191         (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
13192         call the above.
13193         (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
13194         point when the local-raise-to-goto transformation has taken place.
13195
13196 2007-06-06  Javier Miranda  <miranda@adacore.com>
13197             Nicolas Setton  <setton@adacore.com>
13198
13199         * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
13200         functionality when the backend is generating code.
13201         Otherwise any serious error
13202         reported by the backend calling the frontend routine Error_Msg
13203         changes the Compilation_Mode to Check_Semantics, disables the
13204         functionality of this routine and causes the generation of
13205         spureous additional errors.
13206
13207         * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
13208         debugging information now generated by the compiler for fat-pointer
13209         types.
13210         Document the contents of DW_AT_producer in the GNAT Vendor extensions to
13211         DWARF2/3.
13212         Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
13213
13214 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13215
13216         * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
13217         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
13218         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
13219         For a remote call to a function with a classwide return type, apply an
13220         E.4(18) check to the returned value.
13221         (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
13222         stream attributes of the designated type of an RACW, as they are not
13223         dispatching primitive operations.
13224
13225 2007-06-06  Geert Bosch  <bosch@adacore.com>
13226
13227         * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
13228         negative literal
13229         (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
13230         positive
13231         (Do_Divide_Fixed_Universal): Handle case of negative Frac.
13232         (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
13233         positive
13234         (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
13235
13236 2007-06-06  Javier Miranda  <miranda@adacore.com>
13237
13238         * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
13239         attribute compiling package Ada.Tags under No_Run_Time_Mode.
13240
13241 2007-06-06  Javier Miranda  <miranda@adacore.com>
13242
13243         * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
13244         deallocation of class-wide interface objects.
13245         (Expand_Dispatching_Constructor_Call): Take into account that if the
13246         result of the dispatching constructor is an interface type, the
13247         function returns a class-wide interface type; otherwise the returned
13248         object would be actual. The frontend previously accepted returning
13249         interface types because Expand_Interface_Actuals silently performed
13250         the management of the returned type "as if" it were a class-wide
13251         interface type.
13252         (Expand_Dispatching_Constructor_Call): Replace call to
13253         Make_DT_Access_Action by direct call to Make_Function_Call.
13254
13255 2007-06-06  Robert Dewar  <dewar@adacore.com>
13256             Ed Schonberg  <schonberg@adacore.com>
13257
13258         * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
13259         compute masking constant, since we now set Esize properly to the
13260         underlying size.
13261         (Create_Packed_Array_Type): Set proper Esize value adjusted as required
13262         to match the alignment.
13263         (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
13264         packed arrays of 8 bits or less.
13265
13266         * freeze.adb (Freeze_Entity): When freezing the formals of a
13267         subprogram, freeze the designated type of a parameter of an access type
13268         only if it is an access parameter.
13269         Increase size of C convention enumeration object
13270         (Freeze_Entity, array type case): Make sure Esize value is properly
13271         adjusted for the alignment if it is known.
13272         (Freeze_Entity, array type case): When checking bit packed arrays for
13273         the size being incorrect, check RM_Size, not Esize.
13274         (Freeze_Record_Type): Check for bad discriminated record convention
13275         (In_Exp_Body): Return true if the body is generated for a subprogram
13276         renaming, either an attribute renaming or a renaming as body.
13277         (Check_Itype): If the designated type of an anonymous access component
13278         is a non-protected subprogram type, indicate that it is frozen, to
13279         prevent out-of-scope freeze node at some subsequent call.
13280         (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
13281         only if the subprogram is neither imported nor exported, as well as the
13282         NCA descriptor class if the subprogram is exported.
13283
13284 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13285             Arnaud Charlet  <charlet@adacore.com>
13286             Robert Dewar  <dewar@adacore.com>
13287             Gary Dismukes  <dismukes@adacore.com>
13288
13289         * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
13290         default initialization on an imported object, when there is no
13291         initialization call generated for it.
13292         (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
13293         restriction
13294
13295         * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
13296         Static_Elaboration_Desired.
13297         Remove pragma Thread_Body.
13298         Implement a new pragma No_Body
13299         Removes the Explicit_Overriding pragma
13300         Remove Optional_Overriding pragma
13301         (Prag): Deal with Universal_Aliasing.
13302         (Name_CIL, Name_CIL_Constructor, Convention_CIL,
13303         Pragma_CIL_Constructor): New names.
13304
13305         * sem_cat.adb (Validate_Object_Declaration): An initialization that
13306         uses the equivalent aggregate of a type must be treated as an implicit
13307         initialization.
13308         (Get_Categorization): Check a unit for pragma Preelaborate only if it
13309         has none of the other categories.
13310         (Process_Import_Or_Interface_Pragma): Report an error for an attempt
13311         to apply Import to an object renaming declaration.
13312
13313         * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
13314         from a C++ class should be declared as limited and that it will be
13315         considererd limited.
13316         (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
13317         should be declared as limited and that it will be considererd limited.
13318         (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
13319         (Analyze_Pragma, case Export): Diagnose export of enumeration literal
13320         (Analyze_Pragma): Deal with Universal_Aliasing.
13321         (Sig_Flags): Likewise.
13322         (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
13323         (Overflow_Checks_Unsuppressed): New flag.
13324         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
13325         (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
13326         case of JVM or .NET targets, and compiling user code.
13327         Add debugging convenience routine rv
13328
13329 2007-06-06  Robert Dewar  <dewar@adacore.com>
13330
13331         * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
13332         are interface type.
13333         (Build_Elementary_Input_Call): For floating-point use right type in the
13334         absence of strange size or stream size clauses.
13335         (Build_Elementary_Write_Call): Same fix
13336         (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
13337         set to value that does not match base type size.
13338
13339 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13340
13341         * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
13342         object of a limited type can be initialized with a call to a function
13343         that returns in place. If the limited type has unknown discriminants,
13344         and the underlying type is a constrained composite type, build an actual
13345         subtype from the function call, as is done for private types.
13346         (Side_Effect_Free): An expression that is the renaming of an object or
13347         whose prefix is the renaming of a object, is not side-effect free
13348         because it may be assigned through the renaming and its value must be
13349         captured in a temporary.
13350         (Has_Controlled_Coextensions): New routine.
13351         (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
13352         as is done for other limited types.
13353         (Non_Limited_Designated_Type): new predicate.
13354         (Make_CW_Equivalent_Type): Modified to handle class-wide interface
13355         objects.
13356         Remove all handling of with_type clauses.
13357
13358         * par-ch10.adb: Remove all handling of with_type clauses.
13359
13360         * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
13361         checksum if the main source could not be parsed.
13362         (Loat_Unit): When processing a child unit, determine properly whether
13363         the parent unit is a renaming when the parent is itself a child unit.
13364         Remove handling of with_type clauses.
13365
13366         * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
13367         (Set_Is_Static_Coextension): New procedure.
13368         (Has_Local_Raise): New function
13369         (Set_Has_Local_Raise): New procedure
13370         (Renaming_Exception): New field
13371         (Has_Init_Expression): New flag
13372         (Delay_Finalize_Attach): Remove because flag is obsolete.
13373         (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
13374         Remove all handling of with_type clauses.
13375         (Exception_Junk): Can now be set in N_Block_Statement
13376
13377 2007-06-06  Vincent Celier  <celier@adacore.com>
13378             Robert Dewar  <dewar@adacore.com>
13379
13380         * frontend.adb (Frontend): Return immediately if the main source could
13381         not be parsed, because of preprocessing errors.
13382
13383         * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
13384         (Gnat1drv): Exit with errors if the main source could not be parsed,
13385         because of preprocessing errors.
13386         (Check_Rep_Info): New procedure
13387
13388 2007-06-06  Robert Dewar  <dewar@adacore.com>
13389
13390         * g-hesorg.ads, g-heasor.ads,
13391         g-busorg.ads, g-bubsor.ads: Update documentation
13392         GNAT.Heap/Bubble_Sort_G is now pure
13393
13394 2007-06-06  Robert Dewar  <dewar@adacore.com>
13395
13396         * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
13397
13398 2007-06-06  Robert Dewar  <dewar@adacore.com>
13399             Ed Schonberg  <schonberg@adacore.com>
13400
13401         * g-comlin.ads, g-comlin.adb: 
13402         Add new warning for renaming of function return objects
13403
13404         * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
13405         (Tree_Read): Use size of object instead of type'object_size, since the
13406         latter is incorrect for packed array types.
13407         (Tree_Write): Same fix
13408
13409         * opt.ads: Add new warning for renaming of function return objects
13410         (Generating_Code): New boolean variable used to indicate that the
13411         frontend as finished its work and has called the backend to process
13412         the tree and generate the object file.
13413         (GCC_Version): Is now private
13414         (Static_Dispatch_Tables): New constant declaration.
13415         (Overflow_Checks_Unsuppressed): New flag.
13416         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
13417         (List_Closure): New flag for gnatbind (-R)
13418         Zero_Formatting: New flag for gnatbind (-Z)
13419         (Special_Exception_Package_Used): New flag.
13420         (Warn_On_Unrepped_Components): New flag.
13421
13422         * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
13423         unit is a compilation unit, rather than relying on its scope, so that
13424         Standard can be renamed.
13425         (Analyze_Object_Renaming): Add new warning for renaming of function
13426         return objects.
13427         Also reject attempt to rename function return object in Ada 83 mode.
13428         (Attribute_Renaming): In case of tagged types, add the body of the
13429         generated function to the freezing actions of the type.
13430         (Find_Type): A protected type is visible right after the reserved word
13431         "is" is encountered in its type declaration. Set the entity and type
13432         rather than emitting an error message.
13433         (New_Scope): Properly propagate Discard_Names to inner scopes
13434         (Check_Nested_Access): New procedure.
13435         (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
13436         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
13437
13438         * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
13439         Add new warning for renaming of function return objects
13440         (Check_References): Suppress warnings for objects whose type or
13441         base type has Warnings suppressed.
13442         (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
13443         (Set_Warning_Switch): Include new -gnatwc in -gnatwa
13444
13445 2007-06-06  Vincent Celier  <celier@adacore.com>
13446             Emmanuel Briot  <briot@adacore.com>
13447             Olivier Hainque  <hainque@adacore.com>
13448
13449         * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
13450         absolute value of Header.Block_Size when displaying the freed physical
13451         memory in traces.
13452         (Allocate): Compute Storage_Address using Integer_Address, not
13453         Storage_Offset, because the range of Storage_Offset may not be large
13454         enough.
13455         (Configure): New parameter Low_Level_Traces
13456         (Allocate, Deallocation, Free_Physically): Added low-level traces
13457         (Configure): new parameter Errors_To_Stdout.
13458         (Output_File): new subprogram
13459         (Deallocate, Dereference): Send error messages to the proper stream
13460         (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
13461         documented. Previous code would send it to the current output file
13462         defined in GNAT.IO, which might not be stdout
13463         (Is_Valid): Adjust comment to mention that a positive reply means that
13464         Header_Of may be used to retrieve the allocation header associated with
13465         the subprogram Storage address argument. Return False early if this
13466         address argument is misaligned.
13467
13468 2007-06-06  Vincent Celier  <celier@adacore.com>
13469
13470         * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
13471         switch -P
13472         (ASIS_Main): New global variable
13473         (Get_Closure): New procedure
13474         (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
13475         check, metric or pretty. Call Get_Closure in this case.
13476         (Check_Files): For GNAT LIST, check all sources of all projects when
13477         All_Projects is True.
13478         (GNATCmd): Accept -U for GNAT LIST
13479
13480 2007-06-06  Vincent Celier  <celier@adacore.com>
13481
13482         * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
13483         has been specified
13484         Correct error message when invocation of the linker fails
13485         Add explicit size clause for the C imported variables
13486         Object_List_File_Supported and Using_GNU_Linker to emphasize that
13487         we expect char size.
13488         Read target parameters earlier, since this is needed to set
13489         Target_VM properly. Also do not use -static/shared-libgcc for non GCC
13490         targets.
13491
13492 2007-06-06  Vincent Celier  <celier@adacore.com>
13493
13494         * gnatls.adb: 
13495         Add 3 spaces before the default project directory when displaying
13496         the project search path.
13497         Add new command line switch '-l' to display license information.
13498
13499 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
13500
13501         * gmem.c: Add support for timestamps on memory operations.
13502
13503         * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
13504         operations (not used currently, just foundation for future
13505         enhancements). Add possibility to perform full dump of gmem.out file.
13506         (Print_Back_Traces): Declare accesses to root arrays constants since
13507         they aren't modified.
13508         (Print_Back_Traces): allocate root arrays on the heap rather than stack.
13509
13510 2007-06-06  Vincent Celier  <celier@adacore.com>
13511
13512         * gnatsym.adb: Update Copyright notice
13513         (Parse_Cmd_Line): Accept new switch -D
13514         (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
13515          file.
13516
13517         * prj.ads (Policy): New policy Direct
13518         (Yes_No_Unknown): New enumeration type
13519         (Project_Data): New component Libgnarl_Needed
13520
13521         * prj-nmsc.adb (Check_For_Source): When recording a source file make
13522         use the untouched pathname casing.
13523         (Get_Directories): Ensure that the Display_Exec_Directory is using the
13524         proper casing on non case-sensitive platforms like Windows.
13525         (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
13526         on all platforms, as it is not possible to know which one is allowed
13527         before processing the project files.
13528         (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
13529         specified when symbol policy is Direct. Check that when there is a
13530         symbol file defined (either by default or with attribute
13531         Library_Symbol_File) it is not the same as the reference symbol file.
13532         (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
13533         (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
13534         extending projects.
13535         (Record_Ada_Source): Record a source that has been locally removed in an
13536         imported project.
13537
13538         * symbols.ads (Policy): New policy Direct
13539
13540         * symbols-vms.adb (Initialize): Take new policy Direct in case
13541         statement
13542
13543 2007-06-06  Vincent Celier  <celier@adacore.com>
13544
13545         * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
13546         Correct obvious bug (return Dir; instead of return Directory;).
13547         (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
13548
13549 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13550
13551         * g-pehage.adb (Produce): Open output files in Binary mode, so that
13552         they have UNIX line endings (LF only) even on Windows, and thus pass
13553         all GNAT style checks.
13554
13555 2007-06-06  Emmanuel Briot  <briot@adacore.com>
13556
13557         * g-regpat.adb (Quote): Fix improper quoting of '.'
13558
13559 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13560
13561         * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
13562         default, set False on a per-runtime basis.
13563         (Need_Netdb_Buffer): New constant.
13564
13565         * g-socket.ads, g-socket.adb: Import new package
13566         GNAT.Sockets.Thin.Task_Safe_NetDB.
13567         (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
13568         binding to obtain proper message.
13569         (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
13570         Replace various occurrences of Arry (Arry'First)'Address with the
13571         equivalent Arry'Address (GNAT always follows implementation advice from
13572         13.3(14)).
13573         (Get_Host_By_Address, Get_Host_By_Name,
13574         Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
13575         instead, rely on platform-specific task safe netdb operations provided
13576         by g-socthi.
13577
13578         * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
13579         parameter Process_Blocking_IO.
13580         (Host_Error_Messages): Add stub body.
13581         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
13582         (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
13583         Safe_Getservbyport): Move functions into new child package
13584         Task_Safe_NetDB.
13585         (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
13586         Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
13587         (In_Addr): Add alignment clause.
13588
13589 2007-06-06  Robert Dewar  <dewar@adacore.com>
13590
13591         * g-trasym.ads, g-traceb.ads: Update list of supported targets
13592         Add note about symbolic traceback
13593
13594 2007-06-06  Pascal Obry  <obry@adacore.com>
13595
13596         * hostparm.ads (Normalized_CWD): Use the host directory separator
13597         instead of the hardcoded forward slash which is not the proper
13598         character on Windows for example.
13599         (Java_VM): Removed.
13600
13601 2007-06-06  Vincent Celier  <celier@adacore.com>
13602             Arnaud Charlet  <charlet@adacore.com>
13603
13604         * a-clrefi.adb, a-clrefi.ads: New files
13605
13606         * impunit.adb: Add s-os_lib in the list of user visible units.
13607         (Non_Imp_File_Names_95): Add a-clrefi to this list
13608         Remove obsolete run-time entries.
13609         (Non_Imp_File_Names_05): Add Ada 2005 entries for:
13610          "a-exetim" -- Ada.Execution_Time
13611          "a-extiti" -- Ada.Execution_Time.Timers
13612
13613         * mlib-prj.ads, mlib-prj.adb
13614         (Build_Library): Use untouched object dir and library dir. At the
13615         same time makes sure that the checks are done using the canonical
13616         form. Removes hard-coded directory separator and use the proper host
13617         one instead.
13618         (Process_Project): Do not look in object directory to check if libgnarl
13619         is needed for a library, if there is no object directory.
13620         (Build_Library): Scan the ALI files to decide if libgnarl is needed for
13621         linking.
13622         (Build_Library): When invoking gnatbind, use a response file if the
13623         total size of the arguments is too large.
13624
13625         * Makefile.rtl: (g-sttsne): New object file.
13626         Add entry for a-clrefi, s-utf_32, System.Exceptions
13627
13628         * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
13629         (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
13630         (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
13631         Change g-string to s-string, g-os_lib to s-os_lib
13632         Change all g-utf_32 references to s-utf_32
13633
13634 2007-06-06  Tristan Gingold  <gingold@adacore.com>
13635             Olivier Hainque  <hainque@adacore.com>
13636
13637         * init.c: Do not adjust IP of an imported VMS exception of ia64.
13638         LIB$STOP is called to raise an exception and the IP of the exception
13639         is the instruction right after the call.
13640         (__gnat_adjust_context_for_raise, AIX): Implement.
13641         (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
13642          adjust_context_for_raise before Raise_From_Signal_Hanler.
13643         (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
13644         siginfo is passed to the handler, necessary to let the zcx propagation
13645         engine unwind past it.
13646
13647 2007-06-06  Olivier Hainque  <hainque@adacore.com>
13648
13649         * initialize.c (__gnat_initialize for vxworks):  Update documentation
13650         on the ZCX support, using different sets of crtstuff objects than with
13651         GCC 3.4.
13652
13653 2007-06-06  Robert Dewar  <dewar@adacore.com>
13654
13655         * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
13656         spec from body
13657         (Layout_Type): Fix recomputation of size from alignment.
13658
13659 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13660             Javier Miranda  <miranda@adacore.com>
13661
13662         * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
13663         association in an instance.
13664         (Copy_Generic_Node): If the node is a string literal, no need to copy
13665         its descendants.
13666         (Is_Generic_Formal): For a formal subprogram, the declaration is the
13667         grandparent of the entity.
13668         (Analyze_Formal_Interface_Type): Transform into a full type declaration,
13669         to simplify handling of formal interfaces that derive from other formal
13670         interfaces.
13671         (Instantiate_Subprogram_Body): The defining unit name of the body of
13672         the instance should be a defining identifier.
13673         (Install_Formal_Packages): make global to the package, for use in
13674         instantiations of child units.
13675         (Analyze_Package_Instantiation): Do not attempt to set information on an
13676         enclosing master of an entry when expansion is disabled.
13677         (Instantiate_Type): If the actual is a tagged synchronized type and the
13678         generic ancestor is an interface, create a generic actual for the
13679         corresponding record.
13680         (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
13681         declaration, to ensure that the interface list is processed correctly.
13682         (Inline_Instance_Body): If enclosing scope is an instance body, remove
13683         its entities from visibiility as well.
13684         (Pre_Analyze_Actuals): if the actual is an allocator with  constraints
13685         given with a named association, analyze the expression only, not the
13686         discriminant association itself.
13687         (Reset_Entity): If the analysis of a selected component is transformed
13688         into an expanded name in the prefix of a call with parameters, do not
13689         transform the original node into an expanded name, to prevent visibility
13690         errors in the case of nested generics.
13691         (Check_Private_View): For an array type, check whether the index types
13692         may need exchanging.
13693
13694 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
13695             Vincent Celier  <celier@adacore.com>
13696
13697         * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
13698         since both are separated.
13699         Add support for imported CIL packages.
13700         Add further special handling of "value_type" for CIL.
13701         Add special handling of pragma Import for CIL.
13702
13703         * make.ads, make.adb: When switch -eS is used, direct all outputs to
13704         standard output instead of standard error, except errors.
13705         (Absolute_Path): Use untouched casing for the parent directory.
13706         (Add_Library_Search_Dir): Use the untouched directory name.
13707         (Add_Source_Search_Dir): Idem.
13708         (Change_To_Object_Directory): Update output to use proper casing.
13709         (Create_Binder_Mapping_File): Use the untouched filename to set
13710         ALI_Name.
13711         (Gnatmake): Use untouched library and executable directory names.
13712         (Insert_Project_Sources): Use untouched filename for spec and body.
13713         (Is_In_Object_Directory): Use untouched object directory.
13714         (Mark_Directory): Idem.
13715         (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
13716         contains the non-canonical filename in all cases.
13717         (Change_To_Object_Directory): In verbose mode, display the name of the
13718         object directory we're changing to.
13719         (Compile_Sources): Make sure, when a project file is used, to compile
13720         the body of the unit, when there is one, even when only the spec is
13721         recorded in an ALI file.
13722         (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
13723         spec to the body.
13724         (Report_Compilation_Failed): New procedure
13725         (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
13726         procedures moved from the spec to the body.
13727         (Extract_Failure): Removed, not used
13728         Replace explicit raises of exception Bind_Failed and Link_Failed with
13729         calls to Make_Failed with the proper message.
13730         Replace explicit raises of exception Compilation_Failed with calls to
13731         procedure Report_Compilation_Failed.
13732         (Initialize): Create mapping files unconditionally when using project
13733         files.
13734
13735         * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
13736         Pragma_CIL_Constructor): New names.
13737
13738         * targparm.ads, targparm.adb
13739         (Compiler_System_Version): Removed, no longer used.
13740         (Get_Target_Parameters): Relax checks on system.ads validity. Add
13741         handling of two new system flags: JVM and CLI.
13742
13743 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
13744             Arnaud Charlet  <charlet@adacore.com>
13745
13746         * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
13747         time, use the default s-interr body that provides interrupt support
13748         based on signals.
13749         (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
13750         a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
13751         g-soccon.ads, and s-taprop.adb for the marte run time.
13752         (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
13753         timers are supported on marte.
13754         (EH_MECHANISM for marte): Do not use ZCX.
13755         (THREADSLIB for marte): Use -lmarte.
13756         Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
13757         Add mlib-tgt-specific.o to gnatmake objects
13758         mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
13759         longer of MLib.Tgt.
13760         (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
13761         6, either kernel or rtp, use a specialized version of s-osinte.ads.
13762
13763 2007-06-06  Pascal Obry  <obry@adacore.com>
13764
13765         * mkdir.c (__gnat_mkdir): Add support for UTF-8.
13766
13767 2007-06-06  Vincent Celier  <celier@adacore.com>
13768
13769         * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
13770         separator, use instead the proper host directory separator.
13771         (Copy_ALI_Files): Make sure that an already existing ALI file in the
13772         ALI copy dir is writable, before doing the copy.
13773
13774         * mlib-utl.ads, mlib-utl.adb: 
13775         (Gcc): If length of command line is too long, put the list of object
13776         files in a response file, if this is supported by the platform.
13777         (Ar): If invocation of the archive builder is allowed to be done in
13778         chunks and building it in one shot would go above an OS dependent
13779         limit on the number of characters on the command line, build the archive
13780         in chunks.
13781
13782 2007-06-06  Vincent Celier  <celier@adacore.com>
13783
13784         * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
13785         of specified object file is not equal to base name of source.
13786
13787 2007-06-06  Javier Miranda  <miranda@adacore.com>
13788             Hristian Kirtchev  <kirtchev@adacore.com>
13789             Ed Schonberg  <schonberg@adacore.com>
13790
13791         * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
13792         the full type declaration.
13793         (Analyze_Component_Declaration): Add local variable E to capture the
13794         initialization expression of the declaration. Replace the occurences of
13795         Expression (N) with E.
13796         (OK_For_Limited_Init_In_05): Allow initialization of class-wide
13797         limited interface object with a function call.
13798         (Array_Type_Declaration): If the declaration lacks subtype marks for
13799         indices, create a simple index list to prevent cascaded errors.
13800         (Is_Null_Extension): Ignore internal components created for secondary
13801         tags when checking whether a record extension is a null extension.
13802         (Check_Abstract_Interfaces): Add missing support for interface subtypes
13803         and generic formals.
13804         (Derived_Type_Declaration): Add missing support for interface subtypes
13805         and generic formals.
13806         (Analyze_Object_Declaration): If an initialization expression is
13807         present, traverse its subtree and mark all allocators as static
13808         coextensions.
13809         (Add_Interface_Tag_Component): When looking for components that may be
13810         secondary tags, ignore pragmas that can appear within a record
13811         declaration.
13812         (Check_Abstract_Overriding): an inherited function that dispatches on
13813         result does not need to be overriden if the controlling type is a null
13814         extension.
13815         (Mentions_T): Handle properly a 'class attribute in an anonymous access
13816         component declaration, when the prefix is an expanded name.
13817         (Inherit_Component): If the derivation is for a private extension,
13818         inherited components remain visible and their ekind should not be set
13819         to Void.
13820         (Find_Type_Of_Object): In the case of an access definition, always set
13821         Is_Local_Anonymous_Access. We were previously not marking the anonymous
13822         access type of a return object as a local anonymous type.
13823         (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
13824         range with character literal bounds.
13825         (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
13826         (Access_Subprogram_Declaration): Indicate that the type declaration
13827         depends on an incomplete type only if the incomplete type is declared
13828         in an open scope.
13829         (Analyze_Subtype_Declaration): Handle properly subtypes of
13830         synchronized types that are tagged, and that may appear as generic
13831         actuals.
13832         (Access_Subprogram_Declaration): An anonymous access to subprogram can
13833         appear as an access discriminant in a private type declaration.
13834         (Add_Interface_Tag_Components): Complete decoration of the component
13835         containing the tag of a secondary dispatch table and the component
13836         containing the offset to the base of the object (this latter component
13837         is only generated when the parent type has discriminants --as documented
13838         in this routine).
13839         (Inherit_Components): Use the new decoration of the tag components to
13840         improve the condition that avoids inheriting the components associated
13841         with secondary tags of the parent.
13842         (Build_Discriminanted_Subtype): Indicate to the backend that the
13843         size of record types associated with dispatch tables is known at
13844         compile time.
13845         (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
13846         (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
13847         to include task, protected, and synchronized interfaces as limited
13848         interfaces.
13849         (Process_Discriminants): Remove the setting of
13850         Is_Local_Anonymous_Access on the type of (anonymous) access
13851         discriminants of nonlimited types.
13852         (Analyze_Interface_Type_Declaration): Complete the decoration of the
13853         class-wide entity it is is already present. This situation occurs if
13854         the limited-view has been previously built.
13855         (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
13856         field.
13857         (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
13858         Related_Interface.
13859
13860 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13861
13862         * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
13863         of the type that specify the position of interface tags when the type
13864         inherits discriminated array components from the parent type.
13865         If a component is initialized with a box, check for the presence of a
13866         default expression in its declaration before using its default
13867         initialization procedure.
13868         (Resolve_Record_Aggregate): If a component is box-initialized, and the
13869         component type has a discriminants, create a partial aggregate for it
13870         by copying the discriminants of the component subtype.
13871         Reject attempt to initialize a discriminant with a box.
13872         (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
13873         associated with dispatch tables is known at compile time.
13874         (Get_Value): If an association in a record aggregate has a box
13875         association, and the corresponding record component has a default
13876         expression, always copy the default expression, even when the
13877         association has a single choice, in order to create a proper
13878         association for the expanded aggregate.
13879
13880 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13881             Robert Dewar  <dewar@adacore.com>
13882
13883         * par-ch12.adb (P_Generic_Associations): The source position of an
13884         Others association is that of the others keyword, not that of the token
13885         that follows the box.
13886         (P_Formal_Type_Definition): Handle formal access types that carry a
13887         not null indicator.
13888
13889         * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
13890         multiple identifier are present, save Scan_State before scanning the
13891         colon, to ensure that separate trees are constructed for each
13892         declaration.
13893         (P_Identifier_Declarations): For object declaration, set new flag
13894         Has_Init_Expression if initialization expression present.
13895         (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
13896         Improve NOT NULL error messages
13897
13898 2007-06-06  Robert Dewar  <dewar@adacore.com>
13899
13900         * par-ch4.adb: (P_Name): Recover from literal used as name
13901
13902 2007-06-06  Vincent Celier  <celier@adacore.com>
13903
13904         * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
13905         defaulted to False.
13906         In the "not" case, recursive call with Complemented set to True.
13907         Do not allow "or" or "and" operators when Complemented is True.
13908
13909 2007-06-06  Vincent Celier  <celier@adacore.com>
13910
13911         * prj.adb (Project_Empty): Gives default value for new component
13912         Libgnarl_Needed
13913
13914         * prj-attr.ads: Minor reformatting
13915
13916         * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
13917         directory using the untouched casing.
13918         (For_All_Source_Dirs): Idem.
13919
13920         * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
13921         directories specified with switches -aP.
13922         (Add_Search_Project_Directory): New procedure
13923         (Initialize_Project_Path): Put the directories in table
13924         Search_Directories in the project search path.
13925         (Initialize_Project_Path): For VMS, transform into canonical form the
13926         project path.
13927
13928 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
13929
13930         * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
13931         true if configurable run-time or No_Run_Time is set.
13932         (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
13933         processing an unit which is not the one being compiled.
13934
13935 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
13936
13937         * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
13938         Replace UC by Ada.UC
13939
13940         * s-bitops.adb: Get rid of System.Pure_Exceptions.
13941         Replace UC by Ada.UC
13942
13943 2007-06-06  Robert Dewar  <dewar@adacore.com>
13944
13945         * scng.adb: (Check_End_Of_Line): Deal with very long lines
13946
13947 2007-06-06  Robert Dewar  <dewar@adacore.com>
13948
13949         * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
13950         Remove no longer used nodes.
13951
13952 2007-06-06  Javier Miranda  <miranda@adacore.com>
13953             Ed Schonberg  <schonberg@adacore.com>
13954             Robert Dewar  <dewar@adacore.com>
13955
13956         * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
13957         on obsolescent withed unit in case of limited-withed units.
13958         (Analyze_Compilation_Unit): Add guard to code that removed an
13959         instantiation from visibility, to prevent compiler aborts when
13960         instantiation is abandoned early on.
13961         (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
13962         current unit being analyzed, and Distinguish local incomplete types
13963         from limited views of types declared elsewhere.
13964         (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
13965         to state that the class-wide entity is shared by the limited-view
13966         and the full-view.
13967         (Analyze_With_Clause): Improve placement of flag for case of
13968         unimplemented unit.
13969         (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
13970         manner similar to GNAT.Current_Exception. This is a violation of
13971         restriction (No_Exception_Propagation), and also inhibits the
13972         optimization of local raise to goto.
13973         (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
13974         and if so set Most_Recent_Exception_Used flag in Opt, and also check
13975         for violation of restriction No_Exception_Propagation.
13976
13977 2007-06-06  Javier Miranda  <miranda@adacore.com>
13978             Hristian Kirtchev  <kirtchev@adacore.com>
13979             Gary Dismukes  <dismukes@adacore.com>
13980
13981         * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
13982         use of entity Exception_Occurrence if it is not available in the
13983         target run-time.
13984
13985         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
13986         concurrent types are declared within an Ada 2005 generic, build their
13987         corresponding record types since they are needed for overriding-related
13988         semantic checks.
13989         (Analyze_Protected_Type): Rearrange and simplify code for testing that a
13990         protected type does not implement a task interface or a nonlimited
13991         interface.
13992         (Analyze_Task_Type): Rearrange and simplify code for testing that a task
13993         type does not implement a protected interface or a nonlimited interface.
13994         (Single_Task_Declaration, Single_Protected_Declaration): use original
13995         entity for variable declaration, to ensure that debugging information
13996         is correcty generated.
13997         (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
13998         routines if the expander is not active.
13999         (Analyze_Task_Body): Mark all handlers to stop optimization of local
14000         raise, since special things happen for task exception handlers.
14001
14002         * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
14003         concurrent types declared within a generic.
14004         (Check_Dispatching_Operation): Do not emit warning about late interface
14005         operations in the context of an instance.
14006         (Check_Dispatching_Call): Remove restriction against calling a
14007         dispatching operation with a limited controlling result.
14008         (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
14009         Register_Interface_DT_Entry by calls to Register_Primitive.
14010         (Check_Dispatching_Formals): Handle properly a function with a
14011         controlling access result.
14012
14013 2007-06-06  Robert Dewar  <dewar@adacore.com>
14014             Arnaud Charlet  <charlet@adacore.com>
14015
14016         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
14017         Check for restriction No_Implementation_Attributes if in Ada 95 mode.
14018         (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
14019         (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
14020         message when using a VM, since this attribute is not supported.
14021         (Analyze_Record_Representation_Clause): Give unrepped component warnings
14022
14023         * usage.adb: Add new warning for renaming of function return objects
14024         Indicate that -gnatwp and -gnatwP concern front-end inlining
14025         Add line for -gnatyg
14026         Add usage information for -gnatw.c/C
14027
14028 2007-06-06  Robert Dewar  <dewar@adacore.com>
14029             Ed Schonberg  <schonberg@adacore.com>
14030
14031         * sem_ch5.adb
14032         (Find_Var): Do not consider function call in test for infinite loop
14033         warning if warnings set off for function entity.
14034         (One_Bound): Do not create a temporary for a loop bound if it is a
14035         character literal.
14036         (Analyze_Assignment): Traverse the right hand side of an assignment and
14037         mark all allocators as static coextensions.
14038         (Analyze_Assignment): Exempt assignments involving a dispatching call
14039         to a function with a controlling access result from the check requiring
14040         the target to be class-wide.
14041
14042 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
14043             Ed Schonberg  <schonberg@adacore.com>
14044             Robert Dewar  <dewar@adacore.com>
14045             Javier Miranda  <miranda@adacore.com>
14046
14047         * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
14048         chain of coextensions when an allocator serves as the root of such a
14049         chain.
14050         (Propagate_Coextensions): Remove the test for the root being an
14051         allocator.
14052         (Resolve_Allocator): Add condition to ensure that all future decoration
14053         occurs on an allocator node. Add processing and cleanup for static
14054         coextensions.
14055         (Valid_Conversion): If the operand type is the limited view of a
14056         class-wide type, use the non-limited view is available to determine
14057         legality of operation.
14058         (Ambiguous_Character): move to spec, for use elsewhere.
14059         (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
14060         (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
14061         character literals.
14062         (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
14063         Do_Division_Check flag explicitly.
14064         (Resolve_Actuals): If the actual is of a synchronized type, and the
14065         formal is of the corresponding record type, this is a call to a
14066         primitive operation of the type, that is declared outside of the type;
14067         the actual must be unchecked-converted to the type of the actual
14068         (Resolve_Call): Kill all current values for any subprogram call if
14069         flag Suppress_Value_Tracking_On_Call is set.
14070         (Resolve_Type_Conversion): Generate error message the the operand
14071         or target of interface conversions come from a limited view.
14072         (Check_Infinite_Recursion): Ignore generated calls
14073         (Check_Allocator_Discrim_Accessibility): New procedure for checking
14074         that an expression that constrains an access discriminant in an
14075         allocator does not denote an object with a deeper level than the
14076         allocator's access type.
14077         (Resolve_Allocator): In the case of an allocator initialized by an
14078         aggregate of a discriminated type, check that associations for any
14079         access discriminants satisfy accessibility requirements by calling
14080         Check_Allocator_Discrim_Accessibility.
14081         (Resolve_Equality_Op): Handle comparisons of anonymous access to
14082         subprogram types in the same fashion as other anonymous access types.
14083         (Resolve_Concatenation_Arg): Remove initial character '\' in an error
14084         message that is not a continuation message.
14085         (Resolve_Type_Conversion): Add missing support for conversion to
14086         interface type.
14087         (Resolve_Actuals): Introduce a transient scope around the call if an
14088         actual is a call to a function returning a limited type, because the
14089         resulting value must be finalized after the call.
14090         (Resolve_Actuals): If the call was given in prefix notations, check
14091         whether an implicit 'Access reference or implicit dereference must be
14092         added to make the actual conform to the controlling formal.
14093
14094 2007-06-06  Robert Dewar  <dewar@adacore.com>
14095             Javier Miranda  <miranda@adacore.com>
14096
14097         * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
14098         (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
14099         overriding of an inherited private subprogram now there is no need to
14100         inherit its dispatching slot and reduce the size of the dispatch table.
14101         Set_All_DT_Position now ensures that the same slot is now assigned to
14102         both entities. This is required to statically build the dispatch table.
14103         (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
14104         of calling Set_All_DT_Position to re-evaluate the position of the
14105         entries in the dispatch table. Such reevaluation is not desired if
14106         the tagged type is already frozen.
14107
14108 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
14109             Gary Dismukes  <dismukes@adacore.com>
14110             Robert Dewar  <dewar@adacore.com>
14111             Javier Miranda  <miranda@adacore.com>
14112
14113         * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
14114         reference acts as an lvalue when the attribute name modifies the prefix
14115         (Is_Coextension_Root): New routine.
14116         (Mark_Static_Coextensions): New routine.
14117         (Type_Access_Level): Revise code for checking the level of the
14118         anonymous access type of a return object.
14119         (Safe_To_Capture_Value): Not safe to capture if Address_Taken
14120         (Matches_Prefixed_View_Profile): Remove the no longer necessary
14121         retrieval of the corresponding controlling record type.
14122         (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
14123         concurrent types declared within a generic as well as class wide types.
14124         Emit a mode incompatibility error whenever a protected entry or routine
14125         override an interface routine whose first parameter is not of mode
14126         "out", "in out" or access to variable.
14127         (Overrides_Synchronized_Primitive): Rename to
14128         Find_Overridden_Synchronized_Primitive.
14129         (Collect_Interface_Components): New subprogram that collects all the
14130         components of a tagged record containing tags of secondary dispatch
14131         tables.
14132         (Add_Global_Declaration): New procedure
14133         (Abstract_Interface_List): Handle properly the case of a subtype of a
14134         private extension.
14135         (Type_Access_Level): In the case of a type whose parent scope is a
14136         return statement, call Type_Access_Level recursively on the enclosing
14137         function's result type to determine the level of the return object's
14138         type.
14139         (Build_Elaboration_Entity): Build name of elaboration entity from the
14140         scope chain of the entity, rather than the unit name of the file name.
14141         (Check_Nested_Access): New procedure.
14142         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
14143         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
14144         (Get_Renamed_Entity): Utility routine for performing common operation
14145         of chasing the Renamed_Entity field of an entity.
14146
14147 2007-06-06  Robert Dewar  <dewar@adacore.com>
14148
14149         * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
14150         elaboration model
14151         (Check_A_Call): Add check for entry call which was causing blowup
14152
14153 2007-06-06  Olivier Hainque  <hainque@adacore.com>
14154
14155         * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
14156         special code on ia64-vms to handle major incompatibilities between the
14157         GCC unwinding ABI and the VMS Condition Handling Facility, both calling
14158         this routine with a very different set of arguments and expectations on
14159         the return value.
14160
14161 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14162
14163         * socket.c (__gnat_close_signalling_fd): New function.
14164         (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
14165         __gnat_safe_getservbyname, __gnat_safe_getservbyport):
14166         New supporting functions for task safe Netdb operations.
14167
14168 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14169             Olivier Hainque  <hainque@adacore.com>
14170
14171         * a-except-2005.ads, a-except-2005.adb
14172         (Raise_From_Controlled_Operation): New procedure in
14173         (private part of) Ada.Exceptions (standard runtime version). Used to
14174         provide informational exception message when Program_Error is raised as
14175         a result of an Adjust or Finalize operation propagating an exception.
14176         (Rmsg_28): Fix description for E.4(18) check.
14177         (Raise_Current_Excep): Call Debug_Raise_Exception just before
14178         propagation starts, to let debuggers know about the event in a reliable
14179         fashion.
14180         Take the address of E and dereference to make sure it is homed on stack
14181         and prevent the stores from being deleted, necessary for proper
14182         debugger behavior on "break exception" hits.
14183         (Local_Raise): Moved to System.Exceptions
14184
14185         * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
14186         exception message from the current occurrence and raise Program_Error
14187         has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
14188
14189 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
14190             Arnaud Charlet  <charlet@adacore.com>
14191
14192         * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
14193         lock, if needed.
14194
14195         * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
14196         priority associated to a lock.
14197
14198         * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
14199         assertion to take into account case of no abort restriction.
14200         (Initialize_Protection_Entries): Add initialization for the field
14201         New_Ceiling associated to the protected object.
14202         (Unlock_Entries): Change the ceiling priority of the underlying lock, if
14203         needed.
14204
14205         * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
14206         since this function needs to be set consistently with Update_Exception.
14207
14208         * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
14209         since this function needs to be set consistently with Update_Exception.
14210
14211         * s-taskin.ads: Update comments on
14212         Interrupt_Server_Blocked_On_Event_Flag.
14213         (Unbind_Handler): Fix handling of server_task wakeup
14214         (Server_Task): Set self's state so that Unbind_Handler can take
14215         appropriate actions.
14216         (Common_ATCB): Now use a constant from System.Parameters to determine
14217         the max size of the Task_Image field.
14218
14219         * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
14220         Initialize_Analyzer function.
14221         ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
14222         take into account case of no abort restriction.
14223         ([Vulnerable_]Complete_Master): Modify assertion.
14224
14225         * s-tataat.adb (Finalize): Use the nestable versions of
14226         Defer/Undefer_Abort.
14227
14228         * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
14229
14230         * s-tpobop.ads: Update comments.
14231
14232         * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
14233         of locking the object manually, to avoid inconsistencies between
14234         Lock/Unlock_Entry assertions.
14235
14236         * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
14237         terminating
14238         application and System.Parameters.No_Abort is True.
14239         Update comments on Interrupt_Server_Blocked_On_Event_Flag.
14240         (Unbind_Handler): Fix handling of server_task wakeup
14241         (Server_Task): Set self's state so that Unbind_Handler can take
14242         appropriate actions.
14243
14244 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14245
14246         * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
14247         declarations instead of an explicit null body, for conciseness.
14248
14249 2007-06-06  Robert Dewar  <dewar@adacore.com>
14250
14251         * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
14252         illegal aggregate and the type is still Any_Composite.
14253         (Subtypes_Statically_Match): Fix problem of empty discriminant list
14254
14255 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
14256
14257         * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
14258         to prevent subsequent expansion.
14259
14260 2007-06-06  Robert Dewar  <dewar@adacore.com>
14261
14262         * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
14263
14264 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
14265             Robert Dewar  <dewar@adacore.com>
14266
14267         * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
14268         exceptions.
14269         (Write_Itype): Handle case of string literal subtype, which
14270         comes up in this context.
14271         (Update_Itype): when debugging expanded code, update sloc of itypes
14272         associated with defining_identifiers and ranges, for gdb use.
14273         (Sprint_Node_Actual): Add static keyword to object or exception
14274         declaration output if Is_Statically_Allocated is True.
14275         (Sprint_End_Label): Set entity of end marker for a subprogram, package,
14276         or task body, so that the tree carries the proper Sloc information for
14277         debugging use.
14278         (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
14279
14280 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
14281
14282         * s-secsta.adb (Chunk): Ensure this object has a static size known at
14283         compile time, to avoid dynamic memory allocation
14284         (Elaboration code): Only use dynamic memory allocation when needed.
14285
14286 2007-06-06  Quentin Ochem  <ochem@adacore.com>
14287
14288         * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
14289         "Overflow_Guard".
14290         (Stack_Analyzer): Added field "Overflow_Guard"
14291         (Task_Result): Added field "Overflow_Guard".
14292         (Index_Str): New constant.
14293         (Task_Name_Str): New constant.
14294         (Actual_Size_Str): New constant.
14295         (Pattern_Array_Element_Size): New constant.
14296         (Get_Usage_Range): New subprogram.
14297         (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
14298         Now align the output.
14299         Added comments.
14300         (Initialize): Added value for Overflow_Guard.
14301         (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
14302         Update the value of the overflow guard according to the actual
14303         beginning of the pattern array.
14304         (Initialize_Analyzer): Added parameter Overflow_Guard.
14305         Take this parameter into accound when computing the max size.
14306         (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
14307         (Report_Result): Removed extra useless procedure.
14308         Updated call to Output_Result.
14309         Moved full computation of the Task_Result here.
14310
14311 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14312
14313         * g-soccon-darwin.ads, gen-soccon.c: Add new constant
14314         Thread_Blocking_IO, always True by default, set False on a per-runtime
14315         basis.
14316         Add Windows-specific constants
14317         Add new constant Need_Netdb_Buffer.
14318         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
14319         not, whether to use getXXXbyYYY_r.
14320
14321         * gsocket.h: Add new constant Need_Netdb_Buffer.
14322         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
14323         not, whether to use getXXXbyYYY_r.
14324
14325 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
14326
14327         * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
14328         than their first call.
14329         Add type Dummy_Communication_Block used in the generation of the pre-
14330         defined dispatching primitive _disp_asynchronous_select.
14331         (Storage_Element): Put Pragma Universal_Aliasing on it.
14332
14333 2007-06-06  Vincent Celier  <celier@adacore.com>
14334
14335         * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
14336         function.
14337
14338         * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
14339         letter if it is not followed by a '/' or a '\'.
14340         (Windows): New Boolean function
14341
14342         * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
14343         Ada 2005.
14344         (Containing_Directory): On Windows, keep at least one '/' or '\' after a
14345         drive letter.
14346         (Containing_Directory): Raise Use_Error when the directory is a root
14347         directory.
14348         (Extension): When returning the result, use a conversion to Result_Type,
14349         not a qualification.
14350
14351 2007-06-06  Robert Dewar  <dewar@adacore.com>
14352
14353         * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
14354         (Set_Style_Check_Options): Recognize new -gnatyg style switch
14355
14356         * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
14357         Warn_On_Non_Local_Exception to False, to turn off warnings for
14358         No_Exception_Propagation in ZFP runtime.
14359         (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
14360         back-ends.
14361         (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
14362
14363 2007-06-06  Vincent Celier  <celier@adacore.com>
14364
14365         * switch-b.adb (Scan_Binder_Switches): Add processing for new
14366         switches -R and -Z
14367
14368         * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
14369         (Scan_Make_Switches): Recognize new switch -aP
14370
14371 2007-06-06  Matthew Gingell  <gingell@adacore.com>
14372             Jose Ruiz  <ruiz@adacore.com>
14373
14374         * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
14375         VxWorks task descriptor in the Ada run time, call a C subprogram
14376         (__gnat_get_stack_info) that extracts the required information.
14377
14378         * sysdep.c: Back out temporary lynxos workaround.
14379         (__gnat_get_stack_info): Add this procedure that passes to the Ada run
14380         time the stack information associated to the currently executing task.
14381         Only VxWorks systems require this function.
14382
14383 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
14384
14385         * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
14386         add the stack bias if the offset is computed from a frame address.
14387         (__gnat_backtrace): Adjust for above change.
14388
14389 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14390
14391         * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
14392         PE_Non_Transportable_Actual.
14393         (By_Descriptor_Last): New constant.
14394         (By_Copy_Return): Likewise.
14395
14396 2007-06-06  Vincent Celier  <celier@adacore.com>
14397
14398         * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
14399         is.
14400
14401         * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
14402         /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
14403         /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
14404         Add missing comment for /OPTIMIZE=SPACE
14405         Add entry for OPTIMIZE=SPACE
14406         Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
14407         Add documentation for new qualifiers corresponding to -gnatw.c/.C
14408
14409 2007-06-06  Vincent Celier  <celier@adacore.com>
14410             Robert Dewar  <dewar@adacore.com>
14411
14412         * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
14413         -gnatw.C)
14414
14415         * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
14416         Document gnatbind switch -a
14417         (case Constructions): Document that variables declarations are allowed
14418         for previously declared variables.
14419         Fix external lib project example
14420         -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
14421         Indicate that "#if not X or Y then" is not allowed in input files to
14422         gnatprep.
14423         Document gnatw.x and gnatw.X warning flags
14424         Mention -Winline switch to activate warnings when back-end inlining is
14425         ineffective.
14426         Add gnatcheck rule descriptions
14427         Describe how to use the GNAT driver to call a tool on a closure.
14428         Describe how to run project-wide checks or metrics.
14429         Document gnatbind's -R option
14430         Updated to account for Ada 2005 support
14431
14432         * gnat_rm.texi (Case Construction): Allow variable declarations for
14433         previously declared variables.
14434         (Representation Clauses and Pragmas): Lift restriction on alignment
14435         clauses for record types.
14436         (Ada.Characters.*): Fix typo in reference to A.3.3(27).
14437         Document No_Exception_Propagation restriction
14438         Document No_Body pragma
14439         Updated to account for Ada 2005 support; corrected some typos
14440         (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
14441
14442         * gnat-style.texi: Make it clear that we never use mode IN for
14443         procedures or functions
14444
14445         * ug_words: Add entries for -gnatw.x and -gnatw.X
14446         Add entries for -gnatw.c/.C
14447
14448 2007-06-06  Pascal Obry  <obry@adacore.com>
14449             Vincent Celier  <celier@adacore.com>
14450
14451         * makegpr.adb (Add_Archive_Path): Use untouched object and library
14452         dirs and library name.
14453         (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
14454         comments.
14455         (Build_Library): Idem.
14456         (Compile_Individual_Sources): Idem.
14457         (Compile_Link_With_Gnatmake): Idem.
14458         (Compile_Sources): Idem.
14459         (Get_Imported_Directories): Idem.
14460         (Link_Executables): Idem. Same change for the executable dir.
14461         (Check_Compilation_Needed): C_Source_Path new variable containing
14462         the canonical form of Source_Path to check against the source names
14463         in the dependency file.
14464         (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
14465         verbose mode, display the name of the object directory we're changing
14466         to.
14467         (Saved_Switches): New name of table X_Switches
14468         (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
14469         (Usage): New line for switch -aP
14470         (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
14471         testing if a directory should be added to the search path.
14472
14473 2007-06-06  Javier Miranda  <miranda@adacore.com>
14474
14475         * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads, 
14476         a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
14477         declaration after freezing point of all its associated tagged types;
14478         otherwise such types are frozen too early.
14479
14480 2007-06-06  Robert Dewar  <dewar@adacore.com>
14481
14482         * a-reatim.adb: Documentation addition
14483
14484         * g-cgideb.adb: Minor code reorganization
14485
14486         * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
14487         mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
14488         s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
14489
14490         * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
14491         function.  Change name New_Scope to Push_Scope
14492         (Get_Debug_Flag_K): Remove unused obsolete function.
14493
14494         * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
14495         Push_Scope.
14496
14497         * makeusg.adb: Update Copyright notice
14498         Add line for switch -aP
14499
14500         * makeusg.adb: Fix wording of some usage messages
14501
14502         * s-assert.adb (Raise_Assert_Failure): Add call to
14503         Debug_Raise_Assert_Failure.
14504
14505         * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
14506         (2, Standard'Alignment) for compatibility with AAMP (where alignment
14507         is restricted to 1).
14508
14509         * s-wchjis.adb: Remove use of System.Pure_Exceptions
14510
14511         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
14512         node location to No_Location when we're not debugging the expanded
14513         code.
14514
14515 2007-05-22  Alexandre Oliva  <aoliva@redhat.com>
14516
14517         * misc.c (enumerate_modes): Consider log2_b to always be one.
14518
14519 2007-05-14  Rafael Ávila de Espíndola  <espindola@google.com>
14520
14521         * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
14522
14523 2007-05-02  Pascal Obry  <obry@adacore.com>
14524
14525         * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
14526         to use Stream_IO.File_Type. This is needed to make use of the UTF-8
14527         encoding support of Stream_IO.
14528         (Write_Unit): Idem.
14529
14530         * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
14531         filename and corresponding encoding to match the OS requirement.
14532         (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
14533         routine will fail on specific devices like CON: AUX: ...
14534
14535         PR ada/29856: Add missing braces
14536
14537 2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14538
14539         PR ada/31660
14540         * ada-tree.h (lang_tree_node): Fix typo in chain_next.
14541
14542 2007-04-21  Jan Hubicka  <jh@suse.cz>
14543
14544         * misc.c (gnat_expand_body): Don't call target for destructors,
14545         avoid redundant check on syntax errors.
14546
14547 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14548
14549         * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
14550         instead of checking GIMPLE_STMT_P in chain_next.
14551
14552 2007-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
14553
14554         PR ada/31576
14555         * system-linux-alpha.ads: Disable constant condition warning for the
14556         Default_Bit_Order variable.
14557         * system-linux-s390.ads: Likewise.
14558         * system-linux-s390x.ads: Likewise.
14559         * system-linux-sparc.ads: Likewise.
14560
14561 2007-04-06  Javier Miranda  <miranda@adacore.com>
14562             Matt Heaney  <heaney@adacore.com>
14563             Robert Dewar  <dewar@adacore.com>
14564
14565         a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
14566         a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
14567         a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
14568         a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
14569         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
14570         a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
14571         a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
14572         a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
14573         a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
14574         a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
14575         a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
14576         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
14577         a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
14578         a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
14579         a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
14580         a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
14581         a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
14582         i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
14583         unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
14584         a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
14585         a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
14586         a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
14587         expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
14588         s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
14589         s-taprop-tru64.adb, s-taprop-irix.adb,
14590         s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
14591         s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
14592         s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
14593         s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb, 
14594         s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads, 
14595         a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb, 
14596         a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads, 
14597         g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads, 
14598         s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb, 
14599         s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads, 
14600         s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb, 
14601         s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, 
14602         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb, 
14603         s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb, 
14604         a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads, 
14605         a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads, 
14606         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb, 
14607         a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
14608         a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads, 
14609         a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
14610         access types.
14611         Update documentation.
14612         Minor rewording.
14613
14614 2007-04-06  Robert Dewar  <dewar@adacore.com>
14615
14616         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
14617         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
14618         system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
14619         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
14620         system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
14621         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
14622         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
14623         system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
14624         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
14625         system-hpux-ia64.ads, targparm.adb,
14626         targparm.ads (Functions_Return_By_DSP_On_Target): Removed
14627
14628         * system.ads: Move Functions_Return_By_DSP to obsolete section,
14629         kept for bootstrap purposes only.
14630
14631 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
14632
14633         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
14634         s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
14635         s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
14636         (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
14637
14638 2007-04-06  Robert Dewar  <dewar@adacore.com>
14639
14640         * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
14641         (Local_Raise): New dummy procedure called when a raise is converted
14642         to a local goto. Used for debugger to detect that the exception
14643         is raised.
14644
14645         * debug.adb: Document new d.g flag (expand local raise statements to
14646         gotos even if pragma Restriction (No_Exception_Propagation) is not set)
14647
14648         * exp_sel.adb: Use Make_Implicit_Exception_Handler
14649
14650         * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
14651         suppress warnings for unused handlers.
14652         (Warn_If_No_Propagation):  Use new flag -gnatw.x to suppress
14653         warnings for raise statements not handled locally.
14654         (Get_RT_Exception_Entity): New function
14655         (Get_Local_Call_Entity): New function
14656         (Find_Local_Handler): New function
14657         (Warn_If_No_Propagation): New procedure
14658         (Expand_At_End_Handler): Call Make_Implicit_Handler
14659         (Expand_Exception_Handlers): Major additions to deal with local handlers
14660         (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
14661         Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
14662         for local raise
14663
14664         * exp_ch11.ads (Get_RT_Exception_Entity): New function
14665         (Get_Local_Call_Entity): New function
14666
14667         * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
14668         of restrictions that the binder will never suggest adding.
14669
14670         * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
14671         to No_Elist.
14672
14673         * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
14674         be with'ed in the presence of pragma Restriction
14675         (No_Exception_Propagation).
14676
14677         * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
14678
14679         * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
14680         parameter, then the handler is not a suitable target for a local raise,
14681         and this is a violation of restriction No_Exception_Propagation.
14682         (Analyze_Handled_Statements): Analyze choice parameters in exception
14683         handlers before analyzing statement sequence (needed for proper
14684         detection of local raise statements).
14685         (Analyze_Raise_Statement): Reraise statement is a violation of the
14686         No_Exception_Propagation restriction.
14687
14688         * s-rident.ads: Add new restriction No_Exception_Propagation
14689
14690         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
14691         function, like Make_Exception_Handler but sets Local_Raise_Statements
14692         to No_List.
14693         (Add_Unique_Serial_Number): Deal with case where this is called during
14694         processing of configuration pragmas.
14695
14696 2007-04-06  Thomas Quinot  <quinot@adacore.com>
14697             Pat Rogers  <rogers@adacore.com>
14698             Pascal Obry  <obry@adacore.com>
14699
14700         * g-stsifd-sockets.adb: New file.
14701
14702         * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
14703         g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
14704         g-socthi-vms.adb: Move signalling
14705         fd management to a nested package, so that they can conveniently be
14706         moved to a subunit that is shared across Windows, VMS, and VxWorks
14707         (Ada implementation) or completed with imported bodies from socket.c
14708         (UNIX case).
14709         (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
14710         subprograms.
14711         (Check_Selector): Use Read_Signalling_Fd to read and discard data from
14712         the signalling file descriptor.
14713         (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
14714         signalling file descriptor.
14715         (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
14716         instead of creating a pair of sockets for signalling here.
14717
14718         * g-socthi.adb: Ditto.
14719         Set the runtime process to ignore SIGPIPEs on platforms that support
14720         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
14721
14722         * g-socthi-mingw.adb: Ditto.
14723         (WS_Version): Use Windows 2.2.
14724         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
14725
14726         * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
14727         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
14728
14729         * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
14730         added GNAT byte swapping facility
14731         Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
14732
14733         * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
14734
14735         * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
14736         New subprograms.
14737         (__gnat_create_signalling_fds): New subprogram.
14738         Set the runtime process to ignore SIGPIPEs on platforms that support
14739         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
14740
14741 2007-04-06  Hristian Kirtchev  <kirtchev@adacore.com>
14742             Vincent Celier  <celier@adacore.com>
14743
14744         * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
14745         New version of Ada.Calendar which supports the new upper bound of Ada
14746         time (2399-12-31 86_399.999999999).
14747         The following modifications have been made to the package:
14748          - New representation of time as count of nanoseconds since the start of
14749            Ada time (1901-1-1 0.0).
14750          - Target independent Split and Time_Of routines which service both
14751            Ada 95 and Ada 2005 code.
14752          - Target independent interface to the Ada 2005 children of Calendar.
14753          - Integrated leap seconds into Ada 95 and Ada 2005 mode.
14754          - Handling of non-leap centenial years.
14755          - Updated clock function.
14756          - Updated arithmetic and comparison operators.
14757
14758         * a-caldel.adb (To_Duration): Add call to target independent routine in
14759         Ada.Calendar to handle the conversion of time to duration.
14760
14761         * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
14762         (UTC Offset).
14763         If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
14764         set off to 0.
14765         (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
14766         targets do not have a natural time zone, GMT is used as a default.
14767         (__gnat_get_task_options): New.
14768
14769         * a-direct.adb (Modification_Time): Add with and use clauses for
14770         Ada.Calendar and Ada.
14771         Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
14772         since it is no longer needed.
14773         (Duration_To_Time): Removed.
14774         (OS_Time_To_Long_Integer): Removed.
14775         (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
14776         Formatting Time_Of routines which automatically handle time zones,
14777         buffer periods and leap seconds.
14778
14779         * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
14780         target independent routines in Ada.Calendar.
14781
14782         * a-calfor.ads, a-calfor.adb: 
14783         Code cleanup and addition of validity checks in various routines.
14784         (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
14785         Ada.Calendar.
14786
14787         * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
14788         independent routine in Ada.Calendar.
14789
14790 2007-04-06  Olivier Hainque  <hainque@adacore.com>
14791
14792         * adaint.c: 
14793         (convert_addresses): Adjust prototype and dummy definition to expect an
14794          extra file_name argument.
14795
14796         * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
14797         filling the now expected file_name argument with the appropriate
14798         argv[0] expansion.
14799         (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
14800         (tracebk): Array of void * instead of char *, corresponding to what
14801          convert_addresses expects.
14802         (exename): New static global, to hold the executable file name to be
14803         used in all convert_addresses invocations.
14804         (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
14805         change.
14806         (__gnat_gmem_a2l_initialize): Resolve exename.
14807         (__gnat_convert_addresses): Use exename as the convert_addresses
14808         file_name argument.
14809
14810         * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
14811         "convert_addresses", now expecting a filename argument. Import the
14812         necessary entities to compute the filename to use and pass it to
14813         convert_addresses.
14814
14815 2007-04-06  Matt Gingell  <gingell@adacore.com>
14816
14817         * system-aix.ads: Back out previous change.
14818         (Functions_Return_By_DSP): Removed
14819
14820 2007-04-06  Pascal Obry  <obry@adacore.com>
14821
14822         * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
14823         or the monotonic used by Ada.Real_Time) to compute the sleep duration
14824         on Windows.
14825
14826 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
14827
14828         * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
14829         function. Its value changes in different VxWorks versions, and it is
14830         now handled by the function __gnat_get_task_options.
14831
14832         * s-taprop-vxworks.adb (Create_Task): Call the function
14833         __gnat_get_task_options to get the required options for creating a task.
14834
14835 2007-04-06  Pascal Obry  <obry@adacore.com>
14836             Thomas Quinot  <quinot@adacore.com>
14837
14838         * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
14839         dealing with filename.
14840         (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
14841         filename from a standard string to a wide-string depending on the
14842         encoding value.
14843         (__gnat_freopen): Idem.
14844         (__gnat_current_time): New function (wrapper for time(3) standard C
14845         function).
14846
14847         * g-os_lib.ads (Current_Time): New function. Returns the current
14848         system time as an OS_Time value.
14849
14850         * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
14851         (Monotonic_Clock): Same.
14852
14853 2007-04-06  Quentin Ochem  <ochem@adacore.com>
14854
14855         * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
14856         not on a natural.
14857         (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
14858
14859 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
14860
14861         * a-retide.adb: Add elaboration code to ensure that the tasking run
14862         time is initialized when using delay operations even when no task is
14863         created.
14864
14865 2007-04-06  Javier Miranda  <miranda@adacore.com>
14866
14867         * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
14868         component Num_Prim_Ops.
14869         (Set_Num_Prim_Ops): Removed.
14870         Remove all the assertions because all the routines of this
14871         package are inline always.
14872         (Get_Offset_Index): Add support to primary dispatch tables.
14873         Move the documentation about the dispatch table to a-tags.ads
14874         (Set_External_Tag): Removed
14875         (Inherit_TSD): Removed.
14876         (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
14877         moved to a-tags.ads
14878         (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
14879         Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
14880         of the TSD field "Table" because this field has been renamed to
14881         "Ifaces_Table".
14882         (Inherit_CPP_DT): Removed.
14883         (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
14884         Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
14885         declarations have been moved to a-tags.ads
14886         (Check_Size): Removed.
14887         (Expanded_Name): Updated to get access to the new field of TSD
14888         containing the address of the expanded name.
14889         (Get_Access_Level/Set_Access_Level): Removed.
14890         (Get_Predefined_Prim_Op_Address): Removed.
14891         (Set_Predefined_Prim_Op_Address): Removed.
14892         (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
14893         (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
14894         (Set_Expanded_Name): Removed.
14895         (Inherit_DT): Removed.
14896         (Inherit_CPP_DT): Removed.
14897         (Set_RC_Offset): Removed.
14898         (Set_TSD): Removed.
14899         (Base_Address): New function that displaces "this" to point to the base
14900         of the object (that is, to point to the primary tag of the object).
14901
14902 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14903             Javier Miranda  <miranda@adacore.com>
14904
14905         * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
14906         anonymous access component, do not create a master_id if type already
14907         has one, as may happen if the type is a subcomponent of a packed array
14908         type.
14909         (Build_Init_Procedure, Component_Needs_Simple_Initialization,
14910         Initialize_Tag): Remove code associated with the old CPP pragmas.
14911         CPP_Virtual and CPP_Vtable are no longer supported.
14912         (Build_Offset_To_Top_Internal): Add support for concurrent record types
14913         (Build_Offset_To_Top_Functions): Add support for concurrent record types
14914         (Freeze_Record_Type): Remove call to
14915         Init_Predefined_Interface_Primitives.
14916         (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
14917         code required to initialize the tags of the secondary dispatch tables.
14918         This leaves the algoritm more clear.
14919         (Init_Secondary_Tags): Add support for concurrent record types
14920         (Make_Predefined_Primitive_Specs): Code cleanup.
14921         (Predefined_Primitive_Bodies): Code cleanup.
14922         (Build_Master_Renaming): New local subprogram.
14923         (Expand_N_Full_Type_Declaration): Build the master_id associated with
14924         anonymous access to task type components.
14925         (Expand_N_Subtype_Indication): The bounds of a range constraint in a
14926         subtype indication are resolved during analysis, and must not be done
14927         here.
14928         (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
14929
14930 2007-04-06  Geert Bosch  <bosch@adacore.com>
14931             Ed Schonberg  <schonberg@adacore.com>
14932             Javier Miranda  <miranda@adacore.com>
14933             Bob Duff  <duff@adacore.com>
14934
14935         * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
14936         for conversion of a Float_Type'Truncation to integer.
14937
14938         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
14939         check if a node is an attribute that can be handled directly by the
14940         back end.
14941         (Expand_N_Attribute_Reference): Suppress expansion of floating-point
14942         attributes that can be handled directly by the back end.
14943         (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
14944         use new predicate Is_Access_Protected_Subprogram_Type.
14945         (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
14946         and Unchecked_Union if it is generated as part of the default  Output
14947         procedure for a type with default discriminants.
14948         (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
14949         if we are compiling under restriction No_Dispatching_Calls.
14950         (Constrained): Use Underlying_Type, in case the type is private without
14951         discriminants, but the full type has discriminants.
14952         (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
14953         call to Build_Get_Access_Level.
14954         (Expand_N_Attribute_Reference): The use of 'Address with class-wide
14955         interface objects requires a call to the run-time subprogram that
14956         returns the base address of the object.
14957         (Valid_Conversion): Improve error message on illegal attempt to store
14958         an anonymous access to subprogram value into a record component.
14959
14960         * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
14961         null".
14962         (Simplify_Type_Conversion): New procedure that performs simplification
14963         of Int_Type (Float_Type'Truncation (X)).
14964         (Resolve_Type_Conversion): Call above procedure after resolving operand
14965         and before performing checks. This replaces the existing ineffective
14966         code in Exp_Ch4.
14967         (Set_String_Literal_Subtype): When creating the internal static lower
14968         bound subtype for a string literal, use a newly created copy of the
14969         subtree representing the lower bound.
14970         (Resolve_Call): Exclude build-in-place function calls from transient
14971         scope treatment. Update comments to describe this exception.
14972         (Resolve_Equality_Op): In case of dispatching call check violation of
14973         restriction No_Dispatching_Calls.
14974         (Resolve_Call): If the call returns an array, the context imposes the
14975         component type of the array, and the function has one non-defaulted
14976         parameter, rewrite the call as the indexing of a call with a single
14977         parameter, to handle an Ada 2005 syntactic ambiguity for calls written
14978         in prefix form.
14979         (Resolve_Actuals): If an actual is an allocator for an access parameter,
14980         the master of the created object is the innermost enclosing statement.
14981         (Remove_Conversions): For a binary operator, check if type of second
14982         formal is numeric, to check if an abstract interpretation is present
14983         in the case of exponentiation as well.
14984
14985 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14986             Bob Duff  <duff@adacore.com>
14987
14988         * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
14989         copying a parameter list in a call, set properly the First_Named_Formal
14990         and Next_Named_Formal fields in the new list and in the enclosing call.
14991         (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
14992         names, to ease typing in the debugger. Improve comments.
14993         (Watch_Node): New variable, intended to be set in the debugger.
14994         (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
14995         called when the watched node is created.
14996         (New_Node_Debugging_Output): Combined version of local procedures
14997         New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
14998         with a parameter so that conditional breakpoints like "if Node = 12345"
14999         work.
15000         (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
15001         Add Elist1 function
15002
15003 2007-04-06  Thomas Quinot  <quinot@adacore.com>
15004             Ed Schonberg  <schonberg@adacore.com>
15005             Gary Dismukes  <dismukes@adacore.com>
15006
15007         * checks.ads, checks.adb (Selected_Range_Checks): No range check is
15008         required for a conversion between two access-to-unconstrained-array
15009         types.
15010         (Expr_Known_Valid): Validity checks do not apply to discriminants, but
15011         to discriminant constraints on discriminant objects. This rule must
15012         apply as well to discriminants of protected types in private components.
15013         (Null_Exclusion_Static_Checks): If No_Initialization is set on an
15014         object of a null-excluding access type then don't require the
15015         the object declaration to have an expression and don't emit a
15016         run-time check.
15017
15018 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
15019             Eric Botcazou  <botcazou@adacore.com>
15020
15021         * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
15022         and made constant.
15023
15024         * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
15025         Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
15026         carry any.
15027
15028         * fe.h (Compiler_Abort): Add third parameter.
15029
15030         * misc.c (internal_error_function): Build third argument from current
15031         input location and pass it to Compiler_Abort.
15032
15033 2007-04-06  Gary Dismukes  <dismukes@adacore.com>
15034
15035         * cstand.adb (Create_Standard): When the target's storage unit size is
15036         greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
15037         Standard_String.
15038
15039 2007-04-06  Nicolas Roche  <roche@adacore.com>
15040
15041         * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
15042         absolute path can have the following form: device:/a/b. In this case
15043         '/' should be inserted between the path and the filename.
15044
15045 2007-04-06  Olivier Hainque  <hainque@adacore.com>
15046             Eric Botcazou  <botcazou@adacore.com>
15047
15048         * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
15049         VAR_DECL to a CONST_DECL we make for a public constant when we know the
15050         corresponding definition has created the so made visible variable.
15051         Handle anonymous access to protected subprogram.
15052         (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
15053         object with an address clause volatile.  Re-enable original fix.
15054         <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
15055         too.
15056         (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
15057         associated with either the Equivalent or Root type, instead of the
15058         naked type node.
15059         (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
15060         subtree for every field of a global record type.
15061         (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
15062         discriminants, invoke again variable_size on its newly computed sizes.
15063
15064 2007-04-06  Robert Dewar  <dewar@adacore.com>
15065             Thomas Quinot  <quinot@adacore.com>
15066             Ed Schonberg  <schonberg@adacore.com>
15067             Bob Duff  <duff@adacore.com>
15068
15069         * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
15070         (Next_Component_Or_Discriminant): New function and procedure
15071         (First_Index, First_Literal, Master_Id,
15072         Set_First_Index, Set_First_Literal, Set_Master_Id):
15073         Add missing Ekind assertions.
15074         (Is_Access_Protected_Subprogram_Type): New predicate.
15075         (Has_RACW): New entity flag, set on package entities to indicate that
15076         the package contains the declaration of a remote accecss-to-classwide
15077         type.
15078         (E_Return_Statement): This node type has the Finalization_Chain_Entity
15079         attribute, in case the result type has controlled parts.
15080         (Requires_Overriding): Add this new flag, because "requires
15081         overriding" is subtly different from "is abstract" (see AI-228).
15082         (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
15083         Is_Abstract_Type. Make sure these are called only when appropriate.
15084         (Has_Pragma_Unreferenced_Objects): New flag
15085
15086         * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
15087         class-wide, the tag of the right-hand side must be an exact match, not
15088         an ancestor of that of the object on left-hand side.
15089         (Move_Activation_Chain): New procedure to create the call to
15090         System.Tasking.Stages.Move_Activation_Chain.
15091         (Expand_N_Extended_Return_Statement): Generate code to call
15092         System.Finalization_Implementation.Move_Final_List at the end of a
15093         return statement if the function's result type has controlled parts.
15094         Move asserts to Build_In_Place_Formal.
15095         (Move_Final_List): New function to create the call statement.
15096         (Expand_N_Assignment_Statement): In case of assignment to a class-wide
15097         tagged type, replace generation of call to the run-time subprogram
15098         CW_Membership by call to Build_CW_Membership.
15099         (Expand_N_Return_Statement): Replace generation of call to the run-time
15100         subprogram Get_Access_Level by call to Build_Get_Access_Level.
15101         (Expand_N_Simple_Function_Return): Replace generation of call to the
15102         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
15103
15104         * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
15105         Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
15106         access to protected operations.
15107         (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
15108         master and chain actual parameters to a build-in-place function call
15109         involving tasks.
15110         (BIP_Formal_Suffix): Add new enumeration literals to complete the case
15111         statement.
15112         (Make_Build_In_Place_Call_In_Allocator,
15113         Make_Build_In_Place_Call_In_Anonymous_Context,
15114         Make_Build_In_Place_Call_In_Assignment,
15115         Make_Build_In_Place_Call_In_Object_Declaration): Call
15116         Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
15117         (Expand_Inlined_Call): If the subprogram is a null procedure, or a
15118         stubbed procedure with a null body, replace the call with a null
15119         statement without using the full inlining machinery, for efficiency
15120         and to avoid invalid values in source file table entries.
15121
15122         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
15123         renamings of calls to build-in-place functions.
15124
15125         * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
15126         provides the functionality of RTE_Available to record components.
15127         (RTU_Entity): The function Entity has been renamed to RTU_Entity
15128         to avoid undesired overloading.
15129         (Entity): New subprogram that returns the entity for the referened
15130         unit. If this unit has not been loaded, it returns Empty.
15131         (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
15132         Remove no longer used entities.
15133         (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
15134         (RE_Type_Specific_Data): New entity.
15135         (RE_Move_Any_Value): New entity.
15136         (RE_TA_A, RE_Get_Any_Type): New entities.
15137         (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
15138          RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
15139          RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
15140         (Entity): New subprogram that returns the entity for the referened
15141         unit. If this unit has not been loaded, it returns Empty.
15142         (RTE): Addition of a new formal that extends the search to the scopes
15143         of the record types found in the chain of the package.
15144
15145         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
15146         "abstract subprograms must be visible" message, whether or not the type
15147         is an interface; that is, remove the special case for interface types.
15148         (Analyze_Function_Return): Remove error message "return of task objects
15149         is not yet implemented" because this is now implemented.
15150         (Create_Extra_Formals): Add the extra master and activation chain
15151         formals in case the result type has tasks.
15152         Remove error message "return of limited controlled objects is not yet
15153         implemented".
15154         (Create_Extra_Formals): Add the extra caller's finalization list formal
15155         in case the result type has controlled parts.
15156         (Process_Formals): In case of access formal types there is no need
15157         to continue with the analysis of the formals if we already notified
15158         errors.
15159         (Check_Overriding_Indicator): Add code to check overriding of predefined
15160         operators.
15161         (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
15162         flags for formals that do not require them,.
15163         (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
15164         hidden entity is use visible or directly visible.
15165         (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
15166         Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
15167         Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
15168         New_Overloaded_Entity): Split Is_Abstract flag into
15169         Is_Abstract_Subprogram and Is_Abstract_Type.
15170
15171         * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
15172         a return statement's finalization list to the caller's list, used for
15173         build-in-place functions with result type with controlled parts.
15174         Remove no longer used entities.
15175
15176         * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
15177         longer needed, because the full type is now limited, and therefore a
15178         pass-by-reference type.
15179         (Foreign_Task_Level): New constant.
15180
15181         * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
15182         move tasks from the activation chain belonging to a return statement to
15183         the one passed in by the caller, and update the master to the one
15184         passed in by the caller.
15185         (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
15186         of unactivated tasks, so we don't kill the ones that are being returned
15187         by a build-in-place function.
15188         (Create_Task): Ignore AI-280 for foreign threads.
15189
15190 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15191             Robert Dewar  <dewar@adacore.com>
15192             Bob Duff  <duff@adacore.com>
15193             Gary Dismukes  <dismukes@adacore.com>
15194
15195         * errout.adb (Unwind_Internal_Type): Use predicate
15196         Is_Access__Protected_Subprogram_Type.
15197
15198         * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
15199         (Freeze_Entity, packed array case): Do not override explicitly set
15200         alignment and size clauses.
15201         (Freeze_Entity):  An entity declared in an outer scope can be frozen if
15202         the enclosing subprogram is a child unit body that acts as a spec.
15203         (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
15204         (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
15205         Remove all code for DSP option
15206
15207         * layout.adb (Layout_Record_Type): Use First/
15208         Next_Component_Or_Discriminant
15209         (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
15210         to handle properly the anonymous access case.
15211
15212         * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
15213         for all access attributes, because overload resolution should work the
15214         same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
15215         causes the error message for the ambiguous "X'Access = Y'Access" and
15216         "X'Unrestricted_Access = Y'Access" and so forth to match.
15217         (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
15218         now that anonymous access to protected operations have their own kind.
15219         (Resolve_Attribute): In case of dispatching call check the violation of
15220         restriction No_Dispatching_Calls.
15221         (Check_Array_Type): Check new -gnatyA array index style option
15222
15223         * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
15224         attempt to derive from a synchronized tagged type.
15225         (Analyze_Type_Declaration): If there is a incomplete tagged view of the
15226         type, inherit the class-wide type already created, because it may
15227         already have been used in a self-referential anonymous access component.
15228         (Mentions_T): Recognize self-referential anonymous access components
15229         that use (a subtype of) the class-wide type of the enclosing type.
15230         (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
15231         Derived_Type for Prev formal on call to
15232         Check_Anonymous_Access_Components rather than Empty.
15233         (Make_Incomplete_Type_Declaration): Add test for case where the type has
15234         a record extension in deciding whether to create a class-wide type,
15235         rather than just checking Tagged_Present.
15236         (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
15237         to stand-alone object declarations as well as component declarations.
15238         (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
15239         prevent accidental overwriting when enclosing package appears in
15240         a limited_with_clause.
15241         (Array_Type_Declaration): If the component type is an anonymous access,
15242         the associated_node for the itype is the type declaration itself.
15243         (Add_Interface_Tag_Components): Modified to support concurrent
15244         types with abstract interfaces.
15245         (Check_Abstract_Interfaces): New subprogram that verifies the ARM
15246         rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
15247         (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
15248         to complete the decoration of synchronized interface types. Add also
15249         a call to Check_Abstract_Interfaces to verify the ARM rules.
15250         (Derive_Interface_Subprograms): Modified to support concurrent types
15251         with abstract interfaces.
15252         (Analyze_Subtype_Indication): Resolve the range with the given subtype
15253         mark, rather than delaying the full resolution depending on context.
15254         (Analyze_Component_Declaration,Analyze_Interface_Declaration,
15255         Analyze_Object_Declaration,Analyze_Subtype_Declaration,
15256         Array_Type_Declaration,Build_Derived_Record_Type,
15257         Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
15258         Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
15259         Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
15260         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
15261         called only when appropriate.
15262         (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
15263         to private type.
15264         (Analyze_Subtype_Declaration): For an access subtype declaration, create
15265         an itype reference for the anonymous designated subtype, to prevent
15266         scope anonmalies in gigi.
15267         (Build_Itype_Reference): New utility, to simplify construction of such
15268         references.
15269
15270 2007-04-06  Vincent Celier  <celier@adacore.com>
15271
15272         * errutil.adb (Initialize): Initialize warnings table, if all warnings
15273         are suppressed, supply an initial dummy entry covering all possible
15274         source locations.
15275
15276         * make.adb (Scan_Make_Arg): Reject options that should start with "--"
15277         and start with only one, such as "-RTS=none".
15278         (Collect_Arguments): Do not check for sources outside of projects.
15279         Do not collect arguments if project is externally built.
15280         (Compile_Sources): Do nothing, not even check if the source is up to
15281         date, if its project is externally built.
15282         (Compile): When compiling a predefined source, add -gnatpg
15283         as the second switch, after -c.
15284         (Compile_Sources): Allow compilation of Annex J renames without -a
15285         (Is_In_Object_Directory): Check if the ALI file is in the object
15286         even if there is no project extension.
15287         (Create_Binder_Mapping_File): Only put a unit in the mapping file for
15288         gnatbind if the ALI file effectively exists.
15289         (Initialize): Add the directory where gnatmake is invoked in front of
15290         the path if it is invoked from a bin directory, even without directory
15291         information, so that the correct GNAT tools will be used when spawned
15292         without directory information.
15293
15294         * makeusg.adb: Change switch -S to -eS
15295         Add lines for new switches -we, -wn and -ws
15296         Add line for new switch -p
15297
15298         * prj-proc.adb (Process): Set Success to False when Warning_Mode is
15299         Treat_As_Error and there are warnings.
15300
15301         * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
15302         -gnatww Change gnatmake switch -S to -eS
15303         (Scan_Make_Switches): Code reorganisation. Process separately multi
15304         character switches and single character switches.
15305         (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
15306         False when switch is not recognized by gnatmake.
15307         (Scan_Make_Switches): Set Setup_Projects True when -p or
15308         --create-missing-dirs is specified.
15309
15310         * fname.adb (Is_Predefined_File_Name): Return True for annex J
15311         renamings Calendar, Machine_Code, Unchecked_Conversion and
15312         Unchecked_Deallocation only when Renamings_Included is True.
15313
15314         * par.adb: Allow library units Calendar, Machine_Code,
15315         Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
15316         when -gnatg is not specified.
15317         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
15318         there is no need to generate always a record_definition_node in case
15319         of synchronized interface types.
15320         (SIS_Entry_Active): Initialize global variable to False
15321         (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
15322         indicate cases where AI-447 says "not null" is legal.
15323
15324         * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
15325
15326         * makegpr.adb (Check_Compilation_Needed): Take into account dependency
15327         files with with several lines starting with the object fileb name.
15328         (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
15329         is specified.
15330         (Initialize): Add the directory where gprmake is invoked in front of the
15331         path, if it is invoked from a bin directory or with directory
15332         information, so that the correct GNAT tools will be used when invoked
15333         directly.
15334         (Check_Compilation_Needed): Process correctly backslashes on Windows.
15335
15336         * vms_data.ads: Update switches/qualifiers
15337
15338 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15339             Thomas Quinot  <quinot@adacore.com>
15340
15341         * exp_aggr.adb:
15342         If the array component is a discriminated record, the array aggregate
15343         is non-static even if the component is given by an aggregate with
15344         static components.
15345         (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
15346         (Convert_Aggr_In_Allocator): If the allocator is for an access
15347         discriminant and the type is controlled. do not place on a finalization
15348         list at this point. The proper list will be determined from the
15349         enclosing object.
15350         (Build_Record_Aggr_Code): If aggregate has box-initialized components,
15351         initialize record controller if needed, before the components, to ensure
15352         that they are properly finalized.
15353         (Build_Record_Aggr_Code): For the case of an array component that has a
15354         corresponding array aggregate in the record aggregate, perform sliding
15355         if required.
15356
15357 2007-04-06  Javier Miranda  <miranda@adacore.com>
15358             Gary Dismukes  <dismukes@adacore.com>
15359             Ed Schonberg  <schonberg@adacore.com>
15360
15361         * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
15362         run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
15363
15364         * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
15365         accessibility on class-wide allocators if the allocator occurs at the
15366         same scope level as the allocator's type. The check is guaranteed to
15367         succeed in that case, even when the expression originates from a
15368         parameter of the containing subprogram.
15369         (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
15370         under No_Dispatching_Calls restriction. During the semantic analysis
15371         we already notified such violation.
15372         (Tagged_Membership): Constant folding. There is no need to check
15373         the tag at run-time if the type of the right operand is non
15374         class-wide abstract.
15375         Replace call to Is_Ancestor by call to Is_Parent
15376         to support concurrent types with interface types.
15377         (Expand_N_Allocator): Add an assertion associated with the generation
15378         of the master_id.
15379         (Expand_N_Slice): Do not enable range check to nodes associated
15380         with the frontend expansion of the dispatch table.
15381         (Is_Local_Access_Discriminant): Subsidiary function to
15382         Expand_N_Allocator.
15383         (Tagged_Membership): Replace generation of call to the run-time
15384         subprogram CW_Membership by call to Build_CW_Membership.
15385         (Expand_Allocator_Expression): Replace generation of call to the
15386         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
15387
15388         * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
15389         initialize most the TSD components by means of an aggregate.
15390         Modify the declaration of the object containing the TSD
15391         because we now expand code that has a higher level of abstraction.
15392         The TSD has a discriminant containing the Inheritance Depth Level,
15393         value that is used in the membership test but also to fix the size
15394         of the table of ancestors.
15395         (Expand_Interface_Conversion): Insert function body at the closest place
15396         to the conversion expression, to prevent access-before-elaboration
15397         errors in the backend.
15398         Code improved to reduce the size of the dispatch table if
15399         compiling under restriction No_Dispatching_Calls plus code cleanup.
15400         Code reorganization plus removal of calls to Set_Num_Prim_Ops
15401         (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
15402         (Expand_Dispatching_Call): Minor code reorganization plus addition of
15403         code to return immediately if compiling under No_Dispatching_Calls
15404         restriction.
15405         (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
15406         CPP_Virtual and CPP_Vtable are no longer supported.
15407         (Expand_Interface_Conversion): Add missing support for interface type
15408         derivations.
15409         (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
15410         Is_Parent to support concurrent types with interfaces.
15411         (Init_Predefined_Interface_Primitives): Removed.
15412         (Make_Secondary_DT): Modified to support concurrent record types.
15413         (Set_All_DT_Position): Modified to support concurrent record types.
15414         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
15415         with Get_External_Tag, Inherit_TSD, Set_External_Tag.
15416         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
15417         with CW_Membership.
15418         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
15419         with Get_Access_Level, Get_Predefined_Prim_Op_Address,
15420         Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
15421         Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
15422         Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
15423         (Expand_Dispatching_Call): Replace generation of call to the run-time
15424         subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
15425         calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
15426         Address.
15427         (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
15428         the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
15429         Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
15430         Build_Set_Prim_Op_Address.
15431         (Get_Remotely_Callable): Subprogram removed.
15432         (Init_Predefined_Interface_Primitives): Replace generation of call to
15433         the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
15434         Prims.
15435
15436         * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
15437         First (Parameter_Associations ()) with the call to First_Actual that
15438         returns an actual parameter expression for both named and positional
15439         associations.
15440
15441         * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
15442         check violation of restriction No_Dispatching_Calls.
15443         (Check_Controlling_Type): A formal of a tagged incomplete type is a
15444         controlling argument.
15445
15446         * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
15447         First/Next_Component_Or_Discriminant
15448         (Insert_Actions): Add entries for new N_Push and N_Pop nodes
15449         (Find_Implemented_Interface): Removed. All the calls to this subprogram
15450         specify Any_Limited_Interface, and this functionality is already
15451         provided by the function Has_Abstract_Interfaces.
15452         (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
15453         support concurrent types implementing interfaces.
15454         (Find_Implemented_Interface): Removed. All the calls to this subprogram
15455         specify kind Any_Limited_Interface, and this functionality is already
15456         provided by the function Has_Abstract_Interfaces.
15457         (Remove_Side_Effects): replace Controlled_Type by
15458         CW_Or_Controlled_Type whenever the issue is related to
15459         using or not the secondary stack.
15460
15461         * par-ch12.adb (P_Formal_Type_Definition): Update calls to
15462         P_Interface_Type_Definition to fulfill the new interface (the formal
15463         Is_Synchronized is no longer required).
15464
15465         * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
15466         Update dependencies.
15467
15468         * exp_atag.ads, exp_atag.adb: New file
15469
15470 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15471             Bob Duff  <duff@adacore.com>
15472             Cyrille Comar  <comar@adacore.com>
15473
15474         * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
15475         anonymous, use finalization list of enclosing dynamic scope.
15476         (Expand_N_Package_Declaration): For a library package declaration
15477         without a corresponding body, generate RACW subprogram bodies in the
15478         spec (just as we do for the task activation call).
15479         (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
15480         Is_Abstract_Type. Make sure these are called only when appropriate.
15481         Remove all code for DSP option
15482         (CW_Or_Controlled_Type): new subprogram.
15483
15484 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
15485             Ed Schonberg  <schonberg@adacore.com>
15486             Gary Dismukes  <dismukes@adacore.com>
15487
15488         * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
15489         parameter. If it is set to true, return a result capped according to
15490         the global upper bound for the index of an entry family.
15491         (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
15492         (Build_Find_Body_Index): Adjust for above change.
15493         (Entry_Index_Expression): Likewise.
15494         (Is_Potentially_Large_Family): New function extracted from...
15495         (Collect_Entry_Families): ...here. Call it to detect whether the family
15496         is potentially large.
15497         (Build_Entry_Count_Expression): If the family is potentially large, call
15498         Family_Size with 'Cap' set to true.
15499         (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
15500         a protected version of an operation declared in the private part of
15501         a protected object, because they may be invoked through a callback.
15502         (Set_Privals): If the type of a private component is an anonymous access
15503         type, do not create a new itype for each protected body.
15504         If the body of a protected operation creates
15505         controlled types (including allocators for class-widetypes), the
15506         body of the corresponding protected subprogram must include a
15507         finalization list.
15508         (Build_Activation_Chain_Entity): Build the chain entity for extended
15509         return statements.
15510         (Type_Conformant_Parameters): Use common predicate Conforming_Types
15511         to determine whether operation overrides an inherited primitive.
15512         (Build_Wrapper_Spec): Add code to examine the parents while looking
15513         for a possible overriding candidate.
15514         (Build_Simple_Entry_Call): Set No_Initialization on the object used to
15515         hold an actual parameter value since its initialization is separated
15516         from the the declaration. Prevents errors on null-excluding access
15517         formals.
15518
15519 2007-04-06  Thomas Quinot  <quinot@adacore.com>
15520             Pablo Oliveira  <oliveira@adacore.com>
15521
15522         * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
15523         Do an Unchecked_Conversion to handle the passage from the Underlying
15524         Type to the Base Type when calling Build_To_Any_Call and
15525         Build_From_Any_Call.
15526         (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
15527         E_Constant, depending upon Variable formal.
15528         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
15529         PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
15530         parameter that requires an extra constrained parameter, declare
15531         temporary for actual as a variable, not a constant.
15532         (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
15533         the unit being compiled is the one that contains the stub type.
15534         Change primitive operation name for the RACW associated with a RAS
15535         from Call to _Call so it cannot clash with any legal identifier.
15536         (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
15537         Is_RAS.
15538         (Append_RACW_Bodies): New subprogram.
15539         (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
15540         Add_Receiving_Stubs_To_Declarations functions.
15541         When expanding a package body, this list correspond to the
15542         statements in the HSS at the end of the pacakge.
15543         When expanding a package spec, this list correspond to the
15544         spec declarations.
15545         (Add_Receiving_Stubs_To_Declarations): Append the function
15546         registering the receiving stubs at the end of the 'Stmts' list.
15547         (RCI_Package_Locator): Pass the new Version generic formal when
15548         instantiating a RCI_Locator package.
15549         (Build_From_Any_Function): To compute the High bound for an
15550         unconstrained array actual, we add the Low bound with the length.
15551         Thus we must convert the low bound and the length to an appropriate
15552         type before doing the sum.
15553         (Build_Subprogram_Receiving_Stubs, PolyORB):
15554          * Retrieve the extra formals parameters at the
15555            end of the parameter stream.
15556          * Use Move_Any_Value to write back out parameters
15557            after executing the request as it is more efficient
15558            than Copy_Any_Value.
15559          * Build the any containing Extra Formals with the
15560            appropriate typecode.
15561         (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
15562         empty Component_List.
15563         (Build_Actual_Object_Declaration): New subprogram. Build and insert into
15564         the tree the declaration for an object that serves as actual parameter
15565         in server-side stubs.
15566         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
15567         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
15568         Use Build_Actual_Object_Declaration to prepare the actuals.
15569         (Add_Parameter_To_NVList): Set the parameter mode to In for
15570         Extra Constrained Parameters.
15571         (Build_General_Calling_Stubs): Set the parameter type to boolean for
15572         Extra Constrained parameters.
15573         (Build_To_Any_Function, Build_From_Any_Function,
15574         Built_TypeCode_Function): When Typ is implicit, call the correct
15575         function with the first not implicit parent type.
15576         (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
15577         (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
15578         typecode from the Etype. Therefore we retrieve the correct typecode
15579         with a call to Get_Any_Type.
15580         (Copy_Specification): Do controlling formal type substitution based on
15581         Is_Controlling_Formal flag, instead of caller-provided object type.
15582         (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
15583         a RACW primitive operation, we might get a subprogram declaration for an
15584         ancestor of the RACW designated type (not for the designated type
15585         itself), in the case where this operation is inherited. In this case we
15586         have no easy means of determining the original tagged type for which
15587         the primitive was declared, so instead we now rely on
15588         Copy_Specification to use the Is_Controlling_Formal flag to determine
15589         which formals require type substitution.
15590
15591 2007-04-06  Robert Dewar  <dewar@adacore.com>
15592             Ed Schonberg  <schonberg@adacore.com>
15593
15594         * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
15595         GNAT.Current_Exception are not allowed if pragma Restrictions
15596         (No_Exception_Propagation) is set and in any case make the associated
15597         handler unsuitable as a target for a local raise statement.
15598         (Expand_Dispatching_Constructor_Call): Replace generation of call to the
15599         run-time subprogram CW_Membership by call to Build_CW_Membership.
15600         (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
15601         by a function call, a temporary must be created before expanding the
15602         Constructor_Call itself, to prevent out-of-order elaboration in the
15603         back-end when stack checking is enabled..
15604
15605 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15606
15607         * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
15608         result are the bounds of the left operand, not the right.
15609
15610 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15611
15612         * exp_strm.adb
15613         (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
15614          discriminant defaults.
15615         (Build_Record_Or_Elementary_Output_Procedure): Ditto.
15616         (Make_Component_List_Attributes): Ditto.
15617
15618 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15619             Bob Duff  <duff@adacore.com>
15620
15621         * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
15622         an association with a box as providing a value even though the
15623         initialization procedure for the type is not available.
15624         (Resolve_Record_Aggregate): Check that a choice of an association with a
15625         box corresponds to a component of the type.
15626         (Resolve_Record_Aggregate): Split Is_Abstract flag into
15627         Is_Abstract_Subprogram and Is_Abstract_Type.
15628
15629         * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
15630         assert.
15631
15632         * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
15633         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
15634         called only when appropriate.
15635
15636 2007-04-06  Olivier Hainque  <hainque@adacore.com>
15637
15638         * g-alleve.ads (Low Level Vector type definitions): Map each to the
15639         associated vector view instead of all to the unsigned char view.
15640
15641         * g-altcon.adb (Generic_Conversions): New internal generic package,
15642         offering facilities for all the Vector/View conversion routines
15643         implemented by this unit.
15644         (To_View/To_Vector - all versions): Reimplemented in a systematic
15645         manner, using the internal Generic_Conversions facilities.
15646
15647 2007-04-06  Pascal Obry  <obry@adacore.com>
15648
15649         * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
15650         string.
15651         (Create): Free the source string before storing the new one.
15652
15653 2007-04-06  Vincent Celier  <celier@adacore.com>
15654
15655         * g-debpoo.adb (Validity): New package with a complete new
15656         implementation of subprograms Is_Valid and Set_Valid.
15657         (Is_Valid): Move to local package Validity
15658         (Set_Valid): Move to local package Validity
15659
15660 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
15661             Pablo Oliveira  <oliveira@adacore.com>
15662
15663         * g-expect.adb (Get_Command_Output): When expanding the output buffer
15664         we must ensure that there is enough place for the new data we are going
15665         to copy in.
15666
15667 2007-04-06  Thomas Quinot  <quinot@adacore.com>
15668
15669         * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
15670         computation.
15671
15672 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
15673             Vincent Celier  <celier@adacore.com>
15674
15675         * gnatcmd.adb (B_Start): Add prefix of binder generated file.
15676         (Stack_String): Add this String that contains the name of the Stack
15677         package in the project file.
15678         (Packages_To_Check_By_Stack): Add this list that contains the packages
15679         to be checked by gnatstack, which are the naming and the stack packages.
15680         (Check_Files): If no .ci files were specified for gnatstack we add all
15681         the .ci files belonging to the projects, including binder generated
15682         files.
15683         (Non_VMS_Usage): Document that gnatstack accept project file switches.
15684         (GNATCmd): Update the B_Start variable if we are in a VMS environment.
15685         Add gnatstack to the list of commands that use project file related
15686         switches, and get the single attribute Switches from the stack package
15687         in a project file when calling gnatstack. Parse the -U flag for
15688         processing files belonging to all projects in the project tree.
15689         Remove all processing for command Setup
15690
15691         * prj-attr.adb: Add new package Stack with single attribute Switches
15692
15693         * vms_conv.ads (Command_Type): Add command Stack.
15694         Move to body declarations that are only used in the body: types Item_Id,
15695         Translation_Type, Item_Ptr, Item and its subtypes.
15696
15697         * vms_conv.adb: (Initialize): Add data for new command Stack.
15698         Add declarations moved from the spec: types Item_Id, Translation_Type,
15699         Item_Ptr, Item and its subtypes.
15700         (Cargs_Buffer): New table
15701         (Cargs): New Boolean global variable
15702         (Process_Buffer): New procedure to create arguments
15703         (Place): Put character in table Buffer or Cargs_Buffer depending on the
15704          value of Cargs.
15705         (Process_Argument): Set Cargs when processing qualifiers for GNAT
15706         COMPILE
15707         (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
15708         empty, for table Cargs_Buffer.
15709         (Initialize): Remove component Setup in Command_List
15710
15711 2007-04-06  Vincent Celier  <celier@adacore.com>
15712
15713         * gprep.adb (Process_Files.Process_One_File): Use full file name when
15714         issuing pragma Source_Reference.
15715
15716 2007-04-06  Emmanuel Briot  <briot@adacore.com>
15717
15718         * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
15719         [[:xdigit:]] character class.
15720         Also raise an exception when an invalid character class is used.
15721
15722 2007-04-06  Pascal Obry  <obry@adacore.com>
15723
15724         * i-cstrea.ads: (fopen): Add encoding parameter.
15725         (freopen): Idem.
15726         Change reference from a-sysdep.c to sysdep.c in comment.
15727         Update copyright notice.
15728         This set of patch add support for the encoding form parameter.
15729
15730         * mingw32.h (S2WSU): New macro to convert from a string to a
15731         wide-string using the UTF-8 encoding. The S2WS macro supports now only
15732         standard 8bits encoding.
15733         (WS2SU): As above but converting from wide-sring to string.
15734         This is needed as it is necessary to have access to both versions in the
15735         runtime for the form parameter encoding support.
15736         This set of patch add support for the encoding form parameter.
15737         (S2WS): Improve implementation to handle cases where the filename is not
15738         UTF-8 encoded. In this case we default to using the current code page
15739         for the conversion.
15740
15741         * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
15742         type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
15743         the constants defined in adaint.h.
15744         (fopen): Add encoding parameter.
15745         (freopen): Idem.
15746
15747         * s-ficobl.ads (AFCB): Add Encoding field to record the filename
15748         encoding. This is needed for the Reset routine (freopen low level-call).
15749
15750         * s-fileio.adb (Open): Decode encoding form parameter and set the
15751         corresponding encoding value into AFCB structure.
15752         (Reset): Pass the encoding value to freopen.
15753         (Close): Move the call to Lock_Task to the beginning of the procedure.
15754
15755 2007-04-06  Geert Bosch  <bosch@adacore.com>
15756             Robert Dewar  <dewar@adacore.com>
15757
15758         * i-fortra.ads: Add Double_Complex type.
15759
15760         * impunit.adb: (Is_Known_Unit): New function
15761         Add Gnat.Byte_Swapping
15762         Add GNAT.SHA1
15763         Add new Ada 2005 units
15764         Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
15765         Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
15766         Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
15767         Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
15768
15769         * impunit.ads (Is_Known_Unit): New function
15770
15771         * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
15772         a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
15773         a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
15774         g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
15775         s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
15776         s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
15777         New files.
15778
15779         * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
15780
15781         * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
15782
15783 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
15784             Arnaud Charlet  <charlet@adacore.com>
15785
15786         * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
15787         __gnat_adjust_context_for_raise.
15788         (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
15789         implementation of floating point operations as native x86 targets.
15790         So the FPU should be initialized in the same way using finit. Fix
15791         floating point operations accuracy issues.
15792         (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
15793         member in struct sigaction, so as to avoid warning for incompatible
15794         pointer types.
15795
15796 2007-04-06 Serguei Rybin  <rybin@adacore.com>
15797
15798         * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
15799         switches from previously loaded tree
15800
15801 2007-04-06  Thomas Quinot  <quinot@adacore.com>
15802
15803         * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
15804         cases where a given dependency has a body or not.
15805         (Write_With_File_Names): New subprogram, common code for the two cases
15806         above.
15807
15808 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15809             Javier Miranda  <miranda@adacore.com>
15810
15811         * lib-xref.ads, lib-xref.adb: 
15812         Modify the loop that collects type references, to include interface
15813         types that the type implements. List each of these interfaces when
15814         building the entry for the type.
15815         (Generate_Definition): Initialize component Def and Typ of new entry
15816         in table Xrefs, to avoid to have these components unitialized.
15817         (Output_References): Split Is_Abstract flag into
15818         Is_Abstract_Subprogram and Is_Abstract_Type.
15819         (Generate_Reference): Add barrier to do not generate the warning
15820         associated with Ada 2005 entities with entities generated by the
15821         expander.
15822
15823 2007-04-06  Robert Dewar  <dewar@adacore.com>
15824             Arnaud Charlet  <charlet@adacore.com>
15825             Vincent Celier  <celier@adacore.com>
15826
15827         * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
15828         Update 'Exception Handling Control' chapter which was outdated.
15829         Minor fix to documentation of -gnatwq
15830         Remove section "Adapting the Run Time to a New C++ Compiler" because
15831         it is now obsolete.
15832         Add passage on need of -nostart-files in some non-ada-main cases.
15833         Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
15834         Update documentation about Interfacing with C++
15835         Add documentation for new gnatmake switch -p
15836         Add missing protocol part in URLs.
15837         Document -gnatyA
15838         Document pragma Compile_Time_Error
15839         Add documentation for Object_Size indicating that stand alone
15840         objects can have a larger size in some cases.
15841         Add node for GNAT.Byte_Swapping, GNAT.SHA1
15842         Update reference to the Ravenscar profile.
15843         Document pragma Unreferenced_Objects
15844
15845         * gnat-style.texi: Fix typo
15846
15847 2007-04-06  Vincent Celier  <celier@adacore.com>
15848
15849         * mlib.adb (Building_Library): Only output "building a library..." in
15850         verbose mode
15851
15852         * mlib-prj.adb (Build_Library): Only output lists of object and ALI
15853         files in verbose mode.
15854
15855         * mlib-utl.adb (Ar): Only output the first object files when not in
15856         verbose mode.
15857         (Gcc): Do not display all the object files if not in verbose mode, only
15858         the first one.
15859
15860 2007-04-06  Robert Dewar  <dewar@adacore.com>
15861
15862         * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
15863         it no longer destroys the contents of Name_Buffer or Name_Len and
15864         non-standard and invalid names are handled better.
15865         (Get_Decoded_Name_String): Improve performance by using
15866         Name_Has_No_Encodings flag in the name table.
15867         (Is_Valid_Name): New function to determine whether a Name_Id is valid.
15868         Used for debugging printouts.
15869
15870 2007-04-06  Robert Dewar  <dewar@adacore.com>
15871             Javier Miranda  <miranda@adacore.com>
15872             Bob Duff  <duff@adacore.com>
15873
15874         * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
15875         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
15876         there is no need to generate always a record_definition_node in case
15877         of synchronized interface types.
15878         (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
15879         (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
15880         illegal in Ada 95, in cases where it is legal. Change the warnings to
15881         errors in other cases. Don't give the error unless the "not null"
15882         parses properly. Correct the source position at which the error occurs.
15883         (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
15884         P_Null_Exclusion, to suppress "not null" warnings.
15885         (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
15886         associated goto statements.
15887
15888         * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
15889         of END RECORD
15890
15891         * scans.ads (Type_Token_Location): New flag
15892
15893         * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
15894         (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
15895         P_Null_Exclusion, to suppress "not null" warnings.
15896
15897 2007-04-06  Robert Dewar  <dewar@adacore.com>
15898             Javier Miranda  <miranda@adacore.com>
15899             Bob Duff  <duff@adacore.com>
15900             Vincent Celier  <celier@adacore.com>
15901
15902         * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
15903         (Extensions_Allowed): No longer sets Ada_Version
15904         Entry for pragma Unreferenced_Objects
15905
15906         * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
15907         system.tasking if pragma priority used in a procedure
15908         (Analyze_Pragma, case Warning): Handle dot warning switches
15909         (Process_Compile_Time_Warning_Or_Error): New procedure
15910         (Analyze_Pragma): Add processing for Compile_Time_Error
15911         Add support for extra arguments External_Name and Link_Name.
15912         Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
15913         (Process_Import_Or_Interface): Add support for the use of pragma Import
15914         with tagged types.
15915         (Extensions_Allowed): No longer affects Ada_Version
15916         (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
15917         Is_Abstract_Type. Make sure these are called only when appropriate.
15918         Add processing for pragma Unreferenced_Objects
15919
15920         * snames.h, snames.ads, snames.adb: Add entry for pragma
15921         Compile_Time_Error
15922         Add new standard name Minimum_Binder_Options for new gprmake
15923         Add new standard names for gprmake: Archive_Suffix,
15924         Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
15925         Library_Support, Library_Version_Options,
15926         Shared_Library_Minimum_Options,
15927         Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
15928         Change Name_Call to Name_uCall so that it cannot clash with a legal
15929         subprogram name.
15930         Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
15931         Append C_Plus_Plus to convention identifiers as synonym for CPP
15932         Add new standard names Stack and Builder_Switches
15933         Add new standard names: Compiler_Minimum_Options, Global_Config_File,
15934         Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
15935         Run_Path_Option, Toolchain_Version.
15936         Entry for pragma Unreferenced_Objects
15937
15938         * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
15939         switches, without repetition of "eD". Make sure that last character of
15940         -gnatep= switch is not taken as -gnat switch character.
15941         Complete rewrite of circuit for handling saving compilation options
15942         Occasioned by need to support dot switchs for -gnatw, but cleans up
15943         things in general.
15944         -gnatX does not affect Ada_Version
15945         Include -gnatyA in -gnatg style switches
15946
15947         * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
15948         warnings on return objects.
15949         (Warn_On_Useless_Assignment): Exclude warnings on return objects
15950         (Set_Dot_Warning_Switch): New procedure
15951         (Check_References): Add missing case of test for
15952         Has_Pragma_Unreferenced_Objects
15953         (Output_Unreferenced_Messages): Implement effect of new pragma
15954         Unreferenced_Objects, remove special casing of limited controlled
15955         variables.
15956
15957 2007-04-06  Vincent Celier  <celier@adacore.com>
15958
15959         * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
15960         the default project path, initially done during elaboration of the
15961         package.
15962         If the prefix returned by Sdefault is null, get the prefix from a call
15963         to Executable_Prefix_Path.
15964         (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
15965         null.
15966
15967         * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
15968         canonical directory name to open the directory from which files are
15969         retrieved.
15970         (Record_Other_Sources): Idem.
15971         (Locate_Directory): Add the possibility to create automatically missing
15972         directories when Setup_Projects is True.
15973         Call Locate_Directory so that the directory will be created when
15974         Setup_Projects is True, for object dir, library dir, library ALI dir,
15975         library source copy dir and exec dir.
15976
15977         * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
15978         versions of GNAT.
15979
15980 2007-04-06  Robert Dewar  <dewar@adacore.com>
15981
15982         * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
15983         Use First/Next_Component_Or_Discriminant
15984         (Analyze_Record_Representation_Clause):
15985         Use First/Next_Component_Or_Discriminant
15986         (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
15987         (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
15988         definition if type is unconstrained.
15989         (Adjust_Record_For_Reverse_Bit_Order): New procedure
15990         (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
15991         Is_Abstract_Subprogram and Is_Abstract_Type.
15992         (Adjust_Record_For_Reverse_Bit_Order): New procedure
15993
15994         * repinfo.adb (List_Record_Info): Use First/
15995         Next_Component_Or_Discriminant.
15996
15997         * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
15998         New procedure.
15999
16000         * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
16001         Include -gnatyA in default switches
16002
16003         * opt.ads: (Warn_On_Non_Local_Exception): New flag
16004         (Warn_On_Reverse_Bit_Order): New flag
16005         (Extensions_Allowed): Update the documentation.
16006         (Warn_On_Questionable_Missing_Parens): Now on by default
16007
16008         * usage.adb: Add documentation of -gnatw.x/X switches
16009         Document new -gnatyA style switch
16010         -gnatq warnings are on by default
16011
16012 2007-04-06  Ed Falis  <falis@adacore.com>
16013
16014         * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
16015         full word is no longer compared twice.
16016
16017 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16018
16019         * sem_ch10.adb (Install_Limited_Context_Clauses.
16020         Expand_Limited_With_Clause): Use a new copy of selector name in the
16021         call to Make_With_Clause. This fixes the tree structure for ASIS
16022         purposes. Nothing is changed in the compiler behaviour.
16023         (Process_Body_Clauses): Handle properly use clauses whose prefix is
16024         a package renaming.
16025         (Install_Limited_With_Clauses): Do not install non-limited view when it
16026         is still incomplete.
16027
16028 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16029             Gary Dismukes  <dismukes@adacore.com>
16030
16031         * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
16032         when capturing size information, instead of base type, which for a
16033         formal array type will be the unconstrained type.
16034         (Analyze_Formal_Object_Declaration): Add check for illegal default
16035         expressions for a formal in object of a limited type.
16036         (Instantiate_Object): Ditto.
16037         (Check_Formal_Package_Instance): Skip entities that are formal objects,
16038         because they were defaulted in the formal package and no check applies
16039         to them.
16040         (Check_Formal_Package_Instance): Extend conformance check to other
16041         discrete types beyond Integer.
16042         (Process_Default): Copy directly the unmatched formal. A generic copy
16043         has already been performed in Analyze_Formal_Package.
16044         (Analyze_Associations): If a formal subprogram has no match, check for
16045         partial parametrization before looking for a default, to prevent
16046         spurious errors.
16047         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
16048         not set the instantiation environment before analyzing the actuals.
16049         Fixes regression on 8515-003 with implementation of AI-133.
16050         Set_Instance_Env checks whether the generic unit is a predefined
16051         unit, in which case the instance must be analyzed with the latest Ada
16052         mode. This setting must take place after analysis of the actuals,
16053         because the actuals must be analyzed and frozen in the Ada mode extant
16054         outside of the current instantiation.
16055         (Save_Env, Restore_Env): Preserve and restore the configuration
16056         parameters so that predefined units can be compiled in the proper Ada
16057         mode.
16058         (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
16059         Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
16060         and Is_Abstract_Type.
16061         (Analyze_Formal_Package): For better error recovery, Add exception
16062         handler to catch Instantion_Error, which can be raised in
16063         Analyze_Associations
16064
16065 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16066             Bob Duff  <duff@adacore.com>
16067             Gary Dismukes  <dismukes@adacore.com>
16068
16069         * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
16070         prefix type is a discriminated subtype of the type of the formal.
16071         (Analyze_Allocator): Collect all coextensions regardless of the context.
16072         Whether they can be allocated statically is determined in exp_ch4.
16073         (Analyze_Selected_Component): If the prefix is a limited view and the
16074         non-limited view is available, use the non-limited one.
16075         (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
16076         therefore illegal), suggest a qualified expression rather than a type
16077         conversion, because a type conversion would be illegal in this context.
16078         (Anayze_Allocator): Trace recursively all nested allocators so that all
16079         coextensions are on the corresponding list for the root. Do no mark
16080         coextensions if the root allocator is within a declaration for a stack-
16081         allocated object, because the access discriminants will be allocated on
16082         the stack as well.
16083         (Analyze_Call): Remove restriction on calls to limited functions for the
16084         cases of generic actuals for formal objects, defaults for formal objects
16085         and defaults for record components.
16086         (Analyze_Allocator): Before analysis, chain coextensions on the proper
16087         element list. Their expansion is delayed until the enclosing allocator
16088         is processed and its finalization list constructed.
16089         (Try_Primitive_Operation): If the prefix is a concurrent type, looks
16090         for an operation with the given name among the primitive operations of
16091         the corresponding record type.
16092         (Analyze_Selected_Component): If the prefix is a task type that
16093         implements an interface, and there is no entry with the given name,
16094         check whether there is another primitive operation (e.g. a function)
16095         with that name.
16096         (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
16097         properly the indexing of a function call written in prefix form, where
16098         the function returns an array type, and all parameters of the function
16099         except the first have defaults.
16100         (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
16101         the original operands, rather than relocating them, for efficiency and
16102         to work properly when an operand is overloaded.
16103         (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
16104         Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
16105         (Analyze_Selected_Component): If the prefix is a private extension, only
16106         scan the visible components, not those of the full view.
16107         (Try_Primitive_Operation): If the operation is a procedure, collect all
16108         possible interpretations, as for a function, because in the presence of
16109         classwide parameters several primitive operations of the type can match
16110         the given arguments.
16111
16112 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16113             Robert Dewar  <dewar@adacore.com>
16114
16115         * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
16116         tag-indeterminate call to an abstract function, when the left-hand side
16117         is not classwide.
16118         (Analyze_Loop_Statement): Improve detection of infinite loops
16119
16120 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16121             Thomas Quinot  <quinot@adacore.com>
16122
16123         * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
16124         out of Analyze_Package_Declaration, because processing must be applied
16125         to package bodies as well, for deferred constants completed by pragmas.
16126         (Analyze_Package_Declaration): When the package declaration being
16127         analyzed does not require an explicit body, call Check_Completion.
16128         (May_Need_Implicit_Body): An implicit body is required when a package
16129         spec contains the declaration of a remote access-to-classwide type.
16130         (Analyze_Package_Body): If the package contains RACWs, append the
16131         pending subprogram bodies generated by exp_dist at the end of the body.
16132         (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
16133         Is_Abstract_Subprogram and Is_Abstract_Type.
16134         (Preserve_Full_Attributes): The full entity list is not an attribute
16135         that must be preserved from full to partial view.
16136
16137         * sem_dist.adb (Add_RAS_Dereference_TSS):
16138         Change primitive name to _Call so it cannot clash with any legal
16139         identifier, and be special-cased in Check_Completion.
16140         Mark the full view of the designated type for the RACW associated with
16141         a RAS as Comes_From_Source to get proper view switching when installing
16142         private declarations.
16143         Provite a placeholder nested package body along with the nested spec
16144         to have a place for Append_RACW_Bodies to generate the calling stubs
16145         and stream attributes.
16146
16147 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16148             Robert Dewar  <dewar@adacore.com>
16149
16150         * sem_ch8.adb (Has_Components): If the argument is an incomplete type
16151         that is a limited view, check the non-limited view if available.
16152         (Undefined): Refine error message for missing with of Text_IO
16153         (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
16154         to distinguish real missing with cases.
16155         Fix format of all missing with messages
16156         (Analyze_Subprogram_Renaming): Emit proper error message on illegal
16157         renaming as body when renamed entity is abstract.
16158
16159 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16160             Javier Miranda  <miranda@adacore.com>
16161
16162         * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
16163         predicate recursive, to handle complex expressions on literals whose
16164         spurious ambiguity comes from the abstract interpretation of some
16165         subexpression.
16166         (Interface_Present_In_Ancestor): Add support to concurrent record
16167         types.
16168         (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
16169         Is_Abstract_Subprogram and Is_Abstract_Type.
16170
16171 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16172             Javier Miranda  <miranda@adacore.com>
16173
16174         * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
16175         dereference of a local object R created as a reference to another
16176         object O, use the access level of O.
16177         (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
16178         rather than local Same_Formal_Type, to check whether protected operation
16179         overrides an inherited one.
16180         (Same_Formal_Type): New predicate, used when matching signatures of
16181         overriding synchronized operations, to handle the case when a formal
16182         has a type that is a generic actual.
16183         (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
16184         predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
16185         (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
16186         syntactic ambiguities involving indexing of function calls that return
16187         arrays.
16188         (Abstract_Interface_List): New subprogram that returns the list of
16189         abstract interfaces associated with a concurrent type or a
16190         concurrent record type.
16191         (Interface_Present_In_Parent): New subprogram used to check if a
16192         given type or some of its parents implement a given interface.
16193         (Collect_Abstract_Interfaces): Add support for concurrent types
16194         with interface types.
16195         (Has_Abstract_Interfaces): Add support for concurrent types with
16196         interface types.
16197         (Is_Parent): New subprogram that determines whether E1 is a parent
16198         of E2. For a concurrent type its parent is the first element of its
16199         list of interface types; for other types this function provides the
16200         same result than Is_Ancestor.
16201         (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
16202         (Collect_Synchronized_Interfaces): Removed because the subprogram
16203         Collect_Abstract_Interfaces provides this functionality.
16204         (Collect_Abstract_Interfaces): Minor update to give support to
16205         concurrent types and thus avoid undesired code duplication.
16206         (Get_Subprogram_Entity): Handle entry calls.
16207         (May_Be_Lvalue): Include actuals that appear as in-out parameters in
16208         entry calls.
16209         (Enter_Name): Do not give -gnatwh hiding warning for record component
16210         entities, they never result in hiding.
16211
16212 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16213             Robert Dewar  <dewar@adacore.com>
16214
16215         * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
16216         to chain nested components that are allocators for access discriminants
16217         of the enclosing object.
16218         Add N_Push and N_Pop nodes
16219         New field Exception_Label added
16220         (Local_Raise_Statements): New field in N_Exception_Handler_Node
16221         (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
16222         (Is_Coextension): New flag for allocators, to mark allocators that
16223         correspond to access discriminants of dynamically allocated objects.
16224         (N_Block_Statement): Document the fact that the corresponding entity
16225         can be an E_Return_Statement.
16226         (Is_Coextension): New flag for allocators.
16227         Remove all code for DSP option
16228
16229         * sprint.ads, sprint.adb: Display basic information for class_wide
16230         subtypes. Add handling of N_Push and N_Pop nodes
16231
16232 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
16233
16234         * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
16235         before propagating exception.
16236
16237 2007-04-06  Olivier Hainque  <hainque@adacore.com>
16238
16239         * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
16240         an address always within the call instruction from a return address.
16241
16242 2007-04-06  Olivier Hainque  <hainque@adacore.com>
16243             Eric Botcazou  <botcazou@adacore.com>
16244
16245         * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
16246         expression with a COMPOUND_EXPR including the call instead of emitting
16247         the call directly here.
16248         (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
16249         high bound is constant and the slice is empty.  Tidy.
16250         (tree_transform, case N_Op_Not): Handle properly the case where the
16251         operation applies to a private type whose full view is a modular type.
16252         (Case_Statement_To_gnu): If an alternative is an E_Constant with an
16253         Address_Clause, use the associated Expression as the GNAT tree
16254         representing the choice value to ensure the corresponding GCC tree is
16255         of the proper kind.
16256         (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
16257         instead of just the operands, as the base GCC stabilize_reference does.
16258         <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
16259         requested; otherwise fail.
16260         (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
16261
16262 2007-04-06  Thomas Quinot  <quinot@adacore.com>
16263
16264         * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
16265         implementation of UI_Div.
16266         (UI_Div): Reimplement as a call to UI_Div_Rem.
16267         (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
16268         remainder, avoiding the cost of a multiplication and a subtraction.
16269         (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
16270         provides both quotient and remainder in a single computation.
16271         (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
16272         functions for uint.
16273         (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
16274         is undefined if the given n is not inversible.
16275
16276 2007-04-06  Olivier Hainque  <hainque@adacore.com>
16277
16278         * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
16279         BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
16280         opcodes.
16281
16282 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
16283             Olivier Hainque  <hainque@adacore.com>
16284
16285         * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
16286         when updating the contents of the old pointer to an unconstrained array.
16287         (end_subprog_body): Set error_gnat_node to Empty.
16288         (write_record_type_debug_info): Do not be unduly sparing with our bytes.
16289         (unchecked_convert): For subtype to base type conversions, require that
16290         the source be a subtype if it is an integer type.
16291         (builtin_decls): New global, vector of available builtin functions.
16292         (gnat_pushdecl): Add global builtin function declaration nodes to the
16293         builtin_decls list.
16294         (gnat_install_builtins): Adjust comments.
16295         (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
16296         calling gnat_pushdecl, so that it knows when it handed a builtin
16297         function declaration node.
16298         (builtin_decl_for): Search the builtin_decls list.
16299
16300 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
16301
16302         * s-stchop-vxworks.adb: 
16303         (Stack_Check): Raise Storage_Error if the argument has wrapped around.
16304
16305 2007-04-06  Robert Dewar  <dewar@adacore.com>
16306             Arnaud Charlet  <charlet@adacore.com>
16307
16308         * a-diroro.ads: Inserted the pragma Unimplemented_Unit
16309
16310         * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
16311         of files
16312         Add mention of -Sev (set initialize_scalars option from environment
16313         variable at run time) in gnatbind usage message.
16314
16315         * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
16316
16317         * fname-uf.ads: Minor comment fix
16318
16319         * osint.ads: Change pragma Elaborate to Elaborate_All
16320
16321         * par-load.adb: Add documentation.
16322
16323         * sem_cat.ads, sem_cat.adb: Minor code reorganization
16324
16325         * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
16326
16327         * s-secsta.ads: Extra comments
16328
16329         * s-soflin.ads: Minor comment fixes
16330
16331         * s-stratt.ads (Block_Stream_Ops_OK): Removed.
16332
16333         * s-wchcon.ads: Minor comment addition
16334
16335         * treepr.adb: Minor change in message
16336         (Print_Name,Print_Node): Make these debug printouts more robust: print
16337         "no such..." instead of crashing on bad input.
16338
16339 2007-03-30  Rafael Ávila de Espíndola  <espindola@google.com>
16340
16341         * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
16342         instead of gnat_signed_or_unsigned_type.
16343         * utils.c (gnat_signed_or_unsigned_type): Remove.
16344         * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
16345         * gigi.h (gnat_signed_or_unsigned_type): Remove
16346
16347 2007-03-09  Roger Sayle  <roger@eyesopen.com>
16348
16349         * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
16350         fold with the result of buildN.
16351         * decl.c (gnat_to_gnu_entity): Likewise.
16352         * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
16353         * utils.c (finish_record_type, merge_sizes, max_size, convert):
16354         Likewise.
16355         * utils2.c (gnat_truthvalue_conversion, compare_arrays,
16356         nonbinary_modular_operation, build_binary_op, build_unary_op,
16357         build_cond_expr): Likewise.
16358
16359         * utils.c (convert): Use fold_build1 when casting values to void.
16360         * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
16361         fold_convert instead of convert when appropriate.
16362
16363 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
16364
16365         * Make-lang.in: Add install-pdf target as copied from
16366         automake v1.10 rules.
16367
16368 2007-02-28  Andreas Schwab  <schwab@suse.de>
16369
16370         * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
16371         $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
16372         (doc/gnat-style.info): Likewise.
16373
16374 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
16375
16376         * gnat-style.texi: Standardize title page.
16377         * gnat_rm.texi: Likewise.
16378         * gnat_ugn.texi: Likewise.
16379
16380 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
16381
16382         * decl.c (annotate_value): Adjust for refactoring of tree_map
16383         hierarchy.
16384
16385 2007-02-24  Mark Mitchell  <mark@codesourcery.com>
16386
16387         * decl.c (annotate_value): Adjust for refactoring of tree_map
16388         hierarchy.
16389
16390 2007-02-21  Ed Schonberg  <schonberg@adacore.com>
16391
16392         PR ada/18819
16393         * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
16394         untagged derived type, add hidden components to keep discriminant
16395         layout consistent, when a given discriminant of the derived type
16396         constraints several discriminants of the parent type.
16397
16398 2007-02-16  Eric Botcazou  <ebotcazou@adacore.com>
16399             Sandra Loosemore  <sandra@codesourcery.com>
16400
16401         * trans.c (call_to_gnu):  Use build_call_list instead of build3 to
16402         build the call expression.
16403         (gnat_stabilize_reference_1): Handle tcc_vl_exp.
16404         * utils.c (max_size) <tcc_exceptional>: Delete.
16405         <tcc_vl_exp>: New case.
16406         <tcc_expression>: Delete CALL_EXPR subcase.
16407         (build_global_cdtor): Use build_call_nary instead of build3.
16408         * utils2.c (build_call_1_expr): Likewise.
16409         (build_call_2_expr): Likewise.
16410         (build_call_0_expr): Likewise.
16411         (build_call_alloc_dealloc): Likewise.
16412
16413 2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
16414
16415         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
16416         get_action_description_for): Replace _Unwind_Word with _uleb128_t 
16417         and _Unwind_SWord with _sleb128_t.
16418
16419 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
16420
16421         * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
16422         * decl.c: Include gt-ada-decl.h.
16423         (annotate_value_cache): New.
16424         (annotate_value): Use it instead of TREE_COMPLEXITY.
16425
16426 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
16427
16428         * misc.c, utils2.c: Fix comment typos.
16429
16430 2007-01-24  Roger Sayle  <roger@eyesopen.com>
16431
16432         * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
16433         TREE_CONSTANT_OVERFLOW.
16434         (allocatable_size_p, annotate_value): Likewise.
16435         * trans.c (gnat_to_gnu): Likewise.
16436         * utils.c (unchecked_convert): Likewise.
16437         * utils2.c (build_simple_component_ref): Likewise.
16438
16439 2007-01-23  Richard Guenther  <rguenther@suse.de>
16440
16441         PR bootstrap/30541
16442         * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
16443         (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
16444         (gnatboot3): Likewise.
16445         (GNATBIND): Do not define.
16446         * Makefile.in (GNATBIND): Do not define.
16447
16448 2007-01-08  Richard Guenther  <rguenther@suse.de>
16449
16450         * cuintp.c (build_cst_from_int): Use built_int_cst_type.
16451         * trans.c (gnat_to_gnu): Likewise.
16452
16453 2006-12-07  Geoffrey Keating  <geoffk@apple.com>
16454
16455         * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
16456         * adaint.c: Likewise.
16457
16458 2006-12-05  Aldy Hernandez  <aldyh@redhat.com>
16459
16460         Merge from gimple-tuples-branch:
16461         2006-11-02  Aldy Hernandez  <aldyh@redhat.com>
16462
16463         * ada-tree.h (lang_tree_node): Handle gimple tuples.
16464         * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
16465         GIMPLE_MODIFY_STMT.
16466
16467 2006-12-02  Kazu Hirata  <kazu@codesourcery.com>
16468
16469         * Makefile.in, mingw32.h, trans.c: Fix comment typos.
16470         * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
16471         Fix typos.
16472
16473 2006-11-17  Eric Botcazou  <ebotcazou@adacore.com>
16474
16475         PR ada/27936
16476         * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
16477         if the initializer takes into account the padding.
16478
16479 2006-11-11  Richard Guenther  <rguenther@suse.de>
16480
16481         * trans.c (maybe_stabilize_reference): Remove handling of
16482         FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
16483
16484 2006-11-05  Arnaud Charlet  <charlet@adacore.com>
16485
16486         PR ada/29707
16487         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
16488         (To_Target_Priority): New function.
16489
16490 2006-10-31  Robert Dewar  <dewar@adacore.com>
16491
16492         * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
16493         a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
16494         s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
16495         a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
16496         a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
16497         a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
16498         a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
16499         a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
16500         a-szbzha.adb: Minor reformatting. Fix header.
16501
16502         * a-numaux-x86.adb: Add parentheses for use of unary minus
16503         * a-ngcefu.adb: Supply missing parentheses for unary minus
16504         * a-ngcoty.adb: Add parens for use of unary minus
16505         * a-ngelfu.adb: Add missing parens for unary minus
16506         * a-tifiio.adb: Add parentheses for uses of unary minus
16507
16508 2006-10-31  Robert Dewar  <dewar@adacore.com>
16509             Bob Duff  <duff@adacore.com>
16510             Ed Schonberg  <schonberg@adacore.com>
16511
16512         * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
16513         with multiplying operator.
16514         (Expected_Type_Is_Any_Real): New function to determine from the Parent
16515         pointer whether the context expects "any real type".
16516         (Resolve_Arithmetic_Op): Do not give an error on calls to the
16517         universal_fixed "*" and "/" operators when they are used in a context
16518         that expects any real type. Also set the type of the node to
16519         Universal_Real in this case, because downstream processing requires it
16520         (mainly static expression evaluation).
16521         Reword some continuation messages
16522         Add some \\ sequences to continuation messages
16523         (Resolve_Call): Refine infinite recursion case. The test has been
16524         sharpened to eliminate some false positives.
16525         Check for Current_Task usage now includes entry barrier, and is now a
16526         warning, not an error.
16527         (Resolve): If the call is ambiguous, indicate whether an interpretation
16528         is an inherited operation.
16529         (Check_Aggr): When resolving aggregates, skip associations with a box,
16530         which are priori correct, and will be replaced by an actual default
16531         expression in the course of expansion.
16532         (Resolve_Type_Conversion): Add missing support for conversion from
16533         a class-wide interface to a tagged type. Minor code cleanup.
16534         (Valid_Tagged_Converion): Add support for abstact interface type
16535         conversions.
16536         (Resolve_Selected_Component): Call Generate_Reference here rather than
16537         during analysis, and use May_Be_Lvalue to distinguish read/write.
16538         (Valid_Array_Conversion): New procedure, abstracted from
16539         Valid_Conversion, to incorporate accessibility checks for arrays of
16540         anonymous access types.
16541         (Valid_Conversion): For a conversion to a numeric type occurring in an
16542         instance or inlined body, no need to check that the operand type is
16543         numeric, since this has been checked during analysis of the template.
16544         Remove legacy test for scope name Unchecked_Conversion.
16545
16546         * sem_res.ads: Minor reformatting
16547
16548         * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
16549         (PE_Current_Task_In_Entry_Body): New exception code
16550         (SE_Restriction_Violation): Removed, not used
16551
16552         * a-except.ads:  Update comments.
16553
16554         * types.h, types.ads: Add definition for Validity_Check
16555         (PE_Current_Task_In_Entry_Body): New exception code
16556         (SE_Restriction_Violation): Removed, not used
16557
16558 2006-10-31  Thomas Quinot  <quinot@adacore.com>
16559
16560         * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
16561         error status.
16562
16563 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
16564             Jose Ruiz  <ruiz@adacore.com>
16565
16566         * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
16567         part of Ada.Calendar: all subprogram raise Unimplemented.
16568         (Split_W_Offset): Temp function body, raising Unimplemented
16569
16570         * a-calend.ads, a-calend-vms.ads: 
16571         Add imported variable Invalid_TZ_Offset used to designate targets unable
16572         to support time zones.
16573         (Unimplemented): Temporary function raised by the body of new
16574         subprograms below.
16575         (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
16576         unit provides handling of leap seconds and is used by the new Ada 2005
16577         packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
16578         (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
16579         version returns an extra value which is the offset to UTC.
16580
16581         * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
16582         (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
16583         (Split_W_Offset): New function body.
16584         (Time_Of): When a date is close to UNIX epoch, compute the time for
16585         that date plus one day (that amount is later substracted after
16586         executing mktime) so there are no problems with time zone adjustments.
16587
16588         * a-calend-mingw.adb: Remove Windows specific version no longer needed.
16589
16590         * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
16591         a-catizo.ads, a-catizo.adb: New files.
16592
16593         * impunit.adb: Add new Ada 2005 entries
16594
16595         * sysdep.c: Add external variable __gnat_invalid_tz_offset.
16596         Rename all occurences of "__gnat_localtime_r" to
16597         "__gnat_localtime_tzoff".
16598         (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
16599         zone data and calculate the GMT offset.
16600         (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
16601         Use the field "tm_gmtoff" to extract the GMT offset.
16602         (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
16603         the external variable "timezone" to calculate the GMT offset.
16604
16605 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
16606             Jose Ruiz  <ruiz@adacore.com>
16607
16608         * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb, 
16609         s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads, 
16610         s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
16611         s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
16612         System.Any_Priority to a POSIX priority on the target.
16613
16614         * system-linux-ia64.ads: 
16615         Extend range of Priority types on Linux to use the whole range made
16616         available by the system.
16617
16618         * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
16619         function maps from System.Any_Priority to a POSIX priority on the
16620         target.
16621         (PTHREAD_PRIO_PROTECT): Set real value.
16622         (PTHREAD_PRIO_INHERIT): Now a function.
16623         (SIGCPUFAIL): New signal.
16624         (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
16625         are documented as reserved by the OS.
16626
16627         * system-aix.ads: Use the full range of priorities provided by the
16628         system on AIX.
16629
16630         * s-taprop-posix.adb: Call new function To_Target_Priority.
16631         (Set_Priority): Take into account Task_Dispatching_Policy and
16632         Priority_Specific_Dispatching pragmas when determining if Round Robin
16633         must be used for scheduling the task.
16634
16635         * system-linux-x86_64.ads, system-linux-x86.ads, 
16636         system-linux-ppc.ads: Extend range of Priority types on Linux to use
16637         the whole range made available by the system.
16638
16639         * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb, 
16640         s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb, 
16641         s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
16642         when deallocating the TCB in order to avoid potential references to
16643         deallocated data.
16644         (Set_Priority): Take into account Task_Dispatching_Policy and
16645         Priority_Specific_Dispatching pragmas when determining if Round Robin
16646         or FIFO within priorities must be used for scheduling the task.
16647
16648         * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
16649         the Thread field (to be used internally by the run-time system) and the
16650         kernel-level task id in the LWP field (to be used by the debugger).
16651         (Create_Task): Reorganize to unify the calls to taskSpawn into a single
16652         instance, and propagate the current task options to the spawned task.
16653         (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
16654         (Initialize): Set Round Robin dispatching when the corresponding pragma
16655         is in effect.
16656
16657 2006-10-31  Robert Dewar  <dewar@adacore.com>
16658
16659         * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, 
16660         system-linux-hppa.ads, system-hpux-ia64.ads, 
16661         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads, 
16662         system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
16663         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, 
16664         system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads, 
16665         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
16666         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
16667         system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
16668         Default_Bit_Order) to kill constant condition warnings for references
16669         to this switch.
16670
16671 2006-10-31  Vincent Celier  <celier@adacore.com>
16672             Eric Botcazou  <ebotcazou@adacore.com>
16673
16674         * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
16675         mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
16676         mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
16677         Ext_To, when building the library file name
16678
16679         * mlib-tgt-vxworks.adb: ditto.
16680         (Get_Target_Suffix): Add support for x86 targets.
16681
16682         * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
16683
16684         * mlib-tgt-darwin.adb: 
16685         Use Append_To, instead of Ext_To, when building the library file name
16686         (Flat_Namespace): New global variable.
16687         (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
16688         (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
16689         (Link_Shared_Libgcc): Delete.
16690         (Build_Dynamic_Library): Adjust for above changes.
16691         Use Opt package.
16692         (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
16693
16694 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
16695
16696         * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
16697         (Initialize): Add type conversions required by above change.
16698
16699 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
16700
16701         * s-osinte-vxworks.ads, s-osinte-vxworks.adb: 
16702         (getpid): New body for this function that uses the underlying taskIdSelf
16703         function for VxWorks 5 and VxWorks 6 in kernel mode.
16704         (unsigned_int): New type, modular to allow logical bit operations.
16705         (taskOptionsGet): New imported function.
16706
16707         * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
16708         field to be compliant with the type used by the corresponding operating
16709         system primitive.
16710
16711 2006-10-31  Pascal Obry  <obry@adacore.com>
16712             Eric Botcazou  <ebotcazou@adacore.com>
16713             Vincent Celier  <celier@adacore.com>
16714
16715         * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
16716         ASCII version of the registry API. This is needed as the GNAT runtime
16717         is now UNICODE by default.
16718         Include version.h.
16719         (get_gcc_version): Do not hardcode the return value.
16720         (__gnat_file_time_name): On Windows properly set the default returned
16721         value to -1 which corresponds to Invalid_Time.
16722         (__gnat_fopen): New routine. A simple wrapper on all plateforms
16723          except on Windows where it does conversion for unicode support.
16724         (__gnat_freopen): Idem.
16725         (__gnat_locate_exec_on_path): If environment variable PATH does not
16726         exist, return a NULL pointer
16727
16728         * adaint.h: (__gnat_fopen): Declare.
16729         (__gnat_freopen): Likewise.
16730
16731         * mingw32.h (_tfreopen): Define this macro here for older MingW
16732         version.
16733         Activate the unicode support on platforms using a MingW runtime
16734         version 3.9 or newer.
16735
16736         * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
16737         This is needed for proper unicode support on Windows.
16738         (freopen): Idem.
16739
16740 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
16741             Nicolas Setton  <setton@adacore.com>
16742             Olivier Hainque  <hainque@adacore.com>
16743             Gary Dismukes  <dismukes@adacore.com>
16744
16745         * gigi.h: (tree_code_for_record_type): Declare.
16746         (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
16747         (get_global_renaming_pointers): Rename to
16748         invalidate_global_renaming_pointers.
16749         (static_ctors): Delete.
16750         (static_dtors): Likewise.
16751         (gnat_write_global_declarations): Declare.
16752         (create_var_decl): Adjust descriptive comment to indicate that the
16753         subprogram may return a CONST_DECL node.
16754         (create_true_var_decl): Declare new function, similar to
16755         create_var_decl but forcing the creation of a VAR_DECL node.
16756         (get_global_renaming_pointers): Declare.
16757         (add_global_renaming_pointer): Likewise.
16758
16759         * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
16760
16761         * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
16762         tree before setting TREE_ADDRESSABLE for by-reference return mechanism
16763         processing.
16764         (gnat_to_gnu_entity): Remove From_With_Type from computation for
16765         imported_p.
16766         <E_Access_Type>: Use the Non_Limited_View as the full view of the
16767         designated type if the pointer comes from a limited_with clause.  Make
16768         incomplete designated type if it is in the main unit and has a freeze
16769         node.
16770         <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
16771         Underlying_Full_View similarly.  Return earlier if the full view already
16772         has an associated tree.
16773         (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
16774         (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
16775         (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
16776         reference type built for objects with an address clause.
16777         Use create_true_var_decl with const_flag set for
16778         DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
16779         TREE_READONLY set.
16780         (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
16781         for Character and Wide_Character types. This info is read by the
16782         dwarf-2 writer, and is needed to be able to use the command "ptype
16783         character" in the debugger.
16784         (gnat_to_gnu_entity): When generating a type representing
16785         a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
16786         so that debug writers can distinguish it from ordinary integers.
16787         (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
16788         addition to TREE_READONLY to assert the constantness of variables for
16789         elaboration purposes.
16790         (gnat_to_gnu_entity, subprogram cases): Change loops on formal
16791         parameters to call new Einfo function First_Formal_With_Extras.
16792         (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
16793         protected type with its corresponding discriminant, to obtain a usable
16794         declaration
16795         (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
16796         for a multiple elaboration of the "equivalent" type.
16797         (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
16798         into record_global_renaming_pointer.
16799         (gnat_to_gnu_entity) <E_Array_Type>: Do not force
16800         TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
16801         <E_Array_Subtype>: Likewise.
16802         (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
16803         incomplete subtypes and incomplete subtypes of incomplete types visible
16804         through a limited with clause.
16805         (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
16806         the base index type for the maximum size of the array only if they are
16807         constant.
16808         (gnat_to_gnu_entity, renaming object case): Do not wrap up the
16809         expression into a SAVE_EXPR if stabilization failed.
16810
16811         * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
16812         a result decl into DECL_BY_REFERENCE on this decl, now what is expected
16813         by lower level compilation passes.
16814         (gnat_genericize): New function, lowering a function body to GENERIC.
16815         Turn the type of RESULT_DECL into a real reference type if the decl
16816         has been marked DECL_BY_REFERENCE, and adjust references to the latter
16817         accordingly.
16818         (gnat_genericize_r): New function. Tree walking callback for
16819         gnat_genericize.
16820         (convert_from_reference, is_byref_result): New functions. Helpers for
16821         gnat_genericize_r.
16822         (create_type_decl): Call gnat_pushdecl before calling
16823         rest_of_decl_compilation, to make sure that field TYPE_NAME of
16824         type_decl is properly set before calling the debug information writers.
16825         (write_record_type_debug_info): The heuristics which compute the
16826         alignment of a field in a variant record might not be accurate. Add a
16827         safety test to make sure no alignment is set to a smaller value than
16828         the alignment of the field type.
16829         (make_dummy_type): Use the Non_Limited_View as the underlying type if
16830         the type comes from a limited_with clause. Do not loop on the full view.
16831         (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
16832         (dummy_node_table): New global variable, moved from decl.c.
16833         (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
16834         (save_gnu_tree): Use above macros.
16835         (get_gnu_tree): Likewise.
16836         (present_gnu_tree): Likewise.
16837         (init_dummy_type): New function, moved from decl.c. Use above macros.
16838         (make_dummy_type): Likewise.
16839         (tree_code_for_record_type): New function extracted from make_dummy_type
16840         (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
16841         (static_ctors): Change it to a vector, make static.
16842         (static_dtors): Likewise.
16843         (end_subprog_body): Adjust for above change.
16844         (build_global_cdtor): Moved from trans.c.
16845         (gnat_write_global_declarations): Emit global constructor and
16846         destructor, and call cgraph_optimize before emitting debug info for
16847         global declarations.
16848         (global_decls): New global variable.
16849         (gnat_pushdecl): Store the global declarations in global_decls, for
16850         later use.
16851         (gnat_write_global_declarations): Emit debug information for global
16852          declarations.
16853         (create_var_decl_1): Former create_var_decl, with an extra argument to
16854          state whether the creation of a CONST_DECL is allowed.
16855         (create_var_decl): Behavior unchanged. Now a wrapper around
16856         create_var_decl_1 allowing CONST_DECL creation.
16857         (create_true_var_decl): New function, similar to create_var_decl but
16858         forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
16859         (create_field_decl): Do not always mark the field as addressable
16860         if its type is an aggregate.
16861         (global_renaming_pointers): New static variable.
16862         (add_global_renaming_pointer): New function.
16863         (get_global_renaming_pointers): Likewise.
16864
16865         * misc.c (gnat_dwarf_name): New function.
16866         (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
16867         (gnat_post_options): Add comment about structural alias analysis.
16868         (gnat_parse_file): Do not call cgraph_optimize here.
16869         (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
16870
16871         * trans.c (process_freeze_entity): Don't abort if we already have a
16872         non dummy GCC tree for a Concurrent_Record_Type, as it might
16873         legitimately have been elaborated while processing the associated
16874         Concurrent_Type prior to this explicit freeze node.
16875         (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
16876         exception handler volatile if it is of variable size.
16877         (process_type): Remove bypass for types coming from a limited_with
16878         clause.
16879         (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
16880         actual, convert the corresponding gnu_actual to the real destination
16881         type when necessary.
16882         (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
16883         originally TREE_READONLY but whose elaboration cannot be performed
16884         statically.
16885         Part of fix for F504-021.
16886         (tree_transform, subprogram cases): Change loops on formal parameters to
16887         call new Einfo function First_Formal_With_Extras.
16888         (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
16889         stemming from type conversion for the lhs.
16890         (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
16891         number of bits per unit for components of records.
16892         (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
16893         (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
16894         with At_End_Proc after the SJLJ EH cleanup.
16895         (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
16896         compilation unit.
16897         (elaborate_all_entities): Do not retest type_annotate_only.
16898         (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
16899         result type of an abstract subprogram, which may be an itype associated
16900         with an anonymous access result (related to AI-318-02).
16901         (build_global_cdtor): Move to utils.c.
16902         (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
16903         this choice is not a null tree nor an integer constant.
16904         (gigi): Run unshare_save_expr via walk_tree_without_duplicates
16905         on the body of elaboration routines instead of mark_unvisited.
16906         (add_stmt): Do not mark the tree.
16907         (add_decl_expr): Tweak comment.
16908         (mark_unvisited): Delete.
16909         (unshare_save_expr): New static function.
16910         (call_to_gnu): Issue an error when making a temporary around a
16911         procedure call because of non-addressable actual parameter if the
16912         type of the formal is by_reference.
16913         (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
16914         after building the elaboration routine.
16915
16916 2006-10-31  Bob Duff  <duff@adacore.com>
16917
16918         * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
16919         as finalization-started, so we can raise Program_Error on 'new'.
16920
16921         * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
16922         collection has already started.
16923
16924         * s-finimp.ads (Collection_Finalization_Started): Added new special
16925         flag value for indicating that a collection's finalization has started.
16926
16927         * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
16928         create a task whose master has already waited for dependent tasks.
16929
16930 2006-10-31  Robert Dewar  <dewar@adacore.com>
16931
16932         * lib.adb, lib.ads: (In_Predefined_Unit): New functions
16933
16934         * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads, 
16935         a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads, 
16936         a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads, 
16937         a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads, 
16938         a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads, 
16939         a-except-2005.ads: Add pragma Preelaborable_Warning
16940
16941 2006-10-31  Robert Dewar  <dewar@adacore.com>
16942             Jose Ruiz  <ruiz@adacore.com>
16943
16944         * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
16945
16946         * ali.adb (Get_Name): Properly handle scanning of wide character names
16947         encoded with brackets notation.
16948         (Known_ALI_Lines): Add S lines to this list.
16949         (Scan_ALI): Acquire S (priority specific dispatching) lines.
16950         New flag Elaborate_All_Desirable in unit table
16951
16952         * ali.ads (Priority_Specific_Dispatching): Add this range of
16953         identifiers to be used for Priority_Specific_Dispatching table entries.
16954         (ALIs_Record): Add First_Specific_Dispatching and
16955         Last_Specific_Dispatching that point to the first and last entries
16956         respectively in the priority specific dispatching table for this unit.
16957         (Specific_Dispatching): Add this table for storing each S (priority
16958         specific dispatching) line encountered in the input ALI file.
16959         New flag Elaborate_All_Desirable in unit table
16960
16961         * bcheck.adb: (Check_Configuration_Consistency): Add call to
16962         Check_Consistent_Dispatching_Policy.
16963         (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
16964         verifying that the use of Priority_Specific_Dispatching,
16965         Task_Dispatching_Policy, and Locking_Policy is consistent across the
16966         partition.
16967
16968         * bindgen.adb: (Public_Version_Warning): function removed.
16969         (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
16970         required information from ALI files in order to initialize the table
16971         containing the specific dispatching policy.
16972         (Gen_Adainit_Ada): Generate the variables required for priority specific
16973         dispatching entries (__gl_priority_specific_dispatching and
16974         __gl_num_specific_dispatching).
16975         (Gen_Adainit_C): Generate the variables required for priority specific
16976         dispatching entries (__gl_priority_specific_dispatching and
16977         __gl_num_specific_dispatching).
16978         (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
16979         pragma entries.
16980         (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
16981         (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
16982         (Tab_To): Removed.
16983         (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
16984         a call to gnat_set_globals.
16985         Generate a string containing settings from
16986         Priority_Specific_Dispatching pragma entries.
16987         (Gen_Object_Files_Options): Do not include the runtime libraries when
16988         pragma No_Run_Time is specified.
16989
16990         * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
16991         consistency with s-intman-posix.adb.
16992         (__gnat_error_handler, case FreeBSD): Account for the fact that the
16993         handler is installed with SA_SIGINFO.
16994         (__gnat_adjust_context_for_raise, FreeBSD case): New function for
16995         FreeBSD ZCX support, copied from Linux version.
16996         Add MaRTE-specific definitions for the linux target. Redefine sigaction,
16997         sigfillset, and sigemptyset so the routines defined by MaRTE.
16998         (__gl_priority_specific_dispatching): Add this variable that stores the
16999         string containing priority specific dispatching policies in the
17000         partition.
17001         (__gl_num_specific_dispatching): Add this variable that indicates the
17002         highest priority for which a priority specific dispatching pragma
17003         applies.
17004         (__gnat_get_specific_dispatching): Add this routine that returns the
17005         priority specific dispatching policy, as set by a
17006         Priority_Specific_Dispatching pragma appearing anywhere in the current
17007         partition. The input argument is the priority number, and the result
17008         is the upper case first character of the policy name.
17009         (__gnat_set_globals): Now a dummy function.
17010         (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
17011         mechargs instead of sigargs, as the latter can be retrieved from the
17012         former and sigargs is not what we want on ia64.
17013         (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
17014         mechargs argument.
17015         (__gnat_adjust_context_for_raise, ia64-vms): New function.
17016         (tasking_error): Remove unused symbol.
17017         (_abort_signal): Move this symbol to the IRIX specific part since this
17018         is the only target that uses this definition.
17019         (Check_Abort_Status): Move this symbol to the IRIX specific part since
17020         this is the only target that uses this definition.
17021         (Lock_Task): Remove unused symbol.
17022         (Unlock_Task): Remove unused symbol.
17023
17024         * lib-writ.adb (Write_ALI): Output new S lines for
17025         Priority_Specific_Dispatching pragmas.
17026         Implement new flag BD for elaborate body desirable
17027
17028         * lib-writ.ads: Document S lines for Priority Specific Dispatching.
17029         (Specific_Dispatching): Add this table for storing the entries
17030         corresponding to Priority_Specific_Dispatching pragmas.
17031         Document new BD flag for elaborate body desirable
17032
17033         * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
17034         of known pragmas.
17035
17036 2006-10-31  Javier Miranda  <miranda@adacore.com>
17037
17038         * a-tags.ads, a-tags.adb: 
17039         (Predefined_DT): New function that improves readability of the code.
17040         (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
17041         Inherit_DT): Use the new function Predefined_DT to improve code
17042         readability.
17043         (Register_Interface_Tag): Update assertion.
17044         (Set_Interface_Table): Update assertion.
17045         (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
17046         determining progenitor interfaces in Tags.
17047         (Inherit_CPP_DT): New subprogram.
17048
17049         * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
17050         analysis of the thunk code.
17051         (Expand_Interface_Conversion): Handle run-time conversion of
17052         access to class wide types.
17053         (Expand_Dispatching_Call): When generating the profile for the
17054         subprogram itype for a dispatching operation, properly terminate the
17055         formal parameters chaind list (set the Next_Entity of the last formal
17056         to Empty).
17057         (Collect_All_Interfaces): Removed. This routine has been moved to
17058         sem_util and renamed as Collect_All_Abstract_Interfaces.
17059         (Set_All_DT_Position): Hidden entities associated with abstract
17060         interface primitives are not taken into account in the check for
17061         3.9.3(10); this check is done with the aliased entity.
17062         (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
17063         interfacing with CPP by default.
17064         (Expand_Interface_Conversion): Add missing support for static conversion
17065         from an interface to a tagged type.
17066         (Collect_All_Interfaces): Add new out formal containing the list of
17067         abstract interface types to cleanup the subprogram Make_DT.
17068         (Make_DT): Update the code to generate the table of interfaces in case
17069         of abstract interface types.
17070         (Is_Predefined_Dispatching_Alias): New function that returns true if
17071         a primitive is not a predefined dispatching primitive but it is an
17072         alias of a predefined dispatching primitive.
17073         (Make_DT): If the ancestor of the type is a CPP_Class and we are
17074         compiling under full ABI compatibility mode we avoid the generation of
17075         calls to run-time services that fill the dispatch tables because under
17076         this mode we currently inherit the dispatch tables in the IP subprogram.
17077         (Write_DT): Emit an "is null" indication for a null procedure primitive.
17078         (Expand_Interface_Conversion): Use an address as the type of the formal
17079         of the internally built function that handles the case in which the
17080         target type is an access type.
17081
17082 2006-10-31  Robert Dewar  <dewar@adacore.com>
17083
17084         * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
17085
17086 2006-10-31  Robert Dewar  <dewar@adacore.com>
17087
17088         * bindusg.ads, bindusg.adb:
17089         Change to package and rename procedure as Display, which
17090         now ensures that it only outputs usage information once.
17091
17092 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
17093
17094         * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
17095         using RTPs.
17096
17097         * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
17098         when using RTPs.
17099
17100 2006-10-31  Robert Dewar  <dewar@adacore.com>
17101             Ed Schonberg  <schonberg@adacore.com>
17102
17103         * treepr.adb: Use new subtype N_Membership_Test
17104
17105         * checks.ads, checks.adb: Add definition for Validity_Check
17106         (Range_Or_Validity_Checks_Suppressed): New function
17107         (Ensure_Valid): Test Validity_Check suppressed
17108         (Insert_Valid_Check): Test Validity_Check suppressed
17109         (Insert_Valid_Check): Preserve Do_Range_Check flag
17110         (Validity_Check_Range): New procedure
17111         (Expr_Known_Valid): Result of membership test is always valid
17112         (Selected_Range_Checks): Range checks cannot be applied to discriminants
17113         by themselves. Disabling those checks must also be done for task types,
17114         where discriminants may be used for the bounds of entry families.
17115         (Apply_Address_Clause_Check): Remove side-effects if address expression
17116         is non-static and is not the name of a declared constant.
17117         (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
17118         Code cleanup and new error messages.
17119         (Enable_Range_Check): Test for some cases of suppressed checks
17120         (Generate_Index_Checks): Suppress index checks if index checks are
17121         suppressed for array object or array type.
17122         (Apply_Selected_Length_Checks): Give warning for compile-time detected
17123         length check failure, even if checks are off.
17124         (Ensure_Valid): Do not generate a check on an indexed component whose
17125         prefix is a packed boolean array.
17126         * checks.adb: (Alignment_Checks_Suppressed): New function
17127         (Apply_Address_Clause_Check): New procedure, this is a completely
17128         rewritten replacement for Apply_Alignment_Check
17129         (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
17130         we request a discriminal value only in case of discriminants.
17131         (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
17132         assignments where the target subtype is unconstrained and the target
17133         object is a parameter or dereference (other aliased cases are known
17134         to be unconstrained).
17135
17136 2006-10-31  Robert Dewar  <dewar@adacore.com>
17137
17138         * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
17139         prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
17140         vms_conv.adb: Fix bad table increment values (much too small)
17141
17142         * table.adb (Realloc): Make sure we get at least some new elements
17143         Defends against silly small values for table increment
17144
17145 2006-10-31  Robert Dewar  <dewar@adacore.com>
17146             Ed Schonberg  <schonberg@adacore.com>
17147             Bob Duff  <duff@adacore.com>
17148
17149         * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
17150         entities. Move other fields around to make this possible
17151         (Is_Derived_Type): Add missing call to Is_Type.
17152         (Extra_Formals): New function for subprograms, entries, subprogram
17153         types.
17154         (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
17155         (First_Formal_With_Extras): New function for subprogs, entries, subp
17156         types.
17157         (Write_Field28_Name): New procedure for node display of "Extra_Formals".
17158         Add node information for E_Return_Statement.
17159         (Elaborate_Body_Desirable): New flag
17160         (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
17161         to be Is_Inherently_Limited_Type, because return-by-reference has
17162         no meaning in Ada 2005.
17163         (E_Return_Statement): New entity kind.
17164         (Return_Applies_To): Field of E_Return_Statement.
17165         (Is_Return_Object): New flag in object entities.
17166         (Is_Dynamic_Scope): Make it True for E_Return_Statement.
17167         (Must_Have_Preelab_Init): New flag
17168         (Known_To_Have_Preelab_Init): New flag
17169         (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
17170         (Is_Visible_Formal): New flag on entities in formal packages.
17171         (Low_Bound_Known): New flag
17172         (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
17173         Incomplete_Kind.
17174         (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
17175         output when Id is an incomplete subtype.
17176
17177 2006-10-31  Robert Dewar  <dewar@adacore.com>
17178
17179         * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
17180         Avoid abbreviation Creat
17181         (Finalize): List all sources in extended mail source if -gnatl
17182         switch is active.
17183         Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
17184         (Finalize): Implement new -gnatl=xxx switch to output listing to file
17185         (Set_Specific_Warning_On): New procedure
17186         (Set_Specific_Warning_Off): New procedure
17187         Add implementation of new insertion \\
17188         (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
17189         (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
17190         types.
17191         (Error_Msg_Internal): Make sure that we set Last_Killed to
17192         True when a message from another package is suppressed.
17193         Implement insertion character ~ (insert string)
17194         (First_Node): Minor adjustments to get better placement.
17195
17196         * frontend.adb: 
17197         Implement new -gnatl=xxx switch to output listing to file
17198
17199         * gnat1drv.adb: 
17200         Implement new -gnatl=xxx switch to output listing to file
17201
17202         * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
17203         (Commands_To_Stdout): New flag
17204         Implement new -gnatl=xxx switch to output listing to file
17205         New switch Dump_Source_Text
17206         (Warn_On_Deleted_Code): New warning flag for -gnatwt
17207         Define Error_Msg_Line_Length
17208         (Warn_On_Assumed_Low_Bound): New switch
17209
17210         * osint.ads, osint.adb
17211         (Normalize_Directory_Name): Fix bug.
17212         Implement new -gnatl=xxx switch to output listing to file
17213         (Concat): Removed, replaced by real concatenation
17214         Make use of concatenation now allowed in compiler
17215         (Executable_Prefix.Get_Install_Dir): First get the full path, so that
17216         we find the 'lib' or 'bin' directory even when the tool has been
17217         invoked with a relative path.
17218         (Executable_Name): New function taking string parameters.
17219
17220         * osint-c.ads, osint-c.adb: 
17221         Implement new -gnatl=xxx switch to output listing to file
17222
17223         * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
17224
17225         * switch-c.adb: 
17226         Implement new -gnatl=xxx switch to output listing to file
17227         Recognize new -gnatL switch
17228         (no longer keep in old warning about old style usage)
17229         Use concatenation to simplify code
17230         Recognize -gnatjnn switch
17231         (Scan_Front_End_Switches): Clean up handling of -gnatW
17232         (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
17233
17234 2006-10-31  Robert Dewar  <dewar@adacore.com>
17235
17236         * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
17237         (Set_Specific_Warning_Off): New procedure
17238         (Warning_Specifically_Suppressed): New function
17239         (Validate_Specific_Warnings): New procedure
17240         (Output_Msg_Text): Complete rewrite to support -gnatjnn
17241
17242         * err_vars.ads: Implement insertion character ~ (insert string)
17243
17244 2006-10-31  Bob Duff  <duff@adacore.com>
17245             Ed Schonberg  <schonberg@adacore.com>
17246
17247         * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
17248         the parent part is a build-in-place function call, generate assignments.
17249         (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
17250         are build-in-place function calls.
17251         (Replace_Self_Reference): New subsidiary of
17252         Make_OK_Assignment_Statement, to replace an access attribute that is a
17253         self-reference into an access to the appropriate component of the
17254         target object. Generalizes previous mechanism to handle self-references
17255         nested at any level.
17256         (Is_Self_Referential_Init): Remove, not needed.
17257         (Is_Self_Referential_Init): New predicate to simplify handling of self
17258         referential components in record aggregates.
17259         (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
17260         check for presence of entity before checking for self-reference.
17261         (Has_Default_Init_Comps): Return True if a component association is a
17262         self-reference to the enclosing type, which can only come from a
17263         default initialization.
17264         (Make_OK_Assignment_Statement): If the expression is of the form
17265         Typ'Acc, where Acc is an access attribute, the expression comes from a
17266         default initialized self-referential component.
17267         (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
17268         that has been derived from several abstract interfaces we must also
17269         initialize the tags of the secondary dispatch tables.
17270
17271 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17272             Thomas Quinot  <quinot@adacore.com>
17273             Javier Miranda  <miranda@adacore.com>
17274             Robert Dewar  <dewar@adacore.com>
17275
17276         * exp_attr.adb: 
17277         (Expand_Access_To_Protected_Op): If the context indicates that an access
17278         to a local operation may be transfered outside of the object, create an
17279         access to the wrapper operation that must be used in an external call.
17280         (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
17281         target, pass the Valid attribute applied to a floating-point prefix on
17282         to the back end without expansion.
17283         (Storage_Size): Use the new run-time function Storage_Size to retrieve
17284         the allocated storage when it is specified by a per-object expression.
17285         (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
17286         Nothing to do here, the attribute has been rewritten during semantic
17287         analysis.
17288         (Expand_Attribute_Reference): Handle expansion of the new Priority
17289         attribute
17290         (Find_Fat_Info): Handle case of universal real
17291         (Expand_Access_To_Protected_Op): Fix use of access to protected
17292         subprogram from inside the body of a protected entry.
17293         (Expand_Access_To_Protected_Op): Common procedure for the expansion of
17294         'Access and 'Unrestricted_Access, to transform the attribute reference
17295         into a fat pointer.
17296         (Is_Constrained_Aliased_View): New predicate to help determine whether a
17297         subcomponent's enclosing variable is aliased with a constrained subtype.
17298         (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
17299         test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
17300         an aliased prefix must be known to be constrained in order to use True
17301         for the attribute value, and now it's possible for some aliased views
17302         to be unconstrained.
17303
17304 2006-10-31  Robert Dewar  <dewar@adacore.com>
17305
17306         * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
17307         (Expand_Entity_Reference): Correct error of not handling subprogram
17308         formals in current_value processing.
17309
17310 2006-10-31  Javier Miranda  <miranda@adacore.com>
17311             Robert Dewar  <dewar@adacore.com>
17312             Ed Schonberg  <schonberg@adacore.com>
17313             Gary Dismukes  <dismukes@adacore.com>
17314
17315         * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
17316         register in the final list objects containing class-wide interfaces;
17317         otherwise we incorrectly register the tag of the interface in the final
17318         list.
17319         (Make_Controlling_Function_Wrappers): Add missing barrier to do not
17320         generate the wrapper if the parent primitive is abstract. This is
17321         required to report the correct error message.
17322         (Expand_N_Subtype_Indication): Do validity checks on range
17323         (Clean_Task_Names): If an initialization procedure includes a call to
17324         initialize a task (sub)component, indicate that the procedure will use
17325         the secondary stack.
17326         (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
17327         compatibility for interfacing with CPP by default.
17328         (Expand_N_Object_Declaration): Only build an Adjust call when the
17329         object's type is a nonlimited controlled type.
17330         * exp_ch3.adb: Add with and use of Exp_Ch6.
17331         (Expand_N_Object_Declaration): Check for object initialization that is a
17332         call to build-in-place function and apply Make_Build_In_Place_Call_In_
17333         Object_Declaration to the call.
17334         (Freeze_Type): When the designated type of an RACW was not frozen at the
17335         point where the RACW was declared, validate the primitive operations
17336         with respect to E.2.2(14) when it finally is frozen.
17337         (Build_Initialization_Call,Expand_Record_Controller): Rename
17338         Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
17339         return-by-reference has no meaning in Ada 2005.
17340         (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
17341         to register tag of the immediate ancestor interfaces in the
17342         run-time structure.
17343         (Init_Secondary_Tags): Moved to the specification to allow the
17344         initialization of extension aggregates with abstract interfaces.
17345         (Build_Master_Renaming): Make public, for use by function declarations
17346         whose return type is an anonymous access type.
17347         (Freeze_Record_Type): Replace call to Insert_List_Before by call to
17348         Insert_List_Before_And_Analyze after the generation of the specs
17349         associated with null procedures.
17350         (Expand_Tagged_Root): Update documentation in its specification.
17351         (Init_Secondary_Tags): Update documentation.
17352         (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
17353         tibility mode and the immediate ancestor is a CPP_Pragma tagged type
17354         then generate code to inherit the contents of the dispatch table
17355         directly from the ancestor.
17356         (Expand_Record_Controller): Insert controller component after tags of
17357         implemented interfaces.
17358         (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
17359         create null procedure overridings when null procedures are inherited
17360         from interfaces.
17361         (Make_Null_Procedure_Specs): New procedure to generate null procedure
17362         declarations for overriding null primitives inherited from interfaces.
17363         (Is_Null_Interface_Procedure): New function in
17364         Make_Null_Procedure_Specs.
17365         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
17366         immediate ancestor of a tagged type is an abstract interface type we
17367         must generate the specification of the predefined primitives associated
17368         with controlled types (because the dispatch table of the ancestor is
17369         null and hence these entries cannot be inherited). This is required to
17370         elaborate well the dispatch table.
17371
17372 2006-10-31  Javier Miranda  <miranda@adacore.com>
17373             Ed Schonberg  <schonberg@adacore.com>
17374             Bob Duff  <duff@adacore.com>
17375             Gary Dismukes  <dismukes@adacore.com>
17376             Robert Dewar  <dewar@adacore.com>
17377
17378         * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
17379         conversion.
17380         (Expand_N_In): Do validity checks on range
17381         (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
17382         (Expand_N_Allocator): For "new T", if the object is constrained by
17383         discriminant defaults, allocate the right amount of memory, rather than
17384         the maximum for type T.
17385         (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
17386         when the allocator is initialized by a build-in-place call, since the
17387         allocator is already rewritten as a reference to the function result,
17388         and this prevents an unwanted duplication of the function call.
17389         Add with and use of Exp_Ch6.
17390         (Expand_Allocator_Expresssion): Check for an allocator whose expression
17391         is a call to build-in-place function and apply
17392         Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
17393         untagged designated types).
17394         (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
17395         optimization if source or target is biased.
17396         (Expand_N_Allocator): Add comments for case of an allocator within a
17397         function that returns an anonymous access type designating tasks.
17398         (Expand_N_Allocator): apply discriminant checks for access
17399         discriminants of anonymous access types (AI-402, AI-416)
17400
17401 2006-10-31  Bob Duff  <duff@adacore.com>
17402             Robert Dewar  <dewar@adacore.com>
17403             Gary Dismukes  <dismukes@adacore.com>
17404             Ed Schonberg  <schonberg@adacore.com>
17405
17406         * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
17407
17408         * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
17409         (Expand_N_Assignment_Statement): Call
17410         Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
17411         build-in-place function call. Currently, this can happen only for
17412         assignments that come from aggregates.
17413         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
17414         in order to alleviate the upward compatibility introduced by AI-318.
17415         (Expand_N_Extended_Return_Statement): Add support for handling the
17416         return object as a build-in-place result.
17417         (Expand_Non_Function_Return): Implement simple return statements nested
17418         within an extended return.
17419         (Enable_New_Return_Processing): Turn on the new processing of return
17420         statements.
17421         (Expand_Non_Function_Return): For a return within an extended return,
17422         don't raise Program_Error, because Sem_Ch6 now gives a warning.
17423         (Expand_N_Extended_Return_Statement): Implement AI-318
17424         (Expand_Simple_Function_Return): Ditto.
17425         (Expand_N_If_Statement): Handle new -gnatwt warning
17426         (Expand_N_Case_Statement): Handle new -gnatwt warning
17427         (Expand_N_Assignment): Handle assignment to the Priority attribute of
17428         a protected object.
17429         (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
17430         validity checking of assignments to elementary record components.
17431         (Expand_N_Return_Statement): return Class Wide types on the secondary
17432         stack independantly of their controlled status since with HIE runtimes,
17433         class wide types are not potentially controlled anymore.
17434
17435         * expander.adb (Expand): Add case for new N_Extended_Return_Statement
17436         node kind.
17437
17438         * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
17439         Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
17440         it expects a block, procedure, or task. The return statement will get
17441         turned into a block, and Expand_Cleanup_Actions will happen then.
17442
17443 2006-10-31  Robert Dewar  <dewar@adacore.com>
17444             Ed Schonberg  <schonberg@adacore.com>
17445             Bob Duff  <duff@adacore.com>
17446             Gary Dismukes  <dismukes@adacore.com>
17447
17448         * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
17449         capability.
17450         (Expand_Inlined_Call): Tagged types are by-reference types, and
17451         therefore should be replaced by a renaming declaration in the expanded
17452         body, as is done for limited types.
17453         (Expand_Call): If this is a call to a function with dispatching access
17454         result, propagate tag from context.
17455         (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
17456         CPP by default.
17457         (Make_Build_In_Place_Call_In_Assignment): New procedure to do
17458         build-in-place when the right-hand side of an assignment is a
17459         build-in-place function call.
17460         (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
17461         of the explicit dereference of the allocator to the result subtype of
17462         the build-in-place function. This is needed to satisfy type checking
17463         in cases where the caller's return object is created by an allocator for
17464         a class-wide access type and the type named in the allocator is a
17465         specific type.
17466         (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
17467         conversion of the reference to the declared object to the result subtype
17468         of the build-in-place function. This is needed to satisfy type checking
17469         in cases where the declared object has a class-wide type. Also, in the
17470         class-wide case, change the type of the object entity to the specific
17471         result subtype of the function, to avoid passing a class-wide object
17472         without explicit initialization to the back end.
17473         (Register_Interface_DT_Entry): Moved outside the body of
17474         Freeze_Subprogram because this routine is now public; it is called from
17475         Check_Dispatching_Overriding to handle late overriding of abstract
17476         interface primitives.
17477         (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
17478         adding an implicit access actual on a call to a build-in-place function.
17479         (Expand_Actuals): Test for an actual parameter that is a call to a
17480         build-in-place function and apply
17481         Make_Build_In_Place_Call_In_Anonymous_Context to the call.
17482         (Is_Build_In_Place_Function): New function to determine whether an
17483         entity is a function whose calls should be handled as build-in-place.
17484         (Is_Build_In_Place_Function_Call): New function to determine whether an
17485         expression is a function call that should handled as build-in-place.
17486         (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
17487         calls to build-in-place functions as the initialization of an allocator.
17488         (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
17489         handling calls to build-in-place functions in contexts that do not
17490         involve init of a separate object (for example, actuals of subprogram
17491         calls).
17492         (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
17493         handling calls to build-in-place functions as the initialization of an
17494         object declaration.
17495         (Detect_Infinite_Recursion): Add explicit parameter Process to
17496         instantiation of Traverse_Body to avoid unreferenced warning.
17497         (Check_Overriding_Inherited_Interfaces): Removed.
17498         (Register_Interface_DT_Entry): Code cleanup.
17499         (Register_Predefined_DT_Entry): Code cleanup.
17500         (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
17501         inlined statements if within a transient scope.
17502         (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
17503         formal parameters with occurrences of actuals in inlined body, establish
17504         visibility on the proper view of the actual's subtype for the body's
17505         context.
17506         (Freeze_Subprogram): Do nothing if we are compiling under full ABI
17507         compatibility mode and we have an imported CPP subprogram because
17508         for now we assume that imported CPP primitives correspond with
17509         objects whose constructor is in the CPP side (and therefore we
17510         don't need to generate code to register them in the dispatch table).
17511         (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
17512         aligned selected component.
17513         (Add_Call_By_Copy_Node): Add missing code to handle the case in which
17514         the actual of an in-mode parameter is a type conversion.
17515         (Expand_Actuals): If the call does not come from source and the actual
17516         is potentially misaligned, let gigi handle it rather than rejecting the
17517         (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
17518         Class Wide types as returning by reference independantly of their
17519         controlled status since with HIE runtimes class wide types are not
17520         potentially controlled anymore.
17521
17522 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17523
17524         * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
17525         references that are private components of the protected object.
17526         (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
17527         (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
17528         instantiation to deal with warnings.
17529         (Initialize_Protection): If expression for priority is non-static, use
17530         System_Priority as its expected type, in case the expression has not
17531         been analyzed yet.
17532
17533 2006-10-31  Robert Dewar  <dewar@adacore.com>
17534
17535         * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
17536         initialization of Homonym_Len.
17537         (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
17538         names from fully qualified name. Fixes problem of duplicate
17539         external names differing only in the presence of such a block name.
17540
17541 2006-10-31  Thomas Quinot  <quinot@adacore.com>
17542             Pablo Oliveira  <oliveira@adacore.com>
17543
17544         * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
17545         subprogram Ids, even if they are not yet assigned.
17546         (Build_Subprogram_Id): It is now this function that will take care of
17547         calling Assign_Subprogram_Ids if necessary.
17548         (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
17549         should be done only once they are assigned.
17550         (Build_From_Any_Function, case of tagged types): Add missing call to
17551         Allocate_Buffer.
17552         (Corresponding_Stub_Type): New subprogram. Returns the associated stub
17553         type for an RACW type.
17554         (Add_RACW_Features): When processing an RACW declaration for which the
17555         designated type is already frozen, enforce E.2.2(14) rules immediately.
17556         (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
17557         special reordering of controlling formals.
17558
17559         * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
17560         associated stub type for an RACW type.
17561
17562 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17563
17564         * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
17565         fixed-point operations in an integer context, i.e. as operands of a
17566         conversion to an integer type, indicate that result must be rounded.
17567
17568 2006-10-31  Robert Dewar  <dewar@adacore.com>
17569
17570         * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
17571         cases, pass the encoding method, since it is now required by the run
17572         time.
17573
17574         * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
17575         assumption that Str'First = 1.
17576         (Value_Wide_Character): Takes EM (encoding method) parameter and passes
17577         it on to the Value_Wide_Wide_Character call.
17578         (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
17579         properly handles a string of the form quote-encoded_wide_char-quote.
17580
17581         * s-wchcnv.adb: Minor reformatting
17582
17583 2006-10-31  Javier Miranda  <miranda@adacore.com>
17584
17585         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
17586         run-time membership test to ensure that the constructed object
17587         implements the target abstract interface.
17588
17589 2006-10-31  Robert Dewar  <dewar@adacore.com>
17590
17591         * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
17592         Machine_Attribute pragma internally to implement the user pragma.
17593         Add processing for pragma Interface so that it is now completely
17594         equivalent to pragma Import.
17595
17596         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
17597         so that it can be applied to all entities, including record components
17598         and enumeration literals.
17599         (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
17600         priority ranges are correct, verify compatibility against task
17601         dispatching and locking policies, and if everything is correct an entry
17602         is added to the table containing priority specific dispatching entries
17603         for this compilation unit.
17604         (Delay_Config_Pragma_Analyze): Delay processing
17605         Priority_Specific_Dispatching pragmas because when processing the
17606         pragma we need to access run-time data, such as the range of
17607         System.Any_Priority.
17608         (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
17609         Allow pragma Unreferenced as a context item
17610         Add pragma Preelaborable_Initialization
17611         (Analyze_Pragma, case Interface): Interface is extended so that it is
17612         now syntactically and semantically equivalent to Import.
17613         (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
17614         insertion characters.
17615         Add handling for Pragma_Wide_Character_Encoding
17616         (Process_Restrictions_Restriction_Warnings): Ensure that a warning
17617         never supercedes a real restriction, and that a real restriction
17618         always supercedes a warning.
17619         (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
17620         appropriate form.
17621
17622 2006-10-31  Bob Duff  <duff@adacore.com>
17623             Ed Schonberg  <schonberg@adacore.com>
17624             Robert Dewar  <dewar@adacore.com>
17625
17626         * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
17627         Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
17628         Is_Inherently_Limited_Type, because return-by-reference has no meaning
17629         in Ada 2005.
17630         (Find_Node_To_Be_Wrapped): Use new method of determining the result
17631         type of the function containing a return statement, because the
17632         Return_Type field was removed. We now use the Return_Applies_To field.
17633
17634         * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
17635         (Build_Task_Image_Decl): If procedure is not called from an
17636         initialization procedure, indicate that function that builds task name
17637         uses the sec. stack. Otherwise the enclosing initialization procedure
17638         will carry the indication.
17639         (Insert_Actions): Remove N_Return_Object_Declaration. We now use
17640         N_Object_Declaration instead.
17641         (Kill_Dead_Code): New interface to implement -gnatwt warning for
17642         conditional dead code killed, and change implementation accordingly.
17643         (Insert_Actions): Add N_Return_Object_Declaration case.
17644         Correct comment to mention N_Extension_Aggregate node.
17645         (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
17646         attempts to save information for global variables which cannot be
17647         safely tracked.
17648         (Get_Current_Value_Condition): Handle conditions the other way round
17649         (constant on left). Also handle right operand of AND and AND THEN
17650         (Set_Current_Value_Condition): Corresponding changes
17651         (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
17652         (Get_Current_Value_Condition): Handle simple boolean operands
17653         (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
17654         (Get_Current_Value_Condition): If the variable reference is within an
17655         if-statement, does not appear in the list of then_statments, and does
17656         not come from source, treat it as being at unknown location.
17657         (Get_Current_Value_Condition): Enhance to allow while statements to be
17658         processed as well as if statements.
17659         (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
17660         come from source.
17661         (OK_To_Do_Constant_Replacement): Allow constant replacement within body
17662         of loop. This is safe now that we fixed Kill_Current_Values.
17663         (OK_To_Do_Constant_Replacement): Check whether current scope is
17664         Standard, before examining outer scopes.
17665
17666 2006-10-31  Vincent Celier  <celier@adacore.com>
17667
17668         * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
17669         When True, apply VMS treatment to children of packages A, G, I and S.
17670         For F320-016
17671
17672         * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
17673
17674 2006-10-31  Robert Dewar  <dewar@adacore.com>
17675             Ed Schonberg  <schonberg@adacore.com>
17676
17677         * freeze.adb: Add handling of Last_Assignment field
17678         (Warn_Overlay): Supply missing continuation marks in error msgs
17679         (Freeze_Entity): Add check for Preelaborable_Initialization
17680
17681         * g-comlin.adb: Add Warnings (Off) to prevent new warning
17682
17683         * g-expect.adb: Add Warnings (Off) to prevent new warning
17684
17685         * lib-xref.adb: Add handling of Last_Assignment field
17686         (Generate_Reference): Centralize handling of pragma Obsolescent here
17687         (Generate_Reference): Accept an implicit reference generated for a
17688         default in an instance.
17689         (Generate_Reference): Accept a reference for a node that is not in the
17690         main unit, if it is the generic body corresponding to an subprogram
17691         instantiation.
17692
17693         * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
17694
17695         * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
17696         -gnatwq/Q.
17697         (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
17698         exception handler.
17699         (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
17700         use clauses, to avoid messages on packages used to qualify, and also
17701         to avoid messages from obsolescent units.
17702         (Warn_On_Useless_Assignments): Don't generate messages for imported
17703         and exported variables.
17704         (Warn_On_Useless_Assignments): New procedure
17705         (Output_Obsolescent_Entity_Warnings): New procedure
17706         (Check_Code_Statement): New procedure
17707
17708         * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
17709         Change name Is_Ada_2005 to Is_Ada_2005_Only
17710         (Last_Assignment): New field for useless assignment warning
17711
17712 2006-10-31  Olivier Hainque  <hainque@adacore.com>
17713
17714         * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
17715         closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
17716
17717 2006-10-31  Bob Duff  <duff@adacore.com>
17718             Robert Dewar  <dewar@adacore.com>
17719             Ed Schonberg  <schonberg@adacore.com>
17720
17721         * g-awk.adb (Default_Session, Current_Session): Compile this file in
17722         Ada 95 mode, because it violates the new rules for AI-318.
17723
17724         * g-awk.ads: Use overloaded subprograms in every case where we used to
17725         have a default of Current_Session. This makes the code closer to be
17726         correct for both Ada 95 and 2005.
17727
17728         * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
17729         code, relying on the fact that the compiler generates a warning
17730         instead of an error in -gnatg mode.
17731
17732         * lib-xref.ads (Xref_Entity_Letters): Add entry for new
17733         E_Return_Statement entity kind.
17734         Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
17735
17736         * par.adb (P_Interface_Type_Definition): Addition of one formal to
17737         report an error if the reserved word abstract has been previously found.
17738         (SS_End_Type): Add E_Return for new extended_return_statement syntax.
17739
17740         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
17741         parenthesized range attribute usage
17742         (P_Expression_No_Right_Paren): Add missing comment about error recovery.
17743
17744         * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
17745         in the syntax for extended_return_statement. This is not in the latest
17746         RM, but the ARG is expected to issue an AI allowing this.
17747         (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
17748         N_Return_Object_Declaration. We now use N_Object_Declaration instead.
17749         (P_Return_Object_Declaration, P_Return_Subtype_Indication,
17750         P_Return_Statement): Parse the new syntax for extended_return_statement.
17751
17752         * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
17753         Output_End_Missing): Add error-recovery code for the new
17754         extended_return_statement syntax; that is, the new E_Return entry on
17755         the scope stack.
17756
17757         * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
17758         limited to nonlimited, because otherwise we violate the new Ada 2005
17759         rules about returning limited types in function Create_AST_Handler in
17760         s-asthan.adb.
17761
17762         * sem.adb (Analyze): Add cases for new node kinds
17763         N_Extended_Return_Statement and N_Return_Object_Declaration.
17764
17765         * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
17766         type is in the same category as type of context before applying check,
17767         to prevent anomalies in instantiations.
17768         (Resolve_Aggregate): Remove test for limited components in aggregates.
17769         It's unnecessary in Ada 95, because if it has limited components, then
17770         it must be limited. It's wrong in Ada 2005, because limited aggregates
17771         are now allowed.
17772         (Resolve_Record_Aggregate): Move check for limited types later, because
17773         OK_For_Limited_Init requires its argument to have been resolved.
17774         (Get_Value): When copying the component default expression for a
17775         defaulted association in an aggregate, use the sloc of the aggregate
17776         and not that of the original expression, to prevent spurious
17777         elaboration errors, when the expression includes function calls.
17778         (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
17779         were missing. We also didn't handle qualified expressions. Now also
17780         allow function calls. Use new common routine OK_For_Limited_Init.
17781         (Resolve_Extension_Aggregate): Minor fix to bad error message (started
17782         with space can upper case letter).
17783
17784         * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
17785         Has_Static_Discriminants flag
17786         (Record_Type_Declaration): Diagnose an attempt to declare an interface
17787         type with discriminants.
17788         (Process_Range_Expr_In_Decl): Do validity checks on range
17789         (Build_Discriminant_Constraints): Use updated form of
17790         Denotes_Discriminant.
17791         (Process_Subtype): If the subtype is a private subtype whose full view
17792         is a concurrent subtype, introduce an itype reference to prevent scope
17793         anomalies in gigi.
17794         (Build_Derived_Record_Type, Collect_Interface_Primitives,
17795         Record_Type_Declaration):  The functionality of the subprograms
17796         Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
17797         is now performed by a single routine.
17798         (Build_Derived_Record_Type): If the type definition includes an explicit
17799         indication of limitedness, then the type must be marked as limited here
17800         to ensure that any access discriminants will not be treated as having
17801         a local anonymous access type.
17802         (Check_Abstract_Overriding): Issue a detailed error message when an
17803         abstract subprogram was not overridden due to incorrect mode of its
17804         first parameter.
17805         (Analyze_Private_Extension_Declaration): Add support for the analysis of
17806         synchronized private extension declarations. Verify that the ancestor is
17807         a limited or synchronized interface or in the generic case, the ancestor
17808         is a tagged limited type or synchronized interface and all progenitors
17809         are either limited or synchronized interfaces.
17810         Derived_Type_Declaration): Check for presence of private extension when
17811         dealing with synchronized formal derived types.
17812         Process_Full_View): Enchance the check done on the usage of "limited" by
17813         testing whether the private view is synchronized.
17814         Verify that a synchronized private view is completed by a protected or
17815         task type.
17816         (OK_For_Limited_Init_In_05): New function.
17817         (Analyze_Object_Declaration): Move check for limited types later,
17818         because OK_For_Limited_Init requires its argument to have been resolved.
17819         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
17820         in order to alleviate the upward compatibility introduced by AI-318.
17821         (Constrain_Corresponding_Record): If the constraint is for a component
17822         subtype, mark the itype as frozen, to avoid out-of-scope references to
17823         discriminants in the back-end.
17824         (Collect_Implemented_Interfaces): Protect the recursive algorithm of
17825         this subprogram against wrong sources.
17826         (Get_Discr_Value, Is_Discriminant): Handle properly references to a
17827         discriminant of limited type completed with a protected type, when the
17828         discriminant is used to constrain a private component of the type, and
17829         expansion is disabled.
17830         (Find_Type_Of_Object): Do not treat a return subtype that is an
17831         anonymous subtype as a local_anonymous_type, because its accessibility
17832         level is the return type of the enclosing function.
17833         (Check_Initialization): In -gnatg mode, turn the error "cannot
17834         initialize entities of limited type" into a warning.
17835         (OK_For_Limited_Init): Return true for generated nodes, since it
17836         sometimes violates the legality rules.
17837         (Make_Incomplete_Declaration): If the type for which an incomplete
17838         declaration is created happens to be the currently visible entity,
17839         preserve the homonym chain when removing it from visibility.
17840         (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
17841         inherited subprograms.
17842         (Access_Definition): If this is an access to function that is the return
17843         type of an access_to_function definition, context is a type declaration
17844         and the scope of the anonymous type is the current one.
17845         (Analyze_Subtype_Declaration): Add the defining identifier of a regular
17846         incomplete subtype to the set of private dependents of the original
17847         incomplete type.
17848         (Constrain_Discriminated_Type): Emit an error message whenever an
17849         incomplete subtype is being constrained.
17850         (Process_Incomplete_Dependents): Transform an incomplete subtype into a
17851         corresponding subtype of the full view of the original incomplete type.
17852         (Check_Incomplete): Properly detect invalid usage of incomplete types
17853         and subtypes.
17854
17855 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
17856
17857         * g-catiio.ads, g-catiio.adb (Value): New function.
17858         Given an input String, try and parse a valid Time value.
17859
17860 2006-10-31  Vincent Celier  <celier@adacore.com>
17861
17862         * g-debpoo.adb (Is_Valid): Correctly compute Offset using
17863         Integer_Address arithmetic, as in Set_Valid.
17864
17865 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
17866             Robert Dewar  <dewar@adacore.com>
17867
17868         * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
17869         handling executable extension manually and duplicating code.
17870
17871         * make.adb: Implement new -S switch
17872         (Gnatmake): Use new function Osint.Executable_Name instead
17873         of handling executable extension manually.
17874
17875         * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
17876         is specified, the executable name ends with this suffix.
17877         Take advantage of Osint.Executable_Name instead of duplicating code.
17878
17879         * switch-m.adb: Recognize new gnatmake -S switch
17880
17881         * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
17882         variable.
17883         (Get_Target_Parameters): Set Executable_Extension_On_Target if
17884         available.
17885
17886         * makeusg.adb: Add line for gnatmake -S switch
17887
17888 2006-10-31  Vincent Celier  <celier@adacore.com>
17889
17890         * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
17891         call it with -static-libgcc, as there are some platforms, such as
17892         Darwin, where one of these two switches is compulsory to link.
17893
17894 2006-10-31  Vincent Celier  <celier@adacore.com>
17895
17896         * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
17897         instead of ADA_PROJECT_PATH, for the project path.
17898         (Gnatls): When displaying the project path directories, use host dir
17899         specs.
17900
17901         * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
17902         names in the project path, as absolute paths may correspond to
17903         multi-valued VMS logical names.
17904
17905 2006-10-31  Vincent Celier  <celier@adacore.com>
17906
17907         * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
17908         absolute path name.
17909         (Locate_Regular_File): Ditto
17910         (Change_Dir): Remove, no longer used
17911         (Normalize_Pathname): Do not use Change_Dir to get the drive letter
17912         on Windows. Get it calling Get_Current_Dir.
17913         (OpenVMS): Remove imported boolean, no longer needed.
17914         (Normalize_Pathname)[VMS]: Do not resolve directory names.
17915         (Pid_To_Integer): New function to convert a Process_Id to  Integer
17916
17917 2006-10-31  Thomas Quinot  <quinot@adacore.com>
17918
17919         * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
17920         sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
17921         to No_Socket.
17922         (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
17923         W_Sig_Socket.
17924
17925 2006-10-31  Robert Dewar  <dewar@adacore.com>
17926
17927         * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
17928         initial letter o as a zero.
17929
17930 2006-10-31  Robert Dewar  <dewar@adacore.com>
17931
17932         * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
17933
17934 2006-10-31  Robert Dewar  <dewar@adacore.com>
17935
17936         * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
17937         variant records
17938         (Layout_Variant_Record): Retrieve the discriminants from the entity
17939         rather than from the type definition, because in the case of a full
17940         type for a private type we need to take the discriminants from the
17941         partial view.
17942         (Layout_Component_List): When applying the Max operator to variants with
17943         a nonstatic size, check whether either operand is static and scale that
17944         operand from bits to storage units before applying Max.
17945         (Layout_Type): In VMS, if a C-convention access type has no explicit
17946         size clause (and does not inherit one in the case of a derived type),
17947         then the size is reset to 32 from 64.
17948
17949 2006-10-31  Vincent Celier  <celier@adacore.com>
17950
17951         * lib-load.adb (Load_Unit): Skip the test for a unit not found when
17952         its file has already been loaded, according to the unit being loaded,
17953         not to the current value of Multiple_Unit_Index.
17954
17955 2006-10-31  Thomas Quinot  <quinot@adacore.com>
17956             Eric Botcazou  <ebotcazou@adacore.com>
17957             Arnaud Charlet  <charlet@adacore.com>
17958
17959         * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
17960         (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
17961         possible.
17962         (a-except.o): Pass it to the compiler.
17963         (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
17964         (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
17965         a-calend-mingw.adb version.
17966
17967         * Makefile.rtl: Added s-dsaser.
17968         Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
17969         (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
17970         Ada.Dispatching.Round_Robin.
17971         Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
17972
17973         * Make-lang.in: Remove all references to gt-ada-decl.h.
17974         Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
17975         sources.
17976         Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
17977         Update dependencies.
17978
17979         * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
17980
17981 2006-10-31  Vincent Celier  <celier@adacore.com>
17982
17983         * mlib-utl.adb (Initialized): Remove, no longer used
17984         (Initialize): Remove, no longer used
17985         (Ar): If Ar_Exec is null, get the location of the archive builder and,
17986         if there is one, the archive indexer. Fail if the archive builder cannot
17987         be found.
17988         (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
17989         be found.
17990
17991 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17992
17993         * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
17994         Process_Body_Clauses): If the context of a body includes a use clause
17995         for P.Q then a with_clause for P in the same body is not redundant,
17996         even if the spec also has a with_clause on P.
17997         Add missing continuation mark to error msg
17998         (Build_Limited_Views): A limited view of a type is tagged if its
17999         declaration includes a record extension.
18000         (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
18001         node, even if the subunit has errors. This avoids malfunction by
18002         Lib.Check_Same_Extended_Unit in the presence of syntax errors.
18003         (Analyze_Compilation_Unit): Add circuit to make sure we get proper
18004         generation of obsolescent messages for with statements (cannot do
18005         this too early, or we cannot implement avoiding the messages in the
18006         case of obsolescent units withing obsolescent units).
18007         (Install_Siblings): If the with_clause is on a remote descendant of
18008         an ancestor of the current compilation unit, find whether there is
18009         a sibling child unit that is immediately visible.
18010         (Remove_Private_With_Clauses): New procedure, invoked after completing
18011         the analysis of the private part of a nested package, to remove from
18012         visibility the private with_clauses of the enclosing package
18013         declaration.
18014         (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
18015         now centralized in Generate_Reference.
18016         (Install_Limited_Context_Clauses): Remove superfluous error
18017         message associated with unlimited view visible through use
18018         and renamings. In addition, at the point in which the error
18019         is reported, we add the backslash to the text of the error
18020         to ensure that it is reported as a single error message.
18021         Use new // insertion for some continuation messages
18022         (Expand_Limited_With_Clause): Use copy of name rather than name itself,
18023         to create implicit with_clause for parent unit mentioned in original
18024         limited_with_clause.
18025         (Install_Limited_With_Unit): Set entity of parent identifiers if the
18026         unit is a child unit. For ASIS queries.
18027         (Analyze_Subunit): If the subunit appears within a child unit, make all
18028         ancestor child units directly visible again.
18029
18030 2006-10-31  Robert Dewar  <dewar@adacore.com>
18031
18032         * par-ch10.adb (P_Context_Clause): Minor error message fix
18033
18034 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
18035             Javier Miranda  <miranda@adacore.com>
18036
18037         * par-ch12.adb: Grammar update and cleanup.
18038         (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
18039         support for synchronized derived type definitions.
18040         Add the new actual Abstract_Present to every call to
18041         P_Interface_Type_Definition.
18042         (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
18043         a formal object declaration with an access definition or a subtype mark
18044         with a null exclusion.
18045         (P_Generic_Association): Handle association with box, and others_choice
18046         with box, to support Ada 2005 partially parametrized formal packages.
18047
18048 2006-10-31  Robert Dewar  <dewar@adacore.com>
18049             Javier Miranda  <miranda@adacore.com>
18050
18051         * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
18052         (P_Type_Declaration): Remove barrier against the reserved word "limited"
18053         after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
18054         (P_Type_Declaration): Minor code cleanup. Add support for synchronized
18055         private extensions.
18056         (P_Type_Declaration): Add the new actual Abstract_Present to every call
18057         to P_Interface_Type_Definition.
18058         (P_Interface_Type_Definition): Addition of one formal to report an error
18059         if the reserved word abstract has been previously found.
18060         (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
18061         object renaming declaration with an access definition or subtype mark
18062         with a possible null exclusion.
18063
18064         * par-ch9.adb: Minor error msg fix
18065
18066         * par-load.adb: Add missing continuation mark to error msg
18067
18068         * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
18069
18070 2006-10-31  Vincent Celier  <celier@adacore.com>
18071
18072         * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
18073         unknown attribute in unknown package or in package that does not need
18074         to be checked.
18075         (Parse_Package_Declaration): Do not issue warning for unknown package in
18076         quiet output.
18077
18078 2006-10-31  Vincent Celier  <celier@adacore.com>
18079
18080         * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
18081         (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
18082         Packages_To_Check.
18083
18084 2006-10-31  Vincent Celier  <celier@adacore.com>
18085
18086         * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
18087         on VMS, change "__" to '.' before checking the name.
18088         (Record_Ada_Source): Always add the source file name in the list of
18089         of sources, even if it is not the first time, as it is for another
18090         source index.
18091         (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
18092         dot, instead of replacing only the first '_'.
18093
18094         * prj-part.adb (Parse): Convert project file path to canonical form
18095
18096         * prj-proc.adb (Recursive_Process): Make sure that, when a project is
18097         extended, the project id of the project extending it is recorded in its
18098         data, even when it has already been processed as an imported project.
18099
18100 2006-10-31  Robert Dewar  <dewar@adacore.com>
18101
18102         * repinfo.adb (List_Entities): Don't list entities from renaming
18103         declarations.
18104
18105 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
18106             Robert Dewar  <dewar@adacore.com>
18107
18108         * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
18109         only a restriction warning is active for the given restriction. This is
18110         desirable because we do not want to modify code in the case where only
18111         a warning is set.
18112         (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
18113         causes overriding of real restrictions.
18114         Take advantage of new No_Restrictions constant.
18115
18116         * raise.h: (__gnat_set_globals): Change profile.
18117
18118 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
18119
18120         * rtsfind.adb: Remove s-polint from comment as it exists no more.
18121
18122         * rtsfind.ads: 
18123         Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
18124         Move all the entities in obsolete package System.PolyORB_Interface to
18125         System.Partition_Interface.
18126         (RE_Storage_Size): New function in System.Tasking.
18127         (RE_Get_Ceiling): New entity.
18128         (RE_Set_Ceiling): New entity.
18129         (RO_PE_Get_Ceiling): New entity.
18130         (RO_RE_Set_Ceiling): New entity.
18131         (Inherit_CPP_DT): New entity
18132
18133 2006-10-31  Robert Dewar  <dewar@adacore.com>
18134
18135         * scng.adb (Scan, case of numeric literal): Better msg for identifier
18136         starting with a digit.
18137
18138 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18139             Thomas Quinot  <quinot@adacore.com>
18140             Javier Miranda  <miranda@adacore.com>
18141             Gary Dismukes  <dismukes@adacore.com>
18142
18143         * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
18144         properly an attempt to apply Unchecked_Access to a protected operation.
18145         (OK_Self_Reference): New subprogram to check the legality of an access
18146         attribute whose prefix is the type of an enclosing aggregate.
18147         Generalizes previous mechanism to handle attribute references nested
18148         arbitrarily deep within the aggregate.
18149         (Analyze_Access_Attribute): An access attribute whose prefix is a type
18150         can appear in an aggregate if this is a default-initialized aggregate
18151         for a self-referential type.
18152         (Resolve_Attribute, case Access): Ditto.
18153         Add support for new implementation defined attribute Stub_Type.
18154         (Eval_Attribute, case Attribute_Stub_Type): New case.
18155         (Analyze_Attribute, case Attribute_Stub_Type): New case.
18156         (Stream_Attribute_Available): Implement using new subprogram from
18157         sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
18158         Has_Specified_Stream_Attribute flag.
18159         Disallow Storage_Size and Storage_Pool for access to subprogram
18160         (Resolve_Attribute, case 'Access et al): Take into account anonymous
18161         access types of return subtypes in extended return statements. Remove
18162         accessibility checks on anonymous access types when Unchecked_Access is
18163         used.
18164         (Analyze_Attribute): Add support for the use of 'Class to convert
18165         a class-wide interface to a tagged type.
18166         Add support for the attribute Priority.
18167         (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
18168         whether the designated type is discriminated with a constrained partial
18169         view and require static matching in that case.
18170         Add local variable Des_Btyp. The Designated_Type
18171         of an access to incomplete subtype is either its non-limited view if
18172         coming from a limited with or its etype if regular incomplete subtype.
18173
18174         * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
18175         Fix predicate to identify and allow cases of (expander-generated)
18176         references to tag of designated object of a RACW.
18177         (Validate_Static_Object_Name): In Ada 2005, a formal object is
18178         non-static, and therefore cannot appear as a primary in a preelaborable
18179         package.
18180         (Has_Stream_Attribute_Definition): New subprogram, abstracted from
18181         Has_Read_Write_Attributes.
18182         (Has_Read_Write_Attributes): Reimplement in termes of
18183         Has_Stream_Attribute_Definition.
18184         (Missing_Read_Write_Attributes): When checking component types in a
18185         record, unconditionally call Missing_Read_Write_Attributes recursively
18186         (remove guard checking for Is_Record_Type / Is_Access_Type).
18187
18188 2006-10-31  Robert Dewar  <dewar@adacore.com>
18189
18190         * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
18191         useless assignments here and conditionalize it on absence of exception
18192         handlers.
18193         (Analyze_Exception_Handlers): Small code reorganization of error
18194         detection code, for new handling of formal packages.
18195
18196 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18197             Hristian Kirtchev  <kirtchev@adacore.com>
18198
18199         * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
18200         that has been constant-folded, preserve information of original tree,
18201         for ASIS uses.
18202         (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
18203         generated private extension declaration if the formal derived type is
18204         synchronized. Carry synchronized present over to the generated private
18205         extension.
18206         (Validate_Derived_Type_Instance): Ensure that the actual of a
18207         synchronized formal derived type is a synchronized tagged type.
18208         (Instantiate_Formal_Package): When creating the instantiation used to
18209         validate the actual package of a formal declared without a box, check
18210         whether the formal itself depends on a prior actual.
18211         (Instantiate_Formal_Subprogram): Create new entities for the defining
18212         identifiers of the formals in the renaming declaration, for ASIS use.
18213         (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
18214         a renaming declaration or a subtype declaration for an actual in an
18215         instance, capture location information of declaration in generic, for
18216         ASIS use.
18217         (Instantiate_Formal_Package): Add comments on needed additional tests.
18218         AI-317 (partial parametrization) is fully implemented.
18219         (Validate_Private_Type_Instance): Add check for actual which
18220         must have preelaborable initialization
18221         Use new // insertion for some continuation messages
18222         (Analyze_Formal_Object_Declaration): Change usage of Expression to
18223         Default_Expression. Add type retrieval when the declaration has an
18224         access definition. Update premature usage of incomplete type check.
18225         (Check_Access_Definition): New subsidiary routine. Check whether the
18226         current compilation version is Ada 05 and the supplied node has an
18227         access definition.
18228         (Instantiate object): Alphabetize local variables. Handle the creation
18229         of new renaming declarations with respect to the kind of definition
18230         used - either an access definition or a subtype mark. Guard against
18231         unnecessary error message in the context of anonymous access types after
18232         they have been resolved. Add check for required null exclusion in a
18233         formal object declaration.
18234         (Switch_View): A private subtype of a non-private type needs to be
18235         switched (the base type can have been switched without its private
18236         dependents because of the last branch of Check_Private_View.
18237         (Check_Private_View): Do not recompute Base_Type (T), instead use cached
18238         value from BT.
18239         (Instantiate_Type): Emit an error message whenever a class-wide type of
18240         a tagged incomplete type is used as a generic actual.
18241         (Find_Actual_Type): Extend routine to handle a component type in a child
18242         unit that is imported from a formal package in a parent.
18243         (Validate_Derived_Type_Instance): Check that analyzed formal and actual
18244         agree on constrainedness, rather than checking against ultimate ancestor
18245         (Instantiate_Subprogram_Body): Create a cross-reference link to the
18246         generic body, for navigation purposes.
18247
18248 2006-10-31  Robert Dewar  <dewar@adacore.com>
18249             Thomas Quinot  <quinot@adacore.com>
18250
18251         * sem_ch13.adb: Storage pool cannot be given for access to subprogram
18252         type.
18253         (New_Stream_Subprogram): When processing an attribute definition clause
18254         for a stream-oriented subprogram, record an entity node occurring at
18255         the point of clause to use for checking the visibility of the clause,
18256         as defined by 8.3(23) as amended by AI-195.
18257         (New_Stream_Subprogram): New procedure, factoring behaviour from both
18258          New_Stream_Function and New_Stream_Procedure.
18259         (New_Stream_Function, New_Stream_Procedure): Removed.
18260         (Analyze_Attribute_Definition_Clause, case Address): Check new
18261         Alignment_Check check
18262
18263 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18264             Javier Miranda  <miranda@adacore.com>
18265             Robert Dewar  <dewar@adacore.com>
18266
18267         * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
18268         generate the same errors compiling under -gnatc.
18269         (Try_Object_Operation): If no candidate interpretation succeeds, but
18270         there is at least one primitive operation with the right name, report
18271         error in call rather than on a malformed selected component.
18272         (Analyze_Selected_Component): If the prefix is an incomplete type from
18273         a limited view, and the full view is available, use the full view to
18274         determine whether this is a prefixed call to a primitive operation.
18275         (Operator_Check): Verify that a candidate interpretation is a binary
18276         operation before checking the type of its second formal.
18277         (Analyze_Call): Add additional warnings for function call contexts not
18278         yet supported.
18279         (Analyze_Allocator): Move the check for "initialization not allowed for
18280         limited types" after analyzing the expression. This is necessary,
18281         because OK_For_Limited_Init looks at the structure of the expression.
18282         Before analysis, we don't necessarily know what sort of expression it
18283         is. For example, we don't know whether F(X) is a function call or an
18284         indexed component; the former is legal in Ada 2005; the latter is not.
18285         (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
18286         were missing. We also didn't handle qualified expressions. Now also
18287         allow function calls. Use new common routine OK_For_Limited_Init.
18288         (Analyze_Type_Conversion): Do not perform some legality checks in an
18289         instance, because the error message will be redundant or spurious.
18290         (Analyze_Overloaded_Selected_Component): Do not do style check when
18291         setting an entity, since we do not know it is the right entity yet.
18292         (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
18293         (Analyze_Overloaded_Selected_Component): Same change
18294         (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
18295         since regular incomplete subtypes are transformed into corresponding
18296         subtypes of their full views.
18297         (Complete_Object_Operation): Treat name of transformed subprogram call
18298         as coming from source, for browsing purposes.
18299         (Try_Primitive_Operation): If formal is an access parameter, compare
18300         with base type of object to determine whether it is a primitive
18301         operation.
18302         (Operator_Check): If no interpretation of the operator matches, check
18303         whether a use clause on any candidate might make the operation legal.
18304         (Try_Class_Wide_Operation): Check whether the first parameter is an
18305         access type whose designated type is class-wide.
18306
18307 2006-10-31  Robert Dewar  <dewar@adacore.com>
18308             Ed Schonberg  <schonberg@adacore.com>
18309             Gary Dismukes  <dismukes@adacore.com>
18310
18311         * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
18312         warn on infinite loops.
18313         Add \\ to some continuation messages
18314         (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
18315         (Process_Bounds): If the bounds are integer literals that result from
18316         constant-folding, and they carry a user-defined type, preserve that type
18317         rather than treating this as an integer range.
18318         (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
18319         (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
18320         (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
18321         left hand side of assignment.
18322         (Analyze_Assignment): Add suport to manage assigments to the attribute
18323         priority of a protected object.
18324         (Check_Possible_Current_Value_Condition): Allow fully qualified names
18325         not just identifiers.
18326         (Check_Possible_Current_Value_Condition): Acquire left operand of AND
18327         or AND THEN for possible tracking.
18328         (Analyze_Iteration_Scheme): Check for setting Current_Value for the
18329         case of while loops so we can track values in the loop body.
18330
18331 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18332             Hristian Kirtchev  <kirtchev@adacore.com>
18333             Bob Duff  <duff@adacore.com>
18334
18335         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
18336         procedure cannot be a protected operation (it is a basic_declaration,
18337         not a subprogram_declaration).
18338         (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
18339         Subp. Add logic for entry processing.
18340         (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
18341         Determine whether an entry or subprogram of a protected or task type
18342         override an inherited primitive of an implemented interface.
18343         (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
18344         Update the actual used in calls to Check_Overriding_Indicator.
18345         (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
18346         generate the proper reference to the parent unit, for cross-reference.
18347         (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
18348         Is_Formal.
18349         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
18350         (Add_Extra_Formal): Revise procedure to allow passing in associated
18351         entity, scope, and name suffix, and handle setting of the new
18352         Extra_Formals field.
18353         (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
18354         pass new parameters. Add support for adding the new extra access formal
18355         for functions whose calls are treated as build-in-place.
18356         (Analyze_A_Return_Statement): Correct casing in error message.
18357         Move Pop_Scope to after Analyze_Function_Return, because an extended
18358         return statement really is a full-fledged scope. Otherwise, visibility
18359         doesn't work right. Correct use of "\" for continuation messages.
18360         (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
18361         evilly trying to call Analyze_Object_Declaration directly. Otherwise,
18362         the node doesn't get properly marked as analyzed.
18363         (Analyze_Subprogram_Body): If subprogram is a function that returns
18364         an anonymous access type that denotes a task, build a Master Entity
18365         for it.
18366         (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
18367         proper usage of null exclusion in a result definition.
18368         (Process_Formals): Code cleanup and new error message.
18369         (Process_Formals): Detect incorrect application of null exclusion to
18370         non-access types.
18371         (Conforming_Types): Handle conformance between [sub]types and itypes
18372          generated for entities that have null exclusions applied to them.
18373         (Maybe_Primitive_Operation): Add an additional type retrieval when the
18374          base type is an access subtype. This case arrises with null exclusions.
18375         (New_Overloaded_Entity): Do not remove the overriden entity from the
18376         homonym chain if it corresponds with an abstract interface primitive.
18377         (Process_Formals): Replace membership test agains Incomplete_Kind with a
18378         call to the synthesized predicate Is_Incomplete_Type.
18379         (Analyze_Subprogram_Body): Check wrong placement of abstract interface
18380         primitives.
18381         (Analyze_Subprogram_Declaration): Check that abstract interface
18382         primitives are abstract or null.
18383         (Analyze_Subprogram_Specification): Remove previous check for abstract
18384         interfaces because it was not complete.
18385         (Has_Interface_Formals): Removed.
18386
18387 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18388             Javier Miranda  <miranda@adacore.com>
18389
18390         * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
18391         of Analyze_Package_Body, to create Itype references for anonymous
18392         access types created in the package declaration, whose designated types
18393         may have only a limited view.
18394         (Analyze_Package_Specification): For the private part of a nested
18395         package, install private_with_clauses of enclosing compilation unit if
18396         we are in its visible part.
18397         (Declare_Inherited_Private_Subprograms): Complete barrier
18398         to ensure that the primitive operation has an alias to some parent
18399         primitive. This is now required because, after the changes done for the
18400         implementation of abstract interfaces, the contents of the list of
18401         primitives has entities whose alias attribute references entities of
18402         such list of primitives.
18403         (Analyze_Package_Specification): Simplify code that handles parent units
18404         of instances and formal packages.
18405         (Uninstall_Declarations): Check the convention consistency among
18406         primitive overriding operations of a tagged record type.
18407
18408 2006-10-31  Robert Dewar  <dewar@adacore.com>
18409             Hristian Kirtchev  <kirtchev@adacore.com>
18410             Javier Miranda  <miranda@adacore.com>
18411             Ed Schonberg  <schonberg@adacore.com>
18412
18413         * sem_ch8.adb: Minor error msg rewording
18414         (Undefined): When checking for misspellings, invert arguments (to get
18415         expected and found set right)
18416         (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
18417         (Analyze_Generic_Renaming): Same fix
18418         (Use_One_Package): Do not take into account the internal entities of
18419         abstract interfaces during the analysis of entities that are marked
18420         as potentially use-visible.
18421         (Find_Type): Handle the case of an attribute reference for
18422         implementation defined attribute Stub_Type (simply let the analysis of
18423         the attribute reference rewrite it).
18424         (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
18425         type that appears in a Use_Type clause.
18426         (Analyze_Object_Renaming): Add support for renaming of the Priority
18427         attribute.
18428         (Find_Type): In Ada 2005, a task type can be used within its own body,
18429         when it appears in an access definition.
18430         (Analyze_Object_Renaming): Remove warning on null_exclusion.
18431         (Analyze_Object_Renaming): Introduce checks for required null exclusion
18432          in a formal object declaration or in a subtype declaration.
18433         (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
18434         (Check_Null_Exclusion): New local routine to
18435         Analyze_Subprogram_Renaming. Check whether the formals and return
18436         profile of a renamed subprogram have required null exclusions when
18437         their counterparts of the renaming already impose them.
18438         (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
18439         Determine whether an entity is inside a generic scope.
18440         (In_Open_Scope): First pass of documentation update.
18441         (Find_Expanded_Name): Add support for shadow entities associated with
18442         limited withed packages. This is required to handle nested packages.
18443         (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
18444         that makes a renaming of a limited withed package illegal.
18445
18446 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
18447             Ed Schonberg  <schonberg@adacore.com>
18448
18449         * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
18450         Check_Overriding_Indicator.
18451         (Analyze_Task_Definition): Ditto.
18452         (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
18453         (Check_Overriding_Indicator): To find overridden interface operation,
18454         examine only homonyms that have an explicit subprogram declaration, not
18455         inherited operations created by an unrelated type derivation.
18456         (Check_Overriding_Indicator): When checking for the presence of "null"
18457         in a procedure, ensure that the queried node is a procedure
18458         specification.
18459         (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
18460         type when the formal is an access to variable.
18461         (Analyze_Protected_Type): Add check for Preelaborable_Initialization
18462         (Analyze_Task_Type): Same addition
18463         (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
18464         provide navigation capabilities for entries.
18465
18466 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
18467             Ed Schonberg  <schonberg@adacore.com>
18468             Javier Miranda  <miranda@adacore.com>
18469             Gary Dismukes  <dismukes@adacore.com>
18470
18471         * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
18472         inherited from an interface ancestor by another interface in the
18473         context of an instance as 'late'.
18474         (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
18475         of a call to a function that dispatches on access result.
18476         (Check_Dispatching_Operation): In case of late overriding of a primitive
18477         that covers abstract interface subprograms we register it in all the
18478         secondary dispatch tables associated with abstract interfaces.
18479         (Check_Dispatching_Call): Add check that a dispatching call is not made
18480         to a function with a controlling result of a limited type. This is a
18481         current implementation restriction.
18482         (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
18483         (Check_Dispatching_Operation): Do no emit a warning if the controlling
18484         argument is an interface type that is a generic formal.
18485         (Is_Interface_Subprogram): Removed.
18486         (Check_Dispatching_Operation): If the subprogram is not a dispatching
18487         operation, check the formals to handle the case in which it is
18488         associated with an abstract interface type.
18489
18490 2006-10-31  Robert Dewar  <dewar@adacore.com>
18491             Ed Schonberg  <schonberg@adacore.com>
18492
18493         * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
18494         Add new calls to this procedure during traversal
18495         (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
18496         another unit if expansion is disabled.
18497
18498 2006-10-31  Robert Dewar  <dewar@adacore.com>
18499
18500         * sem_eval.adb (Compile_Time_Compare): Make use of information from
18501         Current_Value in the conditional case, to evaluate additional
18502         comparisons at compile time.
18503
18504 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18505             Hristian Kirtchev  <kirtchev@adacore.com>
18506             Javier Miranda  <miranda@adacore.com>
18507
18508         * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
18509         subprogram type to provide better diagnostics in case of ambiguity.
18510         (Covers): Handle coverage of formal and actual anonymous access types in
18511         the context of generic instantiation.
18512         (Covers/Interface_Present_In_Ancestors): Use the base type to manage
18513         abstract interface types; this is required to handle concurrent types
18514         with discriminants and abstract interface types.
18515         (Covers): Include type coverage of both regular incomplete subtypes and
18516         incomplete subtypes of incomplete type visibles through a limited with
18517         clause.
18518
18519 2006-10-31  Robert Dewar  <dewar@adacore.com>
18520             Hristian Kirtchev  <kirtchev@adacore.com>
18521             Ed Schonberg  <schonberg@adacore.com>
18522
18523         * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
18524         messages for entities in packages which are not used.
18525         (Collect_Synchronized_Interfaces): New procedure.
18526         (Overrides_Synchronized_Primitive): New function.
18527         (Denotes_Discriminant): Extend predicate to apply to task types.
18528         Add missing continuation marks in error msgs
18529         (Unqualify): New function for removing zero or more levels of
18530         qualification from an expression. There are numerous places where this
18531         ought to be used, but we currently only deal properly with zero or one
18532         level.
18533         (In_Instance); The analysis of the actuals in the instantiation of a
18534         child unit is not within an instantiation, even though the parent
18535         instance is on the scope stack.
18536         (Safe_To_Capture_Value): Exclude the case of variables that are
18537         renamings.
18538         (Check_Obsolescent): Removed
18539         (Is_Aliased_View): A reference to an enclosing instance in an aggregate
18540         is an aliased view, even when rewritten as a reference to the target
18541         object in an assignment.
18542         (Get_Subprogram_Entity): New function
18543         (Known_To_Be_Assigned): New function
18544         (Type_Access_Level): Compute properly the access level of a return
18545         subtype that is an anonymous access type.
18546         (Explain_Limited_Type): Correct use of "\" for continuation messages.
18547         (Is_Transfer): The new extended_return_statement causes a transfer of
18548         control.
18549         (Has_Preelaborable_Initialization): New function
18550         (Has_Null_Exclusion): New function. Given a node N, determine whether it
18551         has a null exclusion depending on its Nkind.
18552         Change Is_Lvalue to May_Be_Lvalue
18553         (May_Be_Lvalue): Extensive additional code to deal with subprogram
18554         arguments (IN parameters are not Lvalues, IN OUT parameters are).
18555         (Safe_To_Capture_Value): Extend functionality so it can be used for
18556         the current value condition case.
18557         (Has_Compatible_Alignment): New function
18558         (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
18559         objects to handle the Ada 2005 case, where aliasedness no longer implies
18560         that the object is constrained. In particular, for dereferenced names,
18561         the designated object must be assumed to be unconstrained.
18562         (Kill_Current_Values): Properly deal with the case where we encounter
18563         a loop in the scope chain.
18564         (Safe_To_Capture_Value): Do not let a loop stop us from capturing
18565         a value.
18566         (Compile_Time_Constraint_Error): Improve error message in error case
18567
18568         * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
18569         associated with entities of abstract interface primitives.
18570         Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
18571
18572 2006-10-31  Robert Dewar  <dewar@adacore.com>
18573
18574         * s-osinte-tru64.adb: 
18575         Mark Asm statements Volatile to prevent warnings (seems a
18576         reasonable change anyway)
18577         Fixes new warnings
18578
18579         * s-mastop-irix.adb: Add Volatile to Asm statements
18580         Suppresses warning, and seems appropriate in any case
18581
18582         * s-osinte-vms.adb: Add Volatile to Asm statement
18583
18584         * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
18585
18586         * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
18587         returned.
18588         Add call to Check_Code_Statement
18589
18590 2006-10-31  Robert Dewar  <dewar@adacore.com>
18591             Ed Schonberg  <schonberg@adacore.com>
18592             Bob Duff  <duff@adacore.com>
18593
18594         * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
18595         Synchronized_Present): Add Formal_Derived_Type_Definition and
18596         Private_Extension_Declaration to the list of assertions.
18597         (Is_Entry_Barrier_Function): New flag
18598         (Has_Self_Reference): New flag on aggregates, to indicate that they
18599         contain a reference to the enclosing type, inserted through a default
18600         initialization.
18601         (Next_Rep_Item): Move from Node4 to Node5.
18602         (Entity): Add this field for N_Attribute_Definition_Clause.
18603         (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
18604         (N_Return_Object_Declaration): Remove this node kind. We now use
18605         N_Object_Declaration instead.
18606         (Actual_Designated_Subtype): Move to a different place to make room in
18607         N_Extended_Return_Statement.
18608         (Procedure_To_Call): Move to a different place to make room in
18609         N_Extended_Return_Statement.
18610         (Return_Type): Removed this field to make room in return statements
18611         (both kinds).
18612         (Return_Statement_Entity): New field in return statements, in part to
18613         replace Return_Type, and in part to support the fact that return
18614         statements are now pushed on the scope stack during semantic analysis.
18615         (Return_Object_Declarations): New field to support extended return
18616         statements.
18617         (N_Extended_Return_Statement): New node for extended_return_statement
18618         nonterminal.
18619         (N_Return_Object_Declaration): New node for part of
18620         extended_return_statement nonterminal. Needed because all the necessary
18621         fields won't fit in N_Extended_Return_Statement.
18622         Generic_associations now carry the Box_Present flag, to indicate a
18623         default for an actual in a partially parametrized formal package.
18624
18625         * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
18626         (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
18627         and for the new predefined dispatching policies: EDF_Across_Priorities,
18628         Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
18629         Introduce new name Stub_Type for implementation defined attribute.
18630         Add pragma Preelaborable_Initialization
18631         Add entry for Priority attribute.
18632         Add Pragma_Wide_Character_Encoding
18633         (Get_Convention_Name): Given a convention id, this function returns the
18634         corresponding name id from the names table.
18635
18636 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18637             Robert Dewar  <dewar@adacore.com>
18638             Bob Duff  <duff@adacore.com>
18639
18640         * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
18641         print null exclusion twice in the case of an access definition,
18642         Implement new -gnatL switch
18643         Remove N_Return_Object_Declaration. We now use
18644         N_Object_Declaration instead. Implement the case for
18645         N_Extended_Return_Statement. Alphabetize the cases.
18646         Add cases for new nodes N_Extended_Return_Statement and
18647         N_Return_Object_Declaration. The code is not yet written.
18648         Update the output for N_Formal_Object_Declaration
18649         and N_Object_Renaming_Declaration.
18650         (Write_Itype): Account for the case of a modular integer subtype whose
18651         base type is private.
18652
18653 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
18654
18655         * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
18656         Remove elaboration code, now done in the binder.
18657
18658         * s-rident.ads: Make this unit Preelaborate.
18659         (No_Restrictions): New constant used to clean up code and follow
18660         preelaborate constraints.
18661
18662         * s-stalib.adb: 
18663         Add System.Restrictions dependence, referenced directly from the
18664         binder generated file.
18665
18666 2006-10-31  Gary Dismukes  <dismukes@adacore.com>
18667
18668         * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
18669         True when AAMP extended floating-point is in use (48-bit). Change type
18670         ByteLF to ByteLLF, add new array type ByteLF and condition the size of
18671         the two byte array types on AFloat. Change type of IV_Ilf overlay
18672         variable from Byte8 to ByteLF. Add appropriate initializations of
18673         floating-point overlays for AAMP cases.
18674
18675 2006-10-31  Javier Miranda  <miranda@adacore.com>
18676
18677         * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
18678         (Get_Ceiling): New subprogram that returns
18679         the ceiling priority of the protected object.
18680         (Set_Ceiling): New subprogram that sets the new ceiling priority of
18681         the protected object.
18682
18683         * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
18684
18685         * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
18686
18687 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
18688
18689         * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
18690         requeuing to the same protected object to give higher priority tasks
18691         the opportunity to execute.
18692
18693 2006-10-31  Robert Dewar  <dewar@adacore.com>
18694
18695         * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
18696         add more precise check for the character sequence that follows '[' to
18697         avoid possible confusion in case if '[' is the last character of a
18698         string literals.
18699         (Scan_Wide): Always allow brackets encoding
18700
18701 2006-10-31  Olivier Hainque  <hainque@adacore.com>
18702
18703         * s-stchop.ads: make this unit preelaborate. This is desirable in
18704         general and made mandatory by the use of this unit by s-taprop which
18705         is itself preelaborate.
18706
18707         * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
18708         Td_Events component.
18709
18710 2006-10-31  Vincent Celier  <celier@adacore.com>
18711
18712         * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
18713         in file names.
18714
18715 2006-10-31  Vincent Celier  <celier@adacore.com>
18716
18717         * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
18718
18719 2006-10-31  Vincent Celier  <celier@adacore.com>
18720
18721         * makegpr.adb (Check_Compilation_Needed): Take into account path names
18722         with spaces.
18723         (Check_Compilation_Needed): When checking a C or C++ source, do not
18724         resolve symbolic links.
18725         (Display_Command): New Boolean parameter Ellipse, defaulted to False.
18726         When not in verbose mode and Ellipse is True, display "..." for the
18727         first argument with Display set to False.
18728         (Build_Global_Archive): Always set Display True for the first object
18729         file. Call Display_Command with Ellipse set to True.
18730
18731 2006-10-31  Matt Heaney  <heaney@adacore.com>
18732
18733         * a-crbtgo.ads: Commented each subprogram
18734
18735         * a-crbtgo.adb: Added reference to book from which algorithms were
18736         adapted.
18737
18738         * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
18739         indicate which child.
18740         (Generic_Conditional_Insert): changed parameter name from "Success" to
18741         "Inserted".
18742         (Generic_Unconditional_Insert_With_Hint): improved algorithm
18743
18744         * a-coorse.adb (Replace_Element): changed parameter name in call to
18745         conditional insert operation.
18746
18747         * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
18748
18749         * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
18750         Generic_Iteration
18751
18752         * a-ciorse.adb (Replace_Element): changed parameter name in call to
18753         conditional insert operation.
18754
18755         * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
18756         Generic_Iteration.
18757
18758         * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
18759         instead of mode inout.
18760
18761         * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
18762         draft
18763         (Generic_Read): preserve existing buckets array if possible
18764         (Generic_Write): don't send buckets array length anymore
18765
18766         * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
18767         instead of mode inout.
18768
18769         * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
18770         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
18771
18772         * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
18773         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
18774         (Replace_Element): local operation is now an instantiation
18775
18776         * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
18777         check current length.
18778         (Generic_Replace_Element): new operation
18779
18780 2006-10-31  Doug Rupp  <rupp@adacore.com>
18781
18782         * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
18783         Call TBK$SYMBOLIZE without omitting parameters.
18784
18785 2006-10-31  Vincent Celier  <celier@adacore.com>
18786
18787         * symbols-processing-vms-ia64.adb,
18788         symbols-processing-vms-alpha.adb (Process): Do not include symbols
18789         that come from generic instantiations in bodies.
18790
18791 2006-10-31  Pat Rogers  <rogers@adacore.com>
18792
18793         * a-rttiev.ads, a-rttiev.adb: 
18794         This is a significant redesign primarily for the sake of automatic
18795         timer task termination but also to fix a design flaw.
18796         Therefore we are now using an RTS lock, instead of a protected
18797         object, to provide mutual exclusion to the queue of pending events
18798         and the type Timing_Event is no longer a protected type.
18799
18800 2006-10-31  Robert Dewar  <dewar@adacore.com>
18801             Cyrille Comar  <comar@adacore.com>
18802             Ben Brosgol  <brosgol@adacore.com>
18803
18804         * debug.adb:  Update flags documentation
18805
18806         * gnat_ugn.texi: Add documentation for new -gnatwq switch
18807         Clean up documentation for several other warning switches
18808         Clarify how task stack size can be specified with various
18809         versions of Windows.
18810         Add note that -gnatVo includes ranges including loops
18811         Add documentation for -gnatL switch
18812         Add note on elaboration warning for initializing variables
18813         Add documentation for new -gnatwt warning switch
18814         Document new form of pragma Warnings (On|Off, string)
18815         Add comment on use of pragma Warnings to control warnings
18816         Add documentation for -gnatjnn switch
18817         Modify section on interfacing with C for VMS 64-bit.
18818         Add doc for -gnatVe/E
18819         Add documentation of new warning flags -gnatww/-gnatwW
18820         Add warnings about address clause overlays to list of warnings
18821         (Exception Handling Control): Document that the option --RTS must be
18822         used consistently for gcc and gnatbind.
18823         Clarify that inlining is not always possible
18824         Update documentation on pragma Unchecked_Union.
18825
18826         * gnat_rm.texi: 
18827         Add documentation for new extended version of pragma Obsolescent
18828         Add documentation for implementation defined attribute 'Stub_Type.
18829         Add note on use of Volatile in asm statements
18830         Add documentation on use of pragma Unreferenced in context clause
18831         Document new form of pragma Warnings (On|Off, pattern)
18832         Document pragma Wide_Character_Encoding
18833         Add note that pragma Restrictions (No_Elaboration_Code) is only fully
18834         enforced if code generation is active.
18835         Add section on pragma Suppress to document GNAT specific check
18836         Alignment_Check
18837         Clarify difference between No_Dispatching_Calls & No_Dispatch.
18838         Add documentation for pragma Restrictions (No_Elaboration_Code)
18839
18840         * gnat-style.texi: 
18841         Add comments on layout of subprogram local variables in the
18842         presence of nested subprograms.
18843
18844         * ug_words: Resync.
18845
18846         * elists.ads: Minor reformatting
18847         Node returns Node_Or_Entity_Id (doc change only)
18848
18849         * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
18850
18851         * g-arrspl.ads (Create): Update comments.
18852
18853         * sem.ads: Add details on the handling of the scope stack.
18854
18855         * usage.adb: Update documentation.
18856
18857         * validsw.ads, validsw.adb: 
18858         Add definition of Validity_Check_Components and implement -gnatVe/E
18859
18860         * vms_data.ads: Add missing VMS qualifiers.
18861
18862         * s-addope.ads: Add documentation on overflow and divide by zero
18863
18864 2006-10-31  Robert Dewar  <dewar@adacore.com>
18865             Thomas Quinot  <quinot@adacore.com>
18866             Arnaud Charlet  <charlet@adacore.com>
18867
18868         * fmap.adb: Put routines in alpha order
18869
18870         * g-boumai.ads: Remove redundant 'in' keywords
18871
18872         * g-cgi.adb: Minor reformatting
18873
18874         * g-cgi.ads: Remove redundant 'in' keywords
18875
18876         * get_targ.adb: Put routines in alpha order
18877
18878         * prj-attr.ads: Minor reformatting
18879
18880         * s-atacco.ads: Minor reformatting
18881
18882         * scn.adb: Put routines in alpha order
18883
18884         * sinput-l.adb: Minor comment fix
18885
18886         * sinput-p.adb: Minor comment fix
18887
18888         * s-maccod.ads: Minor reformatting
18889
18890         * s-memory.adb: Minor reformatting
18891
18892         * s-htable.adb: Fix typo in comment.
18893
18894         * s-secsta.adb: Minor comment update.
18895
18896         * s-soflin.adb: Minor reformatting
18897
18898         * s-stoele.ads: 
18899         Add comment about odd qualification in Storage_Offset declaration
18900
18901         * s-strxdr.adb: 
18902         Remove unnecessary 'in' keywords for formal parameters.
18903
18904         * treeprs.adt: Minor reformatting
18905
18906         * urealp.adb: Put routines in alpha order
18907
18908         * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
18909         taking string.
18910
18911         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
18912
18913         * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
18914
18915         * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
18916         workaround as on other platforms.
18917
18918         * g-eacodu-vms.adb: Remove redundant 'in' keywords
18919         * g-expect-vms.adb: Remove redundant 'in' keywords
18920
18921         * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
18922         clear error message if the list-of-files file cannot be opened.
18923
18924         * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
18925         equality operator is always visible.
18926
18927         * lang.opt: Woverlength-strings: New option.
18928
18929         * nmake.adt: 
18930         Update copyright, since nmake.ads and nmake.adb have changed.
18931
18932         * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
18933         (Binder_Output_Time_Stamps_Set): removed.
18934         (Old_Binder_Output_Time_Stamp): idem.
18935         (New_Binder_Output_Time_Stamp): idem.
18936         (Recording_Time_From_Last_Bind): idem.
18937         (Recording_Time_From_Last_Bind): Make constant.
18938
18939         * output.ads, output.adb (Write_Str): Allow LF characters
18940         (Write_Spaces): New procedure
18941
18942         * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
18943
18944         * inline.adb: Minor reformatting
18945
18946         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
18947
18948         * s-mastop-vms.adb: Remove redundant 'in' keywords
18949
18950         * s-osprim-vms.adb: Remove redundant 'in' keywords
18951
18952         * s-trafor-default.adb: Remove redundant 'in' keywords
18953
18954         * 9drpc.adb: Remove redundant 'in' keywords
18955
18956         * s-osinte-mingw.ads: Minor reformatting
18957
18958         * s-inmaop-posix.adb: Minor reformatting
18959
18960         * a-direio.ads: Remove quotes from Compile_Time_Warning message
18961
18962         * a-exexda.adb: Minor code reorganization
18963
18964         * a-filico.adb: Minor reformatting
18965
18966         * a-finali.adb: Minor reformatting
18967
18968         * a-nudira.ads: Remove quote from Compile_Time_Warning message
18969
18970         * a-numeri.ads: Minor reformatting
18971
18972         * a-sequio.ads: Remove quotes from Compile_Time_Warning message
18973
18974         * exp_pakd.ads: Fix obsolete comment
18975
18976         * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
18977         a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
18978         Probably not a bug, but certainly neater and more efficient.
18979
18980         * a-tienio.adb: Minor reformatting
18981
18982         * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
18983         Avoid assuming low bound of string is 1.
18984
18985         * gnatbind.adb: Change Bindusg to package and rename procedure as
18986         Display, which now ensures that it only outputs usage information once.
18987         (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
18988
18989         * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
18990         Table'First.
18991
18992         * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
18993         warning.
18994         (Match): Add pragma Assert to ensure that Matches'First is zero
18995
18996         * g-regpat.ads (Match): Document that Matches lower bound must be zero
18997
18998         * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
18999         documented preconditions (also kills warnings about bad indexes).
19000
19001         * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
19002         is 1.
19003         (Build_Import_Library): Ditto;
19004
19005         * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
19006
19007         * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
19008
19009         * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
19010         lower bound of choice table is 1.
19011
19012         * sem_case.ads (Analyze_Choices): Document that lower bound of
19013         Choice_Table is 1.
19014
19015         * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
19016         string is 1.
19017
19018         * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
19019         and add appropriate Assert pragma to suppress warnings.
19020
19021         * atree.h, atree.ads, atree.adb
19022         Change Elist24 to Elist25
19023         Add definitions of Field28 and Node28
19024         (Traverse_Field): Use new syntactic parent table in sinfo.
19025
19026         * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
19027
19028         * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
19029
19030         * exp_tss.adb: Put routines in alpha order
19031
19032         * fe.h: Remove redundant declarations.
19033
19034 2006-10-23 Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
19035
19036         * utils.c (builtin_function): Rename to gnat_builtin_function.
19037         Move common code to add_builtin_function.
19038         * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
19039         gnat_builtin_function.
19040         * gigi.h (builtin_function): Rename to gnat_builtin_function.
19041         Change the signature.
19042
19043 2006-10-16  Brooks Moses  <bmoses@stanford.edu>
19044
19045         * Makefile.in: Add TEXI2PDF definition.
19046         * Make-lang.in: Add "ada.pdf" target.
19047
19048 2006-10-03  Kazu Hirata  <kazu@codesourcery.com>
19049
19050         * decl.c, utils.c: Fix comment typos.
19051         * utils.c: Fix a typo.
19052
19053 2006-09-28  Eric Botcazou  <ebotcazou@adacore.com>
19054
19055         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
19056         on "pure" Ada subprograms if SJLJ exceptions are used.
19057         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
19058         on the declaration node of JMPBUF_SAVE.
19059         * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
19060         of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
19061         * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
19062
19063 2006-08-20  Laurent Guerby  <laurent@guerby.net>
19064
19065         PR ada/28716
19066         g-socket.adb (Bind_Socket): Call Set_Address.
19067
19068 2006-09-15  Eric Botcazou  <ebotcazou@adacore.com>
19069
19070         PR ada/15802
19071         * decl.c (same_discriminant_p): New static function.
19072         (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
19073         subtype and we have discriminants, fix up the COMPONENT_REFs
19074         for the discriminants to make them reference the corresponding
19075         fields of the parent subtype after it has been built.
19076
19077 2006-09-15  Roger Sayle  <roger@eyesopen.com>
19078
19079         PR ada/18817
19080         * utils.c (max_size): Perform constant folding of (A ? B : C) - D
19081         into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
19082
19083 2006-09-13  Olivier Hainque  <hainque@adacore.com>
19084
19085         PR ada/29025
19086         * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
19087         of a SAVE_EXPR, just make the operand addressable/not-readonly and
19088         let the common gimplifier code make and propagate a temporary copy.
19089         (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
19090         out/in-out actuals and defer setting the addressable/readonly bits
19091         to the gimplifier.
19092
19093 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
19094
19095         PR ada/28591
19096         * decl.c (components_to_record): Defer emitting debug info for the
19097         record type associated with the variant until after we are sure to
19098         actually use it.
19099
19100 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
19101
19102         PR ada/21952
19103         * gigi.h (gnat_internal_attribute_table): Declare.
19104         * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
19105         * utils.c (gnat_internal_attribute_table): New global variable.
19106         (builtin_function): Always call decl_attributes on the builtin.
19107         (handle_const_attribute): New static function.
19108         (handle_nothrow_attribute): Likewise.
19109
19110 2006-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
19111
19112         * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
19113
19114 2006-06-23  Olivier Hainque  <hainque@adacore.com>
19115
19116         * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
19117         not been able to get a constant upper bound from TYPE_SIZE_UNIT.
19118
19119 2006-06-20  James A. Morrison  <phython@gcc.gnu.org>
19120             Eric Botcazou  <ebotcazou@adacore.com>
19121
19122         PR ada/18692
19123         * Make-lang.in: Add check-gnat to lang_checks.  Rename existing
19124         check-gnat into check-acats.
19125
19126 2006-06-17  Karl Berry  <karl@gnu.org>
19127
19128         * gnat-style.texi (@dircategory): Use "Software development"
19129         instead of "Programming", following the Free Software Directory.
19130
19131 2006-06-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19132
19133         PR ada/27944
19134         * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
19135
19136 2006-06-06  Laurent Guerby  <laurent@guerby.net>
19137
19138         PR ada/27769
19139         mlib-utl.adb: Use Program_Name.
19140
19141 2006-05-28  Kazu Hirata  <kazu@codesourcery.com>
19142
19143         * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
19144         sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
19145         trans.c, utils.c: Fix comment typos.  Follow spelling
19146         conventions.
19147         * gnat_rm.texi, gnat_ugn.texi, : Fix typos.  Follow spelling
19148         conventions.
19149
19150 2006-05-19  Nicolas Setton  <setton@adacore.com>
19151
19152         * misc.c (gnat_dwarf_name): New function.
19153         (LANG_HOOKS_DWARF_NAME): Define to it.
19154
19155 2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
19156
19157         * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
19158         (ada/misc.o): Likewise.
19159         (ada/utils.o): Likewise.
19160
19161 2006-04-08  Aurelien Jarno  <aurel32@debian.org>
19162
19163         * Makefile.in: Add Ada support for GNU/kFreeBSD.
19164         * s-osinte-kfreebsd-gnu.ads: New file.
19165
19166 2006-03-29  Carlos O'Donell  <carlos@codesourcery.com>
19167
19168         * Make-lang.in: Rename docdir to gcc_docdir.
19169
19170 2006-03-04  Eric Botcazou  <ebotcazou@adacore.com>
19171
19172         * gigi.h (get_ada_base_type): Delete.
19173         * utils2.c (get_ada_base_type): Likewise.
19174         * trans.c (convert_with_check): Operate in the real base type.
19175
19176 2006-03-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19177
19178         * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
19179
19180 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
19181
19182         * utils.c (create_var_decl): Use have_global_bss_p when deciding
19183         whether to make the decl common.
19184
19185 2006-02-20  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
19186
19187         * Make-lang.in (Ada): Remove.
19188         (.PHONY): Remove Ada
19189
19190 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19191
19192         * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
19193         aggregate, check the interpretations of the other operand to find one
19194         that may be a boolean array.
19195
19196         (Analyze_Selected_Component): Fix flow-of-control typo in case where
19197         the prefix is a private extension.
19198
19199 2006-02-17  Eric Botcazou  <botcazou@adacore.com>
19200
19201         PR ada/26315
19202         * utils2.c (find_common_type): If both input types are BLKmode and
19203         have the same constant size, keep using the first one.
19204
19205         * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
19206
19207         * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
19208
19209         * misc.c (gnat_handle_option): New case for -Woverlength-strings.
19210
19211 2006-02-17  Jose Ruiz  <ruiz@adacore.com>
19212
19213         * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb, 
19214         s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
19215         s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb, 
19216         s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
19217         Abort_Defer/Undefer pairs to avoid the possibility of a task being
19218         aborted while owning a lock.
19219
19220 2006-02-17  Javier Miranda  <miranda@adacore.com>
19221             Robert Dewar  <dewar@adacore.com>
19222
19223         * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
19224         through an access to class-wide interface we force the displacement of
19225         the pointer to the allocated object to reference the corresponding
19226         secondary dispatch table.
19227         (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
19228         if Long_Shifts are supported on the target, even if 64 bit divides
19229         are not supported (configurable run time mode).
19230         (Expand_N_Type_Conversion): Do validity check if validity checks on
19231         operands are enabled.
19232         (Expand_N_Qualified_Expression): Do validity check if validity checks
19233         on operands are enabled.
19234
19235 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19236
19237         * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
19238         must be materialized when the renamed expression is an explicit
19239         dereference.
19240
19241 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19242
19243         * freeze.adb (Statically_Discriminated_Components): Return false if
19244         the bounds of the type of the discriminant are not static expressions.
19245
19246         * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
19247         the bounds of the discriminant type are not static.
19248
19249 2006-02-17  Robert Dewar  <dewar@adacore.com>
19250
19251         * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
19252         then we close To if it is valid.
19253
19254 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
19255
19256         * init.c (facility_resignal_table): new array
19257         (__gnat_default_resignal_p): enhance default predicate to resignal if
19258         VMS condition has one of the predefined facility codes.
19259
19260 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
19261
19262         * Makefile.in: Use VMS64 specialized versions of several units in
19263         Interfaces.C hierarchy to be compatible with HP C default size choices.
19264         Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
19265
19266 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19267
19268         * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
19269         instantiation, the corresponding entity is the related_instance of the
19270         wrapper package created for the instance.
19271
19272 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19273
19274         * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
19275         the current instance is nested within another instance in a child unit.
19276
19277 2006-02-17  Javier Miranda  <miranda@adacore.com>
19278             Ed Schonberg  <schonberg@adacore.com>
19279
19280         * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
19281         type we cannot inherit the primitive operations; we inherit the
19282         Corresponding_Record_Type (which has the list of primitive operations).
19283         (Check_Anonymous_Access_Types): When creating anonymous access types for
19284         access components, use Rewrite in order to preserve the tree structure,
19285         for ASIS use.
19286         (Analyze_Object_Declaration): For limited types with access
19287         discriminants with defaults initialized by an aggregate, obtain
19288         subtype from aggregate as for other mutable types.
19289         (Derived_Type_Declaration): If the derived type is a limited interface,
19290         set the corresponding flag (Is_Limited_Record is not sufficient).
19291
19292 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19293
19294         * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
19295         to inline a function that returns an unconstrained type, the return
19296         expression must be the first variable declared in the body of the
19297         function.
19298
19299 2006-02-17  Javier Miranda  <miranda@adacore.com>
19300
19301         * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
19302         abstract interface type, the static analysis is not enough to know if
19303         the interface is implemented or not by the source tagged type. Hence
19304         we must pass the work to the expander to generate the required code to
19305         evaluate the conversion at run-time.
19306         (Resolve_Equality_Op): Do not apply previous
19307         transformation if expansion is disasbled, to prevent anomalies when
19308         locating global references in a generic unit.
19309
19310 2006-02-17  Vincent Celier  <celier@adacore.com>
19311
19312         * snames.ads, snames.adb: New standard names for new project attributes:
19313         archive_builder, archive_indexer, compiler_pic_option,
19314         config_body_file_name, config_body_file_name_pattern,
19315         config_file_switches, config_file_unique, config_spec_file_name,
19316         config_spec_file_name_pattern, default_builder_switches,
19317         default_global_compiler_switches, default_language,
19318         dependency_file_kind, global_compiler_switches, include_path,
19319         include_path_file, language_kind, linker_executable_option,
19320         linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
19321         roots, runtime_project.
19322
19323 2006-02-17  Matthew Heaney  <heaney@adacore.com>
19324
19325         * a-convec.ads, a-convec.adb: 
19326         (operator "&"): handle potential overflow for large index types
19327         (Insert): removed Contraint_Error when using large index types
19328         (Insert_Space): removed Constraint_Error for large index types
19329         (Length): moved constraint check from Length to Insert
19330
19331         * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
19332         as not null access.
19333         Explicit raise statements now include an exception message.
19334         (operator "&"): handle potential overflow for large index types
19335         (Insert): removed Contraint_Error when using large index types
19336         (Insert_Space): removed Constraint_Error for large index types
19337         (Length): moved constraint check from Length to Insert
19338
19339 2006-02-17  Robert Dewar  <dewar@adacore.com>
19340
19341         * s-wchcnv.adb: Document handling of [ on output (we do not change
19342         this to ["5B"] and the new comments say why not.
19343
19344         * gnat_ugn.texi: 
19345         Add note for -gnatVo that this now includes the cases of type
19346         conversions and qualified expressions.
19347         Add comments on handling of brackets encoding for Text_IO
19348
19349 2006-02-17  Ramon Fernandez  <fernandez@adacore.com>
19350             Thomas Quinot  <quinot@adacore.com>
19351             Robert Dewar  <dewar@adacore.com>
19352             Javier Miranda  <miranda@adacore.com>
19353
19354         * expander.adb: Fix typo in comment
19355
19356         * exp_pakd.adb: Fix typo
19357         Minor comment reformatting.
19358
19359         * g-dyntab.adb: Minor reformatting
19360
19361         * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
19362         aliased subprograms to look for the abstract interface subprogram.
19363
19364 2006-02-16  Eric Botcazou  <ebotcazou@adacore.com>
19365
19366         * env.c (__gnat_setenv): Use size_t.
19367         (__gnat_unsetenv): Likewise.
19368         (__gnat_clearenv): Likewise.
19369
19370 2006-02-16  Arnaud Charlet  <charlet@adacore.com>
19371
19372         * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
19373
19374 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19375
19376         * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
19377         g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
19378         i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
19379         s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
19380         s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
19381         s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
19382         s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
19383         s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
19384         s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
19385         no longer used.
19386
19387 2006-02-13  Jose Ruiz  <ruiz@adacore.com>
19388
19389         * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
19390         protection against race conditions is not needed.
19391         (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
19392         fallback handler.
19393         (Set_Specific_Handler): Add mutual exclusive access to the specific
19394         handler.
19395         (Specific_Handler): Add mutual exclusive access for retrieving the
19396         specific handler.
19397
19398         * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
19399         back handler.
19400
19401         * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
19402         Fall_Back_Handler and Specific_Handler.
19403
19404         * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
19405         termination handlers.
19406         Set two different owerflow depending on the maximal stack size.
19407
19408         * s-solita.adb (Task_Termination_Handler_T): Document why explicit
19409         protection against race conditions is not needed when executing the
19410         task termination handler.
19411
19412 2006-02-13  Robert Dewar  <dewar@adacore.com>
19413
19414         * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
19415         a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
19416         a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
19417         a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
19418         a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
19419         a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
19420         a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
19421         a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
19422         a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
19423         a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
19424         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
19425         a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
19426         a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
19427         a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
19428         a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
19429         a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
19430         a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
19431         a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
19432         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
19433         a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
19434         g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
19435         g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
19436         mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
19437         prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
19438         s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
19439         s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
19440         s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
19441         s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
19442         s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
19443         s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
19444         a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
19445         fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
19446         par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
19447         system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
19448         reformatting.
19449
19450 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
19451
19452         * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
19453         s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
19454         s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
19455         s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
19456         a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
19457         s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
19458         a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
19459         s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
19460         s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
19461
19462 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19463
19464         * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads, 
19465         s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads, 
19466         s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads, 
19467         s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads, 
19468         s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads, 
19469         s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
19470         replaced by anonymous access type.
19471         (pthread_sigmask): Now take an access sigset_t
19472
19473         * s-osinte-hpux.ads:  Ditto.
19474         (pthread_mutex_t, pthread_cond_t): Update definitions to support
19475         properly 32 and 64 bit ABIs.
19476
19477 2006-02-13  Pascal Obry  <obry@adacore.com>
19478
19479         * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb, 
19480         s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb, 
19481         s-taprop-linux.adb, s-taprop-solaris.adb,
19482         s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
19483         adjustement is already done when calling this routine.
19484
19485 2006-02-13  Pascal Obry  <obry@adacore.com>
19486
19487         * system-mingw.ads (Underlying_Priorities): Update the priority mapping
19488         table to take advantage of the 16 priority levels available on Windows
19489         2000 and XP. On NT4 there are only 7 priority levels, this is properly
19490         supported by this new mapping.
19491
19492 2006-02-13  Nicolas Setton  <setton@adacore.com>
19493
19494         * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
19495         (get_encoding): New subprogram. Extracts the encodings from an encoded
19496         Ada name.
19497
19498 2006-02-13  Pascal Obry  <obry@adacore.com>
19499             Nicolas Roche  <roche@adacore.com>
19500             Arnaud Charlet  <charlet@adacore.com>
19501
19502         * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
19503         support.
19504         (__gnat_try_lock): Add unicode support by using a specific section on
19505         Windows.
19506         (__gnat_get_current_dir): Idem.
19507         (__gnat_open_read): Idem.
19508         (__gnat_open_rw): Idem.
19509         (__gnat_open_create): Idem.
19510         (__gnat_create_output_file): Idem.
19511         (__gnat_open_append): Idem.
19512         (__gnat_open_new): Idem.
19513         (__gnat_file_time_name): Idem.
19514         (__gnat_set_file_time_name): Idem.
19515         (__gnat_stat): Idem.
19516         (win32_no_block_spawn): Idem.
19517         (__gnat_locate_exec_on_path): Idem.
19518         (__gnat_opendir): New routine.
19519         (__gnat_closedir): Idem.
19520         (__gnat_readdir): Add new parameter length (pointer to int). Update
19521         implementation to use it and add specific Win32 code for Unicode
19522         support.
19523         (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
19524         (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
19525         (convert_addresses): Do not define this dummy routine on VMS.
19526
19527         * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
19528         runtime Unicode support will be activated.
19529         (S2WS): String to Wide-String conversion. This version just copy a
19530         string in non Unicode version.
19531         (WS2S): Wide-String to String conversion. This version just copy a
19532         string in non Unicode version.
19533
19534         * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
19535         (Open): Now import __gnat_opendir from adaint.c.
19536         (Read): Change the implementation to support unicode characters. It is
19537         not possible to use strlen() on Windows as this version supports only
19538         standard ASCII characters. So the length of the directory entry is now
19539         returned from the imported __gnat_readdir routine.
19540         Update copyright notice.
19541
19542         * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
19543         (opendir): Moved to adaint.c.
19544
19545         * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
19546         (Get_Directory): Fix wrong indexing.
19547         (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
19548         __gnat_getenv from env.c
19549         (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
19550         from env.c
19551
19552         * env.h, env.c: New file.
19553
19554         * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
19555         adaint.c by __gnat_getenv from env.c
19556
19557         * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
19558         adaint.c by __gnat_getenv from env.c
19559
19560         * Make-lang.in: Add env.o in the list of C object needed by gnat1
19561         and gnatbind.
19562         Update dependencies.
19563
19564 2006-02-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19565             Olivier Hainque  <hainque@adacore.com>
19566             Eric Botcazou  <ebotcazou@adacore.com>
19567
19568         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
19569         
19570         * gigi.h (value_factor_p): Add prototype and description, now public.
19571
19572         * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
19573         promotion for field with rep clause if the associated size was proven
19574         to be in error.
19575         Expand comments describing attempts to use a packable type.
19576         (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
19577         E_Floating_Point_Subtype>: Inherit alias set of what we are making a
19578         subtype of to ensure conflicts amongst all subtypes in a hierarchy,
19579         necessary since these are not different types and pointers may
19580         actually designate any subtype in this hierarchy.
19581         (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
19582         discriminants but put them into record only if not Unchecked_Union;
19583         pass flag to components_to_record showing Unchecked_Union.
19584         (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
19585         components before variants; don't set TYPE_UNCHECKED_UNION_P.
19586         (components_to_record): New argument UNCHECKED_UNION.
19587         Remove special case code for Unchecked_Union and instead use main code
19588         with small changes.
19589
19590         PR ada/26096
19591         (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
19592         variable with the expression being built, only its inner field.
19593
19594         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
19595         emit_sequence_entry_statements.
19596         (emit_sequence_entry_statements, body_with_handlers_p): Delete.
19597         (establish_gnat_vms_condition_handler): Move before
19598         Subprogram_Body_to_gnu.
19599         (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
19600         for a subprogram if it has a foreign convention or is exported.
19601         (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
19602         substituted for a CONST_DECL.
19603         (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
19604         Etype to assoc_to_constructor.
19605         (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
19606         discriminants of Unchecked_Union.
19607         (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
19608         don't need cluttering preprocessor directives.
19609         (establish_gnat_vms_condition_handler): New function. Establish the GNAT
19610         condition handler as current in the compiled function.
19611         (body_with_handlers_p): New function. Tell whether a given sequence of
19612         statements node is attached to a package or subprogram body and involves
19613         exception handlers possibly nested within inner block statements.
19614         (emit_sequence_entry_statements): New function, to emit special
19615         statements on entry of sequences when necessary. Establish GNAT
19616         condition handler in the proper cases for VMS.
19617         (Handled_Sequence_Of_Statements_to_gnu): Start block code with
19618         emit_sequence_entry_statements.
19619
19620         * utils2.c (find_common_type): If both input types are BLKmode and
19621         have a constant size, use the smaller one.
19622         (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
19623         the same.
19624
19625         * utils.c (value_factor_p): Make public, to allow uses from other gigi
19626         units.
19627         (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
19628         (convert, case UNION_TYPE): Remove special treatment for unchecked
19629         unions.
19630
19631         PR ada/18659
19632         (update_pointer_to): Update variants of pointer types to unconstrained
19633         arrays by attaching the list of fields of the main variant.
19634
19635 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19636             Robert Dewar  <dewar@adacore.com>
19637
19638         * a-exexpr.adb, a-exexpr-gcc.adb
19639         (Process_Raise_Exception): Removed, merged with Propagate_Exception.
19640         (Propagate_Exception): Now take extra From_Signal_Handler parameter.
19641         Remove code unused for exception propagation for the compiler itself
19642         from a-except.adb and update to still share separate packages.
19643
19644         * a-except.ads, a-except.adb: Ditto.
19645         Add comments that this version is now used only by the compiler and
19646         other basic tools. The full version that includes the Ada 2005 stuff
19647         is in separate files a-except-2005.ads/adb. The reason is that we do
19648         not want to cause bootstrap problems with compilers not recognizing
19649         Wide_Wide_String.
19650         Add exception reason code PE_Implicit_Return
19651         Add new exception reason code (Null Exception_Id)
19652
19653         * a-except-2005.adb, a-except-2005.ads: New files.
19654
19655         * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
19656
19657         * s-wchcon.adb: New file.
19658
19659         * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
19660         (traceback.o deps): Likewise.
19661         (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
19662         Activate build of GMEM instrumentation library on VMS targets.
19663         (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
19664         Use a-except-2005.ads/adb for all run-time library builds unless
19665         specified otherwise.
19666         [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
19667         s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
19668         Use s-parame.adb on all native platforms.
19669         Use s-parame-vxworks.adb on all vxworks platforms.
19670         Add env.c env.h in LIBGNAT_SRCS
19671         Add env.o in LIBGNAT_OBJS
19672         (GNATMAKE_OBJS): Remove ctrl_c.o object.
19673         (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
19674         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
19675         supports VxWorks 6 RTPs.
19676         (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
19677         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
19678
19679         * types.h, types.ads (Terminate_Program): New exception
19680         Add comment on modifying multiple versions of a-except.adb when the
19681         table of exception reasons is modified.
19682         Add exception reason code PE_Implicit_Return
19683         Add new exception reason code (Null Exception_Id)
19684
19685         * clean.adb (Initialize): Get the target parameters before checking
19686         if target is OpenVMS. Move the OpenVMS specific code here from package
19687         body elaboration code.
19688
19689 2006-02-13  Thomas Quinot  <quinot@adacore.com>
19690             Vincent Celier  <celier@adacore.com>
19691             Robert Dewar  <dewar@adacore.com>
19692
19693         * ali-util.adb (Get_File_Checksum): Update to account for change in
19694         profile of Initialize_Scanner.
19695
19696         * gprep.adb (Gnatprep): Update to account for change in profile of
19697         Initialize_Scanner.
19698         (Process_One_File): Same.
19699
19700         * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
19701         common code between Get_Code_Unit and Get_Source_Unit. Reimplement
19702         that behaviour using the new Unit information recorded in the source
19703         files table, rather than going through all units every time.
19704         (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
19705         (Get_Source_Unit): Same.
19706
19707         * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
19708         change in profile of Initialize_Scanner.
19709         (Prepare_To_Preprocess): Same.
19710
19711         * lib.ads: Fix typo in comment (templace -> template).
19712
19713         * prj-part.adb (Parse_Single_Project): Update to account for change in
19714         profile of Initialize_Scanner.
19715
19716         * scn.adb (Initialize_Scanner): Account for change in profile of
19717         Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
19718         Also record the association of the given Source_File_Index to the
19719         corresponding Unit_Number_Type.
19720
19721         * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
19722         procedure.
19723         (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
19724         Remove Unit formal for generic scanner: this formal
19725         is only relevant to Scn (the scanner instance used to parse Ada source
19726         files), not to other instances. Update comment accordingly.
19727         (Scan): Use new function Snames.Is_Keyword_Name.
19728
19729         * sinfo-cn.adb: Fix typo in comment.
19730
19731         * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
19732         Unit.
19733
19734         * sinput.ads (Source_File_Record): New component Unit, used to capture
19735         the unit identifier (if any) associated to a source file.
19736
19737         * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
19738         Unit in Source_File_Record.
19739
19740         * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
19741         in profile of Initialize_Scanner.
19742
19743         * scans.adb (Initialize_Ada_Keywords): New procedure
19744
19745         * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
19746         Ada keywords in the Namet table, without the need to call
19747         Initialize_Scanner.
19748
19749         * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
19750         (Is_Keyword_Name): New function
19751
19752         * snames.ads: Add subtype Configuration_Pragma_Names
19753         Add pragma Ada_2005 (synonym for Ada_05)
19754         (Is_Keyword_Name): New function
19755
19756         * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
19757
19758 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19759
19760         * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
19761         index.
19762
19763         * a-stwima.adb (To_Set): Add extra check when N = 0.
19764
19765         * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
19766
19767 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19768
19769         * s-parame-mingw.adb, s-parame-linux.adb,
19770         s-parame-solaris.adb: Removed, replaced by s-parame.adb
19771
19772         * s-parame-vxworks.ads: Fix typo.
19773
19774         * s-parame-vxworks.adb: New file.
19775
19776         * s-parame.adb: Version now used by all native platforms.
19777         (Default_Stack_Size): Use 2 megs for default stack size and use
19778         __gl_default_stack_size when available.
19779         (Minimum_Stack_Size): Use 12K.
19780
19781         * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
19782         (Create_Task): Refine implementation taking advantage of the XP stack
19783         size support. On XP, we now create the thread using the flag
19784         STACK_SIZE_PARAM_IS_A_RESERVATION.
19785
19786         * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
19787
19788         * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
19789         XP and 0 on older Windows versions.
19790
19791         * interfac-vms.ads: Removed, no longer used.
19792
19793 2006-02-13  Matthew Heaney  <heaney@adacore.com>
19794
19795         * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb, 
19796         a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb, 
19797         a-cohase.adb: All explicit raise statements now include an exception
19798         message.
19799
19800         * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
19801         (Update_Element_Preserving_Key): renamed op to just Update_Element.
19802         Explicit raise statements now include an exception message
19803
19804         * a-cihase.ads, a-cohase.ads: Removed comment.
19805
19806         * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
19807         a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
19808         a-szbzha.adb, a-szfzha.ads: New files.
19809
19810 2006-02-13  Matthew Heaney  <heaney@adacore.com>
19811
19812         * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
19813         quicksort.
19814
19815 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
19816
19817         * lang.opt: Wvariadic-macros: New option.
19818         Wold-style-definition: Likewise.
19819         Wmissing-format-attribute: Likewise.
19820
19821         * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
19822         -Wold-style-definition and -Wmissing-format-attribute.
19823
19824 2006-02-13  Robert Dewar  <dewar@adacore.com>
19825
19826         * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
19827
19828         * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
19829
19830 2006-02-13  Nicolas Roche  <roche@adacore.com>
19831
19832         * a-envvar.adb, a-envvar.ads: New files.
19833
19834 2006-02-13  Douglas Rupp  <rupp@adacore.com>
19835
19836         * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
19837
19838         * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
19839
19840 2006-02-13  Pat Rogers  <rogers@adacore.com>
19841
19842         * a-rttiev.adb, a-rttiev.ads: New files.
19843
19844 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
19845
19846         * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
19847         a-wwboio.ads, a-zzboio.adb, a-zzboio.ads:  New files.
19848
19849         * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
19850
19851 2006-02-13  Robert Dewar  <dewar@adacore.com>
19852
19853         * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb, 
19854         sem_case.adb: Minor code reorganization (not Present should be No)
19855
19856 2006-02-13  Geert Bosch  <bosch@adacore.com>
19857             Gary Dismukes  <dismukes@adacore.com>
19858
19859         * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
19860         0, since the lower bound of the actual string may be greater than one.
19861
19862         PR ada/20753
19863         * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
19864         layout is requested.
19865
19866 2006-02-13  Vincent Celier  <celier@adacore.com>
19867
19868         * back_end.adb (Scan_Compiler_Arguments): Check if
19869         Search_Directory_Present is True and, if it is, add the argument in
19870         the source search directory path.
19871
19872         * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
19873         Search_Directory_Present to True.
19874
19875 2006-02-13  Joel Brobecker  <brobecke@adacore.com>
19876
19877         * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
19878         volatile, to tell the compiler to preserve this variable at any level
19879         of optimization.
19880         (Gen_Versions_Ada): Temporarily work around codegen bug.
19881
19882 2006-02-13  Vincent Celier  <celier@adacore.com>
19883
19884         * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
19885         gcc to link with option -shared-libgcc.
19886         (Gnatlink): Remove duplicate switches -shared-libgcc
19887
19888 2006-02-13  Robert Dewar  <dewar@adacore.com>
19889
19890         * gnatvsn.ads (Current_Year): New constant, used to easily update
19891         copyright on all GNAT tools.
19892
19893         * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
19894         copyright notice.
19895
19896 2006-02-13  Robert Dewar  <dewar@adacore.com>
19897
19898         * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
19899         after hyphen (small aesthetic change useful for a range of numbers
19900         using ^-^.
19901         Suppress range checks for a couple of assignments which otherwise
19902         cause validity checks with validity checking turned on.
19903
19904         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
19905         Improvement in error message for object.
19906         (Rep_Item_Too_Late): Remove '!' in warning message.
19907
19908 2006-02-13  Robert Dewar  <dewar@adacore.com>
19909             Eric Botcazou  <ebotcazou@adacore.com>
19910
19911         * err_vars.ads: Suppress range checks for a couple of assignments
19912         which otherwise cause validity checks with validity checking turned on.
19913         Update comments.
19914
19915         * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
19916         Make message unconditional if it is a warning.
19917         (Error_Msg_NEL): Always output warning messages.
19918         Suppress range checks for a couple of assignments which otherwise
19919         cause validity checks with validity checking turned on.
19920
19921         * errout.ads (Message Insertion Characters): Document that '!' is
19922         implied by '?' in error messages.
19923
19924         * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
19925         (Gnat1drv): Use a goto to end of main subprogram instead of
19926         Exit_Program (E_Success) so that finalization can occur normally.
19927
19928 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
19929
19930         * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
19931         wrapped around.
19932
19933 2006-02-13  Vincent Celier  <celier@adacore.com>
19934
19935         * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
19936         Unchecked_Conversion functions.
19937         (Modification_Time): Use direct conversion of OS_Time to Calendar time
19938         when OpenVMS returns False.
19939
19940         * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
19941         a-dirval.adb (OpenVMS): New Boolean function
19942
19943 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19944             Thomas Quinot  <quinot@adacore.com>
19945
19946         * checks.adb (Build_Discriminant_Checks): If the expression being
19947         checks is an aggregate retrieve the values of its discriminants to
19948         generate the check, rather than creating a temporary and a reference
19949         to it.
19950         (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
19951         (Install_Null_Excluding_Check): Ditto
19952         (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
19953         not for the renamed object, so that the actual itype is attached in the
19954         proper context.
19955
19956 2006-02-13  Robert Dewar  <dewar@adacore.com>
19957             Vincent Celier  <celier@adacore.com>
19958
19959         * debug.adb: Eliminate numeric switches for binder/gnatmake
19960
19961         * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
19962         switches for the compiler.
19963         (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
19964         (Scan_Make_Switches): When failing with an illegal switch, output an
19965         error message with the full switch.
19966         Eliminate numeric switches for binder/gnatmake
19967
19968         * switch.ads, switch.adb (Bad_Switch): New procedure
19969
19970         * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
19971         Remove 0-9 as debug flag character possibilities
19972         -d is now controlling the primary stack size when its value is a
19973         positive. Also add checks against invalid values, and support for kb,
19974         mb. Ditto for -D switch.
19975
19976 2006-02-13  Robert Dewar  <dewar@adacore.com>
19977             Serguei Rybin  <rybin@adacore.com>
19978
19979         * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
19980         save/restore routines.
19981         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
19982         were not always properly handled previously.
19983         Since we are changing the tree format anyway, also get rid of the
19984         junk obsolete Immediate_Errors flag.
19985         (Tree_Read): Change the way of reading Tree_Version_String - now we
19986         read the version string from the tree even if its length is not the
19987         same as the length of the version string computed from Gnatvsn.
19988         (Search_Directory_Present): New Boolean flag for the compiler.
19989         Define Tree_Version_String as a dynamic string.
19990         (Default_Stack_Size): new variable, used to handle switch -d.
19991
19992         * par-prag.adb: 
19993         For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
19994         only for main unit.
19995         Add pragma Ada_2005 (synonym for Ada_05)
19996         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
19997         were not always properly handled previously.
19998
19999         * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
20000         explicit Ada_95 to Ada_2005.
20001
20002 2006-02-13  Javier Miranda  <miranda@adacore.com>
20003             Robert Dewar  <dewar@adacore.com>
20004             Ed Schonberg  <schonberg@adacore.com>
20005
20006         * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
20007         against errors in the source program: a private types for which the
20008         corresponding full type declaration is missing and pragma CPP_Virtual
20009         is used.
20010         (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
20011         (Is_Known_Null): New flag
20012         (Has_Pragma_Pure): New flag
20013         (No_Return): Present in all entities, set only for procedures
20014         (Is_Limited_Type): A type whose ancestor is an interface is limited if
20015         explicitly declared limited.
20016         (DT_Offset_To_Top_Func): New attribute that is present in E_Component
20017         entities. Only used for component marked Is_Tag. If present it stores
20018         the Offset_To_Top function used to provide this value in tagged types
20019         whose ancestor has discriminants.
20020
20021         * exp_ch2.adb: Update status of new Is_Known_Null flag
20022
20023         * sem_ch7.adb: Maintain status of new Is_Known_Null flag
20024
20025         * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
20026         the categorization sense if Is_Pure was set by pragma Pure_Function.
20027
20028 2006-02-13  Quentin Ochem  <ochem@adacore.com>
20029             Olivier Hainque  <hainque@adacore.com>
20030
20031         * bindusg.adb: Updated documentation for -d and -D switches.
20032
20033         * raise.h (__gnat_set_globals): added new parameter for
20034         Default_Stack_Size.
20035
20036         * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
20037         (__gnat_handle_vms_condition): Adjust context before raise.
20038         (__gnat_install_handler): Restore the global vector setup for GCC
20039         versions before 3.4, as the frame based circtuitry is not available
20040         in this case.
20041         (__gnat_set_globals): added a parameter default_stack_size
20042         (__gl_default_stack_size): new variable.
20043
20044 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20045
20046         * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
20047         "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
20048         does not exist in the Ada RM.
20049         (Compatible_Int_Bounds): Determine whether two integer range bounds
20050         are of equal length and have the same start and end values.
20051         (Is_Int_Range_Bounds): Determine whether a node is an integer range.
20052         (Build_Record_Aggr_Code): Perform proper sliding of a nested array
20053         aggregate when it is part of an object declaration.
20054         (Build_Record_Aggr_Code)  If the aggregate ttype is a derived type that
20055         constrains discriminants of its parent, add explicitly the discriminant
20056         constraints of the ancestor by retrieving them from the
20057         stored_constraint of the parent.
20058
20059 2006-02-13  Robert Dewar  <dewar@adacore.com>
20060
20061         * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
20062         attribute Mechanism_Code is applied to renamed subprogram, modify
20063         prefix to point to base subprogram.
20064         Max/Min attributes now violate Restriction No_Implicit_Conditionals
20065
20066         * sinfo.ads: Document that Mechanism_Code cannot be applied to
20067         renamed subprograms so that the front-end must replace the prefix
20068         appropriately.
20069
20070 2006-02-13  Javier Miranda  <miranda@adacore.com>
20071             Gary Dismukes  <dismukes@adacore.com>
20072
20073         * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
20074         availability of RE_Interface_Tag.
20075         (Build_Initialization_Call): Fix wrong access to the discriminant value.
20076         (Freeze_Record_Type): Do not generate the tables associated with
20077         timed and conditional dispatching calls through synchronized
20078         interfaces if compiling under No_Dispatching_Calls restriction.
20079         When compiling for Ada 2005, for a nonabstract
20080         type with a null extension, call Make_Controlling_Function_Wrappers
20081         and insert the wrapper function declarations and bodies (the latter
20082         being appended as freeze actions).
20083         (Predefined_Primitive_Bodies): Do not generate the bodies of the
20084         predefined primitives associated with timed and conditional
20085         dispatching calls through synchronized interfaces if we are
20086         compiling under No_Dispatching_Calls.
20087         (Build_Init_Procedure):  Use RTE_Available to check if a run-time
20088         service is available before generating a call.
20089         (Make_Controlling_Function_Wrappers): New procedure.
20090         (Expand_N_Full_Type_Declaration): Create a class-wide master for
20091         access-to-limited-interfaces because they can be used to reference
20092         tasks that implement such limited interface.
20093         (Build_Offset_To_Top_Functions): Build the tree corresponding to the
20094         procedure spec and body of the Offset_To_Top function that is generated
20095         when the parent of a type with discriminants has secondary dispatch
20096         tables.
20097         (Init_Secondary_Tags): Handle the case in which the parent of the type
20098         containing secondary dispatch tables has discriminants to generate the
20099         correct arguments to call Set_Offset_To_Top.
20100         (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
20101
20102         * a-tags.ads, a-tags.adb: (Check_Index): Removed.
20103         Add Wide_[Wide_]Expanded_Name.
20104         (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
20105         the same functionality of Get_Prim_Op_Address but applied to predefined
20106         primitive operations because the pointers to the predefined primitives
20107         are now saved in a separate table.
20108         (Parent_Size): Modified to get access to the separate table of primitive
20109         operations or the parent type.
20110         (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
20111         functionality of Set_Prim_Op_Address but applied to predefined primitive
20112         operations.
20113         (Set_Signature): New subprogram used to store the signature of a DT.
20114         (Displace): If the Offset_To_Top value is not static then call the
20115         function generated by the expander to get such value; otherwise use
20116         the value stored in the table of interfaces.
20117         (Offset_To_Top): The type of the actual has been changed to Address to
20118         give the correct support to tagged types with discriminants. In this
20119         case this value is stored just immediately after the tag field.
20120         (Set_Offset_To_Top): Two new formals have been added to indicate if the
20121         offset_to_top value is static and hence pass this value to the run-time
20122         to store it in the table of interfaces, or else if this value is dynamic
20123         and then pass to the run-time the address of a function that is
20124         generated by the expander to provide this value for each object of the
20125         type.
20126
20127         * rtsfind.ads (Default_Prin_Op_Count): Removed.
20128         (Default_Prim_Op_Count): New entity
20129         (Get_Predefined_Prim_Op_Address): New entity
20130         (Set_Predefined_Prim_Op_Address): New entity
20131         (RE_Set_Signature): New entity
20132
20133 2006-02-13  Thomas Quinot  <quinot@adacore.com>
20134             Ed Schonberg  <schonberg@adacore.com>
20135
20136         * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
20137         Make_Adjust_Call done for a newly-allocated object.
20138
20139         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
20140         in a subprogram are wrapped in a cleanup block, indicate that the
20141         subprogram contains an inner block with an exception handler.
20142         (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
20143         Adjust call is for a newly-allocated object. In that case we must not
20144         assume that the finalization list chain pointers are correct (since they
20145         come from a bit-for-bit copy of the original object's pointers) so if
20146         the attach level would otherwise be zero (no change), we set it to 4
20147         instead to cause the pointers to be reset to null.
20148
20149         * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
20150         reset chain pointers to null.
20151
20152 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20153
20154         * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
20155         string, and the context requires a loop for the assignment (e.g.
20156         because the left-hand side is packed), generate a unique name for the
20157         temporary that holds the string, to prevent spurious name clashes.
20158
20159 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20160             Javier Miranda  <miranda@adacore.com>
20161             Robert Dewar  <dewar@adacore.com>
20162             Gary Dismukes  <dismukes@adacore.com>
20163
20164         * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
20165         return unconstrained arrays.
20166         Update comments.
20167         (Expand_Call):  An indirect call through an access parameter of a
20168         protected operation is not a protected call.
20169         Add circuit to raise CE in Ada 2005 mode following call
20170         to Raise_Exception.
20171         (Register_DT_Entry): Do nothing if
20172         the run-time does not give support to abstract interfaces.
20173         (Freeze_Subprogram): In case of dispatching operations, do not generate
20174         code to register the operation in the dispatch table if the source
20175         is compiled with No_Dispatching_Calls.
20176         (Register_Predefined_DT_Entry): Generate code that calls the new
20177         run-time subprogram Set_Predefined_Prim_Op_Address instead of
20178         Set_Prim_Op_Address.
20179
20180         * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
20181         on array assignments if the right-hand side is a function call that has
20182         been inlined. Check is performed on the assignment in the block.
20183         (Process_Bounds): If bounds and range are overloaded, apply preference
20184         rule for root operations to disambiguate, and diagnose true ambiguity.
20185         (Analyze_Assignment): Propagate the tag for a class-wide assignment with
20186         a tag-indeterminate right-hand side even when Expander_Active is True.
20187         Needed to ensure that dispatching calls to T'Input are allowed and
20188         get the tag of the target class-wide object.
20189
20190         * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
20191         an inherited primitive operation that already overrides several
20192         abstract interface primitives. For transitivity, the new entity must
20193         also override all the abstract interface primitives covered by the
20194         inherited overriden primitive.
20195         Emit warning if new entity differs from homograph in same scope only in
20196         that one has an access parameter and the other one has a parameter of
20197         a general access type with the same designated type, at the same
20198         position in the signature.
20199         (Make_Inequality_Operator): Use source locations of parameters and
20200         subtype marks from corresponding equality operator when creating the
20201         tree structure for the implicit declaration of "/=". This does not
20202         change anything in behaviour except that the decoration of the
20203         components of the subtree created for "/=" allows ASIS to get the
20204         string images of the corresponding identifiers.
20205         (Analyze_Return_Statement): Remove '!' in warning message.
20206         (Check_Statement_Sequence): Likewise.
20207         (Analyze_Subprogram_Body): For an access parameter whose designated type
20208         is an incomplete type imported through a limited_with clause, use the
20209         type of the corresponding formal in the body.
20210         (Check_Returns): Implicit return in No_Return procedure now raises
20211         Program_Error with a compile time warning, instead of beging illegal.
20212         (Has_Single_Return):  Function returning unconstrained type cannot be
20213         inlined if expression in unique return statement is not an identifier.
20214         (Build_Body_To_Inline): It is possible to inline a function call that
20215         returns an unconstrained type if all return statements in the function
20216         return the same local variable. Subsidiary procedure Has_Single_Return
20217         verifies that the body conforms to this restriction.
20218
20219         * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
20220         same type, and  one of them is of an anonymous access type, convert
20221         the other operand to it, so that this is a valid binary operation for
20222         gigi.
20223         (Resolve_Type_Conversion): Handle subtypes of protected types and
20224         task types when accessing to the corresponding record type.
20225         (Resolve_Allocator): Add '\' in 2-line warning message.
20226         Remove '!' in warning message.
20227         (Resolve_Call): Add '\' in 2-line warning message.
20228         (Valid_Conversion): Likewise.
20229         (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
20230         resulting type may be an access type with an implicit dereference.
20231         Obtain the proper component from the designated type.
20232         (Make_Call_Into_Operator): Handle properly a call to predefined equality
20233         given by an expanded name with prefix Standard, when the operands are
20234         of an anonymous access type.
20235         (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
20236         Explicit_Dereference and Resolve_Selected_Component, to verify that the
20237         prefix of the expression is not of an incomplete type. Allows full
20238         diagnoses of all semantic errors.
20239         (Resolve_Actuals): If the actual is an allocator whose directly
20240         designated type is a class-wide interface we build an anonymous
20241         access type to use it as the type of the allocator. Later, when
20242         the subprogram call is expanded, if the interface has a secondary
20243         dispatch table the expander will add a type conversion to force
20244         the displacement of the pointer.
20245         (Resolve_Call): If a function that returns an unconstrained type is
20246         marked Inlined_Always and inlined, the call will be inlined and does
20247         not require the creation of a transient scope.
20248         (Check_Direct_Boolean_Op): Removed
20249         (Resolve_Comparison_Op): Remove call to above
20250         (Resolve_Equality_Op): Remove call to above
20251         (Resolve_Logical_Op): Inline above, since this is only call.
20252         (Valid_Conversion): Handle properly conversions between arrays of
20253         convertible anonymous access types.
20254
20255         PR ada/25885
20256         (Set_Literal_String_Subtype): If the lower bound is not static, wrap
20257         the literal in an unchecked conversion, because GCC 4.x needs a static
20258         value for a string bound.
20259
20260 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20261             Hristian Kirtchev  <kirtchev@adacore.com>
20262
20263         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
20264         components of the corresponding record, take into account component
20265         definitions that are access definitions.
20266         (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
20267         procedure is not considered a dispatching call and will be expanded
20268         properly.
20269
20270 2006-02-13  Javier Miranda  <miranda@adacore.com>
20271
20272         * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
20273         controlling argument of the dispatching call is an abstract interface
20274         class-wide type then we use it directly.
20275         Check No_Dispatching_Calls restriction.
20276         (Default_Prim_Op_Position): Remove the code that looks for the last
20277         entity in the list of aliased subprograms. This code was wrong in
20278         case of renamings.
20279         (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
20280         when the source is compiled with the No_Dispatching_Calls restriction.
20281         (Init_Predefined_Interface_Primitives): No need to inherit primitives
20282         if we are compiling with restriction No_Dispatching_Calls.
20283         (Make_Disp_XXX): Addition of assertion to avoid the use of all these
20284         subprograms if we are compiling under No_Dispatching_Calls restriction.
20285         (Make_DT): Generate a dispatch table with a single dummy entry if
20286         we are compiling with the No_Dispatching_Calls restriction. In
20287         addition, in this case we don't generate code that calls to the
20288         following run-time subprograms: Set_Type_Kind, Inherit_DT.
20289         (Make_Select_Specific_Data_Table): Add assertion to avoid the use
20290         of this subprogram if compiling with the No_Dispatching_Calls
20291         restriction.
20292         (Expand_Type_Conversion): Instead of using the actual parameter,
20293         the argument passed as parameter to the conversion function was
20294         erroneously referenced by the expander.
20295         (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
20296         Set_Predefined_Primitive_Op_Address and Set_Signature.
20297         (Expand_Dispatching_Call): Generate call to
20298         Get_Predefined_Prim_Op_Address for predefined primitives.
20299         (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
20300         predefined primitives.
20301         (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
20302         primitives we reserve one dummy entry to ensure that the tag does not
20303         point to some memory that is associated with some other object. In
20304         addition, remove all the old code that generated the assignments
20305         associated with the signature of the dispatch table and replace them
20306         by a call to the new subprogram Set_Signature.
20307         (Set_All_DT_Position): Change the algorithm because now we have a
20308         separate dispatch table associated with predefined primitive operations.
20309         (Expand_Interface_Conversion): In case of non-static offset_to_top
20310         add explicit dereference to get access to the object after the call
20311         to displace the pointer to the object.
20312         (Expand_Interface_Thunk): Modify the generation of the actual used
20313         in the calls to the run-time function Offset_To_Top to fulfil its
20314         new interface.
20315         (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
20316
20317 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20318
20319         * exp_dist.adb (Copy_Specification): For access parameters, copy
20320         Null_Exclusion flag, which will have been set for stream subprograms
20321         in Ada2005 mode.
20322
20323 2006-02-13  Pascal Obry  <obry@adacore.com>
20324
20325         * expect.c (__gnat_expect_portable_execvp): New implementation. The
20326         previous implementation was using the C runtime spawnve routine but
20327         the corresponding wait was using directly the Win32 API. This was
20328         causing some times a lock when waiting for an event using
20329         WaitForSingleObject in __gnat_waitpid. This new implementation uses
20330         the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
20331         API fixes this problem.
20332
20333 2006-02-13  Robert Dewar  <dewar@adacore.com>
20334
20335         * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
20336         call.
20337
20338 2006-02-13  Thomas Quinot  <quinot@adacore.com>
20339
20340         * exp_pakd.ads: Fix typos in comments.
20341
20342         * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
20343         array reference that is an explicit dereference, mark the converted
20344         (packed) array reference as analyzed to prevent a forthcoming
20345         reanalysis from resetting its type to the original (non-packed) array
20346         type.
20347
20348 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20349             Javier Miranda  <miranda@adacore.com>
20350             Eric Botcazou  <ebotcazou@adacore.com>
20351
20352         * exp_util.ads, exp_util.adb (Find_Prim_Op,
20353         Is_Predefined_Primitive_Operation): When
20354         searching for the predefined equality operator, verify that operands
20355         have the same type.
20356         (Is_Predefined_Dispatching_Operation): Remove the code that looks
20357         for the last entity in the list of aliased subprograms. This code
20358         was wrong in case of renamings.
20359         (Set_Renamed_Subprogram): New procedure
20360         (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
20361         Exp_Type constant computed when entering this subprogram.
20362         (Known_Null): New function
20363         (OK_To_Do_Constant_Replacement): New function
20364         (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
20365         (Side_Effect_Free): An attribute reference 'Input is not free of
20366         side effect, unlike other attributes that are functions. (from code
20367         reading).
20368         (Remove_Side_Effects): Expressions that involve packed arrays or records
20369         are copied at the point of reference, and therefore must be marked as
20370         renamings of objects.
20371         (Is_Predefined_Dispatching_Operation): Return false if the operation is
20372         not a dispatching operation.
20373
20374         PR ada/18819
20375         (Remove_Side_Effects): Lift enclosing type conversion nodes for
20376         elementary types in all cases.
20377
20378 2006-02-13  Javier Miranda  <miranda@adacore.com>
20379
20380         * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
20381         task types when accessing to the corresponding record type.
20382         Remove '!' in warning message.
20383
20384 2006-02-13  Olivier Hainque  <hainque@adacore.com>
20385
20386         * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
20387         to avoid useless and space inefficient overalignments on targets where
20388         Max_Alignment is larger than 16.
20389
20390 2006-02-13  Pascal Obry  <obry@adacore.com>
20391
20392         * g-catiio.adb (Sec_Number): New type used to compute the number of
20393         seconds since 1-1-1970.
20394         (Image) [Natural]: The parameter was an Integer, as we can't deal with
20395         negative numbers (years, months...) it is better to have a Natural here.
20396         Code clean-up.
20397         (Image) [Number]: Change parameter from Long_Integer to Number.
20398         (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
20399         overflow for dates past year 2038.
20400
20401 2006-02-13  Matthew Heaney  <heaney@adacore.com>
20402
20403         *  g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
20404         Constraint_Error.
20405
20406 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
20407
20408         * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
20409         native platforms.
20410         (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
20411         finalization can occur normally.
20412
20413 2006-02-13  Vincent Celier  <celier@adacore.com>
20414
20415         * gnatcmd.adb (Rules_Switches): New table
20416         (Add_To_Rules_Switches): New procedure
20417         (GNATCmd): For command CHECK, put all options following "-rules" in the
20418         Rules_Switches table. Append these -rules switches after the -cargs
20419         switches.
20420
20421 2006-02-13  Robert Dewar  <dewar@adacore.com>
20422
20423         * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
20424         These two cases were generating incorrect output, and if this unit
20425         was built with checks on, generated a discriminant mismatch constraint
20426         error.
20427
20428 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20429             Robert Dewar  <dewar@adacore.com>
20430
20431         * lib-xref.adb (Get_Type_Reference): For a private type whose full
20432         view is an array type, indicate the component type as well, for
20433         navigation purposes.
20434         (Generate_Reference): Don't consider array ref on LHS to be a case
20435         of violating pragma Unreferenced.
20436         Do not give Ada 2005 warning except on real reference.
20437
20438 2006-02-13  Vincent Celier  <celier@adacore.com>
20439
20440         * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
20441         main source, add switch -mdebug-main=_ada_ so that the executable can
20442         be debugged by the standard VMS debugger.
20443         (Gnatmake): Set No_Main_Subprogram to True when there is no main
20444         subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
20445         Exit the Multi_Main_Loop when Unique_Compile is True after compilation
20446         of the last source, as the binding and linking phases are never
20447         performed.
20448         Set all executable obsolete when rebuilding a library.
20449
20450         * makeutl.adb (Linker_Options_Switches): Do not process empty linker
20451         options.
20452
20453 2006-02-13  Javier Miranda  <miranda@adacore.com>
20454
20455         PR ada/23973
20456         * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
20457         code to improve the error message reported when the program has
20458         declarations of abstract interface types and it is not compiled with
20459         the -gnat05 switch.
20460         (P_Access_Definition): Reorganize the code to improve the error
20461         message reported when the new Ada 2005 syntax for anonymous
20462         access types is used and the program is not compiled with the
20463         -gnat05 switch.
20464
20465 2006-02-13  Robert Dewar  <dewar@adacore.com>
20466
20467         * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
20468         stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
20469         (MODE_IN)
20470
20471 2006-02-13  Javier Miranda  <miranda@adacore.com>
20472
20473         * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
20474         against source containing syntax errors.
20475
20476 2006-02-13  Vincent Celier  <celier@adacore.com>
20477
20478         * prj.adb (Reset): Initialize the first element of table Namings with
20479         the standard naming data.
20480
20481 2006-02-13  Vincent Celier  <celier@adacore.com>
20482
20483         * prj.ads (Error_Warning): New enumeration type
20484
20485         * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
20486         unknown, use the location of the project to report the error.
20487         (When_No_Sources): New global variable
20488         (Report_No_Ada_Sources): New procedure
20489         (Check): New parameter When_No_Sources. Set value of global variable
20490         When_No_Sources,
20491         (Find_Sources): Call Report_No_Ada_Sources when appropriate
20492         (Get_Sources_From_File): Ditto
20493         (Warn_If_Not_Sources): Better warning messages indicating the unit name
20494         and the file name.
20495
20496         * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
20497         Call Prj.Proc.Process with parameter When_No_Sources.
20498
20499         * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
20500         Call Recursive_Check with parameter When_No_Sources.
20501         (Recursive_Check): New parameter When_No_Sources. Call itself and
20502         Prj.Nmsc.Check with parameter When_No_Sources.
20503         (Process): New parameter When_No_Sources. Call Check with parameter
20504         When_No_Sources.
20505         (Copy_Package_Declarations): New procedure to copy renamed parameters
20506         and setting the location of the declared attributes to the location
20507         of the renamed package.
20508         (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
20509         packages.
20510
20511 2006-02-13  Vincent Celier  <celier@adacore.com>
20512
20513         * prj-makr.adb (Make): Preserve the comments from the original project
20514         file.
20515         When removing nodes (attributes Source_Dirs, Source_Files,
20516         Source_List_File and package Naming), save the comments and attach the
20517         saved comments to the newly created nodes.
20518         Do not add a with clause for the naming package if one already exists.
20519
20520 2006-02-13  Javier Miranda  <miranda@adacore.com>
20521             Gary Dismukes  <dismukes@adacore.com>
20522             Robert Dewar  <dewar@adacore.com>
20523
20524         * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
20525
20526         * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
20527         aliased entities to look for the overriden abstract interface
20528         subprogram.
20529         (Is_Interface_Subprogram): Complete documentation.
20530         (Check_Dispatching_Operation): Do not generate code to register the
20531         operation in the dispatch table if the source is compiled with
20532         restriction No_Dispatching_Calls.
20533         (Override_Dispatching_Operation): Check for illegal attempt to override
20534         No_Return procedure with procedure that is not No_Return
20535         (Check_Dispatching_Call): Suppress the check for an abstract operation
20536         when the original node of an actual is a tag-indeterminate attribute
20537         call, since the attribute, which must be 'Input, can never be abstract.
20538         (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
20539         call to the Input attribute (even when rewritten).
20540         (Propagate_Tag): Augment comment to indicate the possibility of a call
20541         to an Input attribute.
20542
20543         * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
20544         calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
20545
20546         * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
20547         No_Wide_Characters is no longer partition-wide
20548         No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
20549         rather than GNAT
20550
20551 2006-02-13  Douglas Rupp  <rupp@adacore.com>
20552
20553         * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
20554
20555 2006-02-13  Javier Miranda  <miranda@adacore.com>
20556
20557         * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
20558         handles default-initialized components to keep separate the management
20559         of this feature but also avoid the unrequired resolution and
20560         expansion of components that do not have partially initialized
20561         values.
20562         (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
20563         (Check_Bounds): Likewise.
20564         (Check_Length): Likewise.
20565
20566 2006-02-13  Javier Miranda  <miranda@adacore.com>
20567             Ed Schonberg  <schonberg@adacore.com>
20568
20569         * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
20570         abstract interface type call analyze_and_resolve to expand the type
20571         conversion into the corresponding displacement of the
20572         reference to the base of the object.
20573         (Eval_Attribute, case Width): For systems where IEEE extended precision
20574         is supported, the maximum exponent occupies 4 decimal digits.
20575         (Accessibility_Message): Add '\' in 2-line warning message.
20576         (Resolve_Attribute): Likewise.
20577         (case Attribute_Access): Significantly revise checks
20578         for illegal access-to-subprogram Access attributes to properly enforce
20579         the rules of 3.10.2(32/2).
20580         Diagnose use of current instance with an illegal attribute.
20581
20582         * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
20583         to a Node_Id.
20584         (Enclosing_Generic_Unit): New function to return a node's innermost
20585         enclosing generic declaration node.
20586         (Compile_Time_Constraint_Error): Remove '!' in warning messages.
20587         (Type_Access_Level): The accessibility level of anonymous acccess types
20588         associated with discriminants is that of the current instance of the
20589         type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
20590         (Compile_Time_Constraint_Error): Handle case of conditional expression.
20591         (Kill_Current_Values_For_Entity): New function
20592         (Enter_Name): Change formal type to Entity_Id
20593
20594 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
20595             Ed Schonberg  <schonberg@adacore.com>
20596             Gary Dismukes  <dismukes@adacore.com>
20597
20598         * sem_ch10.adb (Check_Redundant_Withs): New procedure in
20599         Analyze_Compilation_Unit.
20600         Detect and warn on redundant with clauses detected in a package spec
20601         and/or body when -gnatwr is used.
20602         (Analyze_Context): Analyze config pragmas before other items
20603         (Install_Context_Items): Don't analyze config pragmas here
20604         (Install_Limited_Withed_Unit): Set limited entity of package in
20605         with_clause so that cross-reference information or warning messages on
20606         unused packages can be properly generated
20607         (Is_Visible_Through_Renamings): Return false if the limited_with_clause
20608         has Error_Posted set. Prevent infinite loops in illegal programs.
20609         (Check_Private_Child_Unit): Move test for a nonprivate with clause down
20610         to the point of the error test requiring the current unit to be private.
20611         This ensures that private with clauses are not exempted from the basic
20612         checking for being a descendant of the same library unit parent as a
20613         withed private descendant unit.
20614         (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
20615         handle private with clauses properly, as well as to account for cases
20616         where the withed unit is a public descendant of a private ancestor
20617         (in which case the current unit must be a descendant of the private
20618         ancestor's parent). The spec comments were updated accordingly. Also,
20619         the old error message in this subprogram was replaced with error
20620         messages that mirror the errors tested and reported by
20621         Check_Private_Child_Unit.
20622         Parameter and variable names improved for readability.
20623         (Install_Limited_Context_Clauses): Remove test for a withed unit being
20624         private as the precondition for calling
20625         Check_Private_Limited_Withed_Unit since that subprogram has been
20626         revised to test public units as well as private units.
20627
20628 2006-02-13  Thomas Quinot  <quinot@adacore.com>
20629             Robert Dewar  <dewar@adacore.com>
20630             Ed Schonberg  <schonberg@adacore.com>
20631             Javier Miranda  <miranda@adacore.com>
20632
20633         * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
20634         that Scope_Stack.First = 1.
20635         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20636         were not always properly handled previously.
20637         (Formal_Entity): Complete rewrite, to handle properly some complex case
20638         with multiple levels of parametrization by formal packages.
20639         (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
20640         to the corresponding derived type declaration for proper semantics.
20641
20642         * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
20643         (Check_Component): Enforce restriction on components of
20644         unchecked_unions: a component in a variant cannot contain tasks or
20645         controlled types.
20646         (Unchecked_Union): Allow nested variants and multiple discriminants, to
20647         conform to AI-216.
20648         Add pragma Ada_2005 (synonym for Ada_05)
20649         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20650         were not always properly handled previously.
20651         Document that pragma Propagate_Exceptions has no effect
20652         (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
20653         (Set_Convention_From_Pragma): Check that if a convention is
20654         specified for a dispatching operation, then it must be
20655         consistent with the existing convention for the operation.
20656         (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
20657         longer required to specify an vtable-ptr component in the record. For
20658         compatibility reasons we leave the support for the previous definition.
20659         (Analyze_Pragma, case No_Return): Allow multiple arguments
20660
20661         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
20662         non-overrideen inherited operation with a controlling result as
20663         illegal only its implicit declaration comes from the derived type
20664         declaration of its result's type.
20665         (Check_Possible_Deferred_Completion): Relocate the object definition
20666         node of the subtype indication of a deferred constant completion rather
20667         than directly analyzing it. The analysis of the generated subtype will
20668         correctly decorate the GNAT tree.
20669         (Record_Type_Declaration): Check whether this is a declaration for a
20670         limited derived record before analyzing components.
20671         (Analyze_Component_Declaration): Diagnose record types  not explicitly
20672         declared limited when a component has a limited type.
20673         (Build_Derived_Record_Type): Code reorganization to check if some of
20674         the inherited subprograms of a tagged type cover interface primitives.
20675         This check was missing in case of a full-type associated with a private
20676         type declaration.
20677         (Constant_Redeclaration): Check that the subtypes of the partial and the
20678         full view of a constrained deferred constant statically match.
20679         (Mentions_T): A reference to the current type in an anonymous access
20680         component declaration  must be an entity name.
20681         (Make_Incomplete_Type_Declaration): If type is tagged, set type of
20682         class_wide type to refer to full type, not to the incomplete one.
20683         (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
20684         available. Required to give support to the certified run-time.
20685         (Analyze_Component_Declaration): In case of anonymous access components
20686         perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
20687         (Process_Discriminants): For an access discriminant, use the
20688         discriminant specification as the associated_node_for_itype, to
20689         simplify accessibility checks.
20690
20691 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20692             Javier Miranda  <miranda@adacore.com>
20693
20694         * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
20695         abstract interpretations on an operator, remove interpretations that
20696         yield Address or a type derived from it, if one of the operands is an
20697         integer literal.
20698         (Try_Object_Operation.Try_Primitive_Operation,
20699         Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
20700         location when creating the new reference to a primitive or class-wide
20701         operation as a part of rewriting a subprogram call.
20702         (Try_Primitive_Operations): If context requires a function, collect all
20703         interpretations after the first match, because there may be primitive
20704         operations of the same type with the same profile and different return
20705         types. From code reading.
20706         (Try_Primitive_Operation): Use the node kind to choose the proper
20707         operation when a function and a procedure have the same parameter
20708         profile.
20709         (Complete_Object_Operation): If formal is an access parameter and prefix
20710         is an object, rewrite as an Access reference, to match signature of
20711         primitive operation.
20712         (Find_Equality_Type, Find_One_Interp): Handle properly equality given
20713         by an expanded name with prefix Standard, when the operands are of an
20714         anonymous access type.
20715         (Remove_Abstract_Operations): If the operation is abstract because it is
20716         inherited by a user-defined type derived from Address, remove it as
20717         well from the set of candidate interpretations of an overloaded node.
20718         (Analyze_Membership_Op): Membership test not applicable to cpp-class
20719         types.
20720
20721 2006-02-13  Bob Duff  <duff@adacore.com>
20722
20723         * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
20724         redundant use clauses.
20725         In particular, if the scope of two use clauses overlaps, but one is not
20726         entirely included in the other, we should not warn.  This can happen
20727         with nested packages.
20728         (Analyze_Subprogram_Renaming): Protect the compiler against previously
20729         reported errors. The bug was reported when the compiler was built
20730         with assertions enabled.
20731         (Find_Type): If the node is a 'Class reference and the prefix is a
20732         synchronized type without a corresponding record, return the type
20733         itself.
20734
20735 2006-02-13  Javier Miranda  <miranda@adacore.com>
20736
20737         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
20738         if this is the full-declaration associated with a private declaration
20739         that implement interfaces, then the private type declaration must be
20740         limited.
20741         (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
20742         as aliased. The use of the 'access attribute is not available for such
20743         object (for this purpose the object should be explicitly marked as
20744         aliased, but being an anonymous type this is not possible).
20745
20746 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20747             Robert Dewar  <dewar@adacore.com>
20748
20749         * sem_elab.adb (Same_Elaboration_Scope): A package that is a
20750         compilation unit is an elaboration scope.
20751         (Add_Task_Proc): Add '\' in 2-line warning message.
20752         (Activate_All_Desirable): Deal with case of unit with'ed by parent
20753
20754 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20755             Javier Miranda  <miranda@adacore.com>
20756
20757         * sem_type.adb (Write_Overloads): Improve display of candidate
20758         interpretations.
20759         (Add_One_Interp): Do not add to the list of interpretations aliased
20760         entities corresponding with an abstract interface type that is an
20761         immediate ancestor of a tagged type; otherwise we have a dummy
20762         conflict between this entity and the aliased entity.
20763         (Disambiguate): The predefined equality on universal_access is not
20764         usable if there is a user-defined equality with the proper signature,
20765         declared in the same declarative part as the designated type.
20766         (Find_Unique_Type): The universal_access equality operator defined under
20767         AI-230 does not cover pool specific access types.
20768         (Covers): If one of the types is a generic actual subtype, check whether
20769         it matches the partial view of the other type.
20770
20771 2006-02-13  Thomas Quinot  <quinot@adacore.com>
20772
20773         * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
20774         line. This is necessary to allow In_Extended_Main_Unit to provide
20775         correct results for itypes while writing out expanded source.
20776         (Close_File): No need to update the source_index_table here since it's
20777         now done for each line.
20778
20779 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20780             Robert Dewar  <dewar@adacore.com>
20781
20782         * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
20783         preserve the source unit where the itype is declared, and prevent a
20784         backend abort.
20785         (Note_Implicit_Run_Time_Call): New procedure
20786         (Write_Itype): Handle missing cases (E_Class_Wide_Type and
20787         E_Subprogram_Type)
20788
20789         * sprint.ads: Document use of $ for implicit run time routine call
20790
20791 2006-02-13  Quentin Ochem  <ochem@adacore.com>
20792
20793         * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
20794         task name.
20795
20796 2006-02-13  Bob Duff  <duff@adacore.com>
20797
20798         * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
20799         Scan_Unsigned, so we do not scan leading blanks and sign twice.
20800         Integer'Value("- 5") and Integer'Value("-+5") now correctly
20801         raise Constraint_Error.
20802
20803         * s-vallli.adb (Scan_Long_Long_Integer): Call
20804         Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
20805         do not scan leading blanks and sign twice.
20806         Integer'Value("- 5") and Integer'Value("-+5") now correctly
20807         raise Constraint_Error.
20808
20809         * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
20810         Scan_Long_Long_Unsigned): Split out most of the processing from
20811         Scan_Long_Long_Unsigned out into
20812         Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
20813         This prevents scanning leading blanks and sign twice.
20814         Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
20815         See RM-3.5(44).
20816
20817         * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
20818         out most of the processing from Scan_Unsigned out into
20819         Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
20820         This prevents scanning leading blanks and sign twice.
20821
20822         * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
20823         use with Modular'Value attribute.
20824         (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
20825         attribute.
20826
20827 2006-02-13  Robert Dewar  <dewar@adacore.com>
20828
20829         * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
20830
20831 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
20832
20833         * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
20834         (PPC VxWorks): Likewise.
20835         (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
20836         (forced_callee): Make non-inlinable and non-pure.
20837         (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
20838
20839 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
20840             Ben Brosgol  <brosgol@adacore.com>
20841             Robert Dewar  <dewar@adacore.com>
20842
20843         * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
20844         support.
20845         Document that gnatbind -M option is for cross environments only.
20846         Added description of using gnatmem to trace gnat rtl allocs and deallocs
20847         Add note on use of $ to label implicit run time calls
20848         Add documentation for -gnatyI (check mode IN)
20849         Updated chapter on compatibility with HP Ada
20850         VMS-oriented edits.
20851         Ran spell and corrected errors
20852         Add documentation for gnatbind -d and rework documentation of -D
20853         at the same time.
20854         Add subprogram/data elimination section.
20855         Minor editing of annex A.
20856         Add section for gnatcheck.
20857         Add documentation for restriction No_Dispatching_Calls
20858         Add documentation for pragma Ada_2005
20859         Remove mention of obsolete pragma Propagate_Exceptions
20860         Document that pragma Unreferenced can appear after DO in ACCEPT
20861         Clarify Pure_Function for library level units
20862         Mention Max/Min in connection with No_Implicit_Conditionals
20863         No_Wide_Characters restriction is no longer partition-wide
20864         Add a nice example for Universal_Literal_String attribute
20865         Document that pragma No_Return can take multiple arguments
20866
20867         * ug_words: Added entry for gnatcheck
20868
20869         * g-ctrl_c.ads (Install_Handler): Enhance comments
20870
20871         * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
20872
20873         * g-trasym.ads: Add documentation on how to do off line symbolic
20874         traceback computation.
20875
20876         * s-fatgen.adb: Add comments for Unaligned_Valid
20877
20878         * stand.ads: Fix typo in comment
20879
20880 2006-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
20881
20882         * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
20883
20884 2006-02-06  Roger Sayle  <roger@eyesopen.com>
20885
20886         * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
20887
20888 2006-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20889
20890         PR target/25926
20891         * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
20892         implementation that calls __main.
20893
20894 2006-01-25  Peter O'Gorman  <peter@pogma.com>
20895
20896         PR bootstrap/25859
20897         * Makefile.in (GCC_LINK): Remove quotes.
20898         (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
20899         or $(GCC_LINK).
20900
20901         (powerpc-darwin): Pass -shared-libgcc when building shared library.
20902
20903 2006-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20904
20905         PR ada/24533
20906         * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
20907
20908 2005-12-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20909
20910         * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
20911
20912 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
20913
20914         * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
20915         needed.
20916
20917 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
20918
20919         * Make-lang.in: Update dependencies
20920
20921 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
20922
20923         * Make-lang.in: Add rule for ada/exp_sel.o
20924
20925 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
20926
20927         * Makefile.in (mingw section): Remove EH_MECHANISM setting.
20928
20929 2005-12-09  Arnaud Charlet  <charlet@adacore.com>
20930
20931         * gnatvsn.ads (Library_Version): Bump to version 4.2
20932         (ASIS_Version_Number): Bumped.
20933
20934 2005-12-09  Doug Rupp  <rupp@adacore.com>
20935
20936         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
20937         Ada bind file prefix on VMS from b$ to b__.
20938         (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
20939         __init.
20940
20941         * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
20942         Targparm.OpenVMS_On_Target.
20943         (Object_Suffix): Initialize with target object suffix.
20944         (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
20945
20946         * butil.adb: Change some Hostparm.OpenVMS checks to
20947         Targparm.OpenVMS_On_Target.
20948
20949         * clean.adb: Change some Hostparm.OpenVMS checks to
20950         Targparm.OpenVMS_On_Target.
20951         (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
20952         ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
20953         Ada bind file prefix on VMS from b$ to b__.
20954
20955         * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
20956         --GCC so that Get_Target_Parameters can find system.ads.
20957         (Gnatlink): Call Get_Target_Parameters in mainline.
20958         Initialize standard packages for Targparm.
20959         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
20960         (Process_Args): Also Check for object files with target object
20961         extension.
20962         (Make_Binder_File_Names): Create with target object extension.
20963         (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
20964         to b__.
20965
20966         * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
20967         Targparm.OpenVMS_On_Target.
20968         ({declaration},Build_Library,Check_Library): Change Ada bind file
20969         prefix on VMS from b$ to b__.
20970
20971         * osint-b.adb: Change some Hostparm.OpenVMS checks to
20972         Targparm.OpenVMS_On_Target.
20973         (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
20974         b__.
20975
20976         * targext.c: New file.
20977
20978         * Makefile.in: add support for vxworks653 builds
20979         (../../vxaddr2line): gnatlink with targext.o.
20980         (TOOLS_LIBS): Move targext.o to precede libgnat.
20981         (init.o, initialize.o): Minor clean up in dependencies.
20982         (GNATLINK_OBJS): Add targparm.o, snames.o
20983         Add rules fo building targext.o and linking it explicitly with all
20984         tools.
20985         Also add targext.o to gnatlib.
20986
20987         * Make-lang.in: Add rules for building targext.o and linking it in
20988         with gnat1 and gnatbind.
20989         Add entry for exp_sel.o.
20990
20991         * osint.adb Change some Hostparm.OpenVMS checks to
20992         Targparm.OpenVMS_On_Target.
20993         (Object_File_Name): Use target object suffix.
20994
20995         * osint.ads (Object_Suffix): Remove, no longer used.
20996         (Target_Object_Suffix): Initialize with target object suffix.
20997
20998         * rident.ads: Add special exception to license.
20999
21000         * targparm.adb (Get_Target_Parameters): Set the value of
21001         Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
21002         value.
21003         (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
21004         
21005         * targparm.ads: Add special exception to license.
21006
21007         * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
21008         function.
21009         (Copy_File): Make sure from file is closed if error on to file
21010         (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
21011
21012         * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
21013         (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
21014
21015         * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
21016         target object suffix.
21017
21018 2005-12-09  Jose Ruiz  <ruiz@adacore.com>
21019             Quentin Ochem  <ochem@adacore.com>
21020             Florian Villoing  <villoing@adacore.com>
21021
21022         * a-taster.ads, a-taster.adb: New files.
21023
21024         * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
21025         link to the version that does nothing. This way the task termination
21026         routine is not executed twice for the environment task when finishing
21027         because of an unhandled exception.
21028
21029         * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
21030         handler because of an unhandled exception.
21031
21032         * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
21033         System.Tasking.Utilities instead of that in System.Tasking.Stages.
21034
21035         * s-finimp.adb (initialization code): Modify the soft link for the
21036         finalization of the global list instead of Adafinal.
21037
21038         * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
21039         non-tasking version of the soft link for task termination. We do
21040         nothing since if we are using the non-tasking version it
21041         means that the task termination functionality is not used.
21042         (Null_Finalize_Global_List): Add this null version for the procedure
21043         in charge of finalizing the global list for controlled objects.
21044         (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
21045         instead for handling run-time termination in a more flexible way.
21046         (Adafinal_NT): This new procedure will take care of finalizing the
21047         global list for controlled objects if needed, but no tasking
21048         finalization.
21049
21050         * s-tarest.adb (Task_Lock): Do not try to lock again the
21051         Global_Task_Lock if we already own it. Otherwise, we get blocked in
21052         some run-time operations.
21053         (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
21054         until all nested locks have been released.
21055         (Task_Wrapper): Call the fall-back task termination handler. It
21056         applies to all tasks but the environment task.
21057         (Finalize_Global_Tasks): Add the call for the task termination
21058         procedure for the environment task.
21059         (Task_Wrapper): suppress warnings around declaration of
21060         Secondary_Stack_Address.
21061
21062         * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
21063         moved to the Common_ATCB record.
21064         (Task_Lock): Global_Task_Lock_Nesting has been moved to the
21065         Common_ATCB record.
21066         (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
21067         Common_ATCB record.
21068
21069         * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
21070         Fall_Back_Handler, and Specific_Handler.
21071
21072         * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
21073         defined in Ada.Task_Termination, to avoid circular dependencies.
21074         (Termination_Handler): Redefine this type here, alredy defined in
21075         Ada.Task_Termination, for avoiding circular dependencies.
21076         (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
21077         for storing task termination handlers. In addition,
21078         Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
21079         Common_ATCB because it is used by both the regular and the restricted
21080         run times.
21081         (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
21082         Common_ATCB because it is used by both the regular and the restricted
21083         run times.
21084         (Common_ATCB): Added a dynamic task analyzer field.
21085
21086         * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
21087         potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
21088         (Task_Wrapper): Call the task termination handler. It applies to all
21089         tasks but the environment task.
21090         (Finalize_Global_Tasks): Call the task termination procedure for the
21091         environment task. The call to Finalize_Global_List is now performed
21092         using the soft links mechanism.
21093         (Task_Wrapper): added dynamic stack analysis.
21094
21095         * s-tasuti.adb (Abort_Tasks): The code in charge of checking
21096         potentially blocking operations has been moved from
21097         System.Tasking.Stages.Abort_Tasks to this procedure. There can be
21098         direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
21099         through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
21100         this run-time check.
21101
21102         * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
21103         of task termination procedure.
21104         (Init_Tasking_Soft_Links): Install the task-safe version of the soft
21105         link for the task termination procedure.
21106
21107         * bindusg.adb: (Bindusg): Added documentation for -u option.
21108
21109         * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
21110         (Get_Main_C): Add handling of dynamic stack analysis.
21111         (Gen_Output_File_C): Add external functions for dynamic stack analysis.
21112
21113         * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
21114         (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
21115         (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
21116
21117         * opt.ads: Added flags used by dynamic stack measurement.
21118         (Max_Line_Length): Remove (not used anymore)
21119
21120         * s-io.ads, s-io.adb (Standard_Error): new subprogram
21121         (Standart_Output): new subprogram
21122         (Set_Output): new subprogram
21123         (Put): now uses the value of Current_Out to know if the output has to be
21124         send to stderr or stdout.
21125         
21126         * s-stausa.ads: Complete implementation.
21127
21128         * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
21129         
21130         * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
21131         list of Ada 05 files.
21132         (GNAT Library Units): Add AltiVec files.
21133
21134         * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
21135         g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
21136         g-alvety.ads, g-alvevi.ads: New files providing altivec API.
21137
21138 2005-12-09  Nicolas Setton  <setton@adacore.com>
21139
21140         * adaint.c (__gnat_locate_regular_file): Return immediately if
21141         file_name is empty.
21142
21143 2005-12-09  Javier Miranda  <miranda@adacore.com>
21144             Hristian Kirtchev  <kirtchev@adacore.com>
21145
21146         * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
21147         to the specification because the frontend generates code that uses this
21148         subprogram.
21149         (Set_Interface_Table): Add missing assertion.
21150         Update documentation describing the run-time structure.
21151         (Displace): New subprogram that displaces the pointer to the object
21152         to reference one of its secondary dispatch tables.
21153         (IW_Membership): Modified to use the new table of interfaces.
21154         (Inherit_TSD): Modified to use the new table of interfaces.
21155         (Register_Interface_Tag): Use the additional formal to fill the
21156         contents of the new table of interfaces.
21157         (Set_Interface_Table): New subprogram that stores in the TSD the
21158         pointer to the table of interfaces.
21159         (Set_Offset_To_Top): Use the additional formal to save copy of
21160         the offset value in the table of interfaces.
21161         Update structure of GNAT Primary and Secondary dispatch table diagram.
21162         Add comment section on GNAT dispatch table prologue.
21163         (Offset_To_Signature): Update the constant value of the Signature field.
21164         (Dispatch_Table): Update comment on hidden fields in the prologue.
21165         (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
21166         Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
21167         the type of formal parameter T to Tag, introduce additional assertions.
21168         (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
21169         conversion.
21170         (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
21171
21172         * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
21173         in all the calls to Expand_Interface_Thunk. Instead of referencing the
21174         record component containing the tag of the secondary dispatch table we
21175         have to use the Offset_To_Top run-time function to get this information;
21176         otherwise if the pointer to the base of the object has been displace
21177         we get a wrong value if we use the 'position attribute.
21178
21179         * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
21180         all the calls to Expand_Interface_Thunk.
21181         (Make_Secondary_DT): Secondary dispatch tables do not have a table of
21182         interfaces; hence the call to Set_Interface_Table was clearly wrong.
21183         (Collect_All_Interfaces): Modify the internal subprogram Collect to
21184         ensure that the interfaces implemented by the ancestors are placed
21185         at the header of the generated list.
21186         (Expand_Interface_Conversion): Handle the case in which the displacement
21187         associated with the interface conversion is not statically known. In
21188         this case we generate a call to the new run-time subprogram Displace.
21189         (Make_DT): Generate and fill the new table of interfaces.
21190         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
21191         Get_Tagged_Kind and Set_Tagged_Kind.
21192         (Tagged_Kind): New function that determines the tagged kind of a type
21193         with respect to limitedness and concurrency and returns a reference to
21194         RE_Tagged_Kind.
21195         (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
21196         Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
21197         primary dispatch table for a type.
21198         (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
21199         secondary dispatch table respectively of a tagged type.
21200
21201         * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
21202         (Expand_Interface_Conversion): New subprogram to indicate if the
21203         displacement of the type conversion is statically known.
21204         (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
21205
21206         * rtsfind.ads (RE_Offset_To_Top): New entity
21207         (RTU_Id): Add Ada_Task_Termination to the list so that it is made
21208         accessible to users.
21209         (Re_Displace): New entity
21210         (RE_Interface_Data): New entity
21211         (RE_Set_Interface_Data): New_Entity
21212         (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
21213         Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
21214         RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
21215         RE_TK_Tagged, RE_TK_Task.
21216
21217         * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
21218         Init_Secondary_Tags_Internal to allow its use with interface types and
21219         also to generate the code for the new additional actual required
21220         by Set_Offset_To_Top.
21221         (Build_Init_Statements): In case of components associated with abstract
21222         interface types there is no need to generate a call to its IP.
21223         (Freeze_Record_Type): Generate Select Specific Data tables only for
21224         concurrent types.
21225         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
21226         the bodies and specifications of the predefined primitive operations
21227         dealing with dispatching selects and abort, 'Callable, 'Terminated only
21228         for concurrent types.
21229
21230         * exp_sel.ads, exp_sel.adb: New files.
21231
21232         * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
21233         Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
21234         properly protected objects and attach handler in the case of the
21235         restricted profile.
21236         Move embeded package Select_Expansion_Utilities into a separate external
21237         package.
21238         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
21239         Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
21240         (Build_K, Build_S_Assignment): New subprograms, part of the select
21241         expansion utilities.
21242         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
21243         Expand_N_Timed_Entry_Call): Optimize expansion of select statements
21244         where the trigger is a dispatching procedure of a limited tagged type.
21245
21246 2005-12-09  Olivier Hainque  <hainque@adacore.com>
21247
21248         * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
21249         pointer initialization values. Make a SAVE_EXPR instead. Add comments
21250         about the use and expansion of SAVE_EXPRs in the various possible
21251         renaming handling cases.
21252         (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
21253         abusing DECL_FCONTEXT.
21254
21255 2005-12-09  Matthew Heaney  <heaney@adacore.com>
21256
21257         * a-convec.adb (Merge): Added assertions to check whether vector params
21258         are sorted.
21259
21260         * a-coinve.adb (Merge): Added assertions to check whether vector params
21261         are sorted.
21262
21263         * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
21264         draft.
21265         (Cursor'Read): raises PE
21266
21267         * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
21268         to its default value.
21269
21270         * a-cihama.adb: Manually check whether cursor's key and elem are
21271         non-null
21272
21273         * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
21274         (Merge): Assert that target and source lists are in order
21275         (Swap): Declare non-const temporaries, to pass to Splice
21276
21277         * a-cdlili.ads: (Splice): Changed param name and param mode
21278
21279         * a-cdlili.adb: (Splice): Changed param name and param mode
21280         (Merge): Assert that target and source lists are in order
21281         (Swap): Declare non-const temporaries, to pass to Splice
21282
21283         * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
21284         (Write): declare Stream param as not null
21285
21286         * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
21287         an exception message.
21288
21289 2005-12-09  Thomas Quinot  <quinot@adacore.com>
21290             Robert Dewar  <dewar@adacore.com>
21291
21292         * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
21293         which is the absolute maximum length we can support.
21294
21295         * frontend.adb: For the processing of configuration pragma files,
21296         remove references to Opt.Max_Line_Length, which is not checked anymore.
21297
21298         * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
21299         length.
21300
21301         * scn.adb, scng.adb: 
21302         Always check line length against the absolute supported maximum,
21303         Hostparm.Max_Line_Length.
21304
21305         * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
21306         value for the maximum line length is Max_Line_Length (not
21307         Column_Number'Last).
21308         Minor error msg update
21309         (Set_Style_Check_Options): New interface returning error msg
21310         Minor code reorganization (processing for 'M' was out of alpha order)
21311
21312         * switch-c.adb: New interface for Set_Style_Check_Options
21313
21314         * stylesw.ads (Set_Style_Check_Options): New interface returning error
21315         msg.
21316
21317 2005-12-09  Javier Miranda  <miranda@adacore.com>
21318
21319         * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
21320         with IP subprogram were only supported if there were limited types.
21321
21322         * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
21323         records with IP subprogram were only supported if there were limited
21324         types.
21325
21326 2005-12-09  Olivier Hainque  <hainque@adacore.com>
21327             Eric Botcazou  <ebotcazou@adacore.com>
21328
21329         * trans.c (tree_transform, emit_check): Adjust calls to
21330         build_call_raise, passing the now expected GNAT_NODE argument.
21331
21332         * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
21333         source line information than what the current global locus indicates
21334         when appropriate.
21335
21336         * utils2.c (build_simple_component_ref): Return 0 if the offset of the
21337         field has overflowed.
21338         (build_call_raise): Add a GNAT_NODE argument to convey better source
21339         line information than what the current global locus indicates when
21340         appropriate.
21341         (build_component_ref): Adjust call to build_call_raise.
21342
21343 2005-12-09  Pascal Obry  <obry@adacore.com>
21344
21345         * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
21346         the iterator is quitting iteration on parent directory.
21347
21348 2005-12-09  Javier Miranda  <miranda@adacore.com>
21349
21350         * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
21351         and the assignment to a class-wide object, before the assignment we
21352         generate a run-time check to ensure that the tag of the Target is
21353         covered by the tag of the source.
21354
21355 2005-12-09  Robert Dewar  <dewar@adacore.com>
21356
21357         * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
21358         parameter in call to Image_Wide_Character.
21359
21360         * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
21361         parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
21362         (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
21363         annoying FFFE/FFFF inconsistency.
21364
21365 2005-12-09  Robert Dewar  <dewar@adacore.com>
21366             Javier Miranda  <miranda@adacore.com>
21367             Ed Schonberg  <schonberg@adacore.com>
21368
21369         * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
21370         of type conversion.
21371         (Find_Interface): New subprogram that given a tagged type and one of its
21372         component associated with the secondary table of an abstract interface
21373         type, return the entity associated with such abstract interface type.
21374         (Make_Subtype_From_Expr): If type has unknown discriminants, always use
21375         base type to create anonymous subtype, because entity may be a locally
21376         declared subtype or generic actual.
21377         (Find_Interface): New subprogram that given a tagged type and one of its
21378         component associated with the secondary table of an abstract interface
21379         type, return the entity associated with such abstract interface type.
21380
21381         * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
21382         conversion cannot be handled at compile time. In this case we pass this
21383         information to the expander to generate the appropriate code.
21384
21385 2005-12-09  Robert Dewar  <dewar@adacore.com>
21386             Ed Schonberg  <schonberg@adacore.com>
21387             Gary Dismukes  <dismukes@adacore.com>
21388             Javier Miranda  <miranda@adacore.com>
21389             Hristian Kirtchev  <kirtchev@adacore.com>
21390
21391         * einfo.adb (Itype_Printed): New flag
21392         (Is_Limited_Type): Derived types do not inherit limitedness from
21393         interface progenitors.
21394         (Is_Return_By_Reference_Type): Predicate does not apply to limited
21395         interfaces.
21396
21397         * einfo.ads (Itype_Printed): New flag
21398         Move Is_Wrapper_Package to proper section
21399         Add missing Inline for Is_Volatile
21400
21401         * output.ads, output.adb (Write_Erase_Char): New procedure
21402         (Save/Restore_Output_Buffer): New procedures
21403         (Save/Restore_Output_Buffer): New procedures
21404
21405         * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
21406         Add missing support for anonymous access type
21407         (Write_Id): Insert calls to Write_Itype
21408         (Write_Itype): New procedure to output itypes
21409
21410         * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
21411         use of "limited" in declaration.
21412
21413         * sinfo.ads, sinfo.adb: 
21414         Formal derived types can carry an explicit "limited" indication.
21415
21416         * sem_ch3.adb: Add with and use of Targparm.
21417         (Create_Component): If Frontend_Layout_On_Target is True and the
21418         copied component does not have a known static Esize, then reset
21419         the size and positional fields of the new component.
21420         (Analyze_Component_Declaration): A limited component is
21421         legal within a protected type that implements an interface.
21422         (Collect_Interfaces): Do not add to the list the interfaces that
21423         are implemented by the ancestors.
21424         (Derived_Type_Declaration): If the parent of the full-view is an
21425         interface perform a transformation of the tree to ensure that it has
21426         the same parent than the partial-view. This simplifies the job of the
21427         expander in order to generate the correct object layout, and it is
21428         needed because the list of interfaces of the full-view can be given in
21429         any order.
21430         (Process_Full_View): The parent of the full-view does not need to be
21431         a descendant of the parent of the partial view if both parents are
21432         interfaces.
21433         (Analyze_Private_Extension_Declaration): If declaration has an explicit
21434         "limited" the parent must be a limited type.
21435         (Build_Derived_Record_Type): A derived type that is explicitly limited
21436         must have limited ancestor and progenitors.
21437         (Build_Derived_Type): Ditto.
21438         (Process_Full_View): Verify that explicit uses of "limited" in partial
21439         and full declarations are consistent.
21440         (Find_Ancestor_Interface): Remove function.
21441         (Collect_Implemented_Interfaces): New procedure used to gather all
21442         implemented interfaces by a type.
21443         (Contain_Interface): New function used to check whether an interface is
21444         present in a list.
21445         (Find_Hidden_Interface): New function used to determine whether two
21446         lists of interfaces constitute a set equality. If not, the first
21447         differing interface is returned.
21448         (Process_Full_View): Improve the check for the "no hidden interface"
21449         rule as defined by AI-396.
21450
21451 2005-12-09  Robert Dewar  <dewar@adacore.com>
21452
21453         * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
21454         types, not on record subtypes.
21455         (Freeze_Entity): Code cleanup. Add barrier to the loop
21456         that generates the references for primitive operations. This allows to
21457         remove an unnecessary exception handler.
21458         Code reformatting and comment clean ups.
21459
21460 2005-12-09  Vincent Celier  <celier@adacore.com>
21461
21462         * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
21463         If GNAT CHECK is called with a project file, but with no
21464         source on the command line, call gnatcheck with all the compilable
21465         sources of the project.
21466         Take into account the new command Check, for gnatcheck. Treat as for
21467         other ASIS tools: take into account project, specific package Check and
21468         Compiler switches.
21469         For ASIS tools, add the switches in package Compiler for
21470         the invocation of the compiler.
21471
21472         * prj-attr.adb: Add package Check and its attributes
21473
21474         * vms_conv.ads (Command_Type): New command Check, for gnatcheck
21475
21476         * vms_conv.adb (Initialize): Change Params of command Check to
21477         unlimited files.
21478         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
21479         Add data for new command Check
21480
21481         * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
21482         ELIM.
21483         Add qualifiers for Check command options
21484         (Command_Type): New command Check
21485
21486 2005-12-09  Thomas Quinot  <quinot@adacore.com>
21487
21488         * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
21489         command line switch overruns the output buffer.
21490
21491 2005-12-09  Robert Dewar  <dewar@adacore.com>
21492
21493         * sem_prag.adb: Processing for new pragma Complete_Representation
21494         (Analyze_Pragma, case Debug): Implement two argument form.
21495
21496         * par-prag.adb: Entry for new pragma Complete_Representation
21497         (Prag, case Debug): Recognize two argument form of pragma Debug
21498         New interface for Set_Style_Check_Options.
21499
21500         * sem_ch13.adb: Implement new pragma Complete_Representation.
21501
21502         * snames.adb, snames.ads, snames.h: Entry for new pragma
21503         Complete_Representation.
21504
21505 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
21506
21507         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
21508         available user-specified stream attributes on limited parameters to
21509         also test the type directly rather than only its underlying type (for
21510         Ada 95) and, in the case of Ada 2005, to check that the user-specified
21511         attributes are visible at the point of the subprogram declaration.
21512         For Ada 2005, the error message is modified to indicate that the
21513         type's stream attributes must be visible (again, only for -gnat05).
21514
21515 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
21516
21517         * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
21518         anonymous access types.
21519
21520         * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
21521         matching of anonymous access types and anonymous access to subprogram
21522         types. 'R'M 4.9.1 (2/2).
21523
21524 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
21525
21526         * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
21527         rule prematurely when operands are universal, remaining ambiguities
21528         will be removed during resolution.
21529         Code cleanup.
21530
21531         * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
21532         that are Ada 2005 functions.
21533         (Has_Abstract_Interpretation): Subsidiary to
21534         Remove_Conversions, to remove ambiguities caused by abstract operations
21535         on numeric types when operands are universal.
21536
21537 2005-12-09  Robert Dewar  <dewar@adacore.com>
21538
21539         * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
21540         for case where spec is categorized.
21541
21542 2005-12-09  Javier Miranda  <miranda@adacore.com>
21543
21544         * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
21545         types use the corresponding record type. This was not needed before
21546         the implementation of Ada 2005 synchronized types because
21547         concurrent types were never tagged types in Ada 95.
21548
21549 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
21550
21551         * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
21552         first subtype of the type of the expression to verify that it is a
21553         legal Time type.
21554
21555 2005-12-09  Robert Dewar  <dewar@adacore.com>
21556
21557         * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
21558         decoded names.
21559
21560 2005-12-09  Quentin Ochem  <ochem@adacore.com>
21561             Robert Dewar  <dewar@adacore.com>
21562             Ed Falis  <falis@adacore.com>
21563             Florian Villoing  <villoing@adacore.com>
21564             Thomas Quinot  <quinot@adacore.com>
21565             Arnaud Charlet  <charlet@adacore.com>
21566
21567         * gnat_ugn.texi: Created section "Stack Related Tools"
21568         Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
21569         "Stack Related Tools"
21570         Added subsection "Static Stack Usage Analysis"
21571         Added subsection "Dynamic Stack Usage Analysis"
21572         Include documentation of itypes in sprint listing (-gnatG)
21573         Documented gnatbind -D switch (default sec stack size for fixed sec
21574         stacks).
21575         Added Interrupt_State and Persistent_BSS to list of configuration
21576         pragmas.
21577         Add missing doc for maximum value of nnn in -gnatyMnnn
21578
21579         * gnat_rm.texi: Document the AltiVec binding.
21580         Add documentation for pragma Complete_Representation
21581         Shortened an overly long line (> 79 chars)
21582         Clarify documentation of unchecked conversion in implementation
21583         defined cases.
21584         Document two argument form of pragma Debug
21585
21586         * types.ads (Column_Number): Update documentation.
21587
21588         * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
21589         library level Finalize_Storage_Only objects (these are not attached to
21590         any finalization list).
21591
21592         * system-mingw.ads: (Underlying_Priorities): Update comment.
21593
21594 2005-12-09  Robert Dewar  <dewar@adacore.com>
21595
21596         * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
21597         i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
21598         inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
21599         i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
21600         krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
21601         lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
21602         interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
21603         s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
21604         reformatting.
21605
21606 2005-12-09  Robert Dewar  <dewar@adacore.com>
21607
21608         * s-vaflop-vms-alpha.adb: (Ne_F): New function
21609         (Ne_G): New function
21610
21611         * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
21612         for tag assignment.
21613         (Rewrite_Comparison): Handle case where operation is not a comparison
21614         and ignore, and also handle type conversion case.
21615
21616 2005-12-09  Thomas Quinot  <quinot@adacore.com>
21617
21618         * exp_aggr.ads: Fix typo in comment.
21619         ???-mark Convert_Aggr_In_Assignment as needing documentation.
21620
21621 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
21622
21623         * layout.adb: Replace various uses of byte by storage unit throughout.
21624         (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
21625         static size, convert to storage units before returning, to conform to
21626         spec.
21627
21628 2005-12-09  Matthew Gingell  <gingell@adacore.com>
21629
21630         * g-exctra.ads: Fix typo in comment.
21631
21632 2005-12-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21633
21634         * utils.c: Minor reformatting.
21635
21636 2005-12-09  Robert Dewar  <dewar@adacore.com>
21637
21638         * g-soccon.ads: 
21639         Further comment fixes to make the status of the default file clear
21640
21641         * s-bitops.adb: Clarify comment for Bits_Array
21642
21643 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
21644
21645         * Make-lang.in (ada.install-normal): Remove.
21646
21647 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
21648
21649         * Make-lang.in: Remove all dependencies on s-gtype.
21650
21651 2005-12-05  Richard Guenther  <rguenther@suse.de>
21652
21653         * utils.c (convert): Use fold_convert where appropriate.
21654
21655 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
21656
21657         * Makefile.in (gnatlib): Fix regex, using \. instead of . when
21658         a period is meant.
21659
21660 2005-12-02  Richard Guenther  <rguenther@suse.de>
21661
21662         * trans.c (gnat_gimplify_expr): Use buildN instead of build.
21663
21664 2005-12-01  Roger Sayle  <roger@eyesopen.com>
21665
21666         * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
21667         nodes.
21668
21669 2005-11-23  Laurent Guerby  <laurent@guerby.net>
21670
21671         * mlib-prj.adb (Build_Library): Initialize Delete.
21672
21673 2005-11-21  Joel Sherrill  <joel.sherrill@oarcorp.com>
21674
21675         * socket.c: Add extern int h_errno for rtems since networking header
21676         files are not available at this point in a tool bootstrap. Newlib
21677         only has basic C library header files.
21678
21679 2005-11-19  Richard Guenther  <rguenther@suse.de>
21680         Roger Sayle  <roger@eyesopen.com>
21681
21682         PR ada/23717
21683         * misc.c (internal_error_function): Don't use vsprintf to format
21684         the error message text, instead use pp_format_text and the new
21685         pretty printer APIs.  This allows handling of %qs, %w, etc.
21686
21687 2005-11-18  Laurent Guerby  <laurent@guerby.net>
21688
21689         PR ada/24857
21690         * Makefile.in: Use s-auxdec-empty for RTEMS.
21691
21692 2005-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21693
21694         PR ada/22333
21695         * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
21696         a temporary if taking the address of something that is neither
21697         reference, declaration, or constant, since the gimplifier
21698         can't handle that case.
21699
21700 2005-11-17  Laurent Guerby  <laurent@guerby.net>
21701
21702         PR ada/24857
21703         * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
21704
21705 2005-11-16  Richard Guenther  <rguenther@suse.de>
21706
21707         * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
21708
21709 2005-11-16  Joel Sherrill  <joel.sherrill@oarcorp.com>
21710
21711         PR ada/24855
21712         * raise-gcc.c: Add missing stdarg.h include.
21713  
21714 2005-11-16  Richard Guenther  <rguenther@suse.de>
21715
21716         * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
21717         (ada/misc.o): Likewise.
21718
21719 2005-11-14  Thomas Quinot  <quinot@adacore.com>
21720
21721         * g-soccon.ads: Minor reformatting. Update comments.
21722
21723         * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
21724         gain visibility on the declaration of struct timeval.
21725
21726         * g-soccon-freebsd.ads,
21727         g-soccon-darwin.ads,
21728         g-soccon-tru64.ads,
21729         g-soccon-aix.ads,
21730         g-soccon-irix.ads,
21731         g-soccon-hpux.ads,
21732         g-soccon-solaris.ads,
21733         g-soccon-vms.ads,
21734         g-soccon-mingw.ads,
21735         g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
21736
21737         * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
21738         g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
21739         g-soccon-linux-x86.ads: New files.
21740
21741         * g-socthi-mingw.adb: 
21742         (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
21743
21744         * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
21745         (time_t, suseconds_t): New types constructed to match the tv_sec
21746         and tv_usec fields of C struct timeval.
21747         (Timeval): Construct structure in terms of the new types.
21748         (Host_Errno): New function (imported from socket.c), returns last hosts
21749         database error.
21750
21751         * g-socthi-vxworks.adb:  Add error handling circuitry.
21752
21753         * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
21754         components of struct timeval.
21755         (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
21756         (Check_Selector): In error conditions, clear internal socket sets to
21757         avoid a memory leak.
21758         (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
21759         Send_Timeout, Receive_Timeout.
21760
21761         * g-socthi.ads (time_t, suseconds_t): New types constructed to match
21762         the tv_sec and tv_usec fields of C struct timeval.
21763         (Timeval): Construct structure in terms of the new types.
21764         (Host_Errno): New function (imported from socket.c), returns last hosts
21765         database error.
21766
21767         * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
21768         hosts database last error code.
21769
21770         * gen-soccon.c: Complete value expansion should not be performed on
21771         TARGET, as it has the form of a math expression, and some components
21772         may be platform-defined macros.
21773         For VxWorks, generate the OK and ERROR values.
21774         New constants giving the sizes of the components of C struct timeval.
21775
21776 2005-11-14  Robert Dewar  <dewar@adacore.com>
21777             Ed Schonberg  <schonberg@adacore.com>
21778
21779         PR ada/18434
21780         * types.ads: Include All_Checks in Suppress_Array
21781
21782         * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
21783         not(a=b), since we no longer do this rewriting, and hence it is not
21784         needed.
21785         (Elaboration_Checks_Suppressed): Add special casing to
21786         deal with different cases of static and dynamic elaboration checks (all
21787         checks does not count in the first case, but does in the second).
21788         (Expr_Known_Valid): Do not assume that the result of any arbitrary
21789         function call is valid, since this is not the case.
21790         (Ensure_Valid): Do not apply validity check to a real literal
21791         in a universal or fixed context
21792
21793         * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
21794         elementary types using the operator in standard. It is cleaner not to
21795         modify the programmers intent, especially in the case of floating-point.
21796         (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
21797         it did not matter because we always rewrote a/=b to not(a=b).
21798         (Expand_Allocator_Expression): For an allocator expression whose nominal
21799         subtype is an unconstrained packed type, convert the expression to its
21800         actual constrained subtype.
21801         Implement warning for <= or >= where < or > not possible
21802         Fix to Vax_Float tests (too early in many routines, causing premature
21803         Vax_Float expansions.
21804
21805         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
21806         to be used with packages and generic packages as well as with
21807         subprograms.
21808         (Suppress): Set All_Checks, but not Elaboration_Check, for case
21809         of pragma Suppress (All_Checks)
21810         (Analyze_Pragma, case Warnings): Implement first argument allowed to be
21811         a string literal for precise control over warnings.
21812         Avoid raise of pragma in case of unrecognized pragma and just return
21813         instead.
21814
21815         * sem_prag.ads: Minor reformatting
21816
21817         * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
21818         with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
21819         Switch. Do not handle any exception.
21820         Include -gnatwx as part of -gnatg (warn on redundant parens)
21821         Allow optional = after -gnatm
21822         (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
21823         longer sets Elaboration_Checks.
21824         Code to set warning mode moved to Sem_Warn
21825         so that it can be shared by pragma processing.
21826
21827         * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
21828         statement.
21829
21830         * s-taprop-solaris.adb: 
21831         Change some <= to =, to avoid new warning
21832
21833         * a-exexda.adb, prj-proc.adb: 
21834         Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
21835         Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
21836
21837 2005-11-14  Robert Dewar  <dewar@adacore.com>
21838
21839         * exp_vfpt.adb: Handle /= case
21840         (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
21841         so that we do not get duplicate scaling for fixed point conversions.
21842
21843         * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
21844
21845 2005-11-14  Matthew Gingell  <gingell@adacore.com>
21846
21847         * system-lynxos-ppc.ads, system-lynxos-x86.ads: 
21848         Increase default priority on Lynx from 15 to 17, and meet the Ada
21849         requirement that Default_Priority be ((Priority'First +
21850         Priority'Last) / 2) by increasing the range of Interrupt_Priority.
21851
21852 2005-11-14  Vincent Celier  <celier@adacore.com>
21853
21854         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
21855         mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
21856         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
21857         mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
21858         mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
21859         mlib-tgt-lynxos.adb (DLL_Prefix): New function
21860
21861 2005-11-14  Doug Rupp  <rupp@adacore.com>
21862
21863         * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
21864         private part.
21865
21866 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
21867
21868         * s-traces-default.adb, s-trafor-default.ads,
21869         s-tratas-default.adb: Fix compilation errors.
21870
21871 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
21872
21873         * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
21874         raising the exception so the memory used is freed.
21875
21876 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
21877
21878         * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
21879         (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
21880         (convert_address): Update comments and list of platforms using this.
21881
21882         * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
21883         no longer used.
21884
21885 2005-11-14  Pascal Obry  <obry@adacore.com>
21886             Vincent Celier  <celier@adacore.com>
21887
21888         * gnatdll.adb (Parse_Command_Line): Remove redundant use of
21889         GNAT.Command_Line.
21890
21891         * memroot.adb: Remove redundant with/use clause on
21892         System.Storage_Elements.
21893
21894 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
21895
21896         * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
21897         (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
21898         related code to a-exexpr.adb
21899         (Save_Occurrence_And_Private): Move GCC EH related code to
21900         a-exexpr-gcc.adb
21901         (Raise_Current_Excep): Add new variable Id with pragma
21902         volatile, to ensure that the variable lives on stack.
21903
21904         * a-exexpr-gcc.adb, raise-gcc.c: New file.
21905
21906         * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
21907         from a-except.adb.
21908         Move GCC EH related code to a-exexpr-gcc.adb
21909
21910         * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
21911         64-bit Solaris
21912         Split the Linux version of g-soccon into separate variants for 32 and 64
21913         bit platforms.
21914         (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
21915         vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
21916         install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
21917         of host variable $(RANLIB_FLAGS).
21918         (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
21919         Code clean up: remove unused/obsolete targets.
21920         (EH_MECHANISM): New variable introduced to differenciate between the
21921         two EH mechanisms statically.
21922         (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
21923         (LIBGNAT_OBJS): Add raise-gcc.o
21924         (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
21925         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
21926         supports VxWorks 6 RTPs.
21927         (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
21928         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
21929
21930         * raise.c: Move all GCC EH-related routines to raise-gcc.c
21931
21932 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
21933
21934         * s-tassta.adb (Create_Task): Move the code in charge of resetting the
21935         deferral level, when abort is not allowed, to a later stage (the
21936         Task_Wrapper).
21937         (Task_Wrapper): If Abort is not allowed, reset the deferral level since
21938         it will not get changed by the generated code. It was previously done
21939         in Create_Task.
21940
21941 2005-11-14  Thomas Quinot  <quinot@adacore.com>
21942             Olivier Hainque  <hainque@adacore.com>
21943             Eric Botcazou  <ebotcazou@adacore.com>
21944
21945         * decl.c:
21946         Factor common code to build a storage type for an unconstrained object
21947         from a fat or thin pointer type and a constrained object type.
21948         (annotate_value): Handle BIT_AND_EXPR.
21949         (annotate_rep): Don't restrict the back annotation of inherited
21950         components to the type_annotate_only case.
21951         (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
21952         we are not defining the type.
21953         <E_Record_Type>: Likewise.
21954         (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
21955         to get advantage of the new maybe_stabilize_reference interface, to
21956         ensure that what we reference is indeed stabilized instead of relying
21957         on assumptions on what the stabilizer does.
21958         (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
21959         type imported through a limited_with clause, use its non-limited view.
21960         (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
21961         differentiation.
21962         (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
21963         of #if sections + explicit comparisons of convention identifiers.
21964         (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
21965         before early-returning for certain types when code generation is
21966         disabled.
21967         (gnat_to_gnu_entity) <object>: Adjust comment attached to the
21968         nullification of gnu_expr we do for objects with address clause and
21969         that we are not defining.
21970         (elaborate_expression_1): Do not create constants when creating
21971         variables needed by the debug info: the dwarf2 writer considers that
21972         CONST_DECLs is used only to represent enumeration constants, and emits
21973         nothing for them.
21974         (gnat_to_gnu_entity) <object>: When turning a non-definition of an
21975         object with an address clause into an indirect reference, drop the
21976         initializing expression.
21977         Include "expr.h".
21978         (STACK_CHECK_BUILTIN): Delete.
21979         (STACK_CHECK_PROBE_INTERVAL): Likewise.
21980         (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
21981         (STACK_CHECK_MAX_VAR_SIZE): Likewise.
21982         (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
21983         corresponding to the renamed object as ignored for debugging purposes.
21984
21985         * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
21986         related): For a prefix that is a dereference of a fat or thin pointer,
21987         if there is an actual subtype provided by the front-end, use that
21988         subtype to build an actual type with bounds template.
21989         (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
21990         is provided by the front-end, use that subtype to compute the size of
21991         the deallocated object.
21992         (gnat_to_gnu): When adding a statement into an elaboration procedure,
21993         check for a potential violation of a No_Elaboration_Code restriction.
21994         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
21995         with extra arguments to control whether to recurse through non-values
21996         and to let the caller know if the stabilization has succeeded.
21997         (gnat_stabilize_reference): Now a simple wrapper around
21998         maybe_stabilize, for common uses without restriction on lvalues and
21999         without need to check for the success indication.
22000         (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
22001         pass false instead of 0 as the FORCE argument which is a bool.
22002         (Identifier_to_gnu): Remove checks ensuring that an renamed object
22003         attached to a renaming pointer has been properly stabilized, as no such
22004         object is attached otherwise.
22005         (call_to_gnu): Invoke create_var_decl to create the temporary when the
22006         function uses the "target pointer" return mechanism.
22007         Reinstate conversion of the actual to the type of the formal
22008         parameter before any other specific treatment based on the passing
22009         mechanism. This turns out to be necessary in order for PLACEHOLDER
22010         substitution to work properly when the latter type is unconstrained.
22011
22012         * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
22013         common pattern.
22014         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
22015         with extra arguments to control whether to recurse through non-values
22016         and to let the caller know if the stabilization has succeeded.
22017
22018         * utils2.c (gnat_build_constructor): Only sort the fields for possible
22019         static output of record constructor if all the components are constant.
22020         (gnat_build_constructor): For a record type, sort the list of field
22021         initializers in increasing bit position order.
22022         Factor common code to build a storage type for an unconstrained object
22023         from a fat or thin pointer type and a constrained object type.
22024         (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
22025         types variants, and process special cases of VIEW_CONVERT expressions
22026         as their NOP_EXPR counterpart to ensure we get to the
22027         CORRESPONDING_VARs associated with CONST_DECls.
22028         (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
22029         on the right-hand side.
22030
22031         * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
22032         a common pattern.
22033         (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
22034         are converting back to its original type.
22035         (convert) <JM input>: Fallthrough regular conversion code instead of
22036         extracting the object if converting to a type variant.
22037         (create_var_decl): When a variable has an initializer requiring code
22038         generation and we are at the top level, check for a potential violation
22039         of a No_Elaboration_Code restriction.
22040         (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
22041         SIZE and SIZE_UNIT which we need for later back-annotations.
22042         * utils.c: (convert) <STRING_CST>: Remove obsolete code.
22043         <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
22044         is an unchecked union.
22045         (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
22046         (convert) <VIEW_CONVERT_EXPR>: When the types have the same
22047         main variant, just replace the VIEW_CONVERT_EXPR.
22048         <UNION_TYPE>: Revert 2005-03-02 change.
22049
22050         * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
22051
22052         * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
22053
22054 2005-11-14  Matthew Heaney  <heaney@adacore.com>
22055
22056         * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads, 
22057         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb, 
22058         a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads, 
22059         a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb, 
22060         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
22061         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb: 
22062         Compiles against the spec for ordered maps described in sections
22063         A.18.6 of the most recent (August 2005) AI-302 draft.
22064
22065 2005-11-14  Olivier Hainque  <hainque@adacore.com>
22066
22067         * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
22068         to ensure bias adjustments take place when need be and to prevent
22069         occurrences of intermediate overflows.
22070
22071 2005-11-14  Matthew Gingell  <gingell@adacore.com>
22072             Olivier Hainque  <hainque@adacore.com>
22073
22074         * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
22075         ia64 HP-UX.
22076
22077         * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
22078         tracebacks on ia64 HP-UX and provide explanatory comment.
22079         Enable backtraces on ia64 GNU/Linux.
22080         (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
22081         base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
22082
22083 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
22084             Javier Miranda  <miranda@adacore.com>
22085
22086         * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
22087         exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
22088         exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
22089         einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
22090
22091         * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
22092         properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
22093         assertions).
22094
22095         * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
22096         subprogram that generates the external name associated with a
22097         secondary dispatch table.
22098         (Get_Secondary_DT_External_Name): New subprogram that generates the
22099         external name associated with a secondary dispatch table.
22100
22101 2005-11-14  Emmanuel Briot  <briot@adacore.com>
22102
22103         * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
22104         line in the ALI file to include both an instantiation reference, and a
22105         returned value.
22106
22107 2005-11-14  Vincent Celier  <celier@adacore.com>
22108
22109         * clean.adb (Check_Project): Look for Ada code in extending project,
22110         even if Ada is not specified as a language.
22111         Use new function DLL_Prefix for DLL_Name
22112         (Clean_Interface_Copy_Directory): New procedure
22113         (Clean_Library_Directory): New procedure
22114         (Clean_Directory): Remove procedure, no longer used
22115         (Clean_Project): Do not delete any file in an externally built project
22116
22117         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
22118         directory of an extending project, even when there are no Ada source
22119         present.
22120         (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
22121         (Set_Ada_Paths.Add.Recursive_Add): Ditto
22122
22123         * mlib-prj.adb (Check_Library): For all library projects, get the
22124         library file timestamp.
22125         (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
22126         (Build_Library): Use new function DLL_Prefix for the DLL_Name
22127         (Clean): Remove procedure, no longer used
22128         (Ultimate_Extension_Of): New function
22129         (Build_Library): When cleaning the library directory, only remove an
22130         existing library file and any ALI file of a source of the project.
22131         When cleaning the interface copy directory, remove any source that
22132         could be a source of the project.
22133
22134         * prj.ads, prj.adb (Project_Empty): Add values of new components
22135         Library_TS and All_Imported_Projects.
22136         (Project_Empty): Add values for new components of Project_Data:
22137         Library_ALI_Dir and Display_Library_ALI_Dir
22138
22139         * prj-attr.adb: New project level attribute name Library_ALI_Dir
22140
22141         * prj-nmsc.adb (Check_Library_Attributes): Take into account new
22142         attribute Library_ALI_Dir.
22143         (Check_Library_Attributes): The library directory cannot be the same as
22144         any source directory of the project tree.
22145         (Check_Stand_Alone_Library): The interface copy directory cannot be
22146         the same as any source directory of the project tree.
22147
22148         * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
22149         all temporary files.
22150
22151 2005-11-14  Robert Dewar  <dewar@adacore.com>
22152             Ed Schonberg  <schonberg@adacore.com>
22153
22154         * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22155         (Check_Elab_Call): A call within a protected body is never an
22156         elaboration call, and does not require checking.
22157         (Same_Elaboration_Scope): Take into account protected types for both
22158         entities.
22159         (Activate_Elaborate_All_Desirable): New procedure
22160
22161         * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
22162         desirable
22163
22164         * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
22165         (Elab_Error_Msg): Use -da to include internal unit links, not -de.
22166
22167         * lib-writ.ads, lib-writ.adb: 
22168         Implement new AD/ED for Elaborate_All/Elaborate desirable
22169         Use new Elaborate_All_Desirable flag in N_With_Clause node
22170
22171         * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
22172         N_Free_Statement nodes.
22173         Define new class N_Subprogram_Instantiation
22174         Add Elaborate_Desirable flag to N_With_Clause node
22175         Add N_Delay_Statement (covering two kinds of delay)
22176
22177         * debug.adb: Introduce d.f flag for compiler
22178         Add -da switch for binder
22179
22180 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22181             Cyrille Comar  <comar@adacore.com>
22182
22183         * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
22184         for task component, in the case of a limited aggregate. The enclosed
22185         object declaration will create it earlier. Otherwise, in the case of a
22186         nested aggregate, the object may appear in the wrong scope.
22187         (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
22188         (Gen_Assign): If the component being assigned is an array type and the
22189         expression is itself an aggregate, wrap the assignment in a block to
22190         force finalization actions on the temporary created for each row of the
22191         enclosing object.
22192         (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
22193         structures are initialized after all discriminants are set so that
22194         they can be accessed even when their offset is dynamic.
22195
22196 2005-11-14  Robert Dewar  <dewar@adacore.com>
22197             Hristian Kirtchev  <kirtchev@adacore.com>
22198
22199         * sem_attr.adb: Implement Machine_Rounding attribute
22200         (Analyze_Access_Attribute): The access attribute may appear within an
22201         aggregate that has been expanded into a loop.
22202         (Check_Task_Prefix): Add semantic check for attribute 'Callable and
22203         'Terminated whenever the prefix is of a task interface class-wide type.
22204         (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
22205         the prefix is of a task interface class-wide type.
22206
22207         * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
22208         to avoid warnings.
22209
22210         * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
22211         Remove pragma Inline for [Unaligned_]Valid.
22212         Add comments that Valid routines do not work for Vax_Float
22213
22214         * exp_attr.adb: Implement Machine_Rounding attribute
22215
22216         * snames.h: Add entry for Machine_Rounding attribute
22217
22218 2005-11-14  Javier Miranda  <miranda@adacore.com>
22219             Robert Dewar  <dewar@adacore.com>
22220             Hristian Kirtchev  <kirtchev@adacore.com>
22221
22222         * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
22223         and related): For a prefix that is an explicit dereference of an
22224         access to unconstrained packed array type, annotate the dereference
22225         with an actual subtype so GIGI can make a correct size computation.
22226         (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
22227         'Unrestricted_Access, if the designated type is an interface we
22228         add a type conversion to force the displacement of the pointer
22229         to the secondary dispatch table.
22230         Use Universal_Real instead of Long_Long_Float when we need a high
22231         precision float type for the generated code (prevents gratuitous
22232         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
22233         (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
22234         'Terminated for task interface class-wide objects. Generate a call to
22235         the predefined dispatching routine used to retrieve the _task_id from
22236         a task corresponding record.
22237         (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
22238
22239         * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22240         (Check_Dispatching_Operation): Protect the frontend againts
22241         previously detected errors.
22242
22243         * Makefile.rtl: Add new instantiations of system.fat_gen
22244
22245         * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads: 
22246         Change name of instantiated package for better consistency
22247         with newly added system.fat_gen instantiations.
22248
22249         * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
22250         s-fvagfl.ads: New files.
22251
22252 2005-11-14  Cyrille Comar  <comar@adacore.com>
22253             Thomas Quinot  <quinot@adacore.com>
22254
22255         * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
22256         assignment of a value of a tagged type that has been rewritten to a
22257         block statement, it is known by construction that no checks are
22258         necessary for the statements within the block: analyze it with checks
22259         suppressed.
22260         (Expand_N_If_Statement): When killing a dead then-branch in an
22261         if-statement that has elsif_parts, recompute the Current_Value node
22262         for any entity whose value is known from the condition of the first
22263         elsif_part.
22264         (Expand_N_Return_Statement): When returning a mutable record, convert
22265         the return value into its actual subtype in order to help the backend
22266         to return the actual size instead of the maximum. This is another
22267         aftermath of not returning mutable records on the sec-stack anymore.
22268
22269         * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
22270         handling of error msg for suspicious reverse range iteration.
22271         (Check_Possible_Current_Value_Condition): Move declaration from body to
22272         spec, to allow this subprogram to be called from exp_ch5.
22273
22274 2005-11-14  Thomas Quinot  <quinot@adacore.com>
22275
22276         * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
22277         generate a set of nested array aggregates instead of a single flat
22278         aggregate for multi-dimensional arrays.
22279
22280 2005-11-14  Pascal Obry  <obry@adacore.com>
22281
22282         * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
22283         by spawnve is a process handle, no need to convert. Add a parameter
22284         close to control wether the process handle must be closed.
22285         (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
22286         a process handle, not need to convert.
22287         (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
22288
22289         * g-expect.adb: (Kill): Document the new close parameter.
22290         (Close): Do not release the process handle in the kill there as
22291         waitpid() is using it.
22292         (Send_Signal): Release the process handle.
22293
22294 2005-11-14  Robert Dewar  <dewar@adacore.com>
22295
22296         * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
22297         need a high precision float type for the generated code (prevents
22298         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
22299         used).
22300
22301         * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
22302         need a high precision float type for the generated code (prevents
22303         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
22304         used).
22305         (Expand_Width_Attribute): In configurable run-time, the attribute is not
22306         allowed on non-static enumeration subtypes. Force a load error to emit
22307         the correct diagnostic.
22308
22309 2005-11-14  Thomas Quinot  <quinot@adacore.com>
22310             Robert Dewar  <dewar@adacore.com>
22311             Ed Schonberg  <schonberg@adacore.com>
22312
22313         * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
22314         subtype to compute the size of the designated object at run-time,
22315         create such a subtype and store it in the Actual_Designated_Subtype
22316         attribute of the N_Free_Statement.
22317         Generate itype for classwide designated object in both cases of
22318         user-specified storage pool: specific and class-wide, not only in the
22319         specific case.
22320         Raise CE when trying to set a not null access type object to null.
22321         (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
22322         an explicit loop, because freeze nodes make its position variable.
22323
22324         * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
22325         null object.
22326
22327 2005-11-14  Javier Miranda  <miranda@adacore.com>
22328
22329         * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
22330         Build_Stream_Procedure): Add the null-excluding attribute to the first
22331         formal.
22332         This has no semantic meaning under Ada95 mode but it is a
22333         requirement under Ada05 mode.
22334
22335         * par-ch3.adb (P_Access_Definition): Addition of warning message if
22336         the null exclusion is used under Ada95 mode
22337         (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
22338         (P_Access_Definition): Remove assertion that forbids the use of
22339         the null-exclusion feature in Ada95.
22340
22341 2005-11-14  Robert Dewar  <dewar@adacore.com>
22342
22343         * impunit.adb: Exclude container helper units not intended for use by
22344         users.
22345
22346 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22347
22348         * freeze.adb (Freeze_Entity): For an access formal that is an access
22349         to subprogram, freeze the anonymous subprogram type at the same time,
22350         to prevent later freezing in the wrong scope, such as the enclosing
22351         subprogram body.
22352         (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
22353         subprogram whenever available.
22354
22355 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
22356
22357         PR ada/23732
22358         * gnatvsn.ads (Library_Version): Bump to 4.1
22359
22360 2005-11-14  Robert Dewar  <dewar@adacore.com>
22361
22362         * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
22363         Storage_Offset to avoid wrap around causing invalid results.
22364
22365 2005-11-14  Pascal Obry  <obry@adacore.com>
22366
22367         * gnatbind.adb (Is_Cross_Compiler): New function returning True for
22368         cross-compiler.
22369         (Scan_Bind_Arg): Fail with an error message if -M option is used
22370         on a native compiler.
22371
22372 2005-11-14  Robert Dewar  <dewar@adacore.com>
22373             Vincent Celier  <celier@adacore.com>
22374
22375         * gprep.adb: Implement -C switch to scan comments
22376
22377         * scng.adb: Scan comment symbol separately if Replace_In_Comments set
22378
22379         * scans.ads: Comment updates (including new use of Tok_Comment in
22380         preprocessing)
22381
22382         * opt.ads: Add documentation for flags that are used by gprmake,
22383         currently and in the next version of gprmake.
22384         (Verbosity_Level): New variable
22385         Add Replace_In_Comments switch
22386
22387         * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
22388         and -vm.
22389         Add /REPLACE_IN_COMMENTS for gnatprep -C switch
22390
22391 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
22392
22393         * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
22394         message, friendlier.
22395
22396 2005-11-14  Robert Dewar  <dewar@adacore.com>
22397
22398         * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
22399
22400 2005-11-14  Doug Rupp  <rupp@adacore.com>
22401
22402         * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
22403
22404 2005-11-14  Robert Dewar  <dewar@adacore.com>
22405
22406         * interfac.ads: Change declarations of IEEE float types so that we no
22407         longer need a separate version of this package for VMS.
22408
22409 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22410
22411         * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
22412         internal entity created for the declaration of a child subprogram body
22413         with no spec as coming from source, to generate proper cross-reference
22414         information.
22415
22416 2005-11-14  Vincent Celier  <celier@adacore.com>
22417
22418         * make.adb (Compile_Sources): Change verbose message to minimum
22419         verbosity level High for "is in an Ada library", "is a read-only
22420         library" and "is an internal library",
22421         (Create_Binder_Mapping_File): Path name of ALI file for library project
22422         must include the library directory, not the object directory.
22423         (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
22424         for new switches -vl, -vm and -vh.
22425         (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
22426         (Check): Use minimum verbosity Medium for some Verbose_Msg calls
22427         (Compile_Sources): Do not attempt to compile if an ALI file is missing
22428         in a project that is externally built.
22429         (Compute_All_Imported_Projects): New procedure
22430         (Gnatmake): Check if importing libraries should be regenerated because
22431         at least an imported library is more recent.
22432         (Initialize): For each project compute the list of the projects it
22433         imports directly or indirectly.
22434         (Add_Library_Search_Dir): New procedure, used in place of
22435         Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
22436         put in the search paths.
22437         (Add_Source_Search_Dir): New procedure, used in place of
22438         Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
22439         put in the search paths.
22440         (Mark_Directory): Resolve the absolute path the directory before marking
22441         it.
22442
22443         * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
22444         call to new procedure Bad_Switch. Call Scan_Pos with new parameter
22445         Switch. Do not handle any exception.
22446         (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
22447         so that the switch is recognized as valid.
22448         (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
22449
22450 2005-11-14  GNAT Script  <nobody@adacore.com>
22451
22452         * Make-lang.in: Makefile automatically updated
22453
22454 2005-11-14  Pascal Obry  <obry@adacore.com>
22455
22456         * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
22457         used.
22458         (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
22459         In both cases the last argument was dropped.
22460
22461 2005-11-14  Eric Botcazou  <ebotcazou@adacore.com>
22462
22463         * namet.h: (Column_Numbe): New type.
22464         (Get_Column_Number): Define to sinput__get_column_number.
22465         (Instantiation): Define to sinput__instantiation.
22466         (Get_Column_Number): Declare.
22467         (Instantiation): Likewise.
22468
22469 2005-11-14  Robert Dewar  <dewar@adacore.com>
22470
22471         * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
22472         syntax, which could cause compiler hangs.
22473
22474 2005-11-14  Vincent Celier  <celier@adacore.com>
22475
22476         * prj-ext.adb: Take into account new environment variable
22477         GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
22478         are defined.
22479         (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
22480         normalize its path name, making it absolute and resolving symbolic
22481         links, and replace the original if resolved path is different.
22482
22483 2005-11-14  Vincent Celier  <celier@adacore.com>
22484
22485         * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
22486         into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
22487
22488 2005-11-14  Emmanuel Briot  <briot@adacore.com>
22489
22490         * prj-pp.adb (Print): Do not output the with statement if the
22491         associated name is empty, which happens for virtual extending projects.
22492         (Print): Preserve the "extends all" attribute when printing the project.
22493
22494         * prj-tree.ads (String_Value_Of): Add comment about returned value for
22495         a virtual extending project.
22496
22497 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22498
22499         * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
22500         rhs of an assignment even if the type is unconstrained, when the
22501         context is non-expanding.
22502         In an inlined body, if the context type is private,
22503         resolve with its full view, which must be a composite type.
22504
22505 2005-11-14  Robert Dewar  <dewar@adacore.com>
22506             Ed Schonberg  <schonberg@adacore.com>
22507
22508         * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22509         Do not give obsolescent warning on with of subprogram (since we
22510         diagnose calls)
22511         (Analyze_With_Clause): Add test for obsolescent package
22512         (Install_Context_Clauses): If the unit is the body of a child unit, do
22513         not install twice the private declarations of the parents, to prevent
22514         circular lists of Use_Clauses in a parent.
22515         (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
22516         compiling body of child unit.
22517         Use new class N_Subprogram_Instantiation
22518         (Expand_With_Clause): If this is a private with_clause for a child unit,
22519         appearing in the context of a package declaration, then the implicit
22520         with_clauses generated for parent units are private as well.
22521         (License_Check): Do not generate message if with'ed unit is internal
22522
22523 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
22524             Ed Schonberg  <schonberg@adacore.com>
22525             Thomas Quinot  <quinot@adacore.com>
22526
22527         * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
22528         names are internal, because they will not have a corresponding partner
22529         in the actual package.
22530         (Analyze_Formal_Package): Move the setting of the formal package spec's
22531         Generic_Parent field so that it occurs prior to analyzing the package,
22532         to allow proper operation of Install_Parent_Private_Declarations.
22533         (Analyze_Package_Instantiation): Set the instantiated package entity's
22534         Package_Instantiation field.
22535         (Get_Package_Instantiation_Node): Move declaration to package spec.
22536         Retrieve the N_Package_Instantiation node when the Package_Instantiation
22537         field is present.
22538         (Check_Generic_Child_Unit): Within an inlined call, the only possible
22539         instantiation is Unchecked_Conversion, for which no parents are needed.
22540         (Inline_Instance_Body): Deinstall and record the use_clauses for all
22541         parent scopes of a scope being removed prior to inlining an instance
22542         body.
22543         (Analyze_Package_Instantiation): Do not perform front-end inlining when
22544         the current context is itself an instance within a non-instance child
22545         unit, to prevent scope stack errors.
22546         (Save_References): If the node is an aggregate that is an actual in a
22547         call, rewrite as a qualified expression to preserve some type
22548         information, to resolve possible ambiguities in the instance.
22549         (Instance_Parent_Unit): New global variable to record the ultimate
22550         parent unit associated with a generic child unit instance (associated
22551         with the existing Parent_Unit_Visible flag).
22552         (type Instance_Env): New component Instance_Parent_Unit for stacking
22553         parents recorded in the global Instance_Parent_Unit.
22554         (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
22555         stack.
22556         (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
22557         it's not a top-level unit, and only do this if Instance_Parent_Unit is
22558         not already set. Replace test of Is_Child_Unit with test of parent's
22559         scope against package Standard. Add comments and a ??? comment.
22560         (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
22561         on a child instance parent to test that the parent equals
22562         Instance_Parent rather than simply checking that the unit is not a
22563         child unit.
22564         (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
22565         (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
22566         a formal interface are ancestors of the corresponding actual.
22567         (Validate_Formal_Interface_Type): Additional legality checks.
22568         (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
22569         interface types with ancestors.
22570         (Analyze_Formal_Package): If formal is a renaming, use renamed entity
22571         to diagnose attempts to use generic within its own declaration.
22572
22573 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22574             Javier Miranda  <miranda@adacore.com>
22575
22576         * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
22577         discriminant.
22578         (Build_Private_Derived_Type): The entity of the created full view of the
22579         derived type does not come from source. If after installing the private
22580         declarations of the parent scope the parent is still private, use its
22581         full view to construct the full declaration of the derived type.
22582         (Build_Derived_Record_Type): Relax the condition that controls the
22583         execution of the check that verifies that the partial view and
22584         the full view agree in the set of implemented interfaces. In
22585         addition, this test now only takes into account the progenitors.
22586         (Derive_Interface_Subprograms): No need to derive subprograms
22587         of ancestors that are interfaces.
22588         (Derive_Subprograms): Remove formal No_Predefined_Prims and the
22589         associated code.
22590         Change name Is_Package to Is_Package_Or_Generic_Package
22591         (Complete_Subprograms_Derivation): Handle the case in which the full
22592         view is a transitive derivation of the ancestor of the partial view.
22593         (Process_Full_View): Rename local subprogram Find_Interface_In_
22594         Descendant to Find_Ancestor_Interface to leave the code more clear.
22595         Remove wrong code that avoids the generation of an error message
22596         when the immediate ancestor of the partial view is an interface.
22597         In addition some minor reorganization of the code has been done to
22598         leave it more clear.
22599         (Analyze_Type_Declaration): If type has previous incomplete tagged
22600         partial view, inherit properly its primitive operations.
22601         (Collect_Interfaces): Make public, for analysis of formal
22602         interfaces.
22603         (Analyze_Interface_Declaration): New procedure for use for regular and
22604         formal interface declarations.
22605         (Build_Derived_Record_Type): Add support for private types to the code
22606         that checks if a tagged type implements abstract interfaces.
22607         (Check_Aliased_Component_Type): The test applies in the spec of an
22608         instance as well.
22609         (Access_Type_Declaration): Clean up declaration of malformed type
22610         declared as an access to its own classwide type, to prevent cascaded
22611         crash.
22612         (Collect_Interfaces): For private extensions and for derived task types
22613         and derived protected types, the parent may be an interface that must
22614         be included in the interface list.
22615         (Access_Definition): If the designated type is an interface that may
22616         contain tasks, create Master_Id for it before analyzing the expression
22617         of the declaration, which may be an allocator.
22618         (Record_Type_Declaration): Set properly the interface kind, for use
22619         in allocators, the creation of master id's for task interfaces, etc.
22620
22621 2005-11-14  Javier Miranda  <miranda@adacore.com>
22622             Ed Schonberg  <schonberg@adacore.com>
22623
22624         * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
22625         omitted in case of stream attribute subprograms.
22626         (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
22627         appear immediately after a subprogram body, when there is no previous
22628         subprogram declaration.
22629         Change name Is_Package to Is_Package_Or_Generic_Package
22630         (Process_Formals): A non null qualifier on a non null named access
22631         type is not an error, and is a warning only if Redundant_Constructs
22632         are flagged.
22633
22634 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
22635             Ed Schonberg  <schonberg@adacore.com>
22636
22637         * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
22638         nested within Analyze_Package_Specification to install the private
22639         declarations and use clauses within each of the parent units of a
22640         package instance of a generic child package.
22641         (Analyze_Package_Specification): When entering a private part of a
22642         package associated with a generic instance or formal package, the
22643         private declarations of the parent must be installed (by calling new
22644         procedure Install_Parent_Private_Declarations).
22645         Change name Is_Package to Is_Package_Or_Generic_Package
22646         (Preserve_Full_Attributes): For a synchronized type, the corresponding
22647         record is absent in a generic context, which does not indicate a
22648         compiler error.
22649
22650 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22651
22652         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
22653         not try to rewrite a renamed stream attribute, because the operations
22654         on the type may not have been generated.
22655         Handle properly a renaming_as_body generated for a stream operation
22656         whose default is abstract because the object type itself is abstract.
22657         (Find_Type): If the type is incomplete and appears as the prefix of a
22658         'Class reference, it is tagged, and its list of primitive operations
22659         must be initialized properly.
22660         (Chain_Use_Clauses): When chaining the use clauses that appear in the
22661         private declaration of a parent unit, prior to compiling the private
22662         part of a child unit, find on the scope stack the proper parent entity
22663         on which to link the use clause.
22664         (Note_Redundant_Use): Emit a warning when a redundant use clause is
22665         detected.
22666         (Analyze_Object_Renaming): An attribute reference is not a legal object
22667         if it is not a function call.
22668
22669 2005-11-14  Robert Dewar  <dewar@adacore.com>
22670             Ed Schonberg  <schonberg@adacore.com>
22671
22672         * sem_eval.adb: Implement d.f flag
22673         (Subtype_Statically_Match): A generic actual type has unknown
22674         discriminants when the corresponding actual has a similar partial view.
22675         If the routine is called to validate the signature of an inherited
22676         operation in a child instance, the generic actual matches the full view,
22677
22678 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
22679             Ed Schonberg  <schonberg@adacore.com>
22680             Robert Dewar  <dewar@adacore.com>
22681             Thomas Quinot  <quinot@adacore.com>
22682
22683         * sem_res.adb (Resolve_Call): Provide a better error message whenever
22684         a procedure call is used as a select statement trigger and is not an
22685         entry renaming or a primitive of a limited interface.
22686         (Valid_Conversion): If the operand has a single interpretation do not
22687         remove address operations.
22688         (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
22689         statement to inhibit warning.
22690         (Resolve_Unary_Op): Do not produce a warning when
22691         processing an expression of the form -(A mod B)
22692         Use Universal_Real instead of Long_Long_Float when we need a high
22693         precision float type for the generated code (prevents gratuitous
22694         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
22695         (Resolve_Concatenation_Arg): Improve error message when argument is an
22696         ambiguous call to a function that returns an array.
22697         (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
22698         there is an implicit operator in the given scope if we are within an
22699         instance: legality check has been performed on the generic.
22700         (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
22701         after resolving operand, to avoid false warnings on overloaded calls.
22702
22703 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22704             Javier Miranda  <miranda@adacore.com>
22705
22706         PR ada/15604
22707         * sem_type.adb (Covers): In an inlined body, a composite type matches
22708         a private type whose full view is a composite type.
22709         (Interface_Present_In_Ancestor): Protect the frontend against
22710         previously detected errors to ensure that its compilation
22711         with assertions enabled gives the same output that its
22712         compilation without assertions.
22713         (Interface_Present_In_Ancestor): Add support for private types.
22714         Change name In_Actual to In_Generic_Actual (clean up)
22715         (Disambiguate): New predicate In_Actual, to recognize expressions that
22716         appear in the renaming declaration generated for generic actuals, and
22717         which must be resolved in the outer context.
22718
22719 2005-11-14  Robert Dewar  <dewar@adacore.com>
22720             Thomas Quinot  <quinot@adacore.com>
22721             Hristian Kirtchev  <kirtchev@adacore.com>
22722             Ed Schonberg  <schonberg@adacore.com>
22723
22724         * sem_util.ads, sem_util.adb: Change name Is_Package to
22725         Is_Package_Or_Generic_Package.
22726         (Check_Obsolescent): New procedure.
22727         (Set_Is_Public): Remove obsolete junk test.
22728         (Set_Public_Status): Do not set Is_Public on an object whose declaration
22729         occurs within a handled_sequence_of_statemets.
22730         (Is_Controlling_Limited_Procedure): Factor some of the logic, account
22731         for a parameterless procedure.
22732         (Enter_Name): Recognize renaming declarations created for private
22733         component of a protected type within protected operations, so that
22734         the source name of the component can be used in the debugger.
22735
22736 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22737             Robert Dewar  <dewar@adacore.com>
22738
22739         * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
22740         of a generic subprogram are not visible outside the body.
22741         (Set_Warning_Switch): New procedure (code to set warning mode moved
22742         here from Switch.C so that it can be shared by pragma processing.
22743         (Check_References): Special case warning for non-modified non-imported
22744         volatile objects.
22745         * par-prag.adb: Modify processing of pragma Warnings to accomodate new
22746         form with a string literal argument
22747
22748 2005-11-14  Javier Miranda  <miranda@adacore.com>
22749
22750         * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
22751         anonymous access.
22752         (Write): Addition of "not null" to the anonymous access.
22753         (Read): Addition of "not null" to the anonymous access.
22754         (Write): Addition of "not null" to the anonymous access.
22755
22756         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
22757         I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
22758         I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
22759         (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
22760         W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
22761         "not null" to the anonymous access.
22762
22763 2005-11-14  Robert Dewar  <dewar@adacore.com>
22764
22765         * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
22766         offset values
22767
22768 2005-11-14  Vincent Celier  <celier@adacore.com>
22769
22770         * switch.adb (Bad_Switch): New procedure
22771         (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
22772         message when in error.
22773
22774         * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
22775         Too_Many_Output_Files): Remove declarations, no longer used.
22776         (Scan_Nat): New parameter Switch
22777         (Scan_Pos): Ditto
22778         (Bad_Switch): New procedure
22779
22780         * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
22781         with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
22782         new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
22783         to Osint.Fail. Do not handle any exception.
22784
22785 2005-11-14  Vincent Celier  <celier@adacore.com>
22786
22787         * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
22788         designates a non existent directory.
22789
22790 2005-11-14  Robert Dewar  <dewar@adacore.com>
22791
22792         * xgnatugn.adb: Replace invalid membership test by 'Valid
22793
22794 2005-11-14  Vincent Celier  <celier@adacore.com>
22795
22796         * makegpr.adb (Gprmake): Do not attempt to build the global archive if
22797         there is no object directory.
22798
22799 2005-11-14  Robert Dewar  <dewar@adacore.com>
22800
22801         * usage.adb: Minor adjustment to output format, use nn instead of nnn
22802         (so that -gnateInnn does not run into next column)
22803
22804 2005-11-14  Ed Falis  <falis@adacore.com>
22805
22806         * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
22807         "constrained"
22808
22809 2005-11-14  Cyrille Comar  <comar@adacore.com>
22810
22811         * s-chepoo.ads: Add comments on Dereference.
22812         Remove unnecessary inherited abstract primitives.
22813         Cosmetic cleanup.
22814
22815 2005-11-14  Robert Dewar  <dewar@adacore.com>
22816
22817         * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
22818         node parameter, not needed, since it is available as Declaration_Node.
22819
22820 2005-11-14  Geert Bosch  <bosch@adacore.com>
22821
22822         * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
22823         grammatically correct.
22824
22825 2005-11-14  Vincent Celier  <celier@adacore.com>
22826
22827         * s-fileio.ads: Correct spelling error in comment
22828
22829 2005-11-14  Cyrille Comar  <comar@adacore.com>
22830             Robert Dewar  <dewar@adacore.com>
22831             Vincent Celier  <celier@adacore.com>
22832             Ben Brosgol  <brosgol@adacore.com>
22833             Jose Ruiz  <ruiz@adacore.com>
22834             Pascal Obry  <obry@adacore.com>
22835
22836         * gnat_ugn.texi: 
22837         Document that -fstack-check is needed for strict compliance with the
22838         Ada 95 Reference Manual.
22839         Correct reference to VAX systems to meet HP guidelines
22840         Add documentation for new gnatmake switches -vl, -vm and -vh
22841         Replace DEC Ada by HP Ada
22842         Replace DIGITAL by HP
22843         Remove empty section on tools in compatibility section
22844         Clarify the Windows convention semantics.
22845         Document the Win32 calling convention.
22846         The Stdcall, Win32 and DLL convention are synonyms.
22847         Add a note in -gnatR description about zero size record components
22848         Note on new >= and <= warnings for -gnatwc
22849         Document that equal sign after -gnatm is optional.
22850         Note that strip is working fine on DLL built with a Library
22851         Project. The restriction apply only to DLL built with gnatdll.
22852         Update section about the way to debug a DLL.
22853         Update information about the DLL convention.
22854         Document -C switch for gnatprep
22855         Document new attribute Library_ALI_Dir
22856         Update elaboration doc to include implicit Elaborate pragmas now
22857         generated for subprogram instantiations.
22858         Document limitation on executable names that include spaces for --GCC,
22859         --GNATBIND, and --GNATLINK switches.
22860         Document that -w causes -gnatws to be added at start of gcc switches
22861
22862         * gnat_rm.texi: Document that -mieee is needed for generating infinite
22863         and NaN values in case of overflow on machines that are not fully
22864         compliant with the IEEE floating-point standard.
22865         Create a section describing the set of compiler options needed for
22866         strict compliance with the Ada 95 Reference Manual.
22867         Add documentation for pragma Obsolescent applied to a package
22868         Clarify potential issues of mixed language programs related to the
22869         I/O buffering enabling in the elaboration of the GNAT runtime.
22870         Add extra documentation for pragma Restrictions (No_Elaboration_Code)
22871         This documentation only patch adds extra documentsion for pragma
22872         Restrictions (No_Elaboration_Code), explaining why it is not possible
22873         to document this restriction in terms of allowed source constructs.
22874         Document string literal form of pragma Warnings
22875         Document new attribute Library_ALI_Dir
22876         Add documentation on stable attributes in project files that was missing
22877
22878         * gnat-style.texi: Indicate that paragraphs within a single comment
22879         should be separated by empty comment lines
22880
22881         * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
22882         /05 respectively)
22883
22884         * bindusg.adb: Minor cleanup, put -m before -M for consistency
22885
22886 2005-11-14  Robert Dewar  <dewar@adacore.com>
22887
22888         * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
22889         a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
22890         a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
22891         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
22892         a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
22893         a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
22894         a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
22895         a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
22896         a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
22897         a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
22898         a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
22899         a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
22900         g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
22901         a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
22902         a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
22903         system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
22904         g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
22905         g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
22906         a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
22907         a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
22908         a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
22909         a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
22910         a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
22911         a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
22912         system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
22913         system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
22914         a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
22915         a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
22916         a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
22917         system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
22918         system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
22919         s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
22920         system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
22921         system-interix.ads, system-solaris-sparc.ads,
22922         system-solaris-sparcv9.ads, s-inmaop-vms.adb,
22923         s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
22924         system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
22925         s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
22926         a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
22927         a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
22928         a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
22929         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
22930         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
22931         a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
22932         a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
22933         a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
22934         a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
22935         a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
22936         a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
22937         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
22938         a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
22939         a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
22940         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
22941         a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
22942         a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
22943         a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
22944         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
22945         a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
22946         a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
22947         a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
22948         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
22949         a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
22950         a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
22951         a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
22952         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
22953         a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
22954         a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
22955         a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
22956         bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
22957         csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
22958         errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
22959         errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
22960         exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
22961         exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
22962         freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
22963         g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
22964         g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
22965         g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
22966         g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
22967         g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
22968         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
22969         g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
22970         g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
22971         gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
22972         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
22973         g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
22974         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
22975         g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
22976         g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
22977         g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
22978         layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
22979         mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
22980         mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
22981         nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
22982         osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
22983         par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
22984         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
22985         par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
22986         prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
22987         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
22988         prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
22989         prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
22990         sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
22991         sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
22992         sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
22993         sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
22994         s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
22995         sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
22996         s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
22997         s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
22998         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
22999         s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
23000         s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
23001         s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
23002         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
23003         s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
23004         s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
23005         s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
23006         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
23007         s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
23008         s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
23009         s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
23010         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
23011         s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
23012         s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
23013         s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
23014         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
23015         s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
23016         s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
23017         s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
23018         s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
23019         s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
23020         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
23021         s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
23022         styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
23023         s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
23024         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
23025         s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
23026         s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
23027         s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
23028         s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
23029         s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
23030         s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
23031         s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
23032         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
23033         table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
23034         tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
23035         ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
23036         usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
23037         xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
23038         xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
23039         a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
23040         a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
23041         a-numaux-darwin.ads, a-numaux-darwin.adb,
23042         a-swuwha.ads, a-stunha.ads: Minor reformatting
23043
23044 2005-11-14  Robert Dewar  <dewar@adacore.com>
23045
23046         PR ada/18434
23047         * osint-m.adb: Add pragma Elaborate_All for Osint
23048
23049 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
23050
23051         PR ada/23995
23052         * trans.c (call_to_gnu): Restore statement lost in translation.
23053
23054 2005-11-08  Eric Botcazou  <ebotcazou@adacore.com>
23055
23056         * init.c: Use the Linux-specific section for the IA-64/Linux target.
23057         (__gnat_adjust_context_for_raise): Add conditional code so that the
23058         IA-64 is also supported.
23059
23060 2005-11-03  James E Wilson  <wilson@specifix.com>
23061
23062         PR ada/23427
23063         * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
23064         TREE_OVERFLOW check.
23065
23066 2005-09-21  Olivier Hainque  <hainque@adacore.com>
23067
23068         PR ada/22418
23069         * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
23070         as we create them to store a size in bits.
23071
23072 2005-10-21  Eric Botcazou  <ebotcazou@adacore.com>
23073
23074         PR ada/21937
23075         PR ada/22328
23076         PR ada/22381
23077         PR ada/22383
23078         PR ada/22419
23079         PR ada/22420
23080         * utils2.c (build_return_expr): New helper function.
23081         * gigi.h (build_return_expr): Declare it.
23082         * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
23083         of manually building the RETURN_EXPR tree.
23084         (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
23085         (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
23086         build_binary_op for the "target pointer" case.  Use build_return_expr
23087         instead of manually building the RETURN_EXPR tree.
23088
23089 2005-09-16  Laurent Guerby  <laurent@guerby.net>
23090
23091         PR ada/23788
23092         * s-tpinop.ads: Make this unit Preelaborate.
23093
23094 2005-09-16  Andreas Jaeger  <aj@suse.de>
23095
23096         * socket.c: Add string.h for memcpy.
23097
23098 2005-09-05  Arnaud Charlet  <charlet@adacore.com>
23099
23100         * dec-io.ads, dec-io.adb: Removed, no longer used.
23101
23102 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23103
23104         * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
23105
23106         * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
23107         s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
23108         s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
23109         s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
23110         dependent units are Preelaborate.
23111         (Initialize): Call Interrupt_Managemeent.Initialize and
23112         OS_Primitives.Initialize to ensure proper initialization of this unit.
23113         Remove use of System.Soft_Links
23114         Make this unit Preelaborate.
23115
23116         * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
23117         s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
23118         s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
23119         s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
23120         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
23121         s-tratas.ads, s-tasinf.ads: Minor reformatting.
23122         Add pragma Preelaborate, since these packages are suitable for this
23123         categorization.
23124         Update comments.
23125
23126         * s-traent-vms.ads, s-intman-dummy.adb,
23127         s-taprop-dummy.adb: Make this unit Preelaborate.
23128
23129         * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
23130         s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
23131         s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
23132         s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
23133         s-intman-solaris.adb, s-intman-irix-athread.adb,
23134         s-intman-irix.adb: Mark this unit Preelaborate.
23135         (Initialize): New procedure.
23136         Update comments.
23137
23138         * s-taspri-linux.ads: Removed.
23139
23140         * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
23141         as done by other implementations (e.g. posix).
23142
23143         * s-taprop.ads (Timed_Delay): Update spec since the caller now is
23144         responsible for deferring abort.
23145         Mark this unit Preelaborate.
23146
23147         * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
23148         proper initialization of the tasking run-time.
23149
23150         * s-tasdeb.ads: Mark this unit Preelaborate.
23151         (Known_Tasks): Add explicit default value to avoid elaboration code.
23152
23153         * s-inmaop-vms.adb (Elaboration code): Add call to
23154         Interrupt_Management.Initialize since the elaboration code depends on
23155         proper initialization of this package.
23156
23157         * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
23158         s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
23159         s-osprim-posix.adb: Make this unit Preelaborate.
23160
23161         * a-calend.adb: Add call to OS_Primitives.Initialize
23162
23163         * a-elchha.adb: Update use of Except.Id.Full_Name.
23164         Minor reformatting.
23165         Remove use of Ada.Exceptions.Traceback when possible, cleaner.
23166
23167         * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
23168         Move with clauses outside Warnings Off now that dependent units are
23169         Preelaborate.
23170         Use raise xxx with "..."; Ada 2005 form.
23171
23172         * a-taside.ads, a-taside.adb:
23173         Remove some dependencies, to make it easier to make this unit truly
23174         Preelaborate.
23175         Rewrite some code to be conformant with Preelaborate rules.
23176
23177         * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
23178         marked Preelaborate in the future.
23179
23180         * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
23181         these units Preelaborate.
23182
23183         * s-exctab.adb: Update use of Except.Id.Full_Name.
23184
23185         * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
23186         (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
23187         Set_Exc_Stack_Addr): Removed, no longer used.
23188         Remove reference to *Machine_State_Addr*, no longer needed.
23189
23190         * s-stalib.ads: Mark this unit as Preelaborate[_05].
23191         (Exception_Data): Full_Name is now a System.Address so that this unit
23192         can be made Preelaborate.
23193         Clean up/simplify code thanks to Full_Name being a System.Address.
23194         Remove obsolete pragma Suppress (All_Checks), no longer needed.
23195
23196         * s-taskin.ads, s-taskin.adb:
23197         Move with clauses outside Warnings Off now that dependent units are
23198         Preelaborate.
23199         Make this unit Preelaborate.
23200         (Initialize): New proceduure, replace elaboration code and makes the
23201         set up of the tasking run-time cleaner.
23202         (Detect_Blocking): Now a function instead of a deferred boolean, to
23203         obey Preelaborate rules.
23204
23205         * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
23206         soft links, no longer used.
23207
23208         * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
23209         packages are suitable for this categorization.
23210
23211         * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
23212         since we compile run-time sources in Ada 2005 mode.
23213         (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
23214         avoid having s-taprop*.adb depend on s-soflin and to avoid code
23215         duplication.
23216         Remove reference to *Machine_State_Addr*, no longer needed.
23217
23218 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23219
23220         * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
23221         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
23222         Remove reference to System.Exceptions.
23223
23224         * s-mastop-x86.adb: Removed, no longer used.
23225
23226         * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
23227
23228         * a-excach.adb: Minor reformatting.
23229
23230         * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
23231         instead fix new warnings that were hidden by this change.
23232         (AAA, ZZZ): Removed, replaced by...
23233         (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
23234         are used instead of constants, to help make Ada.Exception truly
23235         preelaborate.
23236         (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
23237         Raise_Storage_Error): File is now a System.Address, to simplify code.
23238         (Elab code): Removed, no longer used.
23239         (Null_Occurrence): Remove Warnings Off and make this construct
23240         preelaborate.
23241         Remove code related to front-end zero cost exception handling, since
23242         it is no longer used.
23243         Remove -gnatL/-gnatZ switches.
23244
23245         * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
23246         Update use of Except.Msg.
23247
23248         * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
23249         freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
23250         to front-end zero cost exception handling, since it is no longer used.
23251         Remove -gnatL/-gnatZ switches.
23252
23253         * lib-writ.ads: Minor reformatting
23254         Remove doc of UX
23255
23256         * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
23257
23258         * Make-lang.in: Remove references to s-except.ads
23259
23260         * s-except.ads: Removed, no longer used.
23261
23262         * s-mastop.ads, s-mastop.adb:
23263         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
23264         Remove reference to System.Exceptions.
23265
23266         * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
23267         switch-b.adb: Remove code related to front-end zero cost exception
23268         handling, since it is no longer used.
23269         Remove -gnatL/-gnatZ switches.
23270
23271 2005-09-01  Robert Dewar  <dewar@adacore.com>
23272             Gary Dismukes  <dismukes@adacore.com>
23273             Javier Miranda  <miranda@adacore.com>
23274
23275         * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
23276         type by valid test and generate warning.
23277         (Tagged_Membership): Generate call to the run-time
23278         subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
23279         Change formal name Subtype_Mark to Result_Definition in several calls to
23280         Make_Function_Specification.
23281         (Expand_Allocator_Expression): Add tests for suppression of the AI-344
23282         check for proper accessibility of the operand of a class-wide allocator.
23283         The check can be left out if checks are suppressed or if the expression
23284         has a specific tagged type whose level is known to be safe.
23285
23286         * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
23287         generates the run-time check associated with null-excluding entities.
23288         (Expand_N_Return_Statement): Add tests to determine if the accessibility
23289         check on the level of the return expression of a class-wide function
23290         can be elided. The check usually isn't needed if the expression has a
23291         specific type (unless it's a conversion or a formal parameter). Also
23292         add a test for whether accessibility checks are suppressed. Augment
23293         the comments to describe the conditions for performing the check.
23294
23295 2005-09-01  Hristian Kirtchev  <kirtchev@adacore.com>
23296             Javier Miranda  <miranda@adacore.com>
23297             Gary Dismukes  <dismukes@adacore.com>
23298             Ed Schonberg  <schonberg@adacore.com>
23299
23300         * a-tags.adb (IW_Membership): Give support to
23301         "Iface_CW_Typ in T'Class". For this purpose the functionality of this
23302         subprogram has been extended to look for the tag in the ancestors tag
23303         table.
23304         Update the structure of the GNAT Dispatch Table to reflect the
23305         additional two tables used in dispatching selects.
23306         Introduce appropriate array types and record components in
23307         Type_Specific_Data to reflect the two tables.
23308         (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
23309         the TSD of a tag, indexed by position.
23310         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
23311         operation kind in the TSD of a tag, indexed by position.
23312
23313         * a-tags.ads: Introduce an enumeration type to capture different
23314         primitive operation kinds. Define a constant reflecting the number of
23315         predefined primitive operations.
23316         (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
23317         of an entry wrapper.
23318         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
23319         callable entity of a primitive operation.
23320
23321         * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
23322         primitive operations used in dispatching selects for limited
23323         interfaces, limited tagged, task and protected types what implement a
23324         limited interface.
23325         (Freeze_Type): Generate the bodies of the primitive operations used in
23326         dispatching selects for limited tagged, task and protected types that
23327         implement a limited interface. Generate statements to populate the two
23328         auxiliary tables used for dispatching in select statements.
23329         (Freeze_Record_Type): Add call to initialize the dispatch table entries
23330         associated with predefined interface primitive operations.
23331         (Build_Dcheck_Function): Change Set_Subtype_Mark to
23332         Set_Result_Definition.
23333         (Build_Variant_Record_Equality): Change Subtype_Mark to
23334         Result_Definition.
23335         (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
23336         (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
23337         (Build_Assignment): Simplify the code that adds the run-time-check.
23338         (Expand_N_Object_Declaration): Code cleanup.
23339
23340         * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
23341         entries when there is a protected type that implements a limited
23342         interface.
23343
23344         * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
23345         common routines used in expansion of dispatching selects.
23346         (Add_Private_Declarations): Select the appropriate protection type when
23347         there is a protected type that implements a limited interface.
23348         (Build_Parameter_Block): Generate a wrapped parameter block.
23349         (Build_Protected_Subprogram_Body): Select the appropriate type for
23350         locking entries when there is a protected type that implements a
23351         limited interface.
23352         (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
23353         classified as entry wrappers.
23354         (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
23355         asynchronous selects.
23356         (Expand_N_Conditional_Entry_Call): Add support for expansion of
23357         dispatching conditional selects.
23358         (Expand_N_Protected_Type_Declaration): Select the appropriate type for
23359         protection when there is a protected type that implements limited
23360         interfaces.
23361         (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
23362         timed selects.
23363         (Extract_Dispatching_Call): Extract the entity of the name of a
23364         dispatching call, the object parameter, actual parameters and
23365         corresponding formals.
23366         (Make_Initialize_Protection): Correct logic of protection initialization
23367         when there is a protected type that implements a limited interface.
23368         (Parameter_Block_Pack): Populate a wrapped parameter block with the
23369         values of actual parameters.
23370         (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
23371         block and assign them to the original actual parameters.
23372
23373         * exp_ch9.ads (Subprogram_Protection_Mode): New type.
23374         (Build_Protected_Sub_Specification): Change the type and name of the
23375         last formal to account for the increased variety of protection modes.
23376
23377         * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
23378         entities. Used to save the value of the Is_Hidden attribute when the
23379         limited-view is installed.
23380         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
23381         the attribute of procedures classified as entry wrappers.
23382         (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
23383         entity of a primitive wrapper.
23384         (Write_Entity_Flags): Output the name and value of the
23385         Is_Primitive_Wrapper attribute.
23386         (Write_Field27_Name): Output the name and entity of the field Wrapped_
23387         Entity.
23388         (Underlying_Type): If we have an incomplete entity that comes from
23389         the limited view then we return the Underlying_Type of its non-limited
23390         view if it is already available.
23391         (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
23392         including operators.
23393         (Write_Field26_Name): Add entry for Overridden_Operation
23394         (Overridden_Operation): New attribute of functions and procedures.
23395
23396         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
23397         predefined position in the dispatch table for the primitive operations
23398         used in dispatching selects.
23399         (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
23400         predefined primitive operations and replace it with
23401         Default_Prim_Op_Count.
23402         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
23403         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
23404         the names of the generated primitive operations used in dispatching
23405         selects.
23406         (Init_Predefined_Interface_Primitives): No need to inherit primitives in
23407         case of abstract interface types. They will be inherit by the objects
23408         implementing the interface.
23409         (Make_DT): There is no need to inherit the dispatch table of the
23410         ancestor interface for the elaboration of abstract interface types.
23411         The dispatch table will be inherited by the object implementing the
23412         interface.
23413         (Copy_Secondary_DTs): Add documentation.
23414         (Validate_Position): Improve this static check in case of
23415         aliased subprograms because aliased subprograms must have
23416         the same position.
23417         (Init_Predefined_Interface_Primitives): New subprogram that initializes
23418         the entries associated with predefined primitives of all the secondary
23419         dispatch tables.
23420         (Build_Anonymous_Access_Type): Removed.
23421         (Expand_Interface_Actuals): With the previous cleanup there is no need
23422         to build an anonymous access type. This allows further cleanup in the
23423         code generated by the expander.
23424         (Expand_Interface_Conversion): If the actual is an access type then
23425         build an internal function to handle the displacement. If the actual
23426         is null this function returns null because no displacement is
23427         required; otherwise performs a type conversion that will be
23428         expanded in the code that returns the value of the displaced actual.
23429         (Expand_Interface_Actuals): Avoid the generation of unnecessary type
23430         conversions that have no effect in the generated code because no
23431         displacement is required. Code cleanup; use local variables to
23432         avoid repeated calls to the subprogram directly_designated_type().
23433
23434         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
23435         Classify the primitive operations used in dispatching selects as
23436         predefined.
23437         (Implements_Limited_Interface): Determine whether some type either
23438         directly implements a limited interface or extends a type that
23439         implements a limited interface.
23440         (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
23441         (Expand_Subtype_From_Expr): Do not build actual subtype if the
23442         expression is limited.
23443         (Find_Interface_Tag): Add code to handle class-wide types and
23444         entities from the limited-view.
23445
23446         * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
23447         Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
23448         POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
23449         POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
23450         Set_Prim_Op_Kind.
23451
23452         * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
23453         of procedure name or prefix that appears as a trigger in a triggering
23454         alternative.
23455
23456         * uintp.ads: Introduce constants Uint_11 and Uint_13.
23457
23458 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23459
23460         * s-tataat.adb, a-tasatt.adb:
23461         Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
23462
23463         * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
23464         these procedures to body, and renamed Abort_Defer, Abort_Undefer.
23465         (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
23466         longer used.
23467
23468 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23469             Jose Ruiz  <ruiz@adacore.com>
23470
23471         * s-taprop-vxworks.adb:
23472         Move with clauses outside Warnings Off now that dependent units are
23473         Preelaborate.
23474         (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
23475         initialization of this unit.
23476         (Specific): Add new procedures Initialize and Delete so that this
23477         package can be used for VxWorks 5.x and 6.x
23478         (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
23479         differences between VxWorks 5.x and 6.x
23480         Minor reformatting.
23481         (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
23482         caller.
23483         Use only Preelaborate-compatible constructs.
23484
23485         * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
23486         Primitives.Operations.
23487         (Delete, Initialize): New procedures.
23488
23489         * s-osinte-vxworks.adb: Body used to handle differences between
23490         VxWorks 5.x and 6.x
23491         (kill, Set_Time_Slice, VX_FP_TASK): New functions.
23492
23493         * s-osinte-vxworks.ads: Minor reformatting.
23494         Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
23495         (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
23496         and 6.
23497         (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
23498         between Vxworks 5 and 6.
23499         (taskLock, taskUnlock): Removeed, no longer used.
23500
23501         * adaint.c: The wait.h header is not located in the sys directory on
23502         VxWorks when using RTPs.
23503         (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
23504         using RTPs.
23505         (__gnat_dup): dup is available on Vxworks when using RTPs.
23506         (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
23507
23508         * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
23509
23510         * expect.c: The wait.h header is not located in the sys directory on
23511         VxWorks when using RTPs.
23512
23513 2005-09-01  Thomas Quinot  <quinot@adacore.com>
23514
23515         * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
23516
23517         * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
23518
23519         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
23520         g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
23521         g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
23522         g-soccon-freebsd.ads: Add new constants:
23523          IP_MULTICAST_IF
23524          SO_RCVTIMEO/SO_SNDTIMEO
23525          IOV_MAX
23526
23527         * gen-soccon.c:
23528         Move all target-specific file inclusions and macro definitions to
23529         gsocket.h, in order to ensure that any C code in socket.c will see a
23530         set of constants that is consistent with the contents of g-soccon.ads.
23531
23532         * gsocket.h: Code imported from gen-soccon.c:
23533         Move all target-specific file inclusions and macro definitions to
23534         gsocket.h, in order to ensure that any C code in socket.c will see a set
23535         of constants that is consistent with the contents of g-soccon.ads.
23536         This change also makes gen-soccon self-contained (removing dependencies
23537         upon GCC internal headers).
23538
23539         * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
23540         iovecs at a time.
23541         (To_Inet_Addr): Now a procedure instead of a function, more efficient.
23542
23543         * socket.c: Minor reformatting.
23544
23545 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23546             Thomas Quinot  <quinot@adacore.com>
23547
23548         * fname-sf.adb, mlib-tgt.ads,
23549         back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
23550         g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
23551         osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
23552         prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
23553         prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
23554         prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
23555         sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
23556         makegpr.adb: Remove redundant use_clauses.
23557
23558 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23559
23560         * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
23561         s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
23562         s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
23563         s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
23564         s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
23565         s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
23566         s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
23567         table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
23568         s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
23569         s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
23570         a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
23571         a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
23572         a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
23573         a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
23574         system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
23575         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
23576         s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
23577         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
23578         s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
23579         s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
23580         s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
23581         s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
23582         system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
23583         s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
23584         system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
23585         s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
23586         a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
23587         a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
23588         a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
23589         a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
23590         a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
23591         a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
23592         a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
23593         a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
23594         a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
23595         a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
23596         csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
23597         g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
23598         a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
23599         a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
23600         a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
23601         a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
23602         g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
23603         i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
23604         interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
23605         i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
23606         s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
23607         s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
23608         s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
23609         s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
23610         s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
23611         s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
23612         s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
23613         s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
23614         s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
23615         s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
23616         s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
23617         s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
23618         s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
23619         s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
23620         s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
23621         s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
23622         s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
23623         s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
23624         s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
23625         s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
23626         s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
23627         s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
23628         and always use the no parameter form for consistency.
23629
23630         * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
23631
23632 2005-09-01  Robert Dewar  <dewar@adacore.com>
23633
23634         * binde.adb: Minor reformatting
23635         (Find_Elab_Order): Output warning if -p used with static elab order
23636
23637 2005-09-01  Robert Dewar  <dewar@adacore.com>
23638
23639         * checks.adb (Check_Needed): New procedure, deals with removing checks
23640         based on analysis of short-circuited forms. Also generates warnings for
23641         improper use of non-short-circuited forms.
23642         Code clean ups.
23643
23644 2005-09-01  Robert Dewar  <dewar@adacore.com>
23645
23646         * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
23647         with 'Valid tests.
23648
23649 2005-09-01  Robert Dewar  <dewar@adacore.com>
23650
23651         * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
23652         spec.
23653         Implement new insertion char < (conditional warning)
23654         * errutil.adb, erroutc.adb: Implement new insertion char <
23655         (conditional warning).
23656         * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
23657         (Error_Msg_Warn): New variable for < insertion char.
23658         * prj-nmsc.adb: Implement new errout insertion char < (conditional
23659         warning).
23660         (Check_For_Source): Change value of Source_Id only after the current
23661         source has been dealt with.
23662
23663 2005-09-01  Robert Dewar  <dewar@adacore.com>
23664             Doug Rupp  <rupp@adacore.com>
23665
23666         * exp_attr.adb: Handle vax fpt for 'Valid attribute
23667         * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
23668         * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
23669         (Valid_D, Valid_F, Valid_G): New functions
23670
23671 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23672             Hristian Kirtchev  <kirtchev@adacore.com>
23673             Javier Miranda  <miranda@adacore.com>
23674
23675         * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
23676         from object notation, the original node is unanalyzed and carries no
23677         semantic information, so that accessiblity checks must be performed on
23678         the type of the actual itself.
23679         (Expand_N_Subprogram_Declaration): Change last actual parameter for
23680         compatibility with Build_Protected_Sub_Specification.
23681         (Check_Overriding_Inherited_Interfaces): Add suport to handle
23682         overloaded primitives.
23683         (Register_Interface_DT_Entry): Use the new name of the formal
23684         the the calls to Expand_Interface_Thunk
23685
23686         * exp_dbug.ads: Augment comments on encoding of protected types to
23687         include the generation of dispatching subprograms when the type
23688         implements at least one interface.
23689
23690         * lib.ads: Extend information in Load_Stack to include whether a given
23691         load comes from a Limited_With_Clause.
23692
23693         * lib-load.adb (From_Limited_With_Chain): New predicate to determine
23694         whether a potential circularity is harmless, because it includes units
23695         loaded through a limited_with clause. Extends previous treatment which
23696         did not handle properly arbitrary combinations of limited and
23697         non-limited clauses.
23698
23699 2005-09-01  Nicolas Setton  <setton@adacore.com>
23700
23701         * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
23702         to be encoded as typ___XBLU_lowerbound__upperbound instead of
23703         typ___XB_lowerbound__upperbound.
23704
23705 2005-09-01  Thomas Quinot  <quinot@adacore.com>
23706
23707         * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
23708         dummy access formal for RACW/RAS TypeCode TSS.
23709         (Build_TypeCode_Call): Do not generate dummy null access actual for
23710         calls to the TypeCode TSS.
23711
23712 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23713
23714         * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
23715         fully qualified name, to distinguish instances with the same local name.
23716
23717         * g-souinf.ads (Enclosing_Entity): Document that entity name is now
23718         fully qualified.
23719
23720 2005-09-01  Robert Dewar  <dewar@adacore.com>
23721
23722         * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
23723         packed arrays.
23724
23725 2005-09-01  Jerome Lambourg  <lambourg@adacore.com>
23726
23727         * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
23728         (Free): New deallocation procedure for filter elements
23729         (Close): Deallocate any existing filter for the concerned connection
23730
23731 2005-09-01  Laurent Pautet  <pautet@adacore.com>
23732
23733         * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
23734         position set is provided, we compute one in order to reduce the maximum
23735         length of the keys.  This computation first selects a character
23736         position between 1 and the minimum length of the keys in order to
23737         avoid reducing one of the keys to an empty string.
23738         (Initialize, Compute): When the ratio V to K is too low, the algorithm
23739         does not converge. The initialization procedure now comes with a
23740         maximum number of iterations such that when exceeded, an exception is
23741         raised in Compute. The user can initialize this ratio to another value
23742         and try again
23743         Reformating and updated headers.
23744
23745 2005-09-01  Javier Miranda  <miranda@adacore.com>
23746
23747         * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
23748         that given an entity T creates and returns an Itype that duplicates the
23749         contents of T. The returned Itype has the null-exclusion
23750         attribute set to True, and its Etype attribute references T
23751         to keep the association between the two entities.
23752         Update copyright notice
23753
23754         * sem_aggr.adb (Check_Can_Never_Be_Null,
23755         Aggregate_Constraint_Checks, Resolve_Aggregate,
23756         Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
23757
23758         * sem_ch5.adb (Analyze_Assignment): Code cleanup.
23759
23760 2005-09-01  Gary Dismukes  <dismukes@adacore.com>
23761             Robert Dewar  <dewar@adacore.com>
23762             Hristian Kirtchev  <kirtchev@adacore.com>
23763
23764         * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
23765         Result_Definition.
23766
23767         * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
23768         function specs.
23769         Call Set_Result_Definition instead of Set_Subtype_Mark.
23770         (P_Subprogram_Specification): Add parsing of anonymous access result
23771         plus null exclusions. Call Set_Result_Definition instead of
23772         Set_Subtype_Mark.
23773
23774         * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
23775         (P_Access_Type_Definition): Add parsing for an anonymous access result
23776         subtype, plus parsing for null exclusions. Call Set_Result_Definition
23777         instead of Set_Subtype_Mark.
23778
23779         * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
23780         (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
23781         (Result_Definition): New function for N_Function_Specifications.
23782         (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
23783         N_Function_Specification.
23784         (Set_Null_Exclusion_Present): Allow this flag for
23785         N_Function_Specification.
23786         (Set_Result_Definition): New procedure for N_Function_Specifications.
23787         (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
23788         and N_Function_Specification.
23789
23790         * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
23791         Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
23792         Add support for LIMITED NEW for Ada 2005 AI-419
23793         Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
23794         syntax for anonymous access results.
23795         Replace Subtype_Mark field by Result_Definition in
23796         N_Function_Specification and N_Access_Definition specs.
23797         Add Null_Exclusion_Present to spec of N_Function_Specification.
23798         (Result_Definition): New function for N_Function_Specification and
23799         N_Access_Function_Definition.
23800         (Set_Result_Definition): New procedure for N_Function_Specification and
23801         N_Access_Function_Definition.
23802
23803         * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
23804         Result_Definition for cases of N_Access_Function_Definition and
23805         N_Function_Specification.
23806         Print "not null" if Null_Exclusion_Present on N_Function_Specification.
23807
23808 2005-09-01  Vincent Celier  <celier@adacore.com>
23809
23810         * lib-writ.adb: Update Copyright notice
23811         (Write_With_Lines): On platforms where file names are case-insensitive,
23812         record the file names in lower case.
23813         (Write_ALI): For D lines, on platforms where file names are
23814         case-insensitive, record the file names in lower case.
23815
23816 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23817             Emmanuel Briot  <briot@adacore.com>
23818
23819         * lib-xref.adb (Output_Overridden_Op): Display information on
23820         overridden operation.
23821
23822         * lib-xref.ads: Add documentation on overridden operations.
23823
23824         * ali.ads (Xref_Entity_Record): Add support for storing the overriding
23825         information.
23826
23827         * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
23828         overriding entity information.
23829
23830 2005-09-01  Vincent Celier  <celier@adacore.com>
23831
23832         * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
23833         including those that are inherited.
23834
23835 2005-09-01  Robert Dewar  <dewar@adacore.com>
23836
23837         * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
23838
23839         * par-prag.adb: Implement new pragma Debug_Policy
23840
23841         * sem_prag.adb Implement new pragma Debug_Policy
23842         (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
23843         Component_Size attribute specification. Give warning for ignored pragma
23844         Pack.
23845
23846         * snames.h, snames.ads, snames.adb: Introduce entries in
23847         Preset_Names for Name_Disp_Asynchronous_Select,
23848         Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
23849         Name_Disp_Timed_Select.
23850         New pragma Debug_Policy
23851
23852         * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
23853         explicitly.
23854         Switch -gnata also sets Debug_Pragmas_Enabled
23855
23856         * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
23857         handle an explicit -gnata when compiling predefined files.
23858
23859 2005-09-01  Vincent Celier  <celier@adacore.com>
23860
23861         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
23862         directories of projects that have no Ada sources.
23863
23864 2005-09-01  Robert Dewar  <dewar@adacore.com>
23865
23866         * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
23867         (makes a difference for wide characters)
23868
23869         * widechar.adb, widechar.ads:
23870         Add Wide_Char_Byte_Count feature to count chars vs bytes
23871
23872 2005-09-01  Thomas Quinot  <quinot@adacore.com>
23873             Ed Schonberg  <schonberg@adacore.com>
23874             Robert Dewar  <dewar@adacore.com>
23875
23876         * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
23877         'Address attribute reference with an overloaded prefix, use the
23878         location of the prefix (not the location of the attribute reference) as
23879         the error location.
23880         (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
23881         a function renaming thereof, is a valid prefix for 'Size (where it is
23882         intepreted as a function call).
23883         (Statically_Denotes_Entity): New predicate to determine whether the
23884         prefix of an array attribute can be considered static.
23885
23886         PR ada/9087
23887         (Eval_Attr): Fix failure to evaluate Component_Size for
23888         unconstrained arrays (resulted in wrong value in packed case, since
23889         back end cannot handle this case)
23890
23891 2005-09-01  Robert Dewar  <dewar@adacore.com>
23892
23893         * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
23894         error msgs for most common cases.
23895         Use new errout insertion char < (conditional warning)
23896
23897 2005-09-01  Javier Miranda  <miranda@adacore.com>
23898             Ed Schonberg  <schonberg@adacore.com>
23899
23900         * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
23901         become local to the whole package.
23902         (Install_Limited_Withed_Unit): Instead of unchaining real entities if
23903         the package was already analyzed the new algorithm "replaces" the
23904         real entities by the shadow ones. This is required to ensure that
23905         the order of these entities in the homonym chains does not change;
23906         otherwise we can have undefined references at linking time because
23907         in case of conflicts the external name of the entities will have
23908         a suffix that depends on the order of the entities in the chain.
23909         (Remove_Limited_With_Clause): Complementary code that completes the
23910         new algorithm and replaces the shadow entities by the real ones.
23911         (Install_Limited_Withed_Unit): When unchaining entities before the
23912         installation of the shadow entities, only regular entities of the
23913         public part must be taken into account. This is required to
23914         keep this routine in synch with the work done by Remove_Limited_
23915         With_Clause
23916         (Install_Limited_With_Clause): Introduce implicit limited_with_clause
23917         even if unit is analyzed, because the analysis of the unit is
23918         idempotent in any case, and the limited view of the unit may have to
23919         be installed for proper visibility.
23920         (Expand_Limited_With_Clause): Even if the unit in the implicit
23921         with_clause has been analyzed already, a limited view of the package
23922         must be built for the current context, if it does not exist yet.
23923
23924 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23925             Javier Miranda  <miranda@adacore.com>
23926             Gary Dismukes  <dismukes@adacore.com>
23927
23928         * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
23929         defining entity for the instance body, make a new defining identifier
23930         rather than copying the entity of the spec, to prevent accidental
23931         sharing of the entity list.
23932         (Check_Private_View): When exchanging views of private types, build the
23933         list of exchanged views as a stack, to ensure that on exit the exchanges
23934         are undone in the proper order.
23935         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
23936         Restore the compilation environment in case of instantiation_error.
23937         (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
23938         for an anonymous access result.
23939         (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
23940         (Formal_Entity): Handle properly the case of a formal package that
23941         denotes a generic package renaming.
23942
23943 2005-09-01  Thomas Quinot  <quinot@adacore.com>
23944
23945         * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
23946         clause if the array aggregate is surrounded by parentheses.
23947
23948 2005-09-01  Cyrille Comar  <comar@adacore.com>
23949             Gary Dismukes  <dismukes@adacore.com>
23950             Ed Schonberg  <schonberg@adacore.com>
23951             Javier Miranda  <miranda@adacore.com>
23952
23953         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
23954         underlying type
23955         to check if a type is Constrained in cases related to code generation
23956         (rather than semantic checking) since otherwise we do not generate
23957         similar code for mutable private types depending if their
23958         discriminants are visible or not.
23959         (Check_Abstract_Overriding): Do not complain about failure to override
23960         the primitive operations used in dispatching selects since they will
23961         always be overriden at the freeze point of the type.
23962         (Access_Definition): Separate out handling for resetting the scope
23963         of an anonymous access function result type. Retrieve the scope
23964         of the associated function rather than using Current_Scope, which
23965         does not have a consistent value (depends on whether we're in the
23966         middle of analyzing formal parameters). Add ??? comment about
23967         finding a cleaner way to handle the special cases of scope setting.
23968         (Process_Incomplete_Dependents): A protected operation is never a
23969         dispatching operation (only its wrapper may be).
23970         (Build_Derived_Record_Type): In case of tagged private types that
23971         implement interfaces add derivation of predefined primitive
23972         operations.
23973         (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
23974         by two parameters that are used in case of derivation from abstract
23975         interface types: No_Predefined_Prims is used to avoid the derivation
23976         of predefined primitives from the interface, and Predefined
23977         Prims_Only is used to complete the derivation predefined primitives
23978         in case of private tagged types implementing interfaces.
23979         Fix typo in comments
23980         (Find_Interface_In_Descendant): Protect the frontend against
23981         wrong code with large circularity chains.
23982         (Is_Private_Overriding): Add support for entities overriding interface
23983         subprograms. The test failed because Entities associated with overriden
23984         interface subprograms are always marked as hidden (and used to build
23985         the secondary dispatch table); in this case the overriden entity is
23986         available through the field abstract_interface_alias (cf. override_
23987         dispatching_operation)
23988         (Access_Definition): Set the scope of the type to Current_Scope for the
23989         case of a function with an anonymous access result type.
23990         (Access_Subprogram_Declaration): Handle creation of the type entity for
23991         an access-to-function type with an anonymous access result.
23992         (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
23993         in handling for N_Access_Function_Definition.
23994         (Analyze_Subtype_Declaration): Modify the text of error message.
23995         (Derived_Type_Declaration): Modify the text of error message.
23996         (Process_Subtype): Modify the text of error message plus cleanup
23997         of one redundant error message.
23998         (Analyze_Component_Declaration): Code cleanup.
23999         (Analyze_Object_Declaration): Code cleanup.
24000         (Analyze_Subtype_Declaration): Propagate the null-exclusion
24001         attribute in case of access types. Code cleanup.
24002         (Array_Type_Declaration): Code cleanup.
24003         (Process_Discriminants): Create the new null-excluding itype
24004         if required. Code cleanup.
24005         (Process_Subtype): Create the new null-excluding itype if
24006         required. Code cleanup.
24007         (Build_Derived_Record_Type): Code cleanup to avoid calling
24008         twice the subprogram derive_subprograms in case of private
24009         types that implement interfaces. In this particular case the
24010         subprogram Complete_Subprograms_Derivation already does the
24011         job associated with the second call.
24012
24013         * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
24014         conversion to the full view when generating an operation for a
24015         discriminant whose type may currently be private.
24016
24017 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24018             Javier Miranda  <miranda@adacore.com>
24019
24020         * sem_ch4.adb (Transform_Object_Operation): In a context off the form
24021         V (Obj.F), the rewriting does not involve the indexed component, but
24022         only the selected component itself.
24023         Do not apply the transformation if the analyzed node is an actual of a
24024         call to another subprogram.
24025         (Complete_Object_Operation): Retain the entity of the
24026         dispatching operation in the selector of the rewritten node. The
24027         entity will be used in the expansion of dispatching selects.
24028         (Analyze_One_Call): Improve location of the error message associated
24029         with interface.
24030         (Analyze_Selected_Component): No need to resolve prefix when it is a
24031         function call, resolution is done when parent node is resolved, as
24032         usual.
24033         (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
24034         when attempting to resolve a call transformed from its object notation.
24035         (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
24036         of the argument list for each interpretation of the operation.
24037         (Try_Object_Operation): The designated type of an access parameter may
24038         be an incomplete type obtained through a limited_with clause, in which
24039         case the primitive operations of the type are retrieved from its full
24040         view.
24041         (Analyze_Call): If this is an indirect call, and the return type of the
24042         access_to_subprogram is incomplete, use its full view if available.
24043
24044 2005-09-01  Javier Miranda  <miranda@adacore.com>
24045             Gary Dismukes  <dismukes@adacore.com>
24046
24047         * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
24048         access types the null-exclusion and access-to-constant attributes must
24049         also match.
24050         (Analyze_Return_Statement): When the result type is an anonymous access
24051         type, apply a conversion of the return expression to the access type
24052         to ensure that appropriate accessibility checks are performed.
24053         (Analyze_Return_Type): For the case of an anonymous access result type,
24054         generate the Itype and set Is_Local_Anonymous_Access on the type.
24055         Add ??? placeholder for check to disallow returning a limited object
24056         in Ada 2005 unless it's an aggregate or a result of a function call.
24057         Change calls from Subtype_Mark to Result_Definition.
24058         (Analyze_Subprogram_Body): Change formal Subtype_Mark to
24059         Result_Definition in call to Make_Function_Specification.
24060         (Build_Body_To_Inline): Change Set_Subtype_Mark to
24061         Set_Result_Definition.
24062         (Make_Inequality_Operator): Change formal Subtype_Mark to
24063         Result_Definition in call to Make_Function_Specification.
24064         (Process_Formals): Create the new null-excluding itype if required.
24065         (New_Overloaded_Entity): For an entity overriding an interface primitive
24066         check if the entity also covers other abstract subprograms in the same
24067         scope. This is required to handle the general case, that is, overriding
24068         other interface primitives and overriding abstract subprograms inherited
24069         from some abstract ancestor type.
24070         (New_Overloaded_Entity): For an overriding entity that comes from
24071         source, note the operation that it overrides.
24072         (Check_Conformance, Type_Conformant): Addition of one new formal
24073         to skip controlling formals in the analysis. This is used to
24074         handle overloading of abstract interfaces.
24075         (Base_Types_Match): Add missing case for types imported from
24076         limited-with clauses
24077         (New_Overloaded_Entity): Add barrier to protect the use of
24078         the "alias" attribute.
24079
24080 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24081
24082         * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
24083         verify that the procedure and the entry are mode conformant.
24084         (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
24085         as a different operator, which is often a cut-and-paste error.
24086
24087 2005-09-01  Javier Miranda  <miranda@adacore.com>
24088             Ed Schonberg  <schonberg@adacore.com>
24089
24090         * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
24091         used in controlling parameters exclude null because it is necessary to
24092         read the tag to dispatch, and null has no tag.
24093         (Override_Dispatching_Operation): If the previous operation is inherited
24094         from an interface, it becomes hidden  and does not participate in later
24095         name resolution.
24096
24097 2005-09-01  Javier Miranda  <miranda@adacore.com>
24098             Ed Schonberg  <schonberg@adacore.com>
24099             Gary Dismukes  <dismukes@adacore.com>
24100
24101         * sem_res.adb (Resolve_Membership_Op): In case of the membership test
24102         "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
24103         the expander will generate the corresponding run-time check to evaluate
24104         the expression.
24105         (Resolve_Call): Check for legal type of procedure name or prefix that
24106         appears as a trigger in a triggering alternative.
24107         (Valid_Conversion): If expression is ambiguous and the context involves
24108         an extension of System, remove System.Address interpretations.
24109         (Resolve_Qualified_Expression): Reject the case of a specific-type
24110         qualification applied to a class-wide argument. Enhance comment
24111         to explain checking of Original_Node.
24112         (Resolve_Type_Conversion): The location of the error message was not
24113         general enough to handle the general case and hence it has been removed.
24114         In addition, this patch improves the text of the message.
24115         (Resolve_Type_Conversion): Add missing support for access to interface
24116         types.
24117         (Resolve_Type_Conversion): If the target is a class-wide interface type,
24118         do not expand if the expression is the actual in a call, because proper
24119         expansion will take place when the call itself is expanded.
24120         (Resolve_Allocator): If the context is an unchecked conversion, the
24121         allocator inherits its storage pool, if any, from the target type of
24122         the conversion.
24123
24124 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24125             Javier Miranda  <miranda@adacore.com>
24126
24127         * sem_type.adb (Add_One_Interp): If a candidate operation is an
24128         inherited interface operation that has an implementation, use the
24129         implementation to avoid spurious ambiguities.
24130         (Interface_Present_In_Ancestor): In case of concurrent types we can't
24131         use the Corresponding_Record_Typ attribute to look for the interface
24132         because it is set by the expander (and hence it is not always
24133         available). For this reason we traverse the list of interfaces
24134         (available in the parent of the concurrent type).
24135         (Interface_Present_In_Ancestor): Handle entities from the limited view
24136
24137 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24138
24139         * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
24140         from the list of required components.
24141         (Is_Controlling_Limited_Procedure): Determine whether an entity is a
24142         primitive procedure of a limited interface with a controlling first
24143         parameter.
24144         (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
24145         of an entry.
24146         (Safe_To_Capture_Value): A value (such as non_null) is not safe to
24147         capture if it is generated in the second operand of a short-circuit
24148         operation.
24149         Do not capture values for variables with address clauses.
24150         (Is_Object_Reference): Treat a function call as an object reference only
24151         if its type is not Standard_Void_Type.
24152
24153 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24154
24155         * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
24156         to a variable that is statically known to be constant.
24157
24158 2005-09-01  Geert Bosch  <bosch@adacore.com>
24159             Robert Dewar  <dewar@adacore.com>
24160
24161         * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
24162         (VAXGF_Safe_First): Idem.
24163
24164 2005-09-01  Robert Dewar  <dewar@adacore.com>
24165             Arnaud Charlet  <charlet@adacore.com>
24166
24167         * g-dirope.ads: Minor reformatting
24168         Document that bounds of result of Base_Name match the input index
24169         positions.
24170         Add documentation on environment variable syntax for Expand_Path
24171
24172         * gnat_ugn.texi: Update documentation to include mention of -m switches
24173         Document new treatment of wide characters in max line length
24174         style check.
24175         Remove -gnatL/-gnatZ switches, no longer used.
24176         Add note on pragmas Assertion_Policy and Debug_Policy in discussion
24177         of -gnata switch.
24178
24179         * gnat_rm.texi: Add doc for two argument form of pragma
24180         Float_Representation.
24181         Add documentation for pragma No_Strict_Aliasing
24182         Add note that explicit component clause overrides pragma Pack.
24183         Add documentation of pragma Debug_Policy
24184
24185 2005-09-01  Matthew Heaney  <heaney@adacore.com>
24186
24187         * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
24188         a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
24189         a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
24190         a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
24191         draft (Draft 13, August 2005) of Ada Amendment 1.
24192
24193 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
24194
24195         * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
24196         Note that the platform-specific version of g-soccon.ads for VMS is now
24197         named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
24198         really is a package spec).
24199         Replace s-taspri-linux.ads by s-taspri-posix.ads
24200         Remove references to s-mastop-x86.adb
24201
24202         * system-vxworks-xscale.ads: Removed, no longer used.
24203         * s-vxwork-xscale.ads: Removed, no longer used.
24204
24205 2005-09-01  Robert Dewar  <dewar@adacore.com>
24206
24207         * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
24208         g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
24209         g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
24210         exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
24211         g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
24212         g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
24213         g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
24214         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
24215         g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
24216         g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
24217         sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
24218         a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
24219         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
24220         a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
24221         a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
24222         a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
24223         g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
24224         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
24225         g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
24226         i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
24227         a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
24228
24229 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
24230
24231         PR ada/23187
24232         * adaint.c
24233         (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
24234
24235 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
24236             Doug Rupp  <rupp@adacore.com>
24237
24238         * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
24239         when needed.
24240         (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
24241         this code in the GNAT run-time.
24242
24243         * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
24244
24245         PR ada/21053
24246         * init.c (__gnat_error_handler [many]): Mark "msg" as const
24247         (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
24248
24249         (__gnat_inside_elab_final_code): Moved here from
24250         Standard_Library and only defined for the compiler.
24251         __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
24252         (__gnat_inum_to_ivec): Do not define this function on VxWorks when
24253         using RTPs because directly vectored Interrupt routines are not
24254         supported on this configuration.
24255         (getpid): Do not redefine this function on VxWorks when using RTPs
24256         because this primitive is well supported by the RTP libraries.
24257         (copy_msg): Correct the code that checks for buffer overflow.
24258         Discovered during code reading.
24259
24260 2005-08-29  Olivier Hainque  <hainque@adacore.com>
24261
24262         * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
24263         a library level mutable variable with an initializer, tell
24264         build_allocator to ignore the initializer's size. It may not be large
24265         enough for all the values that might be assigned to the variable later
24266         on.
24267
24268 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
24269             Eric Botcazou  <ebotcazou@adacore.com>
24270
24271         * trans.c: Protect < in error msg with quote
24272         Replace GCC_ZCX by Back_End_Exceptions.
24273         (addressable_p) <COMPONENT_REF>: Also return 1 if the field
24274         has been sufficiently aligned in the record.
24275
24276 2005-08-15  James E. Wilson  <wilson@specifix.com>
24277
24278         * system-linux-alpha.ads: Change ia64 to alpha.
24279
24280 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
24281
24282         * decl.c, utils.c: Fix comment typos.
24283
24284 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
24285
24286         * decl.c, init.c, initialize.c: Fix comment typos.
24287
24288 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
24289
24290         Make CONSTRUCTOR use VEC to store initializers.
24291         * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
24292         CONSTRUCTOR_ELTS.
24293         * trans.c (extract_values): Likewise.
24294         * utils.c (convert, remove_conversions): Likewise.
24295         * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
24296         gnat_build_constructor): Likewise.
24297
24298 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
24299
24300         * decl.c (components_to_record): Use DECL_FCONTEXT instead of
24301         DECL_SECTION_NAME.
24302         (compare_field_bitpos): Likewise.
24303
24304 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
24305
24306         * utils.c (create_var_decl): Only set DECL_COMMON on
24307         VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
24308         VAR_OR_FUNCTION_DECL_P.
24309
24310 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
24311
24312         * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
24313         removed.
24314
24315 2005-07-07  Pascal Obry  <obry@adacore.com>
24316
24317         * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
24318         returned type on Windows.
24319
24320         * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
24321         routine.
24322
24323         * g-socket.adb (Inet_Addr): Check for empty Image and raises an
24324         exception in this case.
24325         Simplify the code as "Image (Image'Range)" = "Image".
24326
24327 2005-07-07  Vincent Celier  <celier@adacore.com>
24328
24329         * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
24330         the destructor/constructor attributes for <lib>final/<lib>init.
24331
24332         * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
24333
24334 2005-07-07  Eric Botcazou  <ebotcazou@adacore.com>
24335
24336         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
24337         type if the parameter is not passed by copy but reference by default.
24338
24339 2005-07-07  Javier Miranda  <miranda@adacore.com>
24340
24341         * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
24342         Reimplementation of the support for abstract interface types in order
24343         to leave the code more clear and easy to maintain.
24344
24345         * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
24346         abstract interface types in order to leave the code clearer and easier
24347         to maintain.
24348
24349         * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
24350         is now implemented by the new subprogram Fill_Secondary_DT_Entry.
24351         (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
24352         appropriate entry of the secondary dispatch table.
24353         (Make_DT): Add code to inherit the secondary dispatch tables of
24354         the ancestors.
24355
24356         * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
24357         implementing both functionalities by means of a common routine, each
24358         routine has its own code.
24359
24360 2005-07-07  Javier Miranda  <miranda@adacore.com>
24361
24362         * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
24363
24364         * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
24365         types:
24366         --
24367           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
24368         --
24369
24370         * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
24371         use of tag incomplete types.
24372
24373         * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
24374         give support to tagged incomplete types.
24375
24376         * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
24377         expression is a discriminant reference and its type is private, as can
24378         happen within a stream operation for a mutable record, use the full
24379         view of the type to resolve the case alternatives.
24380         (Analyze_Assignment): Check wrong dereference of incomplete types.
24381
24382         * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
24383         types.
24384
24385         * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
24386         incomplete types.
24387
24388         * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
24389         N_Incomplete_Type_Declaration nodes.
24390
24391         * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
24392         Tag_Present to give support to tagged incomplete types:
24393         --
24394           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
24395         --
24396
24397 2005-07-07  Olivier Hainque  <hainque@adacore.com>
24398
24399         PR ada/22301
24400         * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
24401         definitions for the Unwind wrappers in the compiler case.
24402
24403 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
24404             Javier Miranda  <miranda@adacore.com>
24405
24406         * par-load.adb (Load): If a child unit is loaded through a limited_with
24407         clause, each parent must be loaded as a limited unit as well.
24408
24409         * sem_ch10.adb (Previous_Withed_Unit): Better name for
24410         Check_Withed_Unit. Return true if there is a previous with_clause for
24411         this unit, whether limited or not.
24412         (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
24413         the current unit.
24414         (Is_Visible_Through_Renamings): New local subprogram of install_limited
24415         _withed_unit that checks if some package installed through normal with
24416         clauses has a renaming declaration of package whose limited-view is
24417         ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
24418         of the current Draft document for Ada 2005.
24419         (Analyze_Context): Complete the list of compilation units that
24420         are allowed to contain limited-with clauses. It also contains
24421         checks that were previously done by Install_Limited_Context_Clauses.
24422         This makes the code more clear and easy to maintain.
24423         (Expand_Limited_With_Clause) It is now a local subprogram of
24424         Install_Limited_Context_Clauses, and contains the code that adds
24425         the implicit limited-with clauses for parents of child units.
24426         This functionality was prevously done by Analyze_Context.
24427
24428         * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
24429         incomplete type.
24430
24431         * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
24432         been erroneously named in a limited-with clause of its own context.
24433         In this case the error has been previously notified by Analyze_Context.
24434
24435 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
24436
24437         * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
24438         generic package that contains local declarations with the same name.
24439         (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
24440
24441 2005-07-07  Bernard Banner  <banner@adacore.com>
24442
24443         * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
24444         ia64 platform only on platforms that you the GCC unwind library
24445         rather than the system unwind library.
24446
24447 2005-07-07  Thomas Quinot  <quinot@adacore.com>
24448
24449         * expect.c: Minor reformatting
24450
24451 2005-07-07  Sergey Rybin  <rybin@adacore.com>
24452
24453         * vms_data.ads: Add VMS qualifiers for new gnatpp switch
24454         --no-separate-is
24455
24456         * gnat_ugn.texi: Add description for new gnatpp option
24457         (--no-separate-is)
24458
24459 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24460
24461         * g-expect-vms.adb, g-expect.ads, g-expect.adb
24462         (Get_Command_Output): New subprogram to launch a process and get its
24463         standard output as a string.
24464
24465 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
24466             Olivier Hainque  <hainque@adacore.com>
24467
24468         * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
24469         fetch a code-range descriptor associated with the machine state. On
24470         failure set the machine state's PC to 0; on success, pass the
24471         descriptor to exc_virtual_unwind.
24472
24473         * init.c (Tru64 section): New function __gnat_set_code_loc.
24474
24475 2005-07-04  Vincent Celier  <celier@adacore.com>
24476
24477         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24478         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
24479         mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
24480         Remove all auto-initialization code, as this is now done through the
24481         constructor mechanism.
24482
24483         * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
24484         __gnat_sals_init_using_constructors): New functions.
24485
24486         * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
24487         Linker_Constructor and Linker_Destructor when switch -a is used.
24488
24489         * bindusg.adb: Add line for new switch -a
24490
24491         * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
24492         (Gnatbind): When switch -a is used, check if it is allowed
24493
24494         * switch-b.adb (Scan_Binder_Switches): Process new switch -a
24495
24496 2005-07-04  Joel Brobecker  <brobecker@adacore.com>
24497
24498         * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
24499         This prevents us from hitting a limitation during the debug info
24500         generation when using stabs.
24501         (Prims_Ptr): Likewise.
24502
24503 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
24504             Ed Schonberg  <schonberg@adacore.com>
24505             Javier Miranda  <miranda@adacore.com>
24506
24507         * checks.adb (Null_Exclusion_Static_Checks): In the case of
24508         N_Object_Declaration, only perform the checks if the Object_Definition
24509         is not an Access_Definition.
24510
24511         * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
24512         where the parent of an the access definition is an N_Object_Declaration
24513         when determining the Associated_Node_For_Itype and scope of an
24514         anonymous access-to-subprogram type.
24515
24516         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
24517         Corresponding_Spec on the body created for a null procedure. Add ???
24518         comment. Remove New_Copy_Tree call on body argument to
24519         Set_Body_To_Inline.
24520
24521         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
24522         discriminants, use the type of the actual as well, because the
24523         discriminants may be read by the called subprogram.
24524
24525         * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
24526         access type we do not need to handle non-limited views.
24527         (Build_Derived_Record_Type): Additional check to check that in case of
24528         private types, interfaces are only allowed in private extensions.
24529
24530 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
24531
24532         * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
24533         <Pragma_Linker_Destructor>: Likewise.
24534
24535         * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
24536         Pragma_Linker_Destructor.
24537
24538         * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
24539         ATTR_LINK_DESTRUCTOR.
24540         (static_ctors, static_dtors): New variables.
24541
24542         * misc.c (gnat_expand_body): Output current function as constructor
24543         and destructor if requested.
24544
24545         * par-prag.adb: Add processing for pragma Linker_Constructor and
24546         Linker_Destructor.
24547
24548         * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
24549         extracted from Check_Interrupt_Or_Attach_Handler.
24550         (Check_Interrupt_Or_Attach_Handler): Invoke it.
24551         Implement pragma Linker_Constructor and Linker_Destructor with the
24552         help of Find_Unique_Parameterless_Procedure.
24553         Replace Name_Alias with Name_Target for pragma Linker_Alias.
24554
24555         * snames.h, snames.ads, snames.adb:
24556         Add Name_Linker_Constructor and Name_Linker_Destructor.
24557         Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
24558         * snames.adb: Remove Name_Alias.
24559
24560         * trans.c: Include cgraph.h.
24561         (build_global_cdtor): New function.
24562         (Compilation_Unit_to_gnu): Build global constructor and destructor if
24563         needed.
24564         (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
24565         of objects too.
24566         (addressable_p) <COMPONENT_REF>: Unconditionally test
24567         DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
24568
24569         * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
24570         variable if it is external.
24571
24572         (static_ctors, static_dtors): New global variables.
24573         (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
24574         <ATTR_LINK_DESTRUCTOR>: Likewise.
24575         (end_subprog_body): Chain function as constructor and destructor
24576         if requested.
24577
24578         * exp_util.adb (Force_Evaluation): Unconditionally invoke
24579         Remove_Side_Effects with Variable_Ref set to true.
24580         (Remove_Side_Effects): Handle scalar types first. Use a renaming
24581         for non-scalar types even if Variable_Ref is true and for class-wide
24582         expressions.
24583
24584 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24585
24586         * exp_attr.adb (Mod): Evaluate condition expression with checks off,
24587         to prevent spurious warnings.
24588
24589 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24590
24591         * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
24592         Itypes. Itypes are really unexpected there.
24593         (Build_TypeCode_Function): Generalise special processing for Itypes to
24594         handle the case of numeric implicit base types as well as enumerated
24595         ones.
24596
24597 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24598
24599         * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
24600         controlled, indicate the expected type of the dereference that is
24601         created for the call to Deep_Finalize, to prevent spurious errors when
24602         the designated type is private and completed with a derivation from
24603         another private type.
24604
24605 2005-07-04  Vincent Celier  <celier@adacore.com>
24606
24607         * make.adb (Change_To_Object_Directory): When unable to change the
24608         current dir to the object directory, output the full path of the
24609         directory.
24610
24611 2005-07-04  Matthew Gingell  <gingell@adacore.com>
24612
24613         * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
24614
24615         * indepsw-linux.adb: Replace by...
24616
24617         * indepsw-gnu.adb: ...this new file
24618
24619 2005-07-04  Vincent Celier  <celier@adacore.com>
24620
24621         * mlib-prj.adb (Auto_Initialize): New constant String
24622         (SALs_Use_Constructors): New Boolean function
24623         (Build_Library): Call gnatbind with Auto_Initialize switch when
24624         SALs_Use_Constructors returns True.
24625
24626         * mlib-tgt.ads: Minor reformatting
24627
24628         * mlib-utl.ads: Minor reformatting
24629
24630         * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
24631
24632 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24633
24634         * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
24635         single protected declarations can have an interface list.
24636         (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
24637         with seriously malformed entry declarations, and lead to compilation
24638         abandoned messages.
24639
24640 2005-07-04  Javier Miranda  <miranda@adacore.com>
24641
24642         * par-load.adb: Load the context items in two rounds.
24643
24644 2005-07-04  Robert Dewar  <dewar@adacore.com>
24645
24646         * scng.adb: Do not consider Mod used as an attribute to be a keyword
24647
24648 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24649             Javier Miranda  <miranda@adacore.com>
24650
24651         * sem_ch10.adb (Build_Limited_Views): A type declared with a private
24652         type extension needs a limited view.
24653         Remove previous restriction on private types available through the
24654         limited-view (only tagged private types were previously allowed).
24655         (Install_Withed_Unit): In the code that implements the
24656         legality rule given in AI-377, exclude a child unit with the name
24657         Standard, because it is a homonym of the Standard environment package.
24658
24659 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24660
24661         * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
24662         overloaded function call, carry interpretations from the original tree
24663         to the copy.
24664
24665 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24666
24667         * sem_ch6.adb (Conforming_Types): If the types are anonymous access
24668         types check whether some designated type is a limited view, and use
24669         the non-limited view if available.
24670
24671 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
24672
24673         * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
24674         constraint of full view of a private view T1 if present, when T2 is a
24675         discriminated full view.
24676
24677 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24678
24679         * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
24680         actual that is a view conversion of a bit packed array reference.
24681
24682 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24683
24684         * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
24685         present before checking whether an interface type covers a synchronized
24686         type.
24687
24688 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24689
24690         * sem_util.adb (Is_Object_Reference): An indexed or selected component
24691         whose prefix is an implicit dereference is an object reference. Removes
24692         spurious errors when compiling with -gnatc.
24693
24694 2005-07-04  Robert Dewar  <dewar@adacore.com>
24695
24696         PR ada/22039
24697         * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
24698
24699 2005-07-04  Matthew Gingell  <gingell@adacore.com>
24700
24701         * tracebak.c: Enable tracebacks on ia64 platforms
24702
24703 2005-07-04  Vincent Celier  <celier@adacore.com>
24704
24705         * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
24706         the GNAT BIND command, as gnatbind accepts multiples ALI files with
24707         the -L or -n switches.
24708
24709 2005-07-04  Vincent Celier  <celier@adacore.com>
24710
24711         * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
24712         correctly computed and the main project data is not modified while
24713         doing so.
24714         (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
24715         (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
24716         c++linker as this does not work on some platforms.
24717
24718 2005-07-04  Matthew Heaney  <heaney@adacore.com>
24719
24720         * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
24721         was changed.
24722         * a-coinve.adb: Perform constraint checks explicitly.
24723
24724 2005-07-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24725             Thomas Quinot  <quinot@adacore.com>
24726
24727         * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
24728         new target gen-soccon.
24729
24730 2005-07-04  Robert Dewar  <dewar@adacore.com>
24731
24732         * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
24733
24734 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24735
24736         * g-socket.ads (Check_Selector): Minor rewording of comment.
24737
24738 2005-07-04  Vincent Celier  <celier@adacore.com>
24739
24740         * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
24741
24742 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24743
24744         * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
24745
24746 2005-07-04  Sergey Rybin  <rybin@adacore.com>
24747
24748         * gnat_ugn.texi: Add description of --eol gnatpp option
24749
24750 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
24751             Thomas Quinot  <quinot@adacore.com>
24752
24753         * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
24754         if the user wants all calls of a subprogram to be flagged,
24755         independently of whether they are made from within the same unit or
24756         another unit.
24757         Mention restriction for pragma Linker_Alias on some platforms.
24758         Document pragma Linker_Constructor and Linker_Destructor.
24759         Rewrite documentation of Weak_External, Linker_Section and
24760         Linker_Alias pragmas.
24761
24762 2005-07-04  Arnaud Charlet  <charlet@adacore.com>
24763
24764         * s-stausa.ads, s-stausa.adb: New files.
24765
24766 2005-06-30  Kelley Cook
24767
24768         * all files:  Update FSF address in copyright headers.
24769         * gen-soccon.co (main): Output new FSF address in generated files.
24770
24771 2005-06-28  Paul Brook  <paul@codesourcery.com>
24772
24773         * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
24774
24775 2005-06-14  Olivier Hainque  <hainque@adacore.com>
24776             Eric Botcazou  <ebotcazou@adacore.com>
24777
24778         * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
24779         exc_unwind, now that we are generating proper .debug_frame output for
24780         that target.
24781
24782         * tracebak.c: Remove the mips-irix section, as we are now using the
24783         s-mastop based unwinder again.
24784         Under SPARC/Solaris, take into account the stack bias to compute the
24785         frame offset.  The stack bias is 0 for the V8 ABI and 2047 for the V9
24786         ABI.
24787
24788 2005-06-14  Doug Rupp  <rupp@adacore.com>
24789
24790         * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
24791
24792         * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
24793
24794 2005-06-14  Pascal Obry  <obry@adacore.com>
24795
24796         * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
24797         a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
24798         a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
24799         package name).
24800
24801         * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
24802         a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
24803         a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
24804         a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
24805         a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
24806         a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
24807         a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
24808         s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
24809         s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
24810         s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
24811         s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
24812         s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
24813         s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
24814         s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
24815         s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
24816         s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
24817         s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
24818         s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
24819         s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
24820         s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
24821         s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
24822         s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
24823         s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
24824         s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
24825         s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
24826         s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
24827         s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
24828         s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
24829         s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
24830         s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
24831         a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
24832         a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
24833         a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
24834         a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
24835         a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
24836         a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
24837         a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
24838         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
24839         a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
24840         a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
24841         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
24842         a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
24843         a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
24844         a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
24845         a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
24846         a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
24847         a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
24848         a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
24849         a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
24850         a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
24851         a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
24852         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
24853         a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
24854         a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
24855         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
24856         a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
24857         a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
24858         dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
24859         g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
24860         g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
24861         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
24862         g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
24863         g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
24864         gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
24865         g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
24866         i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
24867         s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
24868         s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
24869         s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
24870         s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
24871         s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
24872         s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
24873         s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
24874         s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
24875         s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
24876         s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
24877         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
24878         s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
24879         s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
24880         s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
24881         s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
24882         s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
24883         s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
24884         s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
24885         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
24886         s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
24887         s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
24888         s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
24889         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
24890         s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
24891         s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
24892         s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
24893         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
24894         s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
24895         s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
24896         s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
24897         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
24898         s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
24899         s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
24900         s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
24901         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
24902         s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
24903         s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
24904         s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
24905         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
24906         s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
24907         s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
24908         s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
24909         s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
24910         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
24911         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
24912         s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
24913         s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
24914         s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
24915         s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
24916         s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
24917         s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
24918         s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
24919         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
24920         s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
24921         s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
24922         s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
24923         s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
24924         a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
24925         a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
24926         a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
24927         a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
24928         a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
24929         a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
24930         a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
24931         a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
24932         a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
24933         "GNU Ada" to GNAT, use proper casing for RUN-TIME.
24934
24935 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
24936             Arnaud Charlet  <charlet@adacore.com>
24937
24938         * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
24939         longer protected objects. They have been replaced by lower-level
24940         suspension objects made up by a mutex and a condition variable (or
24941         their equivalent given a particular OS) plus some internal data to
24942         reflect the state of the suspension object.
24943         (Initialize, Finalize): Add this initialization procedure for
24944         Suspension_Object, which is a controlled type.
24945         (Finalize): Add the finalization procedure for Suspension_Object,
24946         which is a controlled type.
24947
24948         * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
24949         Ada.Synchronous_Task_Control because there is no longer a need for a
24950         VxWorks specific version of this package. Target dependencies
24951         has been moved to System.Task_Primitives.Operations.
24952
24953         * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
24954         longer needed.
24955         (InitializeCriticalSection, EnterCriticalSection,
24956         LeaveCriticalSection, DeleteCriticalSection): Replace the type
24957         pCriticalSection by an anonymous access type so that we avoid problems
24958         of accessibility to local objects.
24959
24960         * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
24961         s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
24962         s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
24963         s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
24964         s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
24965         set the environment task mask here.
24966         (Current_State): Add this function that returns the state of the
24967         suspension object.
24968         (Set_False): Add this procedure that sets the state of the suspension
24969         object to False.
24970         (Set_True): Add this procedure that sets the state of the suspension
24971         object to True, releasing the task that was suspended, if any.
24972         (Suspend_Until_True): Add this procedure that blocks the calling task
24973         until the state of the object is True. Program_Error is raised if
24974         another task is already waiting on that suspension object.
24975         (Initialize): Add this procedure for initializing the suspension
24976         object. It initializes the mutex and the condition variable which are
24977         used for synchronization and queuing, and it sets the internal state
24978         to False.
24979         (Finalize): Add this procedure for finalizing the suspension object,
24980         destroying the mutex and the condition variable.
24981
24982         * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
24983         s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
24984         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
24985         s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
24986         which provides a low-level abstraction (using operating system
24987         primitives) for Ada.Synchronous_Task_Control.
24988         This object is made up by a mutex (for ensuring mutual exclusion), a
24989         condition variable (for queuing threads until the condition is
24990         signaled), a Boolean (State) indicating whether the object is open,
24991         and a Boolean (Waiting) reflecting whether there is a task already
24992         suspended on this object.
24993
24994         * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
24995         s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
24996         s-intman-vms.ads, s-intman-mingw.adb,
24997         (Initialize_Interrupts): Removed, no longer used.
24998
24999         * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
25000         (Setup_Interrupt_Mask): New procedure.
25001
25002         * s-intman-vxworks.ads, s-intman-vxworks.adb:  Update comments.
25003
25004         * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
25005
25006         * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
25007         this is no longer done in the body of s-taprop
25008         (Server_Task): Explicitely test for Pending_Action in case
25009         System.Parameters.No_Abort is True.
25010
25011         * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
25012         is no longer done in the body of s-taprop
25013
25014 2005-06-14  Robert Dewar  <dewar@adacore.com>
25015
25016         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
25017         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
25018         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
25019         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
25020         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
25021         system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
25022         system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
25023         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
25024         system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
25025         system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
25026         system-linux-hppa.ads, system-vms_64.ads,
25027         system-vxworks-alpha.ads: Minor comment update for
25028         AI-362 (unit is Pure).
25029
25030         * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
25031         Add pragma Pure_05 for AI-362
25032         Make remaining conversion functions obsolescent in Ada 95
25033
25034         * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
25035         Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
25036         Add entries for a-wichun and a-zchuni
25037         Add a-widcha a-zchara for AI-395
25038         Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
25039
25040         * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
25041         Add entries for a-wichun.o and a-zchuni.o
25042         Entries for a-widcha.o and a-zchara.o
25043         Add entry for a-chacon.o
25044
25045         * a-ztenau.adb: Add with of Ada.Characters.Conversions
25046
25047         * a-chacon.ads, a-chacon.adb: New files.
25048
25049         * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
25050         categorization violations.
25051
25052         * a-strmap.ads: Add pragma Pure_05 for AI-362
25053         * a-strmap.ads: Add note on implicit categorization for AI-362
25054
25055         * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
25056
25057         * par-prag.adb: Dummy entry for pragma Persistent_BSS
25058         Set Ada_Version_Explicit, for implementation of AI-362
25059         Add processing for pragma Pure_05 and Preelaborate_05
25060         Add entry for Assertion_Policy pragma
25061
25062         * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
25063         when needed for proper processing of categorization stuff
25064
25065         * sem_cat.adb:
25066         For several cases, make errors in preealborate units warnings,
25067         instead of errors, if GNAT_Mode is set. For AI-362.
25068
25069         * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
25070         preelaborate unit is now warning if in GNAT mode
25071
25072         * s-stoele.ads: Document AI-362 for pragma preelaborate
25073
25074 2005-06-14  Doug Rupp  <rupp@adacore.com>
25075
25076         * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
25077         s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
25078         Default_Exception_Msg_Max_Length: new parameter.
25079
25080         * a-except.ads: (Exception_Msg_Max_Length): Set to
25081         System.Parameters.Default_Exception_Msg_Max_Length
25082         Add pragma Preelaborate_05 for AI-362
25083         Add warnings off to allow categorization violations for AI-362
25084
25085 2005-06-14  Vincent Celier  <celier@adacore.com>
25086
25087         * gnatsym.adb: Adapt to modification of package Symbols: procedure
25088         Process is now in package Processing.
25089
25090         * symbols.ads, symbols.adb:
25091         (Processing): New package, containing procedure Process
25092
25093         * symbols-vms-alpha.adb:
25094         Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
25095
25096         * symbols-vms.adb, symbols-processing-vms-alpha.adb,
25097         symbols-processing-vms-ia64.adb: New files.
25098
25099 2005-06-14  Pascal Obry  <obry@adacore.com>
25100
25101         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
25102         implementation. This new version generates the proper DllMain routine
25103         to initialize the SAL. The DllMain is generated in Ada and compiled
25104         before being added as option to the library build command.
25105
25106 2005-06-14  Doug Rupp  <rupp@adacore.com>
25107             Pascal Obry  <obry@adacore.com>
25108
25109         * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
25110         call to decc$translate_vms.
25111         (__gnat_locate_regular_file): Check if the path_val contains quotes. We
25112         need to remove those quotes before catenating the filename.
25113         (__gnat_locate_exec_on_path): improvements to the Win32 section:
25114         * avoid allocating the memory twice for better efficiency;
25115         * allocate 32K buffer for environment expansion as suggested by MSDN;
25116         * prepend ".;" to the path so that current directory is searched too.
25117
25118 2005-06-14  Robert Dewar  <dewar@adacore.com>
25119
25120         * a-except.adb (Exception_Identity): return Null_Id for null occurrence
25121         instead of raising CE (AI-241)
25122         Add warnings off to allow categorization violations for AI-362
25123
25124 2005-06-14  Robert Dewar  <dewar@adacore.com>
25125
25126         * ali-util.adb, gnatbind.adb: Remove references to
25127         Force_RM_Elaboration_Order.
25128
25129         * switch-b.adb: Remove recognition of -f switch
25130
25131 2005-06-14  Pascal Obry  <obry@adacore.com>
25132
25133         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
25134         implementation which is slightly more efficient.
25135
25136 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
25137             Javier Miranda  <miranda@adacore.com>
25138             Ed Schonberg  <schonberg@adacore.com>
25139             Hristian Kirtchev  <kirtchev@adacore.com>
25140
25141         * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
25142         allocator's designated type is a class-wide type, and compiling for
25143         Ada 2005, emit a run-time check that the accessibility level of the
25144         type given in the allocator's expression is not deeper than the level
25145         of the allocator's access type.
25146
25147         (Tagged_Membership): Modified to gives support to abstract interface
25148         types.
25149
25150         * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
25151         Access_Level.
25152         (Descendant_Tag): New predefined function
25153         (Is_Descendant_At_Same_Level): New predefined function
25154         (Get_Access_Level): New private function
25155         (Set_Access_Level): New private procedure
25156         (IW_Membership): New function. Given the tag of an object and the tag
25157         associated with an interface, evaluate if the object implements the
25158         interface.
25159         (Register_Interface_Tag): New procedure used to initialize the table of
25160         interfaces used by the IW_Membership function.
25161         (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
25162         of the dispatch table.
25163         (Inherit_TSD): Modified to copy the table of ancestor tags plus the
25164         table of interfaces of the parent.
25165         (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
25166         (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
25167         (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
25168         and raise Tag_Error if the passed tag equalis No_Tag, to conform with
25169         Ada 2005 semantics for the new predefined function.
25170
25171         * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
25172         call to Descendant_Tag rather than Internal_Tag.
25173         (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
25174         the accessibility level of the attribute's Item parameter is not deeper
25175         than the level of the attribute's prefix type. Tag_Error is raised if
25176         the check fails. The check is only emitted for Ada_05.
25177         (Find_Stream_Subprogram): If a TSS exists on the type itself for the
25178         requested stream attribute, use it.
25179         (Expand_N_Attribute_Reference): If the designated type is an interface
25180         then rewrite the referenced object as a conversion to force the
25181         displacement of the pointer to the secondary dispatch table.
25182         (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
25183         is a dereference of an object with a constrained partial view.
25184
25185         * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
25186         type is a class-wide type, emit a run-time check that the accessibility
25187         level of the returned object is not deeper than the level of the
25188         function's master (only when compiling for Ada 2005).
25189
25190         * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
25191         Action_Nb_Arg): Add entries for new Get_Access_Level and
25192         Set_Access_Level routines in these tables.
25193         (Make_DT): Generate a call to set the accessibility level of the
25194         tagged type in its TSD.
25195         (Make_DT): Code cleanup. The functionality of generating all the
25196         secondary dispatch tables has been moved to freeze_record_type.
25197         (Make_Abstract_Interface_DT): Minor code cleanup.
25198         (Set_All_DT_Position): Code cleanup. As part of the code cleanup
25199         this subprogram implements a new algorithm that provides the
25200         same functionality and it is more clear in case of primitives
25201         associated with abstract interfaces.
25202         (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
25203         clean up, the functionality of this subprogram is now provided
25204         by Set_All_DT_Position.
25205         (Write_DT): New subprogram: a debugging procedure designed to be called
25206         within gdb to display the dispatch tables associated with a tagged
25207         type.
25208         (Collect_All_Interfaces): New subprogram that collects the whole list
25209         of interfaces that are directly or indirectly implemented by a tagged
25210         type.
25211         (Default_Prim_Op_Position): New subprogram that returns the fixed
25212         position in the dispatch table of the default primitive operations.
25213         (Expand_Interface_Actuals): New subprogram to generate code that
25214         displaces all the actuals corresponding to class-wide interfaces to
25215         reference the interface tag of the actual object.
25216         (Expand_Interface_Conversion): New subprogram. Reference the base of
25217         the object to give access to the interface tag associated with the
25218         secondary dispatch table.
25219         (Expand_Interface_Thunk): New subprogram that generates the code of the
25220         thunk. This is required for compatibility with the C+ ABI.
25221         (Make_Abstract_Interface_DT): New subprogram that generate the
25222         declarations for the secondary dispatch tables associated with an
25223         abstract interface.
25224         (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
25225         attribute for each primitive operation covering interface subprograms
25226         (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
25227         These subprograms were upgraded to give support to abstract interfaces
25228
25229         * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
25230         RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
25231         RE_Set_Access_Level.
25232         (RE_Unit_Table): Add entries for new Ada.Tags operations.
25233         Add support to call the followig new run-time subprograms:
25234         IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
25235
25236         * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
25237         match its full declaration when both have an access definition with
25238         statically matching designated subtypes.
25239         (Analyze_Component_Declaration): Delete commented out code that was
25240         incorrectly setting the scope of an anonymous access component's type.
25241         (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
25242         an access discriminant when the containing type is nonlimited.
25243         (Make_Incomplete_Type_Declaration): Create an incomplete type
25244         declaration for a record type that includes self-referential access
25245         components.
25246         (Check_Anonymous_Access_Types): Before full analysis of a record type
25247         declaration, create anonymous access types for each self-referential
25248         access component.
25249         (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
25250         an access component in this context is a Local_Anonymous_Access, for
25251         proper accessibility checks.
25252         (Access_Definition): Set properly the scope of the anonymous access type
25253         created for a stand-alone access object.
25254         (Find_Type_Of_Object): An object declaration may be given with an access
25255         definition.
25256         (Complete_Subprograms_Derivation): New subprogram used to complete
25257         type derivation of private tagged types implementing interfaces.
25258         In this case some interface primitives may have been overriden
25259         with the partial-view and, instead of re-calculating them, they
25260         are included in the list of primitive operations of the full-view.
25261         (Build_Derived_Record_Type): Modified to give support to private
25262         types implemening interfaces.
25263         (Access_Definition): Reject ALL on anonymous access types.
25264         (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
25265         type derivation to occur at a deeper accessibility level than the
25266         parent type.
25267         For the case of derivation within a generic body however, disallow the
25268         derivation if the derived type has an ancestor that is a formal type
25269         declared in the formal part of an enclosing generic.
25270         (Analyze_Object_Declaration): For protected objects, remove the check
25271         that they cannot contain interrupt handlers if not declared at library
25272         level.
25273         (Add_Interface_Tag_Components): New subprogram to add the tag components
25274         corresponding to all the abstract interface types implemented by a
25275         record type or a derived record type.
25276         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
25277         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
25278         Process_Full_View, Record_Type_Declaration): Modified to give
25279         support to abstract interface types
25280         (Collect_Interfaces): New subprogram that collects the list of
25281         interfaces that are not already implemented by the ancestors
25282         (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
25283         when partial view has no discriminants and full view has defaults.
25284         (Constrain_Access): Reject a constraint on a general access type
25285         if the discriminants of the designated type have defaults.
25286         (Access_Subprogram_Declaration): Associate the Itype node with the inner
25287         full-type declaration or subprogram spec. This is required to handle
25288         nested anonymous declarations.
25289         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
25290         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
25291         Process_Full_View, Record_Type_Declaration): Modified to give
25292         support to abstract interface types
25293         (Derive_Subprograms): Addition of a new formal to indicate if
25294         we are in the case of an abstact-interface derivation
25295         (Find_Type_Of_Subtype_Indic): Moved from the body of the package
25296         to the specification because it is requied to analyze all the
25297         identifiers found in a list of interfaces
25298
25299         * debug.adb: Complete documentation of flag "-gnatdZ"
25300
25301         * exp_ch3.adb: Implement config version of persistent_bss pragma
25302         (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
25303         testing for TSS presence to properly enforce visibility rules.
25304         (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
25305         Make_Abstract_Interfaces_DT to generate the secondary tables
25306         associated with abstract interfaces.
25307         (Build_Init_Procedure): Modified to initialize all the tags
25308         corresponding.
25309         (Component_Needs_Simple_Initialization): Similar to other tags,
25310         interface tags do not need initialization.
25311         (Freeze_Record_Type): Modified to give support to abstract interface
25312         types.
25313         (Expand_N_Object_Declaration): Do not generate an initialization for
25314         a scalar temporary marked as internal.
25315
25316         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
25317         in-out parameter that is a component in an initialization procedure,
25318         whose constraint might depend on discriminants, and that may be
25319         misaligned because of packing or representation clauses.
25320         (Is_Legal_Copy): New predicate to determine whether a possibly
25321         misaligned in-out actual can actually be passed by copy/return. This
25322         is an error in case the type is by_reference, and a warning if this is
25323         the consequence of a DEC import pragma on the subprogram.
25324         (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
25325         interface types
25326         (Expand_Inlined_Call): Mark temporary generated for the return value as
25327         internal, so that no useless scalar normalization is generated for it.
25328         (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
25329         null procedure can always be inlined.
25330         (Expand_N_Subprogram_Declaration): If this is the declaration of a null
25331         procedure, generate an explicit empty body for it.
25332
25333         * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
25334         Given a type implementing an interface, returns the corresponding
25335         access_disp_table value.
25336         (Find_Interface_Tag): New subprogram. Given a type implementing an
25337         interface, returns the record component containing the tag of the
25338         interface.
25339         (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
25340         previous ones that return the corresponding tag and access_disp_table
25341         entities.
25342         (Is_Predefined_Dispatching_Operation): Determines if a subprogram
25343         is a predefined primitive operation.
25344         (Expand_Subtype_From_Expr): If the expression is a selected component
25345         within an initialization procedure, compute its actual subtype, because
25346         the component may depend on the discriminants of the enclosing record.
25347
25348         * i-cpp.ads, i-cpp.adb:
25349         This package has been left available for compatibility with previous
25350         versions of the frontend. As part of the new layout this is now a
25351         dummy package that uses declarations available at a-tags.ads
25352
25353         * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
25354         "constant access" and "aliased [constant] access" when not compiling
25355         with -gnat05.
25356         Suppress Ada 2005 keyword warning if -gnatwY used
25357         (P_Identifier_Declarations): Add support for object declarations with
25358         access definitions.
25359         (Private_Extension_Declaration): Complete the documentation
25360         (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
25361         attribute in case of private extension declaration
25362         (P_Type_Declaration): Mark as "abstract" the type declarations
25363         corresponding with protected, synchronized and task interfaces
25364         (P_Declarative_Items): "not" and "overriding" are overriding indicators
25365         for a subprogram or instance declaration.
25366
25367         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
25368         instantiation that is a dispatching operation has controlling access
25369         parameters that are null excluding.
25370         Save and restore Ada_Version_Explicit, for implementation of AI-362
25371         (Validate_Derived_Type_Instance): Add check for abstract interface
25372         types.
25373         (Analyze_Formal_Package): Establish Instantiation source for the copy of
25374         the generic that is created to represent the formal package.
25375         (Analyze_Package_Instantiation): Instantiate body immediately if the
25376         package is a predefined unit that contains inlined subprograms, and
25377         we are compiling for a Configurable_Run_Time.
25378         (Instantiate_Formal_Subprogram): Indicate that null default subprogram
25379         If the program has a null default, generate an empty body for it.
25380
25381         * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
25382         error message condition, null procedures are correctly detected now.
25383         (New_Overloaded_Entity): Bypass trivial overriding indicator check
25384         for subprograms in the context of protected types. Instead, the
25385         indicator is examined in Sem_Ch9 while analysing the subprogram
25386         declaration.
25387         (Check_Overriding_Indicator): Check consistency of overriding indicator
25388         on subprogram stubs as well.
25389         (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
25390         the library level.
25391         (Analize_Subprogram_Specification): When analyzing a subprogram in which
25392         the type of the first formal is a concurrent type, replace this type
25393         by the corresponding record type.
25394         (Analyze_Subprogram_Body): Undo the previous work.
25395         (Analyze_Procedure_Call): If the call has the form Object.Op, the
25396         analysis of the prefix ends up analyzing the call itself, after which
25397         we are done.
25398         (Has_Interface_Formals): New subprogram subsidiary to analyze
25399         subprogram_specification that returns true if some non
25400         class-wide interface subprogram is found
25401         (New_Overloaded_Entity): Modified to give support to abstract
25402         interface types
25403         (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
25404         access to subprograms must be recursive.
25405         (Is_Unchecked_Conversion): Improve the test that recognizes
25406         instantiations of Unchecked_Conversion, and allows them in bodies that
25407         are to be inlined by the front-end. When the body comes from an
25408         instantiation, a reference to Unchecked_Conversion will be an
25409         Expanded_Name, even though the body has not been analyzed yet.
25410         Replace Is_Overriding and Not_Overriding in subprogram_indication with
25411         Must_Override and Must_Not_Override, to better express intent of AI.
25412         (Analyze_Subprogram_Body): If an overriding indicator is given, check
25413         that it is consistent with the overrinding status of the subprogram
25414         at this point.
25415         (Analyze_Subprogram_Declaration): Indicate that a null procedure is
25416         always inlined.
25417         If the subprogram is a null procedure, indicate that it does not need
25418         a completion.
25419
25420         * sem_disp.adb (Check_Controlling_Type): Give support to entities
25421         available through limited-with clauses.
25422         (Check_Dispatching_Operation): A stub acts like a body, and therefore is
25423         allowed as the last primitive of a tagged type if it has no previous
25424         spec.
25425         (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
25426         to give support to abstract interface types
25427
25428         * sem_res.adb (Valid_Conversion): Perform an accessibility level check
25429         in the case where the target type is an anonymous access type of an
25430         object or component (that is, when Is_Local_Anonymous_Access is true).
25431         Prevent the special checks for conversions of access discriminants in
25432         the case where the discriminant belongs to a nonlimited type, since
25433         such discriminants have their accessibility level defined in the same
25434         way as a normal component of an anonymous access type.
25435         (Resolve_Allocator): When an allocator's designated type is a class-wide
25436         type, check that the accessibility level of type given in the
25437         allocator's expression or subtype indication is not statically deeper
25438         than the level of the allocator's access type.
25439         (Check_Discriminant_Use): Diagnose discriminant given by an expanded
25440         name in a discriminant constraint of a record component.
25441         (Resolve_Explicit_Dereference): Do not check whether the type is
25442         incomplete when the dereference is a use of an access discriminant in
25443         an initialization procedure.
25444         (Resolve_Type_Conversion): Handle conversions to abstract interface
25445         types.
25446         (Valid_Tagged_Conversion): The conversion of a tagged type to an
25447         abstract interface type is always valid.
25448         (Valid_Conversion): Modified to give support to abstract interface types
25449         (Resolve_Actuals): Enable full error reporting on view conversions
25450         between unrelated by_reference array types.
25451         The rule for view conversions of arrays with aliased components is
25452         weakened in Ada 2005.
25453         Call to obsolescent subprogram is now considered to be a violation of
25454         pragma Restrictions (No_Obsolescent_Features).
25455         (Check_Direct_Boolean_Operator): If the boolean operation has been
25456         constant-folded, there is nothing to check.
25457         (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
25458         check on possible violation of restriction No_Direct_Boolean_Operators
25459         until after expansion of operands, to prevent spurious errors when
25460         operation is constant-folded.
25461
25462         * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
25463         Has_Compatible_Type): Modified to give support to abstract interface
25464         types.
25465         (Interface_Present_In_Ancestor): New function to theck if some ancestor
25466         of a given type implements a given interface
25467
25468         * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
25469         prefix is a parameterless function that returns an access_to_procedure.
25470         (Transform_Object_Operation): Handle properly function calls of the
25471         form Obj.Op (X), which prior to analysis appear as indexed components.
25472         (Analyze_One_Call): Complete the error notification to help new Ada
25473         2005 users.
25474         (Analyze_Allocator): For an allocator without an initial value, where
25475         the designated type has a constrained partial view, a discriminant
25476         constraint is illegal.
25477
25478 2005-06-14  Robert Dewar  <dewar@adacore.com>
25479
25480         * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
25481         do with treatment of Set_Col when positioned at end of line character.
25482
25483 2005-06-14  Robert Dewar  <dewar@adacore.com>
25484
25485         * atree.adb: (Elist*): Protect against uninitialized field
25486
25487 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25488
25489         * checks.adb (Install_Null_Excluding_Check): Do not generate checks
25490         for an attribute reference that returns an access type.
25491         (Apply_Discriminant_Check): No need for check if (designated) type has
25492         constrained partial view.
25493
25494         (Apply_Float_Conversion_Check): Generate a short-circuit expression for
25495         both bound checks, rather than a conjunction.
25496         (Insert_Valid_Check): If the expression is an actual that is an indexed
25497         component of a bit-packed array, force expansion of the packed element
25498         reference, because it is specifically inhibited elsewhere.
25499
25500 2005-06-14  Vincent Celier  <celier@adacore.com>
25501
25502         * clean.adb (Clean_Project): Correctly delete executable specified as
25503         absolute path names.
25504
25505         * make.adb (Gnatmake): Allow relative executable path names with
25506         directory information even when project files are used.
25507         (Change_To_Object_Directory): Fail gracefully when unable to change
25508         current working directory to object directory of a project.
25509         (Gnatmake): Remove exception handler that could no longer be exercized
25510         (Compile_Sources.Compile): Use deep copies of arguments, as some of them
25511         may be deallocated by Normalize_Arguments.
25512         (Collect_Arguments): Eliminate empty arguments
25513
25514         * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
25515         and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
25516         (Check_Project): Return False when Project is No_Project. Return True
25517         when All_Projects is True.
25518         (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
25519         All_Projects to True.
25520         Minor reformatting
25521
25522 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25523             Javier Miranda  <miranda@adacore.com>
25524             Thomas Quinot  <quinot@adacore.com>
25525             Robert Dewar  <dewar@adacore.com>
25526             Hristian Kirtchev  <kirtchev@adacore.com>
25527             Gary Dismukes  <dismukes@adacore.com>
25528
25529         * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
25530         anonymous access types, to indicate that the accessibility level of
25531         the type is determined by that of the enclosing declaration.
25532         (Has_Persistent_BSS): New flag
25533         (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
25534         of this attribute with functions.
25535         (Is_Primitive_Wrapper): Remove the barrier.
25536         (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
25537         Has_Specified_Stream_Read, Has_Specified_Stream_Write):
25538         New subprograms.
25539         (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
25540         Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
25541         New subprograms.
25542         (Is_Pure_Unit_Access_Type): New flag
25543         (Abstract_Interfaces): Complete the assertion to cover all usages.
25544         (Set_Is_Interface): Complete the assertion to cover all usages.
25545         (Is_Primitive_Wrapper): New attribute.
25546         (Is_Obsolescent): Now applies to all entities (though it is only set
25547         for subprograms currently)
25548         New flag:  Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
25549         which solves various problems concerning access subtypes.
25550         (Has_Persistent_BSS): New flag
25551         (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
25552         Remove these subprograms because this attribute is currently
25553         not used.
25554         New entity flags:
25555         Has_Specified_Stream_Input (Flag190)
25556         Has_Specified_Stream_Output (Flag191)
25557         Has_Specified_Stream_Read (Flag192)
25558         Has_Specified_Stream_Write (Flag193)
25559         Present in all type and subtype entities. Set for a given view if the
25560         corresponding stream-oriented attribute has been defined by an
25561         attribute definition clause. When such a clause occurs, a TSS is set
25562         on the underlying full view; the flags are used to track visibility of
25563         the attribute definition clause for partial or incomplete views.
25564         (Is_Pure_Unit_Access_Type): New flag
25565         Clarify use of Is_Internal.
25566         (Is_Primitive_Wrapper): New attribute present in primitive subprograms
25567         internally generated to wrap the invocation of tasks and protected
25568         types that implement interfaces.
25569         (Implementation_Base_Type): Documentation correction
25570         (Is_Obsolescent): Now applies to all entities (though it is only set
25571         for subprograms currently)
25572         New flag:  Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
25573         which solves various problems concerning access subtypes.
25574
25575         * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
25576         for examined parameters. Identify unequal parameter list lengths as
25577         non-conformant parameters.
25578         (Overriding_Possible): Do not check for "All" qualifier in declaration
25579         of controlling access parameter, following prescription of AI-404.
25580         (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
25581         that build the procedure body that wraps an entry invocation
25582         (Build_Corresponding_Record, Build_Protected_Sub_Specification,
25583         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
25584         Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
25585         give support to abstract interface types
25586
25587         * freeze.adb (Freeze_Entity): Issue error message if
25588         Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
25589         type has no storage pool (Ada 2005) AI-366.
25590         Also modified to give support to abstract interface types
25591         (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
25592         Inline_Always pragma.
25593
25594         * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
25595         now begin an entry declaration.
25596         (P_Entry_Or_Subprogram_With_Indicator): New procedure in
25597         P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
25598         a subprogram declaration preceded by an overriding indicator.
25599         (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
25600         declarations or subprogram declarations preceded by reserved words
25601         "not" or "overriding".
25602         (P_Entry_Declaration): Update comment. Parse and check overriding
25603         indicator, set semantic flags of entry declarations.
25604         (P_Task): New error message in case of private applied
25605         to a task type declaration.
25606         (P_Protected): New error message in case of private applied
25607         to a task type declaration.
25608
25609         * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
25610         in which the full view of a type implementing an interface is a
25611         concurrent type.
25612         (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
25613         Declare_Inherited_Private_Subprograms): If an explicit operation
25614         overrides an operation that is inherited in the private part, mark the
25615         explicit one as overriding, to enable overriding indicator checks.
25616         (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
25617         full view to partial view, to simplify handling in back-end.
25618
25619         * sprint.adb: Print interface lists where needed: derived types,
25620         protected types, task types.
25621         output "is null" for null procedures. Part of implementation of
25622
25623         * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
25624         relaxation of rules for access types in pure, shared passive partitions.
25625
25626         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
25627         first read discriminants into temporary objects, performing checks on
25628         the read values, then possibly performing discriminant checks on the
25629         actual (if it is constrained), and only finally reading the components
25630         into a constrained temporary object.
25631         (Build_Elementary_Input_Call): Adjust the specific circuitry for the
25632         case of reading discriminants of a mutable record type to recognize
25633         the new form of the code generated by
25634         Build_Mutable_Record_Read_Procedure.
25635
25636         * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
25637         of a simple call to Make_TSS_Name.
25638         (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
25639         buffer, in order for Is_TSS to work correctly on local TSS names.
25640
25641         * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
25642         Is_Local_Anonymous_Access to check legaliy of attributes in the
25643         context of  access components and stand-alone access objects.
25644         (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
25645         treated as available for a limited private type if there is an
25646         attribute_definition_clause that applies to its full view, but not in
25647         other cases where the attribute is available for the full view
25648         (specifically, the sole fact that the full view is non-limited does not
25649         make the attribute available for the partial view).
25650         (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
25651         non-overloaded intrinsic subprogram.
25652         (Check_Stream_Attribute): Reject an attribute reference for an
25653         unavailable stream attribute even if the prefix is not a limited type
25654         (case of a 'Input attribute reference for an abstract, non-classwide
25655         type)
25656         (Stream_Attribute_Available): New function to determine whether a stream
25657         attribute is available at a place.
25658         (Check_Attribute): Use Stream_Attribute_Available instead of just
25659         testing for TSS presence on the implementation base type.
25660         (Analyze_Attribute): Modified to give support to task interfaces.
25661         (Analyze_Access_Attribute): Add error check for use of an Access (or
25662         Unrestricted_Access) attribute with a subprogram marked as
25663         Inline_Always.
25664         (Analyze_Attribute, case Attribute_Address): Add error check for use of
25665         an Address attribute with a subprogram marked as Inline_Always.
25666         Update Eval_Attribute to handle new value of Width from AI-395
25667
25668         * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
25669         (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
25670         Factor common code across the stream-oriented attribute circcuits into
25671         a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
25672         processing is functionally identical to the previous duplicated one,
25673         except that an expression that denotes an abstract subprogram will now
25674         be rejected, as mandated by AI-195 item 5.
25675
25676         * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
25677         Is_Local_Anonymous_Access to apply accessibility checks to access
25678         components and stand-alone access objects.
25679         (Has_Discriminant_Dependent_Constraint): Moved to spec for use
25680         elsewhere.
25681         (Is_Potentially_Persistent_Type): New function
25682         (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
25683         a heap-object whose type has a constrained partial view, the object is
25684         unconstrained and the component may depend on a discriminant, making its
25685         renaming illegal.
25686
25687         * sinfo.ads, sinfo.adb
25688         (Must_Not_Override): Flag applicable to N_Entry_Declaration.
25689         (Must_Override): Flag applicable to N_Entry_Declaration.
25690         Indicate that interface_list can appear in single task and single
25691         protected declarations.
25692         Replace Is_Overriding and Not_Overriding with Must_Override and
25693         Must_Not_Override, to better express intent of AI.
25694         Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
25695         of an overriding indicator in a subprogram or instance.
25696         Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
25697         Add the overriding indicator [[not] overriding] construct to the
25698         following grammar productions:
25699          ENTRY_DECLARATION
25700          GENERIC_INSTANTIATION
25701          SUBPROGRAM_SPECIFICATION
25702
25703         * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
25704         can start with an overriding indicator.
25705
25706         * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
25707         flags accordingly on subrogram specifications or instances.
25708
25709         * sem_ch8.adb:
25710         (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
25711         overriding_indicator, if present, is consistent with status of spec.
25712         Improve error message for null-excluding checks on controlling access
25713         parameters.
25714         (Check_In_Previous_With_Clause): Protect the frontend against
25715         previously reported critical errors in the context clauses.
25716         Save and restore Ada_Version_Explicit, for implementation of AI-362
25717         (Analyze_Subprogram_Renaming): If the new entity is a dispatching
25718         operation verify that controlling formals of the renamed entity that
25719         are access parameters are explicitly non-null.
25720         (Find_Expanded_Name): Improve error message when prefix is an illegal
25721         reference to a private child unit.
25722
25723         * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
25724         s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
25725         Rewrite to correspond to new wide character names in AI-395
25726
25727         * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
25728         default procedures.
25729
25730 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25731             Robert Dewar  <dewar@adacore.com>
25732
25733         * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
25734         code, not on the bodies of predefined operations, to cut down on
25735         spurious noise.
25736
25737 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25738
25739         * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
25740         be expanded in place. The size computation does not require a
25741         subtraction, which would raise an exception on a compiler built with
25742         assertions when the upper bound is Integer'first.
25743         (Flatten): For an array of composite components, take into account the
25744         size of the components to determine whether it is safe to expand the
25745         array into a purely positional representation.
25746
25747 2005-06-14  Thomas Quinot  <quinot@adacore.com>
25748
25749         * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
25750         denoting a formal parameter into account.
25751
25752 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25753
25754         * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
25755         the entry_call alternative of a conditional entry call, wrap the
25756         conditional entry call itself.
25757
25758 2005-06-14  Nicolas Setton  <setton@adacore.com>
25759             Ed Schonberg  <schonberg@adacore.com>
25760
25761         * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
25762         the "simple_choice" member in a variant record, in accordance with the
25763         description in the package spec: the information output for a constant
25764         should be "S number", not "SS number".
25765         (Get_Encoded_Name): Return at once if not generating code. Avoids name
25766         overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
25767
25768 2005-06-14  Thomas Quinot  <quinot@adacore.com>
25769
25770         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
25771         RACW without any primitives, do not generate the if statement for
25772         dispatching by name in the PolyORB/DSA case, as it would be malformed
25773         (it would have an Elsif_Parts list that is not No_List, but with a
25774         length of 0).
25775
25776 2005-06-14  Robert Dewar  <dewar@adacore.com>
25777
25778         * exp_intr.adb, par-ch5.adb: Minor fix to error message text
25779
25780 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
25781
25782         * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
25783         can determine whether pragma Suppress_Exception_Locations is in effect.
25784
25785         * utils2.c (build_call_raise): Do not pass the file name to the
25786         exception handler if pragma Suppress_Exception_Locations is in effect.
25787         (build_allocator): Add and process arg IGNORE_INIT_TYPE.
25788
25789 2005-06-14  Emmanuel Briot  <briot@adacore.com>
25790
25791         * g-debpoo.adb (Deallocate, Dereference): Improve output.
25792
25793 2005-06-14  Nicolas Roche  <roche@adacore.com>
25794
25795         * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
25796         to ""
25797         (Next_Level): Fix minor bug in handling of ../dir case
25798         (Read): Add dir separator to Directory name so that "" is understood as
25799          "/"
25800
25801 2005-06-14  Pascal Obry  <obry@adacore.com>
25802
25803         * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
25804         releasing the items.
25805
25806 2005-06-14  Vincent Celier  <celier@adacore.com>
25807             Cyrille Comar  <comar@adacore.com>
25808
25809         * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
25810         with output file descriptor and with output file name.
25811         (Dup, Dup2): Now global procedures as they are used by two subprograms
25812         (Copy): Allocate the 200K buffer on the heap rather than on the stack.
25813
25814 2005-06-14  Thomas Quinot  <quinot@adacore.com>
25815
25816         PR ada/6717
25817         * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
25818         broadcast address.
25819         (Create_Selector): Bind listening socket used to create the signalling
25820         socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
25821         Set listen backlog to 1 to ensure that we detect socket theft by a
25822         failure of our own connect(2) call.
25823         (Check_Selector): Improve documentation of the selector mechanism.
25824         (Broadcast_Inet_Addr): New constant.
25825
25826 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
25827
25828         * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
25829         type which turns out to be an incomplete and incorrect fix.
25830         (Layout_Array_Type): Use Underlying_Type when checking whether the scope
25831         of the type is declared in a record (for determination of insertion
25832         type).
25833         (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
25834         a private type and ensure that the primary entity is used for the type
25835         of the newly created function's V formal by taking the Etype of the
25836         view.
25837
25838 2005-06-14  Javier Miranda  <miranda@adacore.com>
25839             Jose Ruiz  <ruiz@adacore.com>
25840             Robert Dewar  <dewar@adacore.com>
25841             Ed Schonberg  <schonberg@adacore.com>
25842
25843         * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
25844         that indicates if we are parsing a compilation unit found in a
25845         limited-with clause.
25846         It is use to avoid the circularity check.
25847
25848         * par.ads, par.adb (Par): Addition of a new parameter to indicate if
25849         we are parsing a compilation unit found in a limited-with clause. This
25850         is use to avoid the circularity check.
25851
25852         * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
25853         unit as a consequence of parsing a limited-with clause. This is used
25854         to avoid the circularity check.
25855
25856         * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
25857         (Analyze_Context): Limited-with clauses are now allowed
25858         in more compilation units.
25859         (Analyze_Subunit_Context, Check_Parent): Protect the frontend
25860         againts previously reported critical errors in context clauses
25861         (Install_Limited_Withed_Unit): Code cleanup plus static detection
25862         of two further errors: renamed subprograms and renamed packages
25863         are not allowed in limited with clauses.
25864         (Install_Siblings): Do not install private_with_clauses on the package
25865         declaration for a non-private child unit.
25866         (Re_Install_Parents): When a parent of the subunit is reinstalled,
25867         reset visibility of child units properly.
25868         (Install_Withed_Unit): When a child unit appears in a with_clause of its
25869         parent, it is immediately visible.
25870
25871 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25872             Emmanuel Briot  <briot@adacore.com>
25873
25874         * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
25875         declared within an inlined body as referenced, to prevent spurious
25876         warnings.
25877         (Output_One_Ref): If an entity renames an array component, indicate in
25878         the ALI file that this aliases (renames) the array. Capture as well
25879         function renamings that rename predefined operations.
25880         Add information about generic parent for package and subprogram
25881         instances.
25882         (Get_Type_Reference): For a subtype that is the renaming of an actual in
25883         an instantiation, use the first_subtype to ensure that we don't generate
25884         cross-reference information for internal types.
25885         For objects and parameters of a generic private type, retain the '*'
25886         indicator to distinguish such an entity from its type.
25887
25888         * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
25889         to store information about instantiated entities.
25890
25891         * ali.adb (Scan_ALI): Add support for parsing the reference to the
25892         generic parent
25893
25894         * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
25895         (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
25896         information.
25897
25898 2005-06-10  Doug Rupp  <rupp@adacore.com>
25899             Arnaud Charlet  <charlet@adacore.com>
25900             Olivier Hainque  <hainque@adacore.com>
25901             Jose Ruiz  <ruiz@adacore.com>
25902
25903         * Make-lang.in: Add initialize.o when needed.
25904         Remove obsolete references to RT_FLAGS.
25905         Add missing dependencies for sdefault.o
25906
25907         * initialize.c: New file.
25908
25909         * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
25910         [VMS] cond_signal_table: Fix problem in declaration.
25911         [VMS] __gnat_error_handler: rewrite.
25912         Move all __gnat_initialize() routines to initialize.c
25913         Specialize the former "hpux" section to "hppa hpux", as this is what the
25914         section really is here for and we now have other hpux ports that need
25915         different contents.
25916         (__gnat_adjust_context_for_raise) i386-linux: First version of this
25917         function for this target. Adjust PC by one in the machine context. This
25918         adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
25919         it is more reliable to do that in the signal handler itself.
25920         (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
25921         flags, so that the handler is passed the context structure to adjust
25922         prior to the raise.
25923         (__gnat_error_handler) i386-linux: Adjust the signature to match what a
25924         SA_SIGINFO sigaction should look like. Call
25925         __gnat_adjust_context_for_raise before actually raising. Cleanup unused
25926         Machine_State_Operations stuff.
25927         Add conditional code so that the x86_64 is also supported.
25928
25929 2005-06-14  Pascal Obry  <obry@adacore.com>
25930
25931         * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
25932         the library name.
25933
25934 2005-06-14  Robert Dewar  <dewar@adacore.com>
25935
25936         * opt.ads, opt.adb: New flags for persistent_bss mode
25937         Add Ada_Version_Explicit, for implementation of AI-362
25938         Add Assertions_Enabled_Config and associated handling
25939         Needed since setting can be changed with Assertion_Policy pragma
25940         Add new flag Warn_On_Ada_2005_Compatibility
25941
25942         * switch-c.adb: Recognize -gnatwy/Y
25943         Set Ada_Version_Explicit, for implementation of AI-362
25944         The -gnatg switch now includes -gnatyu
25945
25946         * usage.adb: Add -gnatwy/Y
25947         Remove wrong asterisk on -gnatwX line
25948         Add line for -gnatyu switch
25949
25950 2005-06-14  Vincent Celier  <celier@adacore.com>
25951
25952         * osint.adb (Add_Default_Search_Dirs): Put source and object
25953         directories of project files before directories coming from
25954         ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
25955
25956 2005-06-14  Robert Dewar  <dewar@adacore.com>
25957
25958         PR ada/15613
25959         * par-ch2.adb (Scan_Pragma_Argument): New procedure
25960         (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
25961
25962 2005-06-14  Vincent Celier  <celier@adacore.com>
25963
25964         * prep.adb (Preprocess): Ignore error when scanning the first token of
25965         a line.
25966
25967 2005-06-14  Vincent Celier  <celier@adacore.com>
25968
25969         * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
25970         (Check_Stand_Alone_Library): If the specified reference symbol file does
25971         not exist, only issue a warning when the symbol policy is not
25972         Controlled. And, when symbol policy is Compliant, set the symbol
25973         policy to Autonomous.
25974
25975 2005-06-14  Vincent Celier  <celier@adacore.com>
25976
25977         * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
25978         when the project file in a with clause is not the last one, that is the
25979         project file name is followed by a comma.
25980         * prj-pp.adb: (First_With_In_List): New Boolean global variable
25981         (Print): Issue list of project files separated by commas in with clauses
25982         according to the values returned by Is_Not_Last_In_List.
25983         * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
25984         (Set_Is_Not_Last_In_List): New procedure
25985
25986 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
25987
25988         * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
25989
25990 2005-06-14  Robert Dewar  <dewar@adacore.com>
25991
25992         * scng.adb: Add call to new Check_EOF routine
25993         (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
25994         Add some comments regarding wide character handling
25995
25996         * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
25997
25998         * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
25999
26000         * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
26001         characters are now considered graphic characters and hence yield false
26002         in this call.
26003
26004         * nmake.adt: Modify header so that xnmake does not generate output
26005         files with multiple blank lines.
26006
26007         * treeprs.adt: Remove a blank line so that output from xtreeprs does
26008         not have an extra blank line
26009
26010 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
26011
26012         * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
26013         expression when the component type is an anonymous access type to
26014         ensure that appropriate accessibility checks are done.
26015
26016         * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
26017         expression of an assignment when the target object is of an anonymous
26018         access type. This ensures that required accessibility checks are done.
26019         (One_Bound): Move the check for type Universal_Integer to
26020         Process_Bounds.
26021         (Process_Bounds): Check whether the type of the preanalyzed range is
26022         Universal_Integer, and in that case set Typ to Integer_Type prior
26023         to setting the type of the original range and the calls to One_Bound.
26024
26025 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
26026
26027         * sem_case.adb (Expand_Others_Choice): Improve warning.
26028
26029 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
26030
26031         * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
26032         constraint of full view if present, when other type is discriminated.
26033         (Eval_Relational_Op): Recognize tests of pointer values against Null,
26034         when the pointer is known to be non-null, and emit appropriate warning.
26035
26036 2005-06-14  Robert Dewar  <dewar@adacore.com>
26037             Ed Schonberg  <schonberg@adacore.com>
26038
26039         PR ada/10671
26040         * sem_prag.adb: Implement pragma Persistent_BSS
26041         Remove obsolete pragma Persistent_Data, Persistent_Object
26042         Set Ada_Version_Explicit, for implementation of AI-362
26043         Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
26044         Add processing for pragma Pure_05 and Preelaborate_05
26045         Add processing for Assertion_Policy pragma
26046         Add pragma identifiers for Assert
26047         (Analyze_Pragma, case Assert): Check number of arguments
26048         (Process_Inline): Additional guard against an illegal program, where the
26049         argument of the pragma is undefined, and warnings on redundant
26050         constructs are enabled.
26051         (Analyze_Pragma, case Obsolescent): Allow an optional second argument
26052         Ada_05 to this pragma, specifying that the pragma is only active in
26053         Ada_05 mode.
26054         (Check_Arg_Order): New procedure
26055         Add appropriate calls to this procedure throughout
26056         Also throughout, check entity name before doing any other checks
26057
26058         * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
26059         Remove obsolete pragma Persistent_Data, Persistent_Object
26060         Add entries for pragma Pure_05 and Preelaborate_05
26061         Add entries for Assertion_Policy pragma and associated names
26062         Add some names for pragma argument processing
26063
26064         * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
26065
26066 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
26067
26068         * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
26069         appears within a negation (either from source or as a rewriting of
26070         inequality) adjust text of warning accordingly.
26071
26072 2005-06-14  Thomas Quinot  <quinot@adacore.com>
26073
26074         * s-strxdr.adb: Follow AI95-00132
26075
26076 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
26077
26078         * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
26079
26080 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
26081             Jose Ruiz  <ruiz@adacore.com>
26082
26083         * s-tposen.adb, s-tpobop.adb
26084         (Exceptional_Complete_Rendezvous): Save the occurrence and not only
26085         the exception id.
26086         (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
26087         there is no violation of the Max_Entry_Queue_Length restriction (if it
26088         has been set); Program_Error is raised otherwise.
26089         (Requeue_Call): Before requeuing the task on the target entry queue we
26090         check that there is no violation of the Max_Entry_Queue_Length
26091         restriction (if it has been set); Program_Error is raised otherwise.
26092
26093 2005-06-14  Robert Dewar  <dewar@adacore.com>
26094
26095         * styleg.adb: Fix several remaining problems in -gnatyu switch
26096         Blank line count not reset at start
26097         Scanning outside source buffer in some cases
26098         Confusing message for blanks at end of file
26099         Non-empty blank lines not recognized
26100
26101         * nmake.adt: Modify header so that xnmake does not generate output
26102         files with multiple blank lines.
26103
26104         * treeprs.adt: Remove a blank line so that output from xtreeprs does
26105         not have an extra blank line
26106
26107 2005-06-14  Sergey Rybin  <rybin@adacore.com>
26108
26109         * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
26110
26111 2005-06-14  Doug Rupp  <rupp@adacore.com>
26112             Vincent Celier  <celier@adacore.com>
26113
26114         * vms_conv.ads, vms_conv.adb: Remove "Library" command.
26115         Update copyright.
26116
26117         * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
26118         Remove "Library" command.
26119         Change keyword for style check -gnatyd from NOCRLF to
26120         DOS_LINE_ENDINGS.
26121         Remove useless second style check keyword NONE
26122         Remove help documentation for inexistent style check keyword
26123         RM_COLUMN_LAYOUT.
26124         Add help documentation for style check keywords DOS_LINE_ENDINGS,
26125         UNNECESSARY_BLANK_LINES and XTRA_PARENS
26126         Add UNNECESSARY_BLANK_LINES for -gnatyu
26127         Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
26128
26129         * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
26130
26131 2005-06-14  Vincent Celier  <celier@adacore.com>
26132
26133         * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
26134         gprmake was invoked with -d.
26135         (Compile_Sources): If -d was used, output the "completed ..." message
26136         for each compilation.
26137         (Scan_Arg): Recognize new switch -d
26138         When -c and at least one main is specified, set
26139         Unique_Compile to True to guarantee that no other sources will be
26140         compiled.
26141
26142 2005-06-14  Matthew Heaney  <heaney@adacore.com>
26143
26144         * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
26145         * a-swuwha.ads, a-swuwha.adb: New files
26146
26147         * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
26148         * a-szuzha.ads, a-szuzha.adb: New files.
26149
26150         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
26151         a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
26152         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
26153         a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
26154         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
26155         a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
26156         a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
26157         a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
26158         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
26159         a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
26160         Ada 2005 RM.
26161
26162 2005-06-10  Eric Botcazou  <ebotcazou@adacore.com>
26163             Olivier Hainque  <hainque@adacore.com>
26164             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26165             Pascal Obry  <obry@adacore.com>
26166
26167         * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
26168
26169         * trans.c (call_to_gnu): Issue a warning for users of Starlet when
26170         making a temporary around a procedure call because of non-addressable
26171         actual parameter.
26172         (process_freeze_entity): If entity is a private type, capture size
26173         information that may have been computed for the full view.
26174         (tree_transform, case N_Allocator): If have initializing expression,
26175         check type for Has_Constrained_Partial_View and pass that to
26176         build_allocator.
26177         (tree_transform, case N_Return_Statement): Pass extra arg to
26178         build_allocator.
26179
26180         * decl.c (annotate_value): Remove early return if -gnatR is not
26181         specified.
26182         (gnat_to_gnu_field): Don't make a packable type for a component clause
26183         if the position is byte aligned, the field is aliased, and the clause
26184         size isn't a multiple of the packable alignment. It serves no useful
26185         purpose packing-wise and would be rejected later on.
26186         (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
26187
26188         PR ada/20515
26189         (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
26190         context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
26191         instead.
26192         (create_concat_name): Idem.
26193
26194 2005-06-10  Robert Dewar  <dewar@adacore.com>
26195             Eric Botcazou  <ebotcazou@adacore.com>
26196             Ben Brosgol  <brosgol@adacore.com>
26197             Cyrille Comar  <comar@adacore.com>
26198             Sergey Rybin  <rybin@adacore.com>
26199             Pascal Obry  <obry@adacore.com>
26200
26201         * gnat_rm.texi: Add documentation for pragma Persistent_BSS
26202         Document second argument (Ada_05) of pragma Obsolescent
26203         Add note that call to subprogram marked with pragma Obsolescent
26204         is now considered to be a violation of program Restrictions
26205         (No_Obsolescent_Features).
26206         (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
26207         that only machine-dependent attributes are supported.
26208
26209         * gnat_ugn.texi:
26210         Commented out menu lines and empty section for gnatclean examples
26211         Document -gnatwy/Y
26212         Fix some over long lines
26213         Clarify and enhance documentation of ADA_PROJECT_PATH.
26214         Rework section 2.11.2(3) about linking with a non-GNU compiler.
26215         Mention new switch -fcallgraph-info.
26216         Mention new switch -fstack-usage.
26217         For gnatpp, replace '-notab' with '-N' and add this option to Index
26218         Corrected VMS example.
26219         VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
26220         Minor reformatting
26221         Add documentation for -gnatyu switch (unnecessary blank lines)
26222         Document new switch -U for GNAT PRETTY and GNAT METRIC
26223         Add note about Stdcall being handled as C convention on non Windows OS.
26224         Remove some junk typo in description of gnatbind -S switch
26225         Remove reference to Extensions_Allowed pragma
26226         Document the new order of the directories to be searched (source and
26227         object directories of project files before directories in ADA_*_PATH
26228         environment variables.
26229
26230         * g-trasym.ads: Document that IRIX is supported
26231
26232 2005-06-10  Arnaud Charlet  <charlet@adacore.com>
26233
26234         * Makefile.in: Add initialize.o when needed.
26235         Adapt to new VMS package body Symbols and subunits
26236         No specialized version of a-sytaco is needed for VxWorks.
26237
26238         * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
26239         * a-zchara.ads, a-widcha.ads: New files.
26240
26241         * system-hpux-ia64.ads: New file.
26242
26243         * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
26244         is imported from the VxWorks kernel.
26245
26246 2005-06-14  Robert Dewar  <dewar@adacore.com>
26247
26248         * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
26249         fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
26250         a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
26251         s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
26252         a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
26253         g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
26254         i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
26255         namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
26256         sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
26257         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
26258         s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
26259         xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
26260
26261 2005-06-14  Thomas Quinot  <quinot@adacore.com>
26262
26263         * xeinfo.adb: Fix typo in comment
26264
26265 2005-06-14  Javier Miranda  <miranda@adacore.com>
26266
26267         * repinfo.ads: Fix typo in comment
26268
26269 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
26270
26271         * s-finimp.adb (Parent_Tag): Delete this imported function (function
26272         Parent_Tag is now in the visible part of Ada.Tags).
26273         (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
26274         using imported function.
26275
26276 2005-06-14  Bernard Banner  <banner@adacore.com>
26277
26278         * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
26279         also apply for handling support for VxSim 653.
26280
26281 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
26282
26283         * xsnames.adb: Add automatic generation of snames.h.
26284
26285 2005-06-14  Thomas Quinot  <quinot@adacore.com>
26286
26287         * gen-soccon.c: Add IP_MULTICAST_IF constant
26288         Minor reformatting and adjustments to prevent warnings.
26289
26290 2005-06-14  Pascal Obry  <obry@adacore.com>
26291
26292         * seh_init.c: Do not include <sys/stat.h>. This is not needed.
26293
26294 2005-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
26295
26296         * trans.c (gnat_gimplify_expr): Call
26297         recompute_tree_invarant_for_addr_expr when we change
26298         the operand of the ADDR_EXPR.
26299
26300 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26301
26302         * misc.c: Don't include errors.h.
26303
26304 2005-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26305
26306         * raise.c (db): Add ATTRIBUTE_PRINTF_2.
26307
26308 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
26309
26310         * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
26311         comment typos.
26312         * gnat_rm.texi, gnat_ugn.texi: Fix typos.
26313
26314 2005-05-16  Nathanael Nerode  <neroden@gcc.gnu.org>
26315
26316         PR ada/20270
26317         * Makefile.in: Make TGT_LIB behave correctly.
26318
26319 2005-04-23  DJ Delorie  <dj@redhat.com>
26320
26321         * misc.c: Adjust warning() callers.
26322
26323 2005-04-16  Laurent Guerby  <laurent@guerby.net>
26324
26325         PR ada/18847
26326         * a-nudira.adb (Value): Check for valid string.
26327         * a-nuflra.adb (Value): Likewise.
26328
26329 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
26330
26331         * lang.opt: Refer to the GCC internals documentation instead of c.opt.
26332
26333 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
26334
26335         * adaint.c, init.c, tracebak.c: Fix comment typos.
26336         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
26337
26338 2005-04-07  Laurent Guerby  <laurent@guerby.net>
26339             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26340
26341         * Makefile.in: Add make ifeq define for hppa linux tasking support.
26342         * system-hpux.ads: Define Signed_Zeros to be True.
26343         * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
26344
26345 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
26346
26347         * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
26348         raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
26349         typos.
26350
26351 2005-03-30  Tom Tromey  <tromey@redhat.com>
26352
26353         * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
26354
26355 2005-03-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
26356
26357         * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
26358
26359 2005-03-29  Robert Dewar  <dewar@adacore.com>
26360
26361         * sem_res.adb (Resolve_Real_Literal): Generate warning if static
26362         fixed-point expression has value that is not a multiple of the Small
26363         value.
26364
26365         * opt.ads (Warn_On_Bad_Fixed_Value): New flag
26366
26367         * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
26368         nanoseconds.
26369
26370         * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
26371
26372 2005-03-29  Vincent Celier  <celier@adacore.com>
26373
26374         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
26375         (Build_Dynamic_Library.Version_String): Return the empty string when
26376         Lib_Version is empty or when the symbol policy is not Autonomous.
26377
26378         * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
26379         a symbol is not in the reference symbol file, increase the Major ID
26380         and set the Minor ID to 0.
26381         Use gsmatch=lequal instead of gsmatch=equal
26382
26383 2005-03-29  Doug Rupp  <rupp@adacore.com>
26384
26385         * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
26386         name and translate.
26387
26388 2005-03-29  Javier Miranda  <miranda@adacore.com>
26389
26390         * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
26391         (Inherit_DT): The first formal has been redefined as a Tag.
26392         This allows us the removal of the subprogram Get_TSD.
26393         (TSD): Replace the call to Get_TSD by the actual code.
26394
26395         * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
26396         (Make_DT): Upgrade the call to Inherit_TSD according to the
26397         new interface: the first formal is now a Tag.
26398
26399         * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
26400         redefined as a Tag.
26401         This change allows us to remove the subprogram Get_TSD.
26402         (CPP_Get_TSD): Subprogram removed.
26403         (TSD): Replace the call to CPP_Get_TSD by the actual code.
26404
26405         * rtsfind.ads: Remove support to call the run-time
26406         subprogram Get_TSD
26407
26408 2005-03-29  Robert Dewar  <dewar@adacore.com>
26409
26410         * errutil.adb, errout.adb:
26411         Minor comment updates on Line_Terminator references
26412
26413         * par-ch10.adb: Add ??? comment about line terminator
26414
26415         * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
26416         (check dos line terminator).
26417         (Check_Line_Max_Length): New procedure, split off from the existing
26418         Check_Line_Terminator routine. Separating this out allows -gnatyf to
26419         be properly recognized.
26420
26421         * styleg.adb: Add ??? comment for line terminator reference
26422
26423         * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
26424         (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
26425
26426         * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
26427         (check dos line terminator).
26428         (Check_Line_Max_Length): New procedure, split off from the existing
26429         Check_Line_Terminator routine. Separating this out allows -gnatyf to
26430         be properly recognized.
26431
26432         * stylesw.ads, stylesw.adb:
26433         Add handling for new -gnatyd switch (check dos line terminator)
26434
26435         * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
26436         Recognize -gnatwb/-gnatwB switches
26437         Include Warn_On_Bad_Fixed_Value for -gnatg
26438
26439         * usage.adb:
26440         Add line for new -gnatyd switch (check dos line terminator)
26441
26442         * usage.adb: Add lines for -gnatwb/-gnatwB
26443
26444         * vms_data.ads: Add entry for NOCRLF (-gnatyd)
26445
26446         * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
26447
26448         * gnat_ugn.texi: Fix overlong lines
26449         Document new -gnatyd switch
26450         Document new -gnatwb/-gnatwB switches
26451
26452 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
26453
26454         * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
26455         order to retrieve the component list of the type, before examining
26456         individual components.
26457
26458         * sem_type.adb (Covers): Types are compatible if one is the base type
26459         of the other, even though their base types might differ when private
26460         views are involved.
26461
26462 2005-03-29  Thomas Quinot  <quinot@adacore.com>
26463
26464         * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
26465         To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
26466         of using Set_Renaming_TSS. This ensures that the TSS bodies are not
26467         analyzed if expansion is disabled (which could otherwise cause spurious
26468         error messages if expansion has been disabled due to previous
26469         (unrelated) errors).
26470
26471         * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
26472         is disabled, the entity denoted by the argument is the access type
26473         itself, not an underlying record type, so there is no need to go back
26474         to the Corresponding_Remote_Type.
26475
26476 2005-03-29  Gary Dismukes  <dismukes@adacore.com>
26477             Robert Dewar  <dewar@adacore.com>
26478
26479         * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
26480         expand a call to an instance of
26481         Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
26482         Constructor actual of the instance. A class-wide membership
26483         check is also generated, to ensure that the tag passed to the instance
26484         denotes a type in the class.
26485         (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
26486         of Name_Generic_Dispatching_Constructor.
26487
26488         * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
26489         05 unit for AI-260-02).
26490
26491         * a-tgdico.ads: New file.
26492
26493         * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
26494         predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
26495
26496         * snames.ads, snames.adb (Preset_Names): Add entry for
26497         Generic_Dispatching_Constructor.
26498
26499         PR ada/20300
26500         * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
26501         character type cases.
26502         (Analyze_Subprogram_Renaming): Add special handling for
26503         the case of renaming of stream attributes when the renaming denotes a
26504         generic formal subprogram association for an abstract formal subprogram.
26505         Check that the attribute is a primitive stream attribute (and not
26506         a class-wide stream attribute) and then rewrite the attribute name
26507         as the name of the appropriate compiler-generated stream primitive.
26508
26509 2005-03-29  Robert Dewar  <dewar@adacore.com>
26510
26511         * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
26512         recursive calls.
26513         (Is_Possibly_Unaligned_Object): Correct typo that
26514         resulted in inaccurate result for unaligned scalars within records.
26515
26516 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
26517
26518         * freeze.adb (Freeze_Record_Type): If the type of the component is an
26519         itype whose parent is controlled and not yet frozen, do not create a
26520         freeze node for the itype if expansion is disabled.
26521
26522 2005-03-29  Vincent Celier  <celier@adacore.com>
26523
26524         * make.adb (Gnatmake): Don't fail if the main project file is declared
26525         as having no Ada sources. Do not display message "no sources to
26526         compile" in quiet output.
26527
26528 2005-03-29  Doug Rupp  <rupp@adacore.com>
26529
26530         * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
26531         extra tools.
26532
26533 2005-03-29  Robert Dewar  <dewar@adacore.com>
26534
26535         * par-ch12.adb (P_Generic): Give better msg for illegal private generic
26536         child.
26537
26538 2005-03-29  Robert Dewar  <dewar@adacore.com>
26539
26540         * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
26541         missing TYPE Improve the error message generated when compiling a
26542         limited interface in Ada83 or Ada95 mode.
26543
26544 2005-03-29  Robert Dewar  <dewar@adacore.com>
26545
26546         * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
26547         rather than proceed ahead using a junk attribute name.
26548
26549 2005-03-29  Vincent Celier  <celier@adacore.com>
26550
26551         * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
26552
26553         * prj-part.adb (Parse_Single_Project): Set the location of a project
26554         on its defining identifier, rather than on the reserved word "project".
26555
26556         * prj-proc.adb (Expression): Adapt to the fact that default of external
26557         references may be string expressions, not always literal strings.
26558         (Recursive_Process): Set Display_Name equal to Name
26559         when Location is No_Location, that is when there is no actual file.
26560         Get the Display_Name of the project from the source, when it is not a
26561         virtual project.
26562         (Process): Use the Display_Name in error messages
26563
26564         * prj-strt.adb (External_Reference): Allow default to be string
26565         expressions, not only literal strings.
26566
26567 2005-03-29  Vincent Celier  <celier@adacore.com>
26568
26569         * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
26570         file and the reference symbol file to be the same file.
26571
26572 2005-03-29  Thomas Quinot  <quinot@adacore.com>
26573
26574         * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
26575         forbid conversion of a local access-to-subprogram type to a remote one.
26576
26577         * sem_util.adb (Wrong_Type): For a record type that is the expanded
26578         equivalent type for a remote access-to-subprogram type, go back to the
26579         original RAS entity when displaying an error message, so the casing is
26580         the original source casing.
26581
26582 2005-03-29  Robert Dewar  <dewar@adacore.com>
26583
26584         * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
26585         on param update.
26586
26587 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
26588
26589         * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
26590         subtype if code is being pre-analyzed, to prevent un-expanded
26591         references to protected formals, among others.
26592         (Analyze_Explicit_Dereference): If the overloaded prefix includes some
26593         interpretation that can be a call, include the result of the call as a
26594         possible interpretation of the dereference.
26595
26596         * sem_ch5.adb (Process_Bounds): Determine type of range by
26597         pre-analyzing a copy of the original range, and then analyze the range
26598         with the expected type.
26599
26600         * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
26601         with an overloaded prefix where not all interpretations yield an
26602         access to subprogram, do not rewrite node as a call.
26603         (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
26604         the node as a call once the context identifies the interpretation of
26605         the prefix whose call yields the context type.
26606         (Valid_Conversion): For the case of a conversion between
26607         local access-to-subprogram types, check subtype conformance using
26608         Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
26609         detailed error message.
26610
26611 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
26612
26613         * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
26614         indicator, indicate that the formal can never be null.
26615         (Process_Formals): If a formal has a non_null indicator, insert the
26616         resulting subtype immediately before the enclosing subprogram decl,
26617         and not at the beginning of the corresponding declarative part, to
26618         prevent access before elaboration (Ada2005).
26619
26620 2005-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26621
26622         PR ada/19956
26623         * utils.c (finish_record_type): Use variable_size when setting sizes.
26624
26625 2005-03-29  Robert Dewar  <dewar@adacore.com>
26626
26627         * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
26628         guarantee Unix style line terminators for the output files, even when
26629         running on windows.
26630
26631 2005-03-29  Robert Dewar  <dewar@adacore.com>
26632
26633         * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
26634         buffer if an exception is raised.
26635
26636 2005-03-29  Ed Falis  <falis@adacore.com>
26637
26638         * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
26639         VxWorks 653 1.4
26640
26641 2005-03-29  Robert Dewar  <dewar@adacore.com>
26642
26643         * sem_util.ads: Minor reformatting
26644         * gnat_rm.texi: Minor editing.
26645
26646 2005-03-29  Eric Botcazou  <ebotcazou@adacore.com>
26647
26648         * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
26649         * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
26650
26651 2005-03-24  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
26652
26653         * adaint.c (__gnat_portable_spawn): Adjust cast.
26654
26655 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
26656
26657         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
26658
26659 2005-03-17  Pascal Obry  <obry@adacore.com>
26660
26661         * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
26662         used.
26663
26664         * expect.c (__gnat_waitpid): Moved here from adaint.c.
26665         Reimplement under Win32 using Win32 API.
26666
26667         (__gnat_kill) [Win32]: Properly close the process handle before leaving
26668         this routine.
26669
26670 2005-03-17  Eric Botcazou  <ebotcazou@adacore.com>
26671
26672         * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
26673         (DECL_RENAMED_OBJECT): New accessor macro.
26674         (SET_DECL_RENAMED_OBJECT): New setter macro.
26675
26676         * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
26677         object in all cases.  Attach the renamed object to the VAR_DECL.
26678         (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
26679         field is not prescribed.
26680
26681         * misc.c (gnat_handle_option): Handle -gnatO separately.
26682         (gnat_print_decl) <VAR_DECL>: New case.
26683         Print the DECL_RENAMED_OBJECT node.
26684
26685         * lang.opt:  Declare separate -gnatO option.
26686
26687         * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
26688         pointer, replace it with the renamed object.
26689         <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
26690         pointer type if the source is not a fat pointer type whose underlying
26691         array has the same non-zero alias set as that of the destination array.
26692
26693 2005-03-17  Javier Miranda  <miranda@adacore.com>
26694
26695         * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
26696         (Get_Inheritance_Depth): Removed.
26697         (Set_Inheritance_Depth): Removed.
26698
26699         * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
26700         subprogram Get_Expanded_Name because it is not referenced by the
26701         frontend.
26702
26703         * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
26704         (CPP_Get_Inheritance_Depth): Removed.
26705         (CPP_Set_Inheritance_Depth): Removed.
26706
26707         * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
26708
26709 2005-03-17  Robert Dewar  <dewar@adacore.com>
26710
26711         * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
26712         3, since we now expect GCC 3 to do all the work.
26713
26714 2005-03-17  Javier Miranda  <miranda@adacore.com>
26715
26716         * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
26717         of one barrier to avoid wrong usage of this attribute.
26718
26719         * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
26720         First_Private_Entity.
26721
26722         * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
26723         the subprogram against wrong usage.
26724         Adapt the code to traverse the entities in the
26725         scope of a record_type because in addition to its usage regarding
26726         packages, this subprogram is also called by Expand_N_Freeze_Entity
26727         to install the visible declarations of the enclosing scope of a
26728         record_type_with_private to establish the proper visibility before
26729         freezing the entity and related subprograms.
26730
26731 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
26732
26733         * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
26734         entry formals.
26735
26736 2005-03-17  Thomas Quinot  <quinot@adacore.com>
26737
26738         * exp_ch3.adb (Check_Attr): New subprogram.
26739         (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
26740         into a new Check_Attr subprogram, in order to provide a more
26741         explanatory error message (including the name of the missing attribute).
26742         (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
26743         subprogram determines whether a default implementation exists for a
26744         given stream attribute.
26745         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
26746         Determine whether to generate a default implementation for each stream
26747         attribute separately, as this depends on the specific attribute.
26748
26749         * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
26750         limited extension where a stream attribute is missing for a limited
26751         component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
26752         generate a bogus reference to the missing attribute to prevent
26753         cascaded errors. Instead, generate a null statement.
26754
26755         * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
26756         available for a limited type if it has been specified for an ancestor
26757         of the type.
26758
26759 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
26760
26761         * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
26762         entity is an operator.
26763
26764 2005-03-17  Thomas Quinot  <quinot@adacore.com>
26765
26766         * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
26767         spec, to make this predicate available to other units.
26768
26769         * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
26770         reimplementing it.
26771
26772         * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
26773         when no distribution runtime library is available.
26774
26775         * sem_res.adb, sem_dist.adb: Disable expansion of remote
26776         access-to-subprogram types when no distribution runtime library is
26777         available.
26778         (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
26779         predicate available to other units.
26780
26781         * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
26782         spec, to make this predicate available to other units.
26783
26784 2005-03-17  Vincent Celier  <celier@adacore.com>
26785
26786         * make.adb (Insert_Project_Sources): Make sure the Q is always
26787         initialized.
26788
26789         * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
26790         the default for the tree, not the global default naming.
26791
26792         * prj-proc.adb (Recursive_Process): No need to put the default naming
26793         in the project data, it's already there.
26794
26795 2005-03-17  Doug Rupp  <rupp@adacore.com>
26796
26797         * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
26798
26799         * 5xcrtl.ads: Renamed to...
26800         * s-crtl-vms64.ads: ...this new file
26801
26802 2005-03-17  Robert Dewar  <dewar@adacore.com>
26803
26804         PR ada/19519
26805         * namet.adb (Copy_One_Character): Set proper wide character encoding
26806         for upper half character if we have upper half encoding.
26807
26808 2005-03-17  Robert Dewar  <dewar@adacore.com>
26809
26810         * par.adb (Par): Improved msg for attempt to recompile predefined unit
26811
26812 2005-03-17  Thomas Quinot  <quinot@adacore.com>
26813
26814         * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
26815         tagged limited type, the TSS is a newly built renaming declaration:
26816         insert it using Set_TSS, not Copy_TSS.
26817
26818 2005-03-17  Javier Miranda  <miranda@adacore.com>
26819
26820         * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
26821         Try_Object_Operation): Analyze the object that is accessible
26822         through the prefix of the subprogram call before we apply
26823         the transformation of the object-operation notation.
26824
26825 2005-03-17  Jose Ruiz  <ruiz@adacore.com>
26826
26827         * s-taprob.adb (Initialize_Protection): Initialize the protected
26828         object's owner to Null_Task.
26829         (Lock): If pragma Detect_Blocking is in effect and the caller of this
26830         procedure is already the protected object's owner then Program_Error
26831         is raised. In addition the protected object's owner is updated.
26832         (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
26833         of this procedure is already the protected object's owner then
26834         Program_Error is raised.
26835         In addition the protected object's owner is updated.
26836         (Unlock): Remove the ownership of the protected object.
26837
26838         * s-taprob.ads (Protection): Add the field Owner, used to store the
26839         protected object's owner.
26840         This component is needed for detecting one type of potentially blocking
26841         operations (external calls on a protected subprogram with the same
26842         target object as that of the protected action). Document the rest of
26843         the components.
26844
26845         * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
26846         Initialize the protected object's owner to Null_Task.
26847         (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
26848         caller of this procedure is already the protected object's owner then
26849         Program_Error is raised.
26850         Do not raise Program_Error when this procedure is called from a
26851         protected action.
26852         (Unlock_Entries): Remove the ownership of the protected object.
26853         (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
26854         of this procedure is already the protected object's owner then
26855         Program_Error is raised.
26856         Do not raise Program_Error when this procedure is called from
26857         a protected action.
26858
26859         * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
26860         used to store the protected object's owner.
26861
26862         * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
26863         effect and this procedure (a potentially blocking operation) is called
26864         from whithin a protected action, Program_Error is raised.
26865         (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
26866         and this procedure (a potentially blocking operation) is called from
26867         whithin a protected action, Program_Error is raised.
26868
26869 2005-03-17  Vincent Celier  <celier@adacore.com>
26870             Nicolas Setton  <setton@adacore.com>
26871
26872         * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
26873         switch, not supported by the linker on Darwin. Add '_' before
26874         <library>init, as this character is added unconditionally by the
26875         compiler.
26876         (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
26877         correct one ".dylib". This fixes detection of the archive files when
26878         building library projects.
26879
26880 2005-03-17  Vincent Celier  <celier@adacore.com>
26881
26882         * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
26883         -gnat83, -gnat95 and -gnat05.
26884
26885 2005-03-17  Vasiliy Fofanov  <fofanov@adacore.com>
26886
26887         * gnat_ugn.texi: Document gnatmem restriction
26888
26889 2005-03-17  Thomas Quinot  <quinot@adacore.com>
26890
26891         * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
26892         cleanup
26893
26894 2005-03-17  Robert Dewar  <dewar@adacore.com>
26895
26896         * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
26897         a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
26898         s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
26899
26900         * casing.adb: Comment improvements
26901
26902 2005-03-17  Pascal Obry  <obry@adacore.com>
26903
26904         * g-expect.adb: Minor reformatting.
26905
26906 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
26907
26908         * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
26909         (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
26910         to dependencies.
26911
26912 2005-03-15  Vincent Celier  <celier@adacore.com>
26913
26914         * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
26915         Add new parameter In_Tree to specify the project tree: needed
26916         by the project manager. Adapt to changes in project manager
26917         using new parameter In_Tree.
26918
26919 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
26920
26921         * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
26922         ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
26923         ada/bldtools to avoid make -jN failures.
26924
26925 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
26926
26927         * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
26928         to NULL_TREE on entry.
26929
26930 2005-03-15  Robert Dewar  <dewar@adacore.com>
26931
26932         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
26933         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
26934         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
26935         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
26936         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
26937         system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
26938         system-interix.ads, system-solaris-sparc.ads,
26939         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
26940         system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
26941         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
26942         system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
26943         system-linux-s390.ads, system-linux-s390x.ads: Add line defining
26944         Compiler_System_Version to be False.
26945
26946         * opt.ads: Add new flag Opt.Address_Is_Private
26947
26948         * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
26949         Add new parameter Compiler_System_Version to avoid checking for
26950         completeness of parameters when compiler is compiling itself.
26951         Allows old versions of GNAT to be compiled with new compiler.
26952
26953 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
26954
26955         * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
26956         (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
26957         calling thread.
26958         (Stack_Base_Available): New flag.
26959         (Get_Page_Size): New overloaded functions imported from C.
26960         (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
26961         PROT_ON, PROT_OFF): New constants.
26962         (mprotect): New function imported from C.
26963         (pthread_teb_t): New record type.
26964
26965         * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
26966         (Create_Task): Account for the Yellow Zone and the guard page.
26967
26968 2005-03-15  Vincent Celier  <celier@adacore.com>
26969
26970         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
26971         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
26972         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
26973         mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
26974         Library_File_Name_For): Add new parameter In_Tree
26975         to specify the project tree: needed by the project manager.
26976         Adapt to changes in project manager using new parameter In_Tree.
26977         Remove local imports, use functions in System.CRTL.
26978
26979         * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
26980         to use the project manager.
26981
26982         * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
26983         In_Tree to designate the project tree. Adapt to changes in the project
26984         manager, using In_Tree.
26985
26986         * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
26987         Copy_Interface_Sources): Add new parameter In_Tree to specify the
26988         project tree: needed by the project manager.
26989         (Build_Library): Check that Arg'Length >= 6 before checking if it
26990         contains "--RTS=...".
26991
26992         * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
26993         Library_File_Name_For): Add new parameter In_Tree to specify the
26994         project tree: needed by the project manager.
26995
26996         * prj.ads, prj.adb: Major modifications to allow several project trees
26997         in memory at the same time.
26998         Change tables to dynamic tables and hash tables to dynamic hash
26999         tables. Move tables and hash tables from Prj.Com (in the visible part)
27000         and Prj.Env (in the private part). Move some constants from the visible
27001         part to the private part. Make other constants deferred.
27002         (Project_Empty): Make it a variable, not a function
27003         (Empty_Project): Add parameter Tree. Returns the data with the default
27004         naming data of the project tree Tree.
27005         (Initialize): After updating Std_Naming_Data, copy its value to the
27006         component Naming of Project Empty.
27007         (Register_Default_Naming_Scheme): Use and update the default naming
27008         component of the project tree, instead of the global variable
27009         Std_Naming_Data.
27010         (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
27011         Tree is not defaulted, return the default naming data of the Tree.
27012         (Initial_Buffer_Size): Constant moved from private part
27013         (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
27014         variables initialized in procedure Initialize.
27015         (Add_To_Buffer): Add two in out parameters to replace global variables
27016         Buffer and Buffer_Last.
27017         (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
27018         functions.
27019         Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
27020         hash tables.
27021         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
27022         for the project tree.
27023         (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
27024         constant at the beginning of the package spec, so that they cane be used
27025         in subprograms before their full declarations.
27026         (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
27027         (Empty_Project): Add parameter of type Project_Node_Ref
27028         (Private_Project_Tree_Data): Add component Default_Naming of type
27029         Naming_Data.
27030         (Buffer, Buffer_Last): remove global variables
27031         (Add_To_Buffer): Add two in out parameters to replace global variables
27032         Buffer and Buffer_Last.
27033         (Current_Packages_To_Check): Remove global variable
27034         (Empty_Name): Move to private part
27035         (No-Symbols): Make it a constant
27036         (Private_Project_Tree_Data): New type for the private part of the
27037         project tree data.
27038         (Project_Tree_Data): New type for the data of a project tree
27039         (Project_Tree_Ref): New type to designate a project tree
27040         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
27041         for the project tree.
27042
27043         * prj-attr.ads: Add with Table; needed, as package Prj no longer
27044         imports package Table.
27045
27046         * prj-com.adb: Remove empty, no longer needed body
27047
27048         * prj-com.ads: Move most of the content of this package to package Prj.
27049
27050         * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
27051         designate the project node tree and Packages_To_Check to replace
27052         global variable Current_Packages_To_Check.
27053         Add new parameters In_Tree and Packages_To_Check to local subprograms,
27054         when needed. Adapt to changes in project manager with project node tree
27055         In_Tree.
27056
27057         * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
27058         project tree to most subprograms. Move tables and hash tables to
27059         private part of package Prj.
27060         Adapt to changes in project manager using project tree In_Tree.
27061
27062         * prj-makr.adb (Tree): New constant to designate the project node tree
27063         Adapt to change in project manager using project node tree Tree
27064
27065         * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
27066         display the Library_Src_Dir and the Library_Dir.
27067         Add new parameter In_Tree to designate the project node tree to most
27068         subprograms. Adapt to changes in the project manager, using project tree
27069         In_Tree.
27070         (Check_Naming_Scheme): Do not alter the casing on platforms where
27071         the casing of file names is not significant.
27072         (Check): Add new parameter In_Tree to designate the
27073
27074         * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
27075         designate the project tree.
27076         Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
27077
27078         * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
27079         to replace those that were in the private part of package Prj.
27080         Add new parameter In__Tree to designate the project node tree to most
27081         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
27082         (Post_Parse_Context_Clause): When specifying the project node of a with
27083         clause, indicate that it is a limited with only if there is "limited"
27084         in the with clause, not necessarily when In_Limited is True.
27085         (Parse): Add new parameter In_Tree to designate the project node tree
27086
27087         * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
27088         designate the project node tree. Adapt to change in Prj.Tree with
27089         project node tree In_Tree.
27090
27091         * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
27092         tree In_Tree in the call to function Empty_Process to give its initial
27093         value to the project data Processed_Data.
27094         Add new parameters In_Tree to designate the project tree and
27095         From_Project_Node_Tree to designate the project node tree to several
27096         subprograms. Adapt to change in project manager with project tree
27097         In_Tree and project node tree From_Project_Node_Tree.
27098
27099         * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
27100         to replace those that were in the private part of package Prj.
27101         Add new parameter In_Tree to designate the project node tree to most
27102         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
27103
27104         * prj-tree.ads, prj-tree.adb: Add new parameter of type
27105         Project_Node_Tree_Ref to most subprograms.
27106         Use this new parameter to store project nodes in the designated project
27107         node tree.
27108         (Project_Node_Tree_Ref): New type to designate a project node tree
27109         (Tree_Private_Part): Change table to dynamic table and hash tables to
27110         dynamic hash tables.
27111
27112         * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
27113         the project tree to most subprograms. Adapt to changes in project
27114         manager using project tree In_Tree.
27115
27116         * makegpr.adb (Project_Tree): New constant needed to use project
27117         manager.
27118
27119 2005-03-15  Olivier Hainque  <hainque@adacore.com>
27120
27121         * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
27122         for sigactions with SA_SIGINFO set. Call
27123         __gnat_adjust_context_for_raise before raising, to perform the
27124         potentially required adjustments to the machine context for the GCC
27125         unwinder.
27126
27127         * raise.h (__gnat_adjust_context_for_raise): New prototype.
27128
27129         * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
27130         Adjust PC by one in the provided machine context.
27131         (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
27132         so that the handler is passed the context structure to adjust prior to
27133         the raise.
27134         (__gnat_error_handler) HPUX: Adjust the signature to match what an
27135         SA_SIGINFO sigaction should look like. Call
27136         __gnat_adjust_context_for_raise before actually raising.
27137         (__gnat_adjust_context_for_raise): Default noop to help PC
27138         adjustments before raise from signal handlers.
27139         (__gnat_error_handler): Indirectly call a predicate function to
27140         determine if a condition should be resignaled or not.
27141         (__gnat_set_resignal_predicate): User interface to modify the predicate.
27142         (__gnat_default_resignal_p): Default GNAT predicate.
27143
27144 2005-03-15  Doug Rupp  <rupp@adacore.com>
27145
27146         * adaint.c: Prefix #include of VMS system header files with vms/
27147         [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
27148         Do not define a dummy function "convert_addresses" under Darwin,
27149         not needed.
27150
27151         * tb-alvms.c, expect.c: Prefix #include of VMS system header files
27152         with vms/
27153
27154 2005-03-15  Nicolas Setton  <setton@adacore.com>
27155
27156         * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
27157         PPC/AIX.
27158
27159 2005-03-15  Robert Dewar  <dewar@adacore.com>
27160
27161         * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
27162         AI-386.
27163
27164         * a-retide.ads: Minor comment changes
27165
27166 2005-03-15  Robert Dewar  <dewar@adacore.com>
27167
27168         * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
27169         a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
27170         Realloc_For_Chunk to private part of package.
27171         New subprograms for AI-301
27172
27173         * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
27174         Get_Line procedure.
27175         Avoid unnecessary use of Get/Set_Wide_String
27176
27177 2005-03-15  Robert Dewar  <dewar@adacore.com>
27178
27179         PR ada/13470
27180         * a-stunau.ads, a-stunau.adb:
27181         Change interface to allow efficient (and correct) implementation
27182         The previous changes to allow extra space in unbounded strings had
27183         left this interface a bit broken.
27184
27185         * a-suteio.adb: Avoid unnecessary use of Get/Set_String
27186
27187         * g-spipat.ads, g-spipat.adb: New interface for Get_String
27188         Minor reformatting (function specs)
27189
27190         * g-spitbo.adb: New interface for Get_String
27191
27192         * g-spitbo.ads: Minor reformatting
27193
27194         * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
27195
27196         * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
27197
27198 2005-03-15  Javier Miranda  <miranda@adacore.com>
27199             Robert Dewar  <dewar@adacore.com>
27200             Thomas Quinot  <quinot@adacore.com>
27201             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27202
27203         * atree.ads, atree.adb: Add support for Elist24 field
27204
27205         * atree.h: Fix wrong definition of Field27
27206         Add support for Elist16 field
27207         Add support for Elist24 field
27208
27209         * einfo.ads, einfo.adb (Abstract_Interfaces,
27210         Set_Abstract_Interfaces): New subprograms.
27211         (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
27212         subprograms.
27213         (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
27214         entities rather than a single node.
27215         (Is_Interface, Set_Is_Interface): New subprogram
27216         (First_Tag_Component): New syntesized attribute
27217         (Next_Tag_Component): New synthesized attribute
27218         (Write_Entity_Flags): Upgraded to write Is_Interface
27219         (Write_Field24_Name): Upgraded to write Abstract_Interfaces
27220         (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
27221         (Task_Body_Procedure): New subprogram to read this attribute.
27222         (Set_Task_Body_Procedure): New subprogram to set this attribute.
27223         (Has_Controlled_Component): Now applies to all entities.
27224         This is only a documentation change, since it always worked to apply
27225         this to other than composite types (yielding false), but now this is
27226         official.
27227         Update documentation on Must_Be_Byte_Aligned for new spec
27228
27229         * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
27230         exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
27231         uses of the Access_Disp_Table attribute to reference the first dispatch
27232         table associated with a tagged type. As
27233         part of the implementation of abstract interface types,
27234         Access_Disp_Table has been redefined to contain a list of dispatch
27235         tables (rather than a single dispatch table).
27236         Similarly, upgrade all the references to Tag_Component by the
27237         new attribute First_Tag_Component.
27238         (Find_Inherited_TSS): Moved to exp_tss.
27239         Clean up test in Expand_N_Object_Declaration for cases
27240         where we need to do a separate assignment of the initial value.
27241         (Expand_N_Object_Declaration): If the expression in the
27242         declaration of a tagged type is an aggregate, no need to generate an
27243         additional tag assignment.
27244         (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
27245         is to be deleted.
27246         Bit packed array ops are only called if operands are known to be
27247         aligned.
27248         (Component_Equality): When returning an N_Raise_Program_Error statement,
27249         ensure that its Etype is set to Empty to avoid confusing GIGI (which
27250         expects that only expressions have a bona fide type).
27251         (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
27252         determine the amount of data to be copied.
27253
27254         * par.adb (P_Interface_Type_Definition): New subprogram that parses the
27255         new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
27256             INTERFACE_TYPE_DEFINITION ::=
27257               [limited | task | protected | synchronized] interface
27258                 [AND interface_list]
27259
27260         * par-ch3.adb (P_Type_Declaration): Modified to give support to
27261         interfaces.
27262         (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
27263         interfaces.
27264         (P_Interface_Type_Definition): New subprogram that parses the new
27265         syntax rule of Ada 2005 interfaces
27266         (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
27267         messages by the correct RENAMES (quotes removed).
27268
27269         * sem_prag.adb: Upgrade all the references to Tag_Component by the new
27270         attribute First_Tag_Component.
27271
27272         * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
27273         (Interface_List, Set_Interface_List): New subprograms.
27274         (Interface_Present, Set_Interface_Present): New subprograms.
27275         (Limited_Present, Set_Limited_Present): Available also in derived
27276         type definition nodes.
27277         (Protected_Present, Set_Protected_Present): Available also in
27278         record type definition and
27279         derived type definition nodes.
27280         (Synchronized_Present, Set_Synchronized_Present): New subprograms.
27281         (Task_Present, Set_Task_Present): New subprogram.
27282         (Task_Body_Procedure): Removed.
27283         (Set_Task_Body_Procedure): Removed.
27284         These subprogram have been removed because the attribute
27285         Task_Body_Procedure has been moved to the corresponding task type
27286         or task subtype entity to leave a field free to store the list
27287         of interfaces implemented by a task (for AI-345)
27288         Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
27289         (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
27290         expression flag Do_Range_Check
27291         (Exception_Junk): Change to Flag7 to accomodate above change
27292         (Box_Present, Default_Name, Specification, Set_Box_Present,
27293         Set_Default_Name, Set_Specification): Expand the expression
27294         "X in N_Formal_Subprogram_Declaration" into the corresponding
27295         two comparisons. Required to use the csinfo tool.
27296
27297         * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
27298         "with string" given.
27299
27300         * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
27301         expression given.
27302
27303         * par-ch11.adb (P_Raise_Statement): Recognize with string expression
27304         in 2005 mode
27305
27306         * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
27307         attribute Task_Body_Procedure rather than the old semantic field that
27308         was available in the task_type_declaration node.
27309
27310         * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
27311         interface type definitions.
27312         (P_Formal_Derived_Type_Definition): Modified to handle the list of
27313         interfaces.
27314
27315         * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
27316         task type declaration.
27317         (P_Protected): Modified to handle the list of interfaces in a
27318         protected type declaration.
27319
27320 2005-03-15  Doug Rupp  <rupp@adacore.com>
27321             Vincent Celier  <celier@adacore.com>
27322
27323         * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
27324         (Gen_Output_File_C): Likewise.
27325         (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
27326
27327 2005-03-15  Thomas Quinot  <quinot@adacore.com>
27328
27329         * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
27330         is an N_Raise_Constraint_Error node, create a new copy of it without
27331         going through a call to Duplicate_Subexpr.
27332
27333 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
27334             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27335             Nicolas Setton  <setton@adacore.com>
27336             Ed Schonberg  <schonberg@adacore.com>
27337
27338         PR ada/19900
27339         PR ada/19408
27340         PR ada/19140
27341         PR ada/20255
27342         * decl.c (gnat_to_gnu_field): Reject aliased components with a
27343         representation clause that prescribes a size not equal to the rounded
27344         size of their types.
27345         (gnat_to_gnu_entity, case E_Component): Always look at
27346         Original_Record_Component if Present and not the entity.
27347         (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
27348         of tagged extension types by not making field for components that are
27349         inside the parent.
27350         (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
27351         (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
27352         expression to the type of the object when the object is constant.
27353         Reverse defer_debug_incomplete_list before traversing it, so that trees
27354         are processed in the order at which they were added to the list. This
27355         order is important when using the stabs debug format.
27356         If we are deferring the output of debug information, also defer this
27357         output for a function return type.
27358         When adding fields to a record, prevent emitting debug information
27359         for incomplete records, emit the information only when the record is
27360         complete.
27361         (components_to_record): New parameter defer_debug.
27362         (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
27363         (gnat_to_gnu_field_decl): New function.
27364         (substitution_list, annotate_rep): Call it.
27365         (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
27366         (gnat_to_gnu_entity, case E_Record_Type): Likewise.
27367         No longer update discriminants to not be a COMPONENT_REF.
27368         (copy_alias_set): Strip padding from input type; also handle
27369         unconstrained arrays properly.
27370
27371         * gigi.h (write_record_type_debug_info): New function.
27372         Convert to use ANSI-style prototypes. Remove unused
27373         declarations for emit_stack_check, elab_all_gnat and
27374         set_second_error_entity.
27375         (gnat_to_gnu_field_decl): New decl.
27376
27377         * utils.c (write_record_type_debug_info): New function.
27378         (finish_record_type): Delegate generation of debug information to
27379         write_record_type_debug_info.
27380         (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
27381         (update_pointer_to): Fix pasto.
27382         (convert) <UNION_TYPE>: Accept slight type variations when
27383         converting to an unchecked union type.
27384
27385         * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
27386         replace the N_Freeze_Entity with a null statement.
27387
27388         * freeze.adb (Freeze_Expression): If the freeze nodes are generated
27389         within a constrained subcomponent of an enclosing record, place the
27390         freeze nodes in the scope stack entry for the enclosing record.
27391         (Undelay_Type): New Subprogram.
27392         (Set_Small_Size): Pass T, the type to modify; all callers changed.
27393         (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
27394         within records; allow them to have freeze nodes if their base types
27395         aren't frozen yet.
27396
27397         * exp_util.adb (Remove_Side_Effects): Properly test for
27398         Expansion_Delayed and handle case when it's inside an
27399         N_Qualified_Expression.
27400
27401         * sem_ch3.adb (Derived_Type_Declaration): New predicate
27402         Comes_From_Generic, to recognize accurately that the parent type in a
27403         derived type declaration can be traced back to a formal type, because
27404         it is one or is derived from one, or because its completion is derived
27405         from one.
27406         (Constrain_Component_Type): If component comes from source and has no
27407         explicit constraint, no need to constrain in in a subtype of the
27408         enclosing record.
27409         (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
27410         Minor change to propagate Is_Ada_2005 flag
27411
27412         * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
27413         Expansion_Delayed is False.
27414         (assoc_to_constructor): Ignore fields that have a
27415         Corresponding_Discriminant.
27416         (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
27417         function returns "by target", dereference the target pointer using the
27418         type of the actual return value.
27419         <all>: Be prepared for a null gnu_result.
27420         (processed_inline_subprograms): Check flag_really_no_inline
27421         instead of flag_no_inline.
27422         (set_second_error_entity): Remove unused function.
27423         (gnat_to_gnu, case N_Selected_Component): Call
27424         gnat_to_gnu_field_decl.
27425         (assoc_to_constructor): Likewise.
27426
27427 2005-03-15  Robert Dewar  <dewar@adacore.com>
27428             Ed Schonberg  <schonberg@adacore.com>
27429             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27430
27431         * exp_pakd.adb (Create_Packed_Array_Type): Do not set
27432         Must_Be_Byte_Aligned for cases where we do not need to use a
27433         System.Pack_nn unit.
27434
27435         * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
27436         as procedures.
27437         Needed now that we do some processing for IN parameters as well. This
27438         may well fix some unrelated errors.
27439         (Expand_Call): Handle case of unaligned objects (in particular those
27440         that come from packed arrays).
27441         (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
27442         renamed entity is an inherited operation, re-expand the call using the
27443         original operation, which is the one to call.
27444         Detect attempt to inline parameterless recursive subprogram.
27445         (Represented_As_Scalar): Fix to work properly with private types
27446         (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
27447         accurate estimate. Yields True in far fewer cases than before,
27448         improving the quality of code that depends on this test.
27449
27450         * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
27451         over both visible and private declarations to remove them from tree,
27452         and mark subprograms declared in package as eliminated, to prevent
27453         spurious use in subsequent compilation of generic units in the context.
27454
27455         * exp_util.ads: Minor cleanup in variable names
27456
27457         * sem_eval.ads, sem_eval.adb: Minor reformatting
27458         (Compile_Time_Known_Bounds): New function
27459
27460 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27461
27462         * exp_ch7.adb (Convert_View): Use base types of underlying types when
27463         determining whether an unchecked conversion is needed for the argument
27464         of an initialization call.
27465
27466 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27467
27468         * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
27469         that appears in the instantiation rather than the internal subtype
27470         generated in the wrapper package, to avoid anomalies in gigi when the
27471         target is derived from a private type whose full view is an access type.
27472
27473 2005-03-15  Robert Dewar  <dewar@adacore.com>
27474
27475         * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
27476         not needed.
27477         Add documentation to replace the use of this flag
27478         Fix kludge for Maximum_Alignment on x86 so that it does not apply to
27479         the x86_64.
27480
27481 2005-03-15  Thomas Quinot  <quinot@adacore.com>
27482
27483         * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
27484         here from exp_attr so it can be shared between exp_attr and exp_dist.
27485         (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
27486         all TSS names, not a subset thereof, and the previous name introduced
27487         an unnecessarily confusion that a distinction might exist between
27488         "OK" TSS names and some "not OK" TSS names.
27489
27490 2005-03-15  Doug Rupp  <rupp@adacore.com>
27491
27492         * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
27493         Command_Name.
27494
27495 2005-03-15  Pascal Obry  <obry@adacore.com>
27496             Eric Botcazou  <ebotcazou@adacore.com>
27497
27498         PR ada/20226
27499         PR ada/20344
27500         * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
27501         when IN_RTS. This is to work around a bootstrap path problem.
27502
27503         * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
27504         table and pass it to __gnat_install_SEH_handler().
27505         (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
27506
27507         * lang.opt: Fix specification of -fRTS=.
27508
27509 2005-03-15  Doug Rupp  <rupp@adacore.com>
27510             Bernard Banner  <banner@adacore.com>
27511             Vincent Celier  <celier@adacore.com>
27512             Arnaud Charlet  <charlet@adacore.com>
27513
27514         PR ada/6852
27515         This change works fine when gnatlib is built from the gcc directory,
27516         but does not work when using the libada Makefile, since GCC_FOR_TARGET
27517         is not passed to ada/Makefile.in, so more work is needed by a
27518         Makefile/configure expert.
27519
27520         * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
27521         set GMEM_LIB on ia64 linux to add optional support for gnatmem.
27522         Setup gnatlink switch -M for x86_64 linux, as it is already setup
27523         for Linux x86.
27524         (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
27525         Run ranlib on libgccprefix.a
27526         Define PREFIX_OBJS for Darwin, to build libgccprefix.
27527         (ADA_INCLUDE_SRCS): Split Ada packages.
27528
27529 2005-03-15  Robert Dewar  <dewar@adacore.com>
27530
27531         * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
27532
27533         * impunit.adb: Add GNAT.UTF_32
27534
27535         * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
27536
27537         * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
27538         now uses GNAT.UTF_32).
27539
27540         * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
27541         capabilities for categorizing characters using Unicode categories
27542
27543 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27544
27545         * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
27546         instantiation that has been rewritten as a package body, retrieve spec
27547         to generate proper name for implicit_with_clause.
27548         (Install_Parents): Recognize a parent that is an instantiation but has
27549         been rewritten as a package declaration during analysis.
27550
27551 2005-03-15  Javier Miranda  <miranda@adacore.com>
27552             Ed Schonberg  <schonberg@adacore.com>
27553
27554         * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
27555         parameter reported some error we immediately return. This improves the
27556         behaviour of the frontend in case of errors.
27557         (Install_Parent, Remove_Parent): Introduce new flag
27558         Parent_Unit_Visible, to preserve the proper visibility of the ultimate
27559         ancestor of a generic child unit, when the child is being instantiated.
27560         (Inline_Instance_Body): If we are compiling the private
27561         part or the body of a child unit, restore the proper visibility of the
27562         parents after compiling the instance body.
27563
27564 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27565             Javier Miranda  <miranda@adacore.com>
27566
27567         PR ada/15608
27568         * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
27569         of a private type, in which case it is underlying_type that denotes
27570         the proper task. Also modified to use the new entity attribute
27571         that is directly available in the task type and task subtype entities
27572         (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
27573         arrays when other dimensions than the first are constrained by
27574         discriminants of an enclosing record.
27575         (Insert_Explicit_Dereference): If the prefix is an indexed component or
27576         a combination of indexed and selected components, find ultimate entity
27577         and generate the appropriate reference for it, to suppress spurious
27578         warnings.
27579         (Note_Possible_Modification): If an entity name has no entity, return.
27580         (Is_Variable): A function call never denotes a variable.
27581         (Requires_Transient_Scope): For record types, recurse only on
27582         components, not on internal subtypes that may have been generated for
27583         constrained components.
27584
27585 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27586
27587         * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
27588         Eliminated as candidates for resolution. Both efficient, and avoids
27589         anomalies with operators declared in deleted code.
27590         (Process_Implicit_Dereference_Prefix): Use this procedure whenever
27591         expansion is disabled (as when compiling a generic) to prevent spurious
27592         warnings on prefixes of selected components.
27593
27594 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27595
27596         * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
27597         attached to a list before checking whether it appears in the private
27598         declarations of the current package.
27599         (Make_Inequality_Operator): Insert declaration in proper declarative
27600         list rather than just setting the Parent field, so that
27601         Is_Private_Declaration can handle it properly.
27602
27603 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27604
27605         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
27606         a renaming a body, check that the renamed subprogram in not intrinsic.
27607         (Find_Direct_Name): If several use_visible entities hide
27608         each other, and the context is a predefined file compiled through
27609         rtsfind, keep only the entity that comes from a predefined file.
27610
27611 2005-03-15  Geert Bosch  <bosch@adacore.com>
27612
27613         * s-fatgen.adb (Valid): Extend special exceptions to account for long
27614         long float padding to also cover AMD64 and IA64.
27615
27616 2005-03-15  Gary Dismukes  <dismukes@adacore.com>
27617
27618         * s-imgwch.adb: Add with and use of Interfaces.
27619         (Img_Wide_Character): Change type of Val to Unsigned_16.
27620         (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
27621
27622 2005-03-15  Matthew Gingell  <gingell@adacore.com>
27623
27624         * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
27625
27626 2005-03-15  Robert Dewar  <dewar@adacore.com>
27627
27628         * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
27629
27630         * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
27631
27632         * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
27633
27634 2005-03-15  Robert Dewar  <dewar@adacore.com>
27635
27636         * s-bitops.adb, s-bitops.ads,
27637         s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
27638         s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
27639         tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
27640         s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
27641         s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
27642         s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
27643         s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
27644         s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
27645         reformatting.
27646
27647 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
27648
27649         * utils2.c (build_binary_op): Fix typo.
27650
27651 2005-03-15  Doug Rupp  <rupp@adacore.com>
27652
27653         * s-crtl.ads (popen,pclose): New imports.
27654
27655 2005-03-15  Cyrille Comar  <comar@adacore.com>
27656
27657         * comperr.adb (Compiler_Abort): remove references to obsolete
27658         procedures in the bug boxes for various GNAT builds.
27659
27660 2005-03-15  Vincent Celier  <celier@adacore.com>
27661
27662         * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
27663
27664 2005-03-15  Geert Bosch  <bosch@adacore.com>
27665             Arnaud Charlet  <charlet@adacore.com>
27666             Robert Dewar  <dewar@adacore.com>
27667             Cyrille Comar  <comar@adacore.com>
27668             Sergey Rybin  <rybin@adacore.com>
27669
27670         * gnat_ugn.texi: Remove extended inline assembly example, as it was far
27671         too specific and long-winded to be appropriate for the GNAT User's
27672         Guide.
27673         Warn about use of GCC switches not documented in the GNAT User's Guide,
27674         as these may cause generated code to not conform to Ada semantics.
27675         Remove mention of -gdwarf-2 for sparc64, since this is now the default.
27676         Add documentation for -gnat95 and -gnat05 switches
27677         Remove paragraph documenting obsolete way to refer to third party
27678         libraries.
27679         Add a few references to Ada_05 that were missing.
27680         Update documentation on -gnatZ/-gnatL.
27681         Document limitation when using -m64 under Solaris.
27682         Change the "Name Casing" subsection of the pretty-printer section
27683         according to the changes in the dictionary processing.
27684
27685         * gnat_rm.texi: Document the Ada_05 pragma.
27686         Section on record representation clauses describes the new more
27687         relaxed rules about placement of large packed bit array components.
27688         Add documentation of GNAT.UTF_32
27689
27690 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
27691
27692         * misc.c (gnat_post_options): Turn off structural
27693         aliasing for now.
27694
27695 2005-03-08  Laurent Guerby  <laurent@guerby.net>
27696
27697         * system-linux-sparc.ads: Fix typo in previous commit.
27698
27699 2005-03-07  James A. Morrison  <phython@gcc.gnu.org>
27700             Laurent Guerby  <laurent@guerby.net>
27701
27702         PR ada/20035
27703         * system-linux-sparc.ads: New.
27704         * Makefile.in: Add sparc linux entry.
27705
27706 2005-02-27  Danny Smith  <dannysmith@users.sourceforge.net>
27707
27708         * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
27709         parameters as unused.
27710
27711 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
27712         Partial merge from libada-gnattools-branch:
27713
27714         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
27715         * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
27716         into code in gnattools/Makefile.in.  Remove direct dependencies on
27717         stamp-tools by tools clauses.
27718         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
27719         * config-lang.in: Add gnattools to $lang_dirs.
27720
27721 2005-02-13  Andrew Pinski  <pinskia@physics.uc.edu>
27722
27723         PR ada/19942
27724         * utils.c (gnat_type_for_mode): Return null instead of ICE because
27725         we asked for an unknown mode.
27726
27727 2005-02-12  Richard Henderson  <rth@redhat.com>
27728
27729         * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
27730         validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
27731
27732 2005-02-10  Andreas Jaeger  <aj@suse.de>
27733
27734         * init.c (__gnat_initialize): Mark parameter as unused.
27735
27736 2005-02-09  Doug Rupp  <rupp@adacore.com>
27737
27738         * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
27739         * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
27740
27741 2005-02-09  Doug Rupp  <rupp@adacore.com>
27742
27743         * gnatchop.adb (dup, dup2),
27744         g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
27745
27746         * gnatlbr.adb (mkdir),
27747         mlib-tgt-vms-ia64.adb (popen, plose):  Import with decc$ prefix.
27748
27749         * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
27750
27751 2005-02-09  Doug Rupp  <rupp@adacore.com>
27752
27753         * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
27754
27755 2005-02-09  Robert Dewar  <dewar@adacore.com>
27756             Thomas Quinot  <quinot@adacore.com>
27757             Javier Miranda  <miranda@adacore.com>
27758             Pascal Obry  <obry@adacore.com>
27759             Ed Schonberg  <schonberg@adacore.com>
27760             Doug Rupp  <rupp@adacore.com>
27761             Gary Dismukes  <dismukes@adacore.com>
27762             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27763
27764         * g-zstspl.ads: New file.
27765
27766         * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
27767
27768         * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
27769         Ada 95 mode
27770         Add definition of Wide_Wide_Space for AI-285
27771
27772         * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
27773         interface (to support Ada 95 and Ada 2005 units).
27774         Add Unbounded_IO files
27775         Add entries for Wide_Wide packages for AI-285
27776         Add list of containers packages to Ada 2005 unit list
27777
27778         * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
27779         support new Unbounded_IO package cleanly.
27780
27781         * g-utf_32.ads, g-utf_32.adb: New files.
27782
27783         * Makefile.rtl: Add entry for g-utf_32
27784         Add new files for Unbounded_IO
27785         Adjust make file for new AI-285 wide wide packages
27786         Add AI-302 containers to the run time.
27787
27788         * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
27789         a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
27790         subprograms for AI-301.
27791
27792         * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
27793
27794         * a-stunau.ads: Minor comment correction
27795
27796         * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
27797         etc.
27798         Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
27799         (Check_RPC): Update to match changes in expanded code.
27800         Clean up unused entity.
27801
27802         * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
27803         was not taken into account.
27804         This includes proper initialization with Normalize_Scalars.
27805         (Get_Simple_Init_Val): Major rewrite for initialize scalars and
27806         normalize scalars cases (particularly the latter) to do a better job
27807         of finding invalid representations.
27808
27809         * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
27810
27811         * s-strops.ads, s-strops.adb: Remove string normalize routines, never
27812         used
27813
27814         * exp_dist.adb: Add support for wide wide character type
27815         (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
27816         private part, generate stub bodies at the end of the private part,
27817         not the visible part.
27818         (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
27819         PolyORB support.
27820         (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
27821         generic wrapper to execute final processing after completing the
27822         expansion of the RPC receiver for an RACW.
27823
27824         * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
27825         packages and attributes.
27826         (Preset_Names): Addition of the new reserved words of Ada 2005,
27827         that is interface, overriding and synchronized.
27828         (Get_Pragma_Id): Give support to the use of the new reserved word
27829         "interface" as a pragma name.
27830         (Is_Pragma_Name): Give support to the use of the new reserved word
27831         "interface" as a pragma name.
27832         (Preset_Names): Add stream_size string for the Stream_Size Ada2005
27833         attribute implementation.
27834
27835         * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
27836         checks to entities that are output parameters of Asm operations.
27837         Handle the Stream_Size attribute.
27838         Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
27839
27840         * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
27841
27842         * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
27843         for second parameter being 0.0.
27844         Add support for wide wide character type.
27845         (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
27846
27847         * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
27848         s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
27849         s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
27850         s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
27851         for wide wide character cases.
27852
27853         * cstand.adb: Create entities for Wide_Wide_Character and
27854         Wide_Wide_String.
27855
27856         * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
27857         accordance with AI-258.
27858         Add new declarations for 16/32 bit C character types (Part of AI285)
27859
27860         * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
27861         (Obsolescent_Warning): New field
27862         (Rep_Clause): New local subprogram used to share code. Returns the rep
27863         clause for which the name is given in parameter.
27864         (Has_Stream_Size_Clause): New routine.
27865         (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
27866         (Address_Clause): Implementation is now using Rep_Clause.
27867         (Alignment_Clause): Idem.
27868         (Size_Clause): Idem.
27869
27870         * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
27871         entity in non-Ada 2005 mode and generate warning.
27872
27873         * par-prag.adb: Add handling of one argument form for pragma Ada_05.
27874         (Prag): Code cleanup. Remove old gnat pragma "overriding"
27875
27876         * sem_prag.adb: Add handling of one argument form for pragma Ada_05
27877         (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
27878         on the named unit if the pragma is not in the current compilation unit,
27879         so that elaboration calls in the current unit can set up an elaboration
27880         dependency on the named unit, as needed.
27881         (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
27882         subprogram as well as for subprograms declared within a package.
27883         (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
27884         pragma overriding.
27885
27886         * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
27887         to z) to avoid some instances of duplication for Wide_Wide packages.
27888
27889         * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
27890         characters.
27891
27892         * scn.adb: Char_Literal_Value field is now a Uint
27893
27894         * scng.adb: Significant rewrite to handle new Ada 2005 features
27895         allowing wide and wide wide characters in program text, e.g. for
27896         identifiers, as described in AI-285.
27897         (Set_Reserved): New procedure, makes setting up keywords cleaner.
27898         (Initialize_Scanner): Register the new reserved words of Ada 2005.
27899         (Scan): Give support to the new reserved words.
27900
27901         * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
27902         warning notifying that interface, overriding, and synchronized are
27903         new reserved words.
27904         (P_Pragma): Allow the use of the new reserved word "interface" as
27905         a pragma name.
27906
27907         * gnatls.adb, gnatbind.adb,
27908         ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
27909         identifiers named "interface" to "SAL_Interface".
27910
27911         * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
27912         (Structured Exception handling).
27913         (Gen_Main_C): Idem.
27914
27915         * bindgen.adb:
27916         (Gen_Main_Ada): Set the default exit code if specified.
27917         (Gen_Main_C): Likewise.
27918         Part of *DC20-006.
27919         (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
27920         Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
27921
27922         * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
27923         new -Xnnn switch.
27924
27925         * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
27926         has a collision with the new Ada 2005 "interface" reserved word.
27927
27928         * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
27929         generate a warning notifying that interface, overriding, and
27930         synchronized are new reserved words.
27931
27932         * scans.ads (Token_Type): Addition of the tokens corresponding to the
27933         new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
27934         and Tok_Synchronized.
27935
27936         * sem_res.adb (Resolve_Actuals): Change error messages to refer to
27937         "dispatching" rather than "primitive" operations, since dispatching
27938         calls are now allowed to abstract formal subprograms (which are not
27939         primitive).
27940         Char_Literal_Value field is now a Uint
27941         (Resolve_Slice): If the prefix is an access to an unconstrained array,
27942         compute the actual subtype of the designated object to impose the proper
27943         index constraints.
27944         (Resolve_Selected_Component): Do not insert an access check if the
27945         prefix is an access type: such a node is expanded into an explicit
27946         dereference, on which the access check is performed anyway. Removes
27947         expensive duplicate checks.
27948         (Resolve_Call): Use new flag Is_Obsolescent and field
27949         Obsolescent_Warning so that pragma Obsolescent works on library
27950         subprograms.
27951         Add support for wide wide character type
27952         (Resolve_Allocator): Replace the error message on wrong null-exclusion
27953         value by a warning message.
27954         (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
27955         as fixed-point, and one of the operands is non-static and universal, it
27956         can only be an illegal exponentiation operation, in which case there is
27957         no real value to retrieve.
27958
27959         * exp_strm.adb: Add support for wide wide character type
27960         (Build_Elementary_Input_Call): Compute the size of the stream element by
27961         querying the rep chain to find the Stream_Attribute attribute value.
27962         (Build_Elementary_Write_Call): Ditto.
27963
27964         * sem_aggr.adb: Char_Literal_Value field is now a Uint
27965         Add support for wide wide character type
27966         Replace the error messages on wrong null-exclusion value by warnings
27967         as described in Ada 2005.
27968         (Resolve_Extension_Aggregate): Document the fact that the error
27969         message on class-wide expressions in extensions aggregates.
27970
27971         * sem_case.adb: Add support for wide wide character type
27972
27973         * sem_ch13.adb: Add support for wide wide character type
27974         (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
27975
27976         * sem_ch3.adb: Add support for wide wide character type
27977         (Process_Subtype): If constraint is illegal for the type, set Ekind of
27978         now-useless Itype, to prevent cascaded errors on a compiler built
27979         without -gnatp.
27980
27981         * sem_ch8.adb: Add with and use of Sem_Disp.
27982         (Analyze_Subprogram_Renaming): Replace unclean uses of
27983         Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
27984         of Corresponding_Spec to Empty).
27985         (Attribute_Renaming): Replace use of Corresponding_Spec with
27986         Corresponding_ Formal_Spec and simplify condition.
27987         (Use_One_Package): Check that scope of homonym of identifier is defined,
27988         before checking whether it is a wrapper package.
27989         Add support for wide wide character type
27990
27991         * sem_eval.adb: Add support for wide wide character type.
27992         (Eval_Arithmetic_Op): Check for compile time known signed integer
27993         overflow in the non-static case.
27994         (Subtypes_Statically_Match): A formal scalar type and its base type do
27995         not statically match.
27996
27997         * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
27998         "not in" for test of N_Formal_Subprogram_Declaration (which is now a
27999         subtype).
28000         (Unit_Declaration_Node): Ditto.
28001         (Is_Variable_Prefix):  For the case of an indexed component whose prefix
28002         has a packed array type, the prefix has been rewritten into a type
28003         conversion. Determine variable-ness from the converted expression.
28004         Handle wide wide character cases.
28005
28006         * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
28007
28008         * stringt.ads, stringt.adb: Handle full UTF-32 range.
28009         Remove ["0A"] from comment, since it can look like a line terminator.
28010         Currently we don't permit this, but this is under discussion by the
28011         ARG, and it is easy enough to use a different example.
28012
28013         * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
28014         handling UTF-32 encoding for wide wide character.
28015         Implement new brackets coding ["hhhhhhhh"]
28016         Add UTF-8 encodings for full UTF-32 range
28017
28018         * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
28019
28020         * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
28021         bit range Add full UTF-32 support.
28022         (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
28023         notify that constraint error will be raised at run-time
28024         because a null value is assigned to a null-excluding object.
28025         Remove some obsolete declarations and make Char_Code
28026         unsigned.
28027
28028         * a-except.adb (Rcheck_30): New subprogram. Addition of the message
28029         corresponding to CE_Null_Not_Allowed, and adjust the output of all the
28030         Rcheck subprograms.
28031
28032         * checks.adb (Check_Null_Not_Allowed): Replace the error message on
28033         wrong null-exclusion value by a warning message.
28034         (Enable_Range_Check): Do range check if the prefix is an
28035         explicit dereference whose designated object is an unconstrained array.
28036         Current algorithm for removing duplicate checks is over-eager in this
28037         case.
28038
28039         * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
28040         null-exclusion value by a warning message
28041
28042         * atree.h, atree.ads, atree.adb: Remove Char_Code field support
28043         completely. Add support for Uint2 field
28044
28045         sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
28046         exp_prag.adb: Char_Literal_Value field is now a Uint.
28047
28048         * exp_util.adb (Insert_Actions): Replace
28049         N_Formal_Subprogram_Declaration by
28050         N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
28051         Char_Literal_Value field is now a Uint.
28052
28053         * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
28054         defined for subprogram renaming declarations. When set, the field
28055         indicates the defining entity of a corresponding formal subprogram
28056         when the renaming corresponds to a formal subprogram association in an
28057         instantiation.
28058         (Set_Corresponding_Formal_Spec): New procedure to return
28059         Corresponding_Formal_Spec field.
28060         Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
28061         (which is now a subtype).
28062         Char_Literal_Value field is now a Uint
28063
28064         * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
28065         pointer to the base of the dispatch table.
28066         Minor changes to comments.
28067         (Controlling_Type): New function for determining the tagged type
28068         associated with a tagged primitive subprogram.
28069         (Expand_Dispatching_Call): Add support for a controlling actual that is
28070         directly a value of type Ada.Tag rather than a tagged object.
28071
28072         * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
28073         describing the new layout.
28074         (Dispatch_Table): The expander computes the actual array size, allocates
28075         the Dispatch_Table record accordingly, and generates code that displaces
28076         the base of the record after the Typeinfo_Ptr component. The access to
28077         these components is done by means of local functions.
28078         (Offset_To_Top): New function.
28079         (Typeinfo_Ptr): New function.
28080         (Get_TSD): Modified to access the new position of the TSD.
28081         (Set_TSD): Modified to save the TSD in its new position.
28082
28083         * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
28084         case of formal abstract subprograms. Add check and message for -gnat05.
28085         Update comments.
28086
28087         * sem_ch12.adb: Add with and use for Sem_Disp.
28088         (Analyze_Associations): Minor change from "=" to "in" for use of
28089         N_Formal_Subtype_Declaration (which is now a subtype).
28090         (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
28091         N_Formal_Subtype_Declaration (which is now a subtype).
28092         (Analyze_Formal_Subprogram): Add handling for
28093         N_Formal_Abstract_Subprogram, marking the formal as abstract and
28094         dispatching, setting the controlling status of the formal parameters
28095         and result, and issuing an error if there is no controlling type for
28096         the formal subprogram.
28097         (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
28098         which is an unclean use of that field, we set the new field
28099         Corresponding_Formal_Spec to make the formal subprogram available to
28100         processing in Analyze_Subprogram_Declaration.
28101         (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
28102         Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
28103         Constrained, so that it is is does not statically match its anonymous
28104         base type.
28105
28106         * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
28107         abstract formal subprograms in error check for functions returning
28108         abstract types. Set scope of new designator for
28109         a parameterless subprogram, so that it is available when checking the
28110         body for nested subprograms, before full analysis of said body.
28111         (Analyze_Subprogram_Body): Warn on inlining bodies with nested
28112         subprogram only if inner one comes from source.
28113         (Analyze_Function_Call): If the call is given in object notation, the
28114         analysis of the name rewrites the node and analyzes it with the proper
28115         argument list. After analyzing the name, if the call has been rewritten
28116         and the result type is set, no further analysis is needed.
28117         (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
28118         mark in function specification, in a context where the formals are
28119         visible and hide outer homographs.
28120
28121         * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
28122         as the tagged type for the cases of abstract formal subprograms and
28123         renamings of those.  Clean up spec comments.
28124         (Check_Dispatching_Context): Add error message to indicate "abstract
28125         procedure", covering the case of a call to a formal abstract procedure
28126         that has statically tagged operands.
28127         (Check_Dispatching_Call): Check for the case of an actual given by
28128         a tag-indeterminate function call whose type is an ancestor of the
28129         containing call's associated tagged type. This situation can occur
28130         for inherited primitives with function defaults. In this case we
28131         use the tagged type's tag directly as the controlling argument for
28132         the calls.
28133         (Expand_Call): Name change on call to Expand_Dispatch_Call.
28134
28135         * sprint.adb (Sprint_Node_Actual): Split
28136         N_Formal_Subprogram_Declaration into two alternatives for the new
28137         cases N_Formal_Abstract_Subprogram_Declaration and
28138         N_Formal_Concrete_Subprogram_Declaration.
28139         Char_Literal_Value field is now a Uint.
28140
28141         * trans.c: Get rid of junk Uint2 reference.
28142         Char_Literal_Value field is now a Uint.
28143         (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
28144         (gigi): Correct third arg to gimplify_body.
28145
28146         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
28147         (TYPE_LANG_FLAG_0): Check for record or union.
28148
28149         * treepr.adb: Char_Literal_Value field is now a Uint
28150
28151         * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
28152         UI_From_CC.
28153
28154         * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
28155         Add full UTF-32 support
28156         Char_Code is now 32 bits
28157
28158         * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
28159         wide character UTF_32 line terminators.
28160         Initialize Main_Source_File to avoid error when no main
28161         source is loaded.
28162
28163         * errout.adb (Finalize): Do not check Num_SRef_Pragmas
28164         (Main_Source_File) when no main source has been loaded, to avoid
28165         potential crash.
28166
28167 2005-02-09  Robert Dewar  <dewar@adacore.com>
28168
28169         * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
28170         Fix name of Set routine
28171
28172         * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
28173         fixed packages.
28174
28175         * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
28176         a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
28177         fixed packages
28178
28179         * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
28180         forms of Get_Line subprograms for AI-301.
28181
28182         * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
28183         a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
28184         a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
28185         a-stwima.ads: Minor reformatting.
28186
28187 2005-02-09  Doug Rupp  <rupp@adacore.com>
28188             Thomas Quinot  <quinot@adacore.com>
28189
28190         * adaint.c, adaint.h
28191         [VMS] (to_ptr32): New function.
28192         (MAYBE_TO_PTR32): New macro.
28193         (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
28194         for pointer size.
28195         [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
28196         [VMS] (#define fork()): Remove since unneccessary.
28197         (__gnat_set_close_on_exec): New routine to support
28198         GNAT.OS_Lib.Set_Close_On_Exec.
28199
28200         * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
28201         the parent side as close-on-exec so that they are not inherited by the
28202         child.
28203
28204         * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
28205         set or clear the FD_CLOEXEC flag on a file descriptor.
28206
28207 2005-02-09  Eric Botcazou  <ebotcazou@adacore.com>
28208             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28209
28210         PR ada/19386
28211         * decl.c:
28212         (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
28213         on the field if Pragma Component_Alignment (Storage_Unit).
28214         (gnat_to_gnu_entity, case object): Do not treat a renaming that has
28215         side-effects as if it were a constant; also make SAVE_EXPR to protect
28216         side-effects.
28217         (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
28218         UNION_TYPE.
28219         (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
28220         (components_to_record): Test it.
28221         Fix improper usage of REFERENCE_CLASS_P.
28222
28223         * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
28224         RECORD_TYPE.
28225
28226         * utils2.c: Minor reformatting.
28227
28228         * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
28229         handle other cases like RECORD_TYPE.
28230
28231         * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
28232
28233 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
28234
28235         * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
28236         component of an array of arrays in an assignment context, and the
28237         aggregate has component associations that require sliding on
28238         assignment, force reanalysis of the aggregate to generate a temporary
28239         before the assignment.
28240         (Must_Slide): Make global to the package, for use in Gen_Assign.
28241
28242 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
28243
28244         * exp_ch4.adb (Expand_Composite_Equality): If a component is an
28245         unchecked union with no inferable discriminants, return a
28246         Raise_Program_Error node, rather than inserting it at the point the
28247         type is frozen.
28248         (Expand_Record_Equality, Component_Equality): Handle properly the case
28249         where some subcomponent is an unchecked union whose generated equality
28250         code raises program error.
28251
28252 2005-02-09  Doug Rupp  <rupp@adacore.com>
28253
28254         * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
28255         [VMS] (#define exit hack): Remove.
28256
28257 2005-02-09  Pascal Obry  <obry@adacore.com>
28258             Arnaud Charlet  <charlet@adacore.com>
28259
28260         * init.c (__gnat_initialize): Add a new parameter eh which contains the
28261         address of the exception registration. The Win32 version of this
28262         routine calls __gnat_install_SEH_handler() to initialize the SEH
28263         (Structured Exception Handling) handler.
28264         (__gnat_error_handler) [Win32]: Removed. Not needed as we use
28265         SEH (Structured Exception Handling) now.
28266         (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
28267         (__gnat_initialize for ppc-vxworks): Adjust comments and the
28268         preprocessor condition protecting the call to the extra eh setup
28269         subprogram, which is only available for the ppc target.
28270         (__gnat_clear_exception_count): replaced reference to
28271         variable taskIdCurrent by call to taskIdSelf(), cleaner.
28272
28273         * seh_init.c: New file.
28274
28275         * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
28276         (GNATBIND_OBJS): Idem.
28277
28278         * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
28279         routine takes a new parameter (a pointer to the exception registration
28280         for the SEH (Structured Exception Handling) support.
28281
28282         * raise.h: (__gnat_install_SEH_handler): New prototype.
28283         Update copyright notice.
28284
28285         * s-tassta.adb (Task_Wrapper): Declare the exception registration
28286         record and initialize it by calling __gnat_install_SEH_handler.
28287
28288 2005-02-09  Vincent Celier  <celier@adacore.com>
28289
28290         * make.adb (Gnatmake): Do not fail when the main project has no object
28291         directory.
28292
28293 2005-02-09  Doug Rupp  <rupp@adacore.com>
28294
28295         * Makefile.in [VMS] (LN,LN_S): Define as cp -p
28296         Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
28297         [VMS]: Add translations for g-enblsp.adb.
28298
28299         * s-asthan-vms.adb: Removed.
28300         * s-asthan-vms-alpha.adb: Added.
28301
28302 2005-02-09  Pascal Obry  <obry@adacore.com>
28303
28304         * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
28305         (LIBGNAT_OBJS): Add seh_init.o.
28306
28307 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28308
28309         PR ada/16592
28310         * Makefile.in: Link all gnat tools with -static-libgcc, since
28311         -shared-libgcc is now used by default on some systems (e.g. linux with
28312         recent binutils).
28313         Remove references to Makefile.prolog/generic, no longer used.
28314
28315 2005-02-09  Vincent Celier  <celier@adacore.com>
28316
28317         * prj-makr.adb (Process_Directory): Put file name in canonical case
28318         before matching against the patterns.
28319         If gnatname has been invoked as <prefix>-gnatname
28320         then invoke the compiler as <prefix>-gcc, not just "gcc".
28321
28322 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
28323
28324         * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
28325         with expansion disabled. The actual subtype is needed among other
28326         places when the selected component appears in the context of a loop
28327         bound, and denotes a packed array.
28328         (Operator_Check): Always use the first subtype in the
28329         error message, to avoid the appearance of internal base types.
28330         (Transform_Object_Operation): Copy each actual in full
28331         to the parameter associations of the constructed call, rather than
28332         using the shallow copy mechanism of New_Copy_List. This ensures that
28333         the chaining of named associations is done properly.
28334         (Complete_Object_Operation): Rewrite node, rather than
28335         replacing it, so that we can trace back to the original selected
28336         component.
28337
28338         * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
28339         and calls that use object notation, if the called function is not
28340         declared  in a withed unit, place the elaboration constraint on the
28341         unit in the context that makes the function accessible.
28342         (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
28343         imposes an elaboration constraint between two packages.
28344
28345 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
28346
28347         * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
28348         views of a private type after handling its private dependents, to
28349         maintain proper stack discipline between entry and exit from the
28350         package.
28351
28352 2005-02-09  Cyrille Comar  <comar@adacore.com>
28353
28354         * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
28355         Minor reformatting.
28356
28357 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28358
28359         * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
28360         fields for foreign threads.
28361
28362 2005-02-09  Doug Rupp  <rupp@adacore.com>
28363
28364         * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
28365         recursion warnings when compiled with -gnatdm.
28366
28367 2005-02-09  Robert Dewar  <dewar@adacore.com>
28368
28369         * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
28370         Slight fix to documentation of -gnaty with no parameters
28371
28372         * xr_tabls.ads: Add ??? comment for missing overall comment
28373
28374         * xsinfo.adb: Make default file name be sinfo.h, since this is what
28375         we now use by default.
28376
28377         * xsnames.adb: Adjust end of file test to look for five space followed
28378         by '#' instead of six spaces. The format of xsnames.adb was modified
28379         in the last update.
28380
28381         * a-numeri.ads: Add reference to AI-388 for greek letter pi
28382         identifier.
28383
28384         * clean.adb: Minor reformatting.
28385
28386         * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
28387         gnatname.adb: Minor reformatting
28388         Add 2005 to copyright output when utility is run
28389
28390         * csets.adb: Eliminate obsolete comment
28391
28392         * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
28393         Update comments.
28394
28395         * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
28396
28397 2005-02-09  Sergey Rybin  <rybin@adacore.com>
28398
28399         * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
28400         the difference between compact and incompact layout and add the record
28401         representation clause to the example illustrating different layouts.
28402         Add the description of '-A5' gnatpp option ("align 'AT' keywords in
28403         component clauses").
28404
28405 2005-02-09  Florian Villoing  <villoing@adacore.com>
28406
28407         * gnat_ugn.texi: Fix typos.
28408         Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
28409         @file.
28410         Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
28411         in the generated documentation.
28412
28413 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28414
28415         * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
28416         longer supported.
28417         Update linker wrapper when linking with non GNU C++.
28418
28419 2005-02-09  Pascal Obry  <obry@adacore.com>
28420
28421         * gnat_ugn.texi:
28422         Document the procedure to debug the DllMain routine on Windows.
28423         Add note about -funwind-tables and mixed Ada and C/C++ programming in
28424         ZCX mode.
28425         Document new BIND qualifer /RETURN_CODES=VMS.
28426
28427 2005-02-09  Ben Brosgol  <brosgol@adacore.com>
28428
28429         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
28430         Edited gnatmetric chapter
28431
28432 2005-02-09  Robert Dewar  <dewar@adacore.com>
28433
28434         * gnat_rm.texi:
28435         Changes to document new wide wide character support
28436         For AI-285
28437         Update documentation on Normalize_Scalars and Initialize_Scalars
28438
28439 2005-02-09  Pascal Obry  <obry@adacore.com>
28440
28441         * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
28442
28443 2005-02-09  Jose Ruiz  <ruiz@adacore.com>
28444
28445         * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
28446         from the VxWorks kernel) that is needed for getting the active
28447         priority of the different tasks.
28448
28449         * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
28450         Use a pragma Elaborate_Body in the spec file instead.
28451         Noticed by code reading.
28452
28453 2005-02-09  Thomas Quinot  <quinot@adacore.com>
28454
28455         * exp_util.ads: Minor correction in comment.
28456
28457 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28458
28459         * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
28460         since this procedure is now too complex to be worth inlining.
28461
28462 2005-02-09  Richard Henderson  <rth@redhat.com>
28463
28464         * utils.c (gnat_define_builtin): Remove.
28465         (gnat_install_builtins): Use build_common_builtin_nodes.
28466
28467 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28468
28469         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
28470         a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
28471         a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
28472         a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
28473         a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
28474         a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
28475         a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
28476         a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
28477         a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
28478         a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
28479         a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
28480         a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
28481         a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
28482         a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
28483         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
28484         a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
28485         a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
28486         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
28487         a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
28488         a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
28489         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
28490         a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
28491         a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
28492         a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
28493         a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
28494         a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
28495         a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
28496         a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
28497         a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
28498         a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
28499         a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
28500         a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
28501         a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
28502         a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
28503         library.
28504
28505 2005-01-27  Laurent Guerby  <laurent@guerby.net>
28506
28507         * Makefile.in: Fix a-intnam.ads from previous commit,
28508         add 2005 to copyright.
28509         * a-intman-rtems.ads: Renamed to...
28510         * a-intnam-rtems.ads:
28511
28512 2005-01-27  Laurent Guerby  <laurent@guerby.net>
28513
28514         * Makefile.in: Rename GNAT RTEMS specific files.
28515         * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
28516         5rosinte.ads, 5rparame.adb: Replaced by files below.
28517         * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
28518         s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
28519
28520 2005-01-27  Joel Sherrill  <joel.sherrill@oarcorp.com>
28521             Laurent Guerby  <laurent@guerby.net>
28522
28523         PR ada/19488
28524         * 5rosinte.ads: Add No_Key constant.
28525         * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
28526         * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
28527
28528 2005-01-26  Laurent Guerby  <laurent@guerby.net>
28529
28530         PR ada/19414
28531         * i-cobol.adb (Valid_Numeric): Handle zero length case.
28532
28533 2005-01-20  Richard Henderson  <rth@redhat.com>
28534
28535         * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
28536         a-intnam-linux.ads and system-linux-alpha.ads.
28537         * a-intnam-linux-alpha.ads: Remove file.
28538         * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
28539         * system-linux-alpha.ads: New file.
28540
28541 2005-01-18  Jakub Jelinek  <jakub@redhat.com>
28542
28543         PR ada/13470
28544         * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
28545         set to the new string.
28546
28547 2005-01-18  Toon Moene  <toon@moene.indiv.nluug.nl>
28548
28549         * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
28550         to True.
28551
28552 2005-01-18  Richard Henderson  <rth@redhat.com>
28553
28554         * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
28555         THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
28556         for alpha-linux.
28557         * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
28558
28559 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
28560
28561         * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
28562         (GCC_ZCX_Support): Likewise.
28563
28564 2005-01-11  Bastian Blank  <waldi@debian.org>
28565
28566         * system-linux-s390.ads: Define Preallocated_Stacks.
28567         * system-linux-s390x.ads: Likewise.
28568
28569 2005-01-04  Arnaud Charlet  <charlet@adacore.com>
28570
28571         * gnat_ugn.texi: Fix texi errors with null variables.
28572
28573 2005-01-03  Thomas Quinot  <quinot@adacore.com>
28574
28575         * gen-soccon.c: New utility program to generate g-soccon.ads
28576         automatically.
28577
28578         * socket.c, gsocket.h: Split inclusion of system header files into a
28579         gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
28580
28581         * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
28582         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
28583         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
28584         g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
28585         should not be edited by hand anymore, but should be regenerated using
28586         gen-soccon.
28587
28588 2005-01-03  Robert Dewar  <dewar@adacore.com>
28589             Ed Schonberg  <schonberg@adacore.com>
28590             Vincent Celier  <celier@adacore.com>
28591
28592         * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
28593         on/off, since this is an obsolescent feature, for which we now generate
28594         a warning.
28595
28596         * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
28597         warning mode is set and obsolescent usage of this attribute occurs.
28598         (Resolve_Access, case 'Access): Note that GNAT uses the context type to
28599         disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
28600         predates, and partly motivates, the adoption of the AI.
28601         Implement new Ada 2005 attribute Mod
28602
28603         * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
28604         attribute Mod.
28605
28606         * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
28607
28608         * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
28609         pragma restrictions.
28610         New entry for Ada 2005 attribute Mod.
28611
28612         * par-prag.adb:
28613         Add recognition of new pragma Restrictions No_Dependence
28614         Recognize restriction No_Obsolescent_Features at parse time
28615
28616         * bcheck.adb: Add circuitry for checking for consistency of
28617         No_Dependence restrictions.
28618
28619         * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
28620         restrictions.
28621
28622         * restrict.ads, restrict.adb: Add subprograms to deal with
28623         No_Dependence restrictions.
28624
28625         * rtsfind.adb: Check that implicit with's do not violate No_Dependence
28626         restrictions.
28627
28628         * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
28629         sem_attr.adb: Add check for new restriction No_Obsolescent_Features
28630
28631         * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
28632         dummy parameter to scng instantiation.
28633         Needed for new restriction No_Obsolescent_Features
28634
28635         * scn.adb: (Obsolescent_Check): New procedure
28636         Needed for new restriction No_Obsolescent_Features
28637
28638         * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
28639         specified by AI-285, needed for implementation of AI-388 (adding greek
28640         pi to Ada.Numerics).
28641         Add new generic formal to scng, needed for new restriction
28642         No_Obsolescent_Features.
28643
28644         * s-rident.ads: Add new restriction No_Obsolescent_Features.
28645
28646         * ali.ads, ali.adb: Adjustments for reading new No_Dependence
28647         restrictions lines.
28648         (Scan_ALI): When finding an unexpected character on an R line, raise
28649         exception Bad_R_Line, instead of calling Fatal_Error, so that, when
28650         Ignore_Errors is True, default restrictions are set and scanning of the
28651         ALI file continues with the next line. Also, when Bad_R_Line is raised
28652         and Ignore_Errors is True, skip to the end of le line.
28653
28654         * sem_ch10.adb: Check that explicit with's do not violate
28655         No_Dependence restrictions.
28656         (Install_Withed_Unit): Add code to implement AI-377 and diagnose
28657         illegal context clauses containing child units of instance.
28658
28659         * sem_prag.adb: Processing and checking for new No_Dependence
28660         restrictions.
28661         (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
28662         analyze and check the External argument.
28663
28664         * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
28665
28666 2005-01-03  Robert Dewar  <dewar@adacore.com>
28667
28668         * atree.adb: Add a fifth component to entities
28669         This allows us to add 32 flags and four new fields
28670
28671         * atree.ads: Add a fifth component to entities
28672         This allows us to add 32 flags and four new fields
28673
28674         * einfo.ads, einfo.adb: Document new fields and new flags now available
28675         Add routines for printing new fields
28676
28677         * treepr.adb: Call routines to print out additional fields if present
28678
28679 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
28680
28681         * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
28682         gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
28683
28684         * Makefile.in: Add support to build shared Ada libraries on solaris x86
28685         Remove gpr2make, replaced by gprmake.
28686         Remove references to gnatmem and libaddr2line.
28687         Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
28688         (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
28689         Add support for specialized version of Ada.Numerics.Aux for Darwin: use
28690         a-numaux-darwin.ads and a-numaux-darwin.adb
28691         Enable mlib-tgt-lynxos.adb on lynxos.
28692
28693         * Make-lang.in: Remove rules for gpr2make.
28694         When generating sdefault.adb, do not call Relocate_Path
28695         on S3 for function Target_Name, as it is not a path.
28696         Remove references to gnatmem and libaddr2line.
28697
28698         * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
28699         files.
28700
28701 2005-01-03  Samuel Tardieu  <tardieu@adacore.com>
28702
28703         * checks.adb (Apply_Alignment_Check): Generate a warning if an object
28704         address is incompatible with its base type alignment constraints when
28705         this can be decided statically.
28706
28707 2005-01-03  Olivier Hainque  <hainque@adacore.com>
28708
28709         * decl.c (compatible_signatures_p): New function. The intended purpose
28710         is to check if two function signatures for a call-site and a callee are
28711         compatible enough for the call to be valid. The underlying purpose is
28712         to check if a call to a mapped builtin is using the right interface.
28713         The current code actually does not check antyhing - this a placeholder
28714         for future refinements.
28715         (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
28716         builtin calls for convention Intrinsic.
28717
28718         * gigi.h (builtin_decl_for): Declare (new function).
28719
28720         * utils.c (gnat_install_builtins): Install the target specific builtins.
28721         (builtin_decl_for): New function, provide a dummy body for now.
28722
28723 2005-01-03  Geert Bosch  <bosch@adacore.com>
28724
28725         * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
28726         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
28727         (Pred): Implement in terms of Succ.
28728
28729         * trans.c (convert_with_check): Reimplement conversion of float to
28730         integer.
28731
28732 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
28733             Vincent Celier  <celier@adacore.com>
28734
28735         * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
28736         bounds can be negative, and must be declared Int, not Nat.
28737
28738         * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
28739         array is checked after using the index in the array.
28740
28741         * makegpr.adb (Add_Switches): Check if there is a package for the
28742         processor. If there is no package, do not look for switches.
28743
28744 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
28745
28746         * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
28747         generation of predefined stream operations (specs and bodies) should
28748         proceed. Under various restrictions these subprograms must not be
28749         generated.
28750
28751 2005-01-03  Thomas Quinot  <quinot@adacore.com>
28752
28753         * exp_dist.adb:
28754         Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
28755         amount of PCS-specific code in RACW stubs generation.
28756         (Copy_Specification): Set Etype on copied formal parameter entities, as
28757         this information is needed for PolyORB stubs generation.
28758         (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
28759         variable Dynamic_Async.
28760         (Build_Subprogram_Receiving_Stubs): Make PCS-specific
28761         (Build_RPC_Receiver_Specification): Make generic again, as recent
28762         changes have allowed RPC receivers to have the same profile for both
28763         variants of the PCS.
28764         Reorganise RPC receiver generation to reduce differences between the
28765         structure of GARLIC and PolyORB RPC receivers.
28766         (Add_Receiving_Stubs_To_Declarations): Make this subprogram
28767         PCS-specific.
28768         Simplify elaboration code for RCI packages.
28769
28770         * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
28771         generation to reduce differences between the structure of GARLIC and
28772         PolyORB RPC receivers.
28773
28774         * s-stratt.adb: Fix typo in comment.
28775
28776 2005-01-03  Thomas Quinot  <quinot@adacore.com>
28777
28778         * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
28779         copied from Make_Init_Call).
28780
28781         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
28782         reads and assignments on a temporary variable declared with appropriate
28783         discriminants.
28784
28785 2005-01-03  Robert Dewar  <dewar@adacore.com>
28786
28787         * i-c.adb (To_C): Raise CE if string is null and Append_Null
28788
28789 2005-01-03  Robert Dewar  <dewar@adacore.com>
28790
28791         * i-cstrin.adb (Update): Do not append a null in form called with a
28792         String. This avoids unintended behavior.
28793
28794 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
28795
28796         PR ada/17527
28797         * init.c: Fix warnings on Free BSD section.
28798
28799 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
28800
28801         PR ada/16949
28802         * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
28803         xsinfo.adb).
28804
28805 2005-01-03  Vincent Celier  <celier@adacore.com>
28806
28807         * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
28808         libraries when Unique_Compile is True (-u switch).
28809         (Gnatmake): ditto.
28810
28811 2005-01-03  Robert Dewar  <dewar@adacore.com>
28812
28813         * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
28814         upper case letter or underscore after W, as allowed by spec.
28815
28816 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
28817
28818         * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
28819         darwin port by using proper type definitions from header files.
28820         Use SIGTERM instead of SIGABRT for SIGADAABORT.
28821
28822 2005-01-03  Robert Dewar  <dewar@adacore.com>
28823
28824         * par.adb: Enhance error message handling for configuration file
28825         pragmas.
28826
28827 2005-01-03  Robert Dewar  <dewar@adacore.com>
28828
28829         * s-arit64.adb (Double_Divide): Put back changes that got accidentally
28830         removed during the previous update (test properly for case of dividing
28831         largest negative number by -1, which generates overflow).
28832
28833 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
28834             Sergey Rybin  <rybin@adacore.com>
28835
28836         * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
28837         to use as the defining identifier for a formal package.
28838         (Remove_Parent): If the instance takes place within (an instance of)
28839         a sibling, preserve private declarations of common parent.
28840
28841 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
28842
28843         * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
28844         to determine whether one of the operands is a fixed-point type for
28845         which a user-defined multiplication or division operation might be
28846         defined.
28847
28848         * sem_res.adb (Valid_Conversion): The legality rules for conversions
28849         of access types are symmetric in Ada 2005: either designated type can
28850         be unconstrained.
28851
28852 2005-01-03  Vincent Celier  <celier@adacore.com>
28853
28854         * s-fileio.adb (Temp_File_Record): Change length of string component
28855         Name from L_tmpnam + 1 to max_path_len + 1.
28856
28857 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
28858
28859         * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
28860         Self_Id.Deferral_Level = 0.
28861         (Do_Pending_Action): Move this function to the spec.
28862
28863         * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
28864         Do_Pending_Action explicitely when needed, in case we're using
28865         No_Abort restrictions.
28866
28867         * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
28868         deferral level since it will not get changed by the generated code.
28869         Keeping a default value of 1 would prevent some operations (e.g.
28870         select or delay) to proceed successfully.
28871
28872 2005-01-03  Ben Brosgol  <brosgol@adacore.com>
28873             Robert Dewar  <dewar@adacore.com>
28874             Cyrille Comar  <comar@adacore.com>
28875
28876         * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
28877         porting guide chapter (vms version).
28878         Revised doc title (removed "for native platforms") and subtitle.
28879         Add discussion on warning flag for obsolescent features. First we
28880         note that it applies to obsolete GNAT features, which was previously
28881         omitted. Second we contrast the behavior with that of the new
28882         Ada 2005 AI-368 restriction No_Obsolescent_Features.
28883         Preliminary rewriting of GNAT & libraries chapter in order to take
28884         into account default project locations & new project manager
28885         capabilities.
28886
28887 2005-01-03  Robert Dewar  <dewar@adacore.com>
28888
28889         * cstand.adb (Create_Operators): Clean up format and documentation of
28890         unary and binary operator result tables. No change in code, just
28891         reformatting and addition of comments.
28892
28893         * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
28894         sem_ch2.adb: Minor reformatting
28895
28896         * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
28897         sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
28898         comments for Tree_Read and Tree_Write.
28899
28900 2005-01-03  Pascal Obry  <obry@adacore.com>
28901
28902         * exp_attr.ads: Minor reformatting.
28903
28904 2005-01-03  Romain Berrendonner  <berrendo@adacore.com>
28905
28906         * comperr.adb (Compiler_Abort): Add specialized message for GAP
28907         versions.
28908
28909 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
28910
28911         * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
28912         whether the ancestor type is private, as may be the case with nested
28913         instantiations.
28914
28915 2004-12-30  Sohail Somani  <sohail@sohailsomani.com>
28916
28917         PR ada/19128
28918         * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
28919
28920 2004-12-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
28921
28922         * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
28923         * utils2.c (build_unary_op): Likewise.
28924
28925 2004-12-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28926
28927         * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
28928
28929 2004-12-19  Richard Henderson  <rth@redhat.com>
28930
28931         * trans.c (gigi): Update gimplify_body call.
28932
28933 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
28934
28935         * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
28936
28937 2004-12-07  Ed Falis  <falis@adacore.com>
28938
28939         * s-intman-vxworks.adb (Notify_Exception): removed useless check for
28940         current task being suspended.
28941
28942         * init.c (__gnat_clear_exception): added to reset VxWorks exception
28943         count.
28944         (__gnat_map_signal): removed test for current task being suspended.
28945
28946 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
28947
28948         * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
28949         from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
28950         targets (such as AAMP).
28951
28952 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
28953
28954         * atree.adb (Visit_Itype): Create a new name for the generated itype,
28955         because the back-end may otherwise treat it as a redefinition of the
28956         old symbol.
28957
28958 2004-12-07  Eric Botcazou  <ebotcazou@adacore.com>
28959
28960         * back_end.adb (Scan_Back_End_Switches): Accept --param.
28961
28962         * lang-specs.h: Accept --param.
28963
28964 2004-12-07  Vincent Celier  <celier@adacore.com>
28965
28966         * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
28967         package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
28968         Current_Body_Suffix => Ada_Body_Suffix).
28969         Take into account Externally_Built attribute.
28970
28971         * clean.adb (In_Extension_Chain): Always return False when one of the
28972         parameter is No_Project.
28973         (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
28974         Ada_Language_Index).
28975         (Gnatclean): Adapt to change in package Prj.Pars (no parameter
28976         Process_Languages for procedure Parse).
28977
28978         * gnatcmd.adb (Carg_Switches): New table.
28979         (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
28980         Adapt to name changes in package Prj (Current_Spec_Suffix =>
28981         Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
28982
28983         * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
28984         Header_Num and function Hash are now declared in package Prj,
28985         not Prj.Com.
28986
28987         * prj.adb (Suffix_Of): New function.
28988         (Set (Suffix)): New procedure.
28989         (Hash): One function moved from Prj.Com
28990         (Is_Present, Language_Processing_Data_Of): New functions
28991         (Set): Two new procedures
28992         (Add_Language_Name, Display_Language_Name): New procedures
28993
28994         * prj.ads: (Suffix_Of): New function
28995         (Set (Suffix)): New procedure
28996         Add several types and tables for multi-language support.
28997         (Header_Num): Type moved from Prj.Com
28998         (Hash): Two functions moved from Prj.Com
28999         (Is_Present, Language_Processing_Data_Of): New functions
29000         (Set): Two new procedures
29001         (Add_Language_Name, Display_Language_Name): New procedures
29002         (Naming): Component name changes:
29003         Current_Spec_Suffix => Ada_Spec_Suffix,
29004         Current_Body_Suffix => Ada_Body_Suffix. Add new components:
29005         Impl_Suffixes, Supp_Suffixes.
29006         (Project_Data): New components: Externally_Built, Supp_Languages,
29007         First_Language_Processing, Supp_Language_Processing, Default_Linker,
29008         Default_Linker_Path.
29009
29010         * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
29011         new package Language_Processing with its attributes (Compiler_Driver,
29012         Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
29013         Binder_Driver, Default_Linker).
29014
29015         * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
29016         (Header_Num): Type moved to package Prj
29017
29018         * prj-env.adb: Adapt to name changes in package Prj
29019         (Current_Spec_Suffix => Ada_Spec_Suffix,
29020         Current_Body_Suffix => Ada_Body_Suffix).
29021
29022         * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
29023         default to the project path, except the "-" is one of the directories
29024         in env var ADA_PROJECT_PATH.
29025         (Current_Project_Path): Global variable, replacing Project_Path
29026         that was in the body of Prj.Part.
29027         (Project_Path): New function
29028         (Set_Project_Path): New procedure
29029         Initialize Current_Project_Path during elaboration of the package
29030         Remove dependency on Prj.Com, no longer needed
29031
29032         * prj-ext.ads (Project_Path): New function
29033         (Set_Project_Path): New procedure
29034
29035         * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
29036         suffix is defined for language <lang>.
29037         (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
29038         accessing directly the components of Naming.
29039         (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
29040         Reorganise of this package.
29041         Break procedure Check in several procedures.
29042
29043         * prj-nmsc.ads: Replace all procedures (Ada_Check,
29044         Other_Languages_Check and Language_Independent_Check) with a single
29045         procedure Check.
29046
29047         * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
29048         Process_Languages, no longer needed.
29049
29050         * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
29051         Current_Project_Path.
29052         Remove elaboration code, moved to the body of Prj.Ext
29053         Use new function Prj.Ext.Project_Path instead of old variable
29054         Project_Path.
29055         (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
29056         When comparing with project paths on the stack, first put the resolved
29057         path in canonical case.
29058         (Parse_Single_Project): Set the path name of the project file in the
29059         tree to the normalized path.
29060
29061         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
29062         parameter Process_Languages, no longer needed.
29063         (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
29064         Other_Languages_Check.
29065
29066         * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
29067         to store the resolved canonical path of the project file.
29068         Remove dependency to Prj.Com, no longer needed
29069
29070         * prj-util.adb: Adapt to name changes in package Prj
29071         (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
29072         Ada_Body_Suffix).
29073
29074         * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
29075         Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
29076         Externally_Built, Include_Option, Language_Processing.
29077
29078         * makegpr.adb: Numerous changes due to changes in packages
29079         Prj and Prj.Nmsc.
29080
29081         * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
29082         default to the project path, except whe "-" is one of the directories
29083         in env var ADA_PROJECT_PATH.
29084         (Gnatls): In verbose mode, add the new section "Project Search Path:"
29085
29086 2004-12-07  Robert Dewar  <dewar@adacore.com>
29087
29088         * debug.adb: Document that -gnatdA automatically sets -gnatR3m
29089
29090         * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
29091         set -gnatR3m mode.
29092
29093         * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
29094         flag. No longer needed now that we handle this in gnat1drv.adb.
29095
29096         * repinfo.ads: Minor reformatting
29097
29098 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29099             Olivier Hainque  <hainque@adacore.com>
29100             Eric Botcazou  <ebotcazou@adacore.com>
29101
29102         * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
29103         TYPE_SIZE_UNIT of result type if SIZE is not specified.
29104         (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
29105         of a bitfield, which we know is useless and causes trouble because of
29106         alignment implications.
29107
29108         * utils.c (create_var_decl): Set DECL_COMMON again on targets without
29109         BSS sections.
29110         (process_attributes): Clear DECL_COMMON again when a section attribute
29111         is present.
29112         (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
29113         SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
29114         (create_field_decl): Special case ADDRESSABLE negative to mean
29115         "no bitfield creation", to be used by make_aligning_type. Don't
29116         restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
29117         fields claimed addressable still have to be bitfields. Use
29118         value_factor_p instead of a raw binop construction to check for the
29119         position's alignment.
29120
29121 2004-12-07  Geert Bosch  <bosch@adacore.com>
29122
29123         * eval_fat.adb: Revert previous change.
29124
29125 2004-12-07  Thomas Quinot  <quinot@adacore.com>
29126             Ed Schonberg  <schonberg@adacore.com>
29127
29128         * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
29129         with an implicit dereference as its prefix, use
29130         Insert_Explicit_Dereference instead of merely rewriting the prefix into
29131         an explicit dereference. This ensures that a reference to the original
29132         prefix is generated, if appropriate.
29133
29134         * sem_util.adb (Insert_Explicit_Dereference): When an implicit
29135         dereference is rewritten to an explicit one, generate a reference to
29136         the entity denoted by its prefix using the original prefix node, so
29137         the dereference can be properly recorded as a read of the denoted
29138         access value, if appropriate.
29139
29140         * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
29141         emitting 'assigned but never read' warning on a variable on the basis
29142         that it has an access type.
29143         (Check_References): Emit unreferenced warning when the scope is a
29144         subprogram body.
29145
29146 2004-12-07  Robert Dewar  <dewar@adacore.com>
29147             Ed Schonberg  <schonberg@adacore.com>
29148
29149         * exp_ch6.adb (Expand_Call): Add comment on handling of back end
29150         intrinsic
29151
29152         * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
29153         leaving call unchanged.
29154         This deals with the case where the pragma Import specified
29155         an external name, to be handled by the back end.
29156
29157         * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
29158         subprogram which is Imported with convention Intrinsic if an
29159         External_Name argument is specified.
29160         (Process_Import_Or_Interface): Properly diagnose link name argument.
29161         (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
29162         with Sem_Ch6.Cannot_Inline.
29163         (Process_Inline): Provide separate warning for inapplicable inline
29164         pragma.
29165         (Cannot_Inline): Reject subprograms that have an at_end handler, so that
29166         treatment is uniform on different targets.
29167
29168 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
29169
29170         * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
29171         construct is rewritten, preserve end label to permit source navigation.
29172
29173 2004-12-07  Thomas Quinot  <quinot@adacore.com>
29174
29175         * exp_dist.adb (Specific_Build_General_Calling_Stubs,
29176         Specific_Build_Stub_Target): New subprograms.
29177         (Build_Subprogram_Calling_Stubs): Make this procedure independent from
29178         the PCS implementation used, using the above PCS-customized subprograms.
29179         Minor reformatting.
29180         (PolyORB_Support.Helpers): New subunit containing supporting subprograms
29181         for generation of DSA code targeted to the PolyORB PCS.
29182         (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
29183         implementation of the partition communication subsystem in ancillary
29184         subprograms.
29185         (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
29186         PolyORB_Support.Build_Stub_Type): New subrograms containing the
29187         PCS-specific part of Add_Stub_Type.
29188         (Insert_Partition_Check): Use runtime library function to perform
29189         E.4(19) check.
29190
29191         * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
29192         (RE_Same_Partition): New entity, from s-parint.
29193
29194         * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
29195
29196 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
29197
29198         * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
29199         Output the copyright message on a separate line from the version
29200         message.
29201
29202 2004-12-07  Joel Brobecker  <brobecker@adacore.com>
29203
29204         * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
29205         compile-time warning.
29206
29207 2004-12-07  Robert Dewar  <dewar@adacore.com>
29208
29209         * g-regpat.adb: (Match): Change a misuse of or to or else
29210
29211 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
29212
29213         * lib-xref.adb:
29214         (Generate_Reference): Handle properly a reference to an entry formal,
29215          when an accept statement has a pragma Unreferenced for it.
29216
29217         * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
29218         and the Has_Pragma_Unreferenced flag for each formal before analyzing
29219         the body, to ensure that warnings are properly emitted for each accept
29220         statement of a given task entry.
29221
29222 2004-12-07  Vasiliy Fofanov  <fofanov@adacore.com>
29223
29224         * Makefile.in: Add support for foreign threads on VMS.
29225
29226 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29227
29228         * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
29229         Remove.
29230         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
29231
29232         * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
29233
29234         * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
29235         exception.
29236         (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
29237
29238 2004-12-07  Robert Dewar  <dewar@adacore.com>
29239
29240         * nlists.adb (Prepend_Debug): Remove parameters and nest within
29241         Prepend.
29242         (Remove_Next_Debug): Same fix
29243
29244         * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
29245         maintain back pointers now, though we did not used to, and comments
29246         were out of date).
29247         (Prepend): Remove pragma Inline.
29248         (Remove_Next): Same cleanup
29249
29250 2004-12-07  Thomas Quinot  <quinot@adacore.com>
29251
29252         * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
29253         used to record an implicit dereference as a read operation on its
29254         prefix when operating under -gnatc. Necessary to avoid spurious
29255         'variable assigned but never read' warnings in that mode.
29256         (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
29257         is a non-overloaded implicit dereference, call the above subprogram to
29258         ensure proper recording of references.
29259
29260 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
29261
29262         * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
29263         to be resolved later as part of Analyze_Iteration_Scheme's call to
29264         Make_Index.
29265
29266 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
29267
29268         * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
29269         prefix is not a scalar type, place error message on prefix, not on
29270         type entity.
29271
29272 2004-12-07  Bernard Banner  <banner@adacore.com>
29273
29274         * vxaddr2line.adb: Add support for x86 vxworks
29275
29276 2004-12-07  Thomas Quinot  <quinot@adacore.com>
29277
29278         * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
29279         documentation of the behaviour of these functions when passed an IP
29280         address that has no record in the system hosts database and no reverse
29281         record in the DNS.
29282
29283         * cstand.adb, a-tags.ads: Fix typos in comment.
29284
29285 2004-12-07  Robert Dewar  <dewar@adacore.com>
29286
29287         * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
29288         exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
29289         sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
29290         s-poosiz.ads: Minor reformatting
29291
29292         * make.adb: Minor reformatting
29293         Add some ??? comments asking for more comments
29294
29295         * s-poosiz.adb: Minor reformatting
29296         Add comments on alignment requirement
29297
29298         * sinfo.ads: Remove obsolete comment and fix typo.
29299
29300 2004-12-07  Vincent Celier  <celier@adacore.com>
29301             Sergey Rybin  <rybin@adacore.com>
29302
29303         * gnat_ugn.texi: Update the section "The GNAT Driver and Project
29304         Files" with the new tool and package names.
29305         Reformatting to suppress most of the warnings for line too long
29306         Document the new section "Project Search Path:" in the output of
29307         gnatls -v.
29308         Add gnatmetric section
29309
29310 2004-12-07  Vincent Celier  <celier@adacore.com>
29311
29312         * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
29313         -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
29314         and -eit to -ept. Added qualifier
29315         /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
29316
29317 2004-11-27  Andreas Schwab  <schwab@suse.de>
29318
29319         * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
29320
29321 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
29322
29323         * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
29324         internal implementation unit GNAT.Sockets.Thin,
29325         as their usage for sockets is non-portable (using the read and write
29326         functions from the system runtime library is fine on UNIX but won't
29327         work under Windows).
29328
29329         * mingw32.h: Update copyright notice.
29330
29331 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
29332
29333         * ada-tree.h: Minor reformatting of previous change to avoid lines
29334         longer than 79 characters.
29335
29336 2004-11-25  Olivier Hainque  <hainque@adacore.com>
29337
29338         * tb-gcc.c: GCC infrastructure based implementation of
29339         __gnat_backtrace.
29340
29341 2004-11-24  Steven Bosscher  <stevenb@suse.de>
29342
29343         * misc.c (gnat_post_options): Don't clear
29344         flag_inline_functions.
29345
29346 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
29347
29348         PR ada/17986
29349         * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
29350         tree.
29351
29352 2004-11-21  Andreas Jaeger  <aj@suse.de>
29353
29354         * stylesw.adb: Change Style_Check_Subprogram_Order to
29355         Style_Check_Order_Subprograms.
29356
29357 2004-11-18  Arnaud Charlet  <charlet@adacore.com>
29358
29359         * adaint.h, adaint.c
29360         (__gnat_portable_spawn): Fix cast of spawnvp third parameter
29361         to avoid warnings.
29362         Add also a cast to kill another warning.
29363         (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
29364         parameter with the priority class of the parent process instead of
29365         always using the NORMAL_PRIORITY_CLASS.
29366         (__gnat_dup): New function.
29367         (__gnat_dup2): New function.
29368         (__gnat_is_symbolic_link): Enable the effective body of this
29369         function when __APPLE__ is defined.
29370
29371         * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
29372         Update comments.
29373
29374 2004-11-18  Olivier Hainque  <hainque@adacore.com>
29375
29376         * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
29377         address of which may be used to represent "others" and "all others"
29378         choices in exception tables, instead of the current harcoded
29379         (void *)0 and (void *)1.
29380         (Setup_Exception): Do nothing in the GNAT SJLJ case.
29381
29382         * gigi.h (others_decl, all_others_decl): New decls representing the
29383         new Others_Value and All_Others_Value objects.
29384         (struct attrib): Rename "arg" component as "args", since GCC expects a
29385         list of arguments in there.
29386
29387         * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
29388         corresponding objects exported by a-exexpr, instead of hardcoded dummy
29389         addresses.
29390
29391         * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
29392         others_decl and all_others_decl instead of hardcoded dummy addresses
29393         to represent "others" and "all others" choices, which is cleaner and
29394         more flexible with respect to the possible eh pointer encoding policies.
29395
29396         * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
29397         (process_attributes): Account for the naming change of the "args"
29398         attribute list entry component.
29399
29400         * decl.c (build_attr_list): Rename into prepend_attributes to allow
29401         cumulating attributes for different entities into a single list.
29402         (gnat_to_gnu_entity): Use prepend_attributes to build the list of
29403         attributes for the current entity and propagate first subtype
29404         attributes to other subtypes.
29405         <E_Procedure>: Attribute arguments are attr->args and not
29406         attr->arg any more.
29407         (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
29408         argument provided, as this is what GCC expects. Use NULL_TREE instead
29409         of 0 for trees.
29410
29411 2004-11-18  Robert Dewar  <dewar@adacore.com>
29412
29413         * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
29414         Minor reformatting througout (including new function specs)
29415         Add ??? comments asking for clarification.
29416
29417 2004-11-18  Thomas Quinot  <quinot@adacore.com>
29418
29419         * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
29420         incomplete duplicate implementation of this subprogram from butil.
29421
29422 2004-11-18  Thomas Quinot  <quinot@adacore.com>
29423
29424         * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
29425         procedures factors the common processing for building an RPC receiver
29426         for an RCI package or an RACW type.
29427         Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
29428         Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
29429         (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
29430         in use.
29431         (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
29432         Add_RACW_Features.
29433         (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
29434         Add_RAST_Features.
29435         (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
29436         distribution subprogram identifiers that are either subprogram numbers
29437         or strings.
29438         (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
29439         string distribution identifiers assigned to a given subprogram.
29440         (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
29441         (Add_RAS_Dereference_TSS): Add comments.
29442         (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
29443         is not referenced yet because it will be used by the PolyORB DSA
29444         implementation.
29445         (Insert_Partition_Check): Remove fossile code.
29446         (First_RCI_Subprogram_Id): Document this constant.
29447         (Add_RAS_Access_TSS): Correct the setting of the Etype of the
29448         RAS_Access TSS.
29449         (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
29450         replaced with calls to Get_Library_Unit_Name_String. Previously there
29451         were several instances of the same code in different locations in the
29452         compiler; this checkin completes the replacement of all of these
29453         instances with calls to a common subprogram.
29454         Minor reformatting.
29455
29456         * sem_dist.adb: Remove comment noting that RPC receiver generation
29457         should be disabled for RACWs that implement RASs.
29458         (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
29459
29460         * sem_util.ads, sem_util.adb (Has_Stream): New function
29461         (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
29462         qualified name of a library unit into the name buffer.
29463         (Note_Possible_Modification): Generate a reference only
29464         if the context comes from source.
29465
29466         * snames.ads (PCS_Names): New subtype corresponding to names of
29467         supported implementations of the Partition Communication Subsystem
29468         (PCS) (i.e. the runtime library support modules for the distributed
29469         systems annex).
29470
29471 2004-11-18  Robert Dewar  <dewar@adacore.com>
29472             Ed Schonberg  <schonberg@adacore.com>
29473
29474         * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
29475         (Has_Rep_Pragma): New function
29476         (Has_Attribute_Definition_Clause): New function
29477         (Record_Rep_Pragma): Moved here from sem_ch13.adb
29478         (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
29479
29480         * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
29481
29482         * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
29483         (Expand_Pragma_Psect_Object): New procedure
29484         These procedures contain the revised and cleaned up processing for
29485         these two pragmas. This processing was formerly in Sem_Prag, but
29486         is more appropriately moved here. The cleanup involves making sure
29487         that the pragmas are properly attached to the tree, and that no
29488         nodes are improperly shared.
29489
29490         * sem_prag.adb: Move expansion of Common_Object and Psect_Object
29491         pragmas to Exp_Prag, which is more appropriate.
29492         Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
29493         check for duplicates Remove use of Is_Psected flag, no longer needed.
29494         Use new Make_String_Literal function with string.
29495
29496         * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
29497         that are functions return universal values, that have to be converted
29498         to the context type.
29499         Use new Make_String_Literal function with string.
29500         (Get_Stream_Convert_Pragma): New function, replaces the use of
29501         Get_Rep_Pragma, which had to be kludged to work in this case.
29502
29503         * freeze.adb: Use new Has_Rep_Pragma function
29504
29505         * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
29506         function with string.
29507         Use new Has_Rep_Pragma function.
29508
29509         * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
29510         string argument.
29511
29512 2004-11-18  Robert Dewar  <dewar@adacore.com>
29513
29514         * errout.ads, errout.adb: (First_Sloc): New function
29515
29516         * par-ch5.adb (P_Condition): Check for redundant parens is now a style
29517         check (-gnatyx) instead of being included as a redundant construct
29518         warning.
29519
29520         * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
29521         Style_Check_Order_Subprograms.
29522
29523         * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
29524         stylesw.adb: Add Style_Check_Xtra_Parens
29525
29526         * usage.adb: Add line for -gnatyx (check extra parens)
29527
29528         * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
29529
29530 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
29531             Robert Dewar  <dewar@adacore.com>
29532
29533         * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
29534         discriminant of a constrained subtype, analyze the copy of the
29535         corresponding constraint, because in some cases it may be only
29536         partially analyzed.
29537         Removes long-lived ??? comments.
29538
29539         * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
29540         handled controlled or secondary-stack expressions within the
29541         iteration_scheme of a loop.
29542
29543         * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
29544         bounds that may contain functions calls, to prevent memory leaks when
29545         the bound contains a call to a function that uses the secondary stack.
29546         (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
29547         generate temporaries for loop bounds that might contain function calls
29548         that require secondary stack and/or finalization actions.
29549
29550         * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
29551         selected component and the selector is overloadable (not just a
29552         function) treat as function call, Analyze_Call will disambiguate if
29553         necessary.
29554         (Analyze_Selected_Component): Do not generate an actual subtype for the
29555         selected component if expansion is disabled. The actual subtype is only
29556         needed for constraint checks.
29557         (Analyze_Allocator): If restriction No_Streams is set, then do
29558         not permit objects to be declared of a stream type, or of a
29559         composite type containing a stream.
29560
29561         * restrict.ads: Remove the a-stream entry from Unit_Array, since
29562         No_Streams no longer prohibits with'ing this package.
29563
29564         * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
29565         discriminants, but the parent base has unknown discriminants, there is
29566         no discriminant constraint to inherit. Such a discrepancy can arise
29567         when the actual for a formal type with unknown discriminants is a
29568         similar private type whose full view has discriminants.
29569         (Analyze_Object_Declaration): If restriction No_Streams is set, then
29570         do not permit objects to be declared of a stream type, or of a
29571         composite type containing a stream.
29572
29573 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
29574
29575         * exp_dbug.ads: Update documentation to reflect simpler encoding for
29576         protected operations.
29577
29578         * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
29579         generated name, it complicates decoding in gdb and hinders debugging
29580         of protected operations.
29581         (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
29582         flag for the protected entry barrier function.
29583         (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
29584         flag for the protected entry function.
29585
29586 2004-11-18  Nicolas Setton  <setton@adacore.com>
29587
29588         * expect.c: Define __unix__ when __APPLE__ is defined.
29589
29590         * Makefile.in: Inform the value of the variable GMEM_LIB in the
29591         Darwin-specific section.
29592
29593         * lang-specs.h: Change the placement of the %1 marker.
29594         Works around the fact that gcc adds -fPIC by default under Darwin.
29595
29596 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
29597
29598         * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
29599         type of the object with the packed array type, set the Analyzed flag
29600         on the object if it is an entity or simple indexed component, to avoid
29601         spurious type errors.
29602
29603 2004-11-18  Gary Dismukes  <dismukes@adacore.com>
29604
29605         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
29606         gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
29607         separate line from the version message.
29608
29609 2004-11-18  Ed Falis  <falis@adacore.com>
29610
29611         * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
29612         vthreads.
29613         (init_float): Eliminate initialization of floating point status for
29614         AE653. The instructions have no effect for vThreads.
29615
29616 2004-11-18  Vincent Celier  <celier@adacore.com>
29617
29618         * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
29619         gnatbind is invoked with -shared.
29620
29621 2004-11-18  Jose Ruiz  <ruiz@adacore.com>
29622
29623         * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
29624         for Detect_Blocking which is redundant with the check done within the
29625         procedure Protected_Single_Entry_Call.
29626         (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
29627         Detect_Blocking which is redundant with the check done within the
29628         procedure Protected_Single_Entry_Call.
29629
29630 2004-11-18  Vincent Celier  <celier@adacore.com>
29631
29632         * makegpr.adb (Compile): Put the compiling switches (in package
29633         Compiler and on the command line) immediately after "-c", instead of
29634         at the end of the command line invocation of the compiler, when
29635         compiling a non-Ada file.
29636         (Build_Global_Archive): When there is no need to rebuild the archive,
29637         set Global_Archive_Exists, so that the archive is passed to the linker
29638         if one is needed.
29639
29640 2004-11-18  Robert Dewar  <dewar@adacore.com>
29641             Sergey Rybin  <rybin@adacore.com>
29642
29643         * gnat_ugn.texi:
29644         Remove extra paren check from list of checks for redundant constructs
29645         Add documentation of new -gnatyx style check (check extra parens)
29646         Remove paragraph about gnatelim debug options.
29647
29648         * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
29649         objects rather than forbidding dependencies on the package Ada.Streams.
29650
29651         * sinfo.ads: Add ??? note that we should document pragmas passed to
29652         back end.
29653
29654         * g-expect.ads: Fix a few typos in the comments.
29655
29656 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
29657
29658         * misc.c (gnat_handle_option): Use %< and %> for quoting in
29659         warning message.
29660
29661 2004-11-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
29662
29663         * a-numaux-x86.adb (Tan): Fix fdivp syntax.
29664
29665 2004-11-07  Andreas Schwab  <schwab@suse.de>
29666
29667         * Makefile.in (install-gnatlib): Remove spurious hyphen.
29668
29669 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
29670
29671         PR ada/18228
29672         * Makefile.in (darwin): Set soext to .dylib.
29673
29674 2004-10-26  Vincent Celier  <celier@gnat.com>
29675             Thomas Quinot   <quinot@act-europe.fr>
29676
29677         * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
29678         (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
29679         there is no use of GNAT.Sockets.Constants.
29680         Remove remaining pragma Import for C_Write
29681         Remove C_Read and C_Write from internal implementation unit
29682         GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
29683         the read and write functions from the system runtime library is fine
29684         on UNIX but won't work under Windows).
29685
29686         * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
29687         (Check_Selector): Use C_Recv instead of C_Read.
29688         Selectors are the GNAT.Sockets abstraction to perform a select()
29689         call on a set of descriptors. To allow abortion of an ongoing
29690         select operation, some data is written to a dedicated socket that
29691         is always monitored.
29692         Under Windows, the write and read library functions cannot operate
29693         on sockets, so we need to use send and recv instead, which is portable
29694         across all supported platforms.
29695
29696         * g-socthi.ads: Remove C_Read and C_Write from internal implementation
29697         unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
29698         (using the read and write functions from the system runtime library is
29699         fine on UNIX but won't work under Windows).
29700
29701 2004-10-26  Nicolas Setton  <setton@act-europe.fr>
29702
29703         * mlib-tgt-darwin.adb: New file.
29704
29705         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29706         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
29707         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
29708         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
29709         subprogram body.
29710
29711         * Makefile.in: Add support for building shared libraries under Darwin.
29712         (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
29713         the low level EH init subprogram to be called from __gnat_initialize.
29714
29715         * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
29716         indicates which options to pass to the archive indexer.
29717
29718         * mlib-utl.adb: Add support for calling ranlib with additional
29719         options. This is needed for instance under Mac OS X.
29720         (Ranlib_Options): New global variable, used to store the potential
29721         options to pass to ranlib.
29722         (Ar): Use Ranlib_Options when spawning ranlib.
29723         (Initialize): Set the value of ranlib option.
29724
29725 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
29726
29727         * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
29728         instead of 8K, to reflect the real potential needs for stack-checking
29729         in the ZCX case.
29730
29731 2004-10-26  Pascal Obry  <obry@gnat.com>
29732
29733         * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
29734
29735         * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
29736         Windows only the initial thread stack size can be set so it is good to
29737         start we a low stack size.
29738         The OS will adjust the size as needed.
29739
29740 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
29741             Nicolas Setton  <setton@act-europe.fr>
29742
29743         * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
29744         "__unix__" instead of "unix".
29745         The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
29746         sections were just mistakenly ignored. The former is
29747         implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
29748         Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
29749         of hpux. This prevents an unwanted definition of the symbol
29750         convert_addresses in adaint.o.
29751
29752 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
29753
29754         * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
29755         compatibility with type Unwind_Word on 16-bit targets such as AAMP.
29756
29757 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
29758
29759         * a-filico.ads, a-filico.adb: fix incorrect header.
29760
29761 2004-10-26  Javier Miranda  <miranda@gnat.com>
29762
29763         * a-ststio.ads: Fix typo in identifier
29764
29765 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
29766
29767         * sem_ch4.adb: Minor reformatting.
29768
29769 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29770
29771         * checks.adb (Expr_Known_Valid): If floating-point validity checks are
29772         enabled, check the result of unary and binary operations when the
29773         expression is the right-hand side of an assignment.
29774
29775 2004-10-26  Vincent Celier  <celier@gnat.com>
29776
29777         * clean.adb (Delete): Do not output warnings when in quiet output and
29778         not in verbose mode.
29779         (Force_Deletions): New Boolean flag, defaulted to False
29780         (Delete): Only delete a file if it is writable, and when
29781         Force_Deletions is True.
29782         (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
29783         (Usage): Line for new switch -f
29784         (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
29785         own.
29786
29787 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
29788
29789         * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
29790         JM type only if its size matches that of the wrapper.  When a size is
29791         prescribed and the field is not aliased, remove the wrapper of a JM
29792         type only if the size is not greater than that of the packed array.
29793         (gnat_to_gnu_entity): Change the extension of packed array wrappers
29794         from LJM to JM.
29795
29796 2004-10-26  Geert Bosch  <bosch@gnat.com>
29797
29798         * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
29799         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
29800         (Pred): Implement in terms of Succ.
29801
29802 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29803
29804         * exp_aggr.adb (Safe_Component): An aggregate component that is an
29805         unchecked conversion is safe for in-place use if the expression of the
29806         conversion is safe.
29807         (Expand_Array_Aggregate): An aggregate that initializes an allocator may
29808         be expandable in place even if the aggregate does not come from source.
29809         (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
29810         designated object of an allocator in place, rather than building it
29811         first on the stack. The previous scheme forces a full copy of the array,
29812         and may be altogether unsusable if the size of the array is too large
29813         for stack allocation.
29814
29815 2004-10-26  Robert Dewar  <dewar@gnat.com>
29816
29817         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
29818         compares if the component is atomic.
29819
29820         * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
29821         array assignment if the component type is atomic.
29822
29823 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29824             Eric Botcazou  <ebotcazou@act-europe.fr>
29825
29826         * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
29827         is aliased and is a by_reference type, do not pass by copy.
29828         (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
29829         detect whether the call is in the right side of an assignment or
29830         the expression of an object declaration.  Recurse on component
29831         association within aggregates.
29832         Call it in the condition that determines whether the temporary is
29833         necessary for correct stack-checking.
29834
29835 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
29836
29837         * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
29838         RACW_Type, used in the PolyORB version.
29839         Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
29840         version and the GARLIC version.
29841
29842         * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
29843         Rename RCI_Info to RCI_Locator for better consistency between the
29844         GARLIC and PolyORB versions of the distributed systems annex.
29845         (DSA_Implementation_Name): This enumeration lists the possible
29846         implementations of the Partition Communication Subsystem for the
29847         Distributed Systems Annex (DSA). The three available implementations
29848         are the dummy stub implementation (No_DSA), and two versions based on
29849         two different distribution runtime libraries: GARLIC and PolyORB. Both
29850         the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
29851         technology.
29852         Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
29853         that organization.
29854
29855         * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
29856         between the GARLIC and PolyORB versions of the distributed systems
29857         annex.
29858         Remove RE_Unbounded_Reclaim_Pool since it is unused.
29859
29860 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
29861
29862         * gnat1drv.adb: Suppress calling the back end when
29863         Frontend_Layout_On_Target is true.
29864
29865 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
29866
29867         * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
29868         Set_Read_Only): New subprograms.
29869         These new routines allow the user to set or unset the Owner execute
29870         and Owner write permission flags on a file.
29871
29872         * makegpr.adb, mlib.adb, mlib-prj.adb: Use
29873         GNAT.OS_Lib.Set_Executable instead of rolling our own.
29874
29875 2004-10-26  Matthew Gingell  <gingell@gnat.com>
29876
29877         * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
29878
29879 2004-10-26  Pascal Obry  <obry@gnat.com>
29880
29881         * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
29882         memory before the faulting page we properly test the process read
29883         access for this address using appropriate Win32 routine.
29884         (HPUX sections): guard with "__hpux__" instead of "hpux".
29885
29886 2004-10-26  Robert Dewar  <dewar@gnat.com>
29887
29888         * lib-xref.adb (Generate_Reference): Don't complain about reference to
29889         entry parameter if pragma Unreferenced set, since we do not properly
29890         handle the case of multiple parameters.
29891
29892 2004-10-26  Vincent Celier  <celier@gnat.com>
29893
29894         * prj-env.adb: (Contains_ALI_Files): New Boolean function
29895         (Ada_Objects_Path.Add): For a library project, add to the object path
29896         the library directory only if there is no object directory or if the
29897         library directory contains ALI files.
29898         (Set_Ada_Paths.Add.Recursive_Add): Ditto
29899
29900 2004-10-26  Vincent Celier  <celier@gnat.com>
29901
29902         * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
29903         extension of library projects.
29904
29905         * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
29906         path defaults to ".:<prefix>/lib/gnat".
29907         (Parse): For an extending all project, allow direct import of a project
29908         that is virtually extended.
29909
29910         * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
29911         the specified name is directly imported, return its ID. Otherwise, if
29912         an extension of this project is imported, return the ID of the
29913         extension.
29914
29915 2004-10-26  Robert Dewar  <dewar@gnat.com>
29916
29917         * s-arit64.adb: (Le3): New function, used by Scaled_Divide
29918         (Sub3): New procedure, used by Scaled_Divide
29919         (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
29920         correct more than one instance of failure to propagate carries
29921         correctly.
29922         (Double_Divide): Handle overflow case of largest negative number
29923         divided by minus one.
29924
29925         * s-arit64.ads (Double_Divide): Document that overflow can occur in
29926         the case of a quotient value out of range.
29927         Fix comments.
29928
29929 2004-10-26  Robert Dewar  <dewar@gnat.com>
29930
29931         * s-bitops.adb (Bit_Eq): Remove redundant check.
29932
29933         * s-bitops.ads: Minor comment updates
29934         Change some occurrences of Address to System.Address
29935
29936         * s-carsi8.ads: Fix minor cut-and-paste error in comments
29937
29938 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29939
29940         * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
29941         accessibility check to prefix that is a protected operation.
29942
29943 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29944
29945         * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
29946         empty, post message on stub.
29947
29948 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29949             Javier Miranda  <miranda@gnat.com>
29950
29951         * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
29952         current instance appears within a unit that is directly in the context
29953         of the main unit.
29954         Used to determine whether the body of the instance should be analyzed
29955         immediately after its spec, to make its subprogram bodies available
29956         for front-end inlining.
29957         (Analyze_Formal_Array_Type): Cleanup condition that checks that range
29958         constraint is not allowed on the component type (AARM 12.5.3(3))
29959
29960 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
29961
29962         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
29963         'Storage_Pool): enhance, document & limit detection of non-sharable
29964         internal pools.
29965
29966         * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
29967
29968         * s-pooglo.ads: Add more documentation now that this pool is properly
29969         documented.
29970
29971 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29972
29973         * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
29974         or protected type with discriminants, do not constrain the
29975         corresponding record type if the subtype declaration has no
29976         discriminant constraints. This can be the case in source code, or in
29977         the subtype declaration created to rename an actual type within an
29978         instantiation.
29979
29980 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29981
29982         * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
29983         different kind of stub (possibly wrong name for file), do not check
29984         for conformance.
29985         (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
29986         includes call to some function that returns an unconstrained type, do
29987         not inline.
29988
29989 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29990
29991         * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
29992         appear in the code for the main unit. Dependencies among units in the
29993         context of the main unit are established when those other units are
29994         compiled. Otherwise spurious elaboration constraints can generate
29995         incorrect elaboration circularities.
29996
29997 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
29998             Ed Schonberg   <schonberg@gnat.com>
29999
30000         * sem_util.adb (Is_Aliased_View): Defend against the case where this
30001         subprogram is called with a parameter that is not an object name. This
30002         situation arises for some cases of illegal code, which is diagnosed
30003         later, and in this case it is wrong to call Is_Aliased, as that might
30004         cause a compiler crash.
30005         (Explain_Limited_Type): Refine previous fix to include
30006         inherited components of derived types, to provide complete information.
30007
30008         * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
30009         is the prival for a protected object.
30010         It is necessary to mark this entity as a variable, in addition to
30011         flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
30012         modified to avoid checking the Aliased flag on entities that are not
30013         objects. (Checking that flag for non-objects is erroneous and could
30014         lead to a compiler crash).
30015
30016 2004-10-26  Robert Dewar  <dewar@gnat.com>
30017
30018         * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
30019         X_Frac = 0.5, then we know that the number X must be positive.
30020         (Succ): Remove the same redundant test, and also fix the primary test
30021         to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
30022         Minor reformatting
30023         (Decompose): Add fuller comments to spec
30024
30025 2004-10-26  Pascal Obry  <obry@gnat.com>
30026
30027         * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
30028         validity (process must have read access). Set to 0 in all other cases.
30029         (STOP_FRAME): Now check for ptr validity to avoid a segmentation
30030         violation on Win32.
30031         (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
30032         segmentation violation.
30033
30034 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
30035
30036         * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
30037         whose type is a constructed subtype of an aliased object with an
30038         unconstrained nominal subtype, convert the actual to the constructed
30039         subtype before taking its address.
30040
30041 2004-10-26  Vincent Celier  <celier@gnat.com>
30042
30043         * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
30044         (Is_Path_Name_Case_Sensitive): New function
30045
30046         * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
30047         (Base_Name, Simple_Name, Current_Directory, Compose,
30048         Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
30049         the result.
30050
30051 2004-10-26  Cyrille Comar    <comar@act-europe.fr>
30052             Vasiliy Fofanov  <fofanov@act-europe.fr>
30053             Vincent Celier   <celier@gnat.com>
30054
30055         * gnat_ugn.texi: Generalize "finding memory problems" section into a
30056         "memory management issues" section and document some of the useful
30057         memory pools provided as part of the GNAT library.
30058         Remove "virtual" from declaration of A::method2 in
30059         the simple example of Ada/C++ mixed system.
30060         Library Projects may be virtually extended: their virtual extensions
30061         are not Library Projects.
30062         Added section on extending project hierarchies.
30063
30064 2004-10-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
30065
30066         * adaint.c (__gnat_get_libraries_from_registry): Cast value
30067         to LPBYTE.
30068         (__gnat_portable_spawn): Remove const.
30069
30070         * mingw32.h (MAXPATHLEN): Check for previous definition.
30071
30072 2004-10-17  Matthias Klose  <doko@debian.org>
30073
30074         * gnatvsn.ads: Set gnat library version to 4.0.
30075
30076 2004-10-05  Vincent Celier  <celier@gnat.com>
30077
30078         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
30079
30080 2004-10-04  Laurent Guerby  <laurent@guerby.net>
30081
30082         PR ada/15156
30083         * Makefile.in: Define and use RANLIB_FLAGS.
30084
30085 2004-10-04  Pascal Obry  <obry@gnat.com>
30086
30087         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
30088         other x86 platforms).
30089
30090 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
30091
30092         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
30093         in general and triggers stack alignment adjustment for thread entry
30094         points on targets where this is necessary.
30095
30096 2004-10-04  Bernard Banner  <banner@gnat.com>
30097
30098         PR ada/13897
30099         * Makefile.in: Add section for powerpc linux
30100         Add variant i-vxwork-x86.ads
30101
30102         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
30103
30104 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
30105
30106         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
30107         table registration calls when need be. Ensures no reference to the crt
30108         ctors symbol are issued in the SJLJ case, which avoids possible
30109         undefined symbol errors in the case of modules to be statically linked
30110         with the kernel.
30111
30112 2004-10-04  Javier Miranda  <miranda@gnat.com>
30113
30114         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
30115         in-line the code corresponding to subprogram Analyze_Actuals. In
30116         addition, analyze the actuals only in case of subprogram call.
30117
30118 2004-10-04  Ed Falis  <falis@gnat.com>
30119
30120         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
30121
30122 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
30123
30124         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
30125         in the documentation.
30126
30127 2004-10-04  Robert Dewar  <dewar@gnat.com>
30128
30129         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
30130         IF and CASE.
30131         (Analyze_Block_Statement): Add circuitry to detect following dead code
30132         (Check_Unreachable_Code): Handle case of block exit
30133
30134 2004-10-04  Robert Dewar  <dewar@gnat.com>
30135
30136         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
30137         (XMatchD): Avoid warning for Logic_Error call
30138
30139 2004-10-04  Robert Dewar  <dewar@gnat.com>
30140
30141         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
30142         consider expressions buried within a procedure actual to be an actual.
30143         This caused some blowups with uses of packed slices within a procedure
30144         actual.
30145
30146 2004-10-04  Robert Dewar  <dewar@gnat.com>
30147
30148         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
30149         longer need to be initialized to zero.
30150         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
30151         initialized to zero.
30152
30153         * checks.adb (Expr_Known_Valid): Packed arrays are now always
30154         considered valid, even if the representation is modular. That's correct
30155         now that we no longer initialize packed modular arrays to zero.
30156
30157         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
30158         suffixes. These are now documented as the only cases in which the
30159         debugger ignores outer records.
30160         Previously, the spec allowed arbitrary suffixes for this purpose.
30161         Change name of LJM to JM for packed array pad records
30162         Create separate section on packed array handling, and add a whole new
30163         set of comments to this section describing the situation with packed
30164         modular types and justification requirements depending on endianness.
30165
30166 2004-10-04  Robert Dewar  <dewar@gnat.com>
30167
30168         * a-except.adb: Add a comment for last change
30169
30170         * einfo.ads: Minor spelling correction in comment
30171
30172         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
30173
30174         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
30175         messages.
30176
30177         * sem_util.ads: Minor comment update
30178
30179 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30180
30181         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
30182         Inline_Always when in Configurable_Run_Time mode.
30183
30184         * sem_prag.adb (Process_Convention): If entity is an inherited
30185         subprogram, apply convention to parent subprogram if in same scope.
30186         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
30187         when in Configurable_Run_Time mode.
30188
30189 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30190
30191         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
30192         class_wide type after component list has been inherited.
30193
30194 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30195
30196         * sem_ch12.adb (Check_Generic_Actuals): New predicate
30197         Denotes_Previous_Actual, to handle properly the case of a private
30198         actual that is also the component type of a subsequent array actual.
30199         The visibility status of the first actual is not affected when the
30200         second is installed.
30201         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
30202         make fully recursive the treatment of formals of packages declared
30203         with a box.
30204         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
30205         the above on exit from an instantiation.
30206         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
30207         current instantiation which is now complete.
30208         (Analyze_Package_Instantiation): No instantiated body is needed if the
30209         main unit is generic. Efficient, and avoid anomalies when a instance
30210         appears in a package accessed through rtsfind.
30211
30212 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30213
30214         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
30215         do not generate a declaration for a temporary if the call is part of a
30216         library-level instantiation.
30217
30218 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30219
30220         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
30221         searching for a limited component to flag.
30222
30223         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
30224         expansion of Input, to account for the fact that the implicit call
30225         generated by the attribute reference must freeze the user-defined
30226         stream subprogram. This is only relevant to 'Input, because it can
30227         appear in an object declaration, prior to the body of the subprogram.
30228
30229         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
30230         expansion can proceed and further errors uncovered.
30231         (Minor clean up): Fix cases of using | instead of \ for continuation
30232         messages.
30233
30234 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30235
30236         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
30237
30238         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
30239         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
30240         Use gcc_assert and gcc_unreachable.
30241
30242         * decl.c (gnat_to_gnu_entity, case object): Check and process a
30243         specified alignment before validating size.
30244         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
30245         stripped-down declaration for the type of the inner field when making
30246         a JM type.
30247
30248         * utils.c (finish_record_type): Do not compute the size in units
30249         incrementally. Instead compute it once for the rep clause case.
30250         Use gcc_assert and gcc_unreachable.
30251
30252 2004-10-04  Vincent Celier  <celier@gnat.com>
30253
30254         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
30255         in file name.
30256         (Is_Valid_Path_Name): Take '/' as a directory separator.
30257
30258 2004-10-04  Vincent Celier  <celier@gnat.com>
30259
30260         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
30261         (Extended_Project) only if Extended_Project is defined, to avoid
30262         assertion error.
30263         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
30264         resolved path.
30265         (Parse_Single_Project): Ditto.
30266
30267         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
30268         Add_To_Project_Path for virtual projects.
30269
30270 2004-10-04  Vincent Celier  <celier@gnat.com>
30271
30272         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30273         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
30274         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
30275         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
30276         parameter Options_2.
30277
30278         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
30279         Build_Dynamic_Library with an empty Options_2.
30280
30281         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
30282         default anymore.
30283
30284         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
30285         directory separator, if any.
30286         (Gprmake): Do not allow mains on the command line for library projects.
30287         Do not attempt to link when the project is a library project.
30288         (Library_Opts): New table to store Library_Options.
30289         (Build_Library): If Library_Options is specified, pass these options
30290         when building a shared library.
30291
30292 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
30293
30294         * s-tposen.adb (Service_Entry): The object must be always unlocked at
30295         the end of this procedure now that the unlock operation was inserted
30296         by the expander.
30297
30298 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
30299
30300         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
30301         corresponding to the Preallocated_Stacks flags in System.
30302         (Get_Target_Parameters): Including the processing for
30303         Preallocated_Stacks.
30304
30305         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
30306         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
30307         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
30308         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
30309         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
30310         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
30311         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
30312         system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
30313         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
30314         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
30315         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
30316         used to signal whether the compiler creates the required stacks and
30317         descriptors for the different tasks (when True) or it is done by the
30318         underlying operating system at run time (when False).
30319         It is initially set to False in all targets.
30320
30321         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
30322         if it is supported by the target.
30323         (Make_Task_Create_Call): Pass the stack address if it has been
30324         previously created. Otherwise pass a Null_Address.
30325
30326         * snames.adb: Add _stack.
30327
30328         * snames.ads: Add Name_uStack. Required to allow the expander to
30329         statically allocated task stacks.
30330
30331         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
30332         Stack_Address argument.
30333         Check that its value is equal to Null_Address because this target does
30334         not support the static stack allocation.
30335
30336 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
30337
30338         * usage.adb: Change "pragma inline" to "pragma Inline" in information
30339         and error messages
30340
30341 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
30342
30343         * exp_dist.adb: Split declaration of asynchronous flag out of
30344         Add_RACW_Read_Attribute.
30345         Minor reformatting for better alignment with PolyORB version.
30346         Store the entity for the asynchronous flag of an RACW, rather than the
30347         expression, in the asynchronous flags table. This will allow this flag
30348         to be used in other subprograms beside Add_RACW_Read_Attribute.
30349
30350 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
30351
30352         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
30353         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
30354         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
30355         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
30356         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
30357         sockets constant MSG_NOSIGNAL (Linux-specific).
30358         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
30359         all Send operations.
30360         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
30361         from trigerring SIGPIPE.
30362         Rename components to avoid clash with Ada 2005 possible reserved
30363         word 'interface'.
30364         (Check_Selector): When the select system call returns with an error
30365         condition, propagate Socket_Error to the caller.
30366
30367 2004-10-01  Jan Hubicka  <jh@suse.cz>
30368
30369         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
30370
30371 2004-09-23  Robert Dewar  <dewar@gnat.com>
30372
30373         PR ada/17540
30374         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
30375         instead do this at freeze time (we won't do it if there is an address
30376         clause).
30377         Change "pragma inline" to "pragma Inline" in information and error
30378         messages.
30379         Minor reformatting.
30380
30381         * freeze.adb (Check_Address_Clause): Remove previous change, not the
30382         right way of doing things after all.
30383         (Freeze_Entity): For object, set Is_Public for imported entities
30384         unless there is an address clause present.
30385
30386 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
30387
30388         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
30389         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
30390         ensures proper handling of types with rep clauses, which might have
30391         their TYPE_SIZE set already.
30392
30393 2004-09-21  Robert Dewar  <dewar@gnat.com>
30394
30395         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
30396         packed array types in both little- and big-endian cases. This change
30397         ensures that we no longer count on the unused bits being initialized
30398         for such types (and in particular ensures that equality testing will
30399         only read the relevant bits).
30400         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
30401         These changes mean that we no longer need to initialize small packed
30402         arrays.
30403         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
30404         optimization to an LJM field as to its parent field.
30405
30406         * ada-tree.h, trans.c, utils.c, utils2.c:
30407         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
30408
30409 2004-09-20  Jan Hubicka  <jh@suse.cz>
30410
30411         * utils.c (gnat_finalize): Remove.
30412         (end_subprog_body): Directly call cgraph_finalize_function;
30413         do not lower the nested functions.
30414
30415 2004-09-20  Robert Dewar  <dewar@gnat.com>
30416
30417         PR ada/17540
30418         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
30419         if an address clause is present, since that means that the Import
30420         should be ignored.
30421
30422 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
30423
30424         * 5tsystem.ads: Removed, no longer used.
30425
30426 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
30427             Zack Weinberg  <zack@codesourcery.com>
30428
30429         * ada-tree.def: Use tree_code_class enumeration constants
30430         instead of code letters.
30431         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
30432         Update for new tree-class enumeration constants.
30433
30434 2004-09-17  Vincent Celier  <celier@gnat.com>
30435
30436         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
30437         capabilities of the general project manager.
30438
30439 2004-09-09  Vincent Celier  <celier@gnat.com>
30440
30441         * a-direct.ads: Add pragma Ada_05
30442         (Directory_Entry_Type): Give default value to component Kind to avoid
30443         not initialized warnings.
30444
30445         * a-direct.adb (Current_Directory): Remove directory separator at the
30446         end.
30447         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
30448         an existing directory.
30449         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
30450         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
30451         Convert the result to File_Size.
30452
30453         * prj.ads: (Project_Error): New exception
30454
30455         * prj-attr.adb: Except in procedure Initialize, Fail comes from
30456         Prj.Com, not from Osint.
30457         (Attrs, Package_Attributes): Tables moved to private part of spec
30458         (Add_Attribute, Add_Unknown_Package): Moved to new child package
30459         Prj.Attr.PM.
30460         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
30461         Prj.Project_Error after call to Fail.
30462         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
30463         Fail. Check that package name is not already in use.
30464
30465         * prj-attr.ads: Comment updates to indicate that all subprograms may be
30466         used by tools, not only by the project manager, and to indicate that
30467         exception Prj.Prj_Error may be raised in case of problem.
30468         (Add_Unknown_Package, Add_Attribute): Moved to new child package
30469         Prj.Attr.PM.
30470         (Attrs, Package_Attributes): Table instantiations moved from the body to
30471         the private part to be accessible from Prj.Attr.PM body.
30472
30473         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
30474         from new package Prj.Attr.PM.
30475         (Parse_Attribute_Declaration): Call Add_Attribute from new package
30476         Prj.Attr.PM.
30477
30478         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
30479
30480         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
30481         instead of Elaboration_Checks).
30482
30483         * a-calend.adb: Minor reformatting
30484
30485 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30486
30487         * gigi.h (maybe_pad_type): New declaration.
30488         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
30489
30490         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
30491
30492         * cuintp.c: Convert to use buildN.
30493
30494         * decl.c (maybe_pad_type): No longer static.
30495         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
30496         target pointer.
30497         Convert to use buildN.
30498
30499         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
30500         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
30501         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
30502         RHS.
30503         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
30504         (gnat_gimplify_expr, case ADDR_EXPR): New case.
30505         Convert to use buildN.
30506
30507         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
30508         TREE_READONLY for const.
30509         Convert to use buildN.
30510
30511         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
30512         (create_var_decl): Refine when TREE_STATIC is set.
30513         Convert to use buildN.
30514
30515 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
30516
30517         * gnat_ugn.texi: Delete text relating to checking of ali and object
30518         consistency.
30519
30520         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
30521         routines.
30522
30523 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
30524
30525         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
30526         pragmas recognized by GNAT.
30527
30528         * gnat_rm.texi: Document pragma Detect_Blocking.
30529
30530         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
30531         raise Program_Error if called from a protected operation.
30532
30533         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
30534         the protected action nesting level.
30535         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
30536         protected action nesting level.
30537         (Unlock): When pragma Detect_Blocking is active decrease the protected
30538         action nesting level.
30539
30540         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
30541         Protected_Action_Nesting.
30542
30543         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
30544         Common_ATCB record. It contains the dynamic level of protected action
30545         nesting for each task. It is needed for checking whether potentially
30546         blocking operations are called from protected operations.
30547         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
30548         Detect_Blocking is active or not in the partition.
30549
30550         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
30551         raise Program_Error if called from a protected operation.
30552         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
30553         Program_Error if called from a protected operation.
30554         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
30555         Program_Error if called from a protected operation.
30556
30557         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
30558         raise Program_Error if called from a protected operation.
30559
30560         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
30561         raise Program_Error if called from a protected operation, and increase
30562         the protected action nesting level.
30563         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
30564         Program_Error if called from a protected operation, and increase the
30565         protected action nesting level.
30566         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
30567         protected action nesting level.
30568
30569         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
30570         raise Program_Error if called from a protected operation, and increase
30571         the protected action nesting level.
30572         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
30573         Program_Error if called from a protected operation, and increase the
30574         protected action nesting level.
30575         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
30576         raise Program_Error if called from a protected operation.
30577         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
30578         active, raise Program_Error if called from a protected operation.
30579         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
30580         protected action nesting level.
30581
30582         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
30583         insertion of the statement raising Program_Error. The run time
30584         contains the required machinery for handling that.
30585
30586         * sem_util.ads: Change comment associated to procedure
30587         Check_Potentially_Blocking_Operation.
30588         This procedure does not insert a call for raising the exception because
30589         that is currently done by the run time.
30590
30591         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
30592
30593         * init.c: Add the global variable __gl_detect_blocking that indicates
30594         whether pragma Detect_Blocking is active (1) or not (0). Needed for
30595         making the pragma available at run time.
30596         (__gnat_set_globals): Pass and update the detect_blocking parameter.
30597
30598         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
30599         pragma Detect_Blocking is active.
30600
30601         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
30602
30603         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
30604         DB is found in the ali file. Any unit compiled with pragma
30605         Detect_Blocking active forces its effect in the whole partition.
30606
30607         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
30608         Detect_Blocking is active and delay is called from a protected
30609         operation.
30610
30611         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
30612         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
30613         Detect_Blocking is active (0 otherwise).
30614         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
30615         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
30616         otherwise).
30617
30618 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
30619
30620         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
30621         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
30622         package.
30623
30624         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
30625         (Register_Receiving_Stub): Add Subp_Info formal parameter.
30626         Update API in placeholder implemetation of s-parint to reflect changes
30627         in distribution runtime library.
30628
30629         * sem_ch3.adb (Expand_Derived_Record): Rename to
30630         Expand_Record_Extension.
30631
30632         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
30633         primitive operations of potentially distributed object types that have
30634         non-controlling anonymous access formals.
30635
30636         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
30637         subprogram.
30638         New implementation of expansion for remote access-to-subprogram types,
30639         based on the RACW infrastructure.
30640         This version of sem_dist is compatible with PolyORB/DSA as well as
30641         GLADE.
30642
30643         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
30644         Asynchrronous that applies to a remote access-to-subprogram type, mark
30645         the underlying RACW type as asynchronous.
30646
30647         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
30648          __gnat_using_gnu_linker to 1.
30649
30650         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
30651         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
30652         GNAT.Perfect_Hash_Generators, and remove the empty
30653         GNAT.Perfect_Hash package.
30654
30655         * atree.adb: Minor reformatting
30656
30657         * exp_ch3.adb (Expand_Derived_Record): Rename to
30658         Expand_Record_Extension.
30659         (Build_Record_Init_Proc.Build_Assignment): The default expression in
30660         a component declaration must remain attached at that point in the
30661         tree so New_Copy_Tree copies it if the enclosing record type is derived.
30662         It is therefore necessary to take a copy of the expression when building
30663         the corresponding assignment statement in the init proc.
30664         As a side effect, in the case of a derived record type, we now see the
30665         original expression, without any rewriting that could have occurred
30666         during expansion of the ancestor type's init proc, and we do not need
30667         to go back to Original_Node.
30668
30669         * exp_ch3.ads (Expand_Derived_Record): Rename to
30670         Expand_Record_Extension.
30671
30672         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
30673         Returns the RACW type used to implement a remote access-to-subprogram
30674         type.
30675         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
30676         New subprograms. Used to create a proxy tagged object for a remote
30677         subprogram. The proxy object is used as the designated object
30678         for RAS values on the same partition (unless All_Calls_Remote applies).
30679         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
30680         System.Partition_Interface.Get_Unique_Remote_Pointer.
30681         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
30682         Renamed from Add_RAS_*_Attribute.
30683         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
30684         subprograms.
30685         New implementation of expansion for remote access-to-subprogram types,
30686         based on the RACW infrastructure.
30687
30688         * exp_dist.ads (Copy_Specification): Update comment to note that this
30689         function can copy the specification from either a subprogram
30690         specification or an access-to-subprogram type definition.
30691
30692 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
30693
30694         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
30695         in an instance, between an explicit subprogram an one inherited from a
30696         type derived from an actual.
30697
30698         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
30699         add a polling call if the subprogram is to be inlined by the back-end,
30700         to avoid repeated calls with multiple inlinings.
30701
30702         * checks.adb (Apply_Alignment_Check): If the expression in the address
30703         clause is a call whose name is not a static entity (e.g. a dispatching
30704         call), treat as dynamic.
30705
30706 2004-09-09  Robert Dewar  <dewar@gnat.com>
30707
30708         * g-trasym.ads: Minor reformatting
30709
30710         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
30711         packed arrays, since unused bits are expected to be zero for a
30712         comparison.
30713
30714 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
30715
30716         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
30717         comment.
30718
30719 2004-09-09  Pascal Obry  <obry@gnat.com>
30720
30721         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
30722         enable map file generation. Add the right option to generate the map
30723         file if Map_File is set to True.
30724
30725         * gnatdll.adb (Gen_Map_File): New variable.
30726         (Syntax): Add info about new -m (Map_File) option.
30727         (Parse_Command_Line): Add support for -m option.
30728         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
30729         Minor reformatting.
30730
30731 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
30732
30733         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
30734         new gnatdist implementation.
30735         Define a subpackage isolating the output routines specific to this
30736         verbose mode.
30737
30738 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
30739
30740         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
30741
30742         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
30743
30744 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
30745
30746         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
30747         internal unit.
30748
30749         * opt.ads: Add Ada_Version_Runtime constant used to decide which
30750         version of the language is used to compile the run time.
30751
30752 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
30753
30754         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
30755         of variable length temporaries for function return now that the
30756         back-end and gigi support it.
30757
30758 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30759
30760         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
30761
30762         * trans.c (struct stmt_group): Delete field GLOBAL.
30763         (gnat_init_stmt_group): Do not initialize it.
30764         (call_to_gnu): Use save_expr, not protect_multiple_eval.
30765         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
30766         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
30767         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
30768         (start_stmt_group): Likewise.
30769         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
30770
30771         * utils2.c (ggc.h): Include.
30772         (build_call_raise): Call build_int_cst, not build_int_2.
30773
30774         * utils.c (gnat_init_decl_processing): Fix arg to
30775         build_common_tree_nodes.
30776         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
30777         (gnat_define_builtin): Set built_in_decls.
30778         (init_gigi_decls): Call build_int_cst, not build_int_2.
30779
30780         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
30781         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
30782         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
30783         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
30784         SET_TYPE_MODULE): Use them.
30785         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
30786         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
30787         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
30788         SET_TYPE_ADA_SIZE): Likewise.
30789         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
30790         (DECL_CONST_CORRESPONDING_VAR,
30791         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
30792         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
30793         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
30794         (TYPE_RM_SIZE_NUM): New macro.
30795         (TYPE_RM_SIZE): Modified to use above.
30796
30797         * cuintp.c: (build_cst_from_int): New function.
30798         (UI_To_gnu): Use it.
30799
30800         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
30801         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
30802         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
30803         MIN_EXPR for the size, copy it into new.
30804
30805 2004-09-01  Robert Dewar  <dewar@gnat.com>
30806
30807         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
30808         packed indexed component where array is an IN OUT formal. This
30809         generated garbage code previously.
30810
30811         * gnat_ugn.texi: Document -fverbose-asm
30812
30813         * gnat-style.texi: Minor updates (note that boolean constants and
30814         variables are joined with AND/OR rather than short circuit forms).
30815
30816 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
30817
30818         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
30819         it is an upward conversion of an untagged type with no representation
30820         change.
30821
30822 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
30823
30824         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
30825         System.Partition_Interface.
30826
30827         * checks.adb (Apply_Access_Checks): Do not generate checks when
30828         expander is not active (but check for unset reference to prefix of
30829         dereference).
30830
30831         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
30832         pragma Debug as an if statement with a constant condition, for
30833         consistent treatment of entity references contained within the
30834         enclosed procedure call.
30835
30836 2004-09-01  Vincent Celier  <celier@gnat.com>
30837
30838         * bindgen.adb: (Set_EA_Last): New procedure
30839         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
30840         Set_EA_Last.
30841         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
30842         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
30843         linked without errors.
30844         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
30845         ST and EA.
30846         (Gen_Exception_Table_C): Correct same bugs
30847
30848         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
30849
30850         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
30851         on Windows, make sure that the drive letter is in upper case.
30852
30853         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
30854         Windows, when the drive letter is added and Case_Sensitive is True, the
30855         drive letter is forced to upper case.
30856
30857         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
30858         to Options_2 for the call to MLib.Utl.Gcc.
30859
30860         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
30861         directory separator when defining BASE_DIR.
30862
30863 2004-09-01  Pascal Obry  <obry@gnat.com>
30864
30865         * gprcmd.adb (Extend): Do not output trailing directory separator. This
30866         is not needed and it confuses Windows GNU/make which does not report
30867         directory terminated by a slash as a directory.
30868         (gprcmd): Idem for "pwd" internal command.
30869
30870         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
30871         target names rewrite to fix regressions with recent version of
30872         GNU/make. Starting with GNU/make 3.80 the pipe character was not
30873         handled properly anymore.
30874
30875 2004-09-01  Andreas Schwab  <schwab@suse.de>
30876
30877         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
30878         * raise.c [!IN_RTS]: Undef abort.
30879
30880 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
30881
30882         * utils2.c (build_allocator): Use ssize_int.
30883
30884         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
30885
30886 2004-08-27  Andreas Schwab  <schwab@suse.de>
30887
30888         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
30889
30890 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
30891             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30892
30893         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
30894
30895 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
30896
30897         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
30898         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
30899         * utils.c (init_gigi_decls): Likewise.
30900         * utils2.c (build_call_raise, build_allocator): Likewise.
30901
30902 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
30903
30904         * utils.c (gnat_init_decl_processing): Adjust
30905         build_common_tree_nodes call.
30906
30907 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
30908
30909         * utils2.c (build_allocator): Use build_int_cst for negative
30910         size types.
30911
30912 2004-08-18  Richard Henderson  <rth@redhat.com>
30913
30914         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
30915
30916 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
30917
30918         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
30919         call.s
30920         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
30921         (gnat_to_gnu): Likewise.
30922
30923 2004-08-16  Pascal Obry  <obry@gnat.com>
30924
30925         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
30926         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
30927         option and not mdll anymore. Update comment.
30928
30929 2004-08-16  Pascal Obry  <obry@gnat.com>
30930
30931         * bld.adb (Put_Include_Project): Properly handle directory separators
30932         on Windows.
30933
30934 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
30935
30936         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
30937         decreasing the number of allocated junk nodes while searching for the
30938         appropriate subprogram.
30939
30940 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
30941
30942         * cuintp.c (UI_To_gnu): Use build_int_cst..
30943         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
30944         * utils.c (init_gigi_decls): Likewise.
30945         * utils2.c (build_call_raise): Likewise.
30946
30947 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
30948
30949         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
30950         for a global aliased object with a variable size and an unconstrained
30951         nominal subtype, pretend there is no initializer if the one we have is
30952         incomplete, and avoid referencing an inexistant component in there. The
30953         part we have will be rebuilt anyway and the reference may confuse
30954         further operations.
30955
30956 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
30957
30958         * einfo.ads: Minor reformatting
30959
30960         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
30961         restrictions in the ALI if we only want to warn about violations.
30962
30963 2004-08-13  Vincent Celier  <celier@gnat.com>
30964
30965         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
30966         when creating a new Unit_Record in table Units.
30967
30968         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
30969         that are violated, if any.
30970
30971         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
30972         add directory separator if path already ends with a directory separator.
30973
30974 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
30975
30976         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
30977         unit, this is an attempt to inline a construct that is not available in
30978         the current restricted mode, so abort rather than trying to continue.
30979
30980         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
30981         discriminants that rename those of the parent, recover names of
30982         original discriminants for the constraint on the full view of the
30983         parent.
30984         (Complete_Private_Subtype): Do not create a subtype declaration if the
30985         subtype is an itype.
30986
30987         * gnat_rm.texi: Added section on implementation of discriminated
30988         records with default values for discriminants.
30989
30990 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
30991
30992         PR ada/15601
30993         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
30994         the second operand is overloaded.
30995
30996 2004-08-10  Richard Henderson  <rth@redhat.com>
30997
30998         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
30999         add __builtin_alloca.
31000
31001 2004-08-10  Richard Henderson  <rth@redhat.com>
31002
31003         * config-lang.in (boot_language): Yes.
31004
31005 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
31006
31007         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
31008         from complaining on potential uninitialized reference.
31009         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
31010         new specification and test explicitly for non-zero return value.
31011
31012         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
31013         returning C.int, to avoid using a derived boolean type.
31014
31015         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
31016         Duplicate_Subexpr_No_Checks in preference to direct use of
31017         Remove_Side_Effects and New_Copy_Tree.
31018         Clear Comes_From_Source on prefix of 'Size attribute reference.
31019
31020         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
31021         g-socthi-vxworks.adb: Change calls to
31022         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
31023         and test explicitly for non-zero return value.
31024
31025         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
31026         (Is_Socket_In_Set): Declare imported function as returning C.int, to
31027         avoid using a derived boolean type.
31028
31029 2004-08-09  Albert Lee  <lee@gnat.com>
31030
31031         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
31032
31033 2004-08-09  Pascal Obry  <obry@gnat.com>
31034
31035         * gnat_ugn.texi: Document new way to build DLLs on Windows using
31036         GCC's -shared option.
31037
31038         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
31039         Options_2 parameter (options put after object files).
31040
31041 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
31042
31043         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
31044         ignore overflows on low and high bounds of an index to also account for
31045         differences in signedness between sizetype and gnu_index_subtype.
31046         These are as legitimate as the ones caused by a lower TYPE_PRECISION
31047         on sizetype.
31048
31049 2004-08-09  Robert Dewar  <dewar@gnat.com>
31050
31051         * s-solita.ads, s-solita.adb: Minor reformatting
31052
31053         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
31054         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
31055         obsolescent section
31056         Add note that No_Implicit_Conditionals does not suppress
31057         run time constraint checks.
31058
31059         * vms_conv.ads: Minor reformatting
31060
31061         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
31062         and necessary for following change).
31063         (Mark): Return new format Mark_Id containing sec stack address
31064         (Release): Use sec stack address from Mark_Id avoiding Self call
31065
31066         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
31067         pointer (cleanup and necessary for following change).
31068         Define Mark_Id as record containing address of secondary stack, that way
31069         Release does not need to find the stack again, decreasing the number of
31070         calls to Self and improving efficiency.
31071
31072         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
31073
31074         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
31075         case variable into the individual case branches when possible.
31076
31077         * sem_ch11.adb: Minor reformatting
31078
31079         * prj.ads: Correct spelling of suffixs
31080
31081         * prj-nmsc.adb: Minor reformatting
31082         Correct spelling suffixs throughout (also in identifiers)
31083
31084         * freeze.adb: Minor spelling correction
31085
31086         * exp_ch2.adb: Cleanups to handling of Current_Value
31087         (no functional effect).
31088
31089         * bld.adb: Correct spelling of suffixs
31090
31091         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
31092
31093 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
31094
31095         PR ada/15408
31096         * sem_ch7.adb (Install_Private_Declarations): In the body of the
31097         package or of a child, private entities are both immediately_visible
31098         and not hidden.
31099
31100 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
31101
31102         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
31103         there are no range checks on the value of the literal.
31104
31105         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
31106         wrapped is the triggering alternative of an asynchronous select, action
31107         statements mustbe inserted before the select itself.
31108
31109         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
31110         case where the prefix is a protected function call.
31111         (Resolve_Attribute, case 'Access): The attribute reference on a
31112         subprogram is legal in a generic body if the subprogram is declared
31113         elsewhere.
31114
31115 2004-08-09  Vincent Celier  <celier@gnat.com>
31116
31117         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
31118         languages, otherwise building the library may fail with unresolved
31119         symbols.
31120         (Compile_Sources): Do not build libraries if -c switch is used
31121
31122         * gnatlink.adb (Process_Args): New switches -M and -Mmap
31123         (Write_Usage): If map file creation is supported, output new switches
31124         -M and -Mmap.
31125         (Gnatlink): When -M is specified, add the necessary switch(es) to the
31126         gcc call, when supported.
31127
31128         * Makefile.in: Added indepsw.o to the object list for gnatlink
31129         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
31130
31131         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
31132         indepsw.adb, indepsw.ads: New files.
31133
31134 2004-08-09  Bernard Banner  <banner@gnat.com>
31135
31136         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
31137
31138         * Makefile.in: add section for vxworks x86
31139
31140 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
31141
31142         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
31143         per-object constrained components where the discriminant is of an
31144         Access type.
31145         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
31146         the parent initialization procedure for derived Unchecked_Unions.
31147         Instead, derived Unchecked_Unions build their own initialization
31148         procedure.
31149         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
31150         Check the body of the subprogram for details.
31151         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
31152         functions for derived Unchecked_Union types by introducing a condition.
31153         Allow the creation of TSS equality functions for Unchecked_Unions.
31154         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
31155         Add formal parameter Discr to function signature. Discr is used to
31156         control the generated case statement for Unchecked_Union types.
31157         (Make_Eq_If): Rename formal parameter Node to E in function signature.
31158
31159         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
31160         Unchecked_Unions.
31161         Check the body of the subprogram for details.
31162         (Expand_Composite_Equality): Augment composite type equality to include
31163         correct handling of Unchecked_Union components.
31164         (Expand_N_In): Add condition to detect illegal membership tests when the
31165         subtype mark is a constrained Unchecked_Union and the expression lacks
31166         inferable discriminants, and build a Raise_Program_Error node.
31167         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
31168         to detect types that contain components of unconstrained Unchecked_Union
31169         subtype. Add condition to detect equality between types that have an
31170         unconstrained Unchecked_Union component, and build a Raise_Program_Error
31171         node. Add condition to detect equality between Unchecked_Union types
31172         that lack inferable discriminants, and build a Raise_Program_Error node.
31173         Otherwise build a TSS equality function call.
31174         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
31175         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
31176         with the operand lacking inferable discriminants, and build a Raise_
31177         Program_Error node.
31178         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
31179         composite equality.
31180         (Has_Inferable_Discriminants): Implement new predicate for objects and
31181         expressions of Unchecked_Union type. Check the body of subprogram for
31182         details.
31183         (Has_Unconstrained_UU_Components): Add function
31184         Component_Is_Unconstrained_UU. It is used to detect whether a single
31185         component is of an unconstrained Unchecked_Union subtype. Add function
31186         Variant_Is_Unconstrained_UU. It is used to detect whether a single
31187         component inside a variant is of an unconstrained Unchecked_Union type.
31188
31189         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
31190         inferred discriminant values. Add condition to generate a case
31191         statement with an inferred discriminant as the switch.
31192         (Make_Component_List_Assign): Introduce a Boolean flag that determines
31193         the behaviour of the subprogram in the presence of an Unchecked_Union.
31194         Add condition to trigger the usage of the inferred discriminant value
31195         as the generated case statement switch.
31196         (Make_Field_Assign): Introduce a Boolean flag that determines the
31197         behaviour of the subprogram in the presence of an Unchecked_Union. Add
31198         condition to trigger the usage of the inferred discriminant value as
31199         the right-hand side of the generated assignment.
31200
31201         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
31202         parameter generation when dealing with Unchecked_Unions.
31203
31204         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
31205         checks for Unchecked_Unions.
31206
31207         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
31208
31209         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
31210         Raise_Program_Error nodes for the execution of Read and Write
31211         attributes of Unchecked_Union types and the execution of Input and
31212         Output attributes of Unchecked_Union types that lack default
31213         discriminant values.
31214
31215         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
31216         Unchecked_Union. Add procedure Check_Component. It is used to inspect
31217         per-object constrained components of Unchecked_Unions for being
31218         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
31219         check individual components withing a variant.
31220
31221         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
31222         comparison of Unchecked_Unions.
31223         (Resolve_Equality_OP): Remove guard that prevents equality between
31224         Unchecked_Unions.
31225
31226         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
31227         of component subtypes for Unchecked_Union components.
31228         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
31229         since it is the actual subtype.
31230
31231         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
31232         pass of Unchecked_Union subtypes as generic actuals to formal types
31233         that lack known_discriminant_parts or that are derived Unchecked_Union
31234         types, and do nothing. In any other case, produce an error message.
31235
31236         * sem_ch3.adb (Analyze_Component_Declaration): Add function
31237         Contains_POC. It determines whether a constraint uses the discriminant
31238         of an enclosing record type.
31239         Add condition to detect per-object constrained component and set the
31240         appropriate flag.
31241         (Derived_Type_Declaration): Remove guard that prevents derivation from
31242         Unchecked_Union types.
31243         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
31244         Union subtypes.
31245
31246         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
31247         references to Unchecked_Union discriminants.
31248
31249         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
31250         formal generation when dealing with Unchecked_Unions.
31251         (Set_Actual_Subtypes): Add condition to prevent generation of actual
31252         subtypes for Unchecked_Unions.
31253
31254         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
31255         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
31256         completions of discriminated partial views by Unchecked_Unions and
31257         produce an error message.
31258
31259 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31260
31261         * trans.c (struct stmt_group): New field, GLOBAL.
31262         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
31263         (struct elab_info): New struct.
31264         (elab_info_list, gnu_elab_proc_stack): New variables.
31265         (Compilation_Unit_to_gnu): New procedure.
31266         (gigi): Call it and also handle elaboration procs we've saved.
31267         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
31268         global field from parent.
31269         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
31270         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
31271         (start_stmt_group): Initialize global field from parent.
31272         (add_decl_expr): Set to global for current statement group.
31273         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
31274         post.
31275
31276         * utils.c (global_bindings_p): True when no current_function_decl; no
31277         longer check current_binding_level.
31278
31279 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
31280
31281         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
31282         choice.
31283
31284         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
31285
31286 2004-08-06  Andreas Schwab  <schwab@suse.de>
31287
31288         * utils.c (gnat_define_builtin): Remove second parameter of
31289         make_decl_rtl.
31290         (begin_subprog_body): Likewise.
31291
31292 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
31293
31294         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
31295         optimization, not supported by the tree-ssa back-end.
31296
31297 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
31298
31299         * s-mastop-irix.adb: Update comments.
31300
31301         * a-except.adb (Exception_Information): Raise Constraint_Error if
31302         exception Id is Null_Id.
31303         This is required behavior, which is more reliably and clearly checked
31304         at the top level interface level.
31305
31306 2004-07-26  Javier Miranda  <miranda@gnat.com>
31307
31308         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
31309         call if a component has no default_expression and the box is used.
31310
31311         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
31312         default_expression and you use box, it behaves as if you had declared a
31313         stand-alone object.
31314         (Resolve_Record_Aggregate): If a component has no default_expression and
31315         you use box, it behaves as if you had declared a stand-alone object.
31316
31317         * sem_ch10.adb (Install_Siblings): Do not make visible the private
31318         entities of private-with siblings.
31319
31320 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
31321
31322         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
31323         for a component of an itype, set the parent pointer for analysis,
31324         there is no list in which to insert it.
31325
31326         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
31327         bona-fide renamings, not for inherited operations.
31328
31329         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
31330         actual for a formal that is an access parameter, create local
31331         finalization list even if the expression is not an aggregate.
31332
31333 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
31334
31335         PR ada/16213
31336         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
31337         Diagnose properly illegal subprogram renamings that are library units.
31338
31339 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
31340
31341         PR ada/15588
31342         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
31343         conversion rewritten as an unchecked conversion, check that original
31344         expression is a variable.
31345
31346         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
31347         unchecked_conversion, create new node rather than rewriting in place,
31348         to preserve original construct.
31349
31350 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31351
31352         * gigi.h (gnat_expand_body): Deleted.
31353
31354         * Make-lang.in: (trans.o): Depends on function.h.
31355
31356         * misc.c: (gnat_expand_body): Moved to here.
31357
31358         * trans.c (gnat_expand_body_1): Deleted.
31359         (gnat_expand_body): Moved from here.
31360         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
31361         (add_stmt): Check for marked visited with global_bindings_p.
31362         (gnat_gimplify_expr, case COMPONENT_REF): New case.
31363         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
31364
31365         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
31366         VIEW_CONVERT_EXPR if not operation type.
31367
31368         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
31369         fat pointer.
31370
31371         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
31372         changes: reformatting of negation operators, removing unneeded
31373         inequality comparison with zero, converting equality comparisons with
31374         zero to negations, changing int/0/1 to bool/false/true, replace calls
31375         to gigi_abort with abort, and various other similar changes.
31376
31377 2004-07-26  Vincent Celier  <celier@gnat.com>
31378
31379         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
31380         "setup".
31381
31382         * make.adb (Gnatmake): Fail when a library is not present and there is
31383         no object directory.
31384
31385         * mlib-prj.adb (Check_Library): No need to check if the library needs
31386         to be rebuilt if there is no object directory, hence no object files
31387         to build the library.
31388
31389         * opt.ads (Setup_Projects): New Boolean flag.
31390
31391         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
31392         Location.
31393         Create directory when Kind /= "" and in "gnat setup". Report error if
31394         directory cannot be created.
31395         (Ada_Check): Create library interface copy dir if it does not exist
31396         and we are in "gnat setup".
31397         (Find_Sources): No error if in "gnat setup" and no Ada sources were
31398         found.
31399         (Language_Independent_Check): Create object directory, exec directory
31400         and/or library directory if they do not exist and we are in
31401         "gnat setup".
31402
31403         * vms_conv.ads: (Command_Type): New command Setup.
31404
31405         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
31406
31407         * vms_data.ads: Add qualifiers/switches for new built-in command
31408         "setup".
31409
31410 2004-07-25  Richard Henderson  <rth@redhat.com>
31411
31412         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
31413         DECL_IGNORED_P on RESULT_DECL.
31414
31415 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
31416
31417         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
31418         allocation and potentially overflowing update with
31419         Tailored_Exception_Information. Use the sec-stack free procedural
31420         interface to output Exception_Information instead.
31421
31422         * a-except.adb (To_Stderr): New subprogram for character, and string
31423         version moved from a-exextr to be visible from other separate units.
31424         (Tailored_Exception_Information): Remove the procedural version,
31425         previously used by the default Last_Chance_Handler and not any more.
31426         Adjust various comments.
31427
31428         * a-exexda.adb: Generalize the exception information procedural
31429         interface, to minimize the use of secondary stack and the need for
31430         local buffers when the info is to be output to stderr:
31431         (Address_Image): Removed.
31432         (Append_Info_Character): New subprogram, checking for overflows and
31433         outputing to stderr if buffer to fill is of length 0.
31434         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
31435         (Append_Info_Address, Append_Info_Exception_Name,
31436         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
31437         Append_Info_Basic_Exception_Traceback,
31438         Append_Info_Exception_Information): New subprograms.
31439         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
31440         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
31441         Exception_Info_Maxlength, Exception_Name_Length,
31442         Exception_Message_Length): New subprograms.
31443         (Exception_Information): Use Append_Info_Exception_Information.
31444         (Tailored_Exception_Information): Use
31445         Append_Info_Basic_Exception_Information.
31446         Export services for the default Last_Chance_Handler.
31447
31448         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
31449         other separate units.
31450
31451 2004-07-20  Vincent Celier  <celier@gnat.com>
31452
31453         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
31454
31455 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
31456
31457         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
31458         emit itype references for the designated types of component types that
31459         are declared outside of the full record declaration, and that may
31460         denote a partial view of that record type.
31461
31462 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
31463
31464         PR ada/15607
31465         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
31466         which is the designated type in an access component declaration, to the
31467         list of incomplete dependents of the parent type, to avoid elaboration
31468         issues with out-of-scope subtypes.
31469         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
31470         full view of the parent.
31471
31472 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
31473
31474         PR ada/15610
31475         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
31476         entities that are hidden, such as references to generic actuals
31477         outside an instance.
31478
31479 2004-07-20  Javier Miranda  <miranda@gnat.com>
31480
31481         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
31482         support to the new notation.
31483         (Analyze_Selected_Component): Add call to Try_Object_Operation.
31484
31485 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
31486
31487         * s-taprob.adb: Adding the elaboration code required for initializing
31488         the tasking soft links that are common to the full and the restricted
31489         run times.
31490
31491         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
31492         restricted run time has been moved to the package
31493         System.Soft_Links.Tasking.
31494
31495         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
31496         restricted run time has been moved to the package
31497         System.Soft_Links.Tasking.
31498
31499         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
31500
31501         * s-solita.ads, s-solita.adb: New files.
31502
31503 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31504
31505         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
31506         Case_Statement_to_gnu): Split off from gnat_to_gnu.
31507         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
31508         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
31509         Exception_Handler_to_gnu_zcx): Likewise.
31510
31511 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
31512
31513         * gigi.h (builtin_function): Declare.
31514
31515 2004-07-15  Robert Dewar  <dewar@gnat.com>
31516
31517         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
31518         reformatting
31519
31520         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
31521         access values as an example of a warning.
31522
31523         * gnat_rm.texi: Document new attribute Has_Access_Values
31524
31525         * gnat-style.texi: Document that box comments belong on nested
31526         subprograms
31527
31528         * sem_util.ads (Has_Access_Values): Improved documentation
31529
31530         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
31531
31532         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
31533         (Process_Interface_Name): Call to this new procedure
31534         (Set_Extended_Import_Export_External_Name): Call to this new procedure
31535
31536         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
31537
31538         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
31539
31540         * einfo.ads: Minor comment typo fixed
31541
31542 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
31543
31544         * snames.adb: Add _atcb.
31545
31546         * snames.ads: Add Name_uATCB.
31547
31548         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
31549         (in the expanded code) when using the restricted run time.
31550
31551         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
31552         a in parameter in order to allow ATCBs to be preallocated (in the
31553         expanded code).
31554
31555         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
31556         order to allow ATCBs to be preallocated. In case of error, the ATCB is
31557         deallocated in System.Tasking.Stages.
31558
31559         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
31560         order to allow ATCBs to be preallocated.
31561
31562         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
31563         here. It was previously done in Initialize_ATCB.
31564
31565         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
31566
31567         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
31568         Restricted run time.
31569
31570         * exp_ch3.adb: When using the Restricted run time, pass the
31571         preallocated Ada_Task_Control_Block when creating a task.
31572
31573 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
31574
31575         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
31576         function call that is itself an actual in an enclosing call, diagnose
31577         problem here rather than assuming that resolution will catch it.
31578
31579         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
31580         the local copy of a generic unit for a formal package, and the generic
31581         is a child unit, install private part of ancestors before compiling
31582         private part of spec.
31583
31584         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
31585         use scope entities rather than tree structures, to handle properly
31586         parent units that are instances rewritten as bodies for inlining
31587         purposes.
31588
31589         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
31590         Remove_Parents): Handle properly a parent unit that is an
31591         instantiation, when the unit has been rewritten as a body for inlining
31592         purposes.
31593
31594         * par.adb (Goto_List): Global variable to collect goto statements in a
31595         given unit, for use in detecting natural loops.
31596
31597         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
31598         use in detecting natural loops.
31599
31600         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
31601         backwards goto's, and rewrite as a infinite loop, to improve locality
31602         of temporaries.
31603
31604         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
31605         subcomponent that includes an indexed reference, to prevent the
31606         generation of copies that would miscompile the desired assignment
31607         statement.
31608         (Build_Task_Image_Decls): Add a numeric suffix to
31609         generated name for string variable, to avoid spurious conflicts with
31610         the name of the type of a single protected object.
31611
31612         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
31613         loop with an explicit exit statement, to avoid generating an
31614         out-of-range value with 'Succ leading to spurious constraint_errors
31615         when compiling with -gnatVo.
31616
31617 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
31618
31619         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
31620         might not be analyzed yet, even if its Etype is already set (case of an
31621         unchecked conversion built using Unchecked_Convert_To, for example).
31622         If the prefix has already been analyzed, this will be a nop anyway.
31623
31624         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
31625         controller type, or an assignment of a record type with controlled
31626         components, copy only user data, and leave the finalization chain
31627         pointers untouched.
31628
31629 2004-07-15  Vincent Celier  <celier@gnat.com>
31630
31631         * make.adb (Collect_Arguments): Improve error message when attempting
31632         to compile a source not part of any project, when -x is not used.
31633
31634         * prj.ads: (Defined_Variable_Kind): New subtype
31635
31636         * prj-attr.adb (Register_New_Package): Two new procedures to register
31637         a package with or without its attributes.
31638         (Register_New_Attribute): Mew procedure to register a new attribute in a
31639         package.
31640         New attribute oriented subprograms: Attribute_Node_Id_Of,
31641         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
31642         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
31643         Next_Attribute.
31644         New package oriented subprograms: Package_Node_Id_Of,
31645         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
31646
31647         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
31648         type.
31649         (Package_Node_Id): Now a private, self initialized type
31650         (Register_New_Package): New procedure to register a package with its
31651         attributes.
31652         New attribute oriented subprograms: Attribute_Node_Id_Of,
31653         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
31654         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
31655         Next_Attribute.
31656         New package oriented subprograms: Package_Node_Id_Of,
31657         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
31658
31659         * prj-dect.adb (Parse_Attribute_Declaration,
31660         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
31661
31662         * prj-makr.adb (Make): Parse existing project file before creating
31663         other files. Fail if there was an error during parsing.
31664
31665         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
31666         new spec of Prj.Attr.
31667
31668         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
31669         to new spec of Prj.Attr.
31670
31671 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31672
31673         * utils2.c: Fix typo in comment.
31674
31675 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31676
31677         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
31678         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
31679
31680 2004-07-14  Andreas Schwab  <schwab@suse.de>
31681
31682         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
31683
31684 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31685
31686         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
31687         object type.
31688         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
31689         TYPE_STUB_DECL.
31690
31691         * misc.c (gnat_types_compatible_p): New function.
31692         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
31693         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
31694
31695         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
31696         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
31697         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
31698         (mark_visited): Don't mark dummy type.
31699         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
31700         parameter, we must remove any LJM building from GNU_NAME.
31701         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
31702         (pos_to_constructor): Use int_const_binop.
31703         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
31704         PARM_DECL.
31705
31706         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
31707         (gnat_pushlevel): Set TREE_USE on BLOCK node.
31708         (gnat_install_builtins): Add __builtin_memset.
31709
31710 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
31711
31712         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
31713         for a renaming, stabilize the initialization expression if we are at a
31714         local level.  At the local level, uses of the renaming may be performed
31715         by a direct dereference of the initializing expression, and we don't
31716         want possible variables there to be evaluated for every use.
31717
31718         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
31719         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
31720         them on the way.  Account for the fact that we may introduce side
31721         effects in the process.
31722
31723 2004-07-13  Richard Henderson  <rth@redhat.com>
31724
31725         * misc.c (default_pass_by_ref): Use pass_by_reference.
31726
31727 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
31728
31729         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
31730         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
31731
31732 2004-07-08  Richard Henderson  <rth@redhat.com>
31733
31734         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
31735         commentary.
31736
31737 2004-07-06  Vincent Celier  <celier@gnat.com>
31738
31739         * vms_conv.ads: Minor reformatting.
31740         Alphabetical order for enumerated values of type Command_Type, to have
31741         the command in alphabetical order for the usage.
31742
31743         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
31744         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
31745
31746         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
31747
31748         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
31749         (Add_Archive_Path): Only add the global archive if there is one.
31750         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
31751         or not any object file to put in the global archive, and don't build
31752         a global archive if there is none.
31753         (X_Switches): New table
31754         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
31755         in the X_Switches table, if any.
31756         (Initialize): Make sure the X_Switches table is empty
31757         (Scan_Arg): Record -X switches in table X_Switches
31758
31759         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
31760
31761         * make.adb: Minor comment fix
31762
31763         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
31764         invoked with directory information, add the directory in front of the
31765         path.
31766
31767         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
31768         invoked with directory information, add the directory in front of the
31769         path.
31770
31771         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
31772         when Keep_Temporary_Files is False.
31773         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
31774         directory information, add the directory in front of the path.
31775         When not on VMS, handle new switch -dn before the command to set
31776         Keep_Temporary_Files to True.
31777         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
31778         everywhere.
31779
31780         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
31781         invoked with directory information, add the directory in front of the
31782         path.
31783
31784 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
31785
31786         * snames.ads, snames.adb (Name_Stub): New name for the distributed
31787         systems annex.
31788
31789         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
31790         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
31791
31792         * g-socket.adb (To_Timeval): Fix incorrect conversion of
31793         Selector_Duration to Timeval for the case of 0.0.
31794
31795         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
31796         documentation from Evolve_And_Then.
31797
31798 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
31799
31800         * s-taprop-tru64.adb, s-taprop-os2.adb,
31801         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
31802
31803 2004-07-06  Robert Dewar  <dewar@gnat.com>
31804
31805         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
31806         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
31807         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
31808         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
31809         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
31810         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
31811         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
31812         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
31813         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
31814         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
31815         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
31816         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
31817         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
31818         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
31819         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
31820         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
31821         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
31822         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
31823         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
31824         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
31825         vms_data.ads: Minor reformatting,
31826         Fix bad box comment format.
31827
31828         * gnat_rm.texi: Fix minor grammatical error
31829
31830         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
31831
31832         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
31833         more cases of discriminated records to be recognized as not needing a
31834         secondary stack.
31835         (Has_Access_Values): New function.
31836
31837         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
31838
31839         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
31840         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
31841         with LRM terminology).
31842         Change terminology in comments primitive type => elementary type.
31843
31844 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
31845
31846         PR ada/15602
31847         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
31848         parameters do not impose any requirements on the presence of a body.
31849
31850 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
31851
31852         PR ada/15593
31853         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
31854         compilation unit and is in an open scope at the point of instantiation,
31855         assume that a body may be present later.
31856
31857 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
31858
31859         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
31860         Improve error message when specified size is not supported.
31861
31862         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
31863         is never a primitive operation.
31864
31865 2004-07-05  Andreas Schwab  <schwab@suse.de>
31866
31867         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
31868         RECORD_OR_UNION_CHECK.
31869         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
31870
31871 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
31872
31873         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
31874         dependency on xgnatugn, instead build it via a submake.
31875         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
31876
31877 2004-07-04  Richard Henderson  <rth@redhat.com>
31878
31879         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
31880
31881 2004-07-01  Richard Henderson  <rth@redhat.com>
31882
31883         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
31884         * utils.c (max_size): Likewise.
31885
31886 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31887
31888         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
31889         and rest_of_type_compilation; add arg to create_*_decl.
31890         (annotate_decl_with_node): Deleted.
31891         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
31892         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
31893         (get_current_block_context, gnat_pushdecl): New declarations.
31894         (gnat_init_stmt_group): Likewise.
31895         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
31896         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
31897         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
31898         (gnat_init): Call gnat_init_stmt_group.
31899         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
31900         (gnu_pending_elaboration_list): Deleted.
31901         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
31902         (gigi): Rearrange initialization calls and move some to last above.
31903         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
31904         Delete calls to add_decl_expr; add arg to create_*_decl.
31905         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
31906         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
31907         begin_subprog_body and call it.
31908         Don't push and pop ggc context.
31909         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
31910         (add_stmt): Remove handling of DECL_EXPR from here.
31911         If not in function, mark visited.
31912         (add_decl_expr): Put global at top level.
31913         Check for cases of DECL_INITIAL we have to handle here.
31914         (process_type): Add extra arg to create_type_decl.
31915         (build_unit_elab): Rework to just gimplify.
31916         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
31917         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
31918         (get_pending_elaborations, pending_elaborations_p): Likewise.
31919         (push_pending_elaborations, pop_pending_elaborations): Likewise.
31920         (get_elaboration_location, insert_elaboration_list): Likewise.
31921         (gnat_binding_level): Renamed from ada_binding_level.
31922         (init_gnat_to_gnu): Don't clear pending_elaborations.
31923         (global_bindings_p): Treat as global if no current_binding_level.
31924         (set_current_block_context): New function.
31925         (gnat_pushdecl): Renamed from pushdecl; major rework.
31926         All callers changed.
31927         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
31928         (finish_record_type): Call call pushdecl for stub decl.
31929         (function_nesting_depth): Deleted.
31930         (begin_subprog_body): Delete obsolete code.
31931         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
31932
31933 2004-06-28  Robert Dewar  <dewar@gnat.com>
31934
31935         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
31936         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
31937         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
31938         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
31939         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
31940
31941         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
31942         deal with problem of inefficient slices on machines with strict
31943         alignment, when the slice is a component of a composite.
31944
31945         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
31946         machines, we need the check there as well.
31947
31948 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
31949
31950         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
31951         determine safe copying direction for overlapping slice assignments
31952         when component is controlled.
31953
31954         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
31955         formal derived type in the actual for a formal package are visible in
31956         the enclosing instance.
31957
31958 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
31959
31960         PR ada/15600
31961         * sem_util.adb (Trace_Components): Diagnose properly an illegal
31962         circularity involving a private type whose completion includes a
31963         self-referential component.
31964         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
31965         renaming or an instantiation from an implicit derived operation.
31966
31967 2004-06-28  Pascal Obry  <obry@gnat.com>
31968
31969         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
31970         DLL.
31971         (Library_File_Name_For): Idem.
31972
31973 2004-06-28  Matthew Gingell  <gingell@gnat.com>
31974
31975         * g-traceb.ads: Add explanatory note on the format of addresses
31976         expected by addr2line.
31977
31978 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
31979
31980         * Makefile.in: Force debugging information on s-tasdeb.adb,
31981         a-except.adb and s-assert.adb needed by the debugger.
31982
31983 2004-06-28  Vincent Celier  <celier@gnat.com>
31984
31985         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
31986         Need_To_Build_Lib.
31987         (Gnatmake): Ditto.
31988
31989         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
31990
31991         * prj.adb: Minor reformatting
31992         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
31993
31994         * prj.ads: Comment updates
31995         Minor reformatting
31996         (Project_Data): Change Flag1 to Need_To_Build_Lib.
31997         Remove Flag2: not used.
31998
31999         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
32000         declaration.
32001
32002         * gnat_ugn.texi: Put a "null;" declaration in one project file example
32003
32004         * gnat_rm.texi: Document Empty declarations "null;".
32005
32006         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
32007         front of the linker options.
32008         (Link_Foreign): Put the global archives and the libraries in front of
32009         the linker options.
32010
32011 2004-06-28  Javier Miranda  <miranda@gnat.com>
32012
32013         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
32014         (RTU_Loaded): Code cleanup
32015         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
32016         withed predefined units.
32017
32018         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
32019         explicitly withed predefined units.
32020         Fix typo in comment
32021
32022         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
32023         explicitly withed predefined units.
32024
32025 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32026
32027         * ada-tree.def (DECL_STMT): Deleted.
32028         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
32029         (DECL_STMT_VAR): Deleted.
32030         * decl.c: add_decl_stmt now add_decl_expr.
32031         * gigi.h: Likewise.
32032         * trans.c: Likewise.
32033         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
32034         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
32035         (add_stmt): Only handle padded type here.
32036         (add_stmt_with_node): Allow gnat_node to not be present.
32037         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
32038         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
32039         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
32040         make a SAVE_EXPR for the entire fat pointer.
32041         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
32042         (create_index_type): Make a DECL_EXPR.
32043         (end_subprog_body): Don't call allocate_struct_function here but
32044         do clear cfun.
32045
32046 2004-06-25  Pascal Obry  <obry@gnat.com>
32047
32048         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
32049         Relocatable from Build_Dynamic_Library call.
32050
32051         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
32052         Relocatable are now synonym.
32053
32054         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
32055
32056         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
32057         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
32058         call.
32059
32060         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
32061         Lib_Address and Relocatable.
32062         (Default_DLL_Address): Removed.
32063
32064         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
32065         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
32066         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
32067         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
32068         (Default_DLL_Address): Removed.
32069
32070         * mlib-tgt-mingw.adb: Ditto.
32071         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
32072
32073         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
32074         the initial thread stack size.
32075
32076         * a-strmap.ads: Move package L to private part as it is not used in
32077         the spec. Found while reading code.
32078
32079 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
32080
32081         * tracebak.c: Introduce support for a GCC infrastructure based
32082         implementation of __gnat_backtrace.
32083
32084         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
32085         any more. Use accessors instead. This eases maintenance and relaxes
32086         some alignment constraints.
32087         (_GNAT_Exception structure): Remove the Ada specific fields
32088         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
32089         a-exexpr.adb.
32090         (is_handled_by, __gnat_eh_personality): Replace component references to
32091         exception structure by use of the new accessors.
32092
32093         * init.c (__gnat_initialize): Adjust comments to match the just
32094         reverted meaning of the -static link-time option.
32095
32096         * adaint.c (convert_addresses): Arrange not to define a stub for
32097         mips-irix any more, as we now want to rely on a real version from a
32098         recent libaddr2line.
32099
32100         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
32101         the personality routine can use them and not have to rely on a C
32102         counterpart of the record anymore. This simplifies maintenance and
32103         relaxes the constraint of having Standard'Maximum_Alignment match
32104         BIGGEST_ALIGNMENT.
32105         Update comments, and add a section on the common header alignment issue.
32106
32107 2004-06-25  Geert Bosch  <bosch@gnat.com>
32108
32109         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
32110         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
32111
32112 2004-06-25  Robert Dewar  <dewar@gnat.com>
32113
32114         * gnat_rm.texi: Fix section on component clauses to indicate that the
32115         restriction on byte boundary placement still applies for bit packed
32116         arrays.
32117         Add comment on stack usage from Initialize_Scalars
32118
32119         * gnat_ugn.texi: Add documentation for -gnatyLnnn
32120
32121         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
32122         limiting nesting level.
32123
32124         * usage.adb: Add line for -gnatyLnnn switch
32125
32126         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
32127         sem_ch13.adb, exp_aggr.adb: Minor reformatting
32128
32129         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
32130         type as well as on the subtype. This corrects a problem in freeze in
32131         setting alignments of atomic types.
32132
32133         * sem_eval.ads: Minor comment typo fixed
32134
32135         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
32136         level.  Minor reformatting.
32137
32138         * fname.adb (Is_Predefined_File_Name): Require a letter after the
32139         minus sign. This means that file names like a--b.adb will not be
32140         considered predefined.
32141
32142         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
32143         record Test new flag and give diagnostic for bad component clause.
32144         (Freeze_Entity): Set alignment of array from component alignment in
32145         cases where this is safe to do.
32146
32147         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
32148         arrays.
32149
32150         * cstand.adb: (Create_Standard): Set alignment of String to 1
32151
32152         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
32153
32154         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
32155         code in the common constrained array cases.
32156
32157         * a-storio.adb: Change implementation to avoid possible alignment
32158         problems on machines requiring strict alignment (data should be moved
32159         as type Buffer, not type Elmt).
32160
32161         * checks.adb (Apply_Array_Size_Check): Improve these checks by
32162         killing the overflow checks which we really do not need (64-bits is
32163         enough).
32164
32165 2004-06-25  Vincent Celier  <celier@gnat.com>
32166
32167         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
32168         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
32169         inconditionally for the main project.
32170         (Recursive_Add_Archives.Add_Archive_Path): New procedure
32171         (Link_Executables.Check_Time_Stamps): New procedure
32172         (Link_Executables.Link_Foreign): New procedure
32173         Changes made to reduce nesting level of this package
32174         (Check): New procedure
32175         (Add_Switches): When not in quiet output, check that a switch is not
32176         the concatenation of several valid switches. If it is, issue a warning.
32177         (Build_Global_Archive): If the global archive is rebuilt, linking need
32178         to be done.
32179         (Compile_Sources): Rebuilding a library archive does not imply
32180         rebuilding the global archive.
32181         (Build_Global_Archive): New procedure
32182         (Build_Library): New name for Build_Archive, now only for library
32183         project
32184         (Check_Archive_Builder): New procedure
32185         (Create_Global_Archive_Dependency_File): New procedure
32186         (Gprmake): Call Build_Global_Archive before linking
32187         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
32188         throughout.
32189         (Scan_Arg): Display the Copyright notice when -v is used
32190
32191         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
32192         for gnatls.
32193
32194         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
32195         COMPILE.
32196         Add new GNAT LIST qualifier /FILES=
32197         Added qualifier /DIRECTORY= to GNAT METRIC
32198         Added qualifier /FILES= to GNAT METRIC
32199         Added qualifier /FILES to GNAT PRETTY
32200
32201         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
32202         to take into account both versions of the switch.
32203
32204         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
32205         always be the last switch to the gcc driver. Disable switch storing so
32206         that switches automatically added by the gcc driver are not put in the
32207         ALI file.
32208
32209         * prj.adb (Project_Empty): Take into account changes in components of
32210         Project_Data.
32211
32212         * prj.ads (Languages_Processed): New enumaration value All_Languages.
32213
32214         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
32215         used. Split Boolean component Ada_Sources_Present in two Boolean
32216         components Ada_Sources_Present and Other_Sources_Present.
32217         Minor reformatting
32218
32219         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
32220         instead of Sources_Present.
32221         (Set_Ada_Paths.Add.Recursive_Add): Ditto
32222
32223         * prj-nmsc.adb: Minor reformatting
32224         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
32225         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
32226         Check_Ada_Naming_Scheme.
32227         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
32228         throughout.
32229
32230         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
32231         In_Limited.
32232         Make sure that all cycles where there is at least one "limited with"
32233         are detected.
32234         (Parse_Single_Project): New Boolean parameter In_Limited
32235
32236         * prj-proc.adb (Recursive_Check): When Process_Languages is
32237         All_Languages, call first Prj.Nmsc.Ada_Check, then
32238         Prj.Nmsc.Other_Languages_Check.
32239
32240         * prj-proc.adb (Process): Use Ada_Sources_Present or
32241         Other_Sources_Present (instead of Sources_Present) depending on
32242         Process_Languages.
32243
32244         * lang-specs.h: Keep -g and -m switches in the same order, and as the
32245         last switches.
32246
32247         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
32248         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
32249         False.
32250         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
32251         False.
32252
32253         * lib.ads (Disable_Switch_Storing): New procedure.
32254
32255         * make.adb: Modifications to reduce nesting level of this package.
32256         (Check_Standard_Library): New procedure
32257         (Gnatmake.Check_Mains): New procedure
32258         (Gnatmake.Create_Binder_Mapping_File): New procedure
32259         (Compile_Sources.Compile): Add switch -gnatez as the last option
32260         (Display): Never display -gnatez
32261
32262         * Makefile.generic:
32263         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
32264
32265         * gnatcmd.adb (Check_Project): New function
32266         (Process_Link): New procedure to reduce nesting depth
32267         (Check_Files): New procedure to reduce the nesting depth.
32268         For GNAT METRIC, include the inherited sources in extending projects.
32269         (GNATCmd): When GNAT LS is invoked with a project file and no files,
32270         add the list of files from the sources of the project file. If this list
32271         is too long, put it in a temp text files and use switch -files=
32272         (Delete_Temp_Config_Files): Delete the temp text file that contains
32273         a list of source for gnatpp or gnatmetric, if one has been created.
32274         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
32275         in the project file is too large, create a temporary text file that
32276         list them and pass it to the tool with "-files=<temp text file>".
32277         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
32278
32279         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
32280         generated file is in not in Ada.
32281
32282         * gnatls.adb: Remove all parameters And_Save that are no longer used.
32283         (Scan_Ls_Arg): Add processing for -files=
32284         (Usage): Add line for -files=
32285
32286         * g-os_lib.adb (On_Windows): New global constant Boolean flag
32287         (Normalize_Pathname): When on Windows and the path starts with a
32288         directory separator, make sure that the resulting path will start with
32289         a drive letter.
32290
32291         * clean.adb (Clean_Archive): New procedure
32292         (Clean_Project): When there is non-Ada code, delete the global archive,
32293         the archive dependency files, the object files and their dependency
32294         files, if they exist.
32295         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
32296
32297 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
32298
32299         * sinfo.ads: Fix typo in comment.
32300
32301         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
32302         the TSS for remote access-to-subprogram types, since these TSS are
32303         always present once the type has been analyzed.
32304         (RAS_E_Dereference): Same.
32305
32306         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
32307         reference raises Bad_Attribute, mark the reference as analyzed so the
32308         node (and any children resulting from rewrites that could have occurred
32309         during the analysis that ultimately failed) is not analyzed again.
32310
32311         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
32312
32313         * exp_dist.adb: Minor comment fix.
32314
32315         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
32316         type is an anonymous access type, no unchecked deallocation of the
32317         allocated object can occur. If the object is controlled, attach it with
32318         a count of 1. This allows attachment to the Global_Final_List, if
32319         no other relevant list is available.
32320         (Get_Allocator_Final_List): For an anonymous access type that is
32321         the type of a discriminant or record component, the corresponding
32322         finalisation list is the one of the scope of the type.
32323
32324 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
32325
32326         * sem_ch3.adb (Replace_Type): When computing the signature of an
32327         inherited subprogram, use the first subtype if the derived type
32328         declaration has no constraint.
32329
32330         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
32331         before applying previous optimization. Minor code cleanup.
32332
32333         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
32334         placed at the beginning of an unpacked record without explicit
32335         alignment, a slice of it will be aligned and does not need a copy when
32336         used as an actual.
32337
32338 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
32339
32340         PR ada/15591
32341         PR ada/15592
32342         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
32343         reference is written with expressions mimicking parameters.
32344
32345 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
32346
32347         PR ada/15589
32348         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
32349         STEP 2a. The constraints of a full type declaration of a derived record
32350         type are checked for conformance with those declared in the
32351         corresponding private extension declaration. The message
32352         "not conformant with previous declaration" is emitted if an error is
32353         detected.
32354
32355 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
32356
32357         * g-traceb.ads: Document the need for -E binder switch in the spec.
32358
32359         * g-trasym.ads: Document the need for -E binder switch in the spec.
32360
32361 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
32362
32363         * sem_prag.adb: Add handling of pragma Detect_Blocking.
32364
32365         * snames.h, snames.ads, snames.adb: Add entry for pragma
32366         Detect_Blocking.
32367
32368         * s-rident.ads: Change reference to pragma Detect_Blocking.
32369
32370         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
32371         system.ads.
32372
32373         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
32374         to indicate whether pragma Detect_Blocking is active.
32375
32376         * par-prag.adb: Add entry for pragma Detect_Blocking.
32377
32378         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
32379         of not handling WITH.
32380         Note that this replaces the previous update which was incorrect.
32381
32382 2004-06-25  Javier Miranda  <miranda@gnat.com>
32383
32384         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
32385         use-clauses to have a clean environment.
32386
32387         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
32388         the installation of the use-clauses to stablish a clean environment in
32389         case of compilation of a separate unit; otherwise the call to
32390         use_one_package is protected by the barrier Applicable_Use.
32391
32392         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
32393         the installation of the use-clauses to stablish a clean environment in
32394         case of compilation of a separate unit.
32395         (End_Use_Clauses): Minor comment cleanup.
32396
32397 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
32398
32399         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
32400
32401 2004-06-23  Richard Henderson  <rth@redhat.com>
32402
32403         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
32404
32405 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32406
32407         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
32408         now bool instead of int.
32409         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
32410         * trans.c (gnu_switch_label_stack): New function.
32411         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
32412         elaboration of renamed entity returns.
32413         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
32414         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
32415         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
32416         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
32417         DECL_SIZE_UNIT and simplify variable-sized case.
32418         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
32419         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
32420         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
32421         (build_unit_elab): Disable for now.
32422         * utils.c (mark_visited): New function.
32423         (pushdecl): Walk tree to call it for global decl.
32424         (update_pointer_to): Update all variants of pointer and ref types.
32425         Add arg to COMPONENT_REF.
32426         (convert): Likewise.
32427         Move check for converting between variants lower down.
32428         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
32429         (build_allocator): Don't force type of MODIFY_EXPR.
32430         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
32431         put_var_into_stack.
32432
32433 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32434
32435         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
32436         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
32437         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
32438         subprograms.
32439         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
32440         all callers changed.
32441         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
32442         the way that EXIT_STMT finds the loop label.
32443         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
32444         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
32445         (add_stmt): Use annotate_with_locus insted of setting directly.
32446         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
32447         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
32448         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
32449         (build_vms_descriptor): Add extra args to ARRAY_REF.
32450         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
32451         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
32452         New cases.
32453         (build_binary_op): Don't make explicit CONVERT_EXPR.
32454         Add extra rgs to ARRAY_REF.
32455
32456 2004-06-14  Pascal Obry  <obry@gnat.com>
32457
32458         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
32459         Windows.  Fix minor typo.
32460
32461         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
32462         which is now supported on Windows. With this implementation using the
32463         Library Project feature is no different on Windows than on UNIX.
32464
32465 2004-06-14  Vincent Celier  <celier@gnat.com>
32466
32467         * makegpr.adb (Compile_Sources): Nothing to do when there are no
32468         non-Ada sources.
32469
32470         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
32471
32472         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
32473         found, show the project name and the path of the previously parsed
32474         project file.
32475
32476 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
32477
32478         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
32479         array, avoid copying the actual before the call.
32480
32481 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
32482
32483         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
32484         Instead, allocate memory on worst-case alignment assumptions, and then
32485         return an aligned address within the allocated zone.
32486
32487 2004-06-14  Robert Dewar  <dewar@gnat.com>
32488
32489         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
32490         elab entities in predefined units in No_Run_Time_Mode.
32491         (Gen_Adainit_C): Same fix
32492         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
32493         units in No_Run_Time_Mode
32494         (Gen_Elab_Calls_C): Same fix
32495
32496         * symbols-vms-alpha.adb: Minor reformatting
32497
32498         * g-debpoo.ads: Minor reformatting
32499
32500         * lib.adb (In_Same_Extended_Unit): Version working on node id's
32501
32502         * lib.ads (In_Same_Extended_Unit): Version working on node id's
32503
32504         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
32505         working on nodes.
32506
32507         * make.adb: Minor reformatting
32508
32509         * par-ch12.adb: Minor reformatting
32510
32511         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
32512
32513         * prj-strt.adb: Minor reformatting
32514
32515         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
32516         be more general.
32517
32518         * sem_attr.adb: Minor reformatting
32519
32520         * sem_ch7.adb: Minor reformatting
32521
32522         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
32523         for type in the same unit as the object declaration.
32524
32525         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
32526         static string expressions and not just string literals.
32527         Minor reformatting
32528         (Set_Warning): Reset restriction warning flag for restriction pragma
32529         Implement pragma Profile_Warnings
32530         Implement pragma Profile (Restricted)
32531         Give obolescent messages for old restrictions and pragmas
32532
32533         * snames.h, snames.ads, snames.adb: Add new entry for pragma
32534         Profile_Warnings.
32535
32536         * s-rident.ads: Add declarations for restrictions required by profile
32537         Restricted and profile Ravenscar.
32538
32539         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
32540
32541         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
32542         configuration pragmas.
32543
32544 2004-06-11  Vincent Celier  <celier@gnat.com>
32545
32546         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
32547         gnatsym, when symbol policy is Restricted.
32548
32549         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
32550         gnatsym, when symbol policy is Restricted.
32551
32552         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
32553         read the symbol file.
32554         (Finalize): Fail in symbol policy Restricted if a symbol in the original
32555         symbol file is not in the object files. Do not create a new symbol file
32556         when symbol policy is Restricted.
32557
32558         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
32559         in Scng.
32560
32561         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
32562         Restricted.
32563         (Usage): Line for new switch -R
32564
32565         * make.adb (Initialize): When the platform is not VMS, add the
32566         directory where gnatmake is invoked in the front of the path, if
32567         gnatmake is invoked with directory information.  Change the Scan_Args
32568         while loop to a for loop.
32569         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
32570         if Depth is equal or greater than the proposed depth, there is nothing
32571         to do.
32572         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
32573         instead of 0.
32574
32575         * prj.ads: Add new symbol policy Restricted.
32576
32577         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
32578         with the new parameters Check_All_Labels and Case_Location.
32579
32580         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
32581         (Library_Symbol_File needs to be defined).
32582
32583         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
32584         and Case_Location If Check_All_Labels is True, check that all values of
32585         the string type are used, and output warning(s) if they are not.
32586
32587         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
32588         and Case_Location.
32589
32590         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
32591
32592         * gnat_ugn.texi: Update documentation about the library directory in
32593         Library Projects.
32594
32595         * makegpr.adb (Display_Command): In verbose mode, also display the
32596         value of the CPATH env var, when the compiler is gcc.
32597         (Initialize): Change the Scan_Args while loop to a for loop
32598         (Compile_Individual_Sources): Change directory to object directory
32599         before compilations.
32600
32601         * symbols.ads: New symbol policy Restricted.
32602
32603 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
32604
32605         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
32606         is now taken care of internally in the Exception_Propagation package
32607         and does not require clients assistance any more.
32608
32609         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
32610         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
32611         functions. Helpers to maintain a predicate required in the handling of
32612         occurrence transfer between tasks.
32613         This is now handled internally and does not require clients assistance
32614         for the setup/propagate separation anymore.
32615         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
32616         allocation strategy, handle the Setup_And_Not_Propagated predicate and
32617         document.
32618
32619         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
32620         raise_after_setup, now that everything is handled internally within the
32621         setup/propagation engine.
32622
32623 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
32624
32625         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
32626         Add additional conditions for the case of an actual being a simple
32627         name or literal. Improve inlining by preventing the generation
32628         of temporaries with a short lifetime (one use).
32629
32630 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
32631
32632         PR ada/15587
32633         * einfo.ads: Minor comment updates for Has_Completion and
32634         E_Constant list of flags.
32635
32636         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
32637         and constant redeclarations now set the Has_Completion flag of their
32638         defining identifiers.
32639
32640         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
32641         Inspect_Deferred_Constant_Completion.
32642         Used to detect private deferred constants that have not been completed
32643         either by a constant redeclaration or pragma Import. Emits error message
32644         "constant declaration requires initialization expression".
32645
32646         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
32647         completes a deferred constant.
32648
32649 2004-06-11  Geert Bosch  <bosch@gnat.com>
32650
32651         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
32652
32653         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
32654         calculating exponent for scaling denormal numbers.
32655         (Leading_Part): Properly raise Constraint_Error for zero or negative
32656         Adjustment.
32657         (Remainder): Properly raise Constraint_Error for zero divisor.
32658
32659 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
32660
32661         * sem_util.adb: Minor reformatting.
32662
32663         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
32664         dereference when accessing the entry parameter record.
32665         (Check_Array_Type): Always check for possible implicit dereference.
32666         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
32667         Abort if a pointer is still present (denoting that an implicit
32668         dereference was left in the tree by the front-end).
32669
32670         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
32671         dereference when accessing the entry parameter record.
32672         (Check_Array_Type): Always check for possible implicit dereference.
32673         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
32674         Abort if a pointer is still present (denoting that an implicit
32675         dereference was left in the tree by the front-end).
32676
32677 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
32678
32679         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
32680         message, like the compiler itself does. Easier to parse the output.
32681
32682         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
32683
32684         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
32685         be base names, and not includes directories.
32686
32687 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
32688
32689         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
32690         so that dependencies are properly taken into account by make.
32691
32692 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
32693
32694         PR ada/15622
32695         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
32696         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
32697
32698 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
32699
32700         * Makefile.in (install-gnatlib): install target-specific run-time files.
32701
32702         * Make-lang.in: Remove obsolete targets.
32703
32704 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
32705
32706         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
32707         specification, to catch misuses of program unit names.
32708
32709         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
32710         superfluous conversions in an instance.
32711
32712 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
32713
32714         PR ada/15403
32715         * sem_ch12.adb (Save_References): If operator node has been folded to
32716         enumeration literal, associated_node must be discarded.
32717
32718 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
32719
32720         * s-stchop-vxworks.adb: Add required pragma Convention to
32721         Task_Descriptor because it is updated by a C function.
32722
32723 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
32724
32725         PR ada/15568
32726         * Makefile.in: Remove target specific SO_OPT on IRIX
32727
32728 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32729
32730         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
32731         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
32732         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
32733         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
32734         (STMT_STMT, USE_STMT): New statement codes.
32735         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
32736         * ada-tree.h: Reflect above changes.
32737         (struct tree_loop_id): Deleted.
32738         (union lang_tree_node, struct lang_decl, struct lang_type):
32739         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
32740         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
32741         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
32742         (IS_ADA_STMT): New macro.
32743         * decl.c (annotate_decl_with_node): New function.
32744         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
32745         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
32746         Call add_stmt_with_node to do needed assignments.
32747         Add call to update setjmp buffer directly, not via EXPR_STMT.
32748         (maybe_variable): Argment GNAT_NODE deleted.
32749         * gigi.h (maybe_variable): Likewise.
32750         (make_transform, add_stmt_with_node, set_block_for_group): New.
32751         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
32752         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
32753         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
32754         (set_lineno, set_lineno_from_sloc): Likewise.
32755         (record_code_position, insert_code_for): Likewise.
32756         (gnat_poplevel): Now returns void.
32757         (end_subprog_body): Now takes argument.
32758         * misc.c (cgraph.h, tree-inline.h): New includes.
32759         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
32760         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
32761         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
32762         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
32763         (gnat_parse_file): Don't set immediate_size_expand.
32764         Call cgraph functions.
32765         (gnat_expand_expr): Remove most cases.
32766         (record_code_position, insert_code_for): Remove from here.
32767         * trans.c (toplev.h, tree-gimple.h): Now included.
32768         (discard_file_names): Deleted.
32769         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
32770         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
32771         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
32772         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
32773         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
32774         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
32775         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
32776         (set_block_for_group, add_stmt_list): Likewise.
32777         (start_stmt_group): Renamed from start_block_stmt.
32778         (end_stmt_group): Likewise, from end_block_stmt.
32779         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
32780         (gigi): Don't set discard_file_names or call set_lineno.
32781         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
32782         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
32783         Numerous changes throughout to reflect new names and complete
32784         function-at-a-time implementation.
32785         (gnat_expand_stmt): Delete or comment out all cases.
32786         (process_inlined_subprograms): Use add_stmt.
32787         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
32788         call set_lineno; also remove unneeded block handling.
32789         (process_type): Remove unneeded block handling.
32790         (build_unit_elab): Remove calls to deleted functions.
32791         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
32792         (tree-dump.h): Likewise.
32793         (struct ada_binding_level): Add field jmpbuf_decl.
32794         (gnat_define_builtin, gnat_install_builtins): New.
32795         (gnat_gimplify_function, gnat_finalize): Likewise.
32796         (gnat_poplevel): No longer return BLOCK, set it instead.
32797         Remove code dealing with nested functions.
32798         (gnat_init_decl_processing): Also set size_type_node.
32799         Call gnat_install_builtins.
32800         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
32801         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
32802         Remove special-case for "main".
32803         (end_subprog_body): Add arg and rework for tree-ssa.
32804         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
32805         Add case for BOOLEAN_TYPE.
32806         * utils2.c (rtl.h): Now include.
32807         (build_call_raise): Test Debug_Flag_NN directly.
32808         (build_call_alloc_dealloc): Don't use local stack allocation for now.
32809         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
32810         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
32811
32812 2004-06-07  Robert Dewar  <dewar@gnat.com>
32813
32814         * a-direct.ads, einfo.ads: Minor comment updates
32815
32816         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
32817         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
32818         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
32819         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
32820         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
32821
32822         * s-interr-sigaction.adb: Remove unreferenced variable
32823         (Attached_Interrupts).  Minor reformatting.
32824         Avoid use of variable I (replace by J).
32825
32826         * par-ch10.adb: Fix text of one error message
32827
32828         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
32829         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
32830         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
32831         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
32832         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
32833         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
32834         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
32835         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
32836         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
32837         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
32838         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
32839         2005 support.
32840
32841 2004-06-07  Doug Rupp  <rupp@gnat.com>
32842
32843         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
32844
32845         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
32846
32847         * mlib-tgt-vms-ia64.adb: New file.
32848
32849         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
32850         Add mlib-tgt-vms-ia64.adb
32851         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
32852         Move to alpha specific ifeq section.
32853         Add VMS specific versions of symbols.adb
32854         Renaming of 5q vms files.
32855
32856         * 5qsystem.ads renamed to system-vms_64.ads.
32857
32858 2004-06-07  Vincent Celier  <celier@gnat.com>
32859
32860         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
32861         explain that when a time of day corresponding to the non existing hour
32862         on the day switching to DST is specified, Split may return a different
32863         value for Seconds.
32864
32865         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
32866         to GNAT PRETTY.
32867
32868         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
32869         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
32870
32871         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
32872         to False.
32873         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
32874         the linking options.
32875         (Build_Library.Check_Libs): On VMS, if there is a dependency on
32876         g-trasym.ads, set Gtrasymobj_Needed to True.
32877
32878         * prj-attr.adb: Add new package Metrics for gnatmetric
32879
32880         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
32881         canonical case to take into account files with upper case characters on
32882         Windows.
32883         (Ada_Check): Load the reference symbol file name in the name buffer to
32884         check it, not the symbol file name.
32885
32886         * snames.ads, snames.adb: Add standard name Metrics (name of project
32887         file package for gnatmetric).
32888
32889         * vms_conv.ads: Add Metric to Comment_Type
32890
32891         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
32892
32893         * vms_data.ads: Add qualifiers for GNAT METRIC
32894
32895         * makegpr.adb (Link_Executables): Take into account the switches
32896         specified in package Linker of the main project.
32897
32898 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
32899
32900         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
32901         the index of the last element is Units.Last, not Units.Table'Last
32902         (which is usually not a valid index within the actually allocated
32903         storage for the table).
32904
32905         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
32906         determines whether to generate a call to a checked storage pool
32907         Dereference action.
32908         Generate such a call only for a dereference that either comes from
32909         source, or is the result of rewriting a dereference that comes from
32910         source.
32911
32912 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
32913
32914         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
32915
32916 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
32917
32918         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
32919         file level, elaborate the stride for inner dimensions in alignment
32920         units, not bytes.
32921
32922         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
32923         in a comment.
32924
32925 2004-06-07  Javier Miranda  <miranda@gnat.com>
32926
32927         * exp_ch6.adb: Correct wrong modification in previous patch
32928
32929 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
32930
32931         * g-trasym.ads: Corrected comment to properly reflect level of support
32932         on VMS.
32933
32934 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
32935
32936         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
32937         includes case of a variable referenced on the left hand side of an
32938         assignment, therefore remove redundant code. Variables and prefixes of
32939         indexed or selected components are now marked as referenced on left
32940         hand side. Warnings are now properly emitted when variables or prefixes
32941         are assigned but not read.
32942
32943         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
32944         left hand side referenced variables. Private access types do not
32945         produce the warning "variable ... is assigned but never read".
32946         Add also additional checks to left hand side referenced variables.
32947         Aliased, renamed objects and access types do not produce the warning
32948         "variable ... is assigned but never read" since other entities may read
32949         the memory location.
32950
32951 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
32952
32953         * Makefile.in: In the powerpc/vxworks-specific section, restore
32954         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
32955         by mistake).
32956
32957 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
32958
32959         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
32960         predefined operators.
32961         Removes spurious type errors from g-trasym-vms.adb.
32962
32963         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
32964         distinct from the operator appearing in the source, call appropriate
32965         routine to insert conversions when needed, and complete resolution of
32966         node.
32967         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
32968         interpretations for rewritten right operand.
32969         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
32970         the other operand is overloaded and the context is a type conversion.
32971
32972 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32973
32974         * ada-tree.def (BLOCK_STMT): Now has two operands.
32975         (BREAK_STMT): New.
32976
32977         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
32978
32979         * gigi.h: (gnat_poplevel): Now returns a tree.
32980
32981         * trans.c (end_block_stmt): Add arg; all callers changed.
32982         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
32983         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
32984         (add_stmt): Set TREE_TYPE.
32985         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
32986         (gnat_expand_stmt, case BREAK_STMT): New case.
32987
32988         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
32989
32990 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
32991
32992         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
32993         procedure Set_Stack_Size that is not needed.
32994
32995 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
32996
32997         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
32998         used for gnatpp input file and for the files upon which it depends
32999
33000 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
33001
33002         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
33003
33004 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
33005
33006         * gnatvsn.ads: Bump version numbers appropriately.
33007         Add new build type.
33008
33009 2004-06-07  Pascal Obry  <obry@gnat.com>
33010
33011         * gnat_ugn.texi: Improve comments about imported names and link names
33012         on Windows. Add a note about the requirement to use -k gnatdll's option
33013         when working with a DLL which has stripped stdcall symbols (no @nn
33014         suffix).
33015
33016 2004-05-27  Vincent Celier  <celier@gnat.com>
33017
33018         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
33019         COMMENTS_LAYOUT=UNTOUCHED
33020
33021         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
33022         symbols-vms-alpha.adb
33023
33024 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
33025
33026         * sem.ads: Clarify documentation on checks suppression.
33027
33028         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
33029
33030 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
33031
33032         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
33033         the case of multiple derivations.
33034         (Is_Object_Reference): For a selected component, verify that the prefix
33035         is itself an object and not a value.
33036
33037         * sem_ch12.adb (Same_Instantiated_Constant): New name for
33038         Same_Instantiated_Entity.
33039         (Same_Instantiated_Variable): Subsidiary to
33040         Check_Formal_Package_Instance, to recognize actuals for in-out generic
33041         formals that are obtained from a previous formal package.
33042         (Instantiate_Subprogram_Body): Emit proper error when
33043         generating code and the proper body of a stub is missing.
33044
33045         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
33046         has a universal interpretation, do the disambiguation here.
33047
33048         * exp_ch4.adb (Expand_N_Type_Conversion,
33049         Expand_N_Unchecked_Type_Conversion): Special handling when target type
33050         is Address, to avoid typing anomalies when Address is a visible integer
33051         type.
33052
33053         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
33054         to determine whether a subprogram should not be marked Pure, even when
33055         declared in a pure package.
33056
33057 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
33058
33059         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
33060
33061         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
33062         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
33063         Update the documentation about the Ravenscar profile, following the
33064         definition found in AI-249.
33065
33066         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
33067         setting the Profile (Ravenscar). This must be done in addition to
33068         setting the required restrictions.
33069
33070         * rtsfind.ads: Add the set of operations defined in package
33071         Ada.Interrupts.
33072
33073         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
33074         restriction.
33075
33076 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
33077
33078         lang-specs.h: Always require -c or -S and always redirect to /dev/null
33079         if -gnatc or -gnats is passed.
33080
33081 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
33082
33083         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
33084         a significant reference. Warnings are now properly emitted when a
33085         discriminated type is not referenced.
33086
33087         * lib-xref.adb (Generate_Reference): A deferred constant completion,
33088         record representation clause or record type discriminant does not
33089         produce a reference to its corresponding entity. Warnings are now
33090         properly emitted when deferred constants and record types are not
33091         referenced.
33092
33093 2004-05-27  Geert Bosch  <bosch@gnat.com>
33094
33095         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
33096         Fixes ACATS Annex G tests.
33097
33098 2004-05-27  Robert Dewar  <dewar@gnat.com>
33099
33100         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
33101         handling WITH
33102
33103 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
33104
33105         * s-interr.adb (Server_Task): Take into account case of early return
33106         from sigwait under e.g. linux.
33107
33108 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
33109
33110         * gnat_ugn.texi: Add description for the new gnatpp options:
33111          -rnb - replace the original source without creating its backup copy
33112          -c0 - do not format comments
33113
33114 2004-05-24  Geert Bosch  <bosch@gnat.com>
33115
33116         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
33117         with 192 bits of precision, sufficient to reduce a double-extended
33118         arguments X with a maximum relative error of T'Machine_Epsilon, for X
33119         in -2.0**32 .. 2.0**32.
33120         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
33121         reduction by the processor, which only uses a 68-bit approximation of
33122         Pi.
33123         (Tan): Always reduce arguments and compute function either using
33124         the processor's fptan instruction, or by dividing sin and cos as needed.
33125
33126 2004-05-24  Doug Rupp  <rupp@gnat.com>
33127
33128         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
33129         gcc error on 32/64 bit VMS.
33130
33131 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
33132
33133         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
33134         since this is what we get for stack overflows although not documented
33135         as such.
33136         Document the issues which may require adjustments to our signal
33137         handlers.
33138
33139 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
33140
33141         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
33142         enclosing dynamic scope if the instantiation is within a generic unit.
33143
33144 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
33145
33146         * exp_dbug.ads: Fix typo.
33147
33148         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
33149         Rename it to its proper name: system-linux-ia64.ads
33150         (stamp-gnatlib1): Remove extra target specific run time files when
33151         setting up the rts directory.
33152
33153 2004-05-24  Javier Miranda  <miranda@gnat.com>
33154
33155         * einfo.ads, einfo.adb (Limited_Views): Removed.
33156         (Limited_View): New attribute that replaces the previous one. It is
33157         now a bona fide package with the limited-view list through the
33158         first_entity and first_private attributes.
33159
33160         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
33161         limited-private-with clause.
33162         (Install_Limited_Withed_Unit): Install the private declarations of a
33163         limited-private-withed package. Update the installation of the shadow
33164         entities according to the new structure (see Build_Limited_Views)
33165         (Build_Limited_Views): Replace the previous implementation of the
33166         limited view by a package entity that references the first shadow
33167         entity plus the first shadow private entity (required for limited-
33168         private-with clause)
33169         (New_Internal_Shadow_Entity): Code cleanup.
33170         (Remove_Limited_With_Clause): Update the implementation to undo the
33171         new work carried out by Build_Limited_Views.
33172         (Build_Chain): Complete documentation.
33173         Replace Ada0Y by Ada 0Y in comments
33174         Minor reformating
33175
33176         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
33177         types the level of accessibility depends on the enclosing type
33178         declaration.
33179
33180         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
33181         entities. Complete documentation of previous change.
33182
33183 2004-05-24  Robert Dewar  <dewar@gnat.com>
33184
33185         * namet.adb: Minor reformatting
33186         Avoid use of name I (replace by J)
33187         Minor code restructuring
33188
33189         * sem_ch6.adb: Minor reformatting
33190
33191         * lib-writ.adb: Do not set restriction as active if this is a
33192         Restriction_Warning case.
33193
33194         * sem_prag.adb: Reset restriction warning flag if real pragma
33195         restriction encountered.
33196
33197         * s-htable.adb: Minor reformatting
33198         Change rotate count to 3 in Hash (improves hash for small strings)
33199
33200         * 5qsystem.ads: Add comments for type Address (no literals allowed).
33201
33202         * gnat_ugn.texi: Add new section of documentation "Code Generation
33203         Control", which describes the use of -m switches.
33204
33205 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
33206
33207         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
33208         through the DECL_INITIAL for renamed variables.
33209
33210 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
33211
33212         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
33213
33214 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
33215
33216         * exp_dbug.ads: Correct comments concerning handling of overloading,
33217         since we no longer use $ anymore.
33218
33219 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
33220
33221         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
33222         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
33223         with illegal subunits.
33224
33225 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
33226
33227         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
33228         body with front-end inlining enabled, check whether an inline pragma
33229         appears immediately after the body and applies to it.
33230
33231         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
33232         enabled and the pragma appears after the body of the subprogram.
33233
33234 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33235
33236         Part of function-at-a-time conversion
33237
33238         * misc.c (adjust_decl_rtl): Deleted.
33239         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
33240         Define.
33241
33242         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
33243         (add_decl_stmt, add_stmt, block_has_vars): New functions.
33244         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
33245
33246         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
33247         when making a decl.
33248         (gnat_to_gnu_entity): Likewise.
33249         Use add_stmt to update setjmp buffer.
33250         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
33251         flush_addressof.
33252         No longer call adjust_decl_rtl.
33253         (DECL_INIT_BY_ASSIGN_P): New macro.
33254         (DECL_STMT_VAR): Likewise.
33255
33256         * trans.c (gigi): Call start_block_stmt to make the outermost
33257         BLOCK_STMT.
33258         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
33259         Call start_block_stmt and end_block_stmt temporarily.
33260         Use gnat_expand_stmt instead of expand_expr_stmt.
33261         (add_decl_stmt): New function.
33262         (tree_transform): Call it.
33263         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
33264         (end_block_stmt): Set type and NULL_STMT.
33265         (gnat_expand_stmt): Make recursize call instead of calling
33266         expand_expr_stmt.
33267         (gnat_expand_stmt, case DECL_STMT): New case.
33268         (set_lineno_from_sloc): Do nothing if global.
33269         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
33270         (start_block_stmt, add_stmt, end_block_stmt): New functions.
33271         (build_block_stmt): Call them.
33272         (gnat_to_code): Don't expand NULL_STMT.
33273         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
33274         args.
33275         (tree_transform): Likewise.
33276         (tree_transform, case N_Null_Statement): Return NULL_STMT.
33277         (gnat_expand_stmt, case NULL_STMT): New case.
33278         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
33279         IF_STMT_TRUE.
33280
33281         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
33282         TREE_ADDRESSABLE.
33283
33284         * utils.c (create_var_decl): Do not call expand_decl or
33285         expand_decl_init.
33286         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
33287         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
33288         here.
33289         (struct e_stack): Add chain_next to GTY.
33290         (struct binding_level): Deleted.
33291         (struct ada_binding_level): New struct.
33292         (free_block_chain): New.
33293         (global_binding_level, clear_binding_level): Deleted.
33294         (global_bindings_p): Rework to see if no chain.
33295         (kept_level_p, set_block): Deleted.
33296         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
33297         new data structure and work directly on BLOCK node.
33298         (gnat_poplevel): Similarly.
33299         (get_decls): Look at BLOCK_VARS.
33300         (insert_block): Work directly on BLOCK node.
33301         (block_has_var): New function.
33302         (pushdecl): Rework for new binding structures.
33303         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
33304         poplevel.
33305         (build_subprog_body): Likewise.
33306         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
33307
33308         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
33309
33310         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
33311         (DECL_STMT_VAR): Likewise.
33312
33313 2004-05-17  Robert Dewar  <dewar@gnat.com>
33314
33315         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
33316         procedure
33317
33318         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
33319         of restriction synonyums by using
33320         Restrict.Process_Restriction_Synonyms.
33321
33322         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
33323
33324         * s-restri.ads (Tasking_Allowed): Correct missing comment
33325
33326         * s-rident.ads: Add entries for restriction synonyms
33327
33328         * ali.adb: Fix some problems with badly formatted ALI files that can
33329         result in infinite loops.
33330
33331         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
33332         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
33333         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
33334         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
33335         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
33336         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
33337         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
33338         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
33339         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
33340         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
33341         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
33342         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
33343         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
33344         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
33345         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
33346         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
33347         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
33348         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
33349         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
33350         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
33351         to Task_Id (minor cleanup).
33352
33353 2004-05-17  Vincent Celier  <celier@gnat.com>
33354
33355         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
33356         directory separator.
33357
33358         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
33359         project being extended, if Languages is not declared in extending
33360         project.
33361
33362 2004-05-17  Javier Miranda  <miranda@gnat.com>
33363
33364         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
33365         limited view of a visible sibling.
33366
33367 2004-05-14  Robert Dewar  <dewar@gnat.com>
33368
33369         * gnat_ugn.texi: Minor change to -gnatS documentation
33370
33371         * sprint.adb: Remove some instances of Assert (False) and for this
33372         purpose replace them by output of a ??? string.
33373
33374         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
33375         Assert (False).
33376
33377         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
33378         flag processing. This was suppressing required dependencies in
33379         No_Run_Time mode and is not needed since the binder does not generate
33380         references for things in libgnat anyway.
33381
33382         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
33383         warning.
33384
33385 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
33386
33387         * gnat_ugn.texi: Document AIX-specific issue with initialization of
33388         resolver library.
33389
33390         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
33391         action for the case of an actual parameter in an init proc call.
33392
33393 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
33394
33395         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
33396         subtype, check visible entities in base type.
33397
33398         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
33399         actions if the object is a renaming.
33400
33401         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
33402         Check_Formal_Package_Instance, to determine more precisely when the
33403         formal and the actual denote the same entity.
33404
33405 2004-05-14  Javier Miranda  <miranda@gnat.com>
33406
33407         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
33408
33409         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
33410         corresponding to a private_with must be removed from visibility; it
33411         will be made visible later, just before we analyze the private part of
33412         the package.
33413         (Check_Private_Child_Unit): Allow private_with clauses in public
33414         siblings.
33415         (Install_Siblings): Make visible the private entities of private-withed
33416         siblings.
33417         (Install_Withed_Unit): Do not install the private withed unit if we
33418         are compiling a package declaration and the Private_With_OK flag was
33419         not set by the caller. These declarations will be installed later,
33420         just before we analyze the private part of the package.
33421
33422         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
33423         during the evaluation of the expression that initializes the object,
33424         decorate it with the expected type to avoid cascade errors.
33425         Code cleanup.
33426
33427         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
33428         subprogram we have to install the private_with clauses after its
33429         specification has been analyzed (as documented in AI-262.TXT).
33430
33431         * sem_ch8.adb (Has_Private_With): New function. Determines if the
33432         current compilation unit has a private with on a given entity.
33433         (Find_Direct_Name): Detect the Beaujolais problem described in
33434         AI-262.TXT
33435
33436         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
33437         provides the functionality of the function Is_Ancestor that was
33438         previously available in sem_ch10. It has been renamed to avoid
33439         overloading.
33440
33441         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
33442
33443 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33444
33445         * utils.c (build_vms_descriptor): Use SImode pointers.
33446
33447 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
33448
33449         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
33450
33451 2004-05-14  GNAT Script  <nobody@gnat.com>
33452
33453         * Make-lang.in: Makefile automatically updated
33454
33455 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
33456
33457         Renaming of target specific files for clarity
33458
33459         * Makefile.in: Rename GNAT target specific files.
33460
33461         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
33462         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
33463         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
33464         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
33465         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
33466         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
33467         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
33468         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
33469         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
33470         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
33471         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
33472         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
33473         51osinte.adb, 51osinte.ads, 51system.ads,
33474         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
33475         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
33476         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
33477         56tpopsp.adb, 57system.ads, 58system.ads,
33478         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
33479         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
33480         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
33481         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
33482         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
33483         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
33484         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
33485         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
33486         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
33487         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
33488         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
33489         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
33490         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
33491         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
33492         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
33493         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
33494         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
33495         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
33496         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
33497         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
33498         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
33499         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
33500         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
33501         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
33502         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
33503         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
33504         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
33505         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
33506         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
33507         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
33508         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
33509         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
33510         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
33511         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
33512         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
33513         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
33514         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
33515         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
33516         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
33517         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
33518
33519         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
33520         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
33521         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
33522         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
33523         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
33524         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
33525         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
33526         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
33527         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
33528         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
33529         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
33530         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
33531         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
33532         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
33533         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
33534         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
33535         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
33536         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
33537         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
33538         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
33539         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
33540         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
33541         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
33542         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
33543         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
33544         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
33545         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
33546         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
33547         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
33548         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
33549         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
33550         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
33551         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
33552         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
33553         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
33554         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
33555         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
33556         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
33557         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
33558         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
33559         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
33560         s-osinte-vms.ads, s-osinte-vxworks.adb,
33561         s-osinte-vxworks.ads, s-osprim-mingw.adb,
33562         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
33563         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
33564         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
33565         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
33566         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
33567         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
33568         s-stchop-vxworks.adb, s-taprop-dummy.adb,
33569         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
33570         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
33571         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
33572         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
33573         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
33574         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
33575         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
33576         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
33577         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
33578         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
33579         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
33580         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
33581         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
33582         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
33583         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
33584         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
33585         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
33586         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
33587         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
33588         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
33589         system-irix-o32.ads, system-linux-x86_64.ads,
33590         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
33591         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
33592         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
33593         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
33594         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
33595         system-vxworks-mips.ads, system-vxworks-ppc.ads,
33596         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
33597         above.
33598
33599 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
33600
33601         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
33602
33603 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
33604
33605         Merge from tree-ssa-20020619-branch.
33606
33607         * config-lang.in (boot_language, build_by_default): Set
33608         to no.
33609         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
33610         (max_size): Add static chain op for call_expr.
33611
33612 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
33613
33614         PR target/15331
33615         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
33616
33617 2004-05-11  Roger Sayle  <roger@eyesopen.com>
33618
33619         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
33620         COND_EXPR.
33621
33622 2004-05-10  Doug Rupp  <rupp@gnat.com>
33623
33624         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
33625         system.aux_dec.
33626
33627         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
33628
33629         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
33630
33631         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
33632         Fixes undefined symbols in IA64 gnatlib.
33633
33634         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
33635
33636         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
33637         Short_Address). This will be moved to system.auxdec.
33638
33639 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
33640
33641         * sem_util.adb: Replace test for presence of a node that is always
33642         present with a call to Discard_Node.
33643
33644         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
33645         Analyze on the library unit node after generation of distribution stub
33646         constructs.  The call was a no-op because Unit_Node has already been
33647         Analyzed, and the tree fragments for the distribution stubs are
33648         analyzed as they are inserted in Exp_Dist.
33649         Update comment regarding to distribution stubs to reflect that we
33650         do not generate stub in separate files anymore.
33651
33652         * einfo.ads: Clarify the fact that a tagged private type has the
33653         E_Record_Type_With_Private Ekind.
33654
33655         * erroutc.adb: Minor reformatting
33656
33657         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
33658         values if line length is increased using -gnatyM (noticed during code
33659         reading).
33660
33661         * eval_fat.adb: Minor reformatting
33662         Put spaces around exponentiation operator
33663
33664 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
33665
33666         PR ada/15005
33667         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
33668         has been rewritten as an explicit dereference, retrieve type of
33669         original node to check for possibly unconstrained record type.
33670
33671 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
33672
33673         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
33674         overriding, use the operation of the parent unconditionally.
33675
33676         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
33677         operation when either operand is a literal, to avoid further
33678         ambiguities.
33679
33680         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
33681         overridden by a previous explicit declaration, mark the previous entity
33682         as overriding.
33683
33684         * sem_disp.adb (Check_Dispatching_Operation): New predicate
33685         Is_Visibly_Controlled, to determine whether a declaration of a
33686         primitive control operation for a derived type overrides an inherited
33687         one. Add warning if the explicit declaration does not override.
33688
33689 2004-05-10  Vincent Celier  <celier@gnat.com>
33690
33691         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
33692         some cases when the sources are no longer present.
33693
33694         * make.adb (Collect_Arguments): Fail if an external source, not part
33695         of any project need to be compiled, when switch -x has not been
33696         specified.
33697
33698         * makeusg.adb: Document new switch -x
33699
33700         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
33701         defaulted to False.
33702
33703         * switch-m.adb (Scan_Make_Switches): New switch -x
33704
33705         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
33706         gnatmake switch -x.
33707
33708         * gnat_ugn.texi: Document new gnatmake switch -x
33709
33710 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
33711
33712         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
33713
33714         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
33715         (process_attributes): Likewise.
33716
33717 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
33718
33719         * s-inmaop.ads: Fix spelling mistake in one of the comments.
33720
33721 2004-05-10  Robert Dewar  <dewar@gnat.com>
33722
33723         * gnat_ugn.texi: Document that for config pragma files, the maximum
33724         line length is always 32767.
33725
33726         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
33727         literals is now allowed.
33728
33729         * gnat-style.texi: Remove statement about splitting long lines before
33730         an operator rather than after, since we do not follow this rule at all.
33731         Clarify rule (really lack of rule) for spaces around exponentiation
33732
33733         * sem_elim.adb: Allow concatenation of string literals as well as a
33734         single string literal for pragma arguments.
33735
33736         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
33737
33738         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
33739         written for append case.
33740
33741         * frontend.adb: Changes to avoid checking max line length in config
33742         pragma files.
33743
33744         * g-os_lib.ads: Minor reformatting
33745
33746         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
33747         wrong in any case. Instead use standard value. Noticed during code
33748         reading.
33749
33750         * opt.ads (Max_Line_Length): New field, used to implement removal of
33751         limitation on length of lines when scanning config pragma files.
33752
33753         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
33754         makeutl.ads, makeutl.adb: Minor reformatting
33755
33756         * scn.adb: Do not check line length while scanning config pragma files
33757         Do not check line length while scanning out license information
33758
33759         * scng.adb: Changes to avoid line length checks while parsing config
33760         pragma files.
33761
33762 2004-05-10  GNAT Script  <nobody@gnat.com>
33763
33764         * Make-lang.in: Makefile automatically updated
33765
33766 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
33767
33768         * osint.adb (Find_Program_Name): Fix handling of VMS version
33769         number.
33770
33771 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
33772
33773         * g-os_lib.ads (Invalid_Time): New constant
33774
33775         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
33776         return OS_Time instead of time_t to match what is imported by Ada.
33777         Now return -1 if the file doesn't exist, instead of a random value
33778
33779 2004-05-05  Robert Dewar  <dewar@gnat.com>
33780
33781         * usage.adb: Add line for -gnatR?s switch
33782
33783         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
33784
33785         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
33786         and for Match (Data_First, Data_last)
33787
33788         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
33789         written when we are dealing with multi-unit files.
33790
33791 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
33792
33793         * Makefile.in: Remove unused targets and variables.
33794
33795 2004-05-05  Vincent Celier  <celier@gnat.com>
33796
33797         * switch-m.adb: New gnatmake switch -eI
33798
33799         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
33800         of new gnatmake switch -eInnn.
33801
33802         * makegpr.adb: Take into account new parameters Index and Src_Index in
33803         Prj.Util.
33804
33805         * clean.adb: Implement support for multi-unit sources, including new
33806         switch -i.
33807
33808         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
33809         Src_Index.
33810
33811         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
33812         (Extract_From_Q): New out parameter Index
33813         (Mark, Is_Marked): Subprograms moved to Makeutl
33814         (Switches_Of): New parameter Source_Index
33815         (Add_Switch): New parameter Index
33816         (Check): New parameter Source_Index
33817         (Collect_Arguments): New parameter Source_Index
33818         (Collect_Arguments_And_Compile): New parameter Source_Index
33819         (Compile): New parameter Source_Index
33820         Put subprograms in alphabetical order
33821         Add support for multi-source sources, including in project files.
33822
33823         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
33824         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
33825         Make.
33826
33827         * makeusg.adb: New gnatmake switch -eInnn
33828
33829         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
33830         Prj.Util.Value_Of.
33831
33832         * opt.ads (Main_Index): New variable, defaulted to 0.
33833
33834         * osint.ads, osinte.adb (Add_File): New parameter Index
33835         (Current_Source_Index): New function
33836
33837         * prj.adb: Take into account new components Index and Src_Index
33838
33839         * prj.ads (String_Element): New component Index
33840         (Variable_Value): New component Index
33841         (Array_Element): New component Src_Index
33842
33843         * prj-attr.adb: Indicate that optional index may be specified for
33844         attributes Main, Executable, Spec, Body and some of Switches.
33845
33846         * prj-attr.ads (Attribute_Kind): New values for optional indexes
33847         (Attribute_Record): New component Optional_Index
33848
33849         * prj-com.ads (File_Name_Data): New component Index
33850
33851         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
33852
33853         * prj-env.adb (Put): Output optional index
33854
33855         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
33856         attributes Spec and Body.
33857
33858         * prj-nmsc.adb: Process optional indexes
33859
33860         * prj-pp.adb: Ouput "at" for optional indexes
33861
33862         * prj-proc.adb: Take into account optional indexes
33863
33864         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
33865         Optional_Index. For string literal,
33866         process optional index when Optional_Index is True.
33867         (Parse_Expresion): New Boolean parameter Optional_Index
33868
33869         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
33870         (Set_Source_Index_Of): New procedure
33871
33872         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
33873         index.
33874
33875         * prj-util.ads (Executable_Of): New parameter Index
33876         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
33877         New parameter Src_Index, defaulted to 0.
33878
33879 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
33880
33881         PR ada/15257
33882         * sem_ch3.adb (Access_Definition): If this is an access parameter
33883         whose designated type is imported through a limited_with clause, do
33884         not add the enclosing subprogram to the list of private dependents of
33885         the type.
33886
33887 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
33888
33889         PR ada/15258
33890         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
33891         a limited_with clause, and the other is its non-limited view.
33892
33893 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
33894
33895         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
33896
33897         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
33898         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
33899         Stand.Boolean_Literals to produce references to entities
33900         Standard_False and Standard_True from compile-time computed boolean
33901         values.
33902
33903         * stand.ads (Boolean_Literals): New variable, provides the entity
33904         values for False and True, for use by the expander.
33905
33906 2004-05-05  Doug Rupp  <rupp@gnat.com>
33907
33908         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
33909         5vinmaop.adb: Unchecked convert Short_Address vice Address
33910
33911         * adaint.c, raise.c: Caste CRTL function return value
33912         to avoid gcc error on 32/64 bit IVMS.
33913
33914         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
33915         target = IA64/VMS.
33916
33917         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
33918
33919         * 5qsystem.ads (Address): Declare as Long_Integer
33920         (Short_Address): Declare as 32 bit subtype of Address
33921         Declare  abstract address operations to avoid gratuitous ambiguities.
33922
33923 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
33924
33925         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
33926         instead of the old Boolean_Entry_Barriers.
33927         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
33928
33929 2004-05-05  GNAT Script  <nobody@gnat.com>
33930
33931         * Make-lang.in: Makefile automatically updated
33932
33933 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
33934
33935         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
33936
33937 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
33938
33939         PR ada/15152
33940         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
33941         alone. Replacing object references by literals is inappropriate in a
33942         so low level context.
33943
33944 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
33945
33946         * a-exexpr.adb: Add comments
33947
33948 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
33949
33950         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
33951         declare the Ancestor_Tags array in Type_Specific_Data with a small size
33952         without risking a bounds check error when accessing one of its
33953         components.
33954         (Type_Specific_Data): Define Ancestor_Tags as a small array.
33955         This prevents us from hitting a limitation during the debug info
33956         generation when using stabs.
33957
33958         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
33959         small array.
33960         This prevents us from hitting a limitation during the debug info
33961         generation when using stabs.
33962
33963 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
33964
33965         lang-specs.h: Remove -gnatz* from specs.
33966
33967 2004-05-03  Vincent Celier  <celier@gnat.com>
33968
33969         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
33970
33971         * Make-lang.in, Makefile.in: Add gprmake
33972
33973 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
33974
33975         * sem_aggr.adb: Fix typo in comment.
33976
33977 2004-05-03  Robert Dewar  <dewar@gnat.com>
33978
33979         * make.adb: Minor reformatting
33980
33981         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
33982
33983         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
33984         so that it works when address is not a private type.
33985
33986         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
33987         properly with rewritten unchecked conversions. This prevents
33988         order-of-elaboration issues that can otherwise arise.
33989         (Minimum_Size): Don't check size of access types under VMS
33990
33991         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
33992         interpretations of integer literals as type System.Address.
33993
33994         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
33995         (Is_Descendent_Of): New function
33996
33997 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
33998
33999         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
34000         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
34001         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
34002
34003         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
34004         of the old Max_Entry_Queue_Depth.
34005
34006         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
34007         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
34008         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
34009
34010         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
34011         New entry for proper handling of Max_Entry_Queue_Depth.
34012         New entry for proper handling of No_Dynamic_Interrupts.
34013
34014         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
34015         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
34016         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
34017         the GNAT specific restriction Max_Entry_Queue_Depth.
34018         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
34019         the GNAT specific restriction No_Dynamic_Interrupts.
34020
34021         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
34022         instead of the old Boolean_Entry_Barriers.
34023         Use the new restriction No_Dynamic_Attachment instead of the old
34024         No_Dynamic_Interrupts.
34025
34026         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
34027         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
34028
34029         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
34030         of the old Max_Entry_Queue_Depth.
34031
34032 2004-05-03  GNAT Script  <nobody@gnat.com>
34033
34034         * Make-lang.in: Makefile automatically updated
34035
34036 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
34037
34038         * checks.adb (Enable_Range_Check): If the prefix of an index component
34039         is an access to an unconstrained array, perform check unconditionally.
34040
34041 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34042
34043         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
34044         Component_Clause.
34045
34046 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
34047
34048         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
34049         alternate stack setting. There was no support for the tasking cases
34050         and the changes eventually caused a number of side-effect failures in
34051         the non-tasking case too.
34052
34053 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
34054
34055         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
34056         -gnats is passed.
34057
34058 2004-04-29  Vincent Celier  <celier@gnat.com>
34059
34060         * make.adb (Gnatmake): Increase max size of argument array for
34061         gnatbind for the potential addition of -F.
34062         If there are Stand-Alone Library projects, invoke gnatbind with -F to
34063         be sure that elaboration flags will be checked.
34064
34065         * switch-c.adb: Correct call to Scan_Pos for -gnateI
34066
34067 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
34068
34069         * sem_warn.adb (Check_References): Move '<access-variable> may be
34070         null' warning out of under Warn_On_No_Value_Assigned.
34071
34072 2004-04-29  Ed Falis  <falis@gnat.com>
34073
34074         * gnat_ugn.texi: Fixed texi error
34075
34076 2004-04-29  Robert Dewar  <dewar@gnat.com>
34077
34078         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
34079         abstract operations if they come from predefined files.
34080
34081         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
34082         Dynamic, not RM).
34083
34084         * s-addope.adb: Correct obvious error in mod function
34085
34086 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
34087
34088         * Makefile.in: Add target pairs for powerpc darwin*
34089         tasking support.
34090
34091         * a-intnam-darwin.ads, s-osinte-darwin.adb,
34092         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
34093
34094 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
34095
34096         * Makefile.in: Add target macro definitions for s390*-linux*.
34097         * system-linux-s390.ads: New file.
34098         * system-linux-s390x.ads: New file.
34099
34100 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
34101
34102         * gnat_ugn.texi: Correct argument to @setfilename.
34103
34104 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
34105
34106         * a-exexpr.adb (Unwind_Word): New data type.
34107         (Unwind_Exception): Use it as type of Private1 and Private2.
34108
34109         * raise.c (db_action_for): Fix debug printf.
34110
34111 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
34112
34113         * a-wtmoio.ads: Formal type must be a modular type, not a signed
34114         integer type.
34115
34116 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34117
34118         * decl.c (gnat_to_gnu_entity, case object): Call
34119         __builtin_update_setjmp_buf.
34120
34121         * gigi.h (update_setjmp_buf): Deleted.
34122         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
34123
34124         * misc.c: (update_setjmp_buf): Deleted.
34125
34126         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
34127         around block of RTL.
34128
34129         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
34130
34131 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
34132
34133         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
34134         subprogram for which no pragma All_Calls_Remote applies, store the
34135         address of the real subprogram in the underlying record type, so local
34136         dereferences do not go through the PCS.
34137
34138 2004-04-26  Robert Dewar  <dewar@gnat.com>
34139
34140         * i-c.ads: Add some type qualifications to avoid ambiguities when
34141         compiling with s-auxdec.ads and a non-private address type.
34142
34143 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
34144
34145         * Makefile.rtl: Fix error in previous check-in:
34146         Add s-addope.o to non tasking object list (rather than tasking object
34147         list).
34148
34149 2004-04-26  Javier Miranda  <miranda@gnat.com>
34150
34151         * sem_aggr.adb: Fix typo in comments
34152         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
34153         Required to check the null-exclusion attribute.
34154
34155         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
34156         case of anonymous access types in record and array components. For a
34157         component definition the level is the same of the enclosing composite
34158         type.
34159
34160         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
34161         that are anonymous access types the level of accessibility depends on
34162         the enclosing type declaration. In order to have this information, set
34163         the scope of the anonymous access type to the enclosing record type
34164         declaration.
34165         (Array_Type_Declaration): In case of components that are anonymous
34166         access types the level of accessibility depends on the enclosing type
34167         declaration. In order to have this information, set the scope of the
34168         anonymous access type to the enclosing array type declaration.
34169
34170         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
34171         access type.
34172
34173         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
34174         renaming of anonymous access-to-constant types allowed if and only if
34175         the renamed object is access-to-constant.
34176
34177         * sem_util.adb (Type_Access_Level): In case of anonymous access types
34178         that are component_definition or discriminants of a nonlimited type,
34179         the level is the same as that of the enclosing component type.
34180
34181 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
34182
34183         * sem_elim.adb: Some minor code reorganization from code reading. Fix
34184         misprint in the function name (File_Name_Match).
34185
34186 2004-04-23  Laurent Guerby  <laurent@guerby.net>
34187
34188         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
34189         install.
34190
34191 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
34192
34193         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
34194
34195 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
34196
34197         * adaint.c (__gnat_try_lock): No longer requires that the parent
34198         directory be writable, the directory itself is enough.
34199         (gnat_is_absolute_path): Change profile, so that the call from
34200         GNAT.OS_Lib can be made more efficient.
34201
34202         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
34203         from GNAT.OS_Lib can be made more efficient.
34204
34205         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
34206         one copy of the file name. Found by code reading.
34207
34208 2004-04-23  Vincent Celier  <celier@gnat.com>
34209
34210         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
34211         Correct documentation on gnatmake switches transmitted to the compiler
34212
34213         * ali.ads: Minor comment fix
34214
34215 2004-04-23  Javier Miranda  <miranda@gnat.com>
34216
34217         * sem_ch6.adb: (Confirming Types): Code cleanup
34218
34219         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
34220         subprogram types: E_Anonymous_Access_Subprogram_Type and
34221         E_Anonymous_Access_Protected_Subprogram_Type.
34222
34223 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
34224
34225         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
34226         whether a pragma All_Calls_Remote applies to the subprogram on which
34227         'Access is taken.
34228         No functional change is introduced by this revision; the new parameter
34229         will be used to allow calls to local RCI subprograms to be optimized
34230         to not use the PCS in the case where no pragma All_Calls_Remote applies,
34231         as is already done in the PolyORB implementation of the DSA.
34232
34233         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
34234         whether a pragma All_Calls_Remote applies to the subprogram on which
34235         'Access is taken.
34236         No functional change is introduced by this revision; the new parameter
34237         will be used to allow calls to local RCI subprograms to be optimized
34238         to not use the PCS in the case where no pragma All_Calls_Remote applies,
34239         as is already done in the PolyORB implementation of the DSA.
34240
34241 2004-04-23  Robert Dewar  <dewar@gnat.com>
34242
34243         * Makefile.rtl: Add entry for s-addope.o in run time library list
34244         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
34245         * s-addope.ads, s-addope.adb: New files.
34246
34247         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
34248         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
34249         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
34250         System.Address to be non-private and signed.
34251
34252         * sem_elim.adb: Minor reformatting (fairly extensive)
34253         Some minor code reorganization from code reading
34254         Add a couple of ??? comments
34255
34256 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34257
34258         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
34259         (tree_transform, case N_If_Statement): Remove non-determinism.
34260
34261         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
34262
34263 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
34264
34265         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
34266         Eliminate' section.
34267
34268         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
34269         no longer used as a parameter name for Eliminate pragma).
34270
34271 2004-04-22  Laurent Guerby  <laurent@guerby.net>
34272
34273         PR optimization/14984
34274         PR optimization/14985
34275         * trans.c (gigi): Fix non determinism leading to bootstrap
34276         comparison failures.
34277
34278 2004-04-21  Pascal Obry  <obry@gnat.com>
34279
34280         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
34281         passed to spawnvp() to properly handle program pathname with spaces on
34282         Win32.
34283
34284 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
34285
34286         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
34287         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
34288         unlocked in case of exceptions.
34289
34290 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
34291
34292         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
34293         This function does not exist anymore.
34294
34295 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
34296
34297         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
34298
34299         * link.c: Move variables to the __gnat name space.
34300
34301         * Makefile.in: list link.o explicitly when needed.
34302
34303         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
34304
34305 2004-04-21  Javier Miranda  <miranda@gnat.com>
34306
34307         * einfo.adb (Original_Access_Type): New subprogram
34308         (Set_Original_Access_Type): New subprogram
34309         (Write_Field21_Name): Write the name of the new field
34310
34311         * einfo.ads (Original_Access_Type): New field present in access to
34312         subprogram types.
34313         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
34314         E_Anonymous_Access_Protected_Subprogram_Type.
34315
34316         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
34317         subprogram types.
34318
34319         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
34320         to anonymous access to subprogram types.
34321
34322         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
34323         to subprogram types.
34324
34325         * sem_ch3.adb (Access_Definition): Complete decoration of entities
34326         corresponding to anonymous access to subprogram types.
34327         (Analyze_Component_Declaration): Add new actual to the call to
34328         subprogram replace_anonymous_access_to_protected_subprogram.
34329         (Array_Type_Declaration): Add new actual to the call to subprogram
34330         replace_anonymous_access_to_protected_subprogram.
34331         (Process_Discriminants): Add new actual to the call to subprogram
34332         replace_anonymous_access_to_protected_subprogram.
34333         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
34334
34335         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
34336         formal.
34337
34338         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
34339         access to subprogram types.
34340
34341         * sem_util.adb (Has_Declarations): Addition of package_specification
34342         nodes.
34343
34344 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
34345
34346         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
34347         inlined flags to renamed entity only if in current unit.
34348
34349 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
34350
34351         * s-parint.ads: Add DSA implementation marker.
34352
34353         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
34354         value of System.Partition_Interface.DSA_Implementation to determine
34355         what version of the distributed systems annex is available (no
34356         implementation, GLADE, or PolyORB).
34357
34358 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
34359
34360         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
34361
34362 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34363
34364         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
34365         with new type if alias sets differ.
34366         Fixes ACATS c41103b.
34367
34368 2004-04-21  Vincent Celier  <celier@gnat.com>
34369
34370         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
34371         Add array Lang_Args for the language specific compiling argument
34372         switches.
34373
34374         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
34375
34376 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
34377
34378         * gnat_rm.texi: Update the descripton of the Eliminate pragma
34379         according to the recent changes in the format of the parameters of the
34380         pragma (replacing Homonym_Number with Source_Location).
34381
34382 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
34383
34384         * 5isystem.ads: Removed, unused.
34385
34386         * gnat_rm.texi: Redo 1.13 change.
34387
34388 2004-04-19  Robert Dewar  <dewar@gnat.com>
34389
34390         * s-stoele.ads: Clean up definition of Storage_Offset (the new
34391         definition is cleaner, avoids the kludge of explicit Standard operator
34392         references, and also is consistent with a visible System.Address with
34393         no visible operations.
34394
34395         * s-geveop.adb: Add declarations to avoid assumption of visible
34396         operations on type System.Address (since these might not be available
34397         if Address is a non-private type for which the operations
34398         are made abstract).
34399
34400         * sem_eval.adb: Minor reformatting
34401
34402         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
34403         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
34404         reformatting (new function spec format).
34405
34406         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
34407         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
34408         s-caun64.adb: Add declarations to avoid assumption of visible
34409         operations on type System.Address (since these might not be available
34410         if Address is a non-private type for which the operations are made
34411         abstract).
34412
34413         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
34414
34415         * exp_intr.adb: Minor comment update
34416
34417         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
34418
34419         * 5omastop.adb: Add declarations to avoid assumption of visible
34420         operations on type System.Address (since these might not be available
34421         if Address is a non-private type for which the operations
34422         are made abstract).
34423
34424 2004-04-19  Vincent Celier  <celier@gnat.com>
34425
34426         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
34427
34428         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
34429         defaulted to Ada.
34430
34431         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
34432         defaulted to Ada.
34433         Call Check with Process_Languages.
34434         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
34435         with Process_Languages.
34436         (Recursive_Check): New Boolean parameter Process_Languages. Call
34437         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
34438         Process_Languages.
34439
34440         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
34441
34442         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
34443         parameter Ada_Main, defaulted to True.
34444         Check for Ada specific characteristics only when Ada_Main is True.
34445
34446         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
34447
34448         * prj.adb: (Project_Empty): Add new Project_Data components.
34449
34450         * prj.ads: New types and tables for non Ada languages.
34451         (Project_Data): New components Languages, Impl_Suffixes,
34452         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
34453         Include_Path, Include_Data_Set.
34454
34455         * prj-env.ads, prj-env.adb: Minor reformatting
34456
34457         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
34458         Put subprograms in alphabetical order
34459
34460         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
34461         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
34462         Opt.Follow_Links.
34463
34464         * mlib-prj.adb: Back out modification in last version, as they are
34465         incorrect.
34466         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
34467
34468         * make.adb: (Mains): Moved to package Makeutl
34469         (Linker_Opts): Moved to package Makeutl
34470         (Is_External_Assignment): Moved to package Makeutl
34471         (Test_If_Relative_Path): Moved to package Makeutl
34472         (Gnatmake): Move sorting of linker options to function
34473         Makeutl.Linker_Options_Switches.
34474
34475         * makeutl.ads, makeutl.adb: New files.
34476
34477         * Makefile.in: Add makeutl.o to the object files for gnatmake
34478
34479         * makeusg.adb: Add line for new switch -eL.
34480
34481         * gnatls.adb (Image): New function.
34482         (Output_Unit): If in verbose mode, output the list of restrictions
34483         specified by pragmas Restrictions.
34484
34485         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
34486         Text_IO.
34487
34488         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
34489         needed, to put it in the range 1970 (included) - 2026 (excluded).
34490         (Time_Of): Do not shift Unix_Min_Year (1970).
34491         Shift the date by multiple of 56 years, if needed, to put it in the
34492         range 1970 (included) - 2026 (excluded).
34493
34494         * adaint.h, adaint.c (__gnat_set_executable): New function.
34495
34496 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34497
34498         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
34499         and pop GC context.
34500         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
34501         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
34502         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
34503         (tree_transform, case N_Code_Statement): Likewise.
34504         (gnat_expand_stmt, case LABEL_STMT): Don't look at
34505         LABEL_STMT_FIRST_IN_EH.
34506         (gnat_expand_stmt, case ASM_STMT): New case.
34507
34508         * utils2.c (build_unary_op): Properly set TREE_READONLY of
34509         UNCONSTRAINED_ARRAY_REF.
34510
34511         * utils.c (poplevel): Temporarily push/pop GC context around inline
34512         function expansion.
34513
34514         * decl.c (maybe_variable): Properly set TREE_READONLY of
34515         UNCONSTRAINED_ARRAY_REF.
34516         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
34517
34518         * ada-tree.def: (ASM_STMT): New.
34519
34520         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
34521         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
34522         ASM_STMT_INPUT): New.
34523         (ASM_STMT_CLOBBER): Likewise.
34524
34525 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
34526
34527         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
34528         general rcheck mechanism to raise Program_Error for E.4(18), instead
34529         of a custom raiser in System.Partition_Interface.
34530         Part of general cleanup work before PolyORB integration.
34531
34532         * snames.ads, snames.adb: Add new runtime library entities and names
34533         for PolyORB DSA.
34534
34535         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
34536         exp_dist.
34537         (Build_Subprogram_Id): New subprogram provided by exp_dist
34538         Code reorganisation in preparation for PolyORB integration.
34539
34540         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
34541         exp_dist.
34542         (Build_Subprogram_Id): New subprogram provided by exp_dist
34543
34544         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
34545         actual parameter types for call to dereference of an
34546         access-to-subprogram type.
34547
34548         * rtsfind.ads: Add new runtime library entities and names for PolyORB
34549         DSA.
34550
34551         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
34552         instead, which has the same behaviour here since we never pass it a
34553         NULL pointer.
34554
34555         * link.c (run_path_option, Solaris case): Use -Wl, as for other
34556         platforms.
34557
34558         * Makefile.in: adjust object file lists for gnatlink and gnatmake
34559         to account for new dependency upon Interfaces.C.Strings + link.o
34560         For x86 FreeBSD, use 86numaux.
34561
34562         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
34563         from Mlib.Tgt to Mlib.
34564
34565         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
34566         target-independent.
34567
34568         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
34569         target-specific versions of this subprogram, now implemented as a
34570         target-independent function in Mlib.
34571
34572         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
34573         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
34574         (Linker_Library_Path_Option): Remove target-specific versions of this
34575         subprogram, now implemented as a target-independent function in Mlib.
34576
34577         * atree.adb: (Allocate_Initialize_Node): New subprogram.
34578         Factors out node table slots allocation.
34579         (Fix_Parents): New subprogram.
34580         Encapsulate the pattern of fixing up parent pointers for syntactic
34581         children of a rewritten node.
34582         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
34583         (Rewrite): Use New_Copy when creating saved copy of original node.
34584         (Replace): Use Copy_Node to copy nodes.
34585
34586 2004-04-19  Javier Miranda  <miranda@gnat.com>
34587
34588         * sprint.adb (Sprint_Node_Actual): Give support to the new
34589         Access_To_Subprogram node available in Access_Definition nodes. In
34590         addition, give support to the AI-231 node fields: null-exclusion,
34591         all-present, constant-present.
34592
34593         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
34594
34595         * sinfo.ads, sinfo.adb:
34596         New field Access_To_Subprogram_Definition in Access_Definition nodes
34597
34598         * sem_ch6.adb (Process_Formals): Move here the code that creates and
34599         decorates internal subtype declaration corresponding to the
34600         null-excluding formal. This code was previously in Set_Actual_Subtypes.
34601         In addition, carry out some code cleanup on this code. In case of
34602         access to protected subprogram call
34603         Replace_Anonymous_Access_To_Protected_Subprogram.
34604         (Set_Actual_Subtypes): Code cleanup.
34605
34606         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
34607         Find_Type in case of anonymous access renamings. Add warning in case of
34608         null-excluding attribute used in anonymous access renaming.
34609
34610         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
34611         subprogram
34612
34613         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
34614         subprogram.
34615         (Access_Definition): In case of anonymous access to subprograms call
34616         the corresponding semantic routine to decorate the node.
34617         (Access_Subprogram_Declaration): Addition of some comments indicating
34618         some code that probably should be added here. Detected by comparison
34619         with the access_definition subprogram.
34620         (Analyze_Component_Declaration): In case of access to protected
34621         subprogram call Replace_Anonymous_Access_To_Protected.
34622         (Array_Type_Declaration): In case of access to protected subprogram call
34623         Replace_Anonymous_Access_To_Protected_Subprogram.
34624         (Process_Discriminants): In case of access to protected subprogram call
34625         Replace_Anonymous_Access_To_Protected_Subprogram.
34626
34627         * par.adb (P_Access_Definition): New formal that indicates if the
34628         null-exclusion part was present.
34629         (P_Access_Type_Definition): New formal that indicates if the caller has
34630         already parsed the null-excluding part.
34631
34632         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
34633         (P_Identifier_Declarations): Code cleanup and give support to renamings
34634         of anonymous access to subprogram types.
34635         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
34636         (P_Array_Type_Definition): Give support to AI-254.
34637         (P_Component_Items): Give support to AI-254.
34638         (P_Access_Definition): New formal that indicates if the header was
34639         already parsed by the caller.
34640         (P_Access_Type_Definition): New formal that indicates if the caller has
34641         already parsed the null-excluding part.
34642
34643         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
34644         call to P_Access_Definition.
34645
34646 2004-04-19  Geert Bosch  <bosch@gnat.com>
34647
34648         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
34649         the delicate semantics of floating-point to integer conversion.
34650         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
34651
34652         * eval_fat.adb (Machine_Mantissa): Moved to spec.
34653         (Machine_Radix): New function.
34654
34655         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
34656         conversion checks.
34657         (Machine_Radix): New function also for use in conversion checks.
34658
34659 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
34660
34661         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
34662
34663         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
34664         to decorate the access-to-protected subprogram and the equivalent type.
34665
34666         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
34667         to anonymous access to subprogram types.
34668
34669         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
34670         constant-folding, for legality checks in contexts that require an RM
34671         static expression.
34672
34673         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
34674         temporary but stack checking is not enabled, increment serial number
34675         to so that symbol generation is consistent with and without stack
34676         checking.
34677
34678         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
34679         independent on whether stack checking is enabled, caller must check
34680         the corresponding flag.
34681
34682         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
34683         range checks.
34684         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
34685         parent if it has discriminants.
34686         (Build_Derived_Private_Type): Constructed full view does
34687         not come from source.
34688         (Process_Discriminants): Default discriminants on a tagged type are
34689         legal if this is the internal completion of a private untagged
34690         derivation.
34691
34692         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
34693         no constraint checks, because it corresponds to an existing object.
34694
34695         * sem_prag.adb (Process_Convention): Pragma applies
34696         only to subprograms in the same declarative part, i.e. the same unit,
34697         not the same scope.
34698
34699         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
34700         ignore type mismatch on a numeric conversion if expression comes from
34701         expansion.
34702
34703 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
34704
34705         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
34706         Homonym_Number parameter, add processing for Source_Location parameter
34707         corresponding.
34708         (Check_Eliminated): Remove the check for homonym numbers, add the check
34709         for source location traces.
34710
34711         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
34712         with Arg_Source_Location corresponding to the changes in the format of
34713         the pragma.
34714
34715         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
34716         Eliminate pragma corresponding to the changes in the format of the
34717         pragma: Homonym_Number is replaced with Source_Location, two ways of
34718         distinguishing homonyms are mutially-exclusive.
34719
34720 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
34721
34722         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
34723
34724         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
34725         No_Dollar_In_Label, no longer necessary, as it is always True.
34726         (Strip_Suffixes): Likewise.
34727
34728 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
34729
34730         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
34731         modulus for compatibility with size clause on targets with 16-bit
34732         Integer.
34733
34734         * layout.adb (Discrimify): In the case of private types, set Vtyp to
34735         full type to fix type mismatches on calls to size functions for
34736         discriminant-dependent array components.
34737
34738 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
34739
34740         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
34741         lib.
34742
34743 2004-04-19  Pascal Obry  <obry@gnat.com>
34744
34745         * mdll-utl.adb (Locate): New version is idempotent.
34746
34747 2004-04-17  Laurent Guerby  <laurent@guerby.net>
34748
34749         PR ada/14988 (partial)
34750         * impunit.adb: Fix typo.
34751
34752 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
34753
34754         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
34755         and install-rts-cert targets.  Remove all gnatlib and gnattools
34756         targets and all other rts-* targets (moved to libada).  Remove (now)
34757         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
34758         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
34759
34760 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34761
34762         * trans.c (tree_transform): Shortcut returning error_mark_node for
34763         statements in annotate_only_mode.
34764         (tree_transform, case N_Label, case N_Return_Statement,
34765         N_Goto_Statement): Make statement tree instead of generating code.
34766         (tree_transform, case N_Assignment_Statement): No longer check
34767         type_annotate_only.
34768         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
34769         RETURN_STMT): New.
34770         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
34771         New fcns.
34772         (gnat_to_gnu): Collect any RTL generated and deal with it.
34773         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
34774         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
34775         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
34776
34777         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
34778
34779         * ada-tree.def (EXPR_STMT): Fix typo in name.
34780         (BLOCK_STMT, IF_STMT): New nodes.
34781
34782         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
34783         LABEL_STMT_FIRST_IN_EH): New macros.
34784         (RETURN_STMT_EXPR): Likewise.
34785
34786         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
34787         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
34788
34789 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
34790
34791         * atree.ads: Correct documentation on extended nodes.
34792
34793         * link.c: Set run_path_option for FreeBSD.
34794
34795 2004-04-08  Vincent Celier  <celier@gnat.com>
34796
34797         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
34798         one of the ALI file, do not link with DEC lib.
34799
34800         * par.adb Remove the last two characters ("%s" or "%b") when checking
34801         if a language defined unit may be recompiled.
34802
34803 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
34804
34805         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
34806         removal of abstract operation leaves no possible interpretation for
34807         expression.
34808
34809         * sem_eval.adb (Eval_Qualified_Expression): Use
34810         Set_Raises_Constraint_Error on node when needed, so that it does not
34811         get optimized away by subsequent optimizations.
34812
34813         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
34814         operands even when they are not wrapped in a type conversion.
34815
34816 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
34817
34818         * sem_prag.adb (Set_Exported): Warn about making static as result of
34819         export only when the export is coming from source. This may be not
34820         be true e.g. on VMS where we expand export pragmas for exception codes
34821         together with imported or exported exceptions, and we don't want the
34822         user to be warned about something he didn't write.
34823
34824 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
34825
34826         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
34827         duplication between normal entities and those declared as renamings.
34828         No functional change.
34829
34830         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
34831         inline functions returning an unconstrained result.
34832
34833 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
34834
34835         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
34836         conform to what other front-ends do.
34837
34838 2004-04-08  Doug Rupp  <rupp@gnat.com>
34839
34840         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
34841         libraries.
34842
34843 2004-04-06  Pascal Obry  <obry@gnat.com>
34844
34845         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
34846
34847         * osint.adb (Program_Name): Do not look past a directory separator.
34848
34849 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
34850
34851         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
34852
34853         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
34854         requirement for preserving a copy of the original assignment node.
34855
34856         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
34857
34858 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
34859
34860         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
34861         when supported.
34862
34863 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
34864
34865         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
34866         operator calls in functional notation, and apply
34867         Universal_Interpretation to operands, not to their type.
34868
34869 2004-04-06  Robert Dewar  <dewar@gnat.com>
34870
34871         * 5wdirval.adb: Minor reformatting
34872
34873 2004-04-06  Ed Falis  <falis@gnat.com>
34874
34875         * gnat_rm.texi: Improve a reference to the GCC manual
34876
34877 2004-04-05  Vincent Celier  <celier@gnat.com>
34878
34879         * adaint.h, adaint.c: Add function __gnat_named_file_length
34880
34881         * impunit.adb: Add Ada.Directories to the list
34882
34883         * Makefile.in: Add VMS and Windows versions of
34884         Ada.Directories.Validity package body.
34885
34886         * Makefile.rtl: Add a-direct and a-dirval
34887
34888         * mlib-tgt.ads: Minor comment update.
34889
34890         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
34891         a-direct.ads, a-direct.adb: New files.
34892
34893 2004-04-05  Vincent Celier  <celier@gnat.com>
34894
34895         PR ada/13620
34896         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
34897         just to the compiler.
34898
34899 2004-04-05  Robert Dewar  <dewar@gnat.com>
34900
34901         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
34902         returned string is 1.
34903
34904         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
34905
34906         * eval_fat.ads: Minor reformatting
34907
34908         * g-curexc.ads: Document that lower bound of returned string values
34909         is always one.
34910
34911         * gnatlink.adb: Add ??? comment for previous change
34912         (need to document why this is VMS specific)
34913
34914         * s-stoele.ads: Minor reformatting
34915
34916         * tbuild.ads: Minor reformatting throughout (new function specs)
34917
34918         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
34919         after WITH.
34920
34921         * scng.adb: Minor reformatting
34922
34923 2004-04-05  Geert Bosch  <bosch@gnat.com>
34924
34925         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
34926         (Leading_Part): Still perform truncation to machine number if the
34927         specified radix_digits is greater or equal to machine_mantissa.
34928
34929 2004-04-05  Javier Miranda  <miranda@gnat.com>
34930
34931         * par-ch3.adb: Complete documentation of previous change
34932         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
34933         (aliased must appear before constant).
34934
34935         * par-ch4.adb: Complete documentation of previous change.
34936
34937         * par-ch6.adb: Complete documentation of previous change.
34938
34939         * sinfo.ads: Fix typo in commment.
34940
34941 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
34942
34943         * sem_ch3.adb (Inherit_Components): If derived type is private and has
34944         stored discriminants, use its discriminants to constrain parent type,
34945         as is done for non-private derived record types.
34946
34947         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
34948         Ada 2005 AI-310: an abstract non-dispatching operation is not a
34949         candidate interpretation in an overloaded call.
34950
34951         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
34952         expression is Null and target type is not an access type (e.g. a
34953         non-private address type).
34954
34955 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
34956
34957         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
34958         statement whose right-hand side is an inlined call, save a copy of the
34959         original assignment subtree to preserve enough consistency for
34960         Analyze_Assignment to proceed.
34961
34962         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
34963         complete assignment subtree which is now unnecessary, as the expansion
34964         of inlined call has been improved to preserve a consistent assignment
34965         tree.  Note_Possible_Modification must be called only
34966         after checks have been applied, or else unnecessary checks will
34967         be generated.
34968
34969         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
34970         of explicit dereferences that do not Come_From_Source:
34971          - be selective on cases where we must go back to the dereferenced
34972            pointer (an assignment to an implicit dereference must not be
34973            recorded as modifying the pointer);
34974          - do not rely on Original_Node being present (Analyze_Assignment
34975            calls Note_Possible_Modification on a copied tree).
34976
34977         * sem_warn.adb (Check_References): When an unset reference to a pointer
34978         that is never assigned is encountered, prefer '<pointer> may be null'
34979         warning over '<pointer> is never assigned a value'.
34980
34981 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
34982
34983         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
34984         the ABI.
34985
34986 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
34987
34988         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
34989         libexc. We currently don't reference anything in this library and
34990         linking it in triggers linker warnings we don't want to see.
34991
34992         * init.c: Update comments.
34993
34994 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34995
34996         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
34997         * utils.c (create_field_decl): Likewise.
34998         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
34999
35000 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
35001
35002         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
35003         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
35004         Add info directory entry and category.
35005
35006 2004-04-02  Jan Hubicka  <jh@suse.cz>
35007
35008         * utils.c: Include function.h
35009         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
35010
35011 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
35012
35013         PR ada/14150
35014         * Make-lang.in: Clean up generation of documentation
35015
35016         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
35017
35018         * xgnatug.adb: Removed, replaced by xgnatugn.adb
35019
35020         * xgnatugn.adb: Replaces xgnatug.adb
35021
35022         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
35023
35024         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
35025
35026         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35027         gnat_ug_wnt.texi: Removed.
35028
35029 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
35030
35031         * utils2.c: Update copyright notice.
35032
35033 2004-04-01  Robert Dewar  <dewar@gnat.com>
35034
35035         * checks.adb: Minor reformatting throughout
35036         Note that prev checkin added RM reference to alignment warning
35037
35038 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
35039
35040         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
35041         non-static when building aggregate for bit-packed array.
35042
35043         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
35044         function call that is itself the actual in a procedure call, build
35045         temporary for it.
35046
35047         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
35048         a string literal, create a temporary for it, constant folding only
35049         handles scalars here.
35050
35051 2004-04-01  Vincent Celier  <celier@gnat.com>
35052
35053         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
35054         Error_Msg_SP): New empty procedures to instantiate the Scanner.
35055         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
35056         tokens.
35057         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
35058         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
35059         and get the checksum.
35060
35061         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
35062         already in the Q.
35063         Increase the Marking_Label at the end of the Multiple_Main_Loop,
35064         instead of at the beginning.
35065
35066         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
35067         directly.
35068         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
35069         on VMS.
35070
35071         * osint.ads (Multi_Unit_Index_Character): New Character global variable
35072
35073         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
35074         not '~' directly.
35075
35076         * par.adb: Remove test on file name to detect language defined units.
35077         Add test on unit name, after parsing, to detect language defined units
35078         that are not compiled with -gnatg (except System.RPC and its children)
35079
35080         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
35081         following units without style checking.
35082
35083         * switch-c.adb: Change -gnatC to -gnateI
35084
35085         * usage.adb: Document new switch -gnateInnn
35086
35087         * scng.adb (Accumulate_Token_Checksum): New procedure
35088         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
35089         word or literal number.
35090         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
35091         numbers.
35092
35093 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
35094
35095         * a-tasatt.adb,
35096         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
35097         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
35098         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
35099         5vtpopde.adb: Add missing 'constant' keywords.
35100
35101 2004-04-01  Javier Miranda  <miranda@gnat.com>
35102
35103         * par-ch4.adb: (P_Allocator): Code cleanup
35104
35105         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
35106         attribute.
35107
35108         * sinfo.ads: Complete documentation of previous change
35109
35110 2004-04-01  Pascal Obry  <obry@gnat.com>
35111
35112         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
35113         only on VMS.  This special handling was done because an old GNU/ld bug
35114         on Windows which has been fixed.
35115
35116 2004-04-01  GNAT Script  <nobody@gnat.com>
35117
35118         * Make-lang.in: Makefile automatically updated
35119
35120 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35121
35122         * decl.c (gnat_to_gnu_entity, make_type_from_size):
35123         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
35124         * trans.c (tree_transform, convert_with_check): Likewise.
35125         * utils.c (gnat_signed_or_unsigned_type): Likewise.
35126         (build_vms_descriptor, unchecked_convert): Likewise.
35127         * utils2.c (nonbinary_modular_operation): Likewise.
35128
35129 2004-03-29  Javier Miranda  <miranda@gnat.com>
35130
35131         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
35132         (Install_Null_Excluding_Check): Local subprogram that determines whether
35133         an access node requires a runtime access check and if so inserts the
35134         appropriate run-time check.
35135         (Apply_Access_Check): Call Install_Null_Excluding check if required
35136         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
35137
35138         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
35139
35140         * einfo.ads: Fix typo in comment
35141
35142         * exp_ch3.adb (Build_Assignment): Generate conversion to the
35143         null-excluding type to force the corresponding run-time check.
35144         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
35145         type to force the corresponding run-time check.
35146
35147         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
35148         the null-excluding type to force the corresponding run-time check.
35149
35150         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
35151         case of access types unless they have the null-excluding attribute.
35152
35153         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
35154         part.
35155
35156         * exp_util.ads: Fix typo in comment
35157
35158         * par.adb (P_Null_Exclusion): New subprogram
35159         (P_Subtype_Indication): New formal that indicates if the null-excluding
35160         part has been scanned-out and it was present
35161
35162         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
35163
35164         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
35165         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
35166         type to force the corresponding run-time check
35167         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
35168         components
35169         (Resolve_Array_Aggregate): Carry out some static checks
35170         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
35171
35172         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
35173         attribute must be set only if specified by means of the null-excluding
35174         part. In addition, we must also propagate the access-constant attribute
35175         if present.
35176         (Access_Subprogram_Declaration, Access_Type_Declaration,
35177         Analyze_Component_Declaration, Analyze_Object_Declaration,
35178         Array_Type_Declaration, Process_Discriminants,
35179         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
35180         and carry out some static checks.
35181         (Build_Derived_Access_Type): Set the null-excluding attribute
35182         (Derived_Type_Declaration, Process_Subtype): Carry out some static
35183         checks.
35184
35185         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
35186
35187         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
35188
35189         * sem_ch6.adb (Process_Formals): Carry out some static checks.
35190         (Set_Actual_Subtypes): Generate null-excluding subtype if the
35191         null-excluding part was present; it is not required to be done here in
35192         case of anonymous access types.
35193         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
35194         value.
35195
35196         * sem_res.adb (Resolve_Actuals): Carry out some static check
35197         (Resolve_Null): Allow null in anonymous access
35198
35199         * sinfo.adb: New subprogram Null_Exclusion_Present
35200         All_Present and Constant_Present available on access_definition nodes
35201
35202         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
35203         object_declaration, derived_type_definition, component_definition,
35204         discriminant_specification, access_to_object_definition,
35205         access_function_definition, allocator, access_procedure_definition,
35206         access_definition, parameter_specification, All_Present and
35207         Constant_Present flags available on access_definition nodes.
35208
35209 2004-03-29  Robert Dewar  <dewar@gnat.com>
35210
35211         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
35212         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
35213         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
35214         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
35215         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
35216         sem_prag.adb: Updates to handle multiple units/file
35217
35218         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
35219
35220         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
35221         sem_util.adb: Minor reformatting
35222
35223         * sem_ch12.adb: Add comment for previous change
35224
35225 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
35226
35227         * osint.adb (Executable_Prefix): Set Exec_Name to the current
35228         executable name when not initialized. Otherwise, use its current value.
35229
35230         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
35231         initialize it to another executable name than the current one. This
35232         allows to configure paths for an executable name (gnatmake) different
35233         from the current one (gnatdist).
35234
35235 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
35236
35237         * exp_ch6.adb (Expand_Call): A call to a function declared in the
35238         current unit cannot be inlined if it appears in the body of a withed
35239         unit, to avoid order of elaboration problems in gigi.
35240
35241         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
35242         information for protected (wrapper) operation as well, to simplify gdb
35243         use.
35244
35245         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
35246         protected body, indicate that the entity for the generated spec comes
35247         from source, to ensure that references are properly generated for it.
35248         (Build_Body_To_Inline): Do not inline a function that returns a
35249         controlled type.
35250
35251         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
35252         apply convention to homonyms that are declared explicitly.
35253
35254         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
35255         that renames an equality operator and the operands are overloaded,
35256         resolve them with the declared formal types, before rewriting as an
35257         operator.
35258
35259 2004-03-29  GNAT Script  <nobody@gnat.com>
35260
35261         * Make-lang.in: Makefile automatically updated
35262
35263 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
35264
35265         * memtrack.adb: Log realloc calls, which are treated as free followed
35266         by alloc.
35267
35268 2004-03-25  Vincent Celier  <celier@gnat.com>
35269
35270         * prj-makr.adb (Process_Directories): Detect when a file contains
35271         several units. Do not include such files in the config pragmas or
35272         in the naming scheme.
35273
35274         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
35275         Resolve links only when not in Trusted_Mode.
35276         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
35277         Do not resolve links for the display names.
35278
35279         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
35280         resolve links when computing the display names.
35281
35282 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
35283
35284         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
35285         attribute reference does not denote a subtype, it can be any
35286         expression that has a classwide type, potentially after an implicit
35287         dereference.  In particular, the prefix can be a view conversion for
35288         a classwide type (for which Is_Object_Reference holds), but it can
35289         also be a value conversion for an access-to-classwide type. In the
35290         latter case, there is an implicit dereference, and the original node
35291         for the prefix does not verify Is_Object_Reference.
35292
35293         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
35294         conversion of a discriminant-dependent component of a mutable object
35295         is one itself.
35296
35297 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
35298
35299         * freeze.adb (Freeze_Entity): When an inherited subprogram is
35300         inherited, has convention C, and has unconstrained array parameters,
35301         place the corresponding warning on the derived type declaration rather
35302         than the original subprogram.
35303
35304         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
35305         indication on renaming declaration, if formal has a box and actual
35306         is absent.
35307
35308         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
35309         determine whether to generate an implicit or explicit reference to
35310         the renamed entity.
35311
35312         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
35313         subprogram renaming comes from a defaulted formal subprogram in an
35314         instance.
35315
35316 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
35317
35318         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
35319         value expressions to ensure that calls within a component definition
35320         will be checked (since those are evaluated during the record type's
35321         elaboration).
35322
35323 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
35324
35325         * s-tpobop.adb: Code clean up:
35326         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
35327         code.
35328         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
35329
35330 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
35331
35332         * Makefile.in: Clean up in the ravenscar run time.
35333
35334 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35335
35336         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
35337         of No_Strict_Aliasing to build_pointer_type_for_mode.
35338         * utils.c (update_pointer_to): Walk pointer and ref chains.
35339
35340 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
35341
35342         * ali.ads: Fix Comment about Dynamic_Elab.
35343
35344         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
35345         Has_RACW, Is_Generic, etc.)
35346         (Output_Object, Gnatls): Take into account ALI files not attached to
35347         an object.
35348
35349 2004-03-22  Vincent Celier  <celier@gnat.com>
35350
35351         * gprep.adb: Change all String_Access to Name_Id
35352         (Is_ASCII_Letter): new function
35353         (Double_File_Name_Buffer): New procedure
35354         (Preprocess_Infile_Name): New procedure
35355         (Process_Files): New procedure
35356         (Gnatprep): Check if output and input are existing directories.
35357         Call Process_Files to do the real job.
35358
35359 2004-03-22  Robert Dewar  <dewar@gnat.com>
35360
35361         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
35362         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
35363
35364 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
35365
35366         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
35367         case when the source contains only comments.
35368
35369 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
35370
35371         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
35372         declaration for a child subprogram body that acts as a spec, indicate
35373         that the entity in the declaration needs debugging information.
35374
35375         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
35376         full view if the subtype is created for a constrained record component;
35377         gigi has enough information to construct the record, and there is no
35378         place in the tree for the declaration.
35379
35380         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
35381         serial number for the dummy body that is built for analysis, to avoid
35382         inconsistencies in the generation of internal names when compiling
35383         with -gnatN.
35384
35385 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
35386
35387         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
35388         object.
35389
35390 2004-03-22  GNAT Script  <nobody@gnat.com>
35391
35392         * Make-lang.in: Makefile automatically updated
35393
35394 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35395
35396         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
35397         * trans.c (tree_transform, emit_index_check): Likewise.
35398         * utils.c (build_template): Likewise.
35399         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
35400         (maybe_unconstrained_array, unchecked_convert): Likewise.
35401         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
35402         (build_unary_op): Likewise.
35403         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
35404         (fill_vms_descriptor): Likewise.
35405         (build_call_alloc_dealloc): Likewise.
35406         ALIGN is unsigned.
35407         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
35408
35409 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
35410
35411         PR other/14630
35412         * gnat_ug.texi: Add info directory category and entry.
35413         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35414         gnat_ug_wnt.texi: Regenerate.
35415
35416 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
35417
35418         * ada-tree.h: Update copyright notice.
35419         Minor reformatting.
35420
35421 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
35422
35423         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
35424         as regular exception objects and not as mere integers representing the
35425         condition code.  The latter approach required some dynamics to mask off
35426         severity bits, which did not fit well into the GCC table based model.
35427         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
35428         exception data objects. We don't it and it would conflict with the other
35429         external symbol we have to generate for such exceptions.
35430
35431         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
35432         the special code for VMS exceptions, since these are now represented
35433         as regular exceptions objects.
35434
35435 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35436
35437         * decl.c (debug_no_type_hash): Remove.
35438         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
35439         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
35440
35441 2004-03-19  Laurent Guerby  <laurent@guerby.net>
35442
35443         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
35444         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
35445
35446 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35447
35448         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
35449         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
35450         (TYPE_RM_SIZE_INT): Directly use type.values.
35451         (TREE_LOOP_ID): Clean up check.
35452         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
35453         TYPE_VALUES, not TYPE_FIELDS.
35454         * trans.c (convert_with_check): Delay access of bounds of basetype
35455         until sure is numeric.
35456
35457 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
35458
35459         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
35460
35461         Code clean up:
35462         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
35463         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
35464         Specific.Set instead of direct call to e.g pthread_setspecific.
35465
35466 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
35467
35468         * adaint.c: Update comments.
35469
35470         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
35471         GNATLIB_SHARED for FreeBSD.
35472
35473 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
35474
35475         * init.c [VxWorks]: Do not fix the stack size for the environment task.
35476         When needed (stack checking) the stack size is retrieved
35477         from the VxWorks kernel.
35478
35479         * Makefile.in: Flag -nostdinc is required when building the run time
35480         for avoiding looking for files in the base compiler.
35481         Add the VxWorks specific version of the package body for
35482         System.Stack_checking.Operations (5zstchop.adb).
35483
35484         * Make-lang.in: Add the object file for
35485         System.Stack_Checking.Operations.
35486
35487         * Makefile.rtl: Add object file for the package
35488         System.Stack_Checking.Operations.
35489
35490         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
35491
35492         * s-stache.ads, s-stache.adb: Move the operations related to stack
35493         checking from this package to package System.Stack_Checking.Operations.
35494         This way, stack checking operations are only linked in the final
35495         executable when using the -fstack-check flag.
35496
35497 2004-03-18  Doug Rupp  <rupp@gnat.com>
35498
35499         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
35500         Reorganize ifeq's.
35501
35502         * 5qsystem.ads, 5xcrtl.ads: New files.
35503
35504 2004-03-18  Vincent Celier  <celier@gnat.com>
35505
35506         * prj.adb (Reset): Reset hash table Files_Htable
35507
35508         * prj-env.adb (Source_Paths, Object_Paths): New tables.
35509         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
35510         the procedures Add_To_Path_File.
35511         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
35512         making sure that each directory is present only once and, for object
35513         dirs, when a directory already present is added, the duplicate is
35514         removed and the directory is always put as the last in the table.
35515         Write the path files at the end of these accumulations.
35516
35517         * prj-nmsc.adb (Record_Source): Add source file name in hash table
35518         Files_Htable for all sources.
35519
35520         * prj-proc.adb (Process): Remove restrictions between not directly
35521         related extending projects.
35522
35523 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
35524
35525         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
35526         (Find_Sources): Minor speed optimization.
35527
35528         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
35529         parameter Trusted_Mode.
35530
35531 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
35532
35533         * scn.adb (Determine_License): Take into account a degenerated case
35534         when the source contains only comments.
35535
35536 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
35537
35538         * sem_warn.adb (Check_References): For a warning on a selected
35539         component that does not come from source, locate an uninitialized
35540         component of the record type to produce a more precise error message.
35541
35542 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
35543
35544         * 3zsoccon.ads: Fix multicast options.
35545
35546         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
35547         in the spec.
35548
35549 2004-03-15  Robert Dewar  <dewar@gnat.com>
35550
35551         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
35552         pragma used for a private type.
35553
35554         * lib-xref.adb (Generate_Reference): Do not generate warning if
35555         reference is in a different unit from the pragma Unreferenced.
35556
35557         * 5vtpopde.adb: Minor reformatting
35558         Fix casing of To_Task_ID
35559
35560         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
35561         flag if we have an unchecked conversion to an access type in the same
35562         unit.
35563
35564 2004-03-15  Geert Bosch  <bosch@gnat.com>
35565
35566         * a-ngcoty.adb (Modulus): In alternate formula for large real or
35567         imaginary parts, use Double precision throughout.
35568
35569         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
35570         we want to be able to compile run-time with -gnata for testing, but
35571         this may also be instantiated in user code that is compiled with -gnata.
35572
35573 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
35574
35575         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
35576         codes. Having a separate type for this is useful to enforce consistency
35577         throughout the various run-time units.
35578         (Exception_Data): Use Exception_Code for Import_Code.
35579
35580         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
35581         Natural and Integer in various places.
35582         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
35583         with the severity bits masked off.
35584         (Register_VMS_Exception): Handle the additional exception data pointer
35585         argument.
35586
35587         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
35588         component, now reflected by an exported accessor.
35589         (is_handled_by): New routine to compute whether the propagated
35590         occurrence matches some handler choice specification. Extracted out of
35591         get_action_description_for, and expanded to take care of the VMS
35592         specifities.
35593         (get_action_description_for): Use is_handled_by instead of an explicit
35594         complex condition to decide if the current choice at hand catches the
35595         propagated occurrence.
35596
35597         * raise.h (Exception_Code): New type for C.
35598
35599         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
35600         System.Standard_Library.Exception_Code, to allow references from the
35601         pragma import/export expander.
35602
35603         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
35604         New accessors to allow easy access to GNAT exception data
35605         characteristics.
35606         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
35607         redundant Handled_By_Others component, helper for the personality
35608         routine which will now be able to call the appropriate exception data
35609         accessor instead.
35610
35611         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
35612         component of Standard_Exception_Type to be the closest possible to
35613         Exception_Code in System.Standard_Library, that we cannot get at this
35614         point. Expand a ??? comment to notify that this type node should
35615         probably be rewritten later on.
35616
35617         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
35618         registration call to include a pointer to the exception object in the
35619         arguments.
35620
35621         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
35622         instead of int and explicit bitmasks.
35623
35624 2004-03-15  Vincent Celier  <celier@gnat.com>
35625
35626         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
35627         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
35628
35629         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
35630         longer needed now that it is in the spec of
35631         System.Tasking.Task_Attributes.
35632
35633         * adaint.h, adaint.c: (__gnat_create_output_file): New function
35634
35635         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
35636
35637         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
35638
35639         * make.adb (Gnatmake): Do not check the executable suffix; it is being
35640         taken care of in Scan_Make_Arg.
35641         (Scan_Make_Arg): Add the executable suffix only if the argument
35642         following -o, in canonical case, does not end with the executable
35643         suffix.  When in verbose mode and executable file name does not end
35644         with executable suffix, output the executable name, in canonical case.
35645
35646         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
35647         to avoid warnings when instantiating Ada.Task_Attributes.
35648         Minor reformating.
35649
35650         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
35651         in the correct order.
35652
35653         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
35654         redirect standard output and error to a file for the invocation of the
35655         compiler, then read the file.
35656
35657         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
35658         directory, instead of the Value.
35659         (Find_Source_Dirs): Remove useless code & comments.
35660
35661 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
35662
35663         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
35664         tagged type is inherited, and the parent operation is not frozen yet,
35665         force generation of a freeze node for the inherited operation, so the
35666         corresponding dispatch entry is properly initialized.
35667         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
35668         when looking for user-defined equality operation.
35669
35670         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
35671         boolean when locating primitive equality of tagged component.
35672
35673         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
35674         bit-aligned field and the right-hand side a string literal, introduce
35675         a temporary before expanding assignment into a loop.
35676
35677         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
35678         priority in full, to ensure that any expanded subepxressions of it are
35679         elaborated in the scope of the init_proc.
35680
35681         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
35682         after object declaration, skipping over code that may have been
35683         generated for validity checks.
35684
35685         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
35686         discriminants, ignore the known discriminants of its full view, if
35687         any, to check legality.
35688
35689         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
35690         component if type has unknown discriminants.
35691         (Analyze_Private_Extension_Declaration): Discriminant constraint is
35692         null if type has unknown discriminants.
35693
35694         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
35695         for end label when present.
35696
35697         * s-fileio.adb (Open): When called with a C_Stream, use given name for
35698         temporary file, rather than an empty string.
35699
35700 2004-03-15  Ed Falis  <falis@gnat.com>
35701
35702         * s-thread.adb: Removed, no longer used.
35703
35704 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35705
35706         * decl.c (target.h): Now include.
35707         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
35708         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
35709         (validate_size): For POINTER_TYPE, get smallest size permitted on
35710         machine.
35711
35712         * fe.h: Sort Einfo decls and add Set_Mechanism.
35713
35714         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
35715         (ada/decl.o): Depends on target.h.
35716
35717         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
35718         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
35719
35720 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
35721
35722         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
35723
35724         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
35725         Insert_Dereference_Action when rewriting an implicit dereference into
35726         an explicit one, this will be taken care of during expansion of the
35727         explicit dereference.
35728         (Expand_N_Slice): Same. Always do the rewriting, even for the case
35729         of non-packed slices, since the dereference action generated by
35730         expansion of the explicit dereference is needed in any case.
35731         (Expand_N_Selected_Component): When rewriting an implicit dereference,
35732         analyze and resolve the rewritten explicit dereference so it is seen
35733         by the expander.
35734         (Insert_Dereference_Action): This procedure is now called only for the
35735         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
35736         dereferences that do not come from source (including explicit
35737         dereferences resulting from rewriting implicit ones), but do not
35738         recursively insert a check for the dereference nodes contained within
35739         the check.
35740         (Insert_Dereference_Action): Clarify and correct comment.
35741
35742 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
35743
35744         PR ada/14131
35745         Move language detection to the top level.
35746         * config-lang.in: Build by default.
35747
35748 2004-03-05  Robert Dewar  <dewar@gnat.com>
35749
35750         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
35751
35752         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
35753         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
35754         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
35755         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
35756         unchecked conversion to spec to avoid warnings.
35757
35758         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
35759         to Task_ID
35760
35761         * 7stpopsp.adb: Correct casing in To_Task_ID call
35762
35763         * a-strsea.ads, a-strsea.adb: Minor reformatting
35764
35765         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
35766
35767         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
35768         Adjust Max_Msg_Length to be clearly large enough.
35769
35770         * fe.h: Define In_Same_Source_Unit
35771
35772         * osint.adb: Add pragma Warnings Off to suppress warnings
35773         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
35774         aliasing warnings.
35775
35776         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
35777
35778         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
35779
35780         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
35781
35782         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
35783
35784         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
35785
35786         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
35787         node. We now do generate them for gcc back end.
35788
35789         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
35790         warning.
35791
35792         * sinput-c.adb: Fix bad name in header.
35793         Add pragma Warnings Off to suppress aliasing warning.
35794
35795         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
35796
35797         * snames.h, snames.ads, snames.adb: Add entry for pragma
35798         No_Strict_Aliasing.
35799
35800 2004-03-05  Vincent Celier  <celier@gnat.com>
35801
35802         * prj-com.ads: Add hash table Files_Htable to check when a file name
35803         is already a source of another project.
35804
35805         * prj-nmsc.adb (Record_Source): Before recording a new source, check
35806         if its file name is not already a source of another project. Report an
35807         error if it is.
35808
35809         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
35810         source file name, call gnatpp with all the sources of the main project.
35811
35812         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
35813         of file names.
35814
35815         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
35816         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
35817         /RUNTIME_SYSTEM=, converted to --RTS=
35818         /NOTABS, converted to -notabs
35819
35820 2004-03-05  Pascal Obry  <obry@gnat.com>
35821
35822         * make.adb: Minor reformatting.
35823
35824 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
35825
35826         Part of implemention of AI-262.
35827         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
35828
35829         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
35830         procedure.
35831
35832         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
35833         when component type is a partially constrained class-wide subtype.
35834         (Constrain_Discriminated_Type): If parent type has unknown
35835         discriminants, a constraint is illegal, even if full view has
35836         discriminants.
35837         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
35838         with unknown discriminants whose full view is a discriminated record.
35839
35840         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
35841         flag, to handle properly derivations of tagged types with unknown
35842         discriminants.
35843         (Analyze_Package_Spec, Analyze_Package_Body): Install
35844         Private_With_Clauses before analyzing private part or body.
35845
35846         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
35847         Has_Discriminants can be true for a given type (documentation).
35848
35849 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
35850
35851         * s-restri.ads: Fix license (GPL->GMGPL).
35852
35853         * s-tassta.adb: Minor reformatting.
35854
35855         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
35856         by calls to Exit_One_ATC_Level, since additional clean up is performed
35857         by this function.
35858
35859         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
35860         by calls to Exit_One_ATC_Level, since additional clean up is performed
35861         by this function.
35862
35863 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35864
35865         * trans.c: Reflect GCC changes to fix bootstrap problem.
35866         Add warning for suspicious aliasing unchecked conversion.
35867
35868 2004-03-05  GNAT Script  <nobody@gnat.com>
35869
35870         * Make-lang.in: Makefile automatically updated
35871
35872 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
35873
35874         * ali.adb (Read_Instantiation_Instance): Do not modify the
35875         current_file_num when reading information about instantiations, since
35876         this corrupts files in later references.
35877
35878 2004-03-02  Vincent Celier  <celier@gnat.com>
35879
35880         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
35881         before checking if it is read-only.
35882
35883         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
35884         of SRC_DIRS and eliminate duplicates.
35885
35886         * gprcmd.adb: Replace command "path" with command "path_sep" to return
35887         the path separator.
35888         (Usage): Document path_sep
35889
35890         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
35891         C++ compiler. No need for a script.
35892         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
35893         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
35894         subst.
35895
35896         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
35897         where there are Ada sources.
35898         (Set_Ada_Paths): Only add to the include path the source dirs of project
35899         with Ada sources.
35900         (Add_To_Path): Add the Display_Values of the directories, not their
35901         Values.
35902
35903         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
35904         data.
35905
35906         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
35907         is not No_Name.
35908         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
35909         Value is canonicalized.
35910         (Language_Independent_Check): Do not copy Value to Display_Value when
35911         canonicalizing Value.
35912
35913         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
35914         path to find limited with cycles.
35915         (Parse_Single_Project): Use canonical cased path to find the end of a
35916         with cycle.
35917
35918 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
35919
35920         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
35921         and not a child unit.
35922
35923         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
35924         appear in a with_clause.
35925
35926         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
35927         only happen in type_annotate mode, do not try to elaborate it.
35928
35929         * exp_util.adb (Force_Evaluation): If expression is a selected
35930         component on the left of an assignment, use a renaming rather than a
35931         temporary to remove side effects.
35932
35933         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
35934         inlined instance body, which is analyzed before the end of the
35935         enclosing scope.
35936
35937 2004-03-02  Robert Dewar  <dewar@gnat.com>
35938
35939         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
35940         sem_ch4.adb: Use new feature for substitution of keywords in VMS
35941
35942         * errout.ads, errout.adb: Implement new circuit for substitution of
35943         keywords in VMS.
35944
35945         * sem_case.adb (Analyze_Choices): Place message properly when case is
35946         a subtype reference rather than an explicit range.
35947
35948         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
35949
35950 2004-03-02  Doug Rupp  <rupp@gnat.com>
35951
35952         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
35953
35954 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
35955
35956         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
35957
35958 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35959
35960         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
35961         BLKmode bitfield.
35962
35963 2004-02-25  Robert Dewar  <dewar@gnat.com>
35964
35965         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
35966         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
35967         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
35968         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
35969         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
35970         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
35971         the defining instance of the type to avoid aliasing problems.
35972         Fix copyright header.  Fix bad comments in package header.
35973
35974         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
35975
35976 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
35977
35978         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
35979         rewritten as references when aliased through an address clause.
35980
35981         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
35982         whether call can be interpreted as an indirect call to the result of a
35983         parameterless function call returning an access subprogram.
35984
35985 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
35986
35987         Code clean up:
35988         * exp_ch7.adb (Make_Clean): Remove generation of calls to
35989         Unlock[_Entries], since this is now done by Service_Entries directly.
35990
35991         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
35992
35993         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
35994         Requeue_Call for better code readability. Change spec and update calls:
35995         PO_Service_Entries now unlock the PO on exit.
35996         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
35997         PO_Service_Entries.
35998
35999         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
36000
36001         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
36002
36003 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
36004
36005         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
36006         protected subprogram call and analyzing the result of such expanding
36007         in case when the called protected subprogram is eliminated.
36008
36009         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
36010         names.
36011
36012 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
36013
36014         * Makefile.in: Clean ups.
36015
36016 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
36017
36018         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
36019         protected operations if original subprogram is flagged as eliminated.
36020         (Expand_N_Subprogram_Body): For a protected operation, create
36021         discriminals for next operation before checking whether the operation
36022         is eliminated.
36023
36024         * exp_ch9.adb (Expand_N_Protected_Body,
36025         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
36026         for internal protected operations if the original subprogram is
36027         eliminated.
36028
36029         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
36030         declared in a single protected object.
36031
36032 2004-02-23  Vincent Celier  <celier@gnat.com>
36033
36034         * prj-attr.adb: Make attribute Builder'Executable an associative array,
36035         case insensitive if file names are case insensitive, instead of a
36036         standard associative array.
36037
36038         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
36039         them as case insensitive on platforms where the file names are case
36040         sensitive.
36041
36042         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
36043         project file has already been parsed that canonical path are compared.
36044
36045 2004-02-23  Robert Dewar  <dewar@gnat.com>
36046
36047         * sinput-c.ads: Correct bad unit title in header
36048
36049         * freeze.adb: Minor reformatting
36050
36051 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36052
36053         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
36054         nonaddressable COMPONENT_REF that is removing padding that we are
36055         taking the address of, take the address of the padded record instead
36056         if item is variable size.
36057
36058 2004-02-20  Robert Dewar  <dewar@gnat.com>
36059
36060         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
36061
36062 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
36063
36064         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
36065         itype references for the constrained designated type of a component
36066         whose base type is already frozen.
36067
36068 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
36069
36070         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
36071         avoid GCC warnings.
36072
36073 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
36074
36075         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
36076         identifier for a phantom package that rewrites the formal package
36077         declaration with a box. The Add semantic decorations for the defining
36078         identifier from the original node (that represents the formal package).
36079
36080 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
36081
36082         * Make-lang.in (ada/stamp-sdefault): Use the top level
36083         move-if-change.
36084
36085 2004-02-19  Richard Henderson  <rth@redhat.com>
36086
36087         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
36088
36089 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
36090
36091         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
36092         Scan_ALI can be used for multiple ALI files without reinitializing
36093         between calls.
36094
36095 2004-02-18  Robert Dewar  <dewar@gnat.com>
36096
36097         * debug.adb: Minor reformatting.
36098
36099 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36100
36101         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
36102         to zero if there is an address clause.
36103
36104 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
36105
36106         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
36107
36108 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
36109
36110         * layout.adb (Layout_Component_List): Revise generation of call to
36111         discriminant-checking function to pass selections of all of the type's
36112         discriminants rather than just the variant-controlling discriminant.
36113
36114 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
36115
36116         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
36117         fail in the current setup and triggers spurious system error messages.
36118         Pretend it occurred and failed instead.
36119
36120 2004-02-18  Vincent Celier  <celier@gnat.com>
36121
36122         * bld.adb: Mark FLDFLAGS as saved
36123         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
36124         it is not the root project.  Put each directory to be
36125         extended between double quotes to prevent it to be expanded on Windows.
36126         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
36127         the project file. Set them back to their initial values if they have not
36128         been set in the project file.
36129
36130         * gprcmd.adb: (Gprdebug, Debug): New global variables
36131         (Display_Command): New procedure
36132         (Usage): Document new command "linkopts"
36133         Call Display_Command when env var GPRDEBUG has the value "TRUE"
36134         Implement new command "linkopts"
36135         Remove quotes that may be around arguments for "extend"
36136         Always call Normalize_Pathname with arguments formatted for the platform
36137
36138         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
36139         Change @echo to @$(display) in target clean to be able to clean silently
36140
36141         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
36142
36143         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
36144         canonical case.
36145
36146         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
36147         = Extending_All when current project is an extending all project.
36148
36149         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
36150         set to True only for LINK command, after Unix switch -o.
36151         (Process_Arguments): Set Output_File_Expected to True for LINK command
36152         after Unix switch -o. When Output_File_Expected is True, never add an
36153         extension to a file name.
36154
36155         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
36156         option file name, only to the --for-linker= switch.
36157         (Option_File_Name): If option file name do not end with ".opt", append
36158         "/OPTIONS".
36159
36160 2004-02-18  GNAT Script  <nobody@gnat.com>
36161
36162         * Make-lang.in: Makefile automatically updated
36163
36164 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
36165
36166         * Make-lang.in (stamp-sdefault): Do not depend on
36167         move-if-change.
36168
36169 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
36170
36171         * config-lang.in: Disable Ada by default until probe logic for
36172         a bootstrap Ada compiler can be moved to the top level configure
36173         script.
36174
36175 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
36176
36177         * decl.c (components_to_record): Don't claim that the internal fields
36178         we make to hold the variant parts are semantically addressable, because
36179         they are not.
36180
36181         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
36182         adjust the comment describing the modular type form when we can use it.
36183         (Install_PAT): Account for the Esiz renaming.
36184
36185         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
36186         sc_onstack context indication before raising the exception to which
36187         the signal is mapped. Allows better handling of later signals possibly
36188         triggered by the resumed user code if the exception is handled.
36189
36190 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
36191
36192         * 5zinit.adb: Removed, no longer used.
36193
36194 2004-02-12  Robert Dewar  <dewar@gnat.com>
36195
36196         * ali.adb: Remove separating space between parameters on R line. Makes
36197         format consistent with format used by the binder for Set_Globals call.
36198
36199         * atree.ads, atree.adb: Minor reformatting (new function header format)
36200
36201         * bindgen.adb: Add Run-Time Globals documentation section containing
36202         detailed documentation of the globals passed from the binder file to
36203         the run time.
36204
36205         * gnatls.adb: Minor reformatting
36206
36207         * init.c (__gnat_set_globals): Add note pointing to documentation in
36208         bindgen.
36209
36210         * lib-writ.ads, lib-writ.adb: Remove separating space between
36211         parameters on R line.
36212         Makes format consistent with format used by the binder for Set_Globals
36213         call.
36214
36215         * osint.ads: Add 2004 to copyright notice
36216         Minor reformatting
36217
36218         * snames.ads: Correct capitalization of FIFO_Within_Priorities
36219         Noticed during code reading, documentation issue only
36220
36221         * usage.adb: Remove junk line for obsolete C switch
36222         Noticed during code reading
36223
36224 2004-02-12  Vincent Celier  <celier@gnat.com>
36225
36226         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
36227         extend for each directory, so that multiple /** directories are
36228         extended individually.
36229         (Recursive_Process): Set the default for LANGUAGES to ada
36230
36231         * gprcmd.adb: Define new command "ignore", to do nothing.
36232         Implement new comment "path".
36233
36234         * Makefile.generic: Suppress output when SILENT is set
36235         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
36236         used, so that the correct compiler is invoked.
36237         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
36238         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
36239
36240 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
36241
36242         * Makefile.in: Clean ups and remove obsolete targets.
36243
36244 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
36245
36246         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
36247         predicate declared in exp_util.
36248
36249         * exp_util.adb: Add comments.
36250
36251         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
36252         visibility before compiling context of the subunit.
36253
36254         * sem_res.adb (Check_Parameterless_Call): If the context expects a
36255         value but the name is a procedure, do not attempt to analyze as a call,
36256         in order to obtain more telling diagnostics.
36257
36258         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
36259         'Access on parameterless function calls.
36260         (Normalize_Actuals): For a parameterless function call with missing
36261         actuals, defer diagnostic until resolution of enclosing call.
36262
36263         * sem_util.adb (Wrong_Type): If the context type is an access to
36264         subprogram and the expression is a procedure name, suggest a missing
36265         'attribute.
36266
36267 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
36268             Nathanael Nerode  <neroden@gcc.gnu.org>
36269
36270         PR ada/6637
36271         PR ada/5911
36272         Merge with libada-branch:
36273         * config-lang.in: Build libada only when ada is built.
36274
36275 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
36276
36277         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
36278         for a tagged type, verify that both formals have the same type.
36279
36280         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
36281         temporary when the formal is an in-parameter and the actual a possibly
36282         unaligned slice.
36283
36284         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
36285         when expansion is disabled, to ensure proper name capture with
36286         overloaded literals.  Condition can be of any boolean type, resolve
36287         accordingly.
36288
36289         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
36290         renaming is for a formal subprogram with a default operator name, and
36291         there is a usable operator that is visible at the point of
36292         instantiation.
36293
36294 2004-02-09  Robert Dewar  <dewar@gnat.com>
36295
36296         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
36297         rewrite to ignore errors in ali files, intended to allow tools downward
36298         compatibility with new versions of ali files.
36299
36300         * ali.ads: Add new parameter Ignore_Errors
36301
36302         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
36303         duplicating the error message giving the file with restrictions.
36304
36305         * debug.adb: Add debug flag I for gnatbind
36306
36307         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
36308         operators for the case where the operator is a defining operator.
36309
36310         * exp_ch3.adb: Minor reformatting (new function spec format).
36311
36312         * exp_ch4.adb: Add comment for previous change, and make minor
36313         adjustment to loop to always check for improper loop termination.
36314         Minor reformatting throughout (new function spec format).
36315
36316         * gnatbind.adb: Implement -di debug flag for gnatbind
36317
36318         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
36319
36320         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
36321
36322         * lib-load.adb: Fix bad assertion.
36323         Found by testing and code reading.
36324         Minor reformatting.
36325
36326         * lib-load.ads: Minor reformatting.
36327
36328         * lib-writ.adb: There is only one R line now.
36329
36330         * lib-writ.ads: Add documentation on making downward compatible changes
36331         to ali files so old tools work with new ali files.
36332         There is only one R line now.
36333         Add documentation on format incompatibilities (with special GPS note)
36334
36335         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
36336
36337         * par-load.adb: Minor reformatting
36338
36339         * sem_ch8.adb: Fix to error message from last update
36340         Minor reformatting and restructuring of code from last update
36341
36342         * par-prag.adb, snames.adb, snames.ads, snames.h,
36343         sem_prag.adb: Implement pragma Profile.
36344
36345         * stylesw.adb: Implement -gnatyN switch to turn off all style check
36346         options.
36347
36348         * usage.adb: Add line for -gnatyN switch
36349
36350         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
36351
36352 2004-02-09  Albert Lee  <lee@gnat.com>
36353
36354         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
36355
36356 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
36357
36358         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
36359         slices.
36360
36361         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
36362         is nested in an instance that is not frozen yet, to avoid
36363         order-of-elaboration problems in gigi.
36364
36365         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
36366         body the attribute is legal.
36367
36368 2004-02-09  Robert Dewar  <dewar@gnat.com>
36369
36370         * s-rident.ads: Minor comment correction
36371
36372         * targparm.adb: Remove dependence on uintp completely. There was
36373         always a bug in Make in that it called Targparm before initializing
36374         the Uint package. The old code appeared to get away with this, but
36375         the new code did not! This caused an assertion error in gnatmake.
36376
36377         * targparm.ads: Fix bad comment, restriction pragmas with parameters
36378         are indeed fully supported.
36379
36380 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
36381
36382         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
36383
36384 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
36385
36386         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
36387         with targetm.calls.promote_prototypes.
36388
36389 2004-02-04  Robert Dewar  <dewar@gnat.com>
36390
36391         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
36392         ali.ads, gprcmd.adb: Minor reformatting
36393
36394         * bindgen.adb: Output restrictions string for new style restrictions
36395         handling
36396
36397         * impunit.adb: Add s-rident.ads (System.Rident) and
36398         s-restri (System.Restrictions)
36399
36400         * lib-writ.adb: Fix bug in writing restrictions string (last few
36401         entries wrong)
36402
36403         * s-restri.ads, s-restri.adb: Change name Restrictions to
36404         Run_Time_Restrictions to avoid conflict with package name.
36405         Add circuit to read and acquire run time restrictions.
36406
36407 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
36408
36409         * restrict.ads, restrict.adb: Use the new restriction
36410         No_Task_Attributes_Package instead of the old No_Task_Attributes.
36411
36412         * sem_prag.adb: No_Task_Attributes is a synonym of
36413         No_Task_Attributes_Package.
36414
36415         * snames.ads, snames.adb: New entry for proper handling of
36416         No_Task_Attributes.
36417
36418         * s-rident.ads: Adding restriction No_Task_Attributes_Package
36419         (AI-00249) that supersedes the GNAT specific restriction
36420         No_Task_Attributes.
36421
36422 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
36423
36424         * sem_prag.adb:
36425         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
36426          body, an identifier may be wrapped in an unchecked conversion.
36427
36428 2004-02-04  Vincent Celier  <celier@gnat.com>
36429
36430         * lib-writ.ads: Comment update for the W lines
36431
36432         * bld.adb: (Expression): An empty string list is static
36433
36434         * fname-uf.adb: Minor comment update
36435
36436         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
36437
36438         * gnatbind.adb: Initialize Cumulative_Restrictions with the
36439         restrictions on the target.
36440
36441 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
36442
36443         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
36444         gen_rtx.
36445
36446 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
36447
36448         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
36449
36450 2004-02-02  Vincent Celier  <celier@gnat.com>
36451
36452         * gprcmd.adb (Check_Args): If condition is false, print the invoked
36453         comment before the usage.
36454         Gprcmd: Fail when command is not recognized.
36455         (Usage): Document command "prefix"
36456
36457         * g-md5.adb (Digest): Process last block.
36458         (Update): Do not process last block. Store remaining characters and
36459         length in Context.
36460
36461         * g-md5.ads (Update): Document that several call to update are
36462         equivalent to one call with the concatenated string.
36463         (Context): Add fields to allow new Update behaviour.
36464
36465         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
36466         defaulted to False.
36467         When May_Fail is True and no existing file can be found, return No_File.
36468
36469         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
36470         functions.
36471
36472         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
36473         spec file name instead on the W line.
36474
36475 2004-02-02  Robert Dewar  <dewar@gnat.com>
36476
36477         * ali.adb: Read and acquire info from new format restrictions lines
36478
36479         * bcheck.adb: Add circuits for checking restrictions with parameters
36480
36481         * bindgen.adb: Output dummy restrictions data
36482         To be changed later
36483
36484         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
36485         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
36486         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
36487         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
36488         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
36489
36490         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
36491         the warning message on access to possibly uninitialized variable S)
36492         Minor changes for new restrictions handling.
36493
36494         * gnatbind.adb: Minor reformatting
36495         Minor changes for new restrictions handling
36496         Move circuit for -r processing here from bcheck (cleaner)
36497
36498         * gnatcmd.adb, gnatlink.adb: Minor reformatting
36499
36500         * lib-writ.adb: Output new format restrictions lines
36501
36502         * lib-writ.ads: Document new R format lines for new restrictions
36503         handling.
36504
36505         * s-restri.ads/adb: New files
36506
36507         * Makefile.rtl: Add entry for s-restri.ads/adb
36508
36509         * par-ch3.adb: Fix bad error messages starting with upper case letter
36510         Minor reformatting
36511
36512         * restrict.adb: Major rewrite throughout for new restrictions handling
36513         Major point is to handle restrictions with parameters
36514
36515         * restrict.ads: Major changes in interface to handle restrictions with
36516         parameters. Also generally simplifies setting of restrictions.
36517
36518         * snames.ads/adb: New entry for proper handling of No_Requeue
36519
36520         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
36521         restriction counting.
36522         Other minor changes for new restrictions handling
36523
36524         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
36525         Restriction_Warnings now allows full parameter notation
36526         Major rewrite of Restrictions for new restrictions handling
36527
36528 2004-02-02  Javier Miranda  <miranda@gnat.com>
36529
36530         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
36531         syntax rule for object renaming declarations.
36532         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
36533         component definitions.
36534
36535         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
36536         components.
36537         (Array_Type_Declaration): Give support to access components. In addition
36538         it was also modified to reflect the name of the object in anonymous
36539         array types. The old code did not take into account that it is possible
36540         to have an unconstrained anonymous array with an initial value.
36541         (Check_Or_Process_Discriminants): Allow access discriminant in
36542         non-limited types.
36543         (Process_Discriminants): Allow access discriminant in non-limited types
36544         Initialize the new Access_Definition field in N_Object_Renaming_Decl
36545         node.  Change Ada0Y to Ada 0Y in comments
36546
36547         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
36548         equality operators.
36549         Change Ada0Y to Ada 0Y in comments
36550
36551         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
36552         renamings Change Ada0Y to Ada 0Y in comments
36553
36554         * sem_type.adb (Find_Unique_Type): Give support to the equality
36555         operators for universal access types
36556         Change Ada0Y to Ada 0Y in comments
36557
36558         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
36559
36560         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
36561         field.
36562         (N_Object_Renaming_Declaration): Addition of Access_Definition field
36563         Change Ada0Y to Ada 0Y in comments
36564
36565         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
36566         component definition and object renaming nodes
36567         Change Ada0Y to Ada 0Y in comments
36568
36569 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
36570
36571         * restrict.adb: Use the new restriction identifier
36572         No_Requeue_Statements instead of the old No_Requeue for defining the
36573         restricted profile.
36574
36575         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
36576         No_Requeue_Statements.
36577
36578         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
36579         that supersedes the GNAT specific restriction No_Requeue. The later is
36580         kept for backward compatibility.
36581
36582 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
36583
36584         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
36585         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
36586         pragma and fix incorrect ones.
36587
36588         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
36589         warning if the pragma is redundant.
36590
36591 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
36592
36593         * 5staprop.adb: Add missing 'constant' keywords.
36594
36595         * Makefile.in: use consistent value for SYMLIB on
36596         platforms where libaddr2line is supported.
36597
36598 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36599
36600         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
36601         annotating types.
36602
36603 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
36604
36605         * init.c (__gnat_install_handler): Setup an alternate stack for signal
36606         handlers in the environment thread. This allows proper propagation of
36607         an exception on stack overflows in this thread even when the builtin
36608         ABI stack-checking scheme is used without support for a stack reserve
36609         region.
36610
36611         * utils.c (create_field_decl): Augment the head comment about bitfield
36612         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
36613         here, because the former is not accurate enough at this point.
36614         Let finish_record_type decide instead.
36615         Don't make a bitfield if the field is to be addressable.
36616         Always set a size for the field if the record is packed, to ensure the
36617         checks for bitfield creation are triggered.
36618         (finish_record_type): During last pass over the fields, clear
36619         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
36620         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
36621         from DECL_BIT_FIELD.
36622
36623 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
36624
36625         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
36626         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
36627         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
36628
36629 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
36630
36631         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
36632
36633         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
36634         (ZCX_By_Default): Likewise.
36635         (Front_End_ZCX_Support): Likewise.
36636
36637         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
36638         (Initialize_Lock): Mark Level unreferenced.
36639         (Sleep): Mark Reason unreferenced.
36640         (Timed_Sleep): Likewise.
36641         (Wakeup): Likewise.
36642         (Exit_Task): Use Result.
36643         (Check_No_Locks): Mark Self_ID unreferenced.
36644
36645         * 5gtasinf.adb (New_Sproc): Make Attr constant.
36646         (Bound_Thread_Attributes): Make Sproc constant.
36647         (New_Bound_Thread_Attributes): Likewise.
36648
36649 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
36650
36651         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
36652         one-dimensional array an slice assignments, when component type is
36653         controlled.
36654
36655         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
36656         component type is controlled, and control_actions are in effect, use
36657         TSS procedure rather than generating inline code.
36658
36659         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
36660         arrays with controlled components.
36661
36662 2004-01-26  Vincent Celier  <celier@gnat.com>
36663
36664         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
36665         command line for the non VMS case.
36666
36667         * gnatlink.adb (Process_Binder_File): When building object file, if
36668         GNU linker is used, put all object paths between quotes, to prevent ld
36669         error when there are unusual characters (such as '!') in the paths.
36670
36671         * Makefile.generic: When there are sources in Ada and the main is in
36672         C/C++, invoke gnatmake with -B, instead of -z.
36673
36674         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
36675         from VMS_Conversion.
36676         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
36677         specification of argument file on the command line.
36678
36679 2004-01-26  Bernard Banner  <banner@gnat.com>
36680
36681         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
36682
36683 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
36684
36685         * snames.adb: Update copyright notice.
36686         Add info on slice assignment for controlled arrays.
36687
36688 2004-01-23  Robert Dewar  <dewar@gnat.com>
36689
36690         * exp_aggr.adb: Minor reformatting
36691
36692         * exp_ch9.adb: Minor code clean up
36693         Minor reformatting
36694         Fix bad character in comment
36695
36696         PR ada/13471
36697         * targparm.adb (Get_Target_Parameters): Give clean abort error on
36698         unexpected end of file, along with more detailed message.
36699
36700 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36701
36702         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
36703         PAT.
36704
36705         * decl.c (copy_alias_set): New function.
36706         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
36707
36708 2004-01-23  Doug Rupp  <rupp@gnat.com>
36709
36710         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
36711         lib$${file} in case subsequent character is not a separator.
36712
36713 2004-01-23  Vincent Celier  <celier@gnat.com>
36714
36715         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
36716         when the GCC version is at least 3.
36717
36718         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
36719         Remove all "Opt.", to prepare for opt split
36720
36721         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
36722         Extends_All. Set to True when the project parsed is an extending all
36723         project. Fails for importing an extending all project only when the
36724         imported project is an extending all project.
36725         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
36726         depending on the value of Extends_All returned.
36727
36728         * prj-proc.adb (Process): Check that no project shares its object
36729         directory with a project that extends it, directly or indirectly,
36730         including a virtual project.
36731         Check that no project extended by another project shares its object
36732         directory with another also extended project.
36733
36734         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
36735         Kind = N_With_Clause
36736
36737         * prj-tree.ads: Minor reformatting
36738         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
36739
36740 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
36741
36742         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
36743         applies to a type with an incomplete view, use full view in Name of
36744         clause, for consistency with uses of Get_Attribute_Definition_Clause.
36745
36746 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
36747
36748         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
36749         SCHED_RR, since other values are not supported by this policy.
36750         (Initialize): Move initialization of mutex attribute to package
36751         elaboration, to prevent early access to this variable.
36752
36753         * Makefile.in: Remove mention of Makefile.adalib, unused.
36754
36755         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
36756         1ssecsta.ads: Removed, unused.
36757
36758 2004-01-21  Javier Miranda  <miranda@gnat.com>
36759
36760         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
36761         entity if already built in the current scope.
36762
36763         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
36764         reminder in internal scopes. Required for nested limited aggregates.
36765
36766 2004-01-21  Doug Rupp  <rupp@gnat.com>
36767
36768         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
36769         VMS. Replace all occurences of libgnat- and libgnarl- with
36770         libgnat$(hyphen) and libgnarl$(hyphen).
36771         Fixed shared library build problem on VMS.
36772
36773 2004-01-21  Robert Dewar  <dewar@gnat.com>
36774
36775         * mlib-prj.adb: Minor reformatting
36776
36777 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
36778
36779         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
36780         'constant' keywords for declaration of pointers that are not modified.
36781
36782         * exp_pakd.adb: Fix English in comment.
36783
36784 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
36785
36786         PR ada/10889
36787         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
36788         copy all attributes of the parent, including the foreign language
36789         convention.
36790
36791 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
36792
36793         PR ada/10565
36794         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
36795         for 'delay until' statement.
36796
36797 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
36798
36799         * Make-lang.in: Replace $(docdir) with doc.
36800         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
36801         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
36802         to use consistent MAKEINFO rule.
36803         (ada.man, ada.srcman): Dummy entry.
36804         (ADA_INFOFILES): Define.
36805         (ada.info, ada.srcinfo): New rules.
36806
36807 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
36808
36809         * utils.c: Update copyright notice, missed in previous change.
36810
36811 2004-01-19  Vincent Celier  <celier@gnat.com>
36812
36813         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
36814         args if Bind is True. Set First_ALI, if not already done.
36815         (Build_Library): For Stand Alone Libraries, extract from one ALI file
36816         an eventual --RTS switch, for gnatbind, and all backend switches +
36817         --RTS, for linking.
36818
36819 2004-01-19  Robert Dewar  <dewar@gnat.com>
36820
36821         * sem_attr.adb, memtrack.adb: Minor reformatting
36822
36823 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
36824
36825         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
36826         that rename enumeration literals. This is properly done in sem_eval.
36827
36828         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
36829         to functions that rename enumeration literals.
36830
36831         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
36832         functions that rename enumeration literals.
36833
36834 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
36835
36836         * Make-lang.in (utils.o): Depend on target.h.
36837         * utils.c: Include target.h.
36838         (process_attributes): Use targetm.have_named_sections instead
36839         of ASM_OUTPUT_SECTION_NAME.
36840
36841 2004-01-16  Andreas Jaeger  <aj@suse.de>
36842
36843         * Makefile.in: Add $(DESTDIR).
36844
36845 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
36846
36847         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
36848         also when not defining if a Size clause applies. That information is
36849         not to be ignored.
36850
36851 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
36852
36853         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
36854         symbolic links for the shared gnat run time when needed.
36855
36856 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
36857
36858         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
36859         for writing, and terminate with an error message if not.
36860
36861 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
36862
36863         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
36864         warning on an access to subprogram in an instance, when the target
36865         type is declared in the same generic unit.
36866         (Eval_Attribute): If 'access is known to fail accessibility check,
36867         rewrite as a raise statement.
36868
36869 2004-01-15  GNAT Script  <nobody@gnat.com>
36870
36871         * Make-lang.in: Makefile automatically updated
36872
36873 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
36874
36875         * Make-lang.in (ada.srcextra): Dummy entry.
36876
36877 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
36878
36879         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
36880
36881 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
36882
36883         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
36884         components that are initialized with aggregates.
36885
36886 2004-01-13  Vincent Celier  <celier@gnat.com>
36887
36888         * gnatlink.adb (Process_Binder_File): To find directory of shared
36889         libgcc, if "gcc-lib" is not a subdirectory, look for the last
36890         subdirectory "lib" in the path of the shared libgnat or libgnarl.
36891
36892         * make.adb (Gnatmake): If GCC version is at least 3, link with
36893         -shared-libgcc, when there is at least one shared library project.
36894
36895         * opt.ads (GCC_Version): New integer constant.
36896
36897         * adaint.c (get_gcc_version): New function.
36898
36899 2004-01-13  Robert Dewar  <dewar@gnat.com>
36900
36901         * sem_dist.adb, sem_res.adb, sem_util.adb,
36902         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
36903         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
36904
36905 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
36906
36907         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
36908         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
36909         declarations.
36910
36911 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
36912
36913         * misc.c: Remove trailing spaces.
36914         Update copyright notice missed in previous change.
36915
36916         PR ada/13572
36917         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
36918         prefix/share/make
36919
36920         * Makefile.generic: Update copyright.
36921         Add license notice.
36922
36923         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
36924         of prefix/share/make.
36925
36926         * Makefile.prolog: Update copyright.
36927         Add license notice.
36928
36929 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
36930
36931         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
36932         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
36933         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
36934         instead of String.
36935
36936         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
36937         signature.
36938
36939 2004-01-12  Javier Miranda  <miranda@gnat.com>
36940
36941         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
36942         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
36943         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
36944         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
36945         Component_Definition node.
36946
36947 2004-01-12  Ed Falis  <falis@gnat.com>
36948
36949         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
36950
36951 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
36952
36953         * link.c: Change default libgnat kind to STATIC for FreeBSD.
36954
36955 2004-01-12  Bernard Banner  <banner@gnat.com>
36956
36957         * Makefile.in: map 86numaux to a-numaux for x86_64
36958
36959 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
36960
36961         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
36962         generated to rename a generic actual, go to the actual itself, the
36963         subtype is not a user-visible entity.
36964
36965         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
36966         part is a private subtype, reset the visibility of its full view, if
36967         any, to be consistent.
36968
36969         PR ada/13417
36970         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
36971         to use a generic package G as a formal package for another generic
36972         declared within G.
36973
36974 2004-01-12  Robert Dewar  <dewar@gnat.com>
36975
36976         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
36977
36978         * usage.adb: Remove mention of obsolete -gnatwb switch
36979         Noticed during code reading
36980
36981 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
36982
36983         * 1ssecsta.adb: Minor changes for -gnatwa warnings
36984
36985 2004-01-12  GNAT Script  <nobody@gnat.com>
36986
36987         * Make-lang.in: Makefile automatically updated
36988
36989 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
36990
36991         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
36992
36993 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
36994
36995         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
36996
36997 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
36998
36999         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
37000         Update comment and copyright date.
37001         * stamp-xgnatug: Delete.
37002
37003 2004-01-05  Robert Dewar  <dewar@gnat.com>
37004
37005         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
37006         be modified by the binder generated main program if the -D switch is
37007         used.
37008
37009         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
37010         imported functions (since now we expect this to be done for imported
37011         functions)
37012
37013         * 5vtaprop.adb: Add several ??? for sections requiring more comments
37014         Minor reformatting throughout
37015
37016         * 5zinit.adb: Minor reformatting
37017         Add 2004 to copyright date
37018         Minor changes to avoid -gnatwa warnings
37019         Correct some instances of using OR instead of OR ELSE (noted while
37020         doing reformatting)
37021
37022         * sprint.adb: Minor updates to avoid -gnatwa warnings
37023
37024         * s-secsta.ads, s-secsta.adb:
37025         (SS_Get_Max): New function to obtain high water mark for ss stack
37026         Default_Secondary_Stack is not a constant since it may be modified by
37027         the binder generated main program if the -D switch is used.
37028
37029         * switch-b.adb: New -Dnnn switch for binder
37030
37031         * switch-c.adb:
37032         Make -gnatg imply all warnings currently in -gnatwa
37033
37034         * vms_conv.adb: Minor reformatting
37035         Add 2004 to copyright notice
37036         Add 2004 to printed copyright notice
37037
37038         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
37039         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
37040         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
37041         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
37042         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
37043         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
37044         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
37045         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
37046         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
37047         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
37048         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
37049         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
37050         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
37051         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
37052         checks.adb, clean.adb, cstand.adb, einfo.ads,
37053         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
37054         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
37055         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
37056         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
37057         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
37058         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
37059         Minor reformatting and code clean ups.
37060         Minor changes to prevent -gnatwa warnings
37061
37062         * ali.adb: Minor reformatting and cleanup of code
37063         Acquire new SS indication of secondary stack use from ali files
37064
37065         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
37066         (since now we expect this to be done for imported functions)
37067
37068         * bindgen.adb: Generate call to modify default secondary stack size if
37069         -Dnnn switch given
37070
37071         * bindusg.adb: Add line for new -D switch
37072
37073         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
37074         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
37075         Add circuitry for both records and arrays to avoid gigi
37076         processing if the type involved has non-bit-aligned components
37077
37078         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
37079         N_String_Literal node always references an E_String_Literal_Subtype
37080         entity. This may not be true in the future.
37081         (Possible_Bit_Aligned_Component): Move processing of
37082         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
37083
37084         * exp_ch6.adb (Expand_Thread_Body): Pick up
37085         Default_Secondary_Stack_Size as variable so that we get value modified
37086         by possible -Dnnn binder parameter.
37087
37088         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
37089         (Type_May_Have_Bit_Aligned_Components): New function.
37090
37091         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
37092         (Type_May_Have_Bit_Aligned_Components): New function.
37093
37094         * fe.h: (Set_Identifier_Casing): Fix prototype.
37095         Add declaration for Sem_Elim.Eliminate_Error_Msg.
37096         Minor reformatting.
37097
37098         * freeze.adb (Freeze_Entity): Add RM reference to error message about
37099         importing constant atomic/volatile objects.
37100         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
37101         unless explicit Pure_Function pragma given, to avoid insidious bug of
37102         call to non-pure imported function getting eliminated.
37103
37104         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
37105         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
37106         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
37107         Add 2004 to printed copyright notice
37108
37109         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
37110         stack used.
37111
37112         * Makefile.rtl: Add entry for g-sestin.o
37113         g-sestin.ads: New file.
37114
37115         * mdll.adb: Minor changes to avoid -gnatwa warnings
37116
37117         * mlib-tgt.adb: Minor reformatting
37118
37119         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
37120         New switch Sec_Stack_Used (GNAT, GNATBIND)
37121         Make Default_Secondary_Stack_Size a variable instead of a constant,
37122         so that it can be modified by the new -Dnnn bind switch.
37123
37124         * rtsfind.adb (Load_Fail): Give full error message in configurable
37125         run-time mode if all_errors mode is set. This was not done in the case
37126         of a file not found, which was an oversight.
37127         Note if secondary stack unit is used by compiler.
37128
37129         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
37130         ineffective elaborate all pragmas on non-visible packages (this
37131         happened when a renamed subprogram was called). Now the elaborate all
37132         always goes on the package containing the renaming rather than the one
37133         containing the renamed subprogram.
37134
37135         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
37136         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
37137
37138         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
37139         has an Etype that references an E_String_Literal.
37140         (Eval_String_Literal): Avoid assumption that N_String_Literal node
37141         always references an E_String_Literal_Subtype entity. This may not
37142         be true in the future.
37143
37144         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
37145         pragma location.
37146
37147         * sem_res.adb (Resolve): Specialize msg for function name used in proc
37148         call.
37149
37150 2004-01-05  Ed Falis  <falis@gnat.com>
37151
37152         * g-debuti.adb: Replaced direct boolean operator with short-circuit
37153         form.
37154
37155 2004-01-05  Vincent Celier  <celier@gnat.com>
37156
37157         * bld.adb: Minor comment updates
37158         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
37159         of Item_Name).
37160
37161         * make.adb (Gnatmake): Special process for files to compile/check when
37162         -B is specified. Fail when there are only foreign mains in attribute
37163         Main of the project file and -B is not specified. Do not skip bind/link
37164         steps when -B is specified.
37165
37166         * makeusg.adb: Document new switch -B
37167
37168         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
37169
37170         * switch-m.adb: (Scan_Make_Switches): Process -B switch
37171
37172         * vms_data.ads: Add new GNAT PRETTY qualifier
37173         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
37174
37175 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37176
37177         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
37178         case.
37179
37180         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
37181         Set_Identifier_Casing.
37182
37183         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
37184         has size that overflows.
37185
37186 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
37187
37188         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
37189         -gnatwa warning on static condition.
37190
37191 2004-01-05  Doug Rupp  <rupp@gnat.com>
37192
37193         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
37194
37195 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
37196
37197         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
37198         all attributes, including read-only attribute.
37199
37200 2004-01-05  Pascal Obry  <obry@gnat.com>
37201
37202         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
37203         library naming scheme.
37204
37205         * mlib-prj.adb (Build_Library): Generate different names for the static
37206         or dynamic version of the GNAT runtime. This is needed to support the
37207         new shared library naming scheme.
37208         (Process_Binder_File): Add detection of shared library in binder file
37209         based on the new naming scheme.
37210
37211         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
37212         scheme for the shared runtime libraries.
37213
37214         * Makefile.in:
37215         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
37216         scheme.
37217         (install-gnatlib): Do not create symlinks for shared libraries.
37218         (gnatlib-shared-default): Idem.
37219         (gnatlib-shared-dual-win32): New target. Not used for now as the
37220         auto-import feature does not support arrays/records.
37221         (gnatlib-shared-win32): Do not create copy for the shared libraries.
37222         (gnatlib-shared-vms): Fix shared runtime libraries names.
37223
37224         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
37225         dependent runtime shared library name.
37226
37227 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
37228
37229         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
37230         than the object.
37231
37232 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
37233
37234         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
37235         protected objects when allocator has a subtype indication, not a
37236         qualified expression. Note that qualified expressions may have to be
37237         checked when limited aggregates are implemented.
37238
37239         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
37240         pure, emit warning.
37241         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
37242         subprogram is imported, remove warning.
37243
37244 2004-01-05  Geert Bosch  <bosch@gnat.com>
37245
37246         * s-poosiz.adb: Update copyright notice.
37247         (Allocate): Use Task_Lock to protect against concurrent access.
37248         (Deallocate): Likewise.
37249
37250 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
37251
37252         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
37253         comment.
37254
37255 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
37256
37257         * gnat_ug.texi: Force a CVS commit by updating copyright.
37258         * gnat_ug_vxw.texi: Regenerate.
37259         * gnat_ug_wnt.texi: Regenerate.
37260         * gnat_ug_vms.texi: Regenerate.
37261         * gnat_ug_unx.texi: Regenerate.
37262
37263 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
37264
37265         * trans.c: Remove uses of "register" specifier in
37266         declarations of local variables.
37267
37268 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
37269
37270         * stamp-xgnatug: New stamp file.
37271         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
37272         (ada/doctools/xgnatug): Add $(build_exeext).
37273         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
37274         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
37275
37276 2003-12-17  Ed Falis  <falis@gnat.com>
37277
37278         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
37279         eliminate warning.
37280
37281         * a-exextr.adb: Add context clause for
37282         Ada.Exceptions.Last_Chance_Handler.
37283
37284 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
37285
37286         * cstand.adb (Create_Standard): Change the way how the declaration of
37287         the Duration type is created (making it the same way as it is for all
37288         the other standard types).
37289
37290 2003-12-17  Robert Dewar  <dewar@gnat.com>
37291
37292         * s-crtl.ads: Fix header format
37293         Change Pure to Preelaborate
37294
37295 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
37296
37297         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
37298         the expression type only if it is declared in the current unit.
37299
37300         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
37301         are universal and already analyzed, as can occur in constrained
37302         subcomponents that depend on discriminants, when one constraint is a
37303         subtype mark.
37304
37305         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
37306         type Any_Fixed is legal as the argument of a conversion, if only one
37307         fixed-point type is in context.
37308
37309 2003-12-17  GNAT Script  <nobody@gnat.com>
37310
37311         * Make-lang.in: Makefile automatically updated
37312
37313 2003-12-15  Robert Dewar  <dewar@gnat.com>
37314
37315         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
37316         sec stack size.
37317
37318 2003-12-15  Vincent Celier  <celier@gnat.com>
37319
37320         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
37321         (Gnatchop): Do not set failure status when reporting the number of
37322         warnings.
37323
37324 2003-12-15  Doug Rupp  <rupp@gnat.com>
37325
37326         * s-ctrl.ads: New file.
37327
37328         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
37329
37330         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
37331         (GNATBIND_OBJS): Add ada/s-crtl.o.
37332
37333         * Makefile.in [VMS]: Clean up ifeq rules.
37334
37335         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
37336         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
37337         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
37338         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
37339         s-tasdeb.adb: Update copyright.
37340         Import System.CRTL.
37341         Make minor modifications to use System.CRTL declared functions instead
37342         of importing locally.
37343
37344 2003-12-15  GNAT Script  <nobody@gnat.com>
37345
37346         * Make-lang.in: Makefile automatically updated
37347
37348 2003-12-11  Ed Falis  <falis@gnat.com>
37349
37350         * 5zinit.adb: Clean up.
37351
37352         * 5zintman.adb (Notify_Exception): replaced case statement with a call
37353         to __gnat_map_signal, imported from init.c to support
37354         signal -> exception mappings that depend on the vxWorks version.
37355
37356         * init.c:
37357         Created and exported __gnat_map_signal to support signal -> exception
37358         mapping that is dependent on the VxWorks version.
37359         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
37360
37361 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
37362
37363         * 5wosinte.ads: Link with -mthreads switch.
37364
37365 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
37366
37367         * init.c (__gnat_install_handler [NetBSD]): Set
37368         __gnat_handler_installed, as done on all other platforms.
37369         Remove duplicated code.
37370
37371 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
37372
37373         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
37374
37375 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
37376
37377         * sinfo.ads: Fix inconsistent example code in comment.
37378
37379 2003-12-11  Robert Dewar  <dewar@gnat.com>
37380
37381         * a-tiinau.adb: Add a couple of comments
37382
37383         * sem_ch3.adb: Minor reformatting
37384
37385         * sem_prag.adb:
37386         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
37387         Minor reformatting throughout
37388
37389 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
37390
37391         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
37392         bounds of a loop, create a separate block in order to generate proper
37393         cleanup actions to prevent memory leaks.
37394
37395         * sem_res.adb (Resolve_Call): After a call to
37396         Establish_Transient_Scope, the call may be rewritten and relocated, in
37397         which case no further processing is needed.
37398
37399         * sem_util.adb: (Wrong_Type): Refine previous fix.
37400          Fixes ACATS regressions.
37401
37402         PR ada/13353
37403         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
37404         be inlined.
37405
37406 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
37407
37408         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
37409         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
37410         obsolete files.
37411
37412         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
37413         (rts-zfp): Ditto.
37414
37415 2003-12-08  Robert Dewar  <dewar@gnat.com>
37416
37417         * 7sintman.adb: Minor reformatting
37418
37419         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
37420         standard linker options to get standard libraries linked. We now plan
37421         to provide dummy versions of these libraries to match the appropriate
37422         configurable run-time (e.g. if a library is not needed at all, provide
37423         a dummy empty library).
37424
37425         * targparm.ads: Configurable_Run_Time mode no longer affects linker
37426         options (-L parameters and standard libraries). What we plan to do is
37427         to provide dummy libraries where the libraries are not required.
37428
37429         * gnatbind.adb: Minor comment improvement
37430
37431 2003-12-08  Javier Miranda  <miranda@gnat.com>
37432
37433         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
37434         aggregate in the parent. Otherwise constants with limited aggregates
37435         are not supported. Add new formal to pass the component type (Ctype).
37436         It is required to call the corresponding IP subprogram in case of
37437         default initialized components.
37438         (Gen_Assign): In case of default-initialized component, generate a
37439         call to the IP subprogram associated with the component.
37440         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
37441         of aggregate with default initialized components.
37442         (Has_Default_Init_Comps): Improve implementation to recursively check
37443         all the present expressions.
37444
37445         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
37446         to indicate that the initialization call corresponds to a
37447         default-initialized component of an aggregate.
37448         In case of default initialized aggregate with tasks this parameter is
37449         used to generate a null string (this is just a workaround that must be
37450         improved later). In case of discriminants, this parameter is used to
37451         generate a selected component node that gives access to the discriminant
37452         value.
37453
37454         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
37455         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
37456         allocated aggregates with default-initialized components.
37457
37458         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
37459         the box notation is used in positional aggregates.
37460
37461 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
37462
37463         * lib.ads: Fix typo in comment
37464
37465 2003-12-08  Vincent Celier  <celier@gnat.com>
37466
37467         * prj.adb (Project_Empty): New component Unkept_Comments
37468         (Scan): Remove procedure; moved to Prj.Err.
37469
37470         * prj.ads (Project_Data): New Boolean component Unkept_Comments
37471         (Scan): Remove procedure; moved to Prj.Err.
37472
37473         * prj-dect.adb: Manage comments for the different declarations.
37474
37475         * prj-part.adb (With_Record): New component Node
37476         (Parse): New Boolean parameter Store_Comments, defaulted to False.
37477         Set the scanner to return ends of line and comments as tokens, if
37478         Store_Comments is True.
37479         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
37480         comments are associated with these nodes. Store the node IDs in the
37481         With_Records.
37482         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
37483         With_Records.
37484         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
37485         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
37486         current project. Call Tree.Restore afterwards. Set the various nodes
37487         for comment storage (Next_End, End_Of_Line, Previous_Line,
37488         Previous_End).
37489
37490         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
37491         defaulted to False.
37492
37493         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
37494         to False. When Truncated is True, truncate the string, never go to the
37495         next line.
37496         (Write_End_Of_Line_Comment): New procedure
37497         (Print): Process comments for nodes N_With_Clause,
37498         N_Package_Declaration, N_String_Type_Declaration,
37499         N_Attribute_Declaration, N_Typed_Variable_Declaration,
37500         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
37501         Process nodes N_Comment.
37502
37503         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
37504         without comments and there are some comments, set the flag
37505         Unkept_Comments to True.
37506         (Scan): If there are comments, set the flag Unkept_Comments to True and
37507         clear the comments.
37508         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
37509         (Next_End_Nodes: New table
37510         (Comment_Zones_Of): New function
37511         (Scan): New procedure; moved from Prj. Accumulate comments in the
37512         Comments table and set end of line comments, comments after, after end
37513         and before end.
37514         (Add_Comments): New procedure
37515         (Save, Restore, Seset_State): New procedures
37516         (There_Are_Unkept_Comments): New function
37517         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
37518         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
37519         procedures.
37520         (First_Comment_After, First_Comment_After_End): New functions
37521         (First_Comment_Before, First_Comment_Before_End): New functions
37522         (Next_Comment): New function
37523         (End_Of_Line_Comment, Follows_Empty_Line,
37524         Is_Followed_By_Empty_Line): New functions
37525         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
37526         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
37527         (Set_Next_Comment): New procedure
37528         (Default_Project_Node): Associate comment before if the node can store
37529         comments.
37530
37531         * scans.ads (Token_Type): New enumeration value Tok_Comment
37532         (Comment_Id): New global variable
37533
37534         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
37535         defaulted to False.
37536         (Scan): Store position of start of comment. If comments are tokens, set
37537         Comment_Id and set Token to Tok_Comment when scanning a comment.
37538         (Set_Comment_As_Token): New procedure
37539
37540         * sinput-p.adb: Update Copyright notice
37541         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
37542         that no longer exists.
37543
37544 2003-12-08  Javier Miranda  <miranda@gnat.com>
37545
37546         * sem_aggr.adb: Add dependence on Exp_Tss package
37547         Correct typo in comment
37548         (Resolve_Aggregate): In case of array aggregates set the estimated
37549         type of the aggregate before calling resolve. This is needed to know
37550         the name of the corresponding IP in case of limited array aggregates.
37551         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
37552         in case of default initialized array components.
37553
37554         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
37555         types. Required to give support to limited aggregates in generic
37556         formals.
37557
37558 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
37559
37560         * sem_ch3.adb (Check_Initialization): For legality purposes, an
37561         inlined body functions like an instantiation.
37562         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
37563         until bounds are analyzed, to diagnose premature use of type.
37564
37565         * sem_util.adb (Wrong_Type): Improve error message when the type of
37566         the expression is used prematurely.
37567
37568 2003-12-08  GNAT Script  <nobody@gnat.com>
37569
37570         * Make-lang.in: Makefile automatically updated
37571
37572 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
37573
37574         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
37575         they are automatically generated by Make-lang.in and cause nothing but
37576         maintenance troubles.
37577
37578 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
37579
37580         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
37581         version of this unit).
37582
37583 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
37584
37585         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
37586         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
37587         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
37588         the body of System.Interrupt_Management common to several targets.
37589         Update copyright notice when appropriate.
37590
37591         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
37592         constant.
37593
37594         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
37595         to ensure that the kernel fills in the interrupted context structure
37596         before calling a signal handler, which is necessary to be able to
37597         unwind past it. Update the copyright notice.
37598
37599 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
37600
37601         * a-elchha.ads: New file.
37602
37603         * a-elchha.adb: New default last chance handler. Contents taken from
37604         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
37605
37606         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
37607         is moved to a-elchha.adb to provide a target-independent default last
37608         chance handler.
37609
37610         * Makefile.rtl: Add a-elchha.o
37611
37612         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
37613
37614 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
37615
37616         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
37617         declared in an instance, do not inline the call if the instance is not
37618         frozen yet, to prevent order of elaboration problems.
37619
37620         * sem_prag.adb: Add comments for previous fix.
37621
37622 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
37623
37624         * g-table.adb: Use the right variable in Set_Item.
37625         Update copyright notice.
37626
37627 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
37628
37629         * Makefile.in: Remove unused rules.
37630
37631 2003-12-05  Vincent Celier  <celier@gnat.com>
37632
37633         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
37634         -nostdlib. Not needed here after all.
37635
37636 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
37637
37638         PR ada/11724
37639         * adaint.h, adaint.c, g-os_lib.ads:
37640         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
37641         on some platforms (including FreeBSD), it is a 64 bit value.
37642         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
37643
37644 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
37645
37646         * gnatvsn.ads (Library_Version): Now contain only the relevant
37647         version info.
37648         (Verbose_Library_Version): New constant.
37649
37650         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
37651         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
37652         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
37653
37654         * gnatlbr.adb: Clean up: replace Library_Version by
37655         Verbose_Library_Version.
37656
37657         * make.adb, lib-writ.adb, exp_attr.adb:
37658         Clean up: replace Library_Version by Verbose_Library_Version.
37659
37660         * 5lintman.adb: Removed.
37661
37662         * Makefile.in:
37663         Update and simplify computation of LIBRARY_VERSION.
37664         Fix computation of GSMATCH_VERSION.
37665         5lintman.adb is no longer used: replaced by 7sintman.adb.
37666
37667 2003-12-03  Robert Dewar  <dewar@gnat.com>
37668
37669         * exp_ch5.adb:
37670         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
37671         name. Modified to consider small non-bit-packed arrays as troublesome
37672         and in need of component-by-component assigment expansion.
37673
37674 2003-12-03  Vincent Celier  <celier@gnat.com>
37675
37676         * lang-specs.h: Process nostdlib as nostdinc
37677
37678         * back_end.adb: Update Copyright notice
37679         (Scan_Compiler_Arguments): Process -nostdlib directly.
37680
37681 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
37682
37683         * Makefile.in:
37684         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
37685         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
37686         included in HIE_NONE_TARGET_PAIRS.
37687
37688 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
37689
37690         * sem_attr.adb:
37691         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
37692         is legal in an instance, because legality is cheched in the template.
37693
37694         * sem_prag.adb:
37695         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
37696         appplied to an unchecked conversion of a formal parameter.
37697
37698         * sem_warn.adb:
37699         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
37700         variables.
37701
37702 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
37703
37704         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
37705         routines. The second one is new functionality to deal with backtracing
37706         through signal handlers.
37707         (unwind): Split into the two separate subroutines above.
37708         Update the documentation, and deal properly with sizeof (REG) different
37709         from sizeof (void*).
37710
37711 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
37712
37713         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
37714         so that the debugger can reliably access the value of the parameter,
37715         and therefore is able to display the exception name when an exception
37716         breakpoint is reached.
37717
37718 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
37719
37720         * fmap.adb: Fix typo in warning message.
37721
37722         * g-socket.ads, g-socket.adb: Make Free a visible instance of
37723         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
37724
37725 2003-12-01  Vincent Celier  <celier@gnat.com>
37726
37727         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
37728         ther is no Afile.
37729         (Build_Library): Get the switches only if Default_Switches is declared
37730         in package Binder.
37731
37732 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
37733
37734         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
37735         actuals that are indexed components, reanalyze actual to ensure that
37736         packed array references are properly expanded.
37737
37738         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
37739         attempted assignment to a discriminant.
37740
37741 2003-12-01  Robert Dewar  <dewar@gnat.com>
37742
37743         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
37744         reformatting.
37745
37746         * switch-c.adb: Minor reformatting of comments
37747
37748 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
37749
37750         * Makefile.in: Clean ups.
37751
37752 2003-12-01  GNAT Script  <nobody@gnat.com>
37753
37754         * Make-lang.in: Makefile automatically updated
37755
37756 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
37757
37758         * 5wsystem.ads: Disable zero cost exception, not ready yet.
37759
37760 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
37761
37762         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
37763         to force serialization.
37764
37765 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
37766
37767         * g-socket.ads, g-socket.adb:
37768         Clarify documentation of function Stream. Introduce a Free procedure
37769         to release the returned Stream once it becomes unused.
37770
37771         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
37772
37773 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
37774
37775         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
37776         since NT 4 cannot handle timeout values that are too large,
37777         e.g. DWORD'Last - 1.
37778
37779 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
37780
37781         * exp_ch4.adb:
37782         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
37783         in procedure calls and whose expansion must be deferred.
37784
37785         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
37786         is in exp_ch4.
37787
37788         * sem_ch3.adb:
37789         (Build_Derived_Array_Type): Create operator for unconstrained type
37790         if ancestor is unconstrained.
37791
37792 2003-11-26  Vincent Celier  <celier@gnat.com>
37793
37794         * make.adb (Project_Object_Directory): New global variable
37795         (Change_To_Object_Directory): New procedure
37796         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
37797         of Change_Dir directly. Do not change working directory to object
37798         directory of main project after each compilation.
37799         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
37800         directly.
37801         Change to object directory of main project before binding step.
37802         (Initialize): Initialize Project_Object_Directory to No_Project
37803
37804         * mlib-prj.adb:
37805         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
37806         binding a Stand-Alone Library.
37807
37808         * output.adb: Update Copyright notice
37809         (Write_Char): Output buffer when full
37810
37811 2003-11-26  Robert Dewar  <dewar@gnat.com>
37812
37813         * sem_ch13.adb: (Check_Size): Reset size if size is too small
37814
37815         * sem_ch13.ads:
37816         (Check_Size): Fix documentation to include bit-packed array case
37817
37818         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
37819
37820         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
37821
37822         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
37823
37824 2003-11-24  Arnaud Charlet  <charlet@act-europe.fr>
37825
37826         PR ada/13142
37827         * utils.c (init_gigi_decls): Change name of built-in setjmp to
37828         __builtin_setjmp, since this is apparently needed by recent
37829         non Ada changes.
37830
37831 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
37832
37833         * adadecode.c: Only include ctype.h if not IN_GCC.
37834         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
37835
37836 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
37837
37838         * Makefile.in:
37839         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
37840         signals and interrupts.
37841
37842         * 5zintman.ads: New File.
37843
37844         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
37845         add exception signals to the set of unmasked signals.
37846
37847         * 5ztaprop.adb:
37848         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
37849         between signals and interrupts.
37850         Add to Unblocked_Signal_Mask the set of signals that are in
37851         Keep_Unmasked.
37852
37853         * 7sinmaop.adb:
37854         Adding a check to see whether the Interrupt_ID we want to unmask is in
37855         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
37856         reason is that the index type of the Keep_Unmasked array is not always
37857         Interrupt_ID; it may be a subtype of Interrupt_ID.
37858
37859 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
37860
37861         * exp_util.adb:
37862         (Remove_Side_Effects): Condition constantness of object created for a
37863          an unchecked type conversion on the constantness of the expression
37864          to ensure the correct value for 'Constrained when passing components
37865          of view-converted class-wide objects.
37866
37867 2003-11-24  Robert Dewar  <dewar@gnat.com>
37868
37869         * par-load.adb (Load): Improve handling of misspelled and missing units
37870         Removes several cases of compilation abandoned messages
37871
37872         * lib.adb: (Remove_Unit): New procedure
37873
37874         * lib.ads: (Remove_Unit): New procedure
37875
37876         * lib-load.adb: Minor reformatting
37877
37878 2003-11-24  Vincent Celier  <celier@gnat.com>
37879
37880         * make.adb:
37881         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
37882         (Marking_Label): Label to mark processed source files. Incremented for
37883         each executable.
37884         (Gnatmake): Increase Marking_Labet for each executable
37885         (Is_Marked): Compare against marking label
37886         (Mark): Mark with marking label
37887
37888 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
37889
37890         * s-thread.ads:
37891         Move the declaration of the TSD for System.Threads to System.Soft_Links.
37892         Add some comments.
37893
37894         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
37895         (rts-cert): build a single relocatable object for the run-time lib.
37896         Fix perms.
37897
37898 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
37899
37900         * Make-lang.in:
37901         Use gnatls rather than gcc to obtain the location of GNAT RTL for
37902         crosstools build.
37903
37904 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
37905
37906         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
37907         can not use it as before (that is, as a variable) when dumping it into
37908         the tree file. Add a local variable to store the result of this
37909         function and to be used as the string to be written into the tree.
37910
37911         * scn.adb (Initialize_Scanner): Add comments explaining the recent
37912         changes.
37913
37914         * sinput.adb (Source_First, Source_Last): In case of
37915         Internal_Source_File, replace returning attributes of
37916         Internal_Source_Ptr (which is wrong) with returning attributes of
37917         Internal_Source.
37918
37919 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
37920
37921         * sem_ch3.adb:
37922         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
37923         used for implicit concatenation operators.
37924         Code cleanup.
37925
37926         * sem_elab.adb:
37927         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
37928         task bodies that are in the scope of a Suppress pragma.
37929         (Check_A Call): Use the flag to prevent spurious elaboration checks.
37930
37931         * sinfo.ads, sinfo.adb:
37932         New flag No_Elaboration_Check on function/procedure calls, to properly
37933         suppress checks on calls in task bodies that are within a local suppress
37934         pragma.
37935
37936         * exp_ch4.adb:
37937         (Expand_Concatenate_Other): Use the proper integer type for the
37938         expression for the upper bound, to avoid universal_integer computations
37939         when possible.
37940
37941 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
37942
37943         * .cvsignore: Delete.
37944
37945 2003-11-21  Andreas Schwab  <schwab@suse.de>
37946
37947         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
37948
37949 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
37950
37951         * 5wsystem.ads: Enable zero cost exception.
37952
37953 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
37954
37955         * 5ztiitho.adb: Remove an unreferenced variable.
37956
37957 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
37958
37959         * adaint.c: For FreeBSD, use mkstemp.
37960
37961 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
37962
37963         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
37964
37965 2003-11-21  Robert Dewar  <dewar@gnat.com>
37966
37967         * bld.adb: Remove useless USE of gnatvsn
37968
37969         * gnatchop.adb: Minor reformatting
37970         Clean up version handling to be more consistent
37971
37972         * gnatxref.adb: Minor reformatting
37973
37974         * gprcmd.adb: Minor reformatting
37975         Fix output of copyright to be more consistent with other tools
37976
37977 2003-11-21  Vincent Celier  <celier@gnat.com>
37978
37979         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
37980
37981 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
37982
37983         * atree.adb (Initialize): Add initializations for global variables
37984         used in New_Copy_Tree.
37985
37986         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
37987         Internal_Source_File as the actual).
37988         Put the set of statements creating Any_Character before the set of
37989         statements creating Any_Array to have Any_Character fully initialized
37990         when it is used in creating Any_Array.
37991
37992         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
37993         not call Scan in case if the actual is Internal_Source_File
37994         Add 2003 to copyright note.
37995
37996         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
37997         processing Internal_Source_File.
37998
37999         * types.ads: Add the constant Internal_Source_File representing the
38000         source buffer for artificial source-code-like strings created within
38001         the compiler (the definition of Source_File_Index is changed).
38002
38003 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
38004
38005         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
38006         56system.ads: New file, FreeBSD version.
38007
38008 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
38009
38010         * Make-lang.in (ada.extraclean): Delete.
38011
38012 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
38013
38014         * gnatmem.adb: Clean up verbose output.
38015
38016         * gprcmd.adb: Change copyright to FSF.
38017
38018 2003-11-19  Vincent Celier  <celier@gnat.com>
38019
38020         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
38021         and Version (ignored).
38022
38023         * symbols.ads: (Policy): New type
38024         (Initialize): New parameter Reference, Symbol_Policy and
38025         Library_Version.
38026         Remove parameter Force.
38027         Minor reformatting.
38028
38029         * snames.ads, snames.adbadb: New standard names
38030         Library_Reference_Symbol_File and Library_Symbol_Policy
38031
38032         * mlib-prj.adb:
38033         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
38034         project.
38035
38036         * mlib-tgt.adb:
38037         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
38038
38039         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
38040
38041         * prj.adb: (Project_Empty): New component Symbol_Data
38042
38043         * prj.ads: (Policy, Symbol_Record): New types
38044         (Project_Data): New component Symbol_Data
38045
38046         * prj-attr.adb:
38047         New attributes Library_Symbol_File, Library_Symbol_Policy and
38048         Library_Reference_Symbol_File.
38049
38050         * prj-nmsc.adb:
38051         (Ada_Check): When project is a Stand-Alone library project, process
38052         attribute Library_Symbol_File, Library_Symbol_Policy and
38053         Library_Reference_Symbol_File.
38054
38055         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
38056         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
38057         5sml-tgt.adb (Build_Dynamic_Library): New parameter
38058         Symbol_Data (ignored).
38059
38060         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
38061         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
38062         functions Option_File_Name and Version_String. Set new options of
38063         gnatsym related to symbol file, symbol policy and reference symbol
38064         file.
38065
38066         * 5vsymbol.adb:
38067         Extensive modifications to take into account the reference symbol file,
38068         the symbol policy, the library version and to put in the symbol file the
38069         minor and major IDs.
38070
38071         * bld.adb (Process_Declarative_Items): Put second argument of
38072         gprcmd to_absolute between single quotes, to avoid problems with
38073         Windows.
38074
38075         * bld-io.adb: Update Copyright notice.
38076         (Flush): Remove last character of a line, if it is a back slash, to
38077         avoid make problems.
38078
38079         * gnatsym.adb:
38080         Implement new scheme with reference symbol file and symbol policy.
38081
38082         * g-os_lib.ads: (Is_Directory): Clarify comment
38083
38084 2003-11-19  Robert Dewar  <dewar@gnat.com>
38085
38086         * atree.adb: Move New_Copy_Tree global variables to head of package
38087
38088         * errout.adb: Minor reformatting
38089
38090 2003-11-19  Javier Miranda  <miranda@gnat.com>
38091
38092         * sem_ch4.adb: (Diagnose_Call): Improve error message.
38093         Add reference to Ada0Y (AI-50217)
38094
38095         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
38096         sem_util.adb: Add reference to AI-50217
38097
38098         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
38099
38100         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
38101
38102         * sem_aggr.adb: Complete documentation of AI-287 changes
38103
38104         * par-ch4.adb: Document previous changes.
38105
38106         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
38107         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
38108         Ada0Y (AI-50217)
38109
38110         * exp_aggr.adb: Add references to AI-287 in previous changes
38111
38112 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
38113
38114         * exp_ch6.adb:
38115         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
38116         in the rewriting is the result of an inlined call.
38117
38118         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
38119         parameter is a type conversion, use original node to construct the
38120         post-call assignment, because expression may have been rewritten, e.g.
38121         if it is a packed array.
38122
38123         * sem_attr.adb:
38124         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
38125         body, just as it is in an instance.
38126         Categorization routines
38127
38128         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
38129         Instantiate_Object): Set proper sloc reference for message on missing
38130         actual.
38131
38132 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
38133
38134         * Makefile.in: Add FreeBSD libgnat pairs.
38135
38136         * usage.adb: Fix typo in usage message.
38137
38138 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
38139
38140         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
38141         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
38142         pragma Thread_Body.
38143         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
38144
38145         * s-thread.adb: This file is now a dummy implementation of
38146         System.Thread.
38147
38148 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
38149
38150         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
38151
38152 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
38153
38154         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
38155         instanciation references in the parent type description.
38156
38157 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38158
38159         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
38160
38161         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
38162         TYPE_PRECISION directly from esize.
38163
38164 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
38165
38166         * cstreams.c:
38167         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
38168
38169         * init.c: Initialization routines for FreeBSD
38170
38171         * link.c: Link info for FreeBSD
38172
38173         * sysdep.c: Add the case of FreeBSD
38174
38175 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
38176
38177         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
38178         already called in System.Threads.
38179
38180         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
38181         environment task, as it has been moved to System.Threads.Initialization.
38182
38183 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
38184
38185         * adaint.c (__gnatlib_install_locks): Only reference
38186         __gnat_install_locks on VMS, since other platforms can avoid using
38187         --enable-threads=gnat
38188
38189 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38190
38191         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
38192
38193         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
38194         TYPE_PACKED_ARRAY_TYPE_P.
38195         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
38196
38197         Part of PR ada/12806
38198         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
38199         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
38200
38201 2003-11-17  Vincent Celier  <celier@gnat.com>
38202
38203         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
38204         to False.
38205         Do not set exit status to Failure when Warning is True.
38206         (Gnatchop): Make errors "no compilation units found" and
38207         "no source files written" warnings only.
38208
38209         * make.adb (Gnatmake): When using a project file, set
38210         Look_In_Primary_Dir to False.
38211         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
38212         and Local_Configuration_Pragmas in the project where they are declared
38213         not an extending project which might have inherited them.
38214
38215         * osint.adb (Locate_File): If Name is already an absolute path, do not
38216         look for a directory.
38217
38218         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
38219         -gnats (Check_Syntax) is used, issue only a warning, not an error.
38220
38221         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
38222         in objects of type Variable_Value.
38223
38224         * prj.ads: (Variable_Value): New component Project
38225
38226         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
38227         is in a project extended by Project.
38228
38229         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
38230         Project of Variable_Values to this new parameter value.
38231         (Expression): Set component Project of Variable_Values.
38232         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
38233         Set the component Project in array elements.
38234
38235 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
38236
38237         * errout.adb: (Initialize): Add initialization for error nodes.
38238
38239         * sem_ch12.adb (Initialize): Add missing initializations for
38240         Exchanged_Views and Hidden_Entities.
38241
38242 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
38243
38244         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
38245         already instantiated tree for use in subsequent inlining.
38246         (Analyze_Associations, Instantiate_Formal_Subprogram,
38247         Instantiate_Object): improve error message for mismatch in
38248         instantiations.
38249
38250         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
38251         instantiations of subprograms declared in instances.
38252
38253 2003-11-17  Javier Miranda  <miranda@gnat.com>
38254
38255         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
38256         executed only under the Extensions_Allowed flag.
38257
38258 2003-11-17  Robert Dewar  <dewar@gnat.com>
38259
38260         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
38261         zeroes suppressed.
38262         (Address_Image): Fix bug of returning 0x instead of 0x0
38263         Minor reformatting (function specs).
38264
38265         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
38266         (missed case of 33-63)
38267
38268         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
38269
38270         * s-thread.adb: Add comments for pragma Restriction
38271
38272         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
38273         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
38274
38275 2003-11-17  Ed Falis  <falis@gnat.com>
38276
38277         * s-thread.adb: Added No_Tasking restriction for this implementation.
38278
38279 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
38280
38281         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
38282         instanciation references in the parent type description.
38283
38284 2003-11-17  GNAT Script  <nobody@gnat.com>
38285
38286         * Make-lang.in: Makefile automatically updated
38287
38288 2003-11-16  Jason Merrill  <jason@redhat.com>
38289
38290         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
38291         and TAGS files that include them for each front end.
38292
38293 2003-11-14  Andreas Jaeger  <aj@suse.de>
38294
38295         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
38296         is the canonical version.
38297         * misc.c (gnat_handle_option): Likewise.
38298
38299         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
38300
38301         * 5nsystem.ads: New file for x86_64-linux-gnu.
38302
38303 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
38304
38305         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
38306
38307         * comperr.adb: Fix logic in previous change.
38308
38309 2003-11-13  Vincent Celier  <celier@gnat.com>
38310
38311         * 5bml-tgt.adb (Build_Dynamic_Library): Use
38312         Osint.Include_Dir_Default_Prefix instead of
38313         Sdefault.Include_Dir_Default_Name.
38314
38315         * gnatlbr.adb: Update Copyright notice
38316         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
38317         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
38318         instead of Sdefault.Object_Dir_Default_Name
38319
38320         * gnatlink.adb:
38321         (Process_Binder_File): Never suppress the option following -Xlinker
38322
38323         * mdll-utl.adb:
38324         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
38325         Sdefault.Object_Dir_Default_Name.
38326
38327         * osint.ads, osint.adb:
38328         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
38329         Minor reformatting.
38330
38331         * vms_conv.ads: Minor reformating
38332         Remove GNAT STANDARD and GNAT PSTA
38333
38334         * vms_conv.adb:
38335         Allow GNAT MAKE to have several files on the command line.
38336         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
38337         Sdefault.Object_Dir_Default_Name.
38338         Minor Reformating
38339         Remove data for GNAT STANDARD
38340
38341         * vms_data.ads:
38342         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
38343         Remove data for GNAT STANDARD
38344         Remove options and documentation for -gnatwb/-gnatwB: these warning
38345         options no longer exist.
38346
38347 2003-11-13  Ed Falis  <falis@gnat.com>
38348
38349         * 5zthrini.adb: (Init_RTS): Made visible
38350
38351         * 5zthrini.adb:
38352         (Register): Removed unnecessary call to taskVarGet that checked whether
38353          an ATSD was already set as a task var for the argument thread.
38354
38355         * s-thread.adb:
38356         Updated comment to reflect that this is a VxWorks version
38357         Added context clause for System.Threads.Initialization
38358         Added call to System.Threads.Initialization.Init_RTS
38359
38360 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
38361
38362         * 5zthrini.adb:
38363         (Init_RTS): New procedure, for the initialization of the run-time lib.
38364
38365         * s-thread.adb:
38366         Remove dependancy on System.Init, so that this file can be used in the
38367         AE653 sequential run-time lib.
38368
38369 2003-11-13  Robert Dewar  <dewar@gnat.com>
38370
38371         * bindgen.adb: Minor reformatting
38372
38373 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
38374
38375         * checks.adb:
38376         (Apply_Discriminant_Check): Do no apply check if target type is derived
38377         from source type with no applicable constraint.
38378
38379         * lib-writ.adb:
38380         (Ensure_System_Dependency): Do not apply the style checks that may have
38381         been specified for the main unit.
38382
38383         * sem_ch8.adb:
38384         (Find_Selected_Component): Further improvement in error message, with
38385         RM reference.
38386
38387         * sem_res.adb:
38388         (Resolve): Handle properly the case of an illegal overloaded protected
38389         procedure.
38390
38391 2003-11-13  Javier Miranda  <miranda@gnat.com>
38392
38393         * exp_aggr.adb:
38394         (Has_Default_Init_Comps): New function to check the presence of
38395         default initialization in an aggregate.
38396         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
38397         extension aggregate of a limited record. In addition, a new formal
38398         was added to do not initialize the record controller (if any) during
38399         this recursive expansion of ancestors.
38400         (Init_Controller): Add support for limited record components.
38401         (Expand_Record_Aggregate): In case of default initialized components
38402         convert the aggregate into a set of assignments.
38403
38404         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
38405         describing the new syntax.
38406         Nothing else needed to be done because this subprogram delegates part of
38407         its work to P_Precord_Or_Array_Component_Association.
38408         (P_Record_Or_Array_Component_Association): Give support to the new
38409         syntax for default initialization of components.
38410
38411         * sem_aggr.adb:
38412         (Resolve_Aggregate): Relax the strictness of the frontend in case of
38413         limited aggregates.
38414         (Resolve_Record_Aggregate): Give support to default initialized
38415         components.
38416         (Get_Value): In case of default initialized components, duplicate
38417         the corresponding default expression (from the record type
38418         declaration). In case of default initialization in the *others*
38419         choice, do not check that all components have the same type.
38420         (Resolve_Extension_Aggregate): Give support to limited extension
38421         aggregates.
38422
38423         * sem_ch3.adb:
38424         (Check_Initialization): Relax the strictness of the front-end in case
38425         of aggregate and extension aggregates. This test is now done in
38426         Get_Value in a per-component manner.
38427
38428         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
38429         expression corresponds to a limited aggregate. This test is now done
38430         in Get_Value.
38431
38432         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
38433         Box_Present flag.
38434
38435         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
38436         present in an N_Component_Association node
38437
38438 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
38439
38440         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
38441         type-conformant entry only if they are homographs.
38442
38443 2003-11-13  GNAT Script  <nobody@gnat.com>
38444
38445         * Make-lang.in: Makefile automatically updated
38446
38447 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38448
38449         * adadecode.c: Use <> form of include for ctype.h.
38450         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
38451
38452 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38453
38454         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
38455         Works around PR middle-end/6552.
38456
38457 2003-11-10  Ed Falis  <falis@gnat.com>
38458
38459         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
38460
38461         * 5zinit.adb: (Install_Handler): Moved back to spec
38462         (Install_Signal_Handlers): Deleted
38463
38464         * 5zthrini.adb: Added context clause for System.Storage_Elements
38465         (Register): Only handles creation of taskVar; initialization moved to
38466         Thread_Body_Enter.
38467         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
38468         Added declaration of environment task secondary stack and
38469         initialization.
38470
38471         * s-thread.adb: Implement bodies for thread body processing
38472
38473         * s-thread.ads:
38474         Added comment identifying supported targets for pragma Thread_Body.
38475
38476 2003-11-10  Pascal Obry  <obry@gnat.com>
38477
38478         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
38479         GNAT_MAX_PATH_LEN.
38480
38481         * s-fileio.adb:
38482         (Open): Properly check for string length before copying into the buffer.
38483         Raises Name_Error if buffer is too small. Note that this was a potential
38484         buffer overflow.
38485
38486 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
38487
38488         * bindgen.adb, comperr.adb: Code clean ups.
38489         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
38490
38491 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
38492
38493         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
38494
38495 2003-11-10  Vincent Celier  <celier@gnat.com>
38496
38497         * gprcmd.adb:
38498         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
38499         installation.
38500
38501         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
38502
38503         * prj.adb: (Project_Empty): Add new boolean component Virtual
38504
38505         * prj.ads: (Virtual_Prefix): New constant string
38506         (Project_Data): New boolean component Virtual
38507
38508         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
38509         a library project is extended by a virtual extending project.
38510
38511         * prj-part.adb:
38512         Modifications throughout to implement extending-all project, including:
38513         (Virtual_Hash, Processed_Hash): New hash tables
38514         (Create_Virtual_Extending_Project): New procedure
38515         (Look_For_Virtual_Projects_For): New procedure
38516
38517         * prj-proc.adb:
38518         (Process): After checking the projects, if main project is an
38519         extending-all project, set the object directory of all virtual extending
38520         project to the object directory of the main project.
38521         Adjust error message when a virtual extending project has the same
38522         object directory as an project being extended.
38523         (Recursive_Process): If name starts with the virtual prefix, set Virtual
38524         to True in the project data.
38525
38526         * prj-tree.adb:
38527         (Default_Project_Node): Add new boolean component Extending_All
38528         (Is_Extending_All): New function
38529         (Set_Is_Extending_All): New procedure
38530
38531         * prj-tree.ads: (Is_Extending_All): New function
38532         (Set_Is_Extending_All): New procedure
38533         (Project_Node_Record): New boolean component Extending_All
38534
38535         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
38536
38537         * vms_data.ads:
38538         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
38539
38540         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
38541         "gprcmd prefix" to define it.
38542
38543 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
38544
38545         * einfo.ads: Fix a typo and remove an extraneous word in comments.
38546
38547         * lib-load.adb:
38548         (Create_Dummy_Package_Unit): Set the scope of the entity for the
38549         created dummy package to Standard_Standard, not to itself, to
38550         defend other parts of the front-end against encoutering a cycle in
38551         the scope chain.
38552
38553         * sem_ch10.adb:
38554         (Analyze_With_Clause): When setting the entities for the successive
38555         N_Expanded_Names that constitute the name of a child unit, do not
38556         attempt to go further than Standard_Standard in the chain of scopes.
38557         This case arises from the placeholder units created by
38558         Create_Dummy_Package_Unit in the case of a with_clause for a
38559         nonexistent child unit.
38560
38561 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
38562
38563         * exp_ch6.adb:
38564         (Expand_Thread_Body): Place subprogram on scope stack, so that new
38565         declarations are given the proper scope.
38566
38567         * sem_ch13.adb:
38568         (Check_Expr_Constants): Reject an expression that contains a constant
38569         created during expansion, and that appears after the object to which
38570         the address clause applies.
38571
38572         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
38573         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
38574         that uses 'Range of a function call with controlled components, so
38575         that the function result can be finalized before starting the loop.
38576
38577         * sem_ch8.adb:
38578         (Find_Selected_Component): Improve error message when prefix is
38579         an implicit dereference of an incomplete type.
38580
38581 2003-11-10  Robert Dewar  <dewar@gnat.com>
38582
38583         * opt.ads: New Print_Standard flag for -gnatS switch
38584
38585         * sem_ch13.adb: Remove some additional checks for unaligned arrays
38586
38587         * cstand.adb (Create_Standard): Print out package standard if -gnatS
38588         switch set
38589
38590         * debug.adb: Update doc for -gnatds to discuss relationship with new
38591         -gnatS flag
38592
38593         * sinfo.adb: Add new field Entity_Or_Associated_Node
38594
38595         * sinfo.ads: Add new field Entity_Or_Associated_Node
38596         Update documentation for Associated_Node and Entity fields to clarify
38597         relationship and usage.
38598
38599         * sprint.adb:
38600         (Write_Id): Properly process Associated_Node field in generic template
38601
38602         * switch-c.adb:
38603         Recognize new -gnatS switch for printing package Standard
38604         This replaces gnatpsta
38605
38606         * usage.adb:
38607         Add line for  new -gnatS switch for printing package Standard
38608         This replaces gnatpsta
38609
38610 2003-11-10  Andreas Jaeger  <aj@suse.de>
38611
38612         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
38613         integer.
38614
38615 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
38616
38617         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
38618         by gnat1.
38619
38620 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
38621
38622         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
38623         no longer needed.
38624
38625         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
38626
38627         * sysdep.c: Add handling of cygwin.
38628
38629 2003-11-10  GNAT Script  <nobody@gnat.com>
38630
38631         * Make-lang.in: Makefile automatically updated
38632
38633 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
38634
38635         PR 12950
38636         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
38637         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
38638         Replace GNAT_ROOT by GCC_ROOT.
38639
38640         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
38641
38642 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
38643
38644         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
38645         and update for changed meaning of GET_MODE_BITSIZE.
38646
38647 2003-11-04  Doug Rupp  <rupp@gnat.com>
38648
38649         * sysdep.c: Problem discovered during IA64 VMS port.
38650         [VMS] #include <unixio.h> to get proper prototypes.
38651
38652         * adaint.c:
38653         Issues discovered/problems fixed during IA64 VMS port.
38654         [VMS] #define _POSIX_EXIT for proper semantics.
38655         [VMS] #include <unixio.h> for proper prototypes.
38656         [VMS] (fork): #define IA64 version.
38657         (__gnat_os_exit): Remove unnecessary VMS specific code.
38658
38659 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38660
38661         Part of PR ada/12806
38662         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
38663         tree, not integer.
38664
38665         * decl.c:
38666         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
38667         not integer.
38668
38669         * targtyps.c, decl.c, misc.c,
38670         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
38671         routines to work around change in FP sizing semantics in GCC.
38672
38673         * utils.c:
38674         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
38675
38676         * gigi.h: (enumerate_modes): New function.
38677
38678         * Make-lang.in: (ada/misc.o): Add real.h.
38679
38680         * misc.c: (enumerate_modes): New function.
38681
38682 2003-11-04  Robert Dewar  <dewar@gnat.com>
38683
38684         * 3vtrasym.adb: Minor reformatting
38685         Use terminology encoded/decoded name, rather than C++ specific notion
38686         of mangling (this is the terminology used throughout GNAT).
38687
38688         * einfo.h: Regenerated
38689
38690         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
38691
38692         * exp_ch6.adb:
38693         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
38694
38695         * par-prag.adb: Add dummy entry for Thread_Body pragma
38696
38697         * rtsfind.ads:
38698         Add entries for System.Threads entities for thread body processing
38699
38700         * sem_attr.adb:
38701         (Analyze_Pragma, Access attributes): Check these are not applied to a
38702         thread body, since this is not permitted
38703
38704         * sem_prag.adb: Add processing for Thread_Body pragma.
38705         Minor comment fix.
38706
38707         * sem_res.adb:
38708         (Resolve_Call): Check for incorrect attempt to call a thread body
38709          procedure with a direct call.
38710
38711         * snames.ads, snames.adb: Add entry for Thread_Body pragma
38712         Add names associated with thread body expansion
38713
38714         * snames.h: Add entry for Thread_Body pragma
38715
38716         * s-thread.adb: Add entries for thread body processing
38717         These are dummy bodies so far
38718
38719         * s-thread.ads: Add documentation on thread body handling.
38720         Add entries for thread body processing.
38721
38722 2003-11-04  Javier Miranda  <miranda@gnat.com>
38723
38724         * sem_ch10.adb:
38725         (Build_Limited_Views): Return after posting an error in case of limited
38726         with_clause on subprograms, generics, instances or generic renamings
38727         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
38728         on subprograms, generics, instances or generic renamings
38729
38730 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
38731
38732         * raise.c (setup_to_install): Correct mistake in last revision; two
38733         arguments out of order.
38734
38735         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
38736         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
38737         notice, missed in previous change.
38738         Remove trailing blanks and other style errors introduced in previous
38739         change.
38740
38741 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
38742
38743         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
38744         rid of the wrapper for a LJM type, ensuring we don't do that if the
38745         field is addressable.  This avoids potential low level type view
38746         mismatches later on, for instance in a by-reference argument passing
38747         process.
38748
38749 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38750
38751         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
38752         aligned at byte boundary.
38753
38754 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
38755
38756         * decl.c (components_to_record): Do not delete the empty variants from
38757         the end of the union type.
38758
38759 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
38760
38761         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
38762         operation for a derived type, an explicit declaration may use a local
38763         subtype of Boolean.
38764
38765 2003-11-04  Vincent Celier  <celier@gnat.com>
38766
38767         * make.adb (Gnatmake): Allow main sources on the command line with a
38768         library project when it is only for compilation (no binding or
38769         linking).
38770
38771 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38772
38773         * Makefile.in: Remove many duplicate variables.
38774
38775 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
38776
38777         * Make-lang.in (dvi): Move targets to $(docobjdir).
38778         (gnat_ug_vms.dvi): Simplify rule and adjust target.
38779         (gnat_ug_wnt.dvi): Likewise.
38780         (gnat_ug_unx.dvi): Likewise.
38781         (gnat_ug_vxw.dvi): Likewise.
38782         (gnat_rm.dvi): Likewise.
38783         (gnat-style.dvi): Likewise.
38784
38785 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
38786
38787         * gigi.h: Missed commit from update for C90.
38788
38789 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
38790
38791         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
38792
38793 2003-10-31  Andreas Schwab  <schwab@suse.de>
38794
38795         * raise.c (get_action_description_for): Fix typo in last change.
38796
38797 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
38798
38799         PR ada/12761
38800         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
38801         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
38802
38803 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
38804
38805         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
38806         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
38807         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
38808         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
38809         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
38810
38811 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
38812
38813         * 3vtrasym.adb:
38814         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
38815         numbers when symbol name is too long.
38816
38817 2003-10-30  Ed Falis  <falis@gnat.com>
38818
38819         * g-signal.ads, g-signal.adb: New files
38820
38821         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
38822
38823         * Makefile.rtl: Introduce GNAT.Signals
38824
38825 2003-10-30  Robert Dewar  <dewar@gnat.com>
38826
38827         * freeze.adb: Minor reformatting
38828
38829         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
38830
38831         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
38832         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
38833         New handling of Id_Check parameter to improve recognition of keywords
38834         used as identifiers.
38835         Update copyright notice to include 2003
38836
38837 2003-10-29  Robert Dewar  <dewar@gnat.com>
38838
38839         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
38840         sem_ch10.adb: Minor reformatting
38841
38842         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
38843         (Expand_Assign_Record): Test right hand side for bit unaligned as well
38844
38845 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
38846
38847         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
38848         Support for TBK$SYMBOLIZE-based symbolic traceback.
38849
38850 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
38851
38852         * exp_disp.adb:
38853         Revert previous change, that did not work well when pragma No_Run_Time
38854         was used in conjunction with a run-time other than ZFP.
38855
38856 2003-10-29  Vincent Celier  <celier@gnat.com>
38857
38858         * make.adb:
38859         (Gnatmake): When there are no Ada mains in attribute Main, disable the
38860          bind and link steps only is switch -z is not used.
38861
38862 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
38863
38864         * Makefile.generic: Remove duplicated setting of CC.
38865
38866         * Makefile.prolog: Set CC to gcc by default, to override make's
38867         default (cc).
38868
38869         * einfo.h: Regenerated.
38870
38871 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
38872
38873         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
38874         current body, after compiling subunit.
38875
38876         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
38877         when in deleted code, because gigi needs properly ordered freeze
38878         actions to annotate types.
38879
38880         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
38881         prevent the premature freezing of record type that contains
38882         subcomponents with a private type that does not yet have a completion.
38883
38884 2003-10-29  Javier Miranda  <miranda@gnat.com>
38885
38886         * sem_ch12.adb:
38887         (Analyze_Package_Instantiation): Check that instances can not be used in
38888         limited with_clauses.
38889
38890         * sem_ch8.adb:
38891         (Analyze_Package_Renaming): Check that limited withed packages cannot
38892         be renamed. Improve text on error messages related to limited
38893         with_clauses.
38894
38895         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
38896
38897         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
38898         Update copyright notice.
38899
38900         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
38901         (Install_Limited_Context_Clauses): New subprogram that isolates all the
38902         checks required for limited context_clauses and installs the limited
38903         view.
38904         (Install_Limited_Withed_Unit): Complete its documentation.
38905         (Analyze_Context): Check that limited with_clauses are only allowed in
38906         package specs.
38907         (Install_Context): Call Install_Limited_Context_Clauses after the
38908         parents have been installed.
38909         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
38910         package as 'From_With_Type'; this mark indicates that the limited view
38911         is installed. Used to check bad usages of limited with_clauses.
38912         (Build_Limited_Views): Do not add shadow entities to the scope's list
38913         of entities. Do not add real entities to the Non_Limited_Views chain.
38914         Improve error notification.
38915         (Remove_Context_Clauses): Remove context clauses in two phases:
38916         limited views first and regular views later (to maintain the
38917         stack model).
38918         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
38919         its visible entities.
38920
38921 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
38922
38923         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
38924         with any type that Is_Fixed_Point_Type.
38925
38926         * sinfo.ads: Fix documentation for Associated_Node attribute.
38927
38928 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
38929
38930         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
38931         both '-gnatc' and '-gnatt' are specified.
38932
38933         * atree.adb (Initialize): Add initialization for Node_Count (set to
38934         zero).
38935
38936 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38937
38938         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
38939         do not consider as Pure.
38940
38941         Part of implementation of function-at-a-time:
38942
38943         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
38944         (tree_transform): Add new argument to build_component_ref.
38945         (tree_transform, case N_Assignment_Statement): Make and return an
38946         EXPR_STMT.
38947         (tree_transform): If result IS_STMT, set flags and return it.
38948         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
38949
38950         * utils2.c (build_simple_component_ref, build_component_ref): Add new
38951         arg, NO_FOLD_P.
38952         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
38953         (build_allocator): Likewise.
38954
38955         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
38956         Add new arg to build_component_ref.
38957         (maybe_unconstrained_array, unchecked_convert): Likewise.
38958
38959         * ada-tree.def (EXPR_STMT): New code.
38960
38961         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
38962
38963         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
38964         build_component_ref calls.
38965
38966         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
38967
38968         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
38969         (build_component_ref): Add new argument, NO_FOLD_P.
38970
38971 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
38972
38973         * Makefile.generic: Add missing substitution on object_deps handling.
38974
38975         PR ada/5909
38976         * Make-lang.in (check-ada): Enable ACATS test suite.
38977
38978 2003-10-27  Robert Dewar  <dewar@gnat.com>
38979
38980         * exp_ch3.adb:
38981         (Freeze_Array_Type): We do not need an initialization routine for types
38982         derived from String or Wide_String. They should be treated the same
38983         as String and Wide_String themselves. This caused problems with the
38984         use of Initialize_Scalars.
38985
38986         * exp_ch5.adb:
38987         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
38988         composites. This allows use of component clauses that are not byte
38989         aligned.
38990
38991         * sem_prag.adb:
38992         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
38993         is an attempt to pack an array of atomic objects.
38994
38995         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
38996
38997 2003-10-27  Pascal Obry  <obry@gnat.com>
38998
38999         * g-dirope.adb:
39000         (Basename): Check for drive letters in a pathname only on DOS based OS.
39001
39002 2003-10-27  Vincent Celier  <celier@gnat.com>
39003
39004         * make.adb:
39005         (Gnatmake): When unable to change dir to the object dir, display the
39006         content of the parent dir of the obj dir, to try to understand why this
39007         happens.
39008
39009 2003-10-27  GNAT Script  <nobody@gnat.com>
39010
39011         * Make-lang.in: Makefile automatically updated
39012
39013 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
39014
39015         * sem_ch12.adb:
39016         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
39017         should not be done in Save/Restore_Scope_Stack, because it is performed
39018         locally.
39019
39020         * sem_ch8.adb:
39021         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
39022         whether use clauses should be removed/restored.
39023
39024         * sem_ch8.ads:
39025         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
39026         whether use clauses should be removed/restored.
39027
39028 2003-10-26  Andreas Jaeger  <aj@suse.de>
39029
39030         * Makefile.in: Remove duplicated lines.
39031
39032 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
39033
39034         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
39035         minimize the differences with ACT tree.
39036
39037         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
39038         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
39039         Gnatvsn.Gnat_Static_Version_String to reduce differences between
39040         ACT and FSF trees.
39041
39042 2003-10-24  Pascal Obry  <obry@gnat.com>
39043
39044         PR ada/12014
39045         * adadecode.c (ostrcpy): New function.
39046         (__gnat_decode): Use ostrcpy of strcpy.
39047         (has_prefix): Set first parameter a const.
39048         (has_suffix): Set first parameter a const.
39049         Update copyright notice. Fix source name in header.
39050         Removes a trailing space.
39051
39052 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
39053
39054         * exp_disp.adb:
39055         Remove the test against being in No_Run_Time_Mode before generating a
39056         call to Register_Tag. It is redundant with the test against the
39057         availability of the function Register_Tag.
39058
39059 2003-10-24  Vincent Celier  <celier@gnat.com>
39060
39061         * g-catiio.adb: (Month_Name): Correct spelling of February
39062
39063         * make.adb: (Mains): New package
39064         (Initialize): Call Mains.Delete
39065         (Gnatmake): Check that each main on the command line is a source of a
39066         project file and, if there are several mains, each of them is a source
39067         of the same project file.
39068         (Gnatmake): When a foreign language is specified in attribute Languages,
39069         no main is specified on the command line and attribute Mains is not
39070         empty, only build the Ada main. If there is no Ada main, just compile
39071         the Ada sources and their closure.
39072         (Gnatmake): If a main is specified on the command line with directory
39073         information, check that the source exists and, if it does, that the path
39074         is the actual path of a source of a project.
39075
39076         * prj-env.adb:
39077         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
39078         Full_Path is True, return the full path instead of the simple file name.
39079         (Project_Of): New function
39080
39081         * prj-env.ads:
39082         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
39083         defaulted to False.
39084         (Project_Of): New function
39085
39086 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
39087
39088         * Makefile.generic:
39089         Ensure objects of main project are always checked and rebuilt if needed.
39090         Set CC to gcc by default.
39091         Prepare new handling of link by creating a global archive (not activated
39092         yet).
39093
39094         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
39095         stringt.h: Update copyright notice. Remove trailing blanks.
39096         Fix source name in header.
39097
39098 2003-10-24  Robert Dewar  <dewar@gnat.com>
39099
39100         * sem_ch12.adb: Minor reformatting
39101
39102         * sem_ch3.adb:
39103         Minor reformatting (including new function return style throughout)
39104
39105         * sem_ch3.ads:
39106         Minor reformatting (including new function return style throughout)
39107
39108 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
39109
39110         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
39111         stringt.h: Update copyright notice. Remove trailing blanks.
39112         Fix source name in header.
39113
39114 2003-10-24  GNAT Script  <nobody@gnat.com>
39115
39116         * Make-lang.in: Makefile automatically updated
39117
39118 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
39119
39120         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
39121         stringt.h: Convert to ISO C90 declarations and definitions.
39122
39123 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
39124
39125         PR ada/11978
39126         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
39127         External_Tag attribute definition clauses.
39128
39129 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
39130
39131         PR ada/7613
39132         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
39133         child unit, generate a fully qualified name to avoid spurious errors
39134         when the context contains renamings of different child units with
39135         the same simple name.
39136
39137         * exp_dbug.ads: Add documentation on name qualification for renamings
39138         of child units.
39139
39140 2003-10-23  Robert Dewar  <dewar@gnat.com>
39141
39142         * g-regpat.ads, g-regpat.adb: Minor reformatting
39143
39144 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
39145
39146         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
39147
39148 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
39149
39150         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
39151         Machine call.
39152
39153         * urealp.h: (Machine): Update to proper definition.
39154
39155 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
39156
39157         * init.c, adaint.c: Minor reformatting.
39158
39159 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
39160
39161         * adaint.c (w32_epoch_offset): Define static const at file level.
39162         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
39163         rather than t_create, t_access in call to GetFileTime. Use union
39164         to convert between FILETIME and  unsigned long long.
39165         (__gnat_file_time_name): Test for invalid file handle.
39166         (__gnat_set_filetime_name): Support win32 targets using
39167         w32api SetFileTime.
39168
39169 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
39170
39171         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
39172
39173         * ctrl_c.c (__gnat_int_handler): Remove declaration.
39174
39175         * decl.c (creat_concat_name):  Const-ify prefix.
39176
39177         * adaint.c: Include ctype.h if __MINGW32__.
39178         (__gnat_readlink): Mark arguments as possibly unused.
39179         (__gnat_symlink): Likewise.
39180         (__gnat_is_symbolic_link): Likewise.
39181         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
39182         declaration
39183         (__gnat_file_time_name): Don't declare struct stat statbuf when
39184         not needed.
39185         (__gnat_is_absolute_path): Add parenthesis around condition of
39186         'if' statement to avoid warning.
39187         (__gnat_plist_init): Specify void as parameter.
39188         (plist_enter): Likewise.
39189         (plist_leave): Likewise.
39190         (remove_handle): Make static. Initialize prev.
39191
39192 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
39193
39194         PR ada/10110
39195         * Makefile.in: Disable build of gnatpsta.
39196         * cstreams.c (__gnat_full_name): Minor improvements and clean up
39197         of previous change.
39198
39199 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
39200
39201         * tracebak.c (MAX): Avoid redefinition warning.
39202
39203         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
39204         Change msg to const char *.
39205         (__gnat_install_handler): Remove ss, unused.
39206         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
39207         to const char *.
39208         * cstreams.c (__gnat_full_name): Declare p only when used.
39209         (__gnat_full_name) [sgi] Return buffer.
39210
39211 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
39212
39213         * mingw32.h: New file.
39214         * gnat_wrapper.adb: New file.
39215
39216 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
39217
39218         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
39219         string match a pre compiled regular expression (the corresponding
39220         version of the function working on a raw regular expression)
39221         Fix typos in various comments
39222         Update copyright notice in spec
39223
39224 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
39225
39226         * exp_ch3.adb:
39227         (Component_Needs_Simple_Initialization): Return False when the type is a
39228         packed bit array. Revise spec comments to document this case.
39229
39230         * exp_prag.adb:
39231         (Expand_Pragma_Import): Set any expression on the imported object to
39232         empty to avoid initializing imported objects (in particular this
39233         covers the case of zero-initialization of bit arrays).
39234         Update copyright notice.
39235
39236 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
39237
39238         * sem_ch12.adb:
39239         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
39240         a subunit is missing.
39241         (Instantiate_Subprogram_Body): If body of function is missing, set type
39242         of return expression explicitly in dummy body, to prevent cascaded
39243         errors when a subunit is missing.
39244         Fixes PR 5677.
39245
39246         * sem_ch3.adb:
39247         (Access_Subprogram_Declaration): Verify that return type is valid.
39248         Fixes PR 8693.
39249
39250         * sem_elab.adb:
39251         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
39252         generic.
39253         Fixes PR 12318.
39254
39255         * sem_util.adb:
39256         (Corresponding_Discriminant): If the scope of the discriminant is a
39257         private type without discriminant, use its full view.
39258         Fixes PR 8247.
39259
39260 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
39261
39262         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
39263         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
39264         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
39265         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
39266         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
39267         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
39268         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
39269         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
39270         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
39271         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
39272         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
39273         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
39274         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
39275         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
39276         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
39277         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
39278         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
39279         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
39280         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
39281         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
39282         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
39283         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
39284         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
39285         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
39286         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
39287         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
39288         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
39289         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
39290         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
39291         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
39292         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
39293         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
39294         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
39295         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
39296         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
39297         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
39298         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
39299         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
39300         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
39301         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
39302         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
39303         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
39304         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
39305         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
39306         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
39307         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
39308         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
39309         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
39310         vms_conv.ads, vms_conv.adb, vms_data.ads,
39311         vxaddr2line.adb: Files added. Merge with ACT tree.
39312
39313         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
39314         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
39315         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
39316         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
39317         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
39318         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
39319         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
39320         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
39321         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
39322         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
39323
39324         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
39325         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
39326         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
39327         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
39328         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
39329         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
39330         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
39331         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
39332         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
39333         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
39334         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
39335         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
39336         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
39337         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
39338         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
39339         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
39340         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
39341         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
39342         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
39343         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
39344         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
39345         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
39346         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
39347         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
39348         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
39349         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
39350         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
39351         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
39352         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
39353         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
39354         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
39355         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
39356         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
39357         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
39358         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
39359         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
39360         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
39361         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
39362         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
39363         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
39364         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
39365         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
39366         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
39367         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
39368         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
39369         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
39370         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
39371         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
39372         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
39373         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
39374         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
39375         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
39376         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
39377         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
39378         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
39379         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
39380         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
39381         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
39382         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
39383         checks.adb, checks.ads, cio.c, comperr.adb,
39384         comperr.ads, csets.adb, cstand.adb, cstreams.c,
39385         debug_a.adb, debug_a.ads, debug.adb, decl.c,
39386         einfo.adb, einfo.ads, errout.adb, errout.ads,
39387         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
39388         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
39389         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
39390         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
39391         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
39392         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
39393         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
39394         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
39395         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
39396         fe.h, fmap.adb, fmap.ads, fname.adb,
39397         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
39398         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
39399         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
39400         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
39401         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
39402         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
39403         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
39404         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
39405         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
39406         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
39407         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
39408         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
39409         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
39410         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
39411         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
39412         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
39413         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
39414         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
39415         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
39416         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
39417         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
39418         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
39419         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
39420         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
39421         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
39422         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
39423         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
39424         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
39425         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
39426         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
39427         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
39428         layout.adb, lib.adb, lib.ads, lib-list.adb,
39429         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
39430         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
39431         link.c, live.adb, make.adb, make.ads,
39432         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
39433         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
39434         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
39435         misc.c, mkdir.c, mlib.adb, mlib.ads,
39436         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
39437         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
39438         namet.adb, namet.ads, namet.h, nlists.ads,
39439         nlists.h, nmake.adt, opt.adb, opt.ads,
39440         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
39441         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
39442         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
39443         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
39444         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
39445         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
39446         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
39447         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
39448         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
39449         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
39450         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
39451         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
39452         prj-util.adb, prj-util.ads, raise.c, raise.h,
39453         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
39454         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
39455         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
39456         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
39457         scans.ads, scn.adb, scn.ads, s-crc32.adb,
39458         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
39459         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
39460         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
39461         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
39462         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
39463         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
39464         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
39465         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
39466         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
39467         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
39468         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
39469         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
39470         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
39471         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
39472         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
39473         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
39474         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
39475         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
39476         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
39477         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
39478         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
39479         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
39480         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
39481         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
39482         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
39483         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
39484         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
39485         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
39486         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
39487         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
39488         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
39489         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
39490         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
39491         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
39492         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
39493         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
39494         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
39495         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
39496         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
39497         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
39498         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
39499         stringt.adb, stringt.ads, stringt.h, style.ads,
39500         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
39501         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
39502         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
39503         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
39504         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
39505         table.adb, table.ads, targparm.adb, targparm.ads,
39506         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
39507         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
39508         ttypes.ads, types.ads, types.h, uintp.adb,
39509         uintp.ads, uintp.h, uname.adb, urealp.adb,
39510         urealp.ads, urealp.h, usage.adb, utils2.c,
39511         utils.c, validsw.adb, validsw.ads, widechar.adb,
39512         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
39513         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
39514         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
39515         gnatvsn.ads: Merge with ACT tree.
39516
39517         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
39518
39519 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
39520
39521         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
39522         (gnat_ug_vmx.info): Likewise.
39523         (gnat_ug_vxw.info): Likewise.
39524         (gnat_ug_wnt.info): Likewise.
39525         (gnat_rm.info): Likewise.
39526         (gnat-style.info): Likewise.
39527
39528         * Make-lang.in (ada.install-info): Remove target.
39529         (info): New target.
39530         (install-info): Likewise.
39531         (gnat_ug_unx.info): Simplify rule.
39532         (gnat_ug_vmx.info): Likewise.
39533         (gnat_ug_vxw.info): Likewise.
39534         (gnat_ug_wnt.info): Likewise.
39535         (gnat_rm.info): Likewise.
39536         (gnat-style.info): Likewise.
39537
39538 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
39539
39540         * Make-lang.in: Replace uses of $(target_alias) with
39541         $(target_noncanonical).
39542         * ada/Makefile.in: Remove unused mention of $(target_alias).
39543
39544 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
39545
39546         * Make-lang.in (ada.info): Replace with ...
39547         (info): ... this.
39548         (ada.dvi): Replace with ...
39549         (dvi): ... this.
39550
39551 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
39552
39553         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
39554         initialize dconstp5 and dconstmp5.
39555
39556 2003-09-28  Richard Henderson  <rth@redhat.com>
39557
39558         * trans.c (tree_transform): Update call to expand_asm_operands.
39559
39560 2003-09-21  Richard Henderson  <rth@redhat.com>
39561
39562         * trans.c, utils.c: Revert.
39563
39564 2003-09-21  Richard Henderson  <rth@redhat.com>
39565
39566         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
39567         change to const.
39568
39569 2003-09-04  Michael Matz  <matz@suse.de>
39570
39571         * misc.c: Include "target.h".
39572         * Make-lang.in (misc.o): Add dependency on target.h.
39573
39574 2003-09-03  DJ Delorie  <dj@redhat.com>
39575
39576         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
39577         hook.
39578
39579 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
39580
39581         * Makefile.in: Update substitutions to match changes to
39582         configure.  Use include directives instead of @-insertions
39583         to read in host and target fragments.  Add a rule to
39584         regenerate ada/Makefile.
39585
39586 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
39587
39588         * lang-options.h: Remove.
39589         * lang.opt: Add help text.
39590
39591 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
39592
39593         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
39594         calls.
39595
39596 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
39597
39598         * misc.c (gnat_handle_option): Don't handle filenames.
39599
39600 2003-07-04  H.J. Lu  <hongjiu.lu@intel.com>
39601
39602         * Make-lang.in: Replace PWD with PWD_COMMAND.
39603         * Makefile.adalib: Likewise.
39604         * Makefile.in: Likewise.
39605
39606 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
39607
39608         * misc.c (gnat_argv): Revert last change.
39609         (gnat_handle_option, gnat_init_options): Copy arguments.
39610
39611 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
39612
39613         * misc.c (gnat_argv): Make const.
39614
39615 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
39616
39617         * misc.c (save_argc, save_argv): Keep non-static!
39618
39619 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
39620
39621         * misc.c (save_argc, save_argv): Make static.
39622         (gnat_init_options): New prototype.
39623         (gnat_init_options): Update.
39624
39625 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
39626
39627         * gnat_ug.texi: Remove unlikely characters from @vars.
39628         * gnat_ug_vms.texi: Regenerate.
39629
39630 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
39631
39632         * misc.c (record_code_position): Adjust emit_note call.
39633
39634 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
39635
39636         * misc.c (gnat_handle_option): Don't check for missing arguments.
39637
39638 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
39639
39640         * utils.c (end_subprog_body): Adjust expand_function_end call.
39641
39642 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
39643
39644         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
39645         Bind_Main_Program.
39646
39647 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
39648
39649         * lang.opt: Declare Ada.
39650         * misc.c (gnat_init_options): Update.
39651
39652 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
39653
39654         * utils.c (begin_subprog_body): Adjust init_function_start call.
39655
39656 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
39657
39658         * Make-lang.in: Update to use options.c and options.h.
39659         * misc.c: Include options.h not aoptions.h.
39660         (gnat_handle_option): Abort on unrecognized switch.
39661         (gnat_init_options): Request Ada switches.
39662
39663 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
39664
39665         * lang.opt: Add -Wall.
39666         * misc.c (gnat_handle_option): Handle it.
39667
39668 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
39669
39670         * misc.c (gnat_handle_option): Fix warnings.
39671
39672 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
39673
39674         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
39675
39676 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
39677
39678         * Make-lang.in: Update to handle command-line options.
39679         * lang.opt: New file.
39680         * misc.c: Include aoptions.h.
39681         (cl_options_count, cl_options): Remove.
39682         (gnat_handle_option): New.
39683         (gnat_decode_option): Remove.
39684         (LANG_HOOKS_DECODE_OPTION): Remove.
39685         (LANG_HOOKS_HANDLE_OPTION): Override.
39686
39687 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
39688
39689         * init.c, misc.c, trans.c, utils.c: Remove dead code.
39690
39691 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
39692
39693         * Makefile.in: Replace "host_canonical" with "host" for autoconf
39694         substitution.
39695
39696 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
39697
39698         * Make-lang.in: Update.
39699         * misc.c: Include opts.h. Define cl_options_count and cl_options.
39700
39701 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
39702
39703         * misc.c (gnat_init_options): Update.
39704
39705 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
39706
39707         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
39708         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
39709         __attribute__ ((__unused__)).
39710
39711 2003-06-05  Jan Hubicka  <jh@suse.cz>
39712
39713         * Make-lang.in:  Add support for stageprofile and stagefeedback
39714
39715 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
39716
39717         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
39718         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
39719
39720 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
39721
39722         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
39723         Remove non-VMS directive.
39724         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
39725         alternatives.
39726         (Examples of gnatls Usage): Remove VMS alternative.
39727
39728 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
39729
39730         PR ada/9953
39731         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
39732         and turn ZCX_By_Default back to False since the underlying support
39733         is not quite there yet.
39734
39735 2003-06-01  Andreas Jaeger  <aj@suse.de>
39736
39737         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
39738         and ROUND_TYPE_SIZE_UNIT.
39739
39740 2003-05-22   Geert Bosch  <bosch@gnat.com>
39741
39742         * gnat_rm.texi : Remove reference to Ada Core Technologies.
39743
39744 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
39745
39746         * trans.c (tree_transform): Use location_t and input_location
39747         directly.
39748         (build_unit_elab): Likewise.
39749         * utils.c (create_label_decl): Likewise.
39750
39751 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
39752
39753         * trans.c (tree_transform, build_unit_elab,
39754         set_lineno): Rename lineno to input_line.
39755         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
39756         end_subprog_body): Likewise.
39757         * utils2.c (build_call_raise): Likewise.
39758
39759 2003-05-01  Laurent Guerby  <guerby@acm.org>
39760
39761         PR ada/10546
39762         * 5iosinte.ads: Increase pthread_cond_t size to match recent
39763         LinuxThread and NPTL version, merge from ACT.
39764
39765 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
39766
39767         * utils.c (convert): No need to clear TREE_CST_RTL.
39768
39769 2003-04-23   Geert Bosch  <bosch@gnat.com>
39770
39771         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
39772         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
39773         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
39774         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
39775         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
39776         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
39777         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
39778         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
39779         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
39780         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
39781         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
39782         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
39783         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
39784         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
39785         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
39786         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
39787         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
39788         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
39789         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
39790         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
39791         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
39792         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
39793         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
39794         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
39795         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
39796         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
39797         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
39798         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
39799         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
39800         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
39801         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
39802         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
39803         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
39804         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
39805         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
39806         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
39807         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
39808         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
39809         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
39810         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
39811         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
39812         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
39813         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
39814         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
39815         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
39816         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
39817         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
39818         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
39819         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
39820         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
39821         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
39822         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
39823         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
39824         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
39825         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
39826         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
39827         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
39828         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
39829         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
39830         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
39831         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
39832         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
39833         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
39834         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
39835         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
39836         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
39837         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
39838         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
39839         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
39840         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
39841         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
39842         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
39843         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
39844         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
39845         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
39846         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
39847         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
39848         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
39849         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
39850         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
39851         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
39852         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
39853         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
39854         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
39855         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
39856         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
39857         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
39858         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
39859         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
39860         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
39861         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
39862         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
39863         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
39864         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
39865         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
39866         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
39867         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
39868         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
39869         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
39870         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
39871         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
39872         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
39873         ali.adb, ali.ads, alloc.ads, argv.c,
39874         atree.adb, atree.ads, atree.h, aux-io.c,
39875         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
39876         binde.adb, binde.ads, binderr.adb, binderr.ads,
39877         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
39878         butil.adb, butil.ads, cal.c, calendar.ads,
39879         casing.adb, casing.ads, ceinfo.adb, checks.adb,
39880         checks.ads, cio.c, comperr.adb, comperr.ads,
39881         config-lang.in, csets.adb, csets.ads, csinfo.adb,
39882         cstand.adb, cstand.ads, cuintp.c, debug.adb,
39883         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
39884         dec-io.ads, dec.ads, deftarg.c, directio.ads,
39885         einfo.adb, einfo.ads, elists.adb, elists.ads,
39886         elists.h, errno.c, errout.adb, errout.ads,
39887         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
39888         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
39889         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
39890         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
39891         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
39892         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
39893         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
39894         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
39895         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
39896         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
39897         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
39898         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
39899         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
39900         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
39901         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
39902         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
39903         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
39904         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
39905         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
39906         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
39907         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
39908         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
39909         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
39910         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
39911         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
39912         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
39913         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
39914         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
39915         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
39916         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
39917         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
39918         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
39919         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
39920         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
39921         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
39922         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
39923         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
39924         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
39925         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
39926         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
39927         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
39928         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
39929         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
39930         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
39931         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
39932         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
39933         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
39934         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
39935         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
39936         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
39937         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
39938         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
39939         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
39940         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
39941         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
39942         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
39943         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
39944         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
39945         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
39946         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
39947         lib.adb, lib.ads, live.adb, live.ads,
39948         machcode.ads, make.adb, make.ads, makeusg.adb,
39949         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
39950         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
39951         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
39952         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
39953         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
39954         mlib.ads, namet.adb, namet.ads, nlists.adb,
39955         nlists.ads, opt.adb, opt.ads, osint-b.adb,
39956         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
39957         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
39958         osint.ads, output.adb, output.ads, par-ch10.adb,
39959         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
39960         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
39961         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
39962         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
39963         par-tchk.adb, par-util.adb, par.adb, par.ads,
39964         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
39965         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
39966         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
39967         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
39968         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
39969         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
39970         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
39971         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
39972         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
39973         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
39974         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
39975         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
39976         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
39977         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
39978         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
39979         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
39980         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
39981         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
39982         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
39983         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
39984         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
39985         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
39986         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
39987         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
39988         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
39989         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
39990         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
39991         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
39992         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
39993         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
39994         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
39995         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
39996         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
39997         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
39998         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
39999         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
40000         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
40001         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
40002         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
40003         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
40004         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
40005         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
40006         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
40007         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
40008         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
40009         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
40010         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
40011         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
40012         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
40013         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
40014         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
40015         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
40016         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
40017         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
40018         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
40019         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
40020         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
40021         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
40022         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
40023         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
40024         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
40025         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
40026         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
40027         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
40028         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
40029         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
40030         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
40031         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
40032         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
40033         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
40034         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
40035         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
40036         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
40037         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
40038         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
40039         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
40040         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
40041         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
40042         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
40043         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
40044         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
40045         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
40046         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
40047         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
40048         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
40049         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
40050         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
40051         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
40052         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
40053         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
40054         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
40055         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
40056         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
40057         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
40058         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
40059         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
40060         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
40061         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
40062         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
40063         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
40064         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
40065         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
40066         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
40067         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
40068         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
40069         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
40070         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
40071         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
40072         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
40073         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
40074         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
40075         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
40076         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
40077         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
40078         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
40079         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
40080         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
40081         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
40082         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
40083         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
40084         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
40085         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
40086         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
40087         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
40088         snames.ads, sprint.adb, sprint.ads, stand.adb,
40089         stand.ads, stringt.adb, stringt.ads, style.adb,
40090         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
40091         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
40092         switch-m.ads, switch.adb, switch.ads, system.ads,
40093         table.adb, table.ads, targparm.adb, targparm.ads,
40094         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
40095         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
40096         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
40097         ttypef.ads, ttypes.ads, types.adb, types.ads,
40098         uintp.adb, uintp.ads, uname.adb, uname.ads,
40099         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
40100         usage.adb, usage.ads, validsw.adb, validsw.ads,
40101         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
40102         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
40103         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
40104         formatting and other trivial changes from ACT.
40105
40106 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
40107
40108         * gigi.h, utils2.c (build_constructor):
40109         Rename gnat_build_constructor. Use build_constructor.
40110         * decl.c (gnat_to_gnu_entity)
40111         * trans.c (tree_transform, pos_to_constructor, extract_values)
40112         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
40113         (unchecked_convert)
40114         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
40115         (fill_vms_descriptor):
40116         Update to match.
40117
40118 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
40119
40120         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
40121         * misc.c (gnat_tree_size): New function.
40122         (LANG_HOOKS_TREE_SIZE): Override.
40123
40124 2003-04-03  Jason Merrill  <jason@redhat.com>
40125
40126         * misc.c (gnat_adjust_rli): #if 0.
40127
40128 2003-03-31   Geert Bosch  <bosch@gnat.com>
40129
40130         PR ada/10020
40131         * link.c : Fix misspelled "const" keyword
40132
40133 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
40134
40135         PR c++/7086
40136         * utils2.c: Adjust calls to put_var_into_stack.
40137
40138 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
40139
40140         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
40141
40142 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
40143
40144         * misc.c (gnat_init): Update for new prototype.
40145
40146 2003-03-05  Olivier Hainque  <hainque@gnat.com>
40147
40148         ada/9961
40149         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
40150         warning, and fix return type for the IN_RTS && !SJLJ case.
40151
40152 2003-03-04  Tom Tromey  <tromey@redhat.com>
40153
40154         * Make-lang.in (ada.tags): New target.
40155
40156 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
40157
40158         ada/9911
40159         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
40160         wrapper, which name remains constant whatever underlying GCC
40161         scheme.
40162
40163         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
40164         the stable interface needed for a-except.
40165
40166 2003-03-02  Andreas Jaeger  <aj@suse.de>
40167
40168         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40169         gnat_ug_wnt.texi: Regenerate.
40170
40171 2003-03-02  Laurent Guerby  <guerby@acm.org>
40172
40173         * Makefile.in (install-gnatlib): Match previous change there
40174         so it works.
40175
40176 2003-02-28  Andreas Schwab  <schwab@suse.de>
40177
40178         * Make-lang.in (install-gnatlib): Change to ada directory before
40179         running make instead of using ada/Makefile directly.
40180
40181 2003-02-18  Ben Elliston  <bje@redhat.com>
40182
40183         Part of PR ada/9406
40184         * gnat_ug.texi (Binder output file): Grammar fix.
40185
40186 2003-02-18  Ben Elliston  <bje@redhat.com>
40187
40188         PR other/7350
40189         * 5qtaprop.adb (Sleep): Fix typo in comment.
40190
40191 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
40192
40193         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
40194         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40195         gnat_ug_wnt.texi: Regenerate.
40196
40197 2003-02-03  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
40198
40199         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
40200         be created if necessary.
40201         (ada.install-common): Let $(DESTDIR)$(bindir) be created
40202         if necessary.  Remove erroneous and redundant gnatchop
40203         installation commands.  Test for gnatdll before attempting
40204         to install it.
40205         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
40206         and gnatdll from all plausible locations.
40207
40208 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
40209
40210         * utils2.c (build_unary_op): Don't check flag_volatile.
40211         * gnat_ug.texi: Remove -fvolatile from example.
40212         * gnat_ug_vxw.texi: Likewise.
40213
40214 2003-01-29  Laurent Guerby  <guerby@acm.org>
40215
40216         PR ada/8344
40217         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
40218         * Makefile.in: match previous change.
40219         * Make-lang.in: match previous change.
40220
40221 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
40222
40223         * 5rosinte.ads: Add SIGXCPU.
40224         * 5rtpopsp.adb: New file.
40225         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
40226         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
40227         specific file 5rtpopsp.adb.
40228         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
40229         is likely needed for all newlib targets.
40230         * init.c: Add RTEMS specific version of __gnat_initialize().
40231
40232 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40233
40234         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
40235
40236 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40237
40238         * init.c (__gnat_error_handler): Make msg const.
40239
40240         * gmem.c (convert_addresses): Move declaration ...
40241         * adaint.h: ... here.
40242         * adaint.c (convert_addresses): Adapt addrs type to match
40243         prototype.
40244
40245         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
40246
40247 2003-01-24  Andreas Schwab  <schwab@suse.de>
40248
40249         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
40250         size_t to avoid warning.
40251
40252 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
40253
40254         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
40255
40256 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
40257
40258         * gnat_rm.texi: Remove RCS version number.
40259
40260         * ada-tree.h (union lang_tree_node): Add chain_next option.
40261
40262 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
40263
40264         * Make-lang.in (ada.install-info, ada.install-common,
40265         ada.uninstall): Prepend $(DESTDIR) to the destination
40266         directory in all (un)installation commands.
40267         * Makefile.in (install-gnatlib, install-rts): Ditto.
40268
40269 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
40270
40271         * gnat_rm.texi, gnat_ug.texi: Use @copying.
40272         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40273         gnat_ug_wnt.texi: Regenerate.
40274
40275 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
40276
40277         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
40278         only.
40279         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
40280         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
40281         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
40282         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
40283         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
40284         $(srcdir)/doc/include/gcc-common.texi.
40285
40286 2002-12-15   Geert Bosch  <bosch@gnat.com>
40287
40288         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
40289
40290 2002-12-14   Geert Bosch  <bosch@gnat.com>
40291
40292         PR ada/5690
40293         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
40294         case of a body created for a Renaming_As_Body, on which
40295         conformance checks are not performed.
40296
40297 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
40298
40299         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
40300         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
40301         not already included.
40302         * Make-lang.in: Update dependencies.
40303
40304 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
40305         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
40306         solution to buffer overflow bug on GNU/Linux.
40307
40308 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
40309
40310         PR ada/5856
40311         PR ada/6919
40312         * bindgen.adb: Remove all references to Public_Version.
40313         * comperr.adb: Remove all references to Public_Version and
40314         GNATPRO_Version; correct bug reporting instructions.
40315         * comperr.ads: Change to match bug box.
40316         * gnatvsn.ads: Remove all references to Public version and
40317         GNATPRO version.
40318
40319 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
40320
40321         PR ada/6919
40322         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
40323         GNU/Linux.
40324
40325         PR ada/6558
40326         * config-lang.in: Remove diff_excludes.
40327
40328 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
40329
40330         PR ada/8358
40331         * trans.c (gnu_pending_elaboration_lists): New GC root.
40332         (build_unit_elab): Use..
40333
40334 2002-10-30   Geert Bosch  <bosch@gnat.com>
40335
40336         PR ada/6558
40337         * misc.c : Include optabs.h
40338
40339         * Make-lang.in (misc.o): Add dependency on optabs.h
40340
40341 2002-10-29   Geert Bosch  <bosch@gnat.com>
40342
40343         PR ada/6558
40344         * Make-lang.in (gnatbind): Depend on CONFIG_H
40345
40346 2002-10-29  Geert bosch  <bosch@gnat.com>
40347
40348         PR ada/6558
40349         * misc.c: Unrevert misc.c (1.13)
40350
40351 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
40352
40353         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
40354         maintainership comments.
40355
40356 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
40357
40358         PR ada/5904
40359         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
40360         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
40361         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
40362         7staprop.adb: Correct statements in comments about
40363         maintainership of GNAT.
40364
40365         PR ada/5904
40366         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
40367         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
40368         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
40369         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
40370         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
40371         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
40372         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
40373         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
40374         comments about maintainership of GNAT.
40375
40376         PR ada/6919 (forward port of patch for PR ada/5904)
40377         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
40378         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
40379         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
40380         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
40381         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
40382         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
40383         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
40384         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
40385         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
40386         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
40387         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
40388         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
40389         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
40390         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
40391         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
40392         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
40393         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
40394         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
40395         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
40396         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
40397         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
40398         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
40399         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
40400         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
40401         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
40402         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
40403         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
40404         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
40405         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
40406         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
40407         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
40408         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
40409         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
40410         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
40411         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
40412         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
40413         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
40414         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
40415         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
40416         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
40417         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
40418         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
40419         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
40420         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
40421         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
40422         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
40423         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
40424         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
40425         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
40426         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
40427         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
40428         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
40429         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
40430         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
40431         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
40432         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
40433         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
40434         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
40435         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
40436         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
40437         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
40438         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
40439         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
40440         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
40441         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
40442         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
40443         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
40444         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
40445         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
40446         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
40447         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
40448         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
40449         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
40450         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
40451         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
40452         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
40453         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
40454         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
40455         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
40456         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
40457         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
40458         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
40459         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
40460         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
40461         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
40462         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
40463         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
40464         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
40465         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
40466         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
40467         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
40468         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
40469         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
40470         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
40471         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
40472         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
40473         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
40474         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
40475         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
40476         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
40477         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
40478         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
40479         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
40480         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
40481         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
40482         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
40483         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
40484         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
40485         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
40486         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
40487         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
40488         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
40489         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
40490         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
40491         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
40492         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
40493         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
40494         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
40495         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
40496         par-endh.adb par-labl.adb par-load.adb par-prag.adb
40497         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
40498         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
40499         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
40500         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
40501         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
40502         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
40503         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
40504         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
40505         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
40506         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
40507         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
40508         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
40509         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
40510         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
40511         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
40512         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
40513         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
40514         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
40515         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
40516         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
40517         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
40518         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
40519         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
40520         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
40521         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
40522         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
40523         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
40524         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
40525         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
40526         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
40527         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
40528         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
40529         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
40530         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
40531         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
40532         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
40533         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
40534         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
40535         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
40536         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
40537         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
40538         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
40539         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
40540         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
40541         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
40542         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
40543         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
40544         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
40545         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
40546         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
40547         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
40548         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
40549         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
40550         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
40551         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
40552         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
40553         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
40554         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
40555         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
40556         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
40557         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
40558         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
40559         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
40560         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
40561         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
40562         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
40563         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
40564         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
40565         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
40566         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
40567         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
40568         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
40569         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
40570         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
40571         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
40572         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
40573         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
40574         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
40575         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
40576         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
40577         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
40578         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
40579         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
40580         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
40581         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
40582         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
40583         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
40584         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
40585         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
40586         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
40587         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
40588         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
40589         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
40590         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
40591         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
40592         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
40593         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
40594         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
40595         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
40596         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
40597         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
40598         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
40599         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
40600         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
40601         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
40602         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
40603         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
40604         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
40605         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
40606         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
40607         stringt.ads stringt.h style.adb style.ads stylesw.adb
40608         stylesw.ads switch.adb switch.ads sysdep.c system.ads
40609         table.adb table.ads targparm.adb targparm.ads targtyps.c
40610         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
40611         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
40612         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
40613         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
40614         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
40615         usage.ads utils.c utils2.c validsw.adb validsw.ads
40616         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
40617         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
40618         xtreeprs.adb: Correct statements in comments about maintainership
40619         of GNAT.
40620
40621 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
40622
40623         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
40624         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
40625         * gnatvsn.ads: Gnat_Version_String is now a function.
40626         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
40627         copy the C version_string into a String and return it.
40628         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
40629         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
40630         Remove pragma Ident (Gnat_Version_String).  If this was the
40631         sole use of package Gnatvsn, remove the with statement too.
40632         * gnat1drv.adb: Tweak -gnatv output.
40633
40634 2002-09-17  Richard Henderson  <rth@redhat.com>
40635
40636         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
40637         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
40638         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
40639         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
40640         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
40641         and real_2expN instead of a loop.
40642         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
40643         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
40644
40645 2002-08-25  Andre Leis  <a.leis@gmx.net>
40646             David Billinghurst  <David.Billinghurst@riotinto.com>
40647
40648         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
40649
40650 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40651
40652         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
40653         Remove $(CONFIG_H) dependency.
40654
40655 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
40656
40657         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
40658
40659 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
40660
40661         * adadecode.c (ada_demangle): Use xstrdup in lieu of
40662         xmalloc/strcpy.
40663         * misc.c (gnat_decode_option): Likewise.
40664
40665 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
40666
40667         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
40668         function approach did not work well because of a side effect (the
40669         function call could reallocate the table which was being indexed
40670         using its result). Fixes ada/4851. [RESURRECTED]
40671
40672 2002-07-01  Roger Sayle  <roger@eyesopen.com>
40673
40674         * ada/utils.c (builtin_function): Accept an additional parameter.
40675
40676 2002-06-28  Andreas Jaeger  <aj@suse.de>
40677
40678         PR ada/7144
40679         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
40680         <adi@thur.de>.
40681
40682 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
40683
40684         * Makefile.in (SHELL): Set to @SHELL@.
40685
40686 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
40687
40688         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
40689         array size calculation.
40690
40691 2002-06-04  Andreas Jaeger  <aj@suse.de>
40692
40693         * Make-lang.in (gnatbind): Readd rule that has been lost in last
40694         patch.
40695
40696 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
40697
40698         Merge from pch-branch:
40699
40700         * config-lang.in (gtfiles): Add ada-tree.h.
40701         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
40702         (SET_TYPE_MODULUS): New.
40703         (SET_TYPE_INDEX): New.
40704         (SET_TYPE_DIGITS_VALUE): New.
40705         (SET_TYPE_RM_SIZE): New.
40706         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
40707         (SET_TYPE_ADA_SIZE): New.
40708         (SET_TYPE_ACTUAL_BOUNDS): New.
40709         (SET_DECL_CONST_CORRESPONDING_VAR): New.
40710         (SET_DECL_ORIGINAL_FIELD): New.
40711         (TREE_LOOP_ID): Correct typo.
40712         * decl.c: Use new macros.
40713         * utils.c: Include debug.h, use new macros.
40714         * utils2.c: Use new macros.
40715
40716         * ada-tree.h: Update all macros for new tree description.
40717         (struct tree_loop_id): New.
40718         (union lang_tree_node): New.
40719         (struct lang_decl): New.
40720         (struct lang_type): New.
40721         * misc.c (gnat_mark_tree): Delete.
40722         (LANG_HOOKS_MARK_TREE): Delete.
40723         * trans.c (tree_transform): No longer any need to cast
40724         for TREE_LOOP_ID.
40725
40726         * utils.c (struct language_function): New dummy structure.
40727
40728         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
40729         (misc.o): Likewise.
40730         (utils.o): Likewise; also gtype-ada.h.
40731         * Make-lang.in (gnat1): Add dependency on s-gtype.
40732         (gnatbind): Add dependency on $(CONFIG_H).
40733         * utils.c: Correct last #include.
40734         (stuct e_stack): Remove unnecessary 'static'.
40735         (mark_e_stack): Remove unused prototype.
40736
40737         * scn-nlit.adb: Remove whitespace after version number to
40738         keep lines under 80 chars.
40739         * snames.adb: Likewise.
40740         * treepr.ads: Likewise.
40741
40742         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
40743         (misc.o): Likewise.
40744         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
40745         * config-lang.in (gtfiles): New.
40746         * decl.c: Use gengtype for roots.
40747         * gigi.h: Use gengtype for roots.
40748         * trans.c: Use gengtype for roots.
40749         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
40750
40751 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
40752
40753         * misc.c (gnat_init): Adjust setting of internal_error_function.
40754
40755 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
40756
40757         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
40758         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40759         gnat_ug_wnt.texi: Regenerate.
40760
40761 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
40762
40763         * 5ntaprop.adb (with System.OS_Primitives): Remove.
40764
40765         * cstreams.c (max_path_len): Move from here ...
40766         * adaint.c (__gnat_max_path_len): ... to here.
40767         * adaint.c (__gnat_max_path_len): Declare.
40768         * g-dirope.adb (Max_Path): Adjust.
40769         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
40770         * i-cstrea.ads (max_path_len): Adjust.
40771         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
40772         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
40773
40774         * Makefile.in, Make-lang.in: Documentation is now built in
40775         Make-lang.in.  Store Info and generated Texinfo files in the
40776         source directory.
40777         * gnat_ug.texi: Remove CVS keywords, correct version number.
40778         Set file name correctly.
40779
40780         * gnat_ug_*.texi: Add.
40781         * .cvsignore: Ignore generated Texinfo files.
40782
40783 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
40784
40785         * ada.h: Add MI guard macro.
40786         (SUBTYPE): Define constants with an anonymous enum, not static
40787         const variables.
40788         (IN): Cast constants to appropriate type before use.
40789
40790 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
40791
40792         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
40793         (experimental)".
40794
40795 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40796
40797         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
40798         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
40799         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
40800         (ALL_ADA_CFLAGS): Likewise.
40801         (ADA_INCLUDES): Likewise.
40802         Adapt for new working dir.
40803         (GNATBIND): Use Makefile.in version.
40804         (.SUFFIXES): Copy from Makefile.in.
40805         (ada-warn): Define.
40806         (.adb.o, .ads.o): Copy from Makefile.in.
40807         Added $(OUTPUT_OPTION).
40808         (GNAT1_C_OBJS): Moved from Makefile.in.
40809         Prefix with ada subdir.
40810         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
40811         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
40812         Adapt for new working dir.
40813         (EXTRA_GNATBIND_OBJS): Likewise.
40814         (ADA_BACKEND): Moved from Makefile.in.
40815         Renamed to avoid conflict with global BACKEND.
40816         Use that one.
40817         (TARGET_ADA_SRCS): Moved from Makefile.in.
40818         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
40819         Use ADA_BACKEND.
40820         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
40821         (ada_extra_files): Moved from Makefile.in.
40822         Prefix with ada subdir.
40823         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
40824         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
40825         (ada/nmake.ads): Likewise.
40826         (update-sources): Moved from Makefile.in.
40827         Prefix with ada subdir.
40828         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
40829         (ADA_TREE_H): Likewise.
40830         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
40831         (ada/memtrack.o): Likewise.
40832         (ada/adadecode.o): Likewise.
40833         Update dependencies.
40834         (ada/adaint.o): New.
40835         (ada/argv.o): Moved from Makefile.in.
40836         Prefix with ada subdir.
40837         Update dependencies.
40838         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
40839         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
40840         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
40841         Prefix with ada subdir.
40842         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
40843         (GNAT DEPENDENCIES): Regenerate.
40844         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
40845         toplevel Makefile.in.
40846         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
40847         (TARGET_ADA_SRCS): Removed.
40848         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
40849         (GNATBIND_OBJS): Likewise.
40850         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
40851         (BACKEND): Removed.
40852         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
40853         (TREE_H): Likewise.
40854         (ada_extra_files): Likewise.
40855         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
40856         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
40857         (update-sources): Likewise.
40858         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
40859         (ADA_TREE_H): Likewise.
40860         (adadecoce.o): Likewise.
40861         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
40862         (GNAT DEPENDENCIES): Likewise.
40863
40864 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40865
40866         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
40867         * Makefile.in: Likewise.
40868
40869 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40870
40871         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
40872         Restore $(CONFIG_H) and prefix.o dependencies.
40873         (ada.stage[1-4]): Depend on stage?-start.
40874
40875         * Makefile.in (b_gnatb.c): Depend on interfac.o.
40876
40877 2002-05-02  Jim Wilson  <wilson@redhat.com>
40878
40879         * utils.c (finish_record_type): Change record_size to record_type.
40880
40881 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
40882
40883         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
40884         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
40885         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
40886
40887 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
40888
40889         * misc.c (gnat_parse_file): Update.
40890
40891 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
40892
40893         * misc.c (gnat_init): Don't set lang_attribute_common.
40894
40895 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
40896
40897         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
40898
40899 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
40900
40901         * gnat_ug.texi: New file.
40902
40903         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
40904         instead of gfdl.texi
40905
40906         * xgnatug.adb, ug_words: New files.
40907
40908         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
40909         gnat_rm and gnat-style manuals.
40910
40911 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
40912
40913         * gigi.h (incomplete_type_error): Remove.
40914         * utils.c (incomplete_type_error): Remove.
40915
40916 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
40917
40918         * trans.c (tree_transform): Add has_scope argument to
40919         expand_start_stmt_expr.
40920
40921 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
40922
40923         * gigi.h (truthvalue_conversion): Rename.
40924         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
40925         * trans.c (tree_transform): Update.
40926         * utils2.c (truthvalue_conversion): Rename, update.
40927         (build_binary_op, build_unary_op): Update.
40928
40929 2002-04-04  Laurent Guerby  <guerby@acm.org>
40930
40931         * make.adb: Implement -margs, remove restriction about file name placement.
40932         * makeusg.adb: Documentation update.
40933         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
40934         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
40935
40936 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
40937
40938         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
40939         (builtin_function): Similarly.
40940
40941 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
40942
40943         * decl.c (gnat_to_gnu_entity): Update.
40944         * gigi.h (mark_addressable): Rename.
40945         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
40946         * trans.c (tree_transform): Update.
40947         * utils.c (create_var_decl): Update.
40948         * util2.c (build_binary_op, build_unary_op,
40949         fill_vms_descriptor): Update.
40950         (mark_addressable): Rename, update.
40951
40952 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
40953
40954         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
40955         Rename.
40956         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
40957         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
40958         * trans.c (tree_transform, convert_with_check): Update.
40959         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
40960         Rename.
40961
40962 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
40963
40964         * gigi.h (finish_incomplete_decl): Rename.
40965         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
40966         * utils.c (gnat_init_decl_processing): Don't set hook.
40967         (finish_incomplete_decl): Rename.
40968
40969 2002-03-29  Andreas Schwab  <schwab@suse.de>
40970
40971         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
40972         directory.
40973
40974 2001-03-28  Robert Dewar  <dewar@gnat.com>
40975
40976         * checks.ads:
40977         (Remove_Checks): New procedure
40978
40979         * checks.adb:
40980         (Remove_Checks): New procedure
40981
40982         * exp_util.adb:
40983         Use new Duplicate_Subexpr functions
40984         (Duplicate_Subexpr_No_Checks): New procedure
40985         (Duplicate_Subexpr_No_Checks_Orig): New procedure
40986         (Duplicate_Subexpr): Restore original form (checks duplicated)
40987         (Duplicate_Subexpr): Call Remove_Checks
40988
40989         * exp_util.ads:
40990         (Duplicate_Subexpr_No_Checks): New procedure
40991         (Duplicate_Subexpr_No_Checks_Orig): New procedure
40992         Add 2002 to copyright notice
40993
40994         * sem_util.adb: Use new Duplicate_Subexpr functions
40995
40996         * sem_eval.adb:
40997         (Eval_Indexed_Component): This is the place to call
40998         Constant_Array_Ref and to replace the value. We simply merge
40999         the code of this function in here, since it is now no longer
41000         used elsewhere. This fixes the problem of the back end not
41001         realizing we were clever enough to see that this was
41002         constant.
41003         (Expr_Val): Remove call to Constant_Array_Ref
41004         (Expr_Rep_Val): Remove call to Constant_Array_Ref
41005         Minor reformatting
41006         (Constant_Array_Ref): Deal with string literals (patch
41007         suggested by Zack Weinberg on the gcc list)
41008
41009 2001-03-28  Ed Schonberg  <schonber@gnat.com>
41010
41011         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
41012         Duplicate_Subexpr_Move_Checks.
41013
41014         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
41015         Duplicate_Subexpr_Move_Checks.
41016
41017         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
41018         value of array exists before retrieving it (it may a private
41019         protected component in a function).
41020
41021 2002-03-28   Geert Bosch  <bosch@gnat.com>
41022
41023         * prj-pp.adb : New file.
41024
41025         * prj-pp.ads : New file.
41026
41027 2002-03-28  Andreas Jaeger  <aj@suse.de>
41028
41029         * Makefile.in (stamp-sdefault): Fix path for Makefile.
41030
41031 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
41032
41033         * misc.c (gnat_expand_expr): Move prototype.
41034
41035 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
41036
41037         * misc.c (insert_default_attributes): Remove.
41038
41039 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
41040
41041         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
41042         (gnat_init): Don't set hook.
41043         (gnat_expand_expr): Fix prototype.
41044
41045 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
41046
41047         * misc.c (ggc_p): Remove.
41048
41049 2002-03-27  Geert Bosch  <bosch@gnat.com>
41050
41051         * prj-makr.ads, prj-makr.adb : New files.
41052
41053 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
41054
41055         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
41056         (lang_mark_tree): Make static, rename.
41057
41058 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
41059
41060         * misc.c (maybe_build_cleanup): Remove.
41061
41062 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
41063
41064         * gigi.h (yyparse): Remove.
41065
41066 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
41067
41068         From Ben Brosgol  <brosgol@gnat.com>
41069         * gnat_rm.texi: Sync with ACT version.
41070
41071 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
41072
41073         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
41074         (gnat_init): Remove old hook.
41075
41076 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
41077
41078         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
41079         (yyparse): Rename gnat_parse_file.
41080
41081 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
41082
41083         Delete all lines containing "$Revision:".
41084         * xeinfo.adb: Don't look for revision numbers.
41085         * xnmake.adb: Likewise.
41086         * xsinfo.adb: Likewise.
41087         * xsnames.adb: Likewise.
41088         * xtreeprs.adb: Likewise.
41089
41090 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
41091
41092         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
41093         gnat_tree_code_name): Delete.
41094         (tree_code_type, tree_code_length, tree_code_name): Define.
41095         (gnat_init): Don't try to copy into the various tree_code
41096         arrays.
41097
41098 2002-03-11  Richard Henderson  <rth@redhat.com>
41099
41100         * Makefile.in (.NOTPARALLEL): Add fake tag.
41101
41102 2002-03-07  Geert Bosch  <bosch@gnat.com>
41103
41104         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
41105         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
41106         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
41107         switch-m.adb, switch-m.ads : New files.
41108
41109 2002-03-07  Geert Bosch  <bosch@gnat.com>
41110
41111         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
41112         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
41113         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
41114         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
41115         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
41116         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
41117         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
41118         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
41119         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
41120         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
41121         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
41122         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
41123         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
41124         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
41125         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
41126         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
41127         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
41128         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
41129         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
41130         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
41131         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
41132         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
41133         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
41134         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
41135         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
41136         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
41137         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
41138         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
41139         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
41140         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
41141         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
41142         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
41143         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
41144         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
41145         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
41146         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
41147         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
41148         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
41149         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
41150         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
41151         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
41152         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
41153         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
41154         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
41155         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
41156         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
41157         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
41158         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
41159         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
41160         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
41161         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
41162         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
41163         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
41164         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
41165         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
41166         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
41167         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
41168         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
41169         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
41170         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
41171         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
41172         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
41173         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
41174         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
41175         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
41176         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
41177         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
41178         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
41179         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
41180         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
41181         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
41182         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
41183         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
41184         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
41185         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
41186         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
41187         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
41188         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
41189         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
41190         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
41191         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
41192         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
41193         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
41194         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
41195         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
41196         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
41197         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
41198         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
41199         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
41200         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
41201         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
41202         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
41203         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
41204         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
41205         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
41206         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
41207         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
41208
41209         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
41210         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
41211         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
41212         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
41213
41214         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
41215         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
41216
41217         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
41218         to mdll-fil.ad[bs] and mdll-util.ad[bs]
41219
41220         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
41221         from mdllfile.ad[bs] and mdlltool.ad[bs]
41222
41223 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
41224
41225         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
41226         lieu of explicit sizeof/sizeof.
41227
41228 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
41229
41230         * misc.c (copy_lang_decl): Remove.
41231
41232 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
41233
41234         * misc.c: Delete traditional-mode-related code copied from the
41235         C front end but not used, or used only to permit the compiler
41236         to link.
41237
41238 2002-02-07  Richard Henderson  <rth@redhat.com>
41239
41240         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
41241         * adaint.h (__gnat_to_gm_time): Update prototype.
41242
41243 2002-01-30  Richard Henderson  <rth@redhat.com>
41244
41245         * trans.c (tree_transform) [N_Loop_Statement]: Use
41246         expand_exit_loop_top_cond.
41247
41248 2001-12-23  Richard Henderson  <rth@redhat.com>
41249
41250         * utils.c (end_subprog_body): Push GC context around
41251         rest_of_compilation for nested functions.
41252
41253 2001-12-23  Richard Henderson  <rth@redhat.com>
41254
41255         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
41256
41257 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
41258
41259         * gnat-style.texi (Declarations and Types): Remove ancient style
41260         rule which was mandated by code generation issues.
41261
41262         * gnat-style.texi (header): Add @dircategory, @direntry.
41263         (title page): Remove date.
41264         (general) Add @./@: where approriate, and two spaces after the
41265         full stop at the end of a sentence.  Use @samp markup when
41266         referring concrete lexical entities (keywords, attribute names
41267         etc.), and @syntax for ARM grammar elements. Use @r for English
41268         text in comments.  Use @emph for emphasis.  Change "if-statements"
41269         etc. to "if statements" (without @samp). Break long lines.  Make
41270         casing of section names consistent.
41271         (Identifiers): Use @samp markup for variable names.
41272         (Comments): Use @samp markup for comment characters. Line-end
41273         comments may follow any Ada code, not just statements.  Fix
41274         misspelling of "Integer" as "integer".
41275         (Loop statements): Do not use variable name "I", use "J".
41276         (Subprogram Declarations): Document alignment.
41277         (Subprogram Bodies, Block statements): Document empty line before
41278         "begin".
41279
41280 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
41281
41282         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
41283         function approach did not work well because of a side effect (the
41284         function call could reallocate the table which was being indexed
41285         using its result). Fixes ada/4851.
41286
41287 2001-12-19  Robert Dewar  <dewar@gnat.com>
41288
41289         * bindgen.adb: Minor reformatting
41290
41291         * cstand.adb: Minor reformatting
41292
41293         * fmap.adb: Minor reformatting
41294         Change name from Add for Add_To_File_Map (Add is much too generic)
41295         Change Path_Name_Of to Mapped_Path_Name
41296         Change File_Name_Of to Mapped_File_Name
41297         Fix copyright dates in header
41298
41299         * fmap.ads:
41300         Change name from Add for Add_To_File_Map (Add is much too generic)
41301         Change Path_Name_Of to Mapped_Path_Name
41302         Change File_Name_Of to Mapped_File_Name
41303         Fix copyright dates in header
41304
41305         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
41306         Add use clause for Fmap.
41307
41308         * make.adb: Minor reformatting
41309
41310         * osint.adb: Minor reformatting.  Change of names in Fmap.
41311         Add use clause for Fmap.
41312
41313         * prj-env.adb: Minor reformatting
41314
41315         * prj-env.ads: Minor reformatting
41316
41317         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
41318         error found (there were odd exceptions to this general rule in
41319         -gnatec/-gnatem processing)
41320
41321 2001-12-19  Olivier Hainque  <hainque@gnat.com>
41322
41323         * raise.c (__gnat_eh_personality): Exception handling personality
41324         routine for Ada.  Still in rough state, inspired from the C++ version
41325         and still containing a bunch of debugging artifacts.
41326         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
41327         inspired from the C++ library.
41328
41329         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
41330         exception handling integration.
41331
41332 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
41333
41334         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
41335         (HIE_SOURCES): Add s-secsta.ad{s,b}.
41336         (HIE_OBJS): Add s-fat*.o
41337         (RAVEN_SOURCES): Remove files that are no longer required. Add
41338         interrupt handling files.
41339         (RAVEN_MOD): Removed, no longer needed.
41340
41341 2001-12-19  Robert Dewar  <dewar@gnat.com>
41342
41343         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
41344         Add 2001 to copyright date
41345
41346         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
41347         need to force universal inlining for these cases.
41348
41349 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
41350
41351         * s-taprob.adb: Minor clean ups so that this unit can be used in
41352         Ravenscar HI.
41353
41354         * exp_ch7.adb: Allow use of secondary stack in HI mode.
41355         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
41356
41357 2001-12-19  Vincent Celier  <celier@gnat.com>
41358
41359         * prj-tree.ads (Project_Node_Record): Add comments for components
41360         Pkg_Id and Case_Insensitive.
41361
41362 2001-12-19  Pascal Obry  <obry@gnat.com>
41363
41364         * g-socket.adb: Minor reformatting. Found while reading code.
41365
41366 2001-12-19  Robert Dewar  <dewar@gnat.com>
41367
41368         * prj-tree.ads: Minor reformatting
41369
41370 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
41371
41372         * config-lang.in (diff_excludes): Remove.
41373
41374 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41375
41376         * sem_res.adb (Resolve_Selected_Component): do not generate a
41377         discriminant check if the selected component is a component of
41378         the argument of an initialization procedure.
41379
41380         * trans.c (tree_transform, case of arithmetic operators): If result
41381         type is private, the gnu_type is the base type of the full view,
41382         given that the full view itself may be a subtype.
41383
41384 2001-12-17  Robert Dewar  <dewar@gnat.com>
41385
41386         * sem_res.adb: Minor reformatting
41387
41388         * trans.c (tree_transform, case N_Real_Literal): Add missing third
41389         parameter in call to Machine (unknown horrible effects from this
41390         omission).
41391
41392         * urealp.h: Add definition of Round_Even for call to Machine
41393         Add third parameter for Machine
41394
41395 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41396
41397         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
41398         predefined units in No_Run_Time mode.
41399
41400 2001-12-17  Richard Kenner  <kenner@gnat.com>
41401
41402         * misc.c (insn-codes.h): Now include.
41403
41404 2001-12-17  Olivier Hainque  <hainque@gnat.com>
41405
41406         * a-except.adb: Preparation work for future integration of the GCC 3
41407         exception handling mechanism
41408         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
41409         to factorize previous code sequences and make them externally callable,
41410         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
41411         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
41412         Use the new notification routines.
41413
41414 2001-12-17  Emmanuel Briot  <briot@gnat.com>
41415
41416         * prj-tree.ads (First_Choice_Of): Document the when others case
41417
41418 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
41419
41420         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
41421         HI-E mode, in order to support Ravenscar profile properly.
41422
41423         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
41424         mode on 32 bits targets.
41425
41426 2001-12-17  Vincent Celier  <celier@gnat.com>
41427
41428         * fmap.adb: Initial version.
41429
41430         * fmap.ads: Initial version.
41431
41432         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
41433         If search is successfully done, add to mapping.
41434
41435         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
41436
41437         * make.adb:
41438         (Gnatmake): Add new local variable Mapping_File_Name.
41439          Create mapping file when using project file(s).
41440          Delete mapping file before exiting.
41441
41442         * opt.ads (Mapping_File_Name): New variable
41443
41444         * osint.adb (Find_File): Use path name found in mapping, if any.
41445
41446         * prj-env.adb (Create_Mapping_File): New procedure
41447
41448         * prj-env.ads (Create_Mapping_File): New procedure.
41449
41450         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
41451         (Mapping_File)
41452
41453         * usage.adb: Add entry for new switch -gnatem.
41454
41455         * Makefile.in: Add dependencies for fmap.o.
41456
41457 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41458
41459         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
41460         is a package instantiation rewritten as a package body.
41461         (Install_Withed_Unit): Undo previous change, now redundant.
41462
41463 2001-12-17  Gary Dismuke  <dismukes@gnat.com>
41464
41465         * layout.adb:
41466         (Compute_Length): Move conversion to Unsigned to callers.
41467         (Get_Max_Size): Convert Len expression to Unsigned after calls to
41468         Compute_Length and Determine_Range.
41469         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
41470         Compute_Length and Determine_Range.
41471         Above changes fix problem with length computation for supernull arrays
41472         where Max (Len, 0) wasn't getting applied due to the Unsigned
41473         conversion used by Compute_Length.
41474
41475 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
41476
41477         * rtsfind.ads:
41478         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
41479          System.Secondary_Stack.
41480         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
41481          in HI-E mode.
41482         Remove unused entity RE_Exception_Data.
41483
41484         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
41485
41486         * rident.ads (No_Secondary_Stack): New restriction.
41487
41488 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
41489
41490         * gnat_rm.texi: Fix minor typos. Found while reading the section
41491         regarding "Bit_Order Clauses" that was sent to a customer.
41492         Very interesting documentation!
41493
41494 2001-12-17  Robert Dewar  <dewar@gnat.com>
41495
41496         * sem_case.adb (Choice_Image): Avoid creating improper character
41497         literal names by using the routine Set_Character_Literal_Name. This
41498         fixes bombs in certain error message cases.
41499
41500 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
41501
41502         * a-reatim.adb: Minor reformatting.
41503
41504 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41505
41506         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
41507         case where the formal is an extension of another formal in the current
41508         unit or in a parent generic unit.
41509
41510 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
41511
41512         * s-tposen.adb: Update comments.  Minor reformatting.
41513         Minor code clean up.
41514
41515         * s-tarest.adb: Update comments.  Minor code reorganization.
41516
41517 2001-12-17  Gary Dismukes  <dismukes@gnat.com>
41518
41519         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
41520         when Java_VM.
41521
41522 2001-12-17  Robert Dewa  <dewar@gnat.com>
41523
41524         * exp_attr.adb: Minor reformatting
41525
41526 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41527
41528         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
41529         derivations nested within a child unit: verify that the parent
41530         type is declared in an outer scope.
41531
41532 2001-12-17  Robert Dewar  <dewar@gnat.com>
41533
41534         * sem_ch12.adb: Minor reformatting
41535
41536 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41537
41538         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
41539         warning if current unit is a predefined one, from which bodies may
41540         have been deleted.
41541
41542 2001-12-17  Robert Dewar  <dewar@gnat.com>
41543
41544         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
41545         Fix header format. Add 2001 to copyright date.
41546
41547         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
41548         which caused CE during compilation if checks were enabled.
41549
41550 2001-12-17  Vincent Celier  <celier@gnat.com>
41551
41552         * make.adb:
41553         (Switches_Of): New function
41554         (Test_If_Relative_Path): New procedure
41555         (Add_Switches): Use new function Switches_Of
41556         (Collect_Arguments_And_Compile): Use new function Switches_Of.
41557         When using a project file, test if there are any relative
41558         search path. Fail if there are any.
41559         (Gnatmake): Only add switches for the primary directory when not using
41560         a project file. When using a project file, change directory to the
41561         object directory of the main project file. When using a project file,
41562         test if there are any relative search path. Fail if there are any.
41563         When using a project file, fail if specified executable is relative
41564         path with directory information, and prepend executable, if not
41565         specified as an absolute path, with the exec directory.  Make sure
41566         that only one -o switch is transmitted to the linker.
41567
41568         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
41569
41570         * prj-nmsc.adb:
41571         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
41572         when using a non standard naming scheme.
41573         (Check_Ada_Naming_Scheme): Make sure that error messages
41574         do not raise exceptions.
41575         (Is_Illegal_Append): Return True if there is no dot in the suffix.
41576         (Language_Independent_Check): Check the exec directory.
41577
41578         * prj.adb (Project_Empty): Add new component Exec_Directory
41579
41580         * prj.ads:
41581         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
41582         (Project_Data): Add component Exec_Directory
41583
41584         * snames.adb: Updated to match snames.ads revision 1.215
41585
41586         * snames.ads: Added Exec_Dir
41587
41588 2001-12-17  Robert Dewar  <dewar@gnat.com>
41589
41590         * make.adb: Minor reformatting
41591
41592         * prj-nmsc.adb: Minor reformatting
41593
41594         * snames.adb: Updated to match snames.ads
41595
41596         * snames.ads: Alphebetize entries for project file
41597
41598 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41599
41600         * trans.c (process_freeze_entity): Do nothing if the entity is a
41601         subprogram that was already elaborated.
41602
41603 2001-12-17  Richard Kenner  <kenner@gnat.com>
41604
41605         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
41606         and Esize if object is referenced via pointer.
41607
41608 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41609
41610         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
41611         is discrete before analyzing choices.
41612
41613 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
41614
41615         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
41616         containing the name of the Ada Main Program. This string is mainly
41617         intended for the debugger.
41618         (Gen_Output_File_C): Do the equivalent change when generating a C file.
41619
41620 2001-12-17  Robert Dewar  <dewar@gnat.com>
41621
41622         * ali.adb: Set new Dummy_Entry field in dependency entry
41623
41624         * ali.ads: Add Dummy_Entry field to source dependency table
41625
41626         * bcheck.adb (Check_Consistency): Ignore dummy D lines
41627
41628         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
41629
41630         * lib-writ.ads: Document dummy D lines for missing files.
41631
41632         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
41633
41634 2001-12-17  Robert Dewar  <dewar@gnat.com>
41635
41636         * ali.adb: Type reference does not reset current file.
41637
41638         * ali.adb: Recognize and scan renaming reference
41639
41640         * ali.ads: Add spec for storing renaming references.
41641
41642         * lib-xref.ads: Add documentation for handling of renaming references
41643
41644         * lib-xref.adb: Implement output of renaming reference.
41645
41646         * checks.adb:
41647         (Determine_Range): Document local variables
41648         (Determine_Range): Make sure Hbound is initialized. It looks as though
41649          there could be a real problem here with an uninitialized reference
41650          to Hbound, but no actual example of failure has been found.
41651
41652 2001-12-17  Laurent Pautet  <pautet@gnat.com>
41653
41654         * g-socket.ads:
41655         Fix comment of Shutdown_Socket and Close_Socket. These functions
41656         should not fail silently because if they are called twice, this
41657         probably means that there is a race condition in the user program.
41658         Anyway, this behaviour is consistent with the rest of this unit.
41659         When an error occurs, an exception is raised with the error message
41660         as exception message.
41661
41662 2001-12-17  Robert Dewar  <dewar@gnat.com>
41663
41664         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
41665         that it happens before modification of Sloc values for -gnatD.
41666
41667         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
41668         so that it happens before modification of Sloc values for -gnatD.
41669
41670         * switch.adb: Minor reformatting
41671
41672 2001-12-15  Richard Henderson  <rth@redhat.com>
41673
41674         * sem_ch7.adb: Wrap comment.
41675
41676 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
41677
41678         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
41679         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
41680         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
41681         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
41682         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
41683         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
41684         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
41685         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
41686         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
41687         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
41688         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
41689         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
41690         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
41691         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
41692         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
41693         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
41694         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
41695         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
41696         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
41697         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
41698         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
41699         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
41700         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
41701         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
41702         spelling errors.
41703
41704 2001-12-14  Vincent Celier  <celier@gnat.com>
41705
41706         * osint.adb(Create_Debug_File): When an object file is specified,
41707         put the .dg file in the same directory as the object file.
41708
41709 2001-12-14  Robert Dewar  <dewar@gnat.com>
41710
41711         * osint.adb: Minor reformatting
41712
41713         * lib-xref.adb (Output_Instantiation): New procedure to generate
41714         instantiation references.
41715
41716         * lib-xref.ads: Add documentation of handling of generic references.
41717
41718         * ali.adb (Read_Instantiation_Ref): New procedure to read
41719         instantiation references
41720
41721         * ali.ads: Add spec for storing instantiation references
41722
41723         * bindusg.adb: Minor reformatting
41724
41725         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41726
41727         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41728
41729         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41730
41731         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41732
41733         * csets.ads:
41734         Fix header format
41735         Add 2001 to copyright date
41736         Add entry for Latin-5 (Cyrillic ISO-8859-5)
41737
41738 2001-12-14  Matt Gingell  <gingell@gnat.com>
41739
41740         * adaint.c: mktemp is a macro on Lynx and can not be used as an
41741         expression.
41742
41743 2001-12-14  Richard Kenner  <kenner@gnat.com>
41744
41745         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
41746         if operand is CONSTRUCTOR.
41747
41748 2001-12-14  Ed Schonberg  <schonber@gnat.com>
41749
41750         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
41751         before emiting check on right-hand side, so that exception information
41752         is correct.
41753
41754 2001-12-14  Richard Kenner  <kenner@gnat.com>
41755
41756         * utils.c (create_var_decl): Throw away initializing expression
41757         if just annotating types and non-constant.
41758
41759 2001-12-14  Vincent Celier  <celier@gnat.com>
41760
41761         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
41762         Default_Ada_...
41763
41764         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
41765         Remove functions.
41766         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
41767
41768         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
41769         Remove functions.
41770         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
41771
41772 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
41773
41774         * ChangeLog: Remove piece of diff output.
41775
41776 2001-12-14  Geert Bosch  <bosch@gnat.com>
41777
41778         * config-lang.in: Update copyright notice
41779
41780         * layout.adb: Remove commented out code.
41781
41782         * mdllfile.ads: Update copyright notice. Fix header format.
41783
41784         * sem_case.ads: Likewise.
41785
41786         * sem_ch3.adb: Minor reformatting.
41787
41788 2001-12-12  Geert Bosch  <bosch@gnat.com>
41789
41790         * freeze.ads: Update copyright date.
41791
41792         * g-comlin.ads: Minor reformatting.
41793
41794         * gnat-style.texi: Fix typo.
41795
41796 2001-12-12  Geert Bosch  <bosch@gnat.com>
41797
41798         *  einfo.h: Regenerate.
41799
41800 2001-12-12  Ed Schonberg  <schonber@gnat.com>
41801
41802         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
41803         on known node types, rather than untyped fields. Further cleanups.
41804
41805 2001-12-12  Robert Dewar  <dewar@gnat.com>
41806
41807         * sem_ch12.adb:
41808         (Save_Entity_Descendant): Minor comment update.
41809         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
41810          of an N_Attribute_Reference node. As per note below, this does not
41811         eliminate need for Associated_Node in attribute ref nodes.
41812         (Associated_Node): Documentation explicitly mentions attribute
41813         reference nodes, since this field is used in such nodes.
41814
41815         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
41816
41817 2001-12-12  Robert Dewar  <dewar@gnat.com>
41818
41819         * s-stalib.adb: Add more comments on with statements being needed
41820
41821         * par-ch12.adb: Minor reformatting
41822
41823         * prj-dect.ads: Fix copyright header
41824
41825         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
41826         inputs fit in 32 bits, but the result still overflows.
41827
41828         * s-fatgen.ads: Minor comment improvement
41829
41830 2001-12-12  Ed Schonberg  <schonber@gnat.com>
41831
41832         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
41833         formal derived type, look for an inherited component from the full
41834         view of the parent, if any.
41835
41836 2001-12-12  Robert Dewar  <dewar@gnat.com>
41837
41838         * checks.ads (Apply_Alignment_Check): New procedure.
41839
41840         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
41841         ensure that the alignment of objects with address clauses is
41842         appropriate, and raise PE if not.
41843
41844         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
41845         Exp_Pakd.Known_Aligned_Enough
41846
41847         * mdllfile.ads: Minor reformatting
41848
41849         * mlib-fil.ads: Minor reformatting
41850
41851 2001-12-12  Ed Schonberg  <schonber@gnat.com>
41852
41853         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
41854         fix to any component reference if enclosing record has non-standard
41855         representation.
41856
41857 2001-12-12  Vincent Celier  <celier@gnat.com>
41858
41859         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
41860         Iteration
41861
41862 2001-12-12  Ed Schonberg  <schonber@gnat.com>
41863
41864         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
41865         sem_attr.
41866
41867 2001-12-12  Robert Dewar  <dewar@gnat.com>
41868
41869         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
41870
41871 2001-12-12  Emmanuel Briot  <briot@gnat.com>
41872
41873         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
41874         and it adds dependencies to system.io.
41875
41876 2001-12-12  Pascal Obry  <obry@gnat.com>
41877
41878         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
41879         variable name.
41880
41881 2001-12-11  Ed Schonberg  <schonber@gnat.com>
41882
41883         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
41884         that is the parent of other generics, the instance body replaces the
41885         instance node.  Retrieve the instance of the spec, which is the one
41886         that is visible in clients and within the body.
41887
41888 2001-12-11  Vincent Celier  <celier@gnat.com>
41889
41890         * gnatmain.adb: Initial version.
41891
41892         * gnatmain.ads: Initial version.
41893
41894         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
41895
41896         * snames.adb: Updated to match snames.ads.
41897
41898         * snames.ads: Added Gnatstub.
41899
41900 2001-12-11  Vincent Celier  <celier@gnat.com>
41901
41902         * prj-attr.adb (Initialization_Data): Change name from
41903         Initialisation_Data.
41904
41905 2001-12-11  Emmanuel Briot  <briot@gnat.com>
41906
41907         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
41908         + and * applied to backslashed expressions like \r.
41909
41910 2001-12-11  Vasiliy Fofanov  <fofanov@gnat.com>
41911
41912         * g-os_lib.ads: String_List type added, Argument_List type is now
41913         subtype of String_List.
41914
41915 2001-12-11  Robert Dewar  <dewar@gnat.com>
41916
41917         * g-os_lib.ads: Change copyright to FSF
41918         Add comments for String_List type
41919
41920 2001-12-11  Vincent Celier  <celier@gnat.com>
41921
41922         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
41923         string to the buffer).
41924
41925 2001-12-11  Ed Schonberg  <schonber@gnat.com>
41926
41927         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
41928         sem_attr.
41929
41930         * sem_attr.adb: Simplify previous fix for Address.
41931         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
41932         to avoid anomalies where the bound of the type appears to raise
41933         constraint error.
41934
41935 2001-12-11  Robert Dewar  <dewar@gnat.com>
41936
41937         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
41938         handled.
41939
41940 2001-12-11  Ed Schonber   <schonber@gnat.com>
41941
41942         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
41943         renamed unit before checking for recursive instantiations.
41944
41945 2001-12-11  Emmanuel Briot  <briot@gnat.com>
41946
41947         * prj.ads: Add comments for some of the fields.
41948
41949 2001-12-11  Robert Dewar  <dewar@gnat.com>
41950
41951         * lib-xref.adb (Output_Refs): Don't output type references outside
41952         the main unit if they are not otherwise referenced.
41953
41954 2001-12-11  Ed Schonberg  <schonber@gnat.com>
41955
41956         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
41957         code and diagnose additional illegal uses
41958
41959         * sem_util.adb (Is_Object_Reference): An indexed component is an
41960         object only if the prefix is.
41961
41962 2001-12-11  Vincent Celier  <celier@gnat.com>
41963
41964         * g-diopit.adb: Initial version.
41965
41966         * g-diopit.ads: Initial version.
41967
41968         * g-dirope.adb:
41969         (Expand_Path): Avoid use of Unbounded_String
41970         (Find, Wildcard_Iterator): Moved to child package Iteration
41971
41972         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
41973
41974 2001-12-11  Robert Dewar  <dewar@gnat.com>
41975
41976         * sem_attr.adb: Minor reformatting
41977
41978 2001-12-11  Ed Schonberg  <schonber@gnat.com>
41979
41980         * sem_ch3.adb: Clarify some ???.
41981
41982 2001-12-11  Robert Dewar  <dewar@gnat.com>
41983
41984         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
41985         Exp_Pakd.Known_Aligned_Enough
41986
41987         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
41988         version is moved to Exp_Ch13.
41989
41990 2001-12-11  Robert Dewar  <dewar@gnat.com>
41991
41992         * einfo.ads: Minor reformatting
41993
41994         * exp_ch5.adb: Add comment for previous.change
41995
41996         * ali.adb: New interface for extended typeref stuff.
41997
41998         * ali.ads: New interface for typeref stuff.
41999
42000         * checks.adb (Apply_Alignment_Check): New procedure.
42001
42002         * debug.adb: Add -gnatdM for modified ALI output
42003
42004         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
42005
42006         * lib-xref.adb: Extend generation of <..> notation to cover
42007         subtype/object types. Note that this is a complete rewrite,
42008         getting rid of the very nasty quadratic algorithm previously
42009         used for derived type output.
42010
42011         * lib-xref.ads: Extend description of <..> notation to cover
42012         subtype/object types. Uses {..} for these other cases.
42013         Also use (..) for pointer types.
42014
42015         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
42016
42017         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
42018         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
42019
42020 2001-12-11  Vincent Celier  <celier@gnat.com>
42021
42022         * gnatcmd.adb:
42023         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
42024         Changed /BIND_ONLY to /ACTIONS=BIND
42025         Changed /LINK_ONLY to /ACTIONS=LINK
42026
42027 2001-12-11  Ed Schonberg  <schonber@gnat.com>
42028
42029         * sem_ch8.adb (Find_Selected_Component): improved search for a
42030         candidate package in case of error.
42031
42032         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
42033         chain back on scope stack before reinstalling use clauses.
42034
42035         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
42036         is enabled, do not kill the code for the condition, to preserve
42037         warning.
42038
42039 2001-12-11  Robert Dewar  <dewar@gnat.com>
42040
42041         * checks.adb (Insert_Valid_Check): Apply validity check to expression
42042         of conversion, not to result of conversion.
42043
42044 2001-12-11  Ed Schonberg  <schonber@gnat.com>
42045
42046         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
42047         before freezing parent. If the declarations are mutually recursive,
42048         an access to the current record type may be frozen before the
42049         derivation is complete.
42050
42051 2001-12-05  Vincent Celier  <celier@gnat.com>
42052
42053         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
42054         -c /COMPILE_ONLY, -l /LINK_ONLY
42055
42056         * opt.ads:
42057         (Bind_Only): New Flag
42058         (Link_Only): New flag
42059
42060         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
42061         and -l (Link_Only)
42062
42063         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
42064
42065         * make.adb:
42066         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
42067         (Gnatmake): Set the step flags. Only perform a step if the
42068         corresponding step flag is True.
42069         (Scan_Make_Arg): Reset the bind and link step flags when -u
42070         or -gnatc has been specified.
42071
42072 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42073
42074         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
42075         get bounds from right operand.
42076
42077         * sem_eval.adb: Minor reformatting
42078
42079         * exp_util.adb (Make_Literal_Range): use bound of literal rather
42080         than Index'First, its lower bound may be different from 1.
42081
42082         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
42083         and C48009J
42084
42085 2001-12-05  Vincent Celier  <celier@gnat.com>
42086
42087         * prj-nmsc.adb Minor reformatting
42088
42089         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
42090         set and libraries are not supported.
42091
42092 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42093
42094         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
42095         private view explicitly, so the back-end can treat as a global
42096         when appropriate.
42097
42098 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42099
42100         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
42101          unit, always replace instance node with new body, for ASIS use.
42102
42103 2001-12-05  Vincent Celier  <celier@gnat.com>
42104
42105         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
42106         libraries are not supported and both attributes Library_Name and
42107         Library_Dir are specified.
42108
42109         * prj-proc.adb (Expression): Set location of Result to location of
42110         first term.
42111
42112         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
42113         (prj-nmsc is now importing MLib.Tgt)
42114
42115         * prj-proc.adb: Put the change indicated above that was forgotten.
42116
42117 2001-12-05  Robert Dewar  <dewar@gnat.com>
42118
42119         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
42120
42121 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42122
42123         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
42124         constraint, introduce explicit subtype declaration and derive from it.
42125
42126         * sem_ch3.adb: Minor reformatting
42127
42128 2001-12-05  Robert Dewar  <dewar@gnat.com>
42129
42130         * checks.adb (Determine_Range): Increase cache size for checks.
42131         Minor reformatting
42132
42133         * exp_ch6.adb: Minor reformatting
42134         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
42135         a parameter whose root type is System.Address, since treating such
42136         subprograms as pure in the code generator is almost surely a mistake
42137         that will lead to unexpected results.
42138
42139         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
42140         change handling of conversions.
42141
42142         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
42143
42144 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42145
42146         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
42147         aggregate with static wrong size, attach generated Raise node to
42148         declaration.
42149
42150 2001-12-05  Robert Dewar  <dewar@gnat.com>
42151
42152         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
42153         Fixes compilation abandoned bomb in B24009B.
42154
42155 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42156
42157         * sem_ch12.adb:
42158         Document use of Associated_Node on Selected_Components.
42159         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
42160         to clarify use of untyped descendant fields.
42161
42162 2001-12-05  Robert Dewar  <dewar@gnat.com>
42163
42164         * prj-dect.ads: Add ??? comment
42165         Add 2001 to copyright notice (was not done in after all)
42166
42167         * prj-part.adb: Minor reformatting. Reword one awkward error message.
42168
42169         * prj.ads: Minor reformatting throughout, and add some ??? comments
42170
42171         * snames.ads: Minor reformatting
42172
42173 2001-12-05  Geert Bosch  <bosch@gnat.com>
42174
42175         * snames.adb: Autoupdate
42176
42177 2001-12-05  Vincent Celier  <celier@gnat.com>
42178
42179         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
42180
42181         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
42182
42183         * prj-env.adb: Minor comment changes (modifying -> extends).
42184
42185         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
42186
42187         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
42188         Tok_Extends.
42189
42190         * prj.adb (Initialize): Change Modifying to Extends.
42191
42192         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
42193
42194         * prj.ads: Minor comment change (Modifying -> extending).
42195
42196         * snames.ads: Change modifying to extends.
42197
42198 2001-12-05  Robert Dewar  <dewar@gnat.com>
42199
42200         * sem_warn.adb: Remove stuff for conditionals, we are not going to
42201         do this after all.
42202
42203         * sem_warn.ads: Remove stuff for conditionals, we are not going to
42204         do this after all.  Add 2001 to copyright notice
42205
42206 2001-12-04  Geert Bosch  <bosch@gnat.com>
42207
42208         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
42209
42210 2001-12-04  Robert Dewar  <dewar@gnat.com>
42211
42212         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
42213         location if we already have errors. Stops some cases of cascaded
42214         errors.
42215
42216         * errout.adb: Improve comment.
42217
42218 2001-12-04  Robert Dewar  <dewar@gnat.com>
42219
42220         * sem_ch12.adb:
42221         (Analyze_Formal_Type_Definition): Defend against Error.
42222         (Analyze_Formal_Subprogram): Defend against Error.
42223
42224         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
42225         remove following semicolon if present. Removes cascaded error.
42226
42227 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
42228
42229         * bindgen.adb:
42230         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
42231          exceptions equals 0.
42232         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
42233         Fixes PIWG E tests (which have to be run with -gnatL).
42234
42235 2001-12-04  Robert Dewar  <dewar@gnat.com>
42236
42237         * einfo.ads: Minor reformatting
42238
42239 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42240
42241         * einfo.ads: Block_Node points to the identifier of the block, not to
42242         the block node itself, to preserve the link when the block is
42243         rewritten, e.g. within an if-statement with a static condition.
42244
42245         * inline.adb (Cleanup_Scopes): recover block statement from block
42246         entity using new meaning of Block_Node.
42247
42248         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
42249         identifier of block node, rather than to node itself.
42250
42251 2001-12-04  Gary Dismukes  <dismukes@gnat.com>
42252
42253         * layout.adb:
42254         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
42255         (Discrimify): Go back to setting the Etypes of the selected component
42256         because the Vname component does not exist at this point and will
42257         fail name resolution. Also set Analyzed.
42258         Remove with and use of Sem_Res.
42259
42260 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
42261
42262         * Makefile.in: (HIE_SOURCES): add s-fat*.
42263
42264 2001-12-04  Robert Dewar  <dewar@gnat.com>
42265
42266         * sem_attr.adb:
42267         (Compile_Time_Known_Attribute): New procedure.
42268         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
42269          proper range check.
42270
42271 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42272
42273         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
42274         processing discriminants to diagnose illegal default values.
42275
42276 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42277
42278         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
42279         access discriminant within a type extension that constrains its
42280         parent discriminants.
42281
42282 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42283
42284         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
42285         is malformed, use instance of Any_Id to allow analysis to proceed.
42286
42287         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
42288         type definition is illegal.
42289         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
42290         misplaced.
42291
42292 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42293
42294         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
42295         constants.
42296
42297 2001-12-04  Robert Dewar  <dewar@gnat.com>
42298
42299         * errout.adb: Minor reformatting
42300
42301 2001-12-04  Robert Dewar  <dewar@gnat.com>
42302
42303         * exp_util.adb: Minor reformatting from last change
42304
42305         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
42306         which is a rewriting of an expression, traverse the original
42307         expression to remove warnings that may have been posted on it.
42308
42309 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42310
42311         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
42312         record that has other packed components.
42313
42314 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
42315
42316         * adaint.c: Minor cleanups.
42317
42318 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
42319
42320         * adaint.c: Do not use utime.h on vxworks.
42321
42322 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
42323
42324         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
42325         more confusion than it solves.
42326
42327 2001-12-04  Geert bosch  <bosch@gnat.com>
42328
42329         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
42330
42331 2001-12-04  Geert Bosch  <bosch@gnat.com>
42332
42333         * Makefile.in (update-sources): New target.
42334         For use by gcc_release script.
42335
42336 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42337
42338         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
42339         a configuration pragma, it is now legal wherever a pragma can appear.
42340
42341 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
42342
42343         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
42344         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
42345         is now @CROSS@ -DIN_GCC; update comment.
42346
42347 2001-12-04  Robert Dewar  <dewar@gnat.com>
42348
42349         * einfo.adb (Has_Pragma_Pure_Function): New flag.
42350         Fix problem that stopped ceinfo from working
42351
42352         * einfo.ads (Has_Pragma_Pure_Function): New flag.
42353
42354         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
42355
42356 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
42357
42358         * gnatchop.adb:
42359         (File_Time_Stamp): New procedure.
42360         (Preserve_Mode): New boolean.
42361         (Write_Unit): Pass time stamp.
42362         Implement -p switch (preserve time stamps).
42363
42364         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
42365
42366         * gnatchop.adb: Do usage info for -p switch
42367
42368         * adaint.h (__gnat_set_file_time_name): New function
42369
42370         * adaint.c (__gnat_set_file_time_name): Implement
42371
42372         * adaint.h: Fix typo
42373
42374 2001-12-03  Robert Dewar  <dewar@gnat.com>
42375
42376         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
42377         have Associated_Node.
42378
42379 2001-12-03  Robert Dewar  <dewar@gnat.com>
42380
42381         * prj-proc.adb: Minor reformatting
42382
42383         * make.adb: Minor reformatting
42384
42385 2001-12-03  Geert Bosch  <bosch@gnat.com>
42386
42387         * make.adb: Minor reformatting.
42388
42389 2001-12-03 Robert Dewar  <dewar@gnat.com>
42390
42391         * sem_ch12.adb: Minor reformatting
42392
42393 2001-12-03  Ed Schonberg  <schonber@gnat.com>
42394
42395         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
42396         push Standard on the stack before analyzing the instance body,
42397         in order to have a clean visibility environment.
42398
42399         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
42400
42401 2001-12-03  Ed Schonberg  <schonber@gnat.com>
42402
42403         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
42404         instantiation of a body that contains an inlined body.
42405
42406 2001-12-03  Ed Schonberg  <schonber@gnat.com>
42407
42408         * sem_ch12.adb:
42409         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
42410         to prevent freezing within formal packages.
42411         (Freeze_Subprogram_Body): If body comes from another instance that
42412         appeared before its own body, place freeze node at end of current
42413         declarative part, to prevent a back-end crash.
42414         (Inline_Instance_Body): Handle properly a package instance within
42415         a subprogram instance that is a child unit.
42416
42417 2001-12-01  Graham Stott  <grahams@redhat.com>
42418
42419         * Makefile.in (misc.o): Add missing $(srcdir) prefix
42420         and add optabs.h dependency.
42421
42422         * misc.c: Include optabs.h
42423         (gnat_tree_code_type): Make static and const.
42424         (gnat_tree_code_length): Likewise.
42425         (gnat_tree_code_name): Likewise.
42426         (update_setjmp_buf): Obtain operands mode from insn_data.
42427
42428 2001-11-29  Richard Henderson  <rth@redhat.com>
42429
42430         * init.c: Remove obsolete dwarf2 frame.h section.
42431
42432 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
42433
42434         * Make-lang.in (ada.generated-manpages): New dummy target.
42435
42436 2001-11-29  Ed Schonberg  <schonber@gnat.com>
42437
42438         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
42439         into Command, an array conversion is illegal here. Uncovered by
42440         ACATS B460005.
42441
42442 2001-11-28  Geert Bosch  <bosch@gnat.com>
42443
42444         * init.c: Minor whitespace changes.
42445
42446 2001-11-28  Doug Rupp  <rupp@gnat.com>
42447
42448         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
42449         signal stack.
42450
42451 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
42452
42453         * misc.c (gnat_expand_constant): Move declaration above
42454         definition of lang_hooks.
42455         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
42456         (gnat_init): lang_expand_constant no longer exists.
42457
42458         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
42459         always have vprintf.
42460         (gnat_init): Always call set_internal_error_function.
42461
42462 2001-11-27  Andreas Jaeger  <aj@suse.de>
42463
42464         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
42465
42466 2001-11-27  Laurent Guerby  <guerby@acm.org>
42467
42468         * Makefile.in: Regenerate Ada dependencies.
42469
42470 2001-11-26  Richard Henderson  <rth@redhat.com>
42471
42472         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
42473         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
42474         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
42475
42476 2001-11-25  Laurent Guerby  <guerby@acm.org>
42477
42478         * sysdep.c (rts_get_*): Fix style.
42479
42480 2001-11-19  Laurent Guerby  <guerby@acm.org>
42481
42482         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
42483         since it is of no apparent use and cause warnings.
42484
42485 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
42486
42487         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
42488         static too.
42489         (gnat_init): Don't return NULL.
42490         (finish_parse): Remove.
42491
42492 2001-11-17  Laurent Guerby  <guerby@acm.org>
42493
42494         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
42495         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
42496         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
42497         * lang-spec.h: Add missing struct field to silence warnings.
42498         * sysdep.c (rts_get_*): Provide K&R prototype.
42499         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
42500         * traceback.c (Unlock_Task, Lock_Task): Likewise.
42501         * tracebak.c (__gnat_backtrace): Remove unused variable.
42502         * utils.c (end_subprog_body): Move to K&R style.
42503
42504 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
42505
42506         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
42507
42508 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
42509
42510         * misc.c (gnat_init): Change prototype.  Include the
42511         functionality of the old init_parse and init_decl_processing.
42512         (gnat_init_decl_processing): New prototype.
42513         (init_parse): Remove.
42514         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
42515
42516 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
42517
42518         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
42519         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
42520         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
42521         set_yydebug): Remove.
42522
42523 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
42524
42525         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
42526         (struct lang_hooks): Constify.
42527         (language_string, lang_identify): Remove.
42528         * utils.c (init_decl_processing): Update.
42529
42530 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
42531
42532         * misc.c: Include langhooks-def.h.
42533         * Makefile.in: Update.
42534
42535 2001-10-30  Robert Dewar  <dewar@gnat.com>
42536
42537         * style.adb:
42538         (Check_Identifier): Rewrite circuit to be compatible with use of letters
42539         in the upper half of ASCII.
42540         (Check_Identifier): Minor reformatting
42541
42542 2001-10-30  Geert Bosch  <bosch@gnat.com>
42543
42544         * (Associated_Node, Set_Associated_Node): Do not check for
42545         Freeze_Entity.
42546
42547 2001-10-30  Robert Dewar  <dewar@gnat.com>
42548
42549         * a-reatim.ads: Minor reformatting
42550
42551 2001-10-30  Robert Dewar  <dewar@gnat.com>
42552
42553         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
42554         undocumented declarations.
42555
42556 2001-10-30  Pascal Obry  <obry@gnat.com>
42557
42558         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
42559         to the binder and linker.
42560         Minor style fix.
42561
42562         * mdll.ads: Fix layout.  Update copyright notice.
42563
42564         * mdll.adb: Fix layout.  Update copyright notice.
42565
42566 2001-10-30  Robert Dewar  <dewar@gnat.com>
42567
42568         * usage.adb: Minor fix to output for -gnaty.
42569
42570 2001-10-30  Ed Schonberg  <schonber@gnat.com>
42571
42572         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
42573         to accommodate all its possible values.
42574
42575         * a-reatim.adb (Split): Special-case handling of Time_Span_First
42576         and of small absolute values of T.
42577
42578 2001-10-30  Richard Kenner  <kenner@gnat.com>
42579
42580         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
42581         set_mem_attributes since not needed and wrong if RESULT if a REG;
42582         fixes ACATS failures.
42583
42584 2001-10-30  Geert Bosch  <bosch@gnat.com>
42585
42586         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
42587         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
42588
42589 2001-10-30  Robert Dewar  <dewar@gnat.com>
42590
42591         * bindusg.adb: Undocument -f switch.
42592
42593         * gnatcmd.adb: Remove /FULL_ELABORATION.
42594
42595         * opt.ads (Force_RM_Elaboration_Order): Document that this is
42596         obsolescent.
42597
42598         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
42599
42600         * gnatbind.adb: Minor update of warning msg.
42601
42602 2001-10-30  Vincent Celier  <celier@gnat.com>
42603
42604         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
42605         for project file switches (-P (/PROJECT_FILE=),
42606          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
42607         or MEDIUM or HIGH)
42608
42609 2001-10-30  Geert Bosch  <bosch@gnat.com>
42610
42611         * decl.c: Minor whitespace fixes.
42612
42613 2001-10-30  Richard Kenner  <kenner@gnat.com>
42614
42615         * utils2.c (build_allocator): Test for SIZE overflow in array case too
42616
42617 2001-10-30  Geert Bosch  <bosch@gnat.com>
42618
42619         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
42620         Found due to GCC 3.0 warning of using uninitialized value.
42621
42622         * layout.adb:
42623         (Get_Max_Size): Use variant record for tracking value/expression.
42624          Makes logic clearer and prevents warnings for uninitialized variables.
42625         (Layout_Array_Type): Use variant record for tracking value/expression.
42626          Makes logic clearer and prevents warnings for uninitialized variables.
42627
42628 2001-10-30  Robert Dewar  <dewar@gnat.com>
42629
42630         * lib.adb: Minor reformatting
42631
42632         * s-taprop.ads: Minor reformatting
42633
42634 2001-10-29  Laurent Guerby  <guerby@acm.org>
42635
42636         * init.c:
42637         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
42638         const.
42639         (_gnat_error_handler): Make MSG const.
42640
42641 2001-10-29  Richard Kenner  <kenner@gnat.com>
42642
42643         * sysdep.c: Fix localtime_r problem on LynxOS.
42644         Also remove #elif to avoid warnings.
42645
42646         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
42647         used by this.
42648
42649         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
42650
42651 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
42652
42653         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
42654         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
42655         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
42656         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
42657         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
42658         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
42659         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
42660         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
42661         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
42662         types.ads, urealp.adb: Fix spelling errors.
42663
42664 2001-10-27  Laurent Guerby  <guerby@acm.org>
42665
42666         * trans.c (gigi): Fix non determinism leading to bootstrap
42667         comparison failures for debugging information.
42668
42669 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
42670
42671         * gnat_rm.texi: Use @./@: where appropriate.
42672
42673 2001-10-26  Robert Dewar  <dewar@gnat.com>
42674
42675         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
42676
42677 2001-10-26  Richard Kenner  <kenner@gnat.com>
42678
42679         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
42680
42681 2001-10-26  Richard Kenner  <kenner@gnat.com>
42682
42683         * decl.c (validate_size): Modify message for bad size to avoid
42684         implication that compiler is modifying the size.
42685
42686 2001-10-26  Robert Dewar  <dewar@gnat.com>
42687
42688         * prj-util.adb: Minor reformatting. Fix bad header format.
42689
42690 2001-10-26  Robert Dewar  <dewar@gnat.com>
42691
42692         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
42693
42694         * sinfo.ads: Clarify use of Associated_Node (documentation only).
42695
42696         * sem_ch12.adb: Change Node4 to Associated_Node. Change
42697         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
42698         much more narrowly in places where needed. These are cleanups.
42699
42700 2001-10-26  Joel Brobecker  <brobecke@gnat.com>
42701
42702         * 5zosinte.ads (null_pthread): new constant.
42703
42704         * 5ztaprop.adb:
42705         (Initialize_TCB): Initialize thread ID to null, to be able to verify
42706          later that this field has been set.
42707         (Finalize_TCB): ditto.
42708         (Suspend_Task): Verify that the thread ID is not null before using it.
42709         (Resume_Task): ditto.
42710
42711         * s-tasdeb.adb:
42712         (Resume_All_Tasks): Lock the tasks list before using it.
42713         (Suspend_All_Tasks): ditto.
42714
42715 2001-10-26  Richard Kenner  <kenner@gnat.com>
42716
42717         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
42718         Make constant variant of designated type for Is_Access_Constant.
42719         Call update_pointer_to with main variant.
42720
42721         * trans.c (process_freeze_entity, process_type):
42722         Call update_pointer_to on main variant.
42723
42724         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
42725         If main variant, update all other variants.
42726
42727         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
42728         TREE_STATIC.
42729
42730 2001-10-26  Robert Dewar  <dewar@gnat.com>
42731
42732         * prj-util.adb: Minor reformatting
42733
42734 2001-10-26  Robert Dewar  <dewar@gnat.com>
42735
42736         * prj-util.adb: Minor reformatting
42737
42738 2001-10-26  Robert Dewar  <dewar@gnat.com>
42739
42740         * prj-attr.adb: Minor reformatting throughout
42741
42742 2001-10-26  Robert Dewar  <dewar@gnat.com>
42743
42744         * prj-attr.ads: Minor reformatting
42745         Add ??? comment (this whole spec has almost no comments)
42746
42747 2001-10-26  Vincent Celier  <celier@gnat.com>
42748
42749         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
42750         ("//") that precede the drive letter on Interix.
42751
42752 2001-10-26  Geert Bosch  <bosch@gnat.com>
42753
42754         * gnat_rm.texi: Add GNAT Reference Manual.
42755
42756 2001-10-25  Robert Dewar  <dewar@gnat.com>
42757
42758         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
42759         is Error. Similar change for other renaming cases.
42760
42761 2001-10-25  Robert Dewar  <dewar@gnat.com>
42762
42763         * s-atacco.ads: Add pragma Inline_Always for functions.
42764         Fix header format. Add copyright 2001
42765
42766 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42767
42768         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
42769         return Error rather than Empty so that analysis can proceed.
42770
42771 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42772
42773         * sem_util.adb (Enter_Name): better handling of cascaded error
42774         messages when a unit appears in its own context.
42775
42776 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42777
42778         * sem_util.adb (Defining_Entity): in case of error, attach created
42779         entity to specification, so that semantic analysis can proceed.
42780
42781 2001-10-25  Robert Dewar  <dewar@gnat.com>
42782
42783         * sem_util.adb
42784         (Defining_Entity): Deal with Error.
42785         (Process_End_Label): Deal with bad end label for.
42786
42787 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42788
42789         * sem_elab.adb (Check_A_Call): refine message when call is in an
42790         instance but callee is not declared in the generic unit.
42791
42792 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42793
42794         * sem_elab.adb (Check_A_Call): check for renaming before finding the
42795         enclosing unit, which may already be different from the calling unit.
42796
42797 2001-10-25  Geert Bosch  <bosch@gnat.com>
42798
42799         * 4gintnam.ads: fix header format.
42800
42801 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42802
42803         * sem_res.adb (Resolve_Call): if the call is actually an indexing
42804         operation on the result of a parameterless call, perform elaboration
42805         check after the node has been properly rewritten.
42806
42807         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
42808         inlined within the generic tree, the defining identifier is not a
42809         compilation_unit.
42810
42811 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42812
42813         * sem_res.adb (Resolve): special-case resolution of Null in an
42814          instance or an inlined body to avoid view conflicts.
42815
42816         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
42817          compatibility by retrieving the access type of the generic copy.
42818
42819 2001-10-25  Robert Dewar  <dewar@gnat.com>
42820
42821         * sem_ch3.adb:
42822         (Analyze_Number_Declaration): Handle error expression.
42823         (Signed_Integer_Type_Declaration): Handle error bound.
42824         (Analyze_Subtype_Indication): Handle error range.
42825
42826         * sem_util.adb (Get_Index_Bounds): Check for Error.
42827
42828 2001-10-25  Robert Dewar  <dewar@gnat.com>
42829
42830         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
42831         in no run time mode.
42832
42833 2001-10-25  Pascal Obry  <obry@gnat.com>
42834
42835         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
42836         mode case for ALLOC case.
42837
42838         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
42839         all platforms. Improvement of last change.
42840
42841 2001-10-25  Robert Dewar  <dewar@gnat.com>
42842
42843         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
42844
42845 2001-10-25  Geert Bosch  <bosch@gnat.com>
42846
42847         * osint.adb (Is_Relative): Remove duplicate.
42848
42849 2001-10-25  Pascal Obry  <obry@gnat.com>
42850
42851         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
42852         pathnames in UNIX and DOS style with drive letter.
42853         (Is_Relative): new routine.
42854
42855         * osint.adb: Minor reformatting
42856
42857         * osint.adb (Is_Relative): implementation using
42858         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
42859
42860 2001-10-25  Pascal Obry  <obry@gnat.com>
42861
42862         * g-dirope.adb (Basename): correctly compute offset between the
42863         original Path and the translated one.
42864
42865         * g-dirope.adb: (Base_Name): add some comments.
42866
42867 2001-10-25  Robert Dewar  <dewar@gnat.com>
42868
42869         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
42870         in HIE mode, avoids compilation abandoned message
42871
42872         * exp_imgv.adb: Correct typo in previous change
42873
42874         * exp_imgv.adb: Correct typo in previous change (not my day!)
42875
42876 2001-10-25  Robert Dewar  <dewar@gnat.com>
42877
42878         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
42879
42880 2001-10-25  Pascal Obry  <obry@gnat.com>
42881
42882         * g-awk.ads: Move all pragma inlines next to the routine
42883          declarations. This is more uniform with other GNAT spec.
42884
42885 2001-10-22  Geert Bosch  <bosch@gnat.com>
42886
42887         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
42888
42889 2001-10-19  Geert Bosch  <bosch@gnat.com>
42890
42891         * Makefile.in (tools, gnattools): Remove gnatmem.
42892
42893 2001-10-17  Richard Henderson  <rth@redhat.com>
42894
42895         * Makefile.in (misc.o): Depend on langhooks.h.
42896         * misc.c: Include it.
42897         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
42898         (LANG_HOOKS_DECODE_OPTION): New.
42899         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
42900
42901 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
42902
42903         * trans.c (tree_transform): Adjust to recent change in
42904         expand_asm_operands to implement named asm operands.
42905
42906 2001-10-11  Ed Schonberg  <schonber@gnat.com>
42907
42908         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
42909         renaming of discriminant for mutable record type.
42910
42911 2001-10-11  Robert Dewar  <dewar@gnat.com>
42912
42913         * validsw.adb: Properly save -gnatVn status.
42914
42915 2001-10-11  Robert Dewar  <dewar@gnat.com>
42916
42917         * usage.adb: Add lines for V switch.
42918
42919         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
42920         (/VALIDITY_CHECKING).
42921
42922 2001-10-11  Ed Schonberg  <schonber@gnat.com>
42923
42924         * sem_type.adb (Add_One_Interp): an operator for a type declared in
42925         an extension of System is known to be visible.
42926
42927 2001-10-11  Ed Schonberg  <schonber@gnat.com>
42928
42929         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
42930         properly. Fixes regression on ACATS C34005G.
42931
42932 2001-10-11  Robert Dewar  <dewar@gnat.com>
42933
42934         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
42935         loop in generic instance, since this is likely not very useful.
42936
42937 2001-10-11  Robert Dewar  <dewar@gnat.com>
42938
42939         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
42940         the error message for high integrity mode.
42941
42942         * rtsfind.adb (RTE): Give message if we try to find an entity that
42943         is not available in high integrity mode.
42944
42945         * rtsfind.ads:
42946         (OK_To_Use_In_HIE_Mode): New array.
42947         (RTE): May return Empty in high integrity mode.
42948
42949         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
42950         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
42951
42952         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
42953         unit if not inlined always and in no runtime mode. Fixes problem
42954         caused by new Rtsfind changes.
42955
42956         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
42957         body is deleted.
42958
42959         * rtsfind.adb (RTE): Make sure we do not try to load unit after
42960         giving message for entity not available in high integrity mode.
42961
42962 2001-10-11  Pascal Obry  <obry@gnat.com>
42963
42964         * impunit.adb: Add GNAT.CRC32.
42965
42966 2001-10-11  Ed Schonberg  <schonber@gnat.com>
42967
42968         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
42969         properly the case where one universal operand in a non-static
42970         exponentiation of a real literal.
42971
42972 2001-10-11  Ed Schonberg  <schonber@gnat.com>
42973
42974         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
42975         clause, return the gobal finalization list, for lack of anthing else.
42976
42977 2001-10-11  Ed Schonberg  <schonber@gnat.com>
42978
42979         * exp_ch7.adb (Make_Transient_Block): if statement is within
42980         exception handler, always use new transient scope to place Clean
42981         procedure.
42982
42983 2001-10-11  Pascal Obry  <obry@gnat.com>
42984
42985         * Makefile.in:
42986         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
42987         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
42988         (GNATLS_RTL_OBJS): add g-crc32.o
42989         (GNATMAKE_RTL_OBJS): add g-crc32.o
42990
42991         * ali-util.adb:
42992         (CRC_Match): new function.
42993         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
42994         instead of the previous simple checksum algorithm.
42995         (Time_Stamp_Mismatch): use CRC_Match for comparison.
42996         (Set_Source_Table): idem.
42997
42998         * ali-util.ads:
42999         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
43000         instead of simple checksum.
43001         (CRC_Match): new function.
43002         (CRC_Error): new constant.
43003
43004         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
43005         a CRC now and not a simple checksum. A CRC uses lower-case hex
43006         letters, fixes ambiguity in parsing.
43007
43008         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
43009         is what this variable will store.
43010
43011         * bcheck.adb: Change reference to chechsum in comments by CRC.
43012         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
43013         rename All_Checksum_Match to All_CRC_Match. Change due to API
43014         renaming since now GNAT does not use a simple checksum but a
43015         CRC using GNAT.CRC32.
43016
43017         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
43018         now and not anymore a simple checksum.
43019
43020         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
43021         places.
43022
43023         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
43024
43025         * scans.adb:
43026         (Restore_Scan_State): rename Checksum to CRC.
43027         (Save_Scan_State): idem.
43028
43029         * scans.ads:
43030         With GNAT.CRC32.
43031         (Checksum): rename to CRC.
43032         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
43033
43034         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
43035         GNAT.CRC32).  Update copyright notice.
43036
43037         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
43038         GNAT.CRC32).  Update copyright notice.
43039
43040         * scn.adb:
43041         (Accumulate_Checksum): removed.
43042         (Update): new procedure. Add a wide-character into the CRC.
43043
43044         * sinput-l.adb:
43045         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
43046         (Load_File): fix initialization of S (change Source_Checksum to
43047         Source_CRC)
43048
43049         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
43050         Source_CRC in S initialization.
43051
43052         * sinput.adb (Source_Checksum): renamed to Source_CRC.
43053
43054         * sinput.ads (Source_Checksum): renamed to Source_CRC.
43055         Update comments for the CRC.
43056
43057         * types.adb (Hex): Use lowercase for the letter part.
43058
43059         * types.ads (Get_Hex_String): Returns the hexadecimal representation
43060         for a word. This is currently used only for CRC. In previous version,
43061         the checksum was using a representation with all letter being
43062         upper-case. With the new implementation (using CRC) we do not remove
43063         the 32th bit of the CRC, so we can have an upper-case starting letter
43064         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
43065         It is ambigous since the CRC was optional and could be followed by
43066         options like EB, EE. So now this routines uses lower-case letter for
43067         the hexadecimal representation. Strange enough only lower case letters
43068         where checked in Scan_ALI (even if this was not a possible case).
43069
43070         * gnatvsn.ads (Library_Version): changed to 3.15a.
43071
43072         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
43073         for the compiler.
43074
43075         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
43076         for the compiler.
43077
43078         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
43079         Add 2001 to copyright notice
43080         (Accumulate_Checksum): Modify to use System.CRC32.
43081
43082         * ali-util.ads: Redo changes of previous revision to continue to use
43083         the word Checksum. Add 2001 to copyright notice.
43084
43085         * ali.adb: Undo some of previous changes, not needed.
43086         Keep the change for lower case letters in the checksum.
43087
43088         * ali.ads: Undo previous change not needed.
43089
43090         * bcheck.adb: Undo most of previous change, not needed.
43091         But do use Checksums_Match for checksum comparison.
43092
43093         * gnatls.adb: Undo most of previous change, not needed.
43094         But do use Checksums_Match for comparing checksums.
43095
43096         * lib-load.adb: Undo previous change, not needed.
43097
43098         * lib-writ.adb: Undo previous change, not needed.
43099
43100         * lib-writ.ads: Document that checksums use lower case,
43101         not upper case letters.
43102
43103         * scans.adb: Undo previous change, not needed
43104
43105         * scans.ads: Undo previous change, not needed.
43106
43107         * scn-nlit.adb: Undo previous changes, not needed.
43108
43109         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
43110
43111         * scn.adb:
43112         (Accumulate_Checksum): Use System.CRC32.
43113         (Initialize_Checksum): New procedure.
43114         Remove other changes of previous revision.
43115
43116         * sinput-p.adb: Undo previous change, not needed.
43117
43118         * sinput.adb: Undo previous change, not needed.
43119
43120         * sinput-l.adb: Undo previous change, not needed.
43121
43122         * sinput.ads: Undo previous change, not needed.  Keep only comment
43123         on new checksum algorithm
43124
43125         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
43126         Also remove a-tags and a-stream from GNAT sources.
43127
43128         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
43129
43130         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
43131
43132 2001-10-11  Geert Bosch  <bosch@gnat.com>
43133
43134         * einfo.h: Regenerate.
43135
43136         * nmake.ads: Regenerate.
43137
43138         * nmake.adb: Regenerate.
43139
43140         * sinfo.h: Regenerate.
43141
43142         * treeprs.adb: Regenerate.
43143
43144 2001-10-10  Geert Bosch  <bosch@gnat.com>
43145
43146         * gnat-style.texi: New file describing coding guidelines for Ada.
43147
43148 2001-10-10  Ed Schonberg  <schonber@gnat.com>
43149
43150         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
43151         is Flag174.
43152
43153 2001-10-10  Geert Bosch  <bosch@gnat.com>
43154
43155         * snames.ads: Add new names for project facility.
43156
43157         * snames.adb: Update to reflect snames.ads changes.
43158
43159         * snames.h: Update to reflect snames.ads changes.
43160
43161 2001-10-10  Vincent Celier  <celier@gnat.com>
43162
43163         * make.adb:
43164         (Add_Switches): reflect the changes for the switches attributes
43165         Default_Switches indexed by the programming language,
43166         Switches indexed by the file name.
43167         (Collect_Arguments_And_Compile): Idem.
43168         Reflect the attribute name changes.
43169
43170         * prj-attr.adb:
43171         (Initialisation_Data): Change the names of some packages and
43172         attributes.
43173         (Initialize): process case insensitive associative arrays.
43174
43175         * prj-attr.ads:
43176         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
43177
43178         * prj-dect.adb:
43179         (Parse_Attribute_Declaration): For case insensitive associative
43180          arrays, set the index string to lower case.
43181
43182         * prj-env.adb:
43183         Reflect the changes of the project attributes.
43184
43185         * prj-nmsc.adb:
43186         Replace Check_Naming_Scheme by Ada_Check and
43187         Language_Independent_Check.
43188
43189         * prj-nmsc.ads:
43190         Replaced Check_Naming_Scheme by 2 procedures:
43191         Ada_Check and Language_Independent_Check.
43192
43193         * prj-proc.adb:
43194         (Process_Declarative_Items): For case-insensitive associative
43195         arrays, set the index string to lower case.
43196         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
43197         Prj.Nmsc.Check_Naming_Scheme.
43198
43199         * prj-tree.adb:
43200         (Case_Insensitive): New function
43201         (Set_Case_Insensitive): New procedure
43202
43203         * prj-tree.ads:
43204         (Case_Insensitive): New function
43205         (Set_Case_Insensitive): New procedure
43206         (Project_Node_Record): New flag Case_Insensitive.
43207
43208         * prj-util.adb:
43209         (Value_Of): new function to get the string value of a single
43210         string variable or attribute.
43211
43212         * prj-util.ads:
43213         (Value_Of): new function to get the string value of a single
43214         string variable or attribute.
43215
43216         * prj.adb:
43217         (Ada_Default_Spec_Suffix): New function
43218         (Ada_Default_Impl_Suffix): New function
43219         Change definitions of several constants to reflect
43220         new components of record types.
43221
43222         * prj.ads:
43223         (Naming_Data): Change several components to reflect new
43224         elements of naming schemes.
43225         (Project_Data): New flags Sources_Present and
43226         Language_Independent_Checked.
43227         (Ada_Default_Spec_Suffix): New function.
43228         (Ada_Default_Impl_Suffix): New function.
43229
43230         * snames.ads:
43231         Modification of predefined names for project manager: added
43232         Implementation, Specification_Exceptions, Implementation_Exceptions,
43233         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
43234         Default_Switches, _Languages, Builder, Cross_Reference,
43235         Finder. Removed Body_Part, Specification_Append, Body_Append,
43236         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
43237         Gnatlink.
43238
43239         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
43240         Add comments.
43241
43242         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
43243         not that it is Nil_Variable_Value.
43244
43245         * prj.ads: Add ??? for uncommented declarations
43246
43247 2001-10-10  Ed Schonberg  <schonber@gnat.com>
43248
43249         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
43250         constant, do not indicate possible modification, so that gigi can
43251         treat it as a bona fide constant.
43252
43253 2001-10-10  Robert Dewar  <dewar@gnat.com>
43254
43255         * sem_prag.adb: Add processing for pragma External.
43256
43257         * snames.ads: Add entry for pragma External.
43258
43259         * par-prag.adb: Add pragma External.
43260
43261         * snames.adb: Updated to match snames.ads.
43262
43263 2001-10-10  Ed Schonberg  <schonber@gnat.com>
43264
43265         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
43266         a dynamic task if the allocator appears in an indexed assignment
43267         or selected component assignment.
43268
43269         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
43270         For a dynamic task in an assignment statement, use target of
43271         assignment to generate meaningful name.
43272
43273 2001-10-10  Ed Schonberg  <schonber@gnat.com>
43274
43275         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
43276         a generic package.
43277
43278         * einfo.ads: Body_Entity is also defined for generic package.
43279         Documentation change only
43280
43281         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
43282         others_choice for a discriminated component initialization,
43283         convert discriminant references into the corresponding discriminals.
43284
43285         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
43286         only if original type is private and expression has to be wrapped
43287         in a conversion.
43288
43289         * checks.adb:
43290         (Apply_Constraint_Check): Do not perform length check
43291         if expression is an aggregate with only an others_choice.
43292         (Length_N_Cond): two references to the same in_parameter
43293         (typically the discriminal in an init_proc) denote the same value.
43294         Two useful optimization uncovered by bugfixes above.
43295
43296 2001-10-10  Robert Dewar  <dewar@gnat.com>
43297
43298         * xeinfo.adb: Change int to char in translation of enumeration types.
43299         This fixes a problem in the C representation of component alignment.
43300         Add 2001 to copyright notice
43301
43302 2001-10-10  Richard Kenner  <kenner@gnat.com>
43303
43304         * decl.c: (validate_size): Do check size of object of integral type
43305         if it is a packed array type.
43306
43307 2001-10-10  Richard Kenner  <kenner@gnat.com>
43308
43309         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
43310         VAR_DECL for constant if not Is_Public but -O0.
43311
43312 2001-10-10  Richard Kenner  <kenner@gnat.com>
43313
43314         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
43315
43316 2001-10-10  Geert Bosch  <bosch@gnat.com>
43317
43318         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
43319         use '/' as switch character, allowing for absolute file names.
43320
43321 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
43322
43323         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
43324         FSF address.
43325
43326 2001-10-08  Geert Bosch  <bosch@gnat.com>
43327
43328         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
43329         Automatically build utilities when files need to be regenerated.
43330
43331 2001-10-08  Geert Bosch  <bosch@gnat.com>
43332
43333         * xsnames.adb: New utility for updating snames.ads and snames.adb
43334
43335 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
43336
43337         * Make-lang.in (ADAFLAGS): Add -W -Wall.
43338         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
43339         (gnat1): Also depend on attribs.o.
43340         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
43341         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
43342         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
43343         (ADAFLAGS): Add -W -Wall.
43344         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
43345         take out CFLAGS.
43346
43347         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
43348         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
43349         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
43350         Use $(ADAC), not $(CC), as compilation command.
43351
43352         (gnattools): Depend directly on tools to build, don't use
43353         recursive make.
43354         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
43355
43356         * einfo.h, sinfo.h: New files (autogenerated).
43357
43358 2001-10-08  Richard Henderson  <rth@redhat.com>
43359
43360         * comperr.adb (Abort_In_Progress): New.
43361         (Compiler_Abort): Use it to prevent recursion.
43362
43363 2001-10-08  Robert Dewar  <dewar@gnat.com>
43364
43365         * atree.adb: Set Error_Posted in Error node, helps error recovery.
43366
43367         * par-endh.adb (Output_End_Expected): We should also not test
43368         Error_Posted on the Error node, since now it is always set.
43369
43370         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
43371         to help error recovery. Part of general work on 9407-004.
43372
43373         * par.adb: Add ??? for misuse of error
43374
43375         * sem_res.adb:
43376         (Resolve): Defend against Error, fixes 9407-003.
43377         (Resolve_Discrete_Subtype_Indication): Defend against Error.
43378
43379         * sinfo.ads (N_Error): Now has Etype field (which will be set
43380         to Any_Type to help error recovery).
43381
43382 2001-10-08  Richard Kenner  <kenner@gnat.com>
43383
43384         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
43385         Consistently set MEM attributes from expression; fixes
43386         bootstrap failure on x86.
43387
43388 2001-10-08  Geert Bosch  <bosch@gnat.com>
43389
43390         * 5oosinte.adb: Add 2001 to copyright notice.
43391
43392 2001-10-08  Geert Bosch  <bosch@gnat.com>
43393
43394         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
43395
43396         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
43397
43398 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
43399
43400         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
43401
43402 2001-10-05  Geert Bosch  <bosch@gnat.com>
43403
43404         * adaint.h: Small formatting fix.
43405
43406 2001-10-04  Geert Bosch  <bosch@gnat.com>
43407
43408         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
43409         Arg is int, not FILE *, in dummy version of functions.
43410
43411         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
43412         Arg is int, not FILE *.
43413
43414 2001-10-04  Geert Bosch  <bosch@gnat.com>
43415
43416         * 3lsoccon.ads: Added file, missed with initial check ins.
43417
43418         * 4lintnam.ads: Fix header format.
43419         Change Linux to GNU/Linux.
43420
43421         * 5iosinte.adb: Change Linux to GNU/Linux.
43422
43423         * 5iosinte.ads: Change Linux to GNU/Linux.
43424
43425         * 5itaprop.adb: Change Linux to GNU/Linux.
43426
43427         * 5itaspri.ads: Change Linux to GNU/Linux.
43428         Update copyright notice.
43429
43430         * 5lintman.adb: Change Linux to GNU/Linux.
43431
43432         * 5lml-tgt.adb: Change Linux to GNU/Linux.
43433
43434         * 5losinte.ads: Change Linux to GNU/Linux.
43435
43436         * 5lsystem.ads: Change Linux to GNU/Linux.
43437
43438         * 5qosinte.adb: Change Linux to GNU/Linux.
43439
43440         * 5qosinte.ads: Change Linux to GNU/Linux.
43441
43442         * 5qparame.ads: Change Linux to GNU/Linux.
43443
43444         * 5qtaprop.adb: Change Linux to GNU/Linux.
43445
43446         * 5qtaspri.ads: Change Linux to GNU/Linux.
43447         Add 2001 to copyright notice.
43448
43449         * 5vintman.ads: Change Linux to GNU/Linux.
43450         Fix header format.  Add 2001 to copyright notice.
43451
43452         * g-soccon.ads: Change Linux to GNU/Linux.
43453
43454         * g-trasym.ads: Change Linux to GNU/Linux.
43455         Add 2001 to copyright notice.
43456
43457         * memtrack.adb: Change Linux to GNU/Linux.
43458
43459         * s-intman.ads: Change Linux to GNU/Linux.
43460         Add 2001 to copyright notice.  Fix header format.
43461
43462         * s-stache.adb: Change Linux to GNU/Linux.
43463
43464         * adaint.c: Change Linux to GNU/Linux.
43465
43466         * cio.c: Change Linux to GNU/Linux.
43467
43468         * cstreams.c: Change Linux to GNU/Linux.
43469
43470         * init.c: Change Linux to GNU/Linux.
43471
43472         * gmem.c: Change Linux to GNU/Linux.
43473
43474         * tracebak.c: Change Linux to GNU/Linux.
43475
43476
43477 2001-10-02  Geert Bosch  <bosch@gnat.com>
43478
43479         * misc.c (insert_default_attributes): Add dummy version.