OSDN Git Service

2008-08-22 Robert Dewar <dewar@adacore.com>
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2008-08-22  Arnaud Charlet  <charlet@adacore.com>
2
3         * lib-xref.ads: Fix typo in subprogram reference definition.
4
5 2008-08-22  Robert Dewar  <dewar@adacore.com>
6
7         * s-sopco3.adb: Minor code fix to avoid warning
8
9         * s-sopco4.adb: Minor code fix to avoid warning
10
11         * s-sopco5.adb: Minor code fix to avoid warning
12
13         * s-strops.adb: Minor code fix to avoid warning
14
15         * s-utf_32.adb (Get_Category): Fix obvious typo
16
17         * s-wwdcha.adb: Minor code reorganization
18         Remove dead code
19
20 2008-08-22  Robert Dewar  <dewar@adacore.com>
21
22         * checks.adb (Determine_Range): Deal with values that might be invalid
23
24         * opt.adb, opt.ads (Assume_No_Invalid_Values[_Config]): New configuration
25         switches.
26
27         * par-prag.adb: Dummy entry for pragma Assume_No_Invalid_Values
28
29         * sem_prag.adb: Implement pragma Assume_No_Default_Values
30
31         * snames.adb, snames.ads, snames.h:
32         Add entries for pragma Assume_No_Invalid_Values
33
34         * switch-c.adb: Add processing for -gnatB switch
35
36         * usage.adb: Add entry for flag -gnatB (no bad invalid values)
37
38 2008-08-22  Javier Miranda  <miranda@adacore.com>
39
40         * exp_ch3.adb (Build_Init_Statements): Transfer to the body of the
41         init procedure all the expanded code associated with the spec of
42         task types and protected types.
43
44 2008-08-22  Gary Dismukes  <dismukes@adacore.com>
45
46         * exp_aggr.adb (Static_Array_Aggregate): Call Analyze_And_Resolve on the
47         component expression copies rather than directly setting Etype and
48         Is_Static_Expression.
49
50 2008-08-22  Gary Dismukes  <dismukes@adacore.com>
51
52         * sem_util.adb (Has_Preelaborable_Initialization): Revise checking of
53         private types to allow for types derived from a private type with
54         preelaborable initialization, but return False for a private extension
55         (unless it has the pragma).
56
57 2008-08-22  Robert Dewar  <dewar@adacore.com>
58
59         * opt.ads: Minor code reorganization (put entries in alpha order)
60
61 2008-08-22  Pascal Obry  <obry@adacore.com>
62
63         * initialize.c, adaint.c: Use Lock_Task and Unlock_Task for non-blocking
64         spawn.
65
66 2008-08-22  Geert Bosch  <bosch@adacore.com>
67
68         * gcc-interface/trans.c: Define FP_ARITH_MAY_WIDEN
69         (convert_with_check): Only use longest_float_type if FP_ARITH_MAY_WIDEN is 0
70
71 2008-08-22  Doug Rupp  <rupp@adacore.com>
72
73         * bindgen.adb [VMS] (Gen_Adainit_Ada, Gen_Adainit_C): Import and call
74         __gnat_set_features.
75
76         * init.c
77         (__gnat_set_features): New function.
78         (__gnat_features_set): New tracking variable.
79         (__gl_no_malloc_64): New feature global variable
80
81 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
82
83         * sem_ch8.adb (Use_One_Type): Do not emit warning message about redundant
84         use_type_clause in an instance.
85
86 2008-08-22  Bob Duff  <duff@adacore.com>
87
88         * exp_ch6.ads: Remove pragma Precondition, since it breaks some builds.
89
90 2008-08-22  Robert Dewar  <dewar@adacore.com>
91
92         * exp_ch6.adb: Minor reformatting
93
94         * exp_ch7.adb: Minor reformatting
95
96         * exp_ch7.ads: Put routines in proper alpha order
97
98         * exp_dist.adb: Minor reformatting
99
100 2008-08-22  Vincent Celier  <celier@adacore.com>
101
102         * prj.ads: Minor comment update
103
104 2008-08-22  Robert Dewar  <dewar@adacore.com>
105
106         * sem_ch5.adb (One_Bound): Fix latent bug involving secondary stack
107
108 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
109
110         * exp_tss.adb:
111         (Base_Init_Proc): For a protected subtype, use the base type of the
112         corresponding record to locate the propoer initialization procedure.
113
114 2008-08-22  Robert Dewar  <dewar@adacore.com>
115
116         * checks.adb:
117         (In_Subrange_Of): New calling sequence
118         (Determine_Range): Prepare for new processing using base type
119
120         * exp_ch4.adb:
121         (Compile_Time_Compare): Use new calling sequence
122
123         * exp_ch5.adb:
124         (Compile_Time_Compare): Use new calling sequence
125
126         * sem_eval.adb:
127         (Compile_Time_Compare): New calling sequence allows dealing with
128         invalid values.
129         (In_Subrange_Of): Ditto
130
131         * sem_eval.ads:
132         (Compile_Time_Compare): New calling sequence allows dealing with
133         invalid values.
134         (In_Subrange_Of): Ditto
135
136 2008-08-22  Pascal Obry  <obry@adacore.com>
137
138         * adaint.c: Fix possible race condition on win32_wait().
139
140 2008-08-22  Bob Duff  <duff@adacore.com>
141
142         * exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb, freeze.adb,
143         exp_ch4.adb, exp_ch6.ads, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
144         exp_intr.adb, exp_ch3.adb: Rename:
145         Exp_Ch7.Controlled_Type => Needs_Finalization
146         Exp_Ch7.CW_Or_Controlled_Type => CW_Or_Has_Controlled_Part
147         Exp_Ch5.Expand_N_Extended_Return_Statement.Controlled_Type =>
148          Has_Controlled_Parts
149         (Has_Some_Controlled_Component): Fix bug in array case.
150
151 2008-08-22  Robert Dewar  <dewar@adacore.com>
152
153         * sem_ch8.adb: Minor reformatting
154
155 2008-08-22  Kevin Pouget  <pouget@adacore.com>
156
157         * s-shasto.ads, s-shasto.adb: Move Shared_Var_ROpen, Shared_Var_WOpen and
158         Shared_Var_Close procedure specifications from package spec to package body.
159
160         * rtsfind.ads: Remove RE_Shared_Var_Close, RE_Shared_Var_ROpen,
161         RE_Shared_Var_WOpen entries.
162
163         * exp_dist.adb: Update RE_Any_Content_Ptr to RE_Any_Container_Ptr in
164         Build_To_Any_Call, Build_TypeCode_Call and Build_From_Any_Call procedures.
165
166 2008-08-22  Eric Botcazou  <ebotcazou@adacore.com>
167
168         * init.c: adjust EH support code on Alpha/Tru64 as well.
169
170         * raise-gcc.c: Add back a couple of comments.
171
172 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
173
174         * exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is
175         involved and the return type is class-wide, use the type of the expression
176         for the generated access type. Suppress useless discriminant checks on the
177         allocator.
178
179 2008-08-22  Bob Duff  <duff@adacore.com>
180
181         * exp_ch7.adb: Minor comment fix
182
183         * exp_ch6.ads: Minor comment fix
184
185 2008-08-22  Thomas Quinot  <quinot@adacore.com>
186
187         * sem_ch8.adb: Minor reformatting
188         Minor code reorganization (introduce subprogram to factor duplicated
189         code).
190
191 2008-08-22  Sergey Rybin  <rybin@adacore.com>
192
193         * gnat_ugn.texi: Change the description of gnatcheck default rule
194         settings.
195
196 2008-08-22  Eric Botcazou  <ebotcazou@adacore.com>
197
198         * init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX,
199         Solaris, FreeBSD, VxWorks and PowerPC/Linux.  For x86{-64}/Linux,
200         do not adjust the PC anymore.
201         (__gnat_error_handler): Do not call __gnat_adjust_context_for_raise
202         on AIX, HP-UX, Solaris, FreeBSD and VxWorks.
203
204         * raise-gcc.c (get_call_site_action_for): Use _Unwind_GetIPInfo
205         instead of _Unwind_GetIP.
206
207 2008-08-22  Gary Dismukes  <dismukes@adacore.com>
208
209         * exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate
210         with a range is transformed into a positional aggregate, any copied
211         component literals should be marked Is_Static_Expression.
212
213         * sem_eval.adb (Compile_Time_Known_Value): Don't treat null literals as
214         not being known at at compile time when Configurable_Run_Time_Mode is
215         true.
216
217 2008-08-22  Robert Dewar  <dewar@adacore.com>
218
219         * exp_attr.adb:
220         (Expand_N_Attribute_Reference): No validity checking on OUT parameter of
221         Read or Input attribute.
222
223 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
224
225         * sem_ch8.adb (Use_One_Type): when checking which of two use_type
226         clauses in related units is redundant, if one of the units is a package
227         instantiation, use its instance_spec to determine which unit is the
228         ancestor of the other.
229
230 2008-08-22  Javier Miranda  <miranda@adacore.com>
231
232         * exp_attr.adb (Expand_N_Attribute_Reference): In case of access
233         attributes add missing support to handle designated types that come
234         from the limited view.
235
236         * exp_disp.adb (Expand_Interface_Conversion): Remove wrong assertion.
237
238 2008-08-22  Sergey Rybin  <rybin@adacore.com>
239
240         * vms_data.ads: Add entry for new gnatcheck -mNNN option
241
242         * gnat_ugn.texi: Add description for gnatcheck option '-m'
243
244 2008-08-22  Sergey Rybin  <rybin@adacore.com>
245
246         * gnat_ugn.texi: Update the gnatcheck subsection for metric rules
247         acoording to the latest changes in the metric rule interface
248
249 2008-08-22  Vincent Celier  <celier@adacore.com>
250
251         * make.adb (Check.File_Not_A_Source_Of): New Boolean function
252         (Check): Check if the file names registered in the ALI file for the
253         spec, the body and each of the subunits are the ones expected.
254
255 2008-08-22  Robert Dewar  <dewar@adacore.com>
256
257         * g-catiio.adb: Code cleanup.
258
259 2008-08-20  Vincent Celier  <celier@adacore.com>
260
261         * make.adb (Gnatmake): Remove extra space in version line
262
263         * ali.adb:
264         (Scan_ALI): Use Name_Find, not Name_Enter to get the name of a subunit,
265         as the name may already have been entered in the table by the Project
266         Manager.
267
268 2008-08-20  Jose Ruiz  <ruiz@adacore.com>
269
270         * errno.c (__get_errno, __set_errno for MaRTE): Transform then into
271         weak symbols so we use the version provided by MaRTE when available.
272
273 2008-08-20  Emmanuel Briot  <briot@adacore.com>
274
275         * g-catiio.ads, g-catiio.adb:
276         (Value): Avoid an unnecessary system call to Clock in most cases.
277         This call is only needed when only the time is provided in the string,
278         and ignored in all other cases. This is more efficient.
279
280 2008-08-20  Eric Botcazou  <ebotcazou@adacore.com>
281
282         * raise-gcc.c: Fix formatting nits.
283
284 2008-08-20  Robert Dewar  <dewar@adacore.com>
285
286         * sem_ch13.adb:
287         (Adjust_Record_For_Reverse_Bit_Order): Do not access First_Bit for
288         non-existing component clause.
289
290         * exp_ch5.adb: Minor reformatting
291
292         * g-comlin.adb: Minor reformatting
293
294         * make.adb: Minor reformatting
295
296         * prj-proc.adb: Minor reformatting
297
298         * stylesw.ads: Minor reformatting
299
300 2008-08-20  Vincent Celier  <celier@adacore.com>
301
302         * make.adb (Gnatmake_Switch_Found): New Boolean global variable
303         (Switch_May_Be_Passed_To_The_Compiler): New Boolean global variable
304         (Add_Switches): New Boolean parameter Unknown_Switches_To_The_Compiler
305          defaulted to True. Fail when Unknown_Switches_To_The_Compiler is False
306         and a switch is not recognized by gnatmake.
307         (Gnatmake): Implement new scheme for gnatmake switches and global
308         compilation switches.
309         (Switches_Of): Try successively Switches (<file name>),
310         Switches ("Ada"), Switches (others) and Default_Switches ("Ada").
311
312 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
313
314         * styleg-c.ads, styleg-c.adb (Missing_Overriding): new procedure to
315         implement style check that overriding operations are explicitly marked
316         at such.
317
318         * style.ads (Missing_Overriding): new procedure that provides interface
319         to previous one.
320
321         * stylesw.ads, stylesw.adb: New style switch -gnatyO, to enable check
322         that the declaration or body of overriding operations carries an
323         explicit overriding indicator.
324
325         * sem_ch8.adb
326         (Analyze_Subprogram_Renaming): if operation is overriding, check whether
327         explicit indicator should be present.
328
329         * sem_ch6.adb (Verify_Overriding_Indicator,
330         Check_Overriding_Indicator): If operation is overriding, check whether
331         declaration and/or body of subprogram should be present
332
333 2008-08-20  Vincent Celier  <celier@adacore.com>
334
335         * prj-nmsc.adb (Check_Naming_Schemes): Accept source file names for
336         gprbuild when casing is MixedCase, whatever the casing of the letters
337         in the file name.
338
339 2008-08-20  Gary Dismukes  <dismukes@adacore.com>
340
341         * exp_ch3.adb (Build_Array_Init_Proc): Clarify comment related to
342         creating dummy init proc.
343         (Requires_Init_Proc): Return False in the case No_Default_Initialization
344         is in force and the type does not have associated default
345         initialization. Move test of Is_Public (with tests of restrictions
346         No_Initialize_Scalars and No_Default_Initialization) to end, past tests
347         for default initialization.
348
349 2008-08-20  Jerome Lambourg  <lambourg@adacore.com>
350
351         * g-comlin.adb (For_Each_Simple_Switch): Take care of switches not part
352         of any alias or prefix but having attached parameters (as \"-O2\").
353
354 2008-08-20  Robert Dewar  <dewar@adacore.com>
355
356         * s-fileio.adb: Minor reformatting
357
358 2008-08-20  Thomas Quinot  <quinot@adacore.com>
359
360         * exp_strm.adb (Build_Elementary_Input_Call,
361         Build_Elementary_Write_Call): Fix incorrect condition in circuitry that
362         selects the stream attribute routines for long float types.
363
364 2008-08-20  Vincent Celier  <celier@adacore.com>
365
366         * prj-proc.adb (Process_Declarative_Items): Add Location for Array_Data
367
368         * prj.ads (Array_Data): Add a component Location
369
370 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
371
372         * sem_prag.adb:
373         (Analyze_Pragma, case Obsolescent): Add entity information on the pragma
374         argument for ASIS and navigation use.
375
376 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
377
378         * einfo.ads: Add comment.
379
380 2008-08-20  Bob Duff  <duff@adacore.com>
381
382         * sem_eval.ads: Minor comment fix.
383
384 2008-08-20  Bob Duff  <duff@adacore.com>
385
386         * exp_ch4.adb (Expand_N_And_Then, Expand_N_Or_Else): Improve constant
387         folding. We were folding things like "False and then ...", but not
388         "X and then ..." where X is a constant whose value is known at compile
389         time.
390
391 2008-08-20  Hristian Kirtchev  <kirtchev@adacore.com>
392
393         * exp_ch5.adb (Controlled_Type): New routine.
394         (Expand_N_Extended_Return_Statement): When generating a move of the
395         final list in extended return statements, check the type of the
396         function and in the case of double expanded return statements, the type
397         of the returned object.
398         (Expand_Simple_Function_Return): Perform an interface conversion when
399         the type of the returned object is an interface and the context is an
400         extended return statement.
401
402 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
403
404         * sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type
405         and the full view is visible, set flag on full view as well.
406
407 2008-08-20  Thomas Quinot  <quinot@adacore.com>
408
409         * g-comlin.adb: Minor reformatting
410         Minor code reorganization.
411
412         * freeze.adb: Minor reformatting
413
414 2008-08-20  Vincent Celier  <celier@adacore.com>
415
416         * prj-nmsc.adb (Check_File): An excluded Ada source file may be a
417         source of another project.
418
419 2008-08-20  Pascal Obry  <obry@adacore.com>
420
421         * s-os_lib.ads: Minor reformatting.
422
423 2008-08-20  Arnaud Charlet  <charlet@adacore.com>
424
425         * gnatvsn.ads: Minor reformatting.
426
427 2008-08-20  Arnaud Charlet  <charlet@adacore.com>
428
429         * a-crbtgk.adb, repinfo.adb, g-traceb.ads, repinfo.ads,
430         system-linux-s390x.ads, s-fatflt.ads, s-parame-ae653.ads, g-spipat.adb,
431         g-spipat.ads, g-tasloc.adb, g-debpoo.adb, g-except.ads, g-debpoo.ads,
432         mdll-utl.adb, g-string.adb, g-soliop-solaris.ads, par-sync.adb,
433         exp_ch6.ads, a-cihama.ads, g-curexc.ads, system-linux-sh4.ads,
434         g-utf_32.adb, g-hesorg.adb, s-proinf-irix-athread.ads, s-parint.adb,
435         s-parint.ads, exp_ch7.ads, system-linux-alpha.ads, g-dirope.adb,
436         sinfo-cn.adb, par-labl.adb, a-ciorse.adb, g-calend.adb,
437         s-parame-vms-alpha.ads, nlists.h, exp_imgv.adb, exp_fixd.ads,
438         g-calend.ads, gnatcmd.ads, g-table.adb, s-memory-mingw.adb,
439         g-alveop.ads, g-memdum.ads, g-altive.ads, initialize.c, g-regpat.adb,
440         g-busorg.ads, g-regpat.ads, g-encstr.ads, g-regexp.adb, g-regexp.ads,
441         live.ads, g-dyntab.adb, prj-nmsc.ads, par-ch12.adb, 9drpc.adb,
442         g-alvevi.ads, s-memory.adb, math_lib.adb, s-parame.ads, s-memory.ads,
443         s-regexp.adb, a-exexda.adb, i-cstrea-vms.adb, a-exexpr.adb,
444         g-soliop-mingw.ads, s-imgrea.adb, namet.adb, system-vms.ads,
445         s-inmaop-dummy.adb, s-finroo.ads, a-ngcefu.adb, s-hibaen.ads,
446         g-soliop.ads, s-auxdec.adb, g-locfil.ads, gnatxref.adb, memroot.adb,
447         osint-b.ads, memroot.ads, s-parame-hpux.ads, errutil.adb,
448         system-linux-s390.ads, par-util.adb, osint-c.ads, exp_pakd.ads,
449         i-pacdec.ads, par-endh.adb, mlib-tgt.ads, prj-strt.ads,
450         s-osprim-vms.adb, s-proinf.ads, output.ads, g-moreex.ads,
451         a-finali.ads, s-fatlfl.ads, namet.h, mdll.ads, g-dynhta.ads,
452         s-imgenu.ads, par-tchk.adb, g-excact.ads, memtrack.adb, s-fatgen.adb,
453         a-exexpr-gcc.adb, g-arrspl.adb, par-ch4.adb, g-cgideb.adb, freeze.ads,
454         g-altcon.adb, s-fatllf.ads, gnatfind.adb, s-osinte-lynxos-3.adb,
455         a-exextr.adb, g-htable.ads, a-calfor.adb, s-imgcha.adb, argv.c,
456         a-chahan.ads, g-hesora.adb, system-vms_64.ads, par-ch5.adb, g-md5.adb,
457         lib-xref.ads, g-md5.ads, g-casuti.ads, s-fatsfl.ads, exp_dbug.ads,
458         s-htable.ads, a-ngcoar.adb, s-arit64.ads, a-ngelfu.adb, a-filico.ads,
459         par-ch6.adb, s-inmaop.ads, s-parame-vxworks.ads, s-casuti.ads,
460         a-numaux-darwin.adb, a-cohama.ads, system-linux-sparc.ads, g-os_lib.adb,
461         system-vms-ia64.ads, s-parame-vms-restrict.ads, a-clrefi.ads,
462         s-parame-vms-ia64.ads, a-strfix.adb, a-coorse.adb, a-comlin.ads,
463         a-chtgke.adb, s-imgint.adb, g-expect.ads, exp_ch4.ads, s-finimp.adb,
464         mingw32.h, g-heasor.adb, g-alleve.adb, a-ngrear.adb, s-mastop-irix.adb,
465         s-poosiz.adb, link.c: Fix copyright notice.
466
467 2008-08-20  Arnaud Charlet  <charlet@adacore.com>
468
469         * g-comlin.ads: Update comments.
470
471 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
472
473         * sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag.
474
475 2008-08-20  Gary Dismukes  <dismukes@adacore.com>
476
477         * exp_ch11.adb:
478         (Expand_Exception_Handlers): Call Make_Exception_Handler instead of
479         Make_Implicit_Exception_Handler when rewriting an exception handler with
480         a choice parameter, and pass the handler's Sloc instead of that of the
481         handled sequence of statements. Make_Implicit_Exception_Handler sets the
482         Sloc to No_Location (unless debugging generated code), which we don't
483         want for the case of a user handler.
484
485 2008-08-20  Robert Dewar  <dewar@adacore.com>
486
487         * freeze.adb (Freeze_Record_Type): Improve msg for non-contiguous field
488         
489         * sem_ch13.adb:
490         (Adjust_Record_For_Reverse_Bit_Order): Messages about layout are
491         now labeled as info msgs, not warnings.
492
493         * tbuild.ads: Clarify documentation of Make_Implicit_Exception_Handler
494
495         * usage.adb: Minor change to avoid overlong line for -gnatwz/Z
496
497         * a-textio.adb: Remove redundant test.
498
499         * a-witeio.adb: Minor code reorganization
500         Remove redundant test found working on another issue
501
502         * a-ztexio.adb: Minor code reorganization
503         Remove redundant test found working on another issue
504
505 2008-08-20  Thomas Quinot  <quinot@adacore.com>
506
507         * s-fileio.adb (Open) Use C helper function to determine whether a
508         given errno value corresponds to a "file not found" error.
509
510         * sysdep.c (__gnat_is_file_not_found_error): New C helper function.
511
512 2008-08-20  Jose Ruiz  <ruiz@adacore.com>
513
514         * errno.c (__get_errno for MaRTE): Use the MaRTE function pthread_errno
515         to get access to the per-task errno variable.
516         (__set_errno for MaRTE): Do not redefine this function here since it is
517         already defined in MaRTE.
518
519 2008-08-20  Tristan Gingold  <gingold@adacore.com>
520
521         * gnat_ugn.texi: Gcov is not supported on static library on AIX.
522
523 2008-08-20  Robert Dewar  <dewar@adacore.com>
524
525         * freeze.adb: Minor reformatting
526
527         * g-comlin.adb: Minor reformatting
528
529         * g-socket.adb: Minor reformatting
530
531         * g-socthi-mingw.adb: Minor reformatting
532
533         * g-stheme.adb: Minor reformatting
534
535 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
536
537         * sem_aggr.adb, sem_type.adb, exp_ch9.ads, einfo.ads,
538         exp_ch6.adb, exp_aggr.adb (Valid_Ancestor): Resolve
539         confusion between partial and full views of an ancestor of the context
540         type when the parent is a private extension declared in a parent unit,
541         and full views are available for the context type.
542
543 2008-08-18  Samuel Tardieu  <sam@rfc1149.net>
544             Robert Dewar  <dewar@adacore.com>
545
546         PR ada/30827
547         * bindgen.adb (Gen_Output_File_Ada): Zero-terminate the
548         version string.
549         Move comment in the right place.
550         * g-comver.adb (Version): Look for a zero-termination in
551         addition to a closing parenthesis.
552
553 2008-08-18  Samuel Tardieu  <sam@rfc1149.net>
554
555         * exp_ch13.adb, exp_disp.adb, sem_cat.adb, sem_ch10.adb,
556         * sem_ch12.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
557         * sem_prag.adb, sem_util.adb, sem_warn.adb: Use
558         Is_Package_Or_Generic_Package instead of hand-crafted tests.
559
560 2008-08-18  Samuel Tardieu  <sam@rfc1149.net>
561
562         PR ada/15808
563         * sem_ch6.adb (Check_Private_Overriding): Check for generic packages
564         as well.
565
566 2008-08-17  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
567
568         * adaint.c (_gnat_set_close_on_exec) [_WIN32]: Implement.
569
570 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
571
572         * gcc-interface/trans.c (call_to_gnu): Use the Sloc of the call
573         for back-copy statements in lieu of that of the actual.
574
575 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
576
577         PR ada/20548
578         * gcc-interface/decl.c (gnat_to_gnu_entity): Use DECL_SIZE_UNIT in the
579         setjmp test consistently.  Adjust for new behavior of flag_stack_check.
580         * gcc-interface/utils2.c (build_call_alloc_dealloc): Remove redundant
581         test of flag_stack_check.  Adjust for new behavior of flag_stack_check.
582
583 2008-08-13  Samuel Tardieu  <sam@rfc1149.net>
584
585         PR ada/36777
586         * sem_util.ads, sem_util.adb (Is_Protected_Self_Reference): New.
587         * sem_attr.adb (Check_Type): The current instance of a protected
588         object is not a type name.
589         (Analyze_Access_Attribute): Accept instances of protected objects.
590         (Analyze_Attribute, Attribute_Address clause): Ditto.
591         * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite
592         the prefix as being the current instance if needed.
593
594 2008-08-12  Danny Smith  <danyssmith@users.sourceforge.net>
595
596         * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) [WINDOWS]:
597         Remove duplicate s-win32.o. Add s-winext.o.
598
599 2008-08-12  Danny Smith  <danyssmith@users.sourceforge.net>
600
601         * g-stsifd-sockets.adb (Create): Replace Constants.SOCK_STREAM
602         with SOSC.SOCK__STREAM.
603         * g-socthi-mingw.adb (C_Select) Replace Constants.MSG_OOB with
604         SOSC.MSG_OOB.
605
606 2008-08-11  Joel Sherrill  <joel.sherrill@oarcorp.com>
607
608         * s-oscons-tmplt.c: RTEMS defines AF_INET6 but does support it.
609         * gsocket.h, socket.c: Update to support RTEMS.
610         * gcc-interface/Make-lang.in: Include CFLAGS_FOR_TARGET when cross.
611
612 2008-08-10  Samuel Tardieu  <sam@rfc1149.net>
613             Robert Dewar <dewar@adacore.com>
614
615         * exp_ch4.adb (Expand_N_Op_Expon): Force evaluation of
616         left argument even when right argument is 0.
617         (Expand_N_Op_Mod): Ditto when right argument is 1.
618         (Expand_N_Op_Multiply): Ditto when any argument is 0.
619         (Expand_N_Op_Rem): Ditto when right argument is 1.
620
621 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
622
623         * gcc-interface/misc.c (gnat_handle_option): Replace set_Wunused
624         by warn_unused.
625         
626 2008-08-08  Ed Schonberg  <schonberg@adacore.com>
627
628         * freeze.adb (Generate_Prim_Op_References): New procedure, abstracted
629         from Freeze_Entity. Used to generate cross-reference information for
630         types declared in generic packages.
631
632 2008-08-08  Thomas Quinot  <quinot@adacore.com>
633
634         * gcc-interface/Makefile.in: Reintroduce g-soccon.ads as a
635         compatibility shim.
636
637 2008-08-08  Thomas Quinot  <quinot@adacore.com>
638
639         * gsocket.h:
640         On Windows, include <errno.h> and redefine only selected errno values
641         from their <winsock2.h> definitions.
642
643         * s-osinte-freebsd.ads: Minor reformatting
644
645         * s-osinte-hpux.ads, s-osinte-irix.ads: Minor reformatting
646
647         * g-soccon.ads: New file.
648
649         * g-stheme.adb, g-socthi-vms.adb, g-socthi-vxworks.adb,
650         g-socthi-mingw.adb, g-sttsne-vxworks.adb, g-socthi.adb,
651         g-stsifd-sockets.adb, g-socket.adb, g-socket.ads,
652         g-sothco.adb, g-sothco.ads: Add back GNAT.Sockets.Constants as a child
653         unit, to allow building software that depends on this internal unit
654         with both older and newer compilers.
655
656 2008-08-08  Robert Dewar  <dewar@adacore.com>
657
658         * s-strxdr.adb: Minor reformatting
659
660 2008-08-08  Bob Duff  <duff@adacore.com>
661
662         * gnat_ugn.texi: The "Run-Time Checks" section said "arithmetic overflow
663         checking for integer operations (including division by zero)", which
664         is wrong -- divide by zero is not part of overflow checking.
665         Also added misc clarification about what check-suppression means.
666
667         * gnat_rm.texi: Clarify the meaning of pragma Suppress.
668
669 2008-08-08  Jerome Lambourg  <lambourg@adacore.com>
670
671         * g-comlin.adb (Add_Switch): Handle addition of switches at the
672         begining of the command line.
673         (Append, Add): Renaming of Append to Add as this now allows addition
674         at the begining of the list.
675         
676         * g-comlin.ads (Add_Switch): Handle addition of switches at the
677         begining of the command line.
678
679 2008-08-08  Thomas Quinot  <quinot@adacore.com>
680
681         * g-sercom.ads:
682         (Name): Document application scope (only legacy PC serial ports on
683         Linux and Windows).
684
685 2008-08-08  Thomas Quinot  <quinot@adacore.com>
686
687         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Revert
688         previous change, not needed after all.
689
690 2008-08-08  Ed Schonberg  <schonberg@adacore.com>
691
692         * exp_ch4.adb (Expand_Allocator_Expression): add check if null
693         exclusion indicator is present
694
695 2008-08-08  Robert Dewar  <dewar@adacore.com>
696
697         * g-comlin.adb: Minor code reorganization
698         Minor reformatting
699
700         * g-comlin.ads: Minor reformatting
701
702         * s-fileio.adb: Minor reformatting
703
704         * sem_attr.adb: Minor code reorganization (use Nkind_In)
705         Minor reformatting
706
707 2008-08-06  Samuel Tardieu  <sam@rfc1149.net>
708
709         * gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing
710         with s-oscons-tmplt.i.
711
712 2008-08-06  Samuel Tardieu  <sam@rfc1149.net>
713
714         * gcc-interface/Make-lang.in (OSCONS_CPPFLAGS): Remove.
715
716 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
717
718         * sem_ch3.adb (Analyze_Component_Declaration): Protect against misuse
719         of incomplete type.
720
721         * sem_ch8.adb (Analyze_Object_Renaming): Diagnose properly a renaming
722         of a formal parameter of an incomplete type. Improve error message for
723         other improper uses of incomplete types.
724
725 2008-08-06  Robert Dewar  <dewar@adacore.com>
726
727         * gnat_ugn.texi: Clarify -gnato documentation
728
729 2008-08-06  Thomas Quinot  <quinot@adacore.com>
730
731         * gcc-interface/Makefile.in,
732         g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb,
733         g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads,
734         g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads,
735         g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads,
736         g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads,
737         g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads,
738         g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads,
739         g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads,
740         g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads:
741         Remove GNAT.Sockets.Constants. This internal package is replaced by
742         System.OS_Constants.
743
744 2008-08-06  Thomas Quinot  <quinot@adacore.com>
745
746         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
747         Remove obsolete targets referencing gen-soccon
748         When generating s-oscons.ads, use a file name that includes the
749         THREAD_KIND, to ensure that the (potentially different) version from a
750         previous build with a different threads flavour does not get reused.
751
752 2008-08-06  Thomas Quinot  <quinot@adacore.com>
753
754         * sem_res.adb: Minor reformatting
755
756         * s-fileio.adb (Open): When file open operation fails, raise Name_Error
757         only when the operating system reports a non-existing file or directory
758         (ENOENT), otherwise raise Name_Error.
759
760         * exp_ch11.adb: Minor reformatting
761
762 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
763
764         * sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
765         incomplete, add the access_to_subprogram type to the list of private
766         dependents only if the incomplete type will be completed in the current
767         scope.
768         (Build_Discriminant_Constraints): If the type of the discriminant is
769         access_to_variable, reject a constraint that is access_to_constant.
770
771 2008-08-06  Thomas Quinot  <quinot@adacore.com>
772
773         * g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb,
774         g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads,
775         g-sttsne-dummy.ads: New files.
776
777         * gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources
778         with pragma Unimplemented_Unit for sockets packages on Nucleus.
779
780 2008-08-06  Pascal Obry  <obry@adacore.com>
781
782         * adaint.c: Another fix for ACL support on Windows.
783
784 2008-08-06  Javier Miranda  <miranda@adacore.com>
785
786         * exp_disp (Expand_Interface_Actuals): Adds missing support for
787         expansion of calls to subprograms using selected components.
788
789 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
790
791         * sem_res.adb (Resolve_Call): Use base type to determine whether a
792         dereference is needed because a subtype of an access_to_subprogram is
793         simply an access-subtype
794
795 2008-08-06  Jerome Lambourg  <lambourg@adacore.com>
796
797         * g-comlin.adb (Set_Command_Line): Now that aliases can contain
798         parameters, always specify the expected separator.
799
800 2008-08-06  Thomas Quinot  <quinot@adacore.com>
801
802         * xnmake.adb: Use new XUtil package for platform independent text
803         output.
804
805 2008-08-06  Vincent Celier  <celier@adacore.com>
806
807         * gnat_ugn.texi: Document compiler switch -gnateG
808
809 2008-08-06  Quentin Ochem  <ochem@adacore.com>
810
811         * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark
812         in the case of an empty pattern size.
813         (Compute_Result): Do not do any computation in the case of an empty
814         pattern size.
815         (Report_Result): Fixed computation of the overflow guard.
816
817 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
818
819         * g-awk.adb (Finalize): Do not use directly objects of the type in the
820         finalization routine to prevent elaboration order anomalies in new
821         finalization scheme.
822
823 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
824
825         * sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
826         declaration for the same type.
827
828 2008-08-06  Thomas Quinot  <quinot@adacore.com>
829
830         * sem.adb: Minor rewording (comment)
831
832 2008-08-06  Jerome Lambourg  <lambourg@adacore.com>
833
834         * g-comlin.adb (Define_Switch, Get_Switches): New.
835         (Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
836         ungrouping switches.
837         (For_Each_Simple_Switch): Allow more control over parameters handling.
838         This generic method now allows ungrouping of switches with parameters
839         and switches with more than one letter after the prefix.
840         (Set_Command_Line): Take care of switches that are prefixed with a
841         switch handling parameters without delimiter (-gnatya and -gnaty3 for
842         example).
843         (Add_Switch, Remove_Switch): Handle parameters possibly present inside
844         a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
845         the operation.
846         (Start, Alias_Switches, Group_Switches): Take care of parameters
847         possibly present inside a group.
848
849         * g-comlin.ads (Define_Switch): New method used to define a list of
850         expected switches, that are necessary for correctly ungrouping switches
851         with more that one character after the prefix.
852         (Get_Switches): Method that builds a getopt string from the list of
853         switches as set previously by Define_Switch.
854         (Add_Switch, Remove_Switch): New versions of the methods, reporting the
855         status of the operation. Also allow the removal of switches with
856         parameters only.
857         (Command_Line_Configuration_Record): Maintain a list of expected
858         switches.
859
860 2008-08-06  Doug Rupp  <rupp@adacore.com>
861
862         * gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if
863         TARGET_MALLOC64 clear.
864
865         * gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc
866         if TARGET_MALLOC64 clear.
867
868         * gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c
869         (TARGET_MALLC64): New macro. Default to clear.
870
871 2008-08-06  Doug Rupp  <rupp@adacore.com>
872
873         * gcc-interface/utils2.c (snames.h) Include
874         (TARGET_ABI_OPEN_VMS): Initialize.
875         (build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap
876         for Convention C.
877
878 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
879
880         * sem_ch3.adb (Process_Discriminants): diagnose redundant or improper
881         null exclusion in a discriminant declaration
882
883         * sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion
884         indicators when type is not an access type.
885
886         * sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion
887         indicators when type is not an access type.
888
889 2008-08-06  Javier Miranda  <miranda@adacore.com>
890
891         * exp_disp (Expand_Interface_Conversion): Freeze the entity associated
892         with the target interface before expanding the code of the interface
893         conversion.
894
895 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
896
897         * freeze.adb:
898         (Freeze_Entity): A deferred constant does not violate the restriction
899         No_Default_Initialization, 
900
901         * sem_ch3.adb (Process_Subtype): An allocator is a valid construct that
902         can carry a null exclusion indicator, and on which an error may be
903         posted if the indicator is redundant.
904
905         * sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion
906         does not apply to a subtype mark that already excludes null.
907
908         * sem_ch12.adb (Formal_Object_Declaration): Verify that a null
909         exclusion does not apply to a subtype mark that already excludes null.
910
911 2008-08-05  Thomas Quinot  <quinot@adacore.com>
912
913         * Makefile.rtl: Compile s-oscons.ads as part of the runtime library.
914
915 2008-08-05  Doug Rupp  <rupp@adacore.com>
916
917         * vms_data.ads: Translation for /POINTER_SIZE qualifier.
918
919 2008-08-05  Thomas Quinot  <quinot@adacore.com>
920
921         * gsocket.h: Make this file includable in a Nucleus environment, which
922         does not support sockets.
923
924         * socket.c: Remove Nucleus-specific hack.
925
926 2008-08-05  Pascal Obry  <obry@adacore.com>
927
928         * adaint.c: Remove support for readable attribute on vxworks and nucleus
929
930 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
931
932         * sem_attr.adb:
933         (Analyze_Attribute, case 'Result): handle properly the case where some
934         operand of the expression in a post-condition generates a transient
935         block.
936
937         * sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to
938         right-hand side when it is an anonymous access_to_subprogram, to force
939         static accessibility check when needed.
940
941 2008-08-05  Sergey Rybin  <rybin@adacore.com>
942
943         * gnat_ugn.texi: Changing the description of the gnatcheck metrics
944         rule according to the change in the rule option.
945         Add documentation for -gnatw.b/-gnatw.B
946
947 2008-08-05  Robert Dewar  <dewar@adacore.com>
948
949         * ug_words: Add entries for -gnatw.b/-gnatw.B
950
951         * vms_data.ads: Add entries for -gnatw.b/-gnatw.B
952
953 2008-08-05  Vincent Celier  <celier@adacore.com>
954
955         * a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
956         (File).
957         
958         * a-ztdeio.adb: Ditto.
959
960 2008-08-05  Pascal Obry  <obry@adacore.com>
961
962         * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
963         readable attribute.
964
965 2008-08-05  Vincent Celier  <celier@adacore.com>
966
967         * s-wchwts.adb:
968         (Wide_String_To_String): Returns a String with the same 'First as its
969         parameter S.
970         (Wide_Wide_String_To_String): Ditto
971         
972         * s-wchwts.ads:
973         (Wide_String_To_String): Document that the lowest index of the returned
974         String is equal to S'First.
975
976 2008-08-05  Thomas Quinot  <quinot@adacore.com>
977
978         * xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.
979
980         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
981         s-oscons.ads
982
983 2008-08-05  Robert Dewar  <dewar@adacore.com>
984
985         * opt.ads (Warn_On_Biased_Representation): New flag
986         
987         * sem_ch13.adb:
988         (Analyze_Attribute_Definition_Clause): Issue warning when biased
989         representation is required.
990         (Minimum_Size): Don't allow biasing if enum rep clause case
991         
992         * sem_warn.adb:
993         (Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
994         (Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
995         
996         * usage.adb: Add lines for -gnatw.b/B switches
997
998 2008-08-05  Pascal Obry  <obry@adacore.com>
999
1000         * a-coinve.adb: Reorder the code to avoid uninitialized warning.
1001
1002         * adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
1003
1004 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1005
1006         * socket.c: Minor reformatting.
1007
1008 2008-08-05  Robert Dewar  <dewar@adacore.com>
1009
1010         * sem_ch3.adb: Minor reformatting
1011
1012         * prj-nmsc.adb: Minor reformatting
1013
1014 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
1015
1016         * sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
1017         visibility check on the component type if the simple test fails.
1018
1019 2008-08-05  Jose Ruiz  <ruiz@adacore.com>
1020
1021         * init.c (__gnat_install_handler for linux): If we are building the
1022         Xenomai run time then we need to do two additional things: avoid
1023         memory swapping and transform the Linux environment task into a native
1024         Xenomai task.
1025
1026         * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
1027         time): Use interface to Xenomai native skin and avoid linux-specific
1028         way of setting CPU affinity.
1029         (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.
1030
1031 2008-08-05  Bob Duff  <duff@adacore.com>
1032
1033         * checks.ads: Minor comment fix
1034
1035 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1036
1037         * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
1038         g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
1039         CS8.
1040
1041 2008-08-05  Robert Dewar  <dewar@adacore.com>
1042
1043         * mlib.adb: Minor code reorganization
1044         Minor reformatting
1045
1046         * make.adb: Minor reformatting
1047
1048         * prj-attr.ads: Minor reformatting
1049
1050         * s-os_lib.adb: Minor reformatting
1051
1052         * s-fileio.adb: Minor code reorganization
1053         Minor reformatting
1054
1055         * prj.ads: Minor reformatting
1056
1057 2008-08-05  Bob Duff  <duff@adacore.com>
1058
1059         * sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
1060         unresolved initial value of "null", because it causes implicitly
1061         generated "=" operators to be ambiguous, and because this type should
1062         not be passed to gigi.
1063
1064 2008-08-05  Vincent Celier  <celier@adacore.com>
1065
1066         * mlib.adb: Update comments.
1067
1068         * make.adb (Switches_Of): Check for Switches (others), before checking
1069         for Default_Switches ("Ada").
1070         (Gnatmake): Use Builder'Switches (others) in preference to
1071         Builder'Default_Switches ("Ada") if there are several mains.
1072
1073         * prj-attr-pm.adb:
1074         (Add_Attribute): Add component Others_Allowed in Attribute_Record
1075         aggregate.
1076
1077         * prj-attr.adb:
1078         Add markers to indicates that attributes Switches allow others as index
1079         (Others_Allowed_For): New Boolean function, returning True for
1080         attributes with the mark.
1081         (Initialize): Recognize optional letter 'O' as the marker for
1082         associative array attributes where others is allowed as the index.
1083
1084         * prj-attr.ads:
1085         (Others_Allowed_For): New Boolean function
1086         (Attribute_Record): New Boolean component Others_Allowed
1087         
1088         * prj-dect.adb:
1089         (Parse_Attribute_Declaration): For associative array attribute where
1090         others is allowed as the index, allow others as an index.
1091
1092         * prj-nmsc.adb:
1093         (Process_Binder): Skip associative array attributes with index others
1094         (Process_Compiler): Ditto
1095
1096         * prj-util.adb:
1097         (Value_Of (Index, In_Array)): Make no attempt to put in lower case when
1098         index is All_Other_Names.
1099
1100         * prj.ads:
1101         (All_Other_Names): New constant
1102
1103         * prj-proc.adb:
1104         (Process_Declarative_Items): Skip associative array attribute when index
1105         is reserved word "others".
1106
1107 2008-08-05  Vasiliy Fofanov  <fofanov@adacore.com>
1108
1109         * gen-oscons.c: Adapt for VMS where termios.h is not available.
1110
1111 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1112
1113         * a-rttiev.adb: Minor reformatting (comments)
1114
1115         * gen-soccon.c: Rename to gen-oscons.c
1116
1117         * gen-oscons.c: New file. Now generate System.OS_Constants instead of
1118         GNAT.Sockets.Constants.
1119         Add new constants for GNAT.Serial_Communications and System.File_IO.
1120
1121 2008-08-05  Javier Miranda  <miranda@adacore.com>
1122
1123         * sem_util.adb (Collect_Interfaces_Info): Minor reformating.
1124         * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
1125         implementation of this routine has been simplified.
1126
1127 2008-08-05  Pascal Obry  <obry@adacore.com>
1128
1129         * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
1130         Set_Read_Only Win32 implementation.
1131
1132 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1133
1134         * exp_strm.adb: Minor reformatting (comments)
1135
1136         * sem_ch12.adb: Minor reformatting.
1137
1138 2008-08-05  Robert Dewar  <dewar@adacore.com>
1139
1140         * sem_ch3.adb: Minor reformatting
1141
1142         * checks.adb: Minor reformatting
1143
1144 2008-08-05  Thomas Quinot  <quinot@adacore.com>
1145
1146         * tbuild.ads (New_External_Name): Update spec to reflect relaxed
1147         restriction on Prefix.
1148
1149 2008-08-05  Jerome Lambourg  <lambourg@adacore.com>
1150
1151         * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
1152         methods needed to handle switch sections when building a command line.
1153         (Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
1154         Current_Section): New public methods or methods modified to handle
1155         building command lines with sections.
1156         (Set_Command_Line): Take into account sections when analysing a switch
1157         string.
1158         (Start): Sort the switches by sections before iterating the command line
1159         elements.
1160         
1161         * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
1162         Is_New_Section, Current_Section): New methods or methods modified to
1163         handle building command lines with sections.
1164
1165 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
1166
1167         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
1168         discriminants, indicate that the corresponding object declaration has
1169         no initialization, to prevent spurious warnings when the access type is
1170         null-excluding.
1171
1172 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
1173
1174         * sem_res.adb (Resolve_Call): If this is a call to the predefined
1175         Abort_Task, warn if the call appears within a protected operation.
1176
1177 2008-08-04  Robert Dewar  <dewar@adacore.com>
1178
1179         * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
1180
1181 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1182
1183         * sem_ch3.adb:
1184         (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
1185         anonymous access to protected subprogram that is the return type of the
1186         specification of a subprogram body.
1187
1188         * sem_ch6.adb:
1189         (Analyze_Subprogram_Body): if the return type is an anonymous access to
1190         subprogram, freeze it now to prevent access anomalies in the back-end.
1191
1192         * exp_ch9.adb: Minor code cleanup.
1193         Make sure that new declarations are inserted into the tree before
1194         analysis (from code reading).
1195
1196 2008-08-04  Robert Dewar  <dewar@adacore.com>
1197
1198         * exp_ch5.adb:
1199         (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
1200         at point of return.
1201
1202 2008-08-04  Thomas Quinot  <quinot@adacore.com>
1203
1204         * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
1205
1206 2008-08-04  Vasiliy Fofanov  <fofanov@adacore.com>
1207
1208         * g-soccon-mingw.ads: Fix value for MSG_WAITALL
1209
1210 2008-08-04  Javier Miranda  <miranda@adacore.com>
1211
1212         * sem_prag.adb (Process_Convention): Add missing support for
1213          N_Private_Extension_Declaration nodes.
1214
1215 2008-08-04  Robert Dewar  <dewar@adacore.com>
1216
1217         * exp_ch4.adb: Minor reformatting
1218
1219 2008-08-04  Pascal Obry  <obry@adacore.com>
1220
1221         * adaint.h: Add missing prototype.
1222
1223         * adaint.c: Refine support for Windows file attributes.
1224
1225 2008-08-04  Robert Dewar  <dewar@adacore.com>
1226
1227         * sem_res.adb:
1228         (Valid_Conversion): Catch case of designated types having different
1229         sizes, even though they statically match.
1230
1231 2008-08-04  Javier Miranda  <miranda@adacore.com>
1232
1233         * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
1234         added in previous patch to handle access to subprograms.
1235
1236 2008-08-04  Robert Dewar  <dewar@adacore.com>
1237
1238         * freeze.adb:
1239         (Freeze_Entity): Only check No_Default_Initialization restriction for
1240         constructs that come from source
1241
1242 2008-08-04  Thomas Quinot  <quinot@adacore.com>
1243
1244         * exp_ch6.adb: Minor comment fix.
1245
1246         * sem_ch4.adb: Minor reformatting.
1247
1248 2008-08-04  Robert Dewar  <dewar@adacore.com>
1249
1250         * sem_res.adb: (Large_Storage_Type): Improve previous change.
1251
1252 2008-08-04  Pascal Obry  <obry@adacore.com>
1253
1254         * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
1255         file attributes.
1256
1257 2008-08-04  Javier Miranda  <miranda@adacore.com>
1258
1259         * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
1260         for N_Formal_Object_Declaration nodes. Adding kludge required by
1261         First_Formal to provide its functionality with access to functions.
1262         (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
1263         for anonymous access types returned by functions.
1264
1265         * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
1266         conversion of null-excluding access types (required only once to force
1267         the generation of the required runtime check).
1268
1269         * sem_type.adb (Covers): minor reformating
1270
1271         * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
1272         with internally generated nodes. Avoid generating the error inside init
1273         procs.
1274
1275         * sem_res.adb (Resolve_Membership_Test): Minor reformating.
1276         (Resolve_Null): Generate the null-excluding check in case of assignment
1277         to a null-excluding object.
1278         (Valid_Conversion): Add missing support for anonymous access to
1279         subprograms.
1280
1281         * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
1282         anonymous access types whose designated type is an itype. This case
1283         occurs with anonymous access to protected subprograms types.
1284         (Analyze_Return_Type):  Add missing support for anonymous access to
1285         protected subprogram.
1286
1287         * sem_eval.adb (Subtypes_Statically_Match): In case of access to
1288         subprograms addition of missing check on matching convention. Required
1289         to properly handle access to protected subprogram types.
1290
1291         * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
1292         null excluding access types.
1293
1294 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1295
1296         * sem_ch12.adb: Add comments
1297
1298         * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
1299         access type and the allocator is not initialized, warn rather than
1300         reporting an error.
1301
1302 2008-08-04  Robert Dewar  <dewar@adacore.com>
1303
1304         * exp_ch4.adb: Minor reformatting
1305
1306         * exp_dist.adb: Minor reformatting
1307
1308         * g-comlin.adb: Minor reformatting
1309
1310 2008-08-04  Gary Dismukes  <dismukes@adacore.com>
1311
1312         * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
1313         target to the type of the aggregate in the case where the target object
1314         is class-wide.
1315
1316         * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
1317         result type is class-wide and inherently limited, and the expression
1318         has a specific type, create a return object of the specific type, for
1319         more efficient handling of returns of build-in-place aggregates (avoids
1320         conversions of the class-wide return object to the specific type on
1321         component assignments).
1322
1323         * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
1324         about a type mismatch for a class-wide function with a return object
1325         having a specific type when the object declaration doesn't come from
1326         source. Such an object can result from the expansion of a simple return.
1327
1328 2008-08-04  Vasiliy Fofanov  <fofanov@adacore.com>
1329
1330         * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
1331
1332         * gcc-interface/Makefile.in: Use 64bit-specific system files when
1333         compiling for 64bit windows.
1334
1335 2008-08-04  Jerome Lambourg  <lambourg@adacore.com>
1336
1337         * g-comlin.adb (Group_Switches): Preserve the switch order when
1338         grouping and allow switch grouping of switches with more than one
1339         character extension (e.g. gnatw.x).
1340         (Args_From_Expanded): Remove this now obsolete method.
1341
1342 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1343
1344         * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
1345         chain at once, to ensure that type is properly decorated for back-end,
1346         when allocator appears within a loop.
1347
1348 2008-08-04  Kevin Pouget  <pouget@adacore.com>
1349
1350         * snames.h, snames.adb, snames.ads:
1351         Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
1352
1353         * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
1354         Build_To_Any_Call and Build_TypeCode_Call procedures.
1355
1356         * exp_attr.adb, sem_attr.adb: Add corresponding cases.
1357
1358         * rtsfind.ads: Add corresponding names.
1359
1360         * tbuild.adb: Update prefix restrictions to allow '_' character.
1361
1362 2008-08-04  Doug Rupp  <rupp@adacore.com>
1363
1364         * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
1365         * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
1366         * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
1367         use it.  Calculate pointer range overflow using 64bit types.
1368
1369 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1370
1371         * sem_ch3.adb (Access_Definition): A formal object declaration is a
1372         legal context for an anonymous access to subprogram.
1373
1374         * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
1375         indirect call, report success to the caller to include possible
1376         interpretation.
1377
1378         * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
1379         check when the type
1380         of the extended return is an anonymous access_to_subprogram type.
1381
1382         * sem_res.adb:
1383         (Resolve_Call): Insert a dereference if the type of the subprogram is an
1384         access_to_subprogram and the context requires its return type, and a
1385         dereference has not been introduced previously.
1386
1387 2008-08-04  Arnaud Charlet  <charlet@adacore.com>
1388
1389         * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
1390         gnatcheck support in GPS.
1391
1392 2008-08-04  Vincent Celier  <celier@adacore.com>
1393
1394         * mlib.adb (Create_Sym_Links): Create relative symbolic links when
1395         requested
1396
1397 2008-08-04  Vincent Celier  <celier@adacore.com>
1398
1399         * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
1400         variable, but don't check the resulting value as it has no impact on
1401         the processing.
1402         
1403         * opt.ads:
1404         (Generate_Processed_File): New Boolean flag, set to True in the compiler
1405         when switch -gnateG is used.
1406         
1407         * prep.adb:
1408         (Preprocess): new Boolean out parameter Source_Modified. Set it to True
1409         when the source is modified by the preprocessor and there is no
1410         preprocessing errors.
1411         
1412         * prep.ads (Preprocess): new Boolean out parameter Source_Modified
1413         
1414         * sinput-l.adb:
1415         (Load_File): Output the result of preprocessing if the source text was
1416         modified.
1417         
1418         * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
1419         
1420         * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
1421         
1422         * ug_words: Add VMS equivalent for -gnateG
1423         
1424         * vms_data.ads:
1425         Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
1426
1427 2008-08-04  Doug Rupp  <rupp@adacore.com>
1428
1429         * gcc-interface/utils2.c:
1430         (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
1431         in 32bit descriptor.
1432
1433 2008-08-04  Robert Dewar  <dewar@adacore.com>
1434
1435         * par-ch10.adb: Minor reformatting
1436
1437         * i-cobol.adb: Minor reformatting.
1438
1439 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1440
1441         * sem_ch3.adb (Access_Definition): Create an itype reference for an
1442         anonymous access return type of a regular function that is not a
1443         compilation unit.
1444
1445 2008-08-04  Vincent Celier  <celier@adacore.com>
1446
1447         * prj-attr.adb: New Builder attribute Global_Compilation_Switches
1448         
1449         * snames.adb: New standard name Global_Compilation_Switches
1450         
1451         * snames.ads: New standard name Global_Compilation_Switches
1452
1453         * make.adb: Correct spelling error in comment
1454
1455 2008-08-04  Arnaud Charlet  <charlet@adacore.com>
1456
1457         * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
1458         target.
1459
1460 2008-08-04  Thomas Quinot  <quinot@adacore.com>
1461
1462         * sem_ch10.adb: Minor comment fix.
1463
1464 2008-08-04  Robert Dewar  <dewar@adacore.com>
1465
1466         * restrict.adb: Improved messages for restriction warnings
1467
1468         * restrict.ads: Improved messages for restriction messages
1469
1470         * s-rident.ads (Profile_Name): Add No_Profile
1471
1472 2008-08-04  Robert Dewar  <dewar@adacore.com>
1473
1474         * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
1475
1476 2008-08-04  Robert Dewar  <dewar@adacore.com>
1477
1478         * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
1479
1480 2008-08-04  Vincent Celier  <celier@adacore.com>
1481
1482         * prj-proc.adb:
1483         (Copy_Package_Declarations): When inheriting package Naming from a
1484         project being extended, do not inherit source exception names.
1485
1486 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
1487
1488         * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
1489         list of declaration to find previous subprogram, do not go to the
1490         original node of a generic unit.
1491
1492 2008-08-02  Eric Botcazou  <ebotcazou@adacore.com>
1493
1494         * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
1495         New case.  Convert BOOLEAN_TYPE operation to the default integer type.
1496
1497 2008-08-01  Eric Botcazou  <ebotcazou@adacore.com>
1498
1499         * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
1500         * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
1501         and adjust for above renaming.
1502         * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
1503         gnu_expr_alt_type parameter.  Convert the expression to it instead
1504         of changing its type in place.
1505         (build_function_stub): Adjust call to above function.
1506
1507 2008-08-01  Eric Botcazou  <ebotcazou@adacore.com>
1508
1509         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
1510         code.  Do not get full definition of deferred constants with address
1511         clause for a use.  Do not ignore deferred constant definitions with
1512         address clause.  Ignore constant definitions already marked with the
1513         error node.
1514         <object>: Remove obsolete comment.  For a deferred constant with
1515         address clause, get the initializer from the full view.
1516         * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
1517         Rework and remove obsolete comment.
1518         <N_Object_Declaration>: For a deferred constant with address clause,
1519         mark the full view with the error node.
1520         * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
1521         formatting nits.
1522
1523 2008-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
1524
1525         * rtsfind.ads: Add block IO versions of stream routines for Strings.
1526         
1527         * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
1528         sem_prag.adb, snames.adb, snames.ads, snames.h,
1529         par-prag.adb: Undo previous stream related changes.
1530         
1531         * s-rident.ads: Add new restriction No_Stream_Optimizations.
1532         
1533         * s-ststop.ads, s-ststop.adb: Comment reformatting.
1534         Define enumeration type to designate different IO mechanisms.
1535         Enchance generic package Stream_Ops_Internal to include an
1536         implementation of Input and Output.
1537
1538         * exp_attr.adb (Find_Stream_Subprogram): If restriction
1539         No_Stream_Optimization is active, choose the default byte IO
1540         implementations of stream attributes for Strings.
1541         Otherwise use the corresponding block IO version.
1542
1543 2008-08-01  Olivier Hainque  <hainque@adacore.com>
1544         
1545         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
1546         turn Ada Pure into GCC const, now implicitely implying nothrow as well.
1547
1548 2008-08-01  Robert Dewar  <dewar@adacore.com>
1549
1550         * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
1551         convert plain identifier into defining identifier.
1552
1553 2008-08-01  Robert Dewar  <dewar@adacore.com>
1554
1555         * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
1556         warnings
1557
1558         * lib-xref.adb: Add error defense.
1559
1560 2008-08-01  Bob Duff  <duff@adacore.com>
1561
1562         * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
1563
1564 2008-08-01  Gary Dismukes  <dismukes@adacore.com>
1565
1566         * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
1567         correct accessibility levels. In the "when others" case, retrieve the
1568         access level of the Etype of Prev rather than Prev_Orig, because the
1569         original exression has not always been analyzed.
1570
1571 2008-08-01  Robert Dewar  <dewar@adacore.com>
1572
1573         * prj-nmsc.adb: Minor reformatting
1574
1575         * sem_ch4.adb: Minor reformatting
1576         Minor code reorganization
1577
1578         * prj.ads: Minor reformatting
1579
1580         * s-os_lib.adb: Minor reformatting
1581
1582         * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
1583         half encodings
1584
1585         * scans.ads: Minor reformatting.
1586
1587         * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
1588         (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
1589
1590         * sem_res.adb:
1591         (Resolve_Call): Check violation of No_Specific_Termination_Handlers
1592
1593         * sem_ch12.adb: Minor comment reformatting
1594
1595         * par-ch3.adb (P_Type_Declaration): Properly handle missing type
1596         keyword
1597
1598 2008-08-01  Robert Dewar  <dewar@adacore.com>
1599
1600         * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
1601         generating code
1602
1603 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
1604
1605         * checks.adb (Apply_Float_Conversion_Check): If the expression to be
1606         converted is a real literal and the target type has static bounds,
1607         perform the conversion exactly to prevent floating-point anomalies on
1608         some targets.
1609
1610 2008-08-01  Vincent Celier  <celier@adacore.com>
1611
1612         * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
1613         
1614         * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
1615         
1616         * prj.adb (Object_Exist_For): Use Object_Generated, not
1617         Objects_Generated that is removed and was never modified anyway.
1618
1619         * prj.ads:
1620         (Path_Syntax_Kind): New enumeration type
1621         (Language_Config): New component Path_Syntax, defaulted to Host.
1622         Components PIC_Option and Objects_Generated removed, as they are not
1623         used.
1624
1625         * snames.adb: New standard name Path_Syntax
1626         
1627         * snames.ads: New standard name Path_Syntax
1628
1629 2008-08-01  Vincent Celier  <celier@adacore.com>
1630
1631         * mlib-utl.adb:
1632         (Adalib_Path): New variable to store the path of the adalib directory
1633         when procedure Specify_Adalib_Dir is called.
1634         (Lib_Directory): If Adalib_Path is not null, return its value
1635         (Specify_Adalib_Dir): New procedure
1636         
1637         * mlib-utl.ads (Specify_Adalib_Dir): New procedure
1638
1639 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
1640
1641         * sem_prag.adb:
1642         (Check_Precondition_Postcondition): If not generating code, analyze the
1643         expression in a postcondition that appears in a subprogram body, so that
1644         it is properly decorated for ASIS use.
1645
1646 2008-08-01  Gary Dismukes  <dismukes@adacore.com>
1647
1648         * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
1649         Orig_Prev to Prev in the case where the actual is N_Function_Call or
1650         N_Identifier. This was interfering with other cases that are rewritten
1651         as N_Identifier, such as allocators, resulting in passing of the wrong
1652         accessibility level, and based on testing this code is apparently no
1653         longer needed at all.
1654
1655 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
1656
1657         * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
1658         procedure call whose prefix
1659         is a parameterless function call that returns an access_to_procedure.
1660
1661 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
1662
1663         * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
1664         for RTX. Adding a suffix that is incremented at each iteration.
1665
1666 2008-08-01  Robert Dewar  <dewar@adacore.com>
1667
1668         * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
1669         Raise_Exception
1670
1671 2008-08-01  Jerome Lambourg  <lambourg@adacore.com>
1672
1673         * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
1674         paths, which are authorized by Windows but can lead to errors when used
1675         elsewhere.
1676
1677 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
1678
1679         * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
1680         a pending instantiation for the body of a subprogram that is to be
1681         inlined.
1682
1683         * sem_ch12.adb:
1684         (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
1685
1686         * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
1687         create a pending instance for its body, so that calls to the subprogram
1688         can be inlined by the back-end.
1689
1690 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
1691
1692         * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
1693         rts-rtx-w32).
1694
1695 2008-08-01  Robert Dewar  <dewar@adacore.com>
1696
1697         * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
1698
1699 2008-08-01  Doug Rupp  <rupp@adacore.com>
1700
1701         * gnat_rm.texi: Document new mechanism Short_Descriptor.
1702         
1703         * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
1704         mechanism values.
1705
1706         * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
1707         mechanism and Short_Descriptor mechanism values.
1708
1709         * snames.adb (preset_names): Add short_descriptor entry.
1710
1711         * snames.ads: Add Name_Short_Descriptor.
1712
1713         * types.h: Add new By_Short_Descriptor mechanism values.
1714
1715         * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
1716         mechanism and Short_Descriptor mechanism values.
1717
1718         * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
1719         values.
1720         (Descriptor_Codes): Modify range for new mechanism values.
1721
1722         * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
1723         mechanism values.
1724
1725         * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
1726         (gnat_to_gnu_param): Handle By_Short_Descriptor.
1727
1728         * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
1729         (build_vms_descriptor32): New prototype.
1730         (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
1731
1732         * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
1733         argument in call fill_vms_descriptor.
1734
1735         * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
1736         build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
1737         (build_vms_descriptor): Renamed from build_vms_descriptor64. 
1738         (convert_vms_descriptor32): New function.
1739         (convert_vms_descriptor64): New function.
1740         (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
1741         descriptors.
1742
1743         * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
1744         no longer needed.
1745
1746 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
1747
1748         * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
1749         nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
1750         name.
1751
1752 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
1753
1754         * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
1755         current directory so only fully qualified names are allowed.
1756
1757 2008-08-01  Robert Dewar  <dewar@adacore.com>
1758
1759         * gnat_ugn.texi:
1760         Minor editing, remove uncomfortable use of semicolon
1761
1762         * s-ststop.adb: Add some ??? comments
1763
1764         * sem_ch10.adb: Minor reformatting
1765
1766         * snames.ads:
1767         Minor comment fixes, some pragmas were not properly
1768         categorized in the comments, documentation change only
1769
1770         * xref_lib.adb: Minor reformatting
1771
1772         * sinput.adb: Minor reformatting
1773
1774         * gnatchop.adb: Minor reformatting
1775
1776         * sem_util.ads: Minor reformatting.
1777
1778         * opt.ads: Minor documentation fix
1779
1780         * scng.adb: Minor reformatting
1781
1782         * prj-part.adb: Update comments
1783
1784 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
1785
1786         * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
1787         tagged synchronized type, use corresponding record type.
1788
1789 2008-08-01  Doug Rupp  <rupp@adacore.com>
1790
1791         * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
1792         dummy transfer address for debugging.
1793         
1794         * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
1795
1796         * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
1797
1798 2008-07-31  Eric Botcazou  <ebotcazou@adacore.com>
1799
1800         * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
1801         * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
1802
1803 2008-07-31  Pascal Obry  <obry@adacore.com>
1804
1805         * prj-nmsc.adb: Keep Object and Exec directory casing.
1806
1807 2008-07-31  Jose Ruiz  <ruiz@adacore.com>
1808
1809         * system-rtx-rtss.ads
1810         Change the default stack size. It is important to set the commit part.
1811         
1812         * s-taprop-rtx.adb
1813         (Initialize): Get the clock resolution.
1814         (RT_Resolution): Return the clock resolution that is indicated by the
1815         system.
1816
1817         * s-parame-vxworks.adb
1818         Document that this body is used for RTX in RTSS (kernel) mode.
1819
1820         * gcc-interface/Makefile.in
1821         (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
1822         s-parame-vxworks.adb body in order to have reasonable stack sizes in
1823         RTX RTSS kernel mode. Virtual memory is not used in that case, so we
1824         cannot ask for too big values.
1825
1826 2008-07-31  Robert Dewar  <dewar@adacore.com>
1827
1828         * exp_aggr.adb: Minor reformatting
1829
1830         * makeutl.adb: Minor reformatting
1831
1832         * prj-env.adb: Minor reformatting
1833
1834 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
1835
1836         * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
1837         tagged type is completed by a concurrent type.
1838
1839 2008-07-31  Gary Dismukes  <dismukes@adacore.com>
1840
1841         * sem_aggr.adb:
1842         (Resolve_Record_Aggregate): Bypass error that a type without
1843         components must have a "null record" aggregate when compiling for Ada
1844         2005, since it's legal to give an aggregate of form (others => <>)
1845         for such a type.
1846
1847 2008-07-31  Javier Miranda  <miranda@adacore.com>
1848
1849         * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
1850         handle synchronized types. Required to handle well the object.operation
1851         notation applied to synchronized types.
1852
1853 2008-07-31  Quentin Ochem  <ochem@adacore.com>
1854
1855         * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
1856         anymore - just used internally.
1857         Added handling of very small tasks - when the theoretical size is
1858         already full at the point of the call.
1859         (Report_Result): Fixed result computation, Stack_Used_When_Filling does
1860         not need to be added to the result.
1861
1862 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
1863
1864         * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
1865         corresponding spec is a primitive wrapper. Update comment.
1866
1867 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
1868
1869         * bindgen.adb Comment reformatting. Update the list of run-time globals.
1870         (Gen_Adainit_Ada): Add the declaration, import and value set for
1871         configuration flag Canonical_Streams.
1872         (Gen_Adainit_C): Add the declaration and initial value of external
1873         symbol __gl_canonical_streams.
1874         
1875         * init.c: Update the list of global values computed by the binder.
1876         
1877         * opt.ads: Add flag Canonical_Streams.
1878         
1879         * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
1880         semantically handled pragmas.
1881         
1882         * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
1883         (Analyze_Pragma): Add case for pragma Canonical_Streams.
1884         
1885         * snames.adb: Add character value for name Canonical_Streams.
1886         
1887         * snames.ads:
1888         Add Name_Canonical_Streams to the list of configuration pragmas.
1889         Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
1890         
1891         * snames.h: Add a definition for Pragma_Canonical_Streams.
1892         
1893         * s-ststop.adb:
1894         Add a flag and import to seize the value of external symbol
1895         __gl_canonical_streams. Update comment and initial value of constant
1896         Use_Block_IO.
1897         
1898         * gnat_rm.texi: Add section of pragma Canonical_Streams.
1899         
1900         * gnat_ugn.texi:
1901         Add pragma Canonical_Streams to the list of configuration pragmas.
1902
1903 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
1904
1905         * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
1906         has the form A.B.C and B is a unit renaming, analyze its compilation
1907         unit and add a with_clause on A.b to the context.
1908
1909 2008-07-31  Vincent Celier  <celier@adacore.com>
1910
1911         * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
1912         return the empty string, instead of raising Constraint_Error.
1913
1914 2008-07-31  Gary Dismukes  <dismukes@adacore.com>
1915
1916         * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
1917         
1918         * checks.adb (Apply_Accessibility_Check): Insert the check on
1919         Insert_Node.
1920         
1921         * exp_attr.adb:
1922         (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
1923         to new parameter Insert_Node on call to Apply_Accessibility_Check.
1924         Necessary to distinguish the insertion node because the dereferenced
1925         formal may come from a rename, but the check must be inserted in
1926         front of the attribute.
1927         
1928         * exp_ch4.adb:
1929         (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
1930         call to Apply_Accessibility_Check.
1931         (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
1932         on call to Apply_Accessibility_Check.
1933         Minor reformatting
1934
1935 2008-07-31  Javier Miranda  <miranda@adacore.com>
1936
1937         * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
1938         types when the candidate type is a synchronized type.
1939         
1940         * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
1941         types, and complete management of synchronized types adding missing
1942         code to handle formal that is a synchronized type.
1943         
1944         * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
1945         are not available and cause the compiler to blowup. Found compiling
1946         test with switch -gnatc
1947         
1948         * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
1949         Has_Correct_Formal_Mode plus code cleanup.
1950
1951 2008-07-31  Bob Duff  <duff@adacore.com>
1952
1953         * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
1954         recognized as two end-of-lines, but it should be just one.
1955
1956 2008-07-31  Thomas Quinot  <quinot@adacore.com>
1957
1958         * exp_ch9.adb: Minor reformatting
1959
1960         * tbuild.ads: Fix several occurrences of incorrectly referring to
1961         Name_Find as Find_Name.
1962
1963 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
1964
1965         * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
1966         and the context is an object declaration with non-static bounds, treat
1967         the aggregate as non-static.
1968
1969 2008-07-31  Vincent Celier  <celier@adacore.com>
1970
1971         * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
1972         Move back spec of Parse_Single_Project to body, as it is not called
1973         outside of package Prj.Part.
1974         (Project_Data): Remove components Linker_Name, Linker_Path and
1975         Minimum_Linker_Options as they are no longer set.
1976         Remove function There_Are_Ada_Sources from package Prj and move code
1977         in the only place it was used, in Prj.Env.Set_Ada_Paths.
1978
1979 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
1980
1981         * mlib-utl.ads: Fix typo.
1982
1983 2008-07-31  Robert Dewar  <dewar@adacore.com>
1984
1985         * sem_ch12.adb: Minor reformatting
1986
1987 2008-07-31  Sergey Rybin  <rybin@adacore.com>
1988
1989         * gnat_ugn.texi: Change the description of the
1990         Overly_Nested_Control_Structures: now the rule always requires a
1991         positive parameter for '+R' option
1992
1993 2008-07-31  Thomas Quinot  <quinot@adacore.com>
1994
1995         * g-pehage.adb: Minor reformatting
1996
1997 2008-07-31  Pascal Obry  <obry@adacore.com>
1998
1999         * s-finimp.ads: Minor reformatting.
2000
2001 2008-07-31  Vincent Celier  <celier@adacore.com>
2002
2003         * s-regexp.ads: Minor comment fix
2004
2005 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
2006
2007         * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
2008         so that we can compile this file successfully with -gnatc.
2009
2010 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
2011
2012         * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
2013         of the type when looking for stream subprograms for type String,
2014         Wide_String and Wide_Wide_String.
2015         
2016         * s-ststop.adb: Change the initialization expression of constant
2017         Use_Block_IO.
2018
2019 2008-07-31  Geert Bosch  <bosch@adacore.com>
2020
2021         * arit64.c:
2022         New file implementing __gnat_mulv64 signed integer multiplication with
2023         overflow checking
2024
2025         * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
2026
2027         * gcc-interface/gigi.h:
2028         (standard_types): Add ADT_mulv64_decl
2029         (mulv64_decl): Define subprogram declaration for __gnat_mulv64
2030
2031         * gcc-interface/utils.c:
2032         (init_gigi_decls): Add initialization of mulv64_decl
2033
2034         * gcc-interface/trans.c:
2035         (build_unary_op_trapv): New function
2036         (build_binary_op_trapv): New function
2037         (gnat_to_gnu): Use the above functions instead of
2038         build_{unary,binary}_op
2039
2040         * gcc-interface/Makefile.in
2041         (LIBGNAT_SRCS): Add arit64.c
2042         (LIBGNAT_OBJS): Add arit64.o
2043
2044 2008-07-31  Vincent Celier  <celier@adacore.com>
2045
2046         * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
2047         Linker'Default_Switches are declared. Warn if they are declared.
2048
2049 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
2050
2051         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
2052         Insert_Actions to place the pointer declaration in the code, rather
2053         than Insert_Before_And_Analyze, so that insertions of temporaries are
2054         kept in the proper order when transient scopes are present.
2055
2056
2057 2008-07-31  Robert Dewar  <dewar@adacore.com>
2058
2059         * einfo.adb (Spec_PPC): Now defined for generic subprograms
2060         
2061         * einfo.ads (Spec_PPC): Now defined for generic subprograms
2062         
2063         * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
2064         subprogram case
2065
2066 2008-07-31  Vincent Celier  <celier@adacore.com>
2067
2068         * s-os_lib.adb: Minor comment fix
2069
2070 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
2071
2072         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
2073         transfer pre/postconditions from generic copy to original tree, so that
2074         they will appear in each instance.
2075         (Process_PPCs): Do not transform postconditions into a procedure in a
2076         generic context, to prevent double expansion of check pragmas.
2077         
2078         * sem_attr.adb: In an instance, the prefix of the 'result attribute
2079         can be the renaming of the
2080         current instance, so check validity of the name accordingly.
2081
2082 2008-07-31  Robert Dewar  <dewar@adacore.com>
2083
2084         * mlib-utl.ads: Minor reformatting
2085
2086 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
2087
2088         sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
2089         from context. This attribute must be usable in Ada95 mode.
2090         The attribute can appear in the body of a function marked
2091         Inline_Always, but in this case the postocondition is not enforced.
2092         
2093         sem_prag.adb (Check_Precondition_Postcondition): within the expansion
2094         of an inlined call pre- and postconditions are legal
2095
2096 2008-07-31  Vincent Celier  <celier@adacore.com>
2097
2098         * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
2099         were for gprmake only
2100
2101 2008-07-31  Robert Dewar  <dewar@adacore.com>
2102
2103         * gnat_ugn.texi: Update -gnatN documentation.
2104
2105         * gnat_rm.texi: Add note about pre/postcondition
2106         pragmas not checked in conjunction with front-end inlining.
2107
2108 2008-07-31  Robert Dewar  <dewar@adacore.com>
2109
2110         * g-pehage.adb, g-pehage.ads: Minor reformatting
2111
2112 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
2113
2114         * mlib-utl.ads, prj-makr.ads: Add comments.
2115
2116 2008-07-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2117
2118         * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) 
2119         [WINDOWS]: Add s-winext.o.
2120
2121 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
2122
2123         PR ada/36554
2124         * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
2125         * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
2126         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
2127         Set precision to 1 for subtype of BOOLEAN_TYPE.
2128         (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
2129         (make_type_from_size): Deal with BOOLEAN_TYPE.
2130         * gcc-interface/misc.c (gnat_print_type): Likewise.
2131         * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
2132         Set boolean_type_node as its translation in the table, as well
2133         as boolean_false_node for False and boolean_true_node for True.
2134         * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
2135         8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
2136         (create_param_decl): Deal with BOOLEAN_TYPE.
2137         (build_vms_descriptor): Likewise.
2138         (build_vms_descriptor64): Likewise.
2139         (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
2140
2141 2008-07-30  Robert Dewar  <dewar@adacore.com>
2142
2143         * exp_ch9.adb: Minor reformatting
2144
2145         * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
2146         if no primitive operation is found.
2147
2148         * exp_util.adb: (Find_Prim_Op): Add comments for previous change
2149
2150         * sem_ch8.adb: Minor reformatting
2151
2152 2008-07-30  Laurent Pautet  <pautet@adacore.com>
2153
2154         * g-pehage.adb:
2155         Remove a limitation on the length of the words handled by the minimal
2156         perfect hash function generator.
2157
2158         * g-pehage.ads:
2159         Detail the use of subprograms Insert, Initialize, Compute and Finalize.
2160         Fix some typos.
2161
2162 2008-07-30  Robert Dewar  <dewar@adacore.com>
2163
2164         * gnatlink.adb: Minor reformatting
2165
2166 2008-07-30  Thomas Quinot  <quinot@adacore.com>
2167
2168         * rtsfind.adb (Check_RPC): Check version consistency even when not
2169         generating RCI stubs. Provide more detailed error message in case of
2170         mismatch.
2171
2172 2008-07-30  Ed Schonberg  <schonberg@adacore.com>
2173
2174         * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
2175         as a actual in an instance, check for a missing attribute to prevent
2176         program_error on an illegal program.
2177         
2178         * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
2179         error if primitive is not found, so that exception can be handled
2180         elsewhere on illegal programs.
2181
2182 2008-07-30  Robert Dewar  <dewar@adacore.com>
2183
2184         * uintp.adb (UI_GCD): Fix potential overflow
2185
2186 2008-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
2187
2188         * einfo.adb: Flag245 is now used.
2189         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
2190         check to include functions.
2191         (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
2192         (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
2193         include functions.
2194         (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
2195         to the list of displayed flags.
2196
2197         * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
2198         Wrapped_Entity. These two flags are now present in functions.
2199         New flag Is_Private_Primitive.
2200         (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
2201
2202         * exp_ch9.adb:
2203         (Build_Wrapper_Bodies): New subprogram.
2204         (Build_Wrapper_Body): The spec and body have been moved to in
2205         Build_Wrapper_ Bodies. Code cleanup.
2206         (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
2207         Wrappers are now generated for primitives declared between the private
2208         and full view of a concurrent type that implements an interface.
2209         (Build_Wrapper_Specs): New subprogram.
2210         (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
2211         creation mechanism with a call to Build_Wrapper_Bodies.
2212         (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
2213         wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
2214         (Expand_N_Task_Body): Replace the wrapper body creation
2215         mechanism with a call to Build_Wrapper_Bodies.
2216         (Expand_N_Task_Type_Declaration): Replace the wrapper spec
2217         creation mechanism with a call to Build_Wrapper_Specs.
2218         (Is_Private_Primitive_Subprogram): New subprogram.
2219         (Overriding_Possible): Code cleanup.
2220         (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
2221
2222         * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
2223
2224         * sem_ch3.adb: Add with and use clause for Exp_Ch9.
2225         (Process_Full_View): Build wrapper specs for all primitives
2226         that belong to a private view completed by a concurrent type
2227         implementing an interface.
2228         
2229         * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
2230         is a primitive of a
2231         concurrent type with a private view that implements an interface, try to
2232         find the proper spec.
2233         (Analyze_Subprogram_Declaration): Mark a subprogram as a private
2234         primitive if the type of its first parameter is a non-generic tagged
2235         private type.
2236         (Analyze_Subprogram_Specification): Code reformatting.
2237         (Disambiguate_Spec): New routine.
2238         (Find_Corresponding_Spec): Add a flag to controll the output of errors.
2239         (Is_Private_Concurrent_Primitive): New routine.
2240
2241         * sem_ch6.ads:
2242         (Find_Corresponding_Spec): Add a formal to control the output of errors.
2243
2244 2008-07-30  Doug Rupp  <rupp@adacore.com>
2245
2246         * gigi.h (build_vms_descriptor64): New function prototype.
2247         (fill_vms_descriptor): Modified function prototype.
2248
2249         * utils.c (build_vms_descriptor64): New function.
2250
2251         * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
2252
2253         * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
2254         argument.
2255
2256         * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
2257         64bit and 32bit descriptor and save the 64bit version as an alternate
2258         TREE_TYPE in the parameter.
2259         (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
2260         thin pointer.
2261
2262         * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
2263
2264 2008-07-30  Robert Dewar  <dewar@adacore.com>
2265
2266         * make.adb: Minor reformatting
2267
2268         * mlib-utl.adb: Minor reformatting
2269
2270         * osint.ads: Minor reformatting
2271
2272 2008-07-30  Jose Ruiz  <ruiz@adacore.com>
2273
2274         * adaint.c
2275         (__gnat_file_exists): Do not use __gnat_stat for RTX.
2276         (__main for RTX in RTSS mode): Create this dummy procedure symbol to
2277         avoid the use of this symbol from libgcc.a in RTX kernel mode.
2278
2279         * cio.c
2280         (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
2281         the function RtPrintf for console output.
2282         
2283         * argv.c Do not use the environ variable for RTX.
2284         
2285         * gnatlink.adb (gnatlink): The part that handles the --RTS option has
2286         been moved before the call to Osint.Add_Default_Search_Dirs in order
2287         to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
2288         from the appropriate run time.
2289         
2290         * targparm.ads
2291         (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
2292         target is a RTSS module for RTX.
2293         
2294         * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
2295         RTX_RTSS_Kernel_Module
2296         (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
2297
2298         * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
2299         exception handling mechanism for Windows and RTX in Win32 mode, but
2300         not for RTX in kernel mode (RTSS).
2301         (LIBGNAT_SRCS): Remove ada.h
2302
2303 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
2304
2305         * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
2306         T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
2307         (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
2308         * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
2309         X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
2310         ALL_ADA_CFLAGS): Remove.
2311         (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
2312         replace ALL_ADA_CFLAGS with ADA_CFLAGS.
2313         (GCC_CFLAGS): Remove X_CFLAGS.
2314         (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
2315         (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
2316         (ADA_CFLAGS): Substitute.
2317
2318 2008-07-30  Laurent Guerby  <laurent@guerby.net>
2319
2320         PR ada/5911
2321         * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
2322         Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
2323         Replace stamp-gnatlib* by stamp-gnatlib*-rts.
2324         * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
2325         by stamp-gnatlib2-rts.
2326         
2327 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2328
2329         PR documentation/15479
2330         * gnat-style.texi: Remove AdaCore copyright statement and GPL
2331         statement for GNAT.  Add @copying stanza, use it.  Update to
2332         GFDL 1.2.  Do not list GFDL as Invariant Section, do not list
2333         title as Front-Cover Text.
2334         * gnat_rm.texi: Likewise.
2335         * gnat_ugn.texi: Likewise.
2336
2337 2008-07-29  Jan Hubicka  <jh@suse.cz>
2338
2339         * trans.c (process_inlined_subprograms): Remove tree_really_inline
2340         check.
2341
2342 2008-07-29  Arnaud Charlet  <charlet@adacore.com>
2343
2344         * gcc-interface: New directory.
2345
2346         * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
2347         utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
2348         config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
2349         to gcc-interface subdirectory.
2350
2351 2008-07-29  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2352
2353         * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
2354
2355 2008-07-28  Jan Hubicka  <jh@suse.cz>
2356
2357         * misc.c (gnat_post_options): Do not set flag_no_inline.
2358
2359 2008-07-28  Richard Guenther  <rguenther@suse.de>
2360
2361         Merge from gimple-tuples-branch.
2362
2363         2008-07-22  Olivier Hainque  <hainque@adacore.com>
2364
2365         * gigi.h (end_subprog_body): New ELAB_P argument, saying if
2366         this is called for an elab proc to be discarded if empty.
2367         * utils.c (end_subprog_body): Honor ELAB_P.
2368         (build_function_stub): Adjust call to end_subprog_body.
2369         * trans.c (Subprogram_Body_to_gnu): Likewise.
2370         (gigi): Reorganize processing of elab procs to prevent
2371         gimplifying twice, using the new end_subprog_body argument.
2372
2373         2008-07-19  Richard Guenther  <rguenther@suse.de>
2374
2375         * Make-lang.in (trans.o): Add tree-iterator.h dependency.
2376         (utils.o): Likewise.
2377         * trans.c: Include tree-iterator.h.
2378         (gnat_gimplify_expr): Adjust prototype.  Fix typo.
2379         (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
2380         (set_expr_location_from_node): Likewise.
2381         (gigi): Tuplify.
2382         * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
2383         of GENERIC_NEXT.
2384         * utils.c: Include tree-iterator.h.
2385         * gigi.h (gnat_gimplify_expr): Adjust prototype.
2386
2387         2008-07-18  Aldy Hernandez  <aldyh@redhat.com>
2388
2389         * trans.c: Include gimple.h instead of tree-gimple.h.
2390         * utils.c: Same.
2391
2392         2008-07-14  Aldy Hernandez  <aldyh@redhat.com>
2393
2394         * trans.c (gnat_gimplify_expr): Use gimplify_assign.
2395
2396 2008-07-25  Jan Hubicka  <jh@suse.cz>
2397
2398         * utils.c (end_subprog_body): Remove inline trees check.
2399         * misc.c (gnat_post_options): Do not set flag_inline_trees.
2400
2401 2008-07-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2402
2403         * raise-gcc.c: Move tsystem.h before tm.h.
2404
2405 2008-07-20  Arnaud Charlet  <charlet@adacore.com>
2406
2407         * gnathtml.pl: New file.
2408
2409 2008-07-19  Olivier Hainque  <hainque@adacore.com>
2410
2411         * targtyps.c (get_target_default_allocator_alignment): Use
2412         MALLOC_ABI_ALIGNMENT.
2413
2414 2008-07-17  Olivier Hainque  <hainque@adacore.com>
2415
2416         * adaint.c (__MINGW32__ section): Include ctype.h and define
2417         a fallback ISALPHA if IN_RTS.
2418         (__gnat_is_absolute_path): Use ISALPHA instead of isalpha. 
2419
2420 2008-07-17  Olivier Hainque  <hainque@adacore.com>
2421
2422         * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
2423         argument, to apply to references in addition to definitions.  Prevent
2424         setting TREE_STATIC on externals.
2425         (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
2426
2427 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2428
2429         PR documentation/15479
2430         * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
2431         Replace backets around optional parameters with @ovar
2432         where possible, use @r{[}, @r{]} otherwise.
2433         Replace some @r, @i, and @emph with @var where appropriate.
2434
2435 2008-07-02  Eric Botcazou  <ebotcazou@adacore.com>
2436
2437         * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
2438
2439 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2440
2441         * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
2442         -Wc++-compat warnings.
2443         * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
2444         __gnat_locate_exec_on_path): Likewise.
2445         * decl.c (annotate_value): Likewise.
2446         * misc.c (gnat_handle_option): Likewise.
2447         * trans.c (gnat_to_gnu, extract_encoding, decode_name,
2448         post_error_ne_tree): Likewise.
2449
2450 2008-06-27  Eric Botcazou  <ebotcazou@adacore.com>
2451
2452         * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
2453         version of its type, attempt to first convert its elements.
2454
2455 2008-06-26  Chris Proctor  <chrisp_42@bigpond.com>
2456
2457         * Makefile.in: Fix *86 kfreebsd target specific pairs.
2458
2459 2008-06-25  Samuel Tardieu  <sam@rfc1149.net>
2460
2461         * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
2462
2463 2008-06-24  Eric Botcazou  <ebotcazou@adacore.com>
2464
2465         * utils2.c (known_alignment): Derive the alignment from pointed-to
2466         types only if it is otherwise unknown.
2467         <INTEGER_CST>: Tidy.
2468         <MULT_EXPR>: Likewise.
2469         <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
2470         that of the base.
2471
2472 2008-06-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2473
2474         PR ada/36573
2475         * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
2476
2477 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2478
2479         * gnat_rm.texi (Implementation Defined Characteristics)
2480         (Standard Library Routines): Use @smallexample for indented
2481         text.  Drop Indentation outside examples.
2482         * gnat_ugn.texi: Likewise.
2483
2484 2008-06-13  Olivier Hainque  <hainque@adacore.com>
2485
2486         * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
2487         if undefined.
2488         (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
2489         realignment with force_align_arg_pointer attribute on foreign
2490         convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
2491         
2492 2008-06-13  Olivier Hainque  <hainque@adacore.com>
2493
2494         * utils.c (rest_of_record_type_compilation): When computing
2495         encodings for the components of a variable size type, early
2496         strip conversions on the current position expression to make
2497         sure it's shape is visible.  Use remove_conversions for this
2498         purpose.
2499
2500 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
2501
2502         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
2503         constrained subtype of a discriminated type, discard the fields that
2504         are beyond its limits according to its size.
2505
2506 2008-06-10  Olivier Hainque  <hainque@adacore.com>
2507
2508         * utils.c (create_subprog_decl): If this is for the 'main' entry
2509         point according to the asm name, redirect main_identifier_node.
2510
2511 2008-06-09  Eric Botcazou  <ebotcazou@adacore.com>
2512
2513         * decl.c (components_to_record): Adjust the packedness for the
2514         qualified union as well.
2515
2516 2008-06-09  Arnaud Charlet  <charlet@adacore.com>
2517
2518         * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
2519         checks non fatal.
2520
2521 2008-06-07  Samuel Tardieu  <sam@rfc1149.net>
2522
2523         * sem_res.adb (Large_Storage_Type): A type is large if it
2524         requires as many bits as Positive to store its values and its
2525         bounds are known at compile time.
2526         * sem_ch13.adb (Minimum_Size): Note that this function returns
2527         0 if the size is not known at compile time.
2528
2529 2008-06-06  Nicolas Setton  <setton@adacore.com>
2530             Olivier Hainque  <hainque@adacore.com>
2531
2532         * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
2533         attribute, parallel descriptive type attached to another
2534         type for debug info generation purposes.
2535         * utils.c (add_parallel_type): New function, register
2536         parallel type to be attached to a type.
2537         (get_parallel_type): New function, fetch a registered
2538         parallel type, if any.
2539         (rest_of_record_type_compilation): Register the parallel
2540         type we make for variable size records.
2541         * gigi.h (add_parallel_type, get_parallel_type): Declare.
2542         * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
2543         parallel debug types we make.
2544         * trans.c (extract_encoding, decode_name): New functions.
2545         (gigi): If the DWARF attribute extensions are available, setup
2546         to use them.
2547         * lang.opt: Register language specific processing request
2548         for -gdwarf+.
2549         * misc.c (gnat_dwarf_extensions): New global variable. How much
2550         do we want of our DWARF extensions. 0 by default.
2551         (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
2552         (gnat_post_options): Map gnat_dwarf_extensions to the
2553         commonuse_gnu_debug_info_extensions for later processing.
2554         
2555 2008-06-04  Samuel Tardieu  <sam@rfc1149.net>
2556
2557         * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
2558
2559 2008-06-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2560
2561         * Makefile.in (common_tools): Fix typos in $(exeext) extension.
2562         * gnat_ugn.texi (Style Checking)
2563         (Adding the Results of Compiler Checks to gnatcheck Output)
2564         (Example of Binder Output File): Fix typos.
2565         * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
2566         exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
2567         s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
2568         s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
2569         sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
2570         sinfo.ads, utils.c: Fix typos in comments.
2571         * sem_ch6.adb, vms_data.ads: Fix typos in strings.
2572
2573 2008-05-29  Thomas Quinot  <quinot@adacore.com>
2574
2575         * sem_eval.adb: Minor reformatting
2576
2577 2008-05-29  Ed Schonberg  <schonberg@adacore.com>
2578
2579         * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
2580         is abstract, do not apply abstractness check on subprogram if this is
2581         a renaming declaration.
2582
2583 2008-05-29  Arnaud Charlet  <charlet@adacore.com>
2584
2585         PR ada/864
2586         * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
2587         allow recognition of program suffix in addition to prefix.
2588         
2589         * gnatchop.adb (Locate_Executable): Add support for prefix.
2590         
2591         * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
2592         mlib-utl.adb: Adjust calls to Program_Name.
2593
2594 2008-05-29  Robert Dewar  <dewar@adacore.com>
2595
2596         * sem_ch3.adb: Minor reformatting
2597         * sem_prag.adb: Minor reformatting
2598         * sem_res.adb: Minor reformatting
2599         * sinput-p.ads: Minor reformatting
2600
2601 2008-05-29  Javier Miranda  <miranda@adacore.com>
2602
2603         * sem_util.adb:
2604         (Abstract_Interface_List): Add missing support for full type-declaration
2605         associated with synchronized types.
2606
2607 2008-05-29  Robert Dewar  <dewar@adacore.com>
2608
2609         * sem_eval.adb (Is_Same_Value): Take care of several more cases
2610
2611 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
2612
2613         * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
2614         access type, wrap the expression in a conversion to force an
2615         accessibility check.
2616
2617         * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
2618         accessibility checks even when expansion is disabled in order to
2619         generate messages in the presence of previous errors or in
2620         semantics-only mode.
2621
2622 2008-05-28  Eric Botcazou  <ebotcazou@adacore.com>
2623
2624         * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
2625         * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
2626
2627 2008-05-28  Vincent Celier  <celier@adacore.com>
2628
2629         PR ada/34446
2630         * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
2631         preprocessing expressions
2632
2633 2008-05-28  Vincent Celier  <celier@adacore.com>
2634
2635         * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
2636         for preprocessing
2637         
2638         * sinput-p.ads: Minor comment update and reformatting
2639
2640 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
2641
2642         * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
2643         type has a deeper level than any master only when it is the type of an
2644         access parameter.
2645
2646 2008-05-28  Javier Miranda  <miranda@adacore.com>
2647
2648         * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
2649
2650 2008-05-28  Javier Miranda  <miranda@adacore.com>
2651
2652         * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
2653         * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
2654         * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
2655         Add code that was previously located in
2656         Find_Overridden_Synchronized_Primitive because it is only used here.
2657
2658 2008-05-28  Sergey Rybin  <rybin@adacore.com>
2659
2660         * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
2661         Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
2662
2663 2008-05-28  Robert Dewar  <dewar@adacore.com>
2664
2665         * restrict.ads:
2666         Add missing restrictions, and properly label all GNAT defined ones
2667         
2668         * rtsfind.ads:
2669         Add entry for Ada_Real_Time.Timing_Events.Timing_Event
2670         Add entry for Ada.Task_Termination.Set_Specific_Handler
2671         Add entry for Ada.Task_Termination.Specific_Handler
2672         
2673         * s-rident.ads:
2674         Add missing restrictions and properly mark all gnat defined ones
2675         
2676         * sem_ch3.adb:
2677         (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
2678         
2679         * sem_res.adb:
2680         (Resolve_Call): Check violation of No_Specific_Termination_Handlers
2681
2682         * gnat_rm.texi: Add missing restrictions, and properly label all
2683         GNAT defined ones
2684
2685 2008-05-28  Robert Dewar  <dewar@adacore.com>
2686
2687         * restrict.adb:
2688         (Check_Restriction): violation of restriction No_Finalization is
2689         treated as a serious error to stop expansion
2690
2691 2008-05-28  Robert Dewar  <dewar@adacore.com>
2692
2693         * exp_util.adb: Minor reformatting
2694         * exp_util.ads: Minor reformatting.
2695
2696 2008-05-28  Arnaud Charlet  <charlet@adacore.com>
2697
2698         * Make-lang.in: Remove gprmake.
2699
2700         * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
2701
2702 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
2703
2704         * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
2705         improper progenitor names, and avoid cascaded errors.
2706
2707 2008-05-28  Robert Dewar  <dewar@adacore.com>
2708
2709         * gnat_rm.texi: Add note on Old giving warning when applied to constant
2710
2711         * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
2712         a constant
2713
2714 2008-05-28  Robert Dewar  <dewar@adacore.com>
2715
2716         * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
2717         size
2718
2719 2008-05-28  Robert Dewar  <dewar@adacore.com>
2720
2721         * exp_ch5.adb:
2722         (Expand_Simple_Function_Return): Copy unaligned result into temporary
2723
2724 2008-05-28  Javier Miranda  <miranda@adacore.com>
2725
2726         * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
2727         for user-defined predefined primitives.
2728         
2729         * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
2730         (Find_Overridden_Synchronized_Primitive): Ditto.
2731
2732         * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
2733
2734 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
2735
2736         * a-ststio.adb, s-direio.adb:
2737         Further code clean up of previous change.
2738         Update comments.
2739
2740 2008-05-27  Vincent Celier  <celier@adacore.com>
2741
2742         * prj-nmsc.adb: Minor reformatting
2743
2744 2008-05-27  Bob Duff  <duff@adacore.com>
2745
2746         * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
2747         untagged private type with a tagged full type, where the full type has
2748         a self reference, create the corresponding class-wide type early, in
2749         case the self reference is "access T'Class".
2750
2751 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
2752
2753         * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
2754         tasks and context is an object declaration. create master entity before
2755         expansion.
2756
2757 2008-05-27  Robert Dewar  <dewar@adacore.com>
2758
2759         * mlib-prj.adb: Minor reformatting
2760
2761         * prj-part.adb: Minor reformatting
2762
2763         * prj.ads: Minor reformatting
2764
2765         * exp_ch3.adb: Minor reformatting.
2766
2767         * sem_ch3.ads: Minor reformatting
2768
2769         * sem_eval.adb: Minor reformatting
2770
2771 2008-05-27  Vincent Celier  <celier@adacore.com>
2772
2773         * gnatcmd.adb:
2774         <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
2775
2776 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
2777
2778         * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
2779         tasks, create an activation chain now, before the expansion into
2780         assignments and build-in-place calls that require the presence of an
2781         activation chain.
2782         (Backend_Processing_Possible): If the component type is inherently
2783         limited, the aggregate must be expanded into individual built-in-place
2784         assignments.
2785
2786         * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
2787         determine whether an allocation extra parameter must be built, to
2788         handle case of a private type whose full type is a discriminated type
2789         with defaults.
2790
2791 2008-05-27  Bob Duff  <duff@adacore.com>
2792
2793         * gnat_rm.texi:
2794         Document the new behavior regarding trampolines.
2795
2796 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
2797
2798         * a-direio.adb, a-sequio.adb: Replace address clause by
2799         unrestricted_access, simpler and compatible with .NET.
2800
2801 2008-05-27  Vincent Celier  <celier@adacore.com>
2802
2803         * prj-part.adb:
2804         (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
2805         a project file, so that symbolic links are not resolved.
2806
2807 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
2808
2809         * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
2810         Replace heavy address clause by 'Unrestricted_Access, cleaner and more
2811         portable across GNAT targets, since this kind of address clause is not
2812         supported by VM back-ends (.NET/JGNAT).
2813
2814 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
2815
2816         * bindgen.adb: Update comments.
2817         
2818         * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
2819
2820 2008-05-27  Vincent Celier  <celier@adacore.com>
2821
2822         * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
2823         prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
2824         mlib-tgt.adb, prj-env.adb, prj-env.ads:
2825         (Path_Information): New record type
2826         Use component of type Path_Information when there are two paths, one in
2827         canonical format and one in display format.
2828         Update the project manager to these new components.
2829
2830 2008-05-27  Robert Dewar  <dewar@adacore.com>
2831
2832         * makeutl.adb: Minor reformatting
2833         * prj-nmsc.adb: Minor reformatting
2834         * s-stausa.adb: Minor reformatting
2835         * s-stausa.ads: Minor reformatting
2836         * sem_ch6.adb: Minor reformatting
2837
2838 2008-05-27  Thomas Quinot  <quinot@adacore.com>
2839
2840         * sem_res.adb: Minor comment fixes
2841
2842 2008-05-27  Thomas Quinot  <quinot@adacore.com>
2843
2844         * makeutl.adb: Minor code reorganization
2845
2846         * exp_aggr.adb: Add ??? comment
2847         Fix typo
2848
2849         * exp_ch6.adb: Minor reformatting
2850
2851 2008-05-27  Quentin Ochem  <ochem@adacore.com>
2852
2853         * s-stausa.adb (Initialize): Updated result initialization, and
2854         initialization of environment stack.
2855         (Fill_Stack): Improved computation of the pattern zone, taking into
2856         account already filled at the calling point.
2857         (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
2858         Measure and Overflow_Guard.
2859         (Report_Result): Fixed computation of the result using new fields of
2860         Stack_Analyzer.
2861         
2862         * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
2863         params by more explicit Stack_Size / Max_Pattern_Size params.
2864         (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
2865         Added Stack_Used_When_Filling field.
2866         (Task_Result): Replaced Measure / Overflow_Guard by more explicit
2867         Min_Measure and Max_Measure fields.
2868         
2869         * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
2870
2871 2008-05-27  Vincent Celier  <celier@adacore.com>
2872
2873         * prj-nmsc.adb:
2874         (Check_File): Make sure that a unit that replaces the same unit in a
2875          project being extended is properly processed.
2876
2877 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
2878
2879         * sem_ch3.adb:
2880         (Get_Discr_Value): Remove obsolete code that failed to find the value
2881         of a discriminant for an inherited task component appearing in a type
2882         extension.
2883
2884 2008-05-27  Thomas Quinot  <quinot@adacore.com>
2885
2886         (System.File_IO.{Close, Delete, Reset}):
2887         Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
2888         
2889         (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
2890         Pass File parameter by reference.
2891
2892 2008-05-27  Vincent Celier  <celier@adacore.com>
2893
2894         * prj-nmsc.adb:
2895         (Process_Sources_In_Multi_Language_Mode): Check that there are not two
2896         sources of the same project that have the same object file name.
2897         (Find_Explicit_Sources): Always remove a source exception that was not
2898         found.
2899
2900 2008-05-27  Thomas Quinot  <quinot@adacore.com>
2901
2902         * sem_ch3.adb: Minor reformatting
2903
2904 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
2905
2906         * sem_ch6.adb:
2907         (Is_Interface_Conformant): Handle properly a primitive operation that
2908         overrides an interface function with a controlling access result.
2909         (Type_Conformance): If Skip_Controlling_Formals is true, when matching
2910         inherited and overriding operations, omit as well the conformance check
2911         on result types, to prevent spurious errors.
2912
2913 2008-05-27  Vincent Celier  <celier@adacore.com>
2914
2915         * makeutl.ads, makeutl.adb:
2916         (Set_Location): New procedure
2917         (Get_Location): New function
2918         (Update_Main): New procedure
2919
2920 2008-05-27  Vincent Celier  <celier@adacore.com>
2921
2922         * prj-nmsc.adb:
2923         (Check_Library): Allow standard project to be extended as a static
2924         library project.
2925         (Get_Mains): Do not inherit attribute Main in an extending library
2926         project.
2927
2928 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
2929
2930         * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
2931         * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
2932         * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
2933         * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
2934         * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
2935         * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
2936         * system-mingw.ads (Always_Compatible_Rep): Likewise.
2937         * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
2938         * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
2939         * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
2940         
2941 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
2942
2943         * sem_attr.adb: add guard to previous patch.
2944
2945 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
2946
2947         * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
2948         a synchronized tagged type, do not attempt to build dispatch table for
2949         full view. The table is built for the corresponding record type, which
2950         has its own declaration.
2951
2952 2008-05-27  Gary Dismukes  <dismukes@adacore.com>
2953
2954         * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
2955         to the known type entity E, rather than setting it to Any_Type. Fixes
2956         possible blowup in function Base_Init_Proc, as called from Freeze_Entity
2957         for objects whose type had an illegal constraint.
2958
2959 2008-05-27  Vincent Celier  <celier@adacore.com>
2960
2961         * gnat_ugn.texi:
2962         Add succinct documentation for attribute Excluded_Source_List_File
2963
2964 2008-05-27  Vincent Celier  <celier@adacore.com>
2965
2966         * prj-attr.adb: Add new project level attribute Map_File_Option
2967         
2968         * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
2969         
2970         * prj.ads: Minor reformatting and comment update
2971         (Project_Configuration): New component Map_File_Option
2972         
2973         * snames.adb: New standard name Map_File_Option
2974         
2975         * snames.ads: New standard name Map_File_Option
2976
2977 2008-05-27  Vincent Celier  <celier@adacore.com>
2978
2979         * xsnames.adb: Remove unused variable Oname
2980
2981 2008-05-27  Doug Rupp  <rupp@adacore.com>
2982
2983         * exp_ch6.adb:
2984         (Expand_N_Function_Call): Fix comments. Minor reformatting.
2985
2986         * exp_vfpt.ads:
2987         (Expand_Vax_Foreign_Return): Fix comments.
2988
2989 2008-05-27  Thomas Quinot  <quinot@adacore.com>
2990
2991         * exp_dist.adb: Minor reformating
2992
2993 2008-05-26  Gary Dismukes  <dismukes@adacore.com>
2994
2995         * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
2996         No_Default_Initialization, which is now delayed until the freeze point
2997         of the object. Add a comment about deferral of the check.
2998         
2999         * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
3000         on objects is moved here.
3001
3002 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
3003
3004         * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
3005         (Compare_Array_S16): Adjust for above change.
3006         * s-casi32.adb (Uword): Likewise.
3007         (Compare_Array_S32): Likewise.
3008         * s-casi64.adb (Uword): Likewise.
3009         (Compare_Array_S64): Likewise.
3010         * s-caun16.adb (Uhalf): Likewise.
3011         (Compare_Array_U16): Likewise.
3012         * s-caun32.adb (Uword): Likewise.
3013         (Compare_Array_U32): Likewise.
3014         * s-caun64.adb (Uword): Likewise.
3015         (Compare_Array_U64): Likewise.
3016         
3017 2008-05-26  Robert Dewar  <dewar@adacore.com>
3018
3019         * exp_ch6.adb: Add ??? comment for previous change
3020
3021         * exp_vfpt.adb: Minor reformatting
3022
3023         * exp_vfpt.ads: Add ??? comment for last change
3024
3025         * sem_attr.adb: Add some ??? comments for previous change
3026
3027         * s-vaflop.ads: Add comments for previous change
3028
3029 2008-05-26  Doug Rupp  <rupp@adacore.com>
3030
3031         * s-vaflop-vms-alpha.adb:
3032         Remove System.IO use clause, to prevent spurious ambiguities when
3033         package is access through rtsfind.
3034
3035 2008-05-26  Sergey Rybin  <rybin@adacore.com>
3036
3037         * tree_io.ads (ASIS_Version_Number): Update because of the changes
3038         made in front-end
3039
3040 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3041
3042         * sem_attr.adb:
3043         (Resolve_Attribute, case 'address):  S (A .. B)' address can be safely
3044         converted to S (A)'address only if A .. B is known to be a non-null
3045         range.
3046
3047 2008-05-26  Doug Rupp  <rupp@adacore.com>
3048
3049         * s-vaflop.adb:
3050         (Return_D, Return_F, Return_G): New functions.
3051
3052         * s-vaflop.ads:
3053         (Return_D, Return_F, Return_G): New functions.
3054
3055         * exp_vfpt.adb:
3056         (Expand_Vax_Foreign_Return): New procedure
3057
3058         * exp_vfpt.ads:
3059         (Expand_Vax_Foreign_Return): New procedure
3060
3061         * rtsfind.ads:
3062         (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
3063         (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
3064
3065         * exp_ch6.adb:
3066         Import Exp_Vfpt
3067         (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
3068
3069         * s-vaflop-vms-alpha.adb:
3070         (Return_D, Return_F, Return_G): New functions.
3071
3072 2008-05-26  Gary Dismukes  <dismukes@adacore.com>
3073
3074         * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
3075         init proc entity when there is actual default initialization associated
3076         with the component type, to avoid spurious errors on objects of scalar
3077         array types that are marked Is_Public when No_Default_Initialization
3078         applies.
3079
3080 2008-05-26  Thomas Quinot  <quinot@adacore.com>
3081
3082         * rtsfind.ads, rtsfind.adb:
3083         (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
3084         (Check_RPC): Support per-PCS-kind API versioning.
3085         
3086         exp_dist.ads, exp_dist.adb:
3087         (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
3088         (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
3089          library function Get_RACW.
3090         (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
3091         library function Get_Reference.
3092         (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
3093         through an intermediate Any.
3094         (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
3095         going through an intermediate Any.
3096         
3097         * sem_dist.adb: Minor reformatting.
3098
3099 2008-05-26  Javier Miranda  <miranda@adacore.com>
3100
3101         * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
3102         (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
3103         (Is_Internal): Adding documentation on internal entities that have
3104         attribute Interface_Alias (old attribute Abstract_Interface_Alias)
3105
3106         * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
3107         (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
3108         Added assertion to force entities with this attribute to have
3109         attribute Is_Internal set to True.
3110         (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
3111
3112         * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
3113         renamed as Derive_Progenitor_Subprograms. In addition, its code is
3114         a new implementation.
3115         (Add_Interface_Tag_Components): Remove special management of
3116         synchronized interfaces.
3117         (Analyze_Interface_Declaration): Minor reformating
3118         (Build_Derived_Record_Type): Minor reformating
3119         (Check_Abstract_Overriding): Avoid reporting error in case of abstract
3120         predefined primitive inherited from interface type because the body of
3121         internally generated predefined primitives of tagged types are generated
3122         later by Freeze_Type
3123         (Derive_Subprogram): Avoid generating an internal name if the parent
3124         subprogram overrides an interface primitive.
3125         (Derive_Subprograms): New implementation that keeps separate the
3126         management of tagged types not implementing interfaces, from tagged
3127         types that implement interfaces.
3128         (Is_Progenitor): New implementation.
3129         (Process_Full_View): Add documentation
3130         (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
3131         by call to Derive_Progenitor_Subprograms.
3132
3133         * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
3134         (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
3135         Skip_Controlling_Formals.
3136
3137         * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
3138         (Check_Conventions): New implementation. Remove local subprogram
3139         Skip_Check. Remove formal Search_From of routine Check_Convention.
3140         (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
3141         Skip_Controlling_Formals.
3142         (New_Overloaded_Entity): Enable addition of predefined dispatching
3143         operations.
3144
3145         * sem_disp.ads
3146         (Find_Primitive_Covering_Interface): New subprogram.
3147
3148         * sem_disp.adb (Check_Dispatching_Operation): Disable registering
3149         the task body procedure as a primitive of the corresponding tagged
3150         type.
3151         (Check_Operation_From_Private_Type): Avoid adding twice an entity
3152         to the list of primitives.
3153         (Find_Primitive_Covering_Interface): New subprogram.
3154         (Override_Dispatching_Operation): Add documentation.
3155
3156         * sem_type.adb (Covers): Minor reformatings
3157
3158         * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
3159         Collect_Interfaces.
3160         Rename formal.
3161         (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
3162         (Implements_Interface): New subprogram.
3163         (Is_Parent): Removed.
3164         (Primitive_Names_Match): New subprogram.
3165         (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
3166         (Ultimate_Alias): New subprogram.
3167
3168         * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
3169         Collect_Interfaces.
3170         Remove special management for synchronized types. Rename formal. Remove
3171         internal subprograms Interface_Present_In_Parent and Add_Interface.
3172         (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
3173         on non-record types by code to return false in such case.
3174         (Implements_Interface): New subprogram.
3175         (Is_Parent): Removed. No special management is now required for
3176         synchronized types covering interfaces.
3177         (Primitive_Names_Match): New subprogram.
3178         (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
3179         (Ultimate_Alias): New subprogram.
3180
3181         * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
3182         Add internal entities associated with secondary dispatch tables to
3183         the list of tagged type primitives that are not interfaces.
3184         (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
3185         (Make_Predefined_Primitive_Specs): Code reorganization to improve
3186         the management of predefined equality operator. In addition, if
3187         the type has an equality function corresponding with a primitive
3188         defined in an interface type, the inherited equality is abstract
3189         as well, and no body can be created for it.
3190
3191         * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
3192         exp_util to exp_disp.
3193         (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
3194         an entity corresponds with one of the predefined primitives required
3195         to implement interfaces.
3196         Update copyright notice.
3197
3198         * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
3199         final check on abstract subprograms all the primitives associated with
3200         interface primitives because they must be visible in the public and
3201         private part.
3202         (Write_DT): Use Find_Dispatching_Type to locate the name of the
3203         interface type. This allows the use of this routine, for debugging
3204         purposes, when the tagged type is not fully decorated.
3205         (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
3206         Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
3207         (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
3208         entity corresponds with one of the predefined primitives required to
3209         implement interfaces.
3210
3211         * exp_util.adb (Find_Interface_ADT): New implementation
3212         (Find_Interface): Removed.
3213
3214         * sprint.adb (Sprint_Node_Actual): Generate missing output for the
3215         list of interfaces associated with nodes
3216         N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
3217
3218 2008-05-26  Thomas Quinot  <quinot@adacore.com>
3219
3220         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
3221         condition for assignment to temporary.
3222
3223 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3224
3225         * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
3226         checks on the upper bound if the index type is a modular type, to
3227         prevent wrap-around computations when size is close to upper bound of
3228         type.
3229
3230 2008-05-26  Robert Dewar  <dewar@adacore.com>
3231
3232         * sem_ch3.adb: Minor reformatting
3233
3234 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3235
3236         * sem_ch12.adb (Remove_Parent): Use specification of instance
3237         to retrieve generic parent,
3238         to handle properly the case where the instance is a child unit.
3239         Add guard to handle properly wrapper packages.
3240         Minor reformatting
3241
3242 2008-05-26  Thomas Quinot  <quinot@adacore.com>
3243
3244         * sinfo.ads: Minor reformatting
3245
3246 2008-05-26  Hristian Kirtchev  <kirtchev@adacore.com>
3247
3248         * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
3249         Generate a tag check when the result subtype of a function, defined by
3250         an access definition, designates a specific tagged type.
3251         (Make_Tag_Check): New routine.
3252
3253 2008-05-26  Arnaud Charlet  <charlet@adacore.com>
3254
3255         * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
3256
3257 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
3258
3259         * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
3260         (builtin_decl_for): Likewise.
3261         * trans.c (gigi): Likewise.
3262         * utils.c (def_builtin_1): Fix formatting.
3263
3264 2008-05-26  Hristian Kirtchev  <kirtchev@adacore.com>
3265
3266         * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
3267         Create the statements which map a string name to protected or task
3268         entry indix.
3269
3270         * exp_ch9.adb: Add with and use clause for Stringt.
3271         Minor code reformatting.
3272         (Build_Entry_Names): New routine.
3273         (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
3274         for flag Build_Entry_Names which controls the allocation of the data
3275         structure for the string names of entries.
3276
3277         * exp_ch9.ads (Build_Entry_Names): New subprogram.
3278
3279         * exp_util.adb (Entry_Names_OK): New function.
3280
3281         * exp_util.ads (Entry_Names_OK): New function.
3282
3283         * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
3284         enumerations RE_Id and RE_Unit_Table.
3285
3286         * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
3287         (Free_Entry_Names_Array): New routine.
3288
3289         * s-taskin.ads: Comment reformatting.
3290         Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
3291         Add component Entry_Names to record Ada_Task_Control_Block.
3292         (Free_Entry_Names_Array): New routine.
3293
3294         * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
3295         dynamically allocate an array
3296         of string pointers. This structure holds string entry names.
3297         (Free_Entry_Names): New routine.
3298         (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
3299         (Set_Entry_Names): New routine.
3300
3301         * s-tassta.ads:
3302         (Create_Task): Add formal Build_Entry_Names. The flag is used to
3303         control the allocation of the data structure which stores entry names.
3304         (Set_Entry_Name): New routine.
3305
3306         * s-tpoben.adb:
3307         Add with and use clause for Ada.Unchecked_Conversion.
3308         (Finalize): Deallocate the entry names array.
3309         (Free_Entry_Names): New routine.
3310         (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
3311         create an array of string pointers to hold the entry names.
3312         (Set_Entry_Name): New routine.
3313
3314         * s-tpoben.ads:
3315         Add field Entry_Names to record Protection_Entries.
3316         (Initialize_Protection_Entries): Add formal Build_Entry_Names.
3317         (Set_Entry_Name): New routine.
3318
3319 2008-05-26  Vincent Celier  <celier@adacore.com>
3320
3321         * prj-nmsc.adb:
3322         (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
3323
3324         * prj.ads:
3325         (Project_Configuration): New component Shared_Lib_Driver
3326
3327 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3328
3329         * inline.adb:
3330         (Cleanup_Scopes): For a protected operation, transfer finalization list
3331         to protected body subprogram, to force cleanup actions when needed.
3332
3333 2008-05-26  Robert Dewar  <dewar@adacore.com>
3334
3335         * sem_cat.adb: Minor reformatting
3336
3337         * gnatname.adb: Minor reformatting
3338
3339         * osint.ads: Minor reformatting
3340
3341         * s-carun8.ads: Minor reformatting
3342
3343         * g-heasor.ads: Minor comment fix (unit is now pure)
3344
3345 2008-05-26  Robert Dewar  <dewar@adacore.com>
3346
3347         * exp_ch2.adb:
3348         (Expand_Current_Value): Properly type generated integer literal
3349
3350 2008-05-26  Sergey Rybin  <rybin@adacore.com>
3351
3352         * gnat_ugn.texi: Add description for the new gnatcheck rule -
3353         Separate_Numeric_Error_Handlers.
3354
3355 2008-05-26  Pascal Obry  <obry@adacore.com>
3356
3357         * sem_aggr.adb: Minor reformatting.
3358
3359 2008-05-26  Jose Ruiz  <ruiz@adacore.com>
3360
3361         * s-osinte-aix.adb:
3362         (To_Target_Priority): Setting the time slice value to 0 or greater sets
3363         the scheduling policy to FIFO within priorities or round-robin
3364         respectively.
3365         Hence, the priority must be set in this case to the one selected by the
3366         user.
3367         
3368 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
3369
3370         * sem_ch12.adb:
3371         (Remove_Parent): If the enclosing scope is an instance whose generic
3372         parent is declared within some parent scope of the just completed
3373         instance, make full views of the entities in that parent visible, when
3374         applicable.
3375         
3376 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
3377
3378         * mingw32.h (STD_MINGW): Set to true for target w64.
3379
3380 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
3381
3382         * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
3383         instead of TREE_STATIC on the ADDR_EXPR.
3384
3385 2008-05-24  Eric Botcazou  <ebotcazou@adacore.com>
3386
3387         * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
3388         (Sloc_to_locus): Do not overwrite known GCC locations when translating
3389         GNAT standard locations.
3390
3391 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
3392
3393         * gigi.h (mark_visited): Declare.
3394         * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
3395         only the topmost node of expressions.
3396         (elaborate_expression_1): Look deeper for read-only variables.
3397         * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
3398         (mark_visited): Move logic to mark_visited_r.  Invoke walk_tree.
3399         (mark_visited_r): New function.
3400
3401 2008-05-23  Vincent Celier  <celier@adacore.com>
3402
3403         * snames.adb: New standard name Excluded_Source_List_File.
3404
3405         * snames.ads: New standard name Excluded_Source_List_File.
3406
3407         * prj-attr.adb: New project level attribute Excluded_Source_List_File.
3408
3409         * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
3410         Get excluded sources from
3411         file indicated by attribute Excluded_Source_List_File, when present and
3412         neither Excluded_Source_Files nor Locally_Removed_Files are declared.
3413
3414 2008-05-23  Robert Dewar  <dewar@adacore.com>
3415
3416         * exp_dist.adb: Minor reformatting
3417
3418 2008-05-23  Ed Schonberg  <schonberg@adacore.com>
3419
3420         * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
3421         slice, convert it to an indexed component, which is equivalent, more
3422         efficient, and usable even if the slice itself is not addressable.
3423
3424 2008-05-23  Olivier Hainque  <hainque@adacore.com>
3425
3426         * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
3427         convention also allows access to named compiler built-in subprograms
3428         such as the GCC __builtin family.
3429
3430 2008-05-23  Vincent Celier  <celier@adacore.com>
3431
3432         * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
3433         sep. If there are several possibilities, choose the one with the
3434         longer prefix.
3435
3436 2008-05-23  Vincent Celier  <celier@adacore.com>
3437
3438         * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
3439         back end switches when executable specified with --GCC= is same as
3440         default, even if there are additional options.
3441
3442         * gnat_ugn.texi:
3443         Document when the back end switches from the ALI file are taken into
3444         account when gnatlink is invoked with --GCC=
3445
3446 2008-05-23  Thomas Quinot  <quinot@adacore.com>
3447
3448         * s-os_lib.adb:
3449         (copy_File): Do not open destination file if source file is unreadable.
3450
3451 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
3452
3453         * utils.c (handle_type_generic_attribute): Adjust to accept
3454         fixed arguments before an elipsis.
3455
3456 2008-05-21  Thomas Quinot  <quinot@adacore.com>
3457
3458         * g-sothco.ads, g-sothco.adb: New files.
3459
3460 2008-05-20  Thomas Quinot  <quinot@adacore.com>
3461
3462         * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
3463
3464         * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
3465         Add missing "with" of Ada.Unchecked_Conversion
3466
3467         * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads, 
3468         g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads, 
3469         g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads, 
3470         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads, 
3471         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads, 
3472         g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads: 
3473         Move common code out of GNAT.Sockets.Thin implementations and into
3474         Thin_Common.
3475         New constant SIZEOF_fd_set
3476         New flag Has_Sockaddr_Len
3477         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3478
3479         * g-stsifd-sockets.adb
3480         (Create): Remove call to Set_Length; use Set_Family to set the family
3481         and (on appropriate platforms) length fields in struct sockaddr.
3482
3483         * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb, 
3484         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb, 
3485         g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
3486         Move common code out of GNAT.Sockets.Thin implementations and into
3487         Thin_Common.
3488
3489         * g-socket.ads, g-socket.adb: 
3490         Move common code out of GNAT.Sockets.Thin implementations and into
3491         Thin_Common.
3492         (Connect_Socket, Accept_Socket): Provide new versions of these two
3493         routines that operate with a user specified timeout.
3494         (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
3495         this is now handled automatically by Set_Family on platforms that
3496         require it.
3497
3498         * gen-soccon.c: 
3499         Move common code out of GNAT.Sockets.Thin implementations and into
3500         Thin_Common.
3501         (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
3502         this constant to 0 (not -1) because we use it to initialize an
3503         unsigned_char value.
3504         Align values for numeric constants only.
3505         Handle the case of systems that do not support AF_INET6.
3506         New constant SIZEOF_fd_set
3507         New flag Has_Sockaddr_Len
3508         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3509
3510         * gsocket.h: New flag Has_Sockaddr_Len
3511         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3512
3513 2008-05-20  Santiago Uruena  <uruena@adacore.com>
3514
3515         * i-cobol.ads: Interfaces.COBOL should be preelaborate.
3516
3517 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
3518
3519         * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
3520         the underlying issue with malloc/free has been fixed. Remove associated
3521         comments.
3522         Minor reformatting.
3523         Related to PR ada/24533
3524
3525 2008-05-20  Robert Dewar  <dewar@adacore.com>
3526
3527         * ali.adb: Correct casing of ASCII.NUL
3528
3529         * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
3530         properly.
3531
3532 2008-05-20  Robert Dewar  <dewar@adacore.com>
3533             Gary Dismukes  <dismukes@adacore.com>
3534
3535         * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
3536         overflow if result converted to wider integer type.
3537         (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
3538         discriminated types when discriminant checks are suppressed.
3539
3540 2008-05-20  Vincent Celier  <celier@adacore.com>
3541
3542         * cstand.adb (Print_Standard): Issue the correct Size clause for type
3543         Wide_Wide_Character.
3544
3545 2008-05-20  Tristan Gingold  <gingold@adacore.com>
3546
3547         * decl.c: Do not emit a variable for a object that has an address
3548         representation clause whose value is known at compile time.
3549         When a variable has an address clause whose value is known at compile
3550         time, refer to this variable by using directly the address instead of
3551         dereferencing a pointer.
3552
3553 2008-05-20  Robert Dewar  <dewar@adacore.com>
3554
3555         PR ada/30740
3556         * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
3557         subtypes, always False for non-modular types.
3558         Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
3559         entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
3560         for Shared_Storage package.
3561         (Is_RACW_Stub_Type): New entity flag.
3562
3563         * exp_ch4.adb
3564         (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
3565         case where we have a modular type with a non-binary modules.
3566         Comments reformattings.
3567
3568         * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
3569         all types.
3570
3571 2008-05-20  Javier Miranda  <miranda@adacore.com>
3572
3573         * exp_aggr.adb
3574         (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
3575         tests did not covered the case in which the type of the aggregate has
3576         no progenitors but some its parents has progenitors.
3577
3578 2008-05-20  Gary Dismukes  <dismukes@adacore.com>
3579             Hristian Kirtchev  <kirtchev@adacore.com>
3580
3581         * exp_ch3.adb
3582         (Expand_N_Object_Declaration): Correct the condition which triggers the
3583         generation of a call to Displace when initializing a class-wide object.
3584         (Build_Dcheck_Functions): Build discriminant-checking for null variants
3585         when Frontend_Layout_On_Target is true to ensure that they're available
3586         for calling when a record variant size function is built in Layout.
3587
3588 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3589
3590         * exp_ch5.adb (Expand_Assign_Record): Within an initialization
3591         procedure for a derived type retrieve the discriminant values from the
3592         parent using the corresponding discriminant.
3593         (Expand_N_Assignment_Statement): Skip generation of implicit
3594         if-statement associated with controlled types if we are
3595         compiling with restriction No_Finalization.
3596
3597 2008-05-20  Vincent Celier  <celier@adacore.com>
3598
3599         * prj.adb (Hash (Project_Id)): New function
3600         (Project_Empty): Add new component Interfaces_Defined
3601
3602         * prj.ads (Source_Data): New component Object_Linked
3603         (Language_Config): New components Object_Generated and Objects_Linked
3604         (Hash (Project_Id)): New function
3605         (Source_Data): New Boolean components In_Interfaces and
3606         Declared_In_Interfaces.
3607         (Project_Data): New Boolean component Interfaces_Defined
3608
3609         * prj-attr.adb: 
3610         New project level attribute Object_Generated and Objects_Linked
3611         Add new project level attribute Interfaces
3612
3613         * prj-dect.adb: Use functions Present and No throughout
3614         (Parse_Variable_Declaration): If a string type is specified as a simple
3615         name and is not found in the current project, look for it also in the
3616         ancestors of the project.
3617
3618         * prj-makr.adb: 
3619         Replace procedure Make with procedures Initialize, Process and Finalize
3620         to implement H414-023: process different directories with different
3621         patterns.
3622         Use functions Present and No throughout
3623
3624         * prj-makr.ads: 
3625         Replace procedure Make with procedures Initialize, Process and Finalize
3626
3627         * prj-nmsc.adb
3628         (Add_Source): Set component Object_Exists and Object_Linked accordnig to
3629         the language configuration.
3630         (Process_Project_Level_Array_Attributes): Process new attributes
3631         Object_Generated and Object_Linked.
3632         (Report_No_Sources): New Boolean parameter Continuation, defaulted to
3633         False, to indicate that the erreor/warning is a continuation.
3634         (Check): Call Report_No_Sources with Contnuation = True after the first
3635         call.
3636         (Error_Msg): Process successively contnuation character and warning
3637         character.
3638         (Find_Explicit_Sources): Check that all declared sources have been found
3639         (Check_File): Indicate in hash table Source_Names when a declared source
3640         is found.
3641         (Check_File): Set Other_Part when found
3642         (Find_Explicit_Sources): In multi language mode, check if all exceptions
3643         to the naming scheme have been found. For Ada, report an error if an
3644         exception has not been found. Otherwise, disregard the exception.
3645         (Check_Interfaces): New procedure
3646         (Add_Source): When Other_Part is defined, set mutual pointers in spec
3647         and body.
3648         (Check): In multi-language mode, call Check_Interfaces
3649         (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
3650         for an excluded source.
3651         (Remove_Source): A source replacing a source in the interfaces is also
3652         in the interfaces.
3653
3654         * prj-pars.adb: Use function Present
3655
3656         * prj-part.adb: Use functions Present and No throughout
3657         (Parse_Single_Project): Set the parent project for child projects
3658         (Create_Virtual_Extending_Project): Register project with no qualifier
3659         (Parse_Single_Project): Allow an abstract project to be extend several
3660         times. Do not allow an abstract project to extend a non abstract
3661         project.
3662
3663         * prj-pp.adb: Use functions Present and No throughout
3664         (Print): Take into account the full associative array attribute
3665         declarations.
3666
3667         * prj-proc.adb: Use functions Present and No throughout
3668         (Expression): Call itself with the same From_Project_Node for the
3669         default value of an external reference.
3670
3671         * prj-strt.adb: Use functions Present and No throughout
3672         (Parse_Variable_Reference): If a variable is specified as a simple name
3673         and is not found in the current project, look for it also in the
3674         ancestors of the project.
3675
3676         * prj-tree.ads, prj-tree.adb (Present): New function
3677         (No): New function
3678         Use functions Present and No throughout
3679         (Parent_Project_Of): New function
3680         (Set_Parent_Project_Of): New procedure
3681
3682         * snames.ads, snames.adb: 
3683         Add new standard names Object_Generated and Objects_Linked
3684
3685 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
3686
3687         * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
3688         and the derived type are of the same kind.
3689         (Expand_Call): Generate type conversions for actuals of
3690         record or array types when the parent and the derived types differ in
3691         size and/or packed status.
3692
3693 2008-05-20  Javier Miranda  <miranda@adacore.com>
3694             Ed Schonberg  <schonberg@adacore.com>
3695
3696         * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
3697         generating dispatch tables of locally defined tagged types statically.
3698         Remove implicit if-statement that is no longer required.
3699         (Expand_Dispatching_Call): If this is a call to an instance of the
3700         generic dispatching constructor, the type of the first argument may be
3701         a subtype of Tag, so always use the base type to recognize this case.
3702
3703 2008-05-20  Thomas Quinot  <quinot@adacore.com>
3704
3705         * exp_dist.adb
3706         (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
3707         and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
3708         assigning NULL into the result, to avoid a spurious warning.
3709         (Add_RACW_Features, case Same_Scope): Add assertion that designated type
3710         is not frozen.
3711         (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
3712         type.
3713         (Build_From_Any_Function, Build_To_Any_Function,
3714         Build_TypeCode_Function): For a type that has user-specified stream
3715         attributes, use an opaque sequence of octets as the representation.
3716
3717 2008-05-20  Kevin Pouget  <pouget@adacore.com>
3718
3719         * exp_smem.ads, exp_smem.adb: Construction of access and assign
3720         routines has been replaced by an instantiation of
3721         System.Shared_Storage.Shared_Var_Procs generic package, while expanding
3722         shared variable declaration.
3723         Calls to access and assign routines have been replaced by calls to
3724         Read/Write routines of System.Shared_Storage.Shared_Var_Procs
3725         instantiated package.
3726         
3727         * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
3728         It identifies the new generic package added in s-shasto.
3729
3730         * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
3731         is instantiated for each shared passive variable. It provides
3732         supporting procedures called upon each read or write access by the
3733         expanded code.
3734
3735         * sem_attr.adb:
3736         For this runtime unit (always compiled in GNAT mode), we allow
3737         stream attributes references for limited types for the case where
3738         shared passive objects are implemented using stream attributes,
3739         which is the default in GNAT's persistent storage implementation.
3740
3741 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3742
3743         * freeze.adb
3744         (Freeze_Enumeration_Type): For a subtype that inherits a foreign
3745         convention from its base type, do not set the type to that of integer,
3746         because it may inherit a size clause.
3747         Warn on a size clause with a size different
3748         from that of Integer, if the type has convention C.
3749
3750 2008-05-20  Vincent Celier  <celier@adacore.com>
3751
3752         * gnatname.adb
3753         (Scan_Args): Rewrite to take into account new switch --and to separate
3754         arguments into sections.
3755         (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
3756         section, then Finalize.
3757
3758 2008-05-20  Tristan Gingold  <gingold@adacore.com>
3759
3760         * init.c: Enable stack probing on ppc-linux.
3761
3762         * tracebak.c: Add symbolic traceback for ppc-linux.
3763
3764         * system-linux-ppc.ads: Enable stack probing on ppc-linux.
3765
3766 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
3767
3768         * Makefile.in
3769         (common-tools): New rule, to avoid parallel build failure on gnat tools.
3770         Reenable parallel builds on this Makefile.
3771
3772         * Make-lang.in: Update dependencies.
3773
3774 2008-05-20  Robert Dewar  <dewar@adacore.com>
3775
3776         * opt.ads (Treat_Restrictions_As_Warnings): New switch
3777
3778         * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
3779         Treat_Restrictions_As_Warnings.
3780
3781         * switch-c.adb: Recognize new switch -gnatr
3782
3783         * usage.adb: Add line for -gnatr
3784
3785 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
3786
3787         * par-ch3.adb
3788         (P_Access_Definition): Change the error message when parsing "access
3789         all" in Ada 95 mode. The message no longer forces the user to recompile
3790         in 05 mode only to discover that anonymous access types are not allowed
3791         to have "all".
3792
3793 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
3794
3795         * par-ch9.adb
3796         (P_Protected): Update the error message on missing "-gnat05" switch when
3797         using interfaces in conjunction with protected types. Remove the
3798         incorrect error message associated with the presence of "private" after
3799         a "with".
3800
3801 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3802
3803         * sem_aggr.adb: Update comments.
3804         Improve previous change for PR ada/17985
3805
3806 2008-05-20  Thomas Quinot  <quinot@adacore.com>
3807
3808         * sem_cat.adb
3809         (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
3810         the visible part of the spec of a remote types unit.
3811         (Validate_Remote_Access_Object_Type_Declaration):
3812         New local subprogram Is_Valid_Remote_Object_Type, replaces
3813         Is_Recursively_Limited_Private.
3814         (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
3815         non-controlling formals (and the return type, even though this is not
3816         explicit in the standard) must support external streaming.
3817         (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
3818         as above for of RAS types and RCI subprograms. (The return type is not
3819         checked yet).
3820         Update comments related to RACWs designating limited interfaces per
3821         ARG ruling on AI05-060.
3822
3823         * sem_util.ads, sem_util.adb
3824         (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
3825         Is_Remote_Call_Interface to identify RACW types in a stable and
3826         consistent way. We used to rely in this predicate on the privateness of
3827         the designated type and its ancestors, but depending on the currently
3828         visible private parts, this caused false negatives. We now uniformly
3829         rely on checks made at the point where the RACW type is declared.
3830         (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
3831
3832 2008-05-20  Javier Miranda  <miranda@adacore.com>
3833             Ed Schonberg  <schonberg@adacore.com>
3834             Hristian Kirtchev  <kirtchev@adacore.com>
3835
3836         * sem_ch3.adb
3837         (Analyze_Object_Declaration): Fix over-conservative condition
3838         restricting use of predefined assignment with tagged types that have
3839         convention CPP.
3840         (Analyze_Object_Declaration): Relax the check regarding deferred
3841         constants declared in scopes other than packages since they can be
3842         completed with pragma Import.
3843         Add missing escaping of all-caps word 'CPP' in error messages.
3844         (Build_Discriminated_Subtype): Do not inherit representation clauses
3845         from parent type if subtype already carries them, because they are
3846         inherited earlier during derivation and already include those that may
3847         come from a partial view.
3848
3849         * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
3850         Check the declarations of a subprogram body for proper deferred
3851         constant completion.
3852
3853         * sem_ch7.ads, sem_ch7.adb
3854         (Inspect_Deferred_Constant_Completion): Moved to sem_util.
3855
3856 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3857             Thomas Quinot  <quinot@adacore.com>
3858
3859         * sem_ch4.adb
3860         (Try_Indexed_Call): Handle properly a construct of the form F(S) where
3861         F is a parameterless function that returns an array, and S is a subtype
3862         mark.
3863         (Analyze_Call): Insert dereference when the prefix is a parameterless
3864         function that returns an access to subprogram and the call has
3865         parameters.
3866         Reject a non-overloaded call whose name resolves to denote
3867         a primitive operation of the stub type generated to support a remote
3868         access-to-class-wide type.
3869
3870 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3871
3872         * sem_ch8.adb
3873         (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
3874         when there is a use clause for the same entity in the context.
3875         (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
3876         created for a stream attribute of an abstract type or interface type.
3877
3878 2008-05-20  Thomas Quinot  <quinot@adacore.com>
3879
3880         * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
3881         subprogram.
3882
3883         * sem_type.adb
3884         (Add_One_Interp): Ignore any interpretation that is a primitive
3885         operation of an RACW stub type (these primitives are only executed
3886         through dispatching, never through static calls).
3887         (Collect_Interps): When only one interpretation has been found, set N's
3888         Entity and Etype to that interpretation, otherwise Entity and Etype may
3889         still refer to an interpretation that was ignored by Add_One_Interp,
3890         in which case would end up with being marked as not overloaded but with
3891         an Entity attribute not pointing to its (unique) correct interpretation.
3892
3893 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3894
3895         * sem_eval.adb
3896         (Eval_Slice): Warn when a slice whose discrete range is a subtype name
3897         denotes the whole array of its prefix.
3898
3899 2008-05-20  Robert Dewar  <dewar@adacore.com>
3900
3901         * sem_res.adb (Resolve_Op_Not): Warn on double negation
3902
3903 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3904
3905         * sprint.adb
3906         (Print_Itype): Do not modify the sloc of the component type of a
3907         (packed) array itype, because it is an unrelated type whose source
3908         location is independent of the point of creation of the itype itself.
3909
3910 2008-05-20  Thomas Quinot  <quinot@adacore.com>
3911
3912         * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
3913         Append.
3914
3915 2008-05-20  Robert Dewar  <dewar@adacore.com>
3916             Vincent Celier  <celier@adacore.com>
3917
3918         * vms_data.ads: Add entry for -gnatr
3919         Put GNAT SYNC section in proper alpha order
3920         Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
3921
3922         * gnat_ugn.texi: Add documentation for new gnatname switch --and
3923         Update the style checks section
3924         Add documentation of -gnatr
3925         Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
3926         subsection the explanation how compiler checks should be disabled for
3927         gnatcheck.
3928         Update the list of Ada 95 reserved words used by in the project language
3929         Add documentation for project qualifiers.
3930         Document that abstract projects may be extended by different projects in
3931         the same project tree.
3932         Add documentation for gnatmake switch -d
3933
3934         * ug_words: Add -gnatyy VMS equivalence string.
3935         Add entry for -gnatr
3936
3937 2008-05-20  Bob Duff  <duff@adacore.com>
3938
3939         * a-rttiev.adb
3940         (Set_Handler): Remove code from both of these that implements
3941         RM-D.15(15/2), because it causes a race condition and potential
3942         deadlock.
3943         (Process_Queued_Events): Add comment explaining "exception when others
3944         => null". Add clarifying ".all", even though implicit .all is legal
3945         here.
3946
3947 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
3948
3949         * s-winext.ads: Replace representation clause by pragma Pack. Gives
3950         equivalent representation, but has the advantage of allowing
3951         compilation of this file under 64 bits platforms.
3952
3953         * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
3954
3955         * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
3956
3957         * adaint.c: 
3958         Don't define dummy implementation of convert_addresses on ppc-linux.
3959
3960 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3961
3962         * exp_ch7.adb
3963         (Expand_Ctrl_Function_Call): Do not attach result to finalization list
3964         if expression is aggregate component.
3965
3966 2008-05-20  Robert Dewar  <dewar@adacore.com>
3967
3968         * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
3969         sem_ch12.adb: Update comments. Minor reformatting.
3970
3971         * exp_ch2.adb: Typo
3972
3973         * s-unstyp.ads: Fixed some typos in comments.
3974
3975 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
3976
3977         * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
3978         type/constant.
3979
3980         * g-socthi-vxworks.ads: Update to latest socket changes.
3981
3982         * a-caldel-vms.adb: Resync with a-caldel spec.
3983
3984         * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
3985         Update comments.
3986
3987 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
3988
3989         * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
3990         for dummy types pointed to by the converted pointer types.
3991
3992 2008-05-15  Eric Botcazou  <ebotcazou@adacore.com>
3993
3994         * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
3995         of records and unions.
3996         (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
3997
3998 2008-05-14  Samuel Tardieu  <sam@rfc1149.net>
3999             Robert Dewar <dewar@adacore.com>
4000
4001         * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
4002         restrictions to the prefix of 'Old.
4003         * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
4004         * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
4005         variables.
4006
4007 2008-05-13  Eric Botcazou  <ebotcazou@adacore.com>
4008
4009         PR ada/24880
4010         PR ada/26635
4011         * utils.c (convert) <INTEGER_TYPE>: When converting an additive
4012         expression to an integral type with lower precision, use NOP_EXPR
4013         directly in a couple of special cases.
4014
4015 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
4016             Ed Schonberg <schonberg@adacore.com>
4017
4018         * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
4019         constraint expressions.
4020
4021 2008-05-12  Tomas Bily  <tbily@suse.cz>
4022
4023         * utils2.c (known_alignment, contains_save_expr_p)
4024         (gnat_mark_addressable): Use CASE_CONVERT.
4025         * decl.c (annotate_value): Likewise.
4026         * trans.c (maybe_stabilize_reference): Likewise.
4027         * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
4028         * utils.c (rest_of_record_type_compilation): Likewise.
4029         * trans.c (protect_multiple_eval, Attribute_to_gnu)
4030         (protect_multiple_eval): Likewise.
4031
4032 2008-05-08  Andreas Schwab  <schwab@suse.de>
4033
4034         * utils.c (handle_pure_attribute, init_gigi_decls): Rename
4035         DECL_IS_PURE to DECL_PURE_P.
4036
4037 2008-05-05  Eric Botcazou  <ebotcazou@adacore.com>
4038
4039         * decl.c (maybe_pad_type): Add ??? comment.
4040
4041 2008-05-03  Eric Botcazou  <ebotcazou@adacore.com>
4042
4043         * decl.c (components_to_record): Zero the alignment of the qualified
4044         union built for the variant part upon creating it.
4045
4046 2008-05-03  Eric Botcazou  <ebotcazou@adacore.com>
4047
4048         * decl.c (maybe_pad_type): Try to get a form of the type with integral
4049         mode even if the alignment is not a factor of the original size.  But
4050         make sure to create the inner field with the original size.  Reorder.
4051         * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
4052         record as always addressable.
4053         * utils.c (convert): Deal specially with conversions between original
4054         and packable versions of a record type.
4055         * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
4056         recognizing an assignment between padded objects.
4057
4058 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
4059
4060         * decl.c (make_packable_type): Resize the last component to its RM size
4061         only if it is of an aggregate type.
4062         * trans.c (call_to_gnu): Fix nit in comment.
4063         (gnat_to_gnu): Likewise.
4064
4065 2008-04-30  Samuel Tardieu  <sam@rfc1149.net>
4066
4067         * Makefile.in: Adapt sh4-linux target.
4068
4069 2008-04-29  Ed Schonberg  <schonberg@adacore.com>
4070
4071         PR ada/35792
4072         * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
4073         tagged type by an untagged protected or task type.
4074
4075 2008-04-28  Eric Botcazou  <ebotcazou@adacore.com>
4076             Tristan Gingold  <gingold@adacore.com>
4077
4078         PR ada/36007
4079         * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
4080         of aliased objects with an unconstrained nominal subtype.
4081         Cap the promotion to the effective alignment of the word mode.
4082
4083 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4084
4085         * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
4086         (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
4087         Use '&&' instead of ';'.
4088
4089 2008-04-24  Olivier Hainque  <hainque@adacore.com>
4090
4091         * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
4092         doesn't require signed arithmetic anymore.
4093
4094 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
4095
4096         * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
4097         (call_to_gnu): Don't set TREE_INVARIANT.
4098         * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
4099
4100 2008-04-22  Joel Sherrill <joel.sherrill@oarcorp.com>
4101
4102         * s-osinte-rtems.adb: Add sigalstack function.
4103         * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
4104         function. Add Alternate_Stack and Alternate_Stack_Size.
4105         Add missing process_shared field to pthread_condattr_t
4106         and change ss_low_priority to int from timespec.
4107
4108 2008-04-22  Samuel Tardieu  <sam@rfc1149.net>
4109
4110         * i-forbla.adb: Link against -llapack and -lblas by default
4111         instead of the private -lgnalasup.
4112
4113 2008-04-21  Olivier Hainque  <hainque@adacore.com>
4114
4115         Access to most C builtins from Ada
4116         * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
4117         (handle_pure_attribute, handle_novops_attribute,
4118         handle_nonnull_attribute, handle_sentinel_attribute,
4119         handle_noreturn_attribute, handle_malloc_attribute,
4120         handle_type_generic_attribute): New attribute handlers, from C fe.
4121         (gnat_internal_attribute_table): Map the new handlers.
4122         (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
4123         (init_gigi_decls): ... here.
4124         (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
4125         Move to a section dedicated to builtins processing.
4126         (build_void_list_node, builtin_type_for_size): New functions.
4127         (def_fn_type, get_nonnull_operand): Likewise.
4128         (install_builtin_elementary_type, install_builtin_function_types,
4129         install_builtin_attributes): Likewise.
4130         (fake_attribute_handler): Fake handler for attributes we don't
4131         support in Ada.
4132         (def_builtin_1): New function, worker for DEF_BUILTIN.
4133         (install_builtin_functions): New function.
4134         (gnat_install_builtins): Move to the builtins processing section.
4135         Now calling the newly introduced installers.
4136
4137 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
4138
4139         * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
4140         constant objects, but not exceptions.
4141         * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
4142         compatibility test.
4143         * utils.c (create_var_decl_1): Likewise.
4144         * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
4145         the type when copying to padded object and the source is a constructor.
4146
4147 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4148
4149         * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
4150         alignment, reset it to zero if it would end up not being greater
4151         than that of the type.
4152
4153 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4154
4155         * decl.c (maybe_pad_type): Only generate the XVS parallel type if
4156         the padded type has a variable size.
4157
4158 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4159
4160         * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
4161         target pointer mechanism as soon as the size is not constant.
4162
4163 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4164
4165         * gigi.h (create_var_decl_1): Declare.
4166         (create_var_decl): Turn into a macro invoking create_var_decl_1.
4167         (create_true_var_decl): Likewise.
4168         * utils.c (create_var_decl_1): Make global and reorder parameters.
4169         (create_var_decl): Delete.
4170         (create_true_var_decl): Likewise.
4171
4172 2008-04-17  Eric Botcazou  <ebotcazou@adacore.com>
4173
4174         * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
4175         objects by default.
4176         * fe.h (Debug_Flag_Dot_A): Delete.
4177         * debug.adb (-gnatd.a): Update documentation.
4178
4179 2008-04-17  Samuel Tardieu  <sam@rfc1149.net>
4180
4181         * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
4182         "not null" parameter.
4183
4184 2008-04-17  Samuel Tardieu  <sam@rfc1149.net>
4185
4186         * g-socket.adb: Add a message "IPv6 not supported" to the
4187         Socket_Error exception.
4188
4189 2008-04-16  Samuel Tardieu  <sam@rfc1149.net>
4190
4191         PR ada/29015
4192         * sem_ch12.adb (Instantiate_Type): Check whether the full view of
4193         the type is known instead of the underlying type.
4194
4195 2008-04-15  Ed Schonberg  <schonberg@adacore.com>
4196
4197         PR ada/22387
4198         * exp_ch5.adb (Expand_Assign_Record): Within an initialization
4199         procedure for a derived type retrieve the discriminant values from
4200         the parent using the corresponding discriminant.
4201
4202 2008-04-15  Samuel Tardieu  <sam@rfc1149.net>
4203             Gary Dismukes  <dismukes@adacore.com>
4204
4205         PR ada/28733
4206         * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
4207         which is not an entity (and hence not a package).
4208         (End_Use_Package): Ditto.
4209
4210 2008-04-15  Ed Schonberg  <schonberg@adacore.com>
4211
4212         PR ada/16086
4213         * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
4214         protected operation that matches the signature, not only an entry, a
4215         regular subprogram or a literal.
4216
4217 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4218
4219         * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
4220         * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
4221         if a size or alignment is specified.  Do not take into account
4222         alignment promotions for the computation of the object's size.
4223         <type>: Call maybe_pad_type only if a size or alignment is specified.
4224         (maybe_pad_type): Really reuse the RM_Size of the original type if
4225         requested.
4226         * trans.c (Attribute_to_gnu): Fix a couple of nits.
4227         * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
4228         statements.  Use the padded view of the type when copying between
4229         padded objects of the same underlying type.
4230
4231 2008-04-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4232
4233         * vms_data.ads: Fix typo in constant.
4234         * gen-soccon.c: Fix typo in error string.
4235         * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
4236         Fix typos.
4237         * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
4238         bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
4239         erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
4240         exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
4241         exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
4242         g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
4243         mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
4244         s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
4245         s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
4246         sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
4247         sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
4248         sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
4249         sinfo.ads: Fix typos in comments.
4250
4251 2008-04-14  Robert Dewar  <dewar@adacore.com>
4252
4253         * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
4254         to every non-object and change error message.
4255
4256 2008-04-14  Robert Dewar  <dewar@adacore.com>
4257
4258         * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
4259         * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
4260         directly.
4261
4262 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4263
4264         PR ada/18680
4265         * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
4266         apply pragma Linker_Section on type.
4267
4268 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4269
4270         PR ada/16098
4271         * sem_prag.adb (Error_Pragma_Ref): New.
4272         (Process_Convention): Specialized message for non-local
4273         subprogram renaming. Detect the problem in homonyms as well.
4274
4275 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4276
4277         PR ada/15915
4278         * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
4279         * sem_ch12.adb (Instantiate_Object): Use it.
4280         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
4281         storage pool denotes a variable as per RM 13.11(15).
4282
4283 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4284
4285         * sem_util.ads, sem_util.adb (In_Subprogram): New function.
4286         * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
4287
4288 2008-04-14  Rolf Ebert  <rolf.ebert.gcc@gmx.de>
4289
4290         PR ada/20822
4291         * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
4292         line endings even on non-Unix platforms.
4293
4294 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
4295
4296         PR ada/35050
4297         * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
4298         renaming information.
4299
4300 2008-04-13  Samuel Tardieu  <sam@rfc1149.net> 
4301
4302         PR ada/17985
4303         * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
4304         itself.
4305
4306 2008-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4307
4308         * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
4309         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
4310         snames.ads, sprint.adb, stand.ads, stringt.ads,
4311         styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
4312         switch.ads, sysdep.c, table.adb, table.ads,
4313         targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
4314         trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
4315         uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
4316         vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
4317         widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
4318         xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
4319         Fix comment typos.
4320
4321         * sem_ch10.adb, sem_ch10.ads,
4322         sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
4323         sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
4324         sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
4325         sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
4326         sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
4327         sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
4328         sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
4329         sem_warn.ads: Fix comment typos.
4330
4331         * s-secsta.adb, s-sequio.ads, s-shasto.ads,
4332         s-soflin.ads, s-stalib.ads, s-stausa.adb,
4333         s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
4334         s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
4335         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
4336         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
4337         s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
4338         s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
4339         s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
4340         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
4341         s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
4342         s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
4343         s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
4344         s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
4345         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
4346         scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
4347         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
4348         sem_cat.adb, sem_cat.ads: Fix comment typos.
4349
4350 2008-04-12  Joel Sherrill  <joel@oarcorp.com>
4351
4352         PR ada/35825
4353         * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
4354
4355 2008-04-12  Arnaud Charlet  <charlet@adacore.com>
4356
4357         * s-linux-hppa.ads: Fix syntax errors.
4358
4359 2008-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4360
4361         * gnat_ugn.texi: Fix typos.
4362         * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
4363         restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
4364         s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
4365         s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
4366         s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
4367         s-finimp.adb, s-finroo.ads, s-fishfl.ads,
4368         s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
4369         s-hibaen.ads, s-htable.ads, s-imgcha.adb,
4370         s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
4371         s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
4372         s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
4373         s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
4374         s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
4375         s-osinte-darwin.ads, s-osinte-freebsd.ads,
4376         s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
4377         s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
4378         s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
4379         s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
4380         s-parame-hpux.ads, s-parame-vms-alpha.ads,
4381         s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
4382         s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
4383         s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
4384         s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
4385         s-rident.ads: Fix comment typos.
4386
4387 2008-04-09  Samuel Tardieu  <sam@rfc1149.net>
4388
4389         PR ada/28305
4390         * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
4391         environment if generic instance is a top-level one.
4392
4393 2008-04-09  Doug Rupp  <rupp@adacore.com>
4394
4395         * decl.c (validate_size): Set minimum size for fat pointers same as
4396         access types. Code clean ups.
4397
4398         * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
4399         (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
4400
4401         * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
4402
4403         * s-crtl.ads (malloc32) New function, alias for malloc
4404         (realloc32) New function, alias for realloc
4405
4406         * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
4407
4408         * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
4409         allocator size is 32 and default pointer size is 64.
4410         (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
4411         lhs type if smaller, whatever the modes.
4412
4413         * gigi.h (malloc32_decl): New macro definition
4414
4415         * utils.c (init_gigi_decls): New malloc32_decl
4416         Various code clean ups.
4417
4418         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
4419         Task_Address vice System.Address.
4420
4421         * s-taspri-vms.ads: Import System.Aux_DEC
4422         (Task_Address): New subtype of System.Aux_DEC.Short_Address
4423         (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
4424
4425         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
4426         Task_Address vice System.Address.
4427
4428         * s-inmaop-vms.adb: Import System.Task_Primitives
4429         (To_Address): Unchecked convert to Task_Address vice System.Address
4430
4431         * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
4432         expires now.
4433         (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
4434         (To_Address) Unchecked convert to Task_Address vice System.Address
4435
4436         * s-tpopde-vms.adb: Remove unnecessary warning pragmas
4437
4438         * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
4439
4440 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4441
4442         * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
4443         (fdesc_type_node): Define.
4444         (null_fdesc_node): Likewise.
4445         * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
4446         uses descriptors for vtables and the type comes from a dispatch table,
4447         return the descriptor type.
4448         * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
4449         uses descriptors for vtables and the type comes from a dispatch table,
4450         build a descriptor in the static case and copy the existing one in the
4451         non-static case.
4452         (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
4453         the type is a pointer-to-subprogram coming from a dispatch table,
4454         return the null descriptor.
4455         <N_Unchecked_Type_Conversion>: If the target uses descriptors for
4456         vtables, the source type is the descriptor type and the target type
4457         is a pointer type, first build the pointer.
4458         * utils.c (init_gigi_decls): If the target uses descriptors for vtables
4459         build the descriptor type and the null descriptor.
4460
4461 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4462
4463         * decl.c (prepend_attributes): Fix typo.
4464         * trans.c (Pragma_to_gnu): Likewise.
4465         * utils.c (gnat_genericize): Likewise.
4466
4467 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4468             Richard Kenner  <kenner@adacore.com>
4469
4470         * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
4471         * decl.c (gnat_to_gnu_entity): Adjust for above change.
4472         <E_Record_Type>: Try to get a better form of the component for
4473         packing, even if it has an integral mode.
4474         <E_Record_Subtype>: Likewise.
4475         * trans.c (gnat_to_gnu): Do not require BLKmode for the special
4476         exception suppressing the final conversion between record types.
4477
4478 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4479
4480         * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
4481         alignment for space, promote the alignment of non-scalar variables with
4482         no size and alignment.
4483         * gigi.h (gnat_types_compatible_p): Declare.
4484         * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
4485         * trans.c (gnat_to_gnu): Revert revision 129339 change.  Minor cleanup.
4486         * utils.c (gnat_types_compatible_p) : New predicate.
4487         (convert): Use it throughout to test for cases where a mere view
4488         conversion is sufficient.
4489         * utils2.c (build_binary_op): Minor tweaks.
4490         (build_unary_op): Likewise.
4491
4492 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4493
4494         * decl.c (adjust_packed): Expand comment.
4495
4496 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
4497
4498         * s-tasuti.ads: Use Task_Address instead of System.Address.
4499
4500         * makeutl.adb (Path_Or_File_Name): New function
4501
4502         * nlists.ads, itypes.ads: Update comments.
4503
4504         * s-crtl.ads (malloc32, realloc32): New functions.
4505
4506         * s-auxdec.ads (Short_Address_Size): New constant.
4507
4508         * a-taside.adb, s-tasdeb.adb: Use Task_Address.
4509
4510         * s-ststop.ads, s-ststop.adb: New file.
4511
4512         * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
4513         Minor reformatting.
4514
4515 2008-04-08  Pascal Obry  <obry@adacore.com>
4516
4517         * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
4518         (Stop_Bits_Number): New type.
4519         (Parity_Check): Likewise.
4520         (Set): Add parameter to set the number of stop bits and
4521         the parity. Parameter timeout is now a duration instead
4522         of a plain integer.
4523
4524         * g-sercom-linux.adb:
4525         Implement the stop bits and parity support for GNU/Linux.
4526         Fix handling of timeout, it must be given in tenth of seconds.
4527         
4528         * g-sercom-mingw.adb:
4529         Implement the stop bits and parity support for Windows.
4530         Use new s-win32.ads unit instead of declaring Win32 services
4531         directly into this body.
4532         Update handling of timeout as now a duration.
4533
4534         * s-win32.ads, s-winext.ads: New files.
4535
4536 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4537             Arnaud Charlet  <charlet@adacore.com>
4538
4539         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
4540
4541         s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
4542         s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
4543
4544         * s-osinte-lynxos-3.ads,
4545         (Alternate_Stack): Remove when not needed. Simplify declaration
4546         otherwise.
4547         (Alternate_Stack_Size): New constant.
4548
4549         s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
4550         'Unrestricted_Access.
4551
4552         * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
4553         s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
4554         s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
4555         s-osinte-solaris.ads, s-osinte-vms.ads
4556         (SA_ONSTACK): New constant.
4557         (stack_t): New record type.
4558         (sigaltstack): New imported function.
4559         (Alternate_Stack): New imported variable.
4560         (Alternate_Stack_Size): New constant.
4561
4562         * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
4563
4564         * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
4565         s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
4566         s-taspri-vms.ads (Task_Address): New subtype of System.Address
4567         (Task_Address_Size): New constant size of System.Address
4568         (Alternate_Stack_Size): New constant.
4569
4570         * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
4571         (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
4572         Establish the alternate stack if the platform makes use of n alternate
4573         signal stack for stack overflows.
4574         (Create_Task): Take into account the alternate stack in the stack size.
4575         (Initialize): Save the address of the alternate stack into the ATCB for
4576         the environment task.
4577         (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
4578
4579         * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
4580
4581         * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
4582
4583         * s-intman-posix.adb: 
4584         (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
4585         alternate signal stack for stack overflows.
4586
4587         * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
4588         x86-64, adjust the saved value of the stack pointer if the signal was
4589         raised by a stack checking probe.
4590         (HP-UX section): Use global __gnat_alternate_stack as signal handler
4591         stack and only for SIGSEGV.
4592         (Linux section): Likewise on x86 and x86-64.
4593         [VxWorks section]
4594         (__gnat_map_signal): Now static.
4595         (__gnat_error_handler): Not static any more.
4596         (__gnat_adjust_context_for_raise): New function. Signal context
4597         adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
4598         propagation circuitry.
4599         (__gnat_error_handler): Second argument of a sigaction handler is a
4600         pointer, not an int, and is unused.
4601         Adjust signal context before mapping to exception.
4602         Install signal handlers for LynxOS case.
4603
4604         * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
4605         (Task_Id): Set size to Task_Address_Size
4606         (To_Task_id): Unchecked convert from Task_Address vice System.Address
4607         (To_Address): Unchecked convert to Task_Address vice System.Address
4608
4609         * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
4610         address into the ATCB if the platform makes use of an alternate signal
4611         stack for stack overflows.
4612         (Free_Task): Add call to Finalize_Attributes_Link.
4613         Add argument Relative_Deadline to pass the value specified for
4614         the task. This is not yet used for any target.
4615
4616         * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
4617         the value specified for the task.
4618
4619 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
4620
4621         (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
4622         (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
4623         s-vxwext-rtp.adb): New files.
4624
4625         * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb: 
4626         Minor updates to accomodate changes above.
4627
4628 2008-04-08  Pascal Obry  <obry@adacore.com>
4629
4630         * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
4631         s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
4632         Use new s-win32.ads unit instead of declaration
4633         from s-osinte-mingw.ads.
4634         
4635         * s-osinte-mingw.ads:
4636         Move all non tasking based interface to s-win32.ads.
4637         
4638         * s-osprim-mingw.adb:
4639         Remove duplicated declarations and use s-win32.ads
4640         unit instead.
4641
4642 2008-04-08  Vincent Celier  <celier@adacore.com>
4643             Arnaud Charlet  <charlet@adacore.com>
4644
4645         * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
4646         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
4647         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
4648         mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
4649         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
4650
4651         * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
4652         mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
4653         mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
4654         mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
4655         mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
4656         mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
4657         mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
4658         mlib-tgt-specific-mingw.adb: New names.
4659
4660         * Makefile.in: 
4661         On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
4662         Get rid of gnatbl.
4663         (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
4664         Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
4665         Minor updates for VMS
4666
4667         * gnatbl.c: Removed.
4668
4669 2008-04-08  Thomas Quinot  <quinot@adacore.com>
4670
4671         * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
4672         g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
4673         gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
4674         a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
4675         s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
4676         ASCII.NUL throughout.
4677
4678 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
4679             Matthew Heaney  <heaney@adacore.com>
4680
4681         * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
4682         renaming.
4683
4684         * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,  
4685         a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
4686         to convention for non-RM specs.
4687         Add descriptive header, and documented each operation
4688         document each operation
4689
4690 2008-04-08  Robert Dewar  <dewar@adacore.com>
4691             Bob Duff  <duff@adacore.com>
4692             Gary Dismukes  <dismukes@adacore.com>
4693             Ed Schonberg  <schonberg@adacore.com>
4694
4695         * alloc.ads: Add entries for Obsolescent_Warnings table
4696
4697         * einfo.ads, einfo.adb: Minor reformatting.
4698         (Is_Discriminal): New subprogram.
4699         (Is_Prival): New subprogram.
4700         (Is_Protected_Component): New subprogram.
4701         (Is_Protected_Private): Removed.
4702         (Object_Ref, Set_Object_Ref): Removed.
4703         (Prival, Set_Prival): Change assertion.
4704         (Privals_Chain, Set_Privals_Chain): Removed.
4705         (Prival_Link, Set_Prival_Link): New subprogram.
4706         (Protected_Operation, Set_Protected_Operation): Removed.
4707         (Protection_Object, Set_Protection_Object): New subprogram.
4708         (Write_Field17_Name): Remove case for Object_Ref.
4709         (Write_Field20_Name): Add case for Prival_Link.
4710         (Write_Field22_Name): Remove case for Protected_Operation,
4711         Privals_Chain.
4712         Add case for Protection_Object.
4713         (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
4714         so clients
4715         (Overlays_Constant): New flag
4716         (Is_Constant_Object): New predicate
4717         (Is_Standard_Character_Type): New predicate
4718         (Optimize_Alignment_Space): New flag
4719         (Optimize_Alignment_Time): New flag
4720         (Has_Postconditions): New flag
4721         (Obsolescent_Warrning): Field removed
4722         (Spec_PPC_List): New field
4723         (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
4724         subprograms to get and set the relative deadline associated to a task.
4725
4726         * exp_attr.adb (May_Be_External_Call): Account for the case where the
4727         Access attribute is part of a named parameter association.
4728         (Expand_Access_To_Protected_Op): Test for the attribute occurring
4729         within an init proc and use that directly as the scope rather than
4730         traversing up to the protected operation's enclosing scope. Only apply
4731         assertion on Is_Open_Scopes in the case the scope traversal is done.
4732         For the init proc case use the address of the first formal (_init) as
4733         the protected object reference.
4734         Implement Invalid_Value attribute
4735         (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
4736         contents of the dispatch table there is no need to duplicate the
4737         itypes associated with record types (i.e. the implicit full view
4738         of private types).
4739         Implement Enum_Val attribute
4740         (Expand_N_Attribute_Reference, case Old): Properly handle appearence
4741         within _Postconditions procedure
4742         (Expand_N_Attribute_Reference, case Result): Implement new attribute
4743
4744         * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
4745         a return statement calls a function that is not available in
4746         configurable runtime.
4747         (Analyze_If_Statement): don't optimize simple True/False cases in -O0
4748         (Expand_Non_Function_Return): Generate call to _Postconditions proc
4749         (Expand_Simple_Function_Return): Ditto
4750
4751         * frontend.adb: Add call to Sem_Aux.Initialize
4752
4753         * sem_aux.ads, sem_aux.adb: New file.
4754
4755         * par-prag.adb: Add entries for pragmas Precondition/Postcondition
4756         Add new Pragma_Relative_Deadline.
4757         Add support for pragmas Check and Check_Policy
4758
4759         * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
4760         (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
4761         (Analyze_Attribute): In case of attributes 'Alignment and 'size add
4762         missing check because they are not allowed in CPP tagged types.
4763         Add Sure parameter to Note_Possible_Modification calls
4764         Add implementation of Invalid_Value attribute
4765         Implement new attribute Has_Tagged_Values
4766         Implement Enum_Val attribute
4767         (Analyze_Attribute, case Range): Set Name_Req True for prefix of
4768         generated attributes.
4769         (Analyze_Attribute, case Result): If prefix of the attribute is
4770         overloaded, it always resolves to the enclosing function.
4771         (Analyze_Attribute, case Result): Properly deal with analysis when
4772         Postconditions are not active.
4773         (Resolve_Attribute, case Result): Properly deal with appearence during
4774         preanalysis in spec.
4775         Add processing for attribute Result
4776
4777         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
4778         for operators.
4779         (Analyze_Subprogram_Body): Install private_with_clauses when the body
4780         acts as a spec.
4781         (Check_Inline_Pragma): recognize an inline pragma that appears within
4782         the subprogram body to which it applies.
4783         (Analyze_Function_Return): Check that type of the expression of a return
4784         statement in a function with a class-wide result is not declared at a
4785         deeper level than the function.
4786         (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
4787         (Verify_Overriding_Indicator): Handle properly subprogram bodies for
4788         user- defined operators.
4789         (Install_Formals): Moved to spec to allow use from Sem_Prag for
4790         analysis of precondition/postcondition pragmas.
4791         (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
4792         Last_Formal, along with lots of comments on what this is about
4793         (Analyze_Subprogram_Body): Fix case where we move entities from the
4794         spec to the body when there are no body entities (now possible with
4795         precondition and postcondition pragmas).
4796         (Process_PPCs): New procedure
4797         (Analyze_Subprogram_Body): Add call to Process_PPCs
4798
4799         * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
4800         clause.
4801         (Pop_Scope): Restore Check_Policy_List on scope exit
4802         (Push_Scope): Save Check_Policy_List on scope entry
4803         Change name In_Default_Expression      => In_Spec_Expression
4804         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
4805         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
4806         (Analyze_Object_Renaming): Allow 'Reference as object
4807         (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
4808         (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
4809         of restriction identifier.
4810         Add Sure parameter to Note_Possible_Modication calls
4811
4812         * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
4813         Don't check for primitive operations when calling Rep_Item_Too_Late.
4814         (Process_Import_Or_Interface): Do not place flag on formal
4815         subprograms.
4816         (Analyze_Pragma, case Export): If the entity is a deferred constant,
4817         propagate information to full view, which is the one elaborated by the
4818         back-end.
4819         (Make_Inline): the pragma is effective if it applies to an internally
4820         generated subprogram declaration for a body that carries the pragma.
4821         (Analyze_Pragma, case Optimize_Alignment): Set new flag
4822         Optimize_Alignment_Local.
4823         (Analyze_PPC_In_Decl_Part): New procedure
4824         (Get_Pragma_Arg): Moved to outer level
4825         (Check_Precondition_Postcondition): Change to allow new visibility
4826         rules for package spec
4827         (Analyze_Pragma, case Check_Policy): Change placement rules to be
4828         same as pragma Suppress/Unsuppress.
4829         Change name In_Default_Expression      => In_Spec_Expression
4830         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
4831         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
4832         (Check_Precondition_Postcondition): Do proper visibility preanalysis
4833         for the case of these pragmas appearing in the spec.
4834         (Check_Enabled): New function
4835         (Initialize): New procedure
4836         (Tree_Read): New procedure
4837         (Tree_Write): New procedure
4838         (Check_Precondition_Postcondition): New procedure
4839         Implement pragmas Check and Check_Policy
4840         Merge Assert processing with Check
4841
4842         * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
4843         New warning flag -gnatw.e
4844
4845         * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
4846         returning whether a task (or main procedure) has a pragma
4847         Relative_Deadline.
4848         (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
4849         (or main procedure) has a pragma Relative_Deadline.
4850         Add Next_Pragma field to N_Pragma node
4851         (PPC_Enabled): New flag
4852         (Next_Pragma): Now used for Pre/Postcondition processing
4853
4854         * snames.h, snames.ads, snames.adb: New standard name
4855         Inherit_Source_Path
4856         Add entry for 'Invalid_Value attribute
4857         Add entry for new attribute Has_Tagged_Values
4858         Add entry for Enum_Val attribute
4859         Add new standard names Aggregate, Configuration and Library.
4860         Add _Postconditions
4861         Add _Result
4862         Add Pragma_Precondition
4863         Add Pragma_Postcondition
4864         Add Attribute_Result
4865         New standard name Archive_Builder_Append_Option
4866         (Preset_Names): Add _relative_deadline and relative_deadline definitions
4867         There was also a missing non_preemptive_within_priorities.
4868         (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
4869         Relative_Deadline.
4870         Add support for pragmas Check and Check_Policy
4871
4872         * tree_gen.adb: Call Sem_Aux.Tree_Write
4873
4874         * tree_in.adb: Call Sem_Aux.Tree_Read
4875
4876         * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
4877         sequence
4878
4879         * exp_intr.adb (Expand_Source_Info): New Build_Location calling
4880         sequence
4881
4882         * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
4883         (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
4884         Relative_Deadline.
4885         (Expand_Pragma_Check): New procedure
4886
4887         * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
4888         buffer.
4889
4890         * sinfo.adb (PPC_Enabled): New flag
4891
4892 2008-04-08  Robert Dewar  <dewar@adacore.com>
4893             Gary Dismukes  <dismukes@adacore.com>
4894             Javier Miranda  <miranda@adacore.com>
4895             Ed Schonberg  <schonberg@adacore.com>
4896
4897         * fe.h: Remove global Optimize_Alignment flag, no longer used
4898
4899         * layout.adb: Test Optimize_Alignment flags rather than global switch
4900
4901         * lib.ads, lib.adb: New OA_Setting field in library record
4902
4903         * lib-load.adb: New OA_Setting field in library record
4904
4905         * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
4906         units mentioned in limited_with_ clauses in the ali file, with an
4907         'Y' marker.
4908         New Ox fields in U line
4909
4910         * opt.adb: New flag Optimize_Alignment_Local
4911         (Check_Policy_List[_Config]): New flags
4912
4913         * opt.ads (Invalid_Value_Used): New flag
4914         New switch Optimize_Alignment_Local
4915         (Warn_On_Parameter_Order): New flag
4916         (Check_Policy_List[_Config]): New flags
4917
4918         * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
4919         limited_with clauses.
4920         New data structures for Optimize_Alignment
4921
4922         * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
4923         New procedure
4924         (Check_Consistent_Optimize_Alignment): Rework for new structure
4925         (Check_Consistent_Restrictions): Fix incorrect error message
4926
4927         sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
4928         created class-wide type (to the Parent field of the specific type).
4929         (Install_Siblings): Handle properly private_with_clauses on subprogram
4930         bodies and on generic units.
4931         (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
4932         illegal limited_with_clause that names a non-existent package.
4933         (Check_Body_Required): Determine whether a unit named a limited_with
4934         clause needs a body.
4935         (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
4936         Capture Optimize_Alignment settings to set new OA_Setting field in
4937         library record.
4938         (Build_Limited_Views): Include task and protected type declarations.
4939
4940         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
4941         case of a possible constant redeclaration where the current object is
4942         an entry index constant.
4943         (Analyze_Object_Declaration): Generate an error in case of CPP
4944         class-wide object initialization.
4945         (Analyze_Object_Declaration): Add extra information on warnings for
4946         declaration of unconstrained objects.
4947         (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
4948         conflicts with the setting of Stored_Constraint in the case where the
4949         access type entity has already been created as an E_Incomplete_Type due
4950         to a limited with clause.
4951         Use new Is_Standard_Character_Type predicate
4952         (Analyze_Object_Declaration): Apply access_constant check only after
4953         expression has been resolved, given that it may be overloaded with
4954         several access types.
4955         (Constant_Redeclaration): Additional legality checks for deferred
4956         constant declarations tha involve anonymous access types and/or null
4957         exclusion indicators.
4958         (Analyze_Type_Declaration): Set Optimize_Alignment flags
4959         (Analyze_Subtype_Declaration): Ditto
4960         (Analyze_Object_Declaration): Ditto
4961         (Analyze_Object_Declaration): Don't count tasks in generics
4962         Change name In_Default_Expression      => In_Spec_Expression
4963         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
4964         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
4965         (Process_Discriminants): Additional check for illegal use of default
4966         expressions in access discriminant specifications in a type that is not
4967         explicitly limited.
4968         (Check_Abstract_Overriding): If an inherited function dispaches on an
4969         access result, it must be overridden, even if the type is a null
4970         extension.
4971         (Derive_Subprogram): The formals of the derived subprogram have the
4972         names and defaults of the parent subprogram, even if the type is
4973         obtained from the actual subprogram.
4974         (Derive_Subprogram): In the presence of interfaces, a formal of an
4975         inherited operation has the derived type not only if it descends from
4976         the type of the formal of the parent operation, but also if it
4977         implements it. This is relevant for the renamings created for the
4978         primitive operations of the actual for a formal derived type.
4979         (Is_Progenitor): New predicate, to determine whether the type of a
4980         formal in the parent operation must be replaced by the derived type.
4981
4982         * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
4983         predicate recursive to handle components that have a user-defined
4984         Initialize procedure. Handle controlled derived types whose ancestor
4985         has a user-defined Initialize procedured.
4986         (Note_Possible_Modification): Add Sure parameter, generate warning if
4987         sure modification of constant
4988         Use new Is_Standard_Character_Type predicate
4989         (Find_Parameter_Type): when determining whether a protected operation
4990         implements an interface operation, retrieve the type of the formal from
4991         the entity when the formal is an access parameter or an
4992         anonymous-access-to-subprogram.
4993         Move Copy_Parameter_List to sem_util, for use when building stubbed
4994         subprogram bodies.
4995         (Has_Access_Values): Tagged types now return False
4996         (Within_HSS_Or_If): New procedure
4997         (Set_Optimize_Alignment_Flags): New procedure
4998         Change name In_Default_Expression      => In_Spec_Expression
4999         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5000         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
5001
5002 2008-04-08  Tristan Gingold  <gingold@adacore.com>
5003
5004         * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
5005
5006 2008-04-08  Tristan Gingold  <gingold@adacore.com>
5007
5008 PR ada/10768
5009
5010         * cuintp.c: Fix 16 bits issue for AVR.
5011         On AVR, integer is 16 bits, so it can't be used to do math with
5012         Base (=32768).
5013         So use long_integer instead.
5014
5015 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5016
5017         * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
5018         System.OS_Primitives.
5019         Change type of various constants, parameters and local variables from
5020         Time to representation type OS_Time.
5021         (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
5022         Remove the declaration of constant Mili_F from several routines. New
5023         body for internal package Conversions_Operations.
5024         (Time_Of): Add default parameters for several formals.
5025
5026         * a-caldel.adb: Minor reformatting
5027
5028         * a-calend.ads, a-calend.adb: New body for internal package
5029         Conversions_Operations.
5030         (Time_Of): Add default parameters for several formals.
5031
5032         * Makefile.rtl: Add a-ststop
5033         Add Ada.Calendar.Conversions to the list of runtime files.
5034         Add g-timsta
5035
5036         * a-calcon.adb, a-calcon.ads: New files.
5037
5038 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
5039             Tristan Gingold  <gingold@adacore.com>
5040
5041         * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
5042         (Install_Restricted_Handlers): New procedure
5043         which is a simplified version of Install_Handlers that does not store
5044         previously installed.
5045
5046         * s-interr-vxworks.adb: Fix ACATS cxc3001
5047         On VxWorks interrupts can't be detached.
5048         (Install_Restricted_Handlers): New procedure.
5049
5050         * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
5051         procedure.
5052
5053 2008-04-08  Olivier Hainque  <hainque@adacore.com>
5054
5055         * s-intman-vxworks.ads, s-intman-vxworks.adb
5056         (Map_And_Raise_Exception): Remove. Was an import of only part of the
5057         required services already implemented elsewhere.
5058         (Notify_Exception): Delete body, import __gnat_error_handler instead.
5059         (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
5060         argument passed to the handler, which we need for ZCX propagation
5061         purposes.
5062
5063 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5064
5065         * adaint.h, adaint.c (__gnat_current_time_string): New routine.
5066
5067         * g-timsta.adb, g-timsta.ads: New files.
5068
5069 2008-04-08  Robert Dewar  <dewar@adacore.com>
5070
5071         * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
5072         (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
5073         (Raise_Exception_Always): Fix documentation accordingly
5074
5075 2008-04-08  Robert Dewar  <dewar@adacore.com>
5076
5077         * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
5078         Stream_Convert)
5079
5080         * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
5081         FOnly
5082
5083 2008-04-08  Javier Miranda  <miranda@adacore.com>
5084             Robert Dewar  <dewar@adacore.com>
5085             Ed Schonberg  <schonberg@adacore.com>
5086
5087         * a-tags.adb (Register_Interface_Offset): New subprogram.
5088         (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
5089         (To_Predef_Prims_Table_Ptr): Removed.
5090         (Acc_Size): Removed.
5091         (To_Acc_Size): Removed.
5092         (Parent_Size): Modified to the call the subprogram returning the size of
5093         the parent by means of the new TSD component Size_Func.
5094
5095         * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
5096         (DT_Offset_To_Top_Offset): New constant value that is used to generate
5097         code referencing the Offset_To_Top component of the dispatch table's
5098         prologue.
5099         (Prim_Ptr): New declaration of access to procedure. Used to avoid the
5100         use of 'address to initialize dispatch table slots.
5101         (Size_Func): New component of the TSD. Used by the run-time to call the
5102         size primitive of the tagged type.
5103
5104         * checks.adb (Apply_Access_Check): Avoid check when accessing the
5105         Offset_To_Top component of a dispatch table.
5106         (Null_Exclusion_Static_Checks): If the non-null access type appears in a
5107         deferred constant declaration. do not add a null expression, to prevent
5108         spurious errors when full declaration is analyzed.
5109         (Apply_Discriminant_Check): If both discriminant constraints share a
5110         node which is not static but has no side effects, do not generate a
5111         check for that discriminant.
5112         (Generate_Index_Checks): Set Name_Req to true in call to duplicate
5113         subexpr, since the prefix of an attribute is a name.
5114
5115         * checks.ads: Fix nit in comment.
5116
5117         * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
5118         and body of predefined primitives in case of CPP tagged type
5119         derivations.
5120         (Freeze_Type): Deal properly with no storage pool case
5121         (Make_Predefined_Primitive_Specs): Generate specification of abstract
5122         primitive Deep_Adjust if a nonlimited interface is derived from a
5123         limited interface.
5124         (Build_Dcheck_Functions): Create discriminant-checking functions only
5125         for variants that have some component(s).
5126         (Build_Slice_Assignment): In expanded code for slice assignment, handle
5127         properly the case where the slice bounds extend to the last value of the
5128         underlying representation.
5129         (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
5130         (Is_Variable_Size_Record): An array component has a static size if
5131         index bounds are enumeration literals.
5132
5133         * exp_disp.adb (Make_DT): Use the first subtype to determine whether
5134         an external tag has been specified for the type.
5135         (Building_Static_DT): Add missing support for private types.
5136         (Make_DT): Add declaration of Parent_Typ to ensure consistent access
5137         to the entity associated with the parent of Typ. This is done to
5138         avoid wrong access when the parent is a private type.
5139         (Expand_Interface_Conversion): Improve error message when the
5140         configurable runtime has no support for dynamic interface conversion.
5141         (Expand_Interface_Thunk): Add missing support to interface types in
5142         configurable runtime.
5143         (Expand_Dispatching_Call): remove obsolete code.
5144         (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
5145         ensure that all subtypes and aggregates associated with dispatch
5146         tables have the attribute Is_Dispatch_Table_Entity set to true.
5147         (Register_Primitive): Rename one variable to improve code reading.
5148         Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
5149         of the pointer to the 'size primitive in the TSD.
5150
5151         * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
5152         (RE_Offset_To_Top_Ptr): New entity.
5153         (RE_Register_Interface_Offset): New entity.
5154         (RE_Set_Dynamic_Offset_To_Top): New entity.
5155         (RE_Set_Offset_To_Top): Removed entity.
5156         (RE_Prim_Ptr): New entity
5157         (RE_Size_Func): New entity
5158         (RE_Size_Ptr): New entity
5159         (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
5160         (Ada_Dispatching_Child): Define this new subrange.
5161         (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
5162          RE_Time_Span, and RE_Time_Span_Zero).
5163         (RE_Unit_Table): Add new required run-time calls
5164
5165         * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
5166         children.
5167
5168         * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
5169         (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
5170          initializes the Offset_To_Top component of a dispatch table.
5171         (Build_Predef_Prims): Removed.
5172         (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
5173          its actual code.
5174         (Build_Set_Size_Function): New subprogram.
5175
5176         * exp_ch13.adb: Do not generate storage variable for storage_size zero
5177         (Expand): Handle setting/restoring flag Inside_Freezing_Actions
5178
5179 2008-04-08  Robert Dewar  <dewar@adacore.com>
5180
5181         * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
5182         computing Fore when Exp > 0
5183
5184 2008-04-08  Robert Dewar  <dewar@adacore.com>
5185
5186         * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
5187
5188         * errout.adb: Remove Big_String_Ptr declarations (now in Types)
5189         Change name Is_Style_Msg to Is_Style_Or_Info_Msg
5190
5191         * fmap.adb: Remove Big_String declarations (now in Types)
5192         (No_Mapping_File): New Boolean global variable
5193         (Initialize): When mapping file cannot be read, set No_Mapping_File to
5194         False.
5195         (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
5196         tables were empty before adding entries, open the mapping file
5197         with Truncate = True, instead of delete/re-create.
5198
5199         * fname-sf.adb: Remove Big_String declarations (now in Types)
5200
5201         * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
5202         s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
5203         big pointer types
5204
5205         * table.ads: Add for Table_Ptr'Storage_Size use 0
5206
5207         * types.ads: Add Big_String declarations
5208         Add Size_Clause of zero for big pointer types
5209
5210 2008-04-08  Vincent Celier  <celier@adacore.com>
5211
5212         * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
5213         (Usage): Add line for switch --subdirs=
5214         Add new switch -eL, to follow symbolic links when processing project
5215         files.
5216
5217         * gnatcmd.adb: Process switches -eL and --subdirs=
5218         (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
5219         Program_Name to get proper tool names when AAMP_On_Target is set.
5220         (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
5221         AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
5222         Osint.Program_Name).
5223
5224         * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
5225         (Usage): Add lines for switches -eL and --subdirs=
5226
5227         * makeusg.adb: Add line for switch --subdirs=
5228
5229         * prj.ads: 
5230         (Source_Data): New Boolean component Compiled, defaulted to True
5231         (Empty_File_Name: New global variable in private part, initialized in
5232         procedure Initialize.
5233         (Subdirs_Option): New constant string
5234         (Subdirs): New String_Ptr global variable
5235         (Language_Config): New component Include_Compatible_Languages
5236         (Project_Qualifier): New type for project qualifiers
5237         (Project_Data): New component Qualifier
5238         (Project_Configuration): New component Archive_Builder_Append_Option
5239
5240         * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
5241         another imported project indicate the name of this imported project.
5242         (Check_File): When a unit is in two project files, indicate the project
5243         names and the paths of the source files for each project.
5244         (Add_Source): Set Compiled to False if compiler driver is empty. Only
5245         set object, dependency and switches file names if Compiled is True.
5246         (Process_Compiler): Allow the empty string for value of attribute Driver
5247         (Get_Directories): When Subdirs is not null and Object_Dir is not
5248          specified, locate and create if necessary the actual object dir.
5249         (Locate_Directory): When Subdirs is not empty and Create is not the
5250         empty string, locate and create if necessary the actual directory
5251         as a subdirectory of directory Name.
5252         (Check_Library_Attributes.Check_Library): Allow a project where the only
5253         "sources" are header files of file based languages to be imported by
5254         library projects, in multi-language mode (gprbuild).
5255         (Check_Library_Attributes.Check_Library): In multi-language mode
5256         (gprbuild), allow a library project to import a project with no
5257         sources, even when this is not declared explicitly.
5258         (Check_If_Externally_Built): A virtual project extending an externally
5259         built project is also externally built.
5260         (Check_Library_Attributes): For a virtual project extending a library
5261         project, inherit the library directory.
5262         (Process_Project_Level_Array_Attributes): Process new attribute
5263         Inherit_Source_Path.
5264         For projects with specified qualifiers "standard", "library" or
5265         "abstract", check that the project conforms to the qualifier.
5266         (Process_Project_Level_Simple_Attributes): Process new attribute
5267          Archive_Builder_Append_Option.
5268
5269         * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
5270         (Normalize_Compiler_Switches): Only keep compiler switches that are
5271         passed to gnat1 by the gcc driver and that are stored in the ALI file
5272         by gnat1.
5273         Do not take into account switc -save-temps
5274
5275         * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
5276         gprmake is called with -eL.
5277         (Scan_Arg): Recognize switch -eL
5278         (Usage): Add line for switch -eL
5279
5280         * prj.adb (Initialize): Initialize Empty_File_Name
5281         (Project_Empty): New component Qualifier
5282
5283         * prj-attr.ads, prj-attr.adb: New project level attribute
5284         Inherit_Source_Path.
5285         New project level attribute Archive_Builder_Append_Option
5286
5287         * prj-dect.adb: Replace System.Strings by GNAT.Strings.
5288
5289         * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
5290         <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
5291         upward compatibility.
5292
5293         * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
5294         each Trying ..." on different lines.
5295         (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
5296         is "configuration" when not in configuration. Fail when in configuration
5297         when a specified qualifier is other than "configuration".
5298
5299         * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
5300         full associative array together.
5301         (Recursive_Process): Put the project qualifier in the project data
5302         
5303         * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
5304         (Set_Project_Qualifier_Of): New procedure
5305
5306 2008-04-08  Robert Dewar  <dewar@adacore.com>
5307
5308         * errout.ads: Update comments for new handling of info: messages
5309
5310         * erroutc.adb (Matches): New procedure
5311         (Warning_Specifically_Suppressed): Modified to handle multiple * chars
5312         (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
5313          info messages as well as style messages.
5314
5315         * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
5316
5317         * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
5318         subprograms.
5319         (Check_A_Call): Special "info: " warnings now have ? in the text
5320         (Elab_Warning): Use info message in static case
5321
5322 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5323
5324         * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
5325         whether an array aggregate with static bounds and scalar components
5326         should be expanded into a static constant.
5327
5328 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
5329             Ed Schonberg  <schonberg@adacore.com>
5330             Robert Dewar  <dewar@adacore.com>
5331
5332         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
5333         Has_Stream_Attribute_ Definition when checking for available stream
5334         attributes on parameters of a limited type in Ada 2005. Necessary for
5335         proper recognition of visible stream attribute clauses.
5336         (Has_Stream_Attribute_Definition): If the type is derived from a
5337         private type, then use the derived type's underlying type for checking
5338         whether it has stream attributes.
5339         (Validate_Object_Declaration): The check for a user-defined Initialize
5340         procedure applies also to types with controlled components or a
5341         controlled ancestor.
5342         Reject an object declaration in a preelaborated unit if the type is a
5343         controlled type with an overriding Initialize procedure.
5344         (Validate_Remote_Access_To_Class_Wide_Type): Return without further
5345         checking when the parent of a dereference is a selected component and
5346         the name has not been analyzed.
5347
5348         * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
5349         prefixes that are invalid explicit dereferences of remote
5350         access-to-class-wide values, first checking whether the selected
5351         component is a prefixed form of call to a tagged operation.
5352         (Analyze_Call): Remove code that issues an error for limited function
5353         calls in illegal contexts, as we now support all of the contexts that
5354         were forbidden here.
5355         Allow a function call that returns a task.and appears as the
5356         prefix of a selected component.
5357         (Analyze_Reference): Give error message if we try to make a 'Reference
5358         for an object that is atomic/aliased without its type having the
5359         corresponding attribute.
5360         (Analyze_Call): Remove condition checking for attributes to allow
5361         calls to functions with inherently limited results as prefixes of
5362         attributes. Remove related comment about Class attributes.
5363         (Analyze_Selected_Component): If the prefix is a remote type, check
5364         whether this is a prefixed call before reporting an error.
5365         (Complete_Object_Operation): If the controlling formal is an access to
5366         variable reject an actual that is a constant or an access to one.
5367         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
5368         primitive operations from base type.
5369
5370         * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
5371         build-in-place
5372         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
5373         (Expand_N_Selected_Component): Test for prefix that is a build-in-place
5374         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
5375         (Expand_N_Slice): Test for prefix that is a build-in-place function call
5376         and call Make_Build_In_Place_Call_In_Anonymous_Context.
5377         (Analyze_Call): Remove code that issues an error for limited function
5378         calls in illegal contexts, as we now support all of the contexts that
5379         were forbidden here.
5380         New calling sequence for Get_Simple_Init_Val
5381         (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
5382         (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
5383
5384 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5385             Ed Schonberg  <schonberg@adacore.com>
5386             Robert Dewar  <dewar@adacore.com>
5387
5388         * exp_ch2.adb: Minor reformatting.
5389         (Expand_Entry_Index_Parameter): Set the type of the identifier.
5390         (Expand_Entry_Reference): Add call to Expand_Protected_Component.
5391         (Expand_Protected_Component): New routine.
5392         (Expand_Protected_Private): Removed.
5393         Add Sure parameter to Note_Possible_Modification calls
5394
5395         * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
5396         generated subprogram declaration must inherit the overriding indicator
5397         from the instantiation node.
5398         (Validate_Access_Type_Instance): If the designated type of the actual is
5399         a limited view, use the available view in all cases, not only if the
5400         type is an incomplete type.
5401         (Instantiate_Object):  Actual is illegal if the formal is null-excluding
5402         and the actual subtype does not exclude null.
5403         (Process_Default): Handle properly abstract formal subprograms.
5404         (Check_Formal_Package_Instance): Handle properly defaulted formal
5405         subprograms in a partially parameterized formal package.
5406         Add Sure parameter to Note_Possible_Modification calls
5407         (Validate_Derived_Type_Instance): if the formal is non-limited, the
5408         actual cannot be limited.
5409         (Collect_Previous_Instances): Generate instance bodies for subprograms
5410         as well.
5411
5412         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
5413         try to set RM_Size.
5414         Add Sure parameter to Note_Possible_Modification calls
5415         (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
5416         (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
5417         constant overlaid by variable and issue warning.
5418         Use new Is_Standard_Character_Type predicate
5419         (Analyze_Record_Representation_Clause): Check that the specified
5420         Last_Bit is not less than First_Bit - 1.
5421         (Analyze_Attribute_Definition_Clause, case Address): Check for
5422         self-referential address clause
5423
5424         * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
5425         detection mechanism when the lhs is a prival.
5426         (Analyze_Assignment): Call Check_Unprotected_Access to detect
5427         assignment of a pointer to protected data, to an object declared
5428         outside of the protected object.
5429         (Analyze_Loop_Statement): Check for unreachable code after loop
5430         Add Sure parameter to Note_Possible_Modication calls
5431         Protect analysis from previous syntax error such as a scope mismatch
5432         or a missing begin.
5433         (Analyze_Assignment_Statement): The assignment is illegal if the
5434         left-hand is an interface.
5435
5436         * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
5437         violation of restriction No_Implicit_Conditionals
5438         Add Sure parameter to Note_Possible_Modication calls
5439         Use new Is_Standard_Character_Type predicate
5440         (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
5441         call as operator. Fixes problems (e.g. validity checking) which
5442         come from the result looking as though it does not come from source).
5443         (Resolve_Call): Check case of name in named parameter if style checks
5444         are enabled.
5445         (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
5446         from the checking that such calls should not occur from an entry body.
5447         (Resolve_Call): If the return type of an Inline_Always function
5448         requires the secondary stack, create a transient scope for the call
5449         if the body of the function is not available for inlining.
5450         (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
5451         that are actuals for in-out formals.
5452         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
5453         primitive operations from base type.
5454         (Analyze_Selected_Component): If the context is a call to a protected
5455         operation the parent may be an indexed component prior to expansion.
5456         (Resolve_Actuals): If an actual is of a protected subtype, use its
5457         base type to determine whether a conversion to the corresponding record
5458         is needed.
5459         (Resolve_Short_Circuit): Handle pragma Check
5460
5461         * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
5462         Use new Is_Standard_Character_Type predicate
5463         (Eval_Relational_Op): Catch more cases of string comparison
5464
5465 2008-04-08  Robert Dewar  <dewar@adacore.com>
5466             Gary Dismukes  <dismukes@adacore.com>
5467
5468         * s-rident.ads: Add No_Default_Initialization restriction
5469
5470         * exp_tss.adb: 
5471         (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
5472         (Set_TSS): Handle No_Default_Initialization case
5473
5474         * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
5475         No_Default_Initialization
5476         (Expand_N_Subprogram_Body): Remove redundant initialization of out
5477         parameters when Normalize_Scalars is active.
5478         (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
5479         Fix casing error in formal parameter name in call
5480         (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
5481         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
5482         dispatching call on VM targets.
5483
5484 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
5485             Thomas Quinot  <quinot@adacore.com>
5486
5487         * exp_ch7.adb (Find_Final_List): Change the test for generating a
5488         selected component from an access type's Associated_Final_Chain to
5489         check for the presence of that field, rather than assuming it exists
5490         for all named access types.
5491         (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
5492         procedure to call at the end of the generated cleanup procedure.
5493         (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
5494         and an At_End_Proc already exists in the handled sequence of statements
5495         for which cleanup actions are being expanded, the original cleanup
5496         action must be preserved.
5497
5498 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5499             Ed Schonberg  <schonberg@adacore.com>
5500             Robert Dewar  <dewar@adacore.com>
5501             Gary Dismukes  <dismukes@adacore.com>
5502
5503         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
5504         Build_Unprotected_Subprogram_Body): Generate debug info for
5505         declarations related to the handling of private data in task and
5506         protected types.
5507         (Debug_Private_Data_Declarations): New subprogram.
5508         (Install_Private_Data_Declarations): Remove all debug info flagging.
5509         This is now done by Debug_Private_Data_Declarations at the correct
5510         stage of expansion.
5511         (Build_Simple_Entry_Call): If the task name is a function call, expand
5512         the prefix into an object declaration, and make the surrounding block a
5513         task master.
5514         (Build_Master_Entity): An internal block is a master if it wraps a call.
5515         Code reformatting, update comments. Code clean up.
5516         (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
5517         (Replicate_Entry_Formals): If the formal is an access parameter or
5518         anonymous access to subprogram, copy the original tree to create new
5519         entities for the formals of the subprogram.
5520         (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
5521         for tasks to store the value passed using pragma Relative_Deadline.
5522         (Make_Task_Create_Call): Add the Relative_Deadline argument to the
5523         run-time call to create a task.
5524         (Build_Wrapper_Spec): If the controlling argument of the interface
5525         operation is an access parameter with a non-null indicator, use the
5526         non-null indicator on the wrapper.
5527
5528         * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
5529         present, which it may not be in the case where the type entity is an
5530         incomplete view brought in by a limited with.
5531         (Analyze_Task_Type): Only retrieve the full view when present, which it
5532         may not be in the case where the type entity is an incomplete view brought
5533         in by a limited with.
5534         (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
5535         private components of a protected type, to prevent the generation of freeze
5536         nodes for which there is no proper scope of elaboration.
5537
5538         * exp_util.ads, exp_util.adb
5539         (Remove_Side_Effects): If the expression is a function call that returns a
5540         task, expand into a declaration to invoke the build_in_place machinery.
5541         (Find_Protection_Object): New routine.
5542         (Remove_Side_Effects): Also make a copy of the value
5543         for attributes whose result is of an elementary type.
5544         (Silly_Boolean_Array_Not_Test): New procedure
5545         (Silly_Boolean_Array_Xor_Test): New procedure
5546         (Is_Volatile_Reference): New function
5547         (Remove_Side_Effects): Use Is_Volatile_Reference
5548         (Possible_Bit_Aligned_Component): Handle slice case properly
5549
5550         * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
5551         case test to Exp_Util
5552         (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
5553
5554 2008-04-08  Thomas Quinot  <quinot@adacore.com>
5555
5556         * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
5557         in call
5558         (Add_RACW_Features): When processing an RACW in another unit than the
5559         main unit, set Body_Decls to No_List to indicate that the bodies of
5560         the type's TSS must not be generated.
5561         (GARLIC_Support.Add_RACW_Read_Attribute,
5562         GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
5563         Body_Decls is No_List.
5564         (PolyORB_Support.Add_RACW_Read_Attribute,
5565         PolyORB_Support.Add_RACW_Write_Attribute,
5566         PolyORB_Support.Add_RACW_From_Any,
5567         PolyORB_Support.Add_RACW_To_Any,
5568         PolyORB_Support.Add_RACW_TypeCode): Same.
5569         (Transmit_As_Unconstrained): New function.
5570         (Build_Ordered_Parameters_List): Use the above to order parameters.
5571         (GARLIC_Support.Build_General_Calling_Stubs):
5572         Use the above to determine which parameters to unmarshall using 'Input
5573         at the point where their temporary is declared (as opposed to later on
5574         with a 'Read call).
5575         (PolyORB_Support.Build_General_Calling_Stubs):
5576         Use the above to determine which parameters to unmarshall using From_Any
5577         at the point where their temporary is declared (as opposed to later on
5578         with an assignment).
5579
5580 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5581
5582         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
5583         an Input function for an access type, do not perform default
5584         initialization on the local variable that receives the value, to
5585         prevent spurious warnings when the type is null-excluding.
5586
5587 2008-04-08  Robert Dewar  <dewar@adacore.com>
5588             Ed Schonberg  <schonberg@adacore.com>
5589
5590         * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
5591         units.
5592         (Size_Known): Generic formal scalar types have known at compile
5593         time size, so remove check.
5594         Fix casing error in formal parameter name in call
5595         (Freeze_Subprogram): If the subprogram is a user-defined operator,
5596         recheck its overriding indication.
5597
5598 2008-04-08  Vincent Celier  <celier@adacore.com>
5599
5600         * gnat1drv.adb: Send all messages indicating an error to standard error
5601
5602 2008-04-08  Robert Dewar  <dewar@adacore.com>
5603
5604         * gnatbind.adb (Restriction_Could_Be_Set): New procedure
5605         (List_Applicable_Restrictions): Do not list existing restrictions
5606
5607 2008-04-08  Thomas Quinot  <quinot@adacore.com>
5608
5609         * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
5610         add a pointer to generic sockets literature
5611         do not mention that the given example is "typical" usage.
5612         Remove obsolete comment about multicast not being supported on Windows.
5613         (Connect_Socket): Make Server mode IN rather than IN OUT
5614         since this formal is never modified.
5615
5616 2008-04-08  Robert Dewar  <dewar@adacore.com>
5617
5618         * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
5619         the declaration for some different entity.
5620         (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
5621         list is precent (following the parent subtype indication), display
5622         appropriate "and" keyword.
5623
5624         * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
5625         Remove unnecessary calls to Init_Size_Align and Init_Esize.
5626         Add notes on use of Parent field of an Itype
5627
5628 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5629             Robert Dewar  <dewar@adacore.com>
5630             Gary Dismukes  <dismukes@adacore.com>
5631
5632         * lib-xref.adb (Is_On_LHS): Remove dead code
5633         (Output_Overriden_Op): If the overridden operation is itself inherited,
5634         list the ancestor operation, which is the one whose body or absstract
5635         specification is actually being overridden. For source navigation
5636         purposes.
5637
5638         * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
5639         operation is primitive for the type.
5640         (Declare_Inherited_Private_Subprograms): If the new operation overrides
5641         an inherited private subprogram, set properly the Overridden_Operation
5642         attribute, for better cross-reference information.
5643         (Analyze_Package_Specification): Do late analysis of spec PPCs
5644         (Install_Private_Declaration, Uninstall_Declarations): Save/restore
5645         properly the full view and underlying full views of a private type in a
5646         child unit, whose full view is derived from a private type in a parent
5647         unit, and whose own full view becomes visible in the child body.
5648
5649         * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
5650         primitive operation after the type has been frozen, add an explicit
5651         reference to the type and the operation, because other primitive
5652         references have been emitted already.
5653         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
5654         dispatching call on VM targets.
5655
5656 2008-04-08  Vincent Celier  <celier@adacore.com>
5657             Thomas Quinot  <quinot@adacore.com>
5658
5659         * make.adb: (Gnatmake_Called): Remove, no longer necessary
5660         (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
5661         is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
5662         (Insert_Project_Sources): Take into account index in multi-unit source
5663         files.
5664         After building a library project, delete all temporary files.
5665         (Initialize): Reset current output after parsing project file.
5666         (Collect_Arguments_And_Compile): Never insert in the queue the sources
5667         of library projects that are externally built.
5668         Put file name in error and inform messages if -df is used
5669         (Display): If invoked with -d7, do not display path names, but only
5670         file names.
5671
5672         * makeutl.ads (Path_Or_File_Name): New function
5673         (Path_Or_File_Name): New function
5674
5675 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
5676
5677         * Make-lang.in: Disable warnings during first stage of bootstrap
5678         Get rid of gnatbl.
5679         Update dependencies.
5680
5681 2008-04-08  Vincent Celier  <celier@adacore.com>
5682
5683         * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
5684         case to decide if ALI object file is included in library.
5685         (Build_Library): Never attempt to build a library if the project is
5686         externally built.
5687
5688 2008-04-08  Thomas Quinot  <quinot@adacore.com>
5689
5690         * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
5691         (No_List) is defined to return Empty.
5692
5693 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
5694
5695         * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
5696         documentation.
5697         Update comments.
5698         (Read_Default_Search_Dirs): Do not consider spaces as path separators
5699         because spaces may be part of legal paths.
5700
5701 2008-04-08  Robert Dewar  <dewar@adacore.com>
5702
5703         * par-ch11.adb (P_Exception_Handler): Check indentation level for
5704         handler
5705
5706 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5707
5708         * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
5709         in a type declaration, if this is not an interface declaration or
5710         private type extension.
5711
5712 2008-04-08  Vincent Celier  <celier@adacore.com>
5713
5714         * prj-util.adb (Executable_Of): New String parameter Language. When
5715         Ada_Main is False and Language is not empty, attempt to remove the body
5716         suffix or the spec suffix of the language to get the base of the
5717         executable file name.
5718         (Put): New Boolean parameter Lower_Case, defauilted to False. When
5719         Lower_Case is True, put the value in lower case in the name list.
5720         (Executable_Of): If there is no executable suffix in the configuration,
5721         then do not modify Executable_Extension_On_Target.
5722
5723         * prj-util.ads (Executable_Of): New String parameter Language,
5724         defaulted to the empty string.
5725         (Put): New Boolean parameter Lower_Case, defauilted to False
5726
5727 2008-04-08  Robert Dewar  <dewar@adacore.com>
5728
5729         * scng.adb (Scan_Identifier): Handle case of identifier starting with
5730         wide character using UTF-8 encoding.
5731
5732 2008-04-08  Javier Miranda  <miranda@adacore.com>
5733
5734         * sem.adb (Analyze): Consider case in which we analyze an empty node
5735         that was generated by a call to a runtime function that is not
5736         available under the configurable runtime.
5737
5738         * sem.ads (Inside_Freezing_Actions): New flag.
5739         (Save_Check_Policy_List): New field in scope stack entry
5740
5741 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5742             Robert Dewar  <dewar@adacore.com>
5743
5744         * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
5745         the ancestor part of an extension aggregate for a limited type.
5746         (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
5747         enumeration index bounds.
5748         (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
5749         when array is too short.
5750         (Check_Expr_OK_In_Limited_Aggregate): Move function
5751         Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
5752         change name).
5753         (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
5754         Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
5755         component associations.
5756         (Check_Non_Limited_Type): Moved to outer level and renamed.
5757         (Resolve_Record_Aggregate): In an extension aggregate, an association
5758         with a box initialization can only designate a component of the
5759         extension, not a component inherited from the given ancestor
5760
5761         * sem_case.adb: Use new Is_Standard_Character_Type predicate
5762
5763 2008-04-08  Robert Dewar  <dewar@adacore.com>
5764
5765         * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
5766         negative scale
5767         (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
5768         Properly handle case where Aft > Scale and input number is less than
5769         one.
5770
5771 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5772
5773         * s-stoele.ads, s-soflin.ads: Move the location of
5774         Dummy_Communication_Block from System.Storage_Elements to
5775         System.Soft_Links.
5776
5777         * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
5778         emulate Communication_Block in certain scenarios.
5779
5780 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5781
5782         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
5783         subprogram.
5784         Add new subtype S_WWC, unchecked conversion routines From_WWC and
5785         To_WWC.
5786         (I_WWC, O_WWC): New routines for input and output of
5787         Wide_Wide_Character.
5788
5789 2008-04-08  Robert Dewar  <dewar@adacore.com>
5790
5791         * stringt.adb (Write_String_Table_Entry): Handle wide characters
5792         properly
5793
5794 2008-04-08  Robert Dewar  <dewar@adacore.com>
5795
5796         * styleg.adb (Check_Comment): Allow special char after -- in
5797         non-end-of-line case
5798
5799 2008-04-08  Robert Dewar  <dewar@adacore.com>
5800
5801         * stylesw.adb: Implement -gnaty + - y options
5802         (Set_GNAT_Style_Check_Options): Includ I in style check string
5803
5804         * stylesw.ads: Add comments for new style switch options
5805
5806 2008-04-08  Sergey Rybin  <rybin@adacore.com>
5807
5808         * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
5809         to the set of the GNAT components needed by ASIS.
5810
5811 2008-04-08  Bob Duff  <duff@adacore.com>
5812
5813         * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
5814
5815 2008-04-08  Tristan Gingold  <gingold@adacore.com>
5816
5817         * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
5818         Improve error message generation.
5819
5820 2008-04-08  Vincent Celier  <celier@adacore.com>
5821
5822         * a-direct.adb (Start_Search): Check for Name_Error before checking for
5823         Use_Error, as specified in the RM. Check if directory is open and raise
5824         Use_Error if it is not.
5825
5826 2008-04-08  Vincent Celier  <celier@adacore.com>
5827             Robert Dewar  <dewar@adacore.com>
5828
5829         * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
5830         AAMP_On_Target is set.
5831
5832         * vms_data.ads: Add NOxxx to style check switch list
5833         Add entry COMPONENTS for -gnatVe
5834         Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
5835         (/SUBDIRS=).
5836         (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
5837         Add qualifiers for gnatmetric coupling options
5838         Add note that -gnata enables all checks
5839         Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
5840         Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
5841         New warning flag -gnatw.e
5842
5843         * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
5844         Add entry for -gnatyN (forgotten before)
5845         Line for new warning switch -gnatw.p
5846         New warning flag -gnatw.e
5847
5848         * gnat_ugn.texi: Add documentation fpr project file switch -aP
5849         Document -gnaty - + y
5850         Replace occurences of "package specification" with "package spec"
5851         Define preprocessing symbols in documentation of gnatprep
5852         Clarify reason for distinguishing overflow checking
5853         Add documentation for project-aware tool switches -eL and --subdirs=
5854         Complete list of configuration pragmas
5855         Specify that, even when gnatmake switch -x is used, mains on the command
5856         line need to be sources of project files.
5857         Editing of gnatcheck/gnatmetric doc.
5858         Add documentation for -gnatw.p/-gnatw.P
5859         Add missing documentation for -fno-inline-functions.
5860         Add documentation for -gnatw.e
5861
5862         * gnat_rm.texi: Add documentation for No_Default_Initialization
5863         Replace occurences of "package specification" with "package spec"
5864         Document use of * in Warnings Off string
5865         Update documentation of alignment/component clauses.
5866         Add documentation for Invalid_Value
5867         Document new consistency rule for Optimize_Alignment
5868         Add documentation for Precondition and Postcondition pragmas
5869         Add documentation for Check and Check_Policy pragmas
5870         Document new Enum_Val attribute
5871         Remove requirement for static string in pragma Assert
5872         Add documentation on GNAT.Time_Stamp
5873
5874         * ug_words: add entry for -gnatVe
5875         Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
5876         Add entry for -gnatw.e
5877
5878         * debug.adb: Add missing documentation for d.a flag
5879         Document new -gnatd.a switch.
5880         Add documentation for new gnatmake debug switch -df
5881
5882 2008-04-08  Thomas Quinot  <quinot@adacore.com>
5883
5884         * gen-soccon.c: Bump year in copyright notices.
5885
5886         * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
5887
5888 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
5889
5890         * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
5891         Minor reformatting.
5892
5893 2008-04-08  Robert Dewar  <dewar@adacore.com>
5894             Bob Duff  <duff@adacore.com>
5895
5896         * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
5897         Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
5898
5899         * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
5900
5901         * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
5902
5903         * g-trasym.ads: Minor comment improvements
5904
5905         * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
5906
5907         * a-sequio.ads, a-direio.ads: improve message for tagged type
5908
5909         * a-strunb.ads: Minor reformatting
5910
5911         * a-tifiio.adb: Minor reformatting
5912
5913         * atree.adb (Fix_Parents): Use clearer names for formals
5914         Cleanup and simplify code
5915         Use named notation in calls
5916
5917         * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
5918         confusing calls
5919
5920         * uintp.adb: Used named notation for some confusing calls
5921
5922         * bindusg.adb: Minor change in one line of output
5923
5924         * cstand.adb: Minor reformatting of src representation of Standard
5925
5926         * a-assert.ads: Add comment.
5927
5928         * g-decstr.adb: Fix bad indentation
5929
5930         * expander.ads, expander.adb: Code clean up.
5931
5932         * sem_dist.ads: Minor comment improvement
5933
5934         * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
5935         s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
5936
5937         * i-cstrin.adb: Fix casing error in formal parameter name in call
5938
5939 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5940
5941         * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
5942         mentioned in limited_with_clauses to do create semantic dependencies
5943         even though they appear in the ali file.
5944
5945 2008-04-08  Emmanuel Briot  <briot@adacore.com>
5946
5947         * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
5948         statement.
5949         (Get_Configuration): New subprogram.
5950
5951         * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
5952         These optional parameters help preserve the casing of the project's name
5953         when pretty-printing.
5954
5955 2008-04-08  Jerome Lambourg  <lambourg@adacore.com>
5956             Arnaud Charlet  <charlet@adacore.com>
5957
5958         * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
5959         then use __gnat_set_exit_status to report the returned status code.
5960
5961         * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
5962         messages on .NET, since some constructs of the language are not
5963         properly supported.
5964
5965         * gnatlink.adb (Gnatlink): In case the command line is too long for the
5966         .NET linker, gnatlink now concatenate all .il files and pass this to
5967         ilasm.
5968
5969 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
5970             Xavier Grave  <grave@ipno.in2p3.fr>
5971
5972         * Makefile.in: Add make ifeq define for mips/mipsel support.
5973         * g-soccon-linux-mips.ads, system-linux-mipsel.ads, 
5974         system-linux-mips.ads: New files.
5975
5976 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
5977
5978         * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
5979         detect systems using GNU libc.
5980         * gsocket.h: ditto.
5981         * socket.c: ditto.
5982         * adaint.c: ditto.
5983         * link.c: ditto.
5984
5985 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
5986
5987         * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New 
5988         constant constant for sysconf call.
5989         (bit_field): New packed boolean type used by cpu_set_t.
5990         (cpu_set_t): New type corresponding to the C type with
5991         the same name. Note that on the Ada side we use a bit
5992         field array for the affinity mask. There is not need
5993         for the C macro for setting individual bit.
5994         (pthread_setaffinity_np): New imported routine.
5995         * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
5996         on GNU/kFreeBSD.
5997
5998 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
5999
6000         * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
6001
6002 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
6003
6004         * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
6005         * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
6006         * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
6007         * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
6008         Return by Depressed Stack Pointer.
6009
6010 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6011
6012         * decl.c (is_variable_size): Do not unconditionally return false
6013         on non-strict alignment platforms.
6014
6015 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6016
6017         * decl.c (rest_of_type_decl_compilation_no_defer): New local function
6018         used to process all the variants of the specified type.
6019         (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
6020         types too.  Call rest_of_type_decl_compilation_no_defer if undeferring.
6021         (rest_of_type_decl_compilation): Likewise.
6022         * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
6023
6024 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
6025
6026         * gigi.h (insert_block): Kill.
6027         * utils.c (insert_block): Kill.
6028
6029 2008-04-02  Eric Botcazou  <ebotcazou@adacore.com>
6030
6031         * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
6032         type has self-referential size, get the size from the initializing
6033         expression directly if it is also a constant whose nominal type
6034         has self-referential size.
6035
6036 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6037
6038         PR ada/33688
6039         * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
6040
6041         PR ada/33857
6042         * env.c: Always include crt_externs.h if __APPLE__ is defined.
6043         (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
6044
6045 2008-04-01  Andreas Jaeger  <aj@suse.de>
6046
6047         * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
6048         IP_PKTINFO.
6049
6050 2008-03-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6051
6052         * g-table.adb, g-tasloc.adb, g-traceb.ads,
6053         g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
6054         gnatbind.adb, gnatchop.adb, gnatcmd.adb,
6055         gnatcmd.ads, gnatdll.adb, gnatfind.adb,
6056         gnatlink.adb, gnatmem.adb, gprep.adb,
6057         i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
6058         i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
6059         layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
6060         lib-xref.ads, lib.adb, link.c, live.ads,
6061         make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
6062         mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
6063         misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
6064         mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
6065         namet.adb, namet.h, nlists.adb, nlists.ads,
6066         nlists.h, opt.ads, osint-b.ads, osint-c.adb,
6067         osint-c.ads, osint.adb, osint.ads, output.ads,
6068         par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
6069         par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
6070         par-endh.adb, par-labl.adb, par-prag.adb,
6071         par-sync.adb, par-tchk.adb, par-util.adb,
6072         par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
6073         prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
6074         prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
6075         prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
6076
6077 2008-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6078
6079         * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
6080         size if it has overflowed.
6081
6082 2008-03-31  Olivier Hainque  <hainque@adacore.com>
6083             Eric Botcazou  <ebotcazou@adacore.com>
6084
6085         * utils2.c (find_common_type): Document assumption on t1/t2 vs
6086         lhs/rhs. Force use of lhs type if smaller, whatever the modes.
6087
6088 2008-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6089
6090         * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
6091         einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
6092         exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
6093         exp_pakd.ads, exp_prag.adb, exp_smem.adb,
6094         exp_tss.ads, exp_util.adb, exp_util.ads,
6095         exp_vfpt.adb, freeze.adb, freeze.ads,
6096         frontend.adb, g-alleve.adb, g-altcon.adb,
6097         g-altive.ads, g-alveop.ads, g-alvevi.ads,
6098         g-arrspl.adb, g-busorg.ads, g-calend.adb,
6099         g-calend.ads, g-casuti.ads, g-cgideb.adb,
6100         g-comlin.adb, g-comlin.ads, g-curexc.ads,
6101         g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
6102         g-dirope.adb, g-dirope.ads, g-dynhta.ads,
6103         g-dyntab.adb, g-encstr.ads, g-excact.ads,
6104         g-except.ads, g-expect.ads, g-heasor.adb,
6105         g-hesora.adb, g-hesorg.adb, g-htable.ads,
6106         g-locfil.ads, g-md5.adb, g-md5.ads,
6107         g-memdum.ads, g-moreex.ads, g-os_lib.adb,
6108         g-pehage.adb, g-pehage.ads, g-regexp.adb,
6109         g-regexp.ads, g-regpat.adb, g-regpat.ads,
6110         g-soccon-aix.ads, g-soccon-darwin.ads,
6111         g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
6112         g-soccon-hpux.ads, g-soccon-irix.ads,
6113         g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
6114         g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
6115         g-soccon-mingw.ads, g-soccon-solaris-64.ads,
6116         g-soccon-solaris.ads, g-soccon-tru64.ads,
6117         g-soccon-vms.ads, g-soccon-vxworks.ads,
6118         g-soccon.ads, g-socket.adb, g-socket.ads,
6119         g-socthi-mingw.adb, g-socthi-vms.adb,
6120         g-socthi-vxworks.adb, g-soliop-mingw.ads,
6121         g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
6122         g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
6123         typos.
6124
6125 2008-03-27  Eric Botcazou  <ebotcazou@adacore.com>
6126
6127         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
6128         if the procedure is imported.
6129
6130 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6131
6132         * adaint.c: Fix warnings.
6133
6134 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6135
6136         * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
6137
6138 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6139
6140         * a-witeio.adb: Fix problem with Current_Output (introduce Self).
6141         Fix problem of status check for null file
6142
6143 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6144
6145         * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
6146         s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
6147         s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
6148         i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
6149         s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
6150         comments.
6151
6152 2008-03-26  Thomas Quinot  <quinot@adacore.com>
6153
6154         PR ada/33688
6155         * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
6156         Get_Socket_Option): Add support for Receive_Packet_Info.
6157
6158         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
6159         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
6160         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
6161         g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
6162         g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
6163         new constants SO_REUSEPORT and IP_PKTINFO
6164
6165 2008-03-26  Robert Dewar  <dewar@adacore.com>
6166
6167         * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
6168         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
6169         a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
6170         a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
6171         a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
6172         a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
6173         s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
6174         s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
6175         a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
6176         s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
6177         s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
6178         s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
6179         s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
6180         s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
6181         s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
6182         s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
6183         s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
6184         s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
6185         s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
6186         s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
6187         a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
6188         a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
6189         s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
6190         s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
6191         s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
6192         s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
6193         s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
6194         a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
6195         a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
6196         s-tasloc.adb: Minor reformatting.
6197         Update comments.
6198         Remove "used for" sections from comments.
6199
6200 2008-03-26  Robert Dewar  <dewar@adacore.com>
6201
6202         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
6203         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
6204         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
6205         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
6206         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
6207         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
6208         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
6209         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
6210         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
6211         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
6212         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
6213         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
6214         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
6215         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
6216         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
6217         double spaced if it fits on one line and otherwise single spaced.
6218
6219 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6220
6221         * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb, 
6222         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb, 
6223         s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
6224         or task info if the thread could not be created.
6225
6226 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6227
6228         * gnatvsn.ads (Library_Version): Bump to 4.4.
6229         (Current_Year): Bump to 2008.
6230
6231 2008-03-26  Robert Dewar  <dewar@adacore.com>
6232
6233         * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
6234
6235         * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
6236
6237         * debug.adb: Add debug flags d.r and d.v
6238         Add debug flag .T (Optimize_Alignment (Time))
6239         Add debug flag .S (Optimize_Alignment (Space))
6240
6241         * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
6242         depending on setting of relevant debug flags.
6243         Replace use of Warnings_Off by Has_Warnings_Off
6244         (Freeze_Entity): In circuit for warning on suspicious convention
6245         actuals, do not give warning if subprogram has same entity as formal
6246         type, or if subprogram does not come from source.
6247         (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
6248         if Optimize_Alignment set to Space.
6249
6250         * frontend.adb: Add call to Sem_Warn.Initialize
6251         Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
6252         Reset Optimize_Alignment mode from debug switches .S and .T
6253
6254         * layout.adb (Layout_Composite_Object): Rewritten for
6255         Optimize_Aligment pragma.
6256
6257         * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
6258         mode.
6259
6260         * opt.ads, opt.adb: (Optimize_Alignment): New global switch
6261
6262         * par-prag.adb (N_Pragma): Chars field removed, use Chars
6263         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
6264         this change. Add entry for pragma Optimize_Alignment
6265
6266         * sem_prag.adb (N_Pragma): Chars field removed, use Chars
6267         (Pragma_Identifier (..
6268         instead, adjustments throughout to accomodate this change.
6269         (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
6270         (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
6271         Add implementation of pragma Optimize_Alignment
6272
6273 2008-03-26  Vincent Celier  <celier@adacore.com>
6274
6275         * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
6276         Improve memory usage to avoid use of stack.
6277
6278 2008-03-26  Robert Dewar  <dewar@adacore.com>
6279
6280         * a-teioed.ads: Correct value of Default_Fill
6281
6282         * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
6283
6284 2008-03-26  Robert Dewar  <dewar@adacore.com>
6285
6286         * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
6287         with Current_Output (introduce Self).
6288
6289 2008-03-26  Robert Dewar  <dewar@adacore.com>
6290
6291         * checks.adb (Ensure_Valid): Capture valid status if possible
6292         (eliminate checks)
6293
6294 2008-03-26  Robert Dewar  <dewar@adacore.com>
6295
6296         * stand.ads: Deal with reordering of package standard declarations
6297
6298         * cstand.adb: Put package Standard declarations in proper order
6299
6300 2008-03-26  Robert Dewar  <dewar@adacore.com>
6301
6302         * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
6303         (Pragma_Identifier (.. instead.
6304         (OK_To_Reorder_Components): New flag
6305         (Has_Entries): Code cleanup.
6306         (Warnings_Off_Used): New flag
6307         (Warnings_Off_Used_Unmodified): New flag
6308         (Warnings_Off_Used_Unreferenced): New flag
6309         (Has_Warnings_Off): New function
6310         (Has_Unmodified): New function
6311         (Has_Unreferenced): New function
6312         (Is_Trivial_Subprogram): New flag
6313         (Is_Static_Dispatch_Table_Entity): New attribute.
6314         Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
6315         (more consistent with other similar names)
6316         (Access_Subprogram_Type): New classification function
6317
6318 2008-03-26  Robert Dewar  <dewar@adacore.com>
6319
6320         * errout.ads: Document new !! insertion sequence
6321
6322         * errout.adb (N_Pragma): Chars field removed, use Chars
6323         (Pragma_Identifier (..  instead.
6324         Replace use of Warnings_Off by Has_Warnings_Off
6325         (Error_Msg_Internal): Don't delete warning ending in !!
6326
6327 2008-03-26  Robert Dewar  <dewar@adacore.com>
6328
6329         * par.adb (Check_No_Right_Paren): Removed no longer used
6330
6331         * par-ch10.adb (N_Pragma): Chars field removed, use Chars
6332         (Pragma_Identifier (..  instead.
6333
6334         * par-ch10.adb (P_Subunit): Improvement in error recovery and message
6335
6336         * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
6337         par-ch4.adb: Minor improvements in error recovery and messages.
6338
6339         * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
6340         non-serious
6341
6342         * par-ch9.adb: Minor improvements in error recovery and messages
6343         (P_Protected): Better error recovery for "protected type x;"
6344
6345         * par-util.adb: Minor improvements in error recovery and messages
6346         (Check_No_Right_Paren): Removed no longer used
6347
6348 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6349
6350         * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
6351         that the prefix of an attribute is the type of the aggregate being
6352         expanded.
6353
6354 2008-03-26  Javier Miranda  <miranda@adacore.com>
6355             Robert Dewar  <dewar@adacore.com>
6356
6357         * exp_attr.adb (N_Pragma): Chars field removed.
6358         (Expand_N_Attribute_Reference): If the designated type associated with
6359         attribute 'Unrestricted_Access is a subprogram entity then replace it
6360         by an E_Subprogram_Type itype.
6361         Implement attribute Old
6362
6363         * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
6364
6365         * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
6366         Replace call to
6367         New_Internal_Entity by call to Create_Itype to centralize calls
6368         building itypes, ad propagate the convention of the designated
6369         subprogram. In addition, disable the machinery cleaning constant
6370         indications from all entities in current scope when 'Unrestricted_Access
6371         corresponds with a node initializing a dispatch table slot.
6372         (Analyze_Attribute): Parameterless attributes returning a string or a
6373         type will not be called with improper arguments, so we can remove junk
6374         code that was dealing with this case.
6375         Implement attribute Old
6376
6377         * snames.ads, snames.h, snames.adb: Add entries for attribute Old
6378         Add entry for pragma Optimize_Alignment
6379         New standard names Sync and Synchronize
6380
6381 2008-03-26  Robert Dewar  <dewar@adacore.com>
6382             Arnaud Charlet  <charlet@adacore.com>
6383
6384         * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
6385         stmt.
6386         (No_Exception_Propagation_Active): New function.
6387         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
6388         Update comments, and review all uses of No_Exception_Propagation, which
6389         are now correct and in sync with what gigi expects.
6390
6391         * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
6392         function.
6393         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
6394         Update comments, and review all uses of No_Exception_Propagation, which
6395         are now correct and in sync with what gigi expects.
6396
6397 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6398
6399         * sem_ch3.adb (Access_Definition): If the access type is the return
6400         result of a protected function, create an itype reference for it
6401         because usage will be in an inner scope from the point of declaration.
6402         (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
6403         OK_To_Reorder_Components.
6404         (Make_Index): If an overloaded range includes a universal integer
6405         interpretation, resolve to Standard.Integer.
6406         (Analyze_Subtype_Indication): Copy Convention to subtype
6407         (Check_Abstract_Interfaces): Complete semantic checks on the legality of
6408         limited an synchronized progenitors in type declaration and private
6409         extension declarations.
6410
6411         * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
6412         protected subprogram body, determine proper scope from subprogram
6413         declaration.
6414
6415 2008-03-26  Robert Dewar  <dewar@adacore.com>
6416
6417         * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
6418         No_Run_Time_Mode
6419
6420 2008-03-26  Gary Dismukes  <dismukes@adacore.com>
6421
6422         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
6423         of a heap allocator for a limited unconstrained function return when
6424         resstriction No_Allocators is active.
6425         (Analyze_Allocator): The restriction No_Allocators is now only checked
6426         on allocators that have Comes_From_Source set, as per RM-H.4(7).
6427
6428         * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
6429         of a heap allocator for a limited unconstrained function return when
6430         resstriction No_Allocators is active.
6431         (Analyze_Allocator): The restriction No_Allocators is now only checked
6432         on allocators that have Comes_From_Source set, as per RM-H.4(7).
6433         (Has_Fixed_Op):  If the name in a function call is Standard."*" and the
6434         operands are fixed-point types, the universal_fixed predefined operation
6435         is used, regardless of whether the operand type (s) have a primitive
6436         operation of the same name.
6437
6438 2008-03-26  Javier Miranda  <miranda@adacore.com>
6439
6440         * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
6441         Is_Static_Dispatch_Table
6442         (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
6443         to Exchange_Declarations to exchange the private and full-view. Bug
6444         found working in this issue.
6445         (Expand_Dispatching_Call): Propagate the convention of the subprogram
6446         to the subprogram pointer type.
6447         (Make_Secondary_DT): Replace generation of Prim'Address by
6448         Address (Prim'Unrestricted_Access)
6449         (Make_DT): Replace generation of Prim'Address by
6450         Address (Prim'Unrestricted_Access)
6451         (Make_Disp_*_Bodies): When compiling for a restricted profile, use
6452         simple call form for single entry.
6453         (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
6454         tables of predefined primitives).
6455         (Make_Secondary_DT): Add support to handle access to dispatch tables of
6456         predefined primitives.
6457         (Make_Tags): Add entities to Access_Dispatch_Table associated with
6458         access to dispatch tables containing predefined primitives.
6459
6460         * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
6461         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
6462         this change.
6463         (Register_Predefined_DT_Entry): Updated to handle the new contents
6464         of attribute Access_Disp_Table (pointers to dispatch tables containing
6465         predefined primitives).
6466
6467         * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
6468         subprogram.
6469         (Find_Interface_ADT): Updated to skip the new contents of attribute
6470         Access_Dispatch_Table (pointers to dispatch tables containing predefined
6471         primitives).
6472
6473         * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
6474         concurrent types.
6475         (Set_Convention): Use new function Is_Access_Subprogram_Type
6476         (Collect_Interfaces_Info): Updated to skip the new contents of attribute
6477         Access_Dispatch_Table (pointers to dispatch tables containing predefined
6478         primitives).
6479
6480         * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
6481         expanded code avoiding calls to Build_Predef_Prims.
6482         (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
6483         call to Build_Get_Predefined_Prim_Op_Address.
6484
6485 2008-03-26  Javier Miranda  <miranda@adacore.com>
6486
6487         * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
6488         subprogram Corresponding_Runtime_Package to know the runtime package
6489         that will provide support to a given protected type.
6490
6491         * exp_ch9.adb (Add_Private_Declarations,
6492         Build_Protected_Subprogram_Call,
6493         Build_Protected_Entry, Build_Simple_Entry_Call,
6494         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
6495         Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
6496         cleanup using the new centralized subprogram Corresponding_Runtime
6497         Package to know the runtime package that provides support to
6498         a given protected type.
6499
6500 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6501
6502         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
6503         assignment is within the initialization procedure for a packed array,
6504         and Initialize_Scalars is enabled, compile right-hand side with checks
6505         off, because the value is purposely out of range.
6506
6507 2008-03-26  Vincent Celier  <celier@adacore.com>
6508
6509         * gnatcmd.adb: Add processing for GNAT SYNC
6510
6511         * vms_conv.ads: (Command_Type): Add command Sync
6512
6513         * vms_conv.adb (Initialize): Add Command_List data for new command Sync
6514
6515         * vms_data.ads: Add entries for -gnatw.w
6516         Add qualifier for gnatstub --header-file option
6517         Add switches for GNAT SYNC
6518
6519         * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
6520         (Add_Package_Name): New procedure
6521         (Package_Name_List): New function
6522         (Initialize): Add known package names to the list
6523         (Register_New_Package): Add the new package name to the list
6524
6525 2008-03-26  Robert Dewar  <dewar@adacore.com>
6526
6527         * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
6528         s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
6529         Raise_Exception by "raise with" construct.
6530
6531 2008-03-26  Pascal Obry  <obry@adacore.com>
6532
6533         * Makefile.in: Add proper GNAT.Serial_Communications implementation on
6534         supported platforms.
6535         
6536         * Makefile.rtl: Add g-sercom.o.
6537         
6538         * impunit.adb: Add g-sercom.adb.
6539         
6540         * s-crtl.ads (open): New routine.
6541         (close): Likewise.
6542         (write): Likewise.
6543         
6544         * s-osinte-mingw.ads (BYTE): New type.
6545         (CHAR): Likewise.
6546         (OVERLAPPED): Likewise.
6547         (GENERIC_READ): New constant.
6548         (GENERIC_WRITE): Likewise.
6549         (OPEN_EXISTING): Likewise.
6550         (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
6551         type instead.
6552         (CreateFile): New routine.
6553         (WriteFile): Likewise.
6554         (ReadFile): Likewise.
6555         (CloseHandle): Move next to the other file oriented routines.
6556
6557         * g-sercom.ads: New unit.
6558
6559         * g-sercom.adb: Default implementation, calls to this unit will raise
6560         a program error exception.
6561         
6562         * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
6563         GNU/Linux implementations.
6564
6565 2008-03-26  Robert Dewar  <dewar@adacore.com>
6566
6567         * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
6568
6569         * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
6570         unchecked conversion for different conventions only for subprogram
6571         pointers or on VMS.
6572
6573 2008-03-26  Vincent Celier  <celier@adacore.com>
6574
6575         * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
6576         to check if the specified object file is correct.
6577
6578 2008-03-26  Thomas Quinot  <quinot@adacore.com>
6579
6580         * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
6581         Comes_From_Source to exclude primitives from being checked. We want to
6582         exclude predefined primitives only, so use the appropriate specific
6583         predicate. Also, flag a formal parameter of an anonymous
6584         access-to-subprogram type as illegal for a primitive operation of a
6585         remote access to class-wide type.
6586
6587 2008-03-26  Vincent Celier  <celier@adacore.com>
6588
6589         * prj-dect.adb (Parse_Package_Declaration): When a package name is not
6590         known, check if it may be a missspelling of a known package name. In
6591         not verbose, not mode, issue warnings only if the package name is a
6592         possible misspelling.
6593         In verbose mode, always issue a warning for a not known package name,
6594         plus a warning if the name is a misspelling of a known package name.
6595
6596         * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
6597         limited withs or limited withs are parse during one call.
6598         (Parse_Single_Project): Post parse context clause in two passes: non
6599         limited withs before current project and limited withs after current
6600         project.
6601
6602         * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
6603         project with the name With_Name, even if it is only extended indirectly.
6604         (Recursive_Process): Process projects in order: first single withs, then
6605         current project, then limited withs.
6606
6607         * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
6608         project with the name With_Name, even if it is only extended indirectly.
6609
6610 2008-03-26  Robert Dewar  <dewar@adacore.com>
6611
6612         * scn.adb (Initialize_Scanner): Format messages belong on standard error
6613
6614 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6615
6616         * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
6617         a generic subprogram that is imported, do not attempt to compile
6618         non-existent body.
6619
6620         * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
6621         imported, do not generate a raise_program_error for the non-existent
6622         body.
6623         (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
6624         perform minimal name resolution on the generic to avoid spurious
6625         warnings.
6626         (Find_Actual_Type): the designated type of the actual in a child unit
6627         may be declared in a parent unit without being an actual.
6628
6629 2008-03-26  Robert Dewar  <dewar@adacore.com>
6630
6631         * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
6632         * sinfo.ads, sinfo.adb (From_At_End): New flag
6633
6634 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6635
6636         * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
6637         operations that have an interface parameter.
6638         (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
6639         Don't treat No_Return call as raise.
6640
6641         * sem_disp.adb (Check_Dispatching_Operations): apply check for
6642         non-primitive interface primitives to access parameters, not to all
6643         parameters of an access type.
6644
6645 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6646
6647         * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
6648         declarations of a parent unit are made visible when compiling a child
6649         instance, the parent is not a hidden open scope, even though it may
6650         contain other pending instance.
6651         
6652         * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
6653         hidden open scope for some child instance, it does affect the
6654         visibility status of other stach entries.
6655         (Analyze_Object_Renaming): Check that a class-wide object cannot be
6656         renamed as an object of a specific type.
6657
6658 2008-03-26  Robert Dewar  <dewar@adacore.com>
6659
6660         * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
6661         recursion and raise SE directly.
6662         (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
6663         set for formal type for IN mode parameter.
6664
6665 2008-03-26  Robert Dewar  <dewar@adacore.com>
6666
6667         * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
6668         (Initialize): New procedure
6669         (Output_Warnings_Off_Warnings): New procedure
6670         (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
6671         (Output_Non_Modifed_In_Out_Warnings): Ditto
6672         (Warn_On_Unreferenced_Entity): Ditto
6673
6674 2008-03-26  Vincent Celier  <celier@adacore.com>
6675
6676         * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
6677         readable.
6678
6679 2008-03-26  Matthew Heaney  <heaney@adacore.com>
6680
6681         * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads, 
6682         a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
6683         Marked with clauses as private, and controlled operations as overriding
6684
6685 2008-03-26  Robert Dewar  <dewar@adacore.com>
6686
6687         * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
6688
6689 2008-03-26  Robert Dewar  <dewar@adacore.com>
6690
6691         * back_end.adb, back_end.ads: Minor reformatting
6692
6693         * bindgen.adb: Minor clarification of comments
6694
6695         * fname.ads: Minor comment fixes
6696
6697         * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
6698         prj-nmsc.adb, sem_aggr.adb: Minor reformatting
6699
6700         * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
6701         xsnames.adb: Remove warnings off pragma no longer needed
6702
6703         * a-catizo.ads, a-calari.ads, a-calfor.adb,
6704         a-calfor.ads: Fix header.
6705
6706 2008-03-26  Tristan Gingold  <gingold@adacore.com>
6707
6708         * init.c: Do not adjust pc for HPARITH on alpha/vms.
6709
6710 2008-03-26  Robert Dewar  <dewar@adacore.com>
6711
6712         * lib-xref.adb: (OK_To_Set_Reference): New function
6713         (Generate_Reference): Don't set referenced from occurrence in Warnings,
6714         Unmodified, or Unreferenced pragma
6715
6716 2008-03-26  Robert Dewar  <dewar@adacore.com>
6717
6718         * alloc.ads: Add entries for Warnings_Off_Pragmas table
6719
6720 2008-03-26  GNAT Script  <nobody@adacore.com>
6721
6722         * Make-lang.in: Makefile automatically updated
6723
6724 2008-03-26  Robert Dewar  <dewar@adacore.com>
6725
6726         * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
6727         par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
6728         removed, use Chars (Pragma_Identifier (..  instead, adjustments
6729         throughout to accomodate this change.
6730
6731         * s-pooglo.ads, s-pooloc.ads: Minor comment updates
6732
6733         * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
6734         Einfo.Set_Needs_Debug_Info)
6735
6736 2008-03-26  Robert Dewar  <dewar@adacore.com>
6737
6738         * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
6739         Add description for the new gnatstub option '--header-file'
6740         clarification of -gnatwz/-gnatwZ
6741         Add a "Irix-Specific Considerations" section to document the need to
6742         set LD_LIBRARY_PATH when using the default shared runtime library.
6743         Added documentation for both gcov and gprof.
6744
6745         * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
6746         messages that are not suppressed when clients are compiled.
6747         Add documentation of s-pooglo s-pooloc
6748         Document the new GNAT.Serial_Communications API.
6749         Add documentation for 'Old attribute
6750         Add description of pragma Optimize_Alignment
6751
6752         * ug_words: Add entries for -gnatw.w -gnatw.W
6753
6754         * usage.adb: Add line for -gnatw.w (warn on warnings off)
6755
6756 2008-03-25  Eric Botcazou  <ebotcazou@adacore.com>
6757
6758         Revert
6759         2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
6760         PR ada/35186
6761         * decl.c (maybe_pad_type): Avoid padding an integral type when
6762         bumping its alignment is sufficient.
6763
6764 2008-03-25  Arnaud Charlet  <charlet@adacore.com>
6765
6766         * exp_ch6.adb, exp_disp.adb: Update copyright notice.
6767         Fix wrong formatting (lines too long)
6768
6769 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6770
6771         * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
6772         a-calend-vms.adb, a-calend.adb, a-calend.ads,
6773         a-calfor.adb, a-chahan.ads, a-chtgke.adb,
6774         a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
6775         a-cohama.ads, a-comlin.ads, a-coorse.adb,
6776         a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
6777         a-except-2005.ads, a-except.adb, a-except.ads,
6778         a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
6779         a-exextr.adb, a-filico.ads, a-finali.ads,
6780         a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
6781         a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
6782         a-sequio.ads, a-strbou.ads, a-strfix.adb,
6783         checks.adb, exp_ch3.adb, exp_ch4.adb,
6784         exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
6785         exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
6786         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
6787         exp_dbug.ads, exp_disp.adb, exp_dist.adb,
6788         exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
6789
6790 2008-03-24  Robert Dewar  <dewar@adacore.com>
6791
6792         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
6793         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
6794         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
6795         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
6796         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
6797         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
6798         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
6799         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
6800         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
6801         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
6802         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
6803         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
6804         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
6805         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
6806         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
6807         double spaced if it fits on one line and otherwise single spaced.
6808
6809 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6810
6811         PR documentation/15479
6812         * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
6813         (doc/gnat_ugn_unw.texi): ... this, and adjusted.
6814         (doc/gnat_ugn.info): Renamed from ...
6815         (doc/gnat_ugn_unw.info): ... this.
6816         (doc/gnat_ugn.dvi): Renamed from ...
6817         (doc/gnat_ugn_unw.dvi): ... this.
6818         (doc/gnat_ugn.pdf): Renamed from ...
6819         (doc/gnat_ugn_unw.pdf): ... this.
6820         (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
6821         Adjusted.
6822         * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
6823         unconditionally to gnat_ugn.info.  Fix cross references to the
6824         GNAT Reference Manual.  Convert links to the GCC, GDB, Emacs,
6825         and GNU make manuals to be proper texinfo links.
6826         * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
6827
6828 2008-03-21  Olivier Hainque  <hainque@adacore.com>
6829
6830         * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
6831         ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
6832
6833 2008-03-21  Eric Botcazou  <ebotcazou@adacore.com>
6834
6835         * trans.c (addressable_p): Add notes on addressability issues.
6836
6837 2008-03-21  Olivier Hainque  <hainque@adacore.com>
6838             Ed Schonberg  <schonberg@adacore.com>
6839
6840         * trans.c (addressable_p): Accept COND_EXPR when both arms
6841         are addressable.
6842         (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
6843         (call_to_gnu): Do not use name reference in the error message
6844         for a misaligned by_reference_parameter. The actual may be a
6845         general expression.
6846
6847 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
6848
6849         * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
6850
6851 2008-03-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6852
6853         * gnat_rm.texi (Implementation Defined Characteristics)
6854         (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
6855         appropriate.
6856         * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
6857         (Switches for gnatchop, Installing a library): Likewise.
6858
6859 2008-03-10  Eric Botcazou  <ebotcazou@adacore.com>
6860
6861         * trans.c (emit_range_check): Do not emit the check if the base type
6862         of the expression is the type against which its range must be checked.
6863
6864 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6865
6866         * decl.c (maybe_pad_type): Use value_factor_p.
6867
6868 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6869
6870         * lang.opt (nostdlib): Move around.
6871         * misc.c (gnat_handle_option): Fix formatting.
6872         (gnat_dwarf_name): Move around.
6873         * trans.c (Case_Statement_to_gnu): Fix formatting.
6874         (gnat_to_gnu): Likewise.
6875         * utils.c (aggregate_type_contains_array_p): Likewise.
6876         (create_subprog_decl): Likewise.
6877
6878 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6879
6880         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
6881         bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
6882
6883 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6884
6885         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
6886         BIGGEST_ALIGNMENT when capping the alignment of records with
6887         strict alignment and size clause.
6888
6889 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6890
6891         * lang-specs.h: Pass -gnatwa if -Wall is passed.
6892         * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
6893         and -Wuninitialized.
6894         (gnat_post_options): Clear warn_unused_parameter.
6895
6896 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6897
6898         * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
6899         aligned bit-fields, bumping the alignment of the record type if deemed
6900         profitable.
6901         (value_factor_p): Return false instead of 0.
6902
6903 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6904
6905         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
6906         for scalar types with small alignment.
6907
6908 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6909
6910         * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
6911         from that of the front-end's end label.
6912         (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
6913         from that of the loop label.
6914
6915 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
6916
6917         * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
6918         comment for the packed array type case.
6919         * utils.c (build_template): Use a loop to strip padding or
6920         containing records for justified modular types.
6921
6922 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
6923
6924         * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
6925         large alignments specified for types.
6926         (validate_alignment): Minor cleanup.
6927
6928 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
6929
6930         * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
6931         (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
6932         the component for packing, if possible, as well as if a component
6933         size clause is specified.
6934         <E_Record_Subtype>: For an array type used to implement a packed
6935         array, get the component type from the original array type.
6936         Try to get a smaller form of the component for packing, if possible,
6937         as well as if a component size clause is specified.
6938         (round_up_to_align): New function.
6939         (make_packable_type): Add in_record parameter.
6940         For a padding record, preserve the size.  If not in_record and the
6941         size is too large for an integral mode, attempt to shrink the size
6942         by lowering the alignment.
6943         Ditch the padding bits of the last component.
6944         Compute sizes and mode manually, and propagate the RM size.
6945         Return a BLKmode record type if its size has shrunk.
6946         (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
6947         Use Original_Array_Type to retrieve the type in case of an error.
6948         Adjust call to make_packable_type.
6949         (gnat_to_gnu_field): Likewise.
6950         (concat_id_with_name): Minor tweak.
6951         * trans.c (larger_record_type_p): New predicate.
6952         (call_to_gnu): Compute the nominal type of the object only if the
6953         parameter is by-reference.  Do the conversion actual type -> nominal
6954         type if the nominal type is a larger record.
6955         (gnat_to_gnu): Do not require integral modes on the source type to
6956         avoid the conversion for types with identical names.
6957         (addressable_p): Add gnu_type parameter.  If it is specified, do not
6958         return true if the expression is not addressable in gnu_type.
6959         Adjust recursive calls.
6960         * utils.c (finish_record_type): Remove dead code.
6961
6962 2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
6963
6964         PR ada/35186
6965         * decl.c (maybe_pad_type): Avoid padding an integral type when
6966         bumping its alignment is sufficient.
6967
6968 2008-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6969
6970         * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
6971         * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
6972         statement.
6973         * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
6974         gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
6975         sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
6976         code output strings.
6977         * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
6978         system-vms_64.ads: Fix typos in ada source code comments.
6979         * sinfo-cn.adb: Remove incomplete sentence.
6980
6981         PR documentation/15479
6982         * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
6983
6984 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
6985
6986         PR ada/22255
6987         * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
6988
6989 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
6990
6991         PR ada/34799
6992         * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
6993         that underlying type is present.
6994
6995 2008-02-26  Tom Tromey  <tromey@redhat.com>
6996
6997         * misc.c (internal_error_function): Remove test of
6998         USE_MAPPED_LOCATION.
6999         * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
7000         (Sloc_to_locus): Remove old location code.
7001
7002 2008-02-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7003
7004         * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
7005         `i.e.' by adding comma or `@:' as appropriate.
7006         * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
7007         plain characters `C', use `@samp{C}'.
7008         * gnat_ugn.texi (File Naming Rules, About gnatkr)
7009         (Krunching Method): Likewise.
7010
7011         * gnat_ugn.texi (Conventions): List environment variables and
7012         metasyntactic variables.
7013         (Compiling Programs): Fix notation of metasyntactic variables.
7014         Add @file where appropriate.  Use @file for file extensions,
7015         @samp for strings.
7016         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
7017         instead of @file, @env instead of @code.
7018
7019 2008-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7020
7021         PR documentation/15479
7022         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
7023         and `...' with `@dots{}' or `@enddots{}'.
7024
7025         PR documentation/15479
7026         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
7027         use @command instead of @code, @option instead of @samp or @code,
7028         @code instead of @var, @samp instead of @file.
7029
7030         PR documentation/15479
7031         * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
7032         in Makefile rules, by using `&&' rather than `;'.
7033
7034 2008-02-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7035
7036         PR documentation/15479
7037         * gnat_ugn.texi: In non-code, avoid space before colon.
7038         (Regular Expressions in gnatfind and gnatxref): Fix indentation.
7039         (Examples of gnatxref Usage): Use @command{vi} instead of
7040         @file{vi}.
7041         (Character Set Control): Do not use @code for UTF-8.
7042         (Validity Checking): Fix typo "NaNs" instead of "NaN's".  Do not
7043         use @code for IEEE.
7044         * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
7045         sample.
7046         * gnat_rm.texi, gnat_ugn.texi: Fix typos.  Bump copyright years.
7047
7048 2008-02-11  Joel Sherrill  <joel.sherrill@oarcorp.com>
7049
7050         PR ada/35143
7051         * env.c: Add __rtems__ to if defined.
7052         * s-osinte-rtems.adb: Add To_Target_Priority.  Fix formatting.
7053         * s-osinte-rtems.ads: Add To_Target_Priority prototype and
7054         PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants.  Add
7055         pragma Convention as required.
7056         * gsocket.h: Make compile in and out of RTS.
7057         * Makefile.in: Add system-rtems.ads.  Build DEC extensions.
7058         Use g-soccon-rtems.ads.
7059         * g-soccon-rtems.ads, system-rtems.ads: New files.
7060
7061 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7062
7063         PR other/35107
7064         * Make-lang.in (gnat1): Add $(GMPLIBS).
7065
7066 2008-01-26  Eric Botcazou  <ebotcazou@adacore.com>
7067
7068         * decl.c (components_to_record): Improve comment.
7069
7070 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
7071
7072         * decl.c (components_to_record): Do not reuse the empty union type
7073         if there is a representation clause on the record.
7074         * trans.c (addressable_p): Return true for INTEGER_CST.
7075
7076 2008-01-21  Eric Botcazou  <ebotcazou@adacore.com>
7077
7078         * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
7079         in pointer arithmetics.
7080         * utils2.c (build_allocator): Likewise.
7081
7082 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
7083
7084         * utils.c (build_function_stub): Properly build the call expression.
7085
7086 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
7087
7088         * decl.c (gnat_to_gnu_entity) <object>: Process renamings
7089         before converting the expression to the type of the object.
7090         * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
7091         Stabilize constructors for special wrapping types.
7092
7093 2008-01-13  Eric Botcazou  <ebotcazou@adacore.com>
7094
7095         * trans.c (call_to_gnu): Invoke the addressable_p predicate only
7096         when necessary.  Merge some conditional statements.  Update comments.
7097         Rename unchecked_convert_p local variable to suppress_type_conversion.
7098         Do not suppress conversions in the In case.
7099         (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
7100         into account on non strict-alignment platforms.
7101
7102 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
7103
7104         * utils.c (aggregate_type_contains_array_p): New predicate.
7105         (create_field_decl): In a packed record, force byte alignment
7106         for fields without specified position that contain an array.
7107
7108 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
7109
7110         * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
7111
7112 2008-01-10  John David Anglin  <dave.anglin.@nrc-cnrc.gc.ca>
7113
7114         PR ada/34466
7115         * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
7116         sysconf call.
7117         (bit_field): New packed boolean type used by cpu_set_t.
7118         (cpu_set_t): New type corresponding to the C type with
7119         the same name. Note that on the Ada side we use a bit
7120         field array for the affinity mask. There is not need
7121         for the C macro for setting individual bit.
7122         (pthread_setaffinity_np): New imported routine.
7123
7124 2008-01-03  Tero Koskinen  <tero.koskinen@iki.fi>
7125
7126         PR ada/34647
7127         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
7128         on OpenBSD as is done on other BSD systems.
7129
7130         PR ada/34645
7131         * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
7132         getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
7133         I/O.
7134
7135         PR ada/34644
7136         * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
7137         clearenv().
7138
7139         PR ada/34646
7140         * init.c (__gnat_error_handler, __gnat_install_handler,
7141         __gnat_init_float): Define for OpenBSD.
7142
7143         * initialize.c (__gnat_initialize): Define for OpenBSD.
7144
7145 2007-12-27  Samuel Tardieu  <sam@rfc1149.net>
7146
7147         PR ada/34553
7148         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
7149         instead of mktemp() or tmpnam() on NetBSD.
7150
7151 2007-12-23  Eric Botcazou  <ebotcazou@adacore.com>
7152
7153         * trans.c (call_to_gnu): Make the temporary for non-addressable
7154         In parameters passed by reference.
7155         (addressable_p): Return true for STRING_CST and CALL_EXPR.
7156
7157 2007-12-19  Robert Dewar  <dewar@adacore.com>
7158
7159         * g-expect-vms.adb, g-expect.adb, s-poosiz.adb: 
7160         Add pragma Warnings (Off) for unassigned IN OUT arguments
7161
7162         * sem_warn.adb (Output_Reference): Suppress messages for internal names
7163         (Check_References): Extensive changes to tune up warnings
7164         (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
7165         (Has_Pragma_Unmodifed_Check_Spec): New function
7166         (Check_References): Implement pragma Unmodified
7167         (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
7168
7169         * par-prag.adb: Dummy entry for pragma Unmodified
7170
7171         * sem_prag.adb: Implement pragma Unmodified
7172
7173         * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
7174         (Proc_Next_Component_Or_Discriminant): Fix typo.
7175         Update comments.
7176
7177         * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
7178         Unmodified.
7179         (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
7180         because the former already takes care of discarding the result.
7181         (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
7182         Add comment.
7183
7184         * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
7185
7186 2007-12-19  Eric Botcazou  <ebotcazou@adacore.com>
7187
7188         * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
7189         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
7190         system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
7191         system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
7192         system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7193         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7194         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
7195         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
7196         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7197         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
7198         (Dynamic_Trampolines_Used): Delete.
7199
7200         * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
7201         Turn on stack probing mechanism on LynxOS.
7202
7203 2007-12-19  Bob Duff  <duff@adacore.com>
7204
7205         * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
7206         the resulting tail recursion by hand. This prevents running out of
7207         memory on deeply nested concatenations, since Field2 is where the left
7208         operand of concatenations is stored.
7209         Fix bug (was returning OK_Orig in some cases). Fix return subtype to
7210         clarify that it can only return OK or Abandon.
7211
7212         * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
7213         operand by iteration, in order to avoid running out of memory on
7214         deeply-nested concatenations. Use the Parent pointer to get back up the
7215         tree.
7216         (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
7217          Resolve_Op_Concat_Rest): New procedures split out of
7218         Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
7219         clearer.
7220
7221         * checks.adb (Remove_Checks): Use Traverse_Proc instead of
7222         Traverse_Func, because the former already takes care of discarding the
7223         result.
7224
7225         * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
7226         because the former already takes care of discarding the result.
7227         (Remove_Warning_Messages): Use appropriate subtype for Status and
7228         Discard 
7229
7230 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7231
7232         * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
7233         discriminants forces expansion of the aggregate into assignments.
7234         (Init_Record_Controller):  If the type of the aggregate is untagged and
7235         is not inherently limited, the record controller is not limited either.
7236
7237 2007-12-19  Robert Dewar  <dewar@adacore.com>
7238
7239         * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
7240         handling compile time known size of record or array (case of front end
7241         layout active, e.g. in GNAAMP).
7242
7243 2007-12-19  Javier Miranda  <miranda@adacore.com>
7244
7245         * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
7246         that forces the construction of static dispatch tables in case of
7247         record subtypes.
7248
7249 2007-12-19  Robert Dewar  <dewar@adacore.com>
7250
7251         * exp_ch9.adb (Null_Statements): Moved to library level
7252         (Trivial_Accept_OK): New function
7253         (Expand_Accept_Declaration): Use Trivial_Accept_OK
7254         (Expand_N_Accept_Statement): Use Trivial_Accept_OK
7255
7256 2007-12-19  Robert Dewar  <dewar@adacore.com>
7257
7258         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
7259         in complex case where array is Volatile.
7260
7261 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7262
7263         * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
7264         properly the Ada2005 rules concerning when the current instance of a
7265         record type is aliased.
7266
7267 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7268
7269         * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
7270         mangled declaration
7271         (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
7272         declarations.
7273         (P_Variant_Part): Cleaner patch for parenthesized discriminant
7274
7275 2007-12-19  Vincent Celier  <celier@adacore.com>
7276
7277         * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
7278         package is not known
7279
7280         * prj-attr.ads (Unknown_Package): New constant
7281         Do not crash when an unknown package is in several projects
7282
7283         * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
7284         ignored
7285
7286         * prj-nmsc.adb (Check): Remove obsolete code related to no longer
7287         existing package Language_Processing.
7288
7289 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7290             Gary Dismukes  <dismukes@adacore.com>
7291             Samuel Tardieu  <sam@rfc1149.net>
7292
7293         PR ada/15803, ada/15805
7294         * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
7295         illegal access subtypes when there is a constrained partial view.
7296         (Check_For_Premature_Usage): New procedure inside
7297         Access_Subprogram_Declaration for checking that an access-to-subprogram
7298         type doesn't reference its own name within any formal parameters or
7299         result type (including within nested anonymous access types).
7300         (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
7301         (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
7302         context is an access_to_variable, the expression cannot be an
7303         access_to_constant.
7304
7305 2007-12-19  Bob Duff  <duff@adacore.com>
7306
7307         * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
7308         (Analyze_Concatenation): Use iteration instead of recursion in order
7309         to avoid running out of stack space for deeply nested concatenations.
7310
7311 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
7312             Gary Dismukes  <dismukes@adacore.com>
7313
7314         * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
7315         whose renamed entity is a subprogram that requires overriding.
7316         (Premature_Usage): Test for the case of N_Full_Type_Declaration when
7317         issuing an error for premature usage and issue a message that says
7318         'type' rather than 'object'.
7319
7320 2007-12-19  Gary Dismukes  <dismukes@adacore.com>
7321
7322         PR ada/34149
7323         * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
7324         presence of a statically tagged operand (Present (Static_Tag)) with
7325         test for Indeterm_Ancestor_Call when determining whether to propagate
7326         the static tag to tag-indeterminate operands (which forces dispatching
7327         on such calls).
7328         (Check_Controlling_Formals): Ada2005, access parameters can have
7329         defaults.
7330         (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
7331         not insert subprogram in list of primitive operations if already there.
7332
7333 2007-12-19  Tristan Gingold  <gingold@adacore.com>
7334
7335         * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
7336         global variable.
7337
7338 2007-12-19  Thomas Quinot  <quinot@adacore.com>
7339
7340         Part of PR ada/33688
7341         * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
7342         datagram info on Linux.
7343
7344 2007-12-19  Vincent Celier  <celier@adacore.com>
7345
7346         * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
7347         that the source path name is always found in the dependencies.
7348
7349 2007-12-19  Robert Dewar  <dewar@adacore.com>
7350
7351         * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
7352         Fix name of Wide_Wide_Latin_1/9 file names
7353         Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
7354         Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
7355         Add missing documentation for Ada.Command_Line.Response_File
7356         Update list of warning letters for Warnings pragma
7357         Add documentation for pragma Unmodified
7358
7359 2007-12-19  Samuel Tardieu  <sam@rfc1149.net>
7360
7361         * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
7362
7363 2007-12-17  Arnaud Charlet  <charlet@adacore.com>
7364
7365         * s-vxwork-alpha.ads: Removed, no longer used.
7366
7367 2007-12-15  Jakub Jelinek  <jakub@redhat.com>
7368
7369         * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
7370
7371 2007-12-13  Samuel Tardieu  <sam@rfc1149.net>
7372
7373         PR ada/34360
7374         * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
7375         mlib-tgt-specific.adb.
7376
7377 2007-12-13  Bob Duff  <duff@adacore.com>
7378
7379         * trans.c (Attribute_to_gnu): Check for violations of the
7380         No_Implicit_Dynamic_Code restriction. This checking used to be done in
7381         the front end, but is moved here so we can make it more accurate.
7382
7383 2007-12-13  Pascal Obry  <obry@adacore.com>
7384
7385         * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
7386          version is provided for older GNU/Linux distribution not
7387          supporting thread affinity sets.
7388         
7389         * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
7390         call.
7391         (bit_field): New packed boolean type used by cpu_set_t.
7392         (cpu_set_t): New type corresponding to the C type with
7393         the same name. Note that on the Ada side we use a bit
7394         field array for the affinity mask. There is not need
7395         for the C macro for setting individual bit.
7396         (pthread_setaffinity_np): New imported routine.
7397         
7398         * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
7399         no null.
7400         (Create_Task): Set the processor affinity mask if information
7401         is present.
7402         
7403         * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
7404         
7405 2007-12-13  Robert Dewar  <dewar@adacore.com>
7406
7407         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads, 
7408         s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads, 
7409         s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads, 
7410         s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
7411         s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
7412         s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads, 
7413         s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads, 
7414         i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
7415         for subprogram pointers.
7416
7417         * g-ctrl_c.adb: New file.
7418
7419         * g-ctrl_c.ads (Install_Handler): New body.
7420
7421         * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
7422         instead of obsolete function Is_Always_Inlined.
7423         (Freeze_Entity): check for tagged type in imported C subprogram
7424         (Freeze_Entity): check for 8-bit boolean in imported C subprogram
7425         (Freeze_Entity): check for convention Ada subprogram pointer in
7426         imported C subprogram.
7427         (Freeze_Fixed_Point_Type): In the case of a base type where the low
7428         bound would be chopped off and go from negative to zero, force
7429         Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
7430         bound) so that the size computation for the base type will take
7431         negative values into account.
7432
7433 2007-12-13  Eric Botcazou  <ebotcazou@adacore.com>
7434             Bob Duff  <duff@adacore.com>
7435             Tristan Gingold  <gingold@adacore.com>
7436
7437         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, 
7438         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads, 
7439         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
7440         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, 
7441         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads, 
7442         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
7443         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
7444         system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
7445         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, 
7446         system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
7447         system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
7448         (Always_Compatible_Rep): New flag to control trampolines globally.
7449         (Dynamic_Trampolines_Used): New flag for implementing the
7450         No_Implicit_Dynamic_Code restriction more correctly (not yet used,
7451         and not yet set correctly for some targets).
7452
7453         * s-taprop-vxworks.adb: Use stack limit method of stack checking.
7454         Simply indirectly call s-stchop when a task is created.
7455
7456         * ali.ads: 
7457         New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
7458         appears as an argument (entries A) in an ALI file.
7459
7460         * fe.h (Stack_Check_Limits): Declare new target parameter.
7461         (Check_Implicit_Dynamic_Code_Allowed): New procedure.
7462
7463         * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
7464         This variable is declared in C to be sure not subject to elaboration
7465         code.
7466         (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
7467         Storage_Error.
7468
7469         * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
7470         (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
7471
7472         * s-stchop.ads: Add comments.
7473
7474         * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
7475         limit method of stack checking.
7476
7477         * s-stchop-limit.ads: New file.
7478
7479 2007-12-13  Robert Dewar  <dewar@adacore.com>
7480
7481         * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb, 
7482         a-cihama.adb, g-awk.adb, 
7483         s-inmaop-posix.adb: Update handling of assigned value/unreferenced
7484         warnings
7485
7486         * exp_smem.adb: Update handling of assigned value/unreferenced warnings
7487
7488         * sem.adb: Update handling of assigned value/unreferenced warnings
7489
7490         * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
7491
7492         * lib-xref.ads: Improve documentation for k xref type
7493
7494         * lib-xref.adb: 
7495         Update handling of assigned value/unreferenced warnings
7496         (Generate_Reference): Warning for reference to entity for which a
7497         pragma Unreferenced has been given should be unconditional.
7498         If the entity is a discriminal, mark the original
7499         discriminant as referenced.
7500
7501         * sem_warn.ads, sem_warn.adb
7502         (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
7503         no entities referenced in package
7504         (Check_One_Unit): Don't give message about no entities referenced in
7505         a package if a pragma Unreferenced has appeared.
7506         Handle new warning flag -gnatw.a/-gnatw.A
7507         Update handling of assigned value/unreferenced warnings
7508
7509         * atree.h: Add flags up to Flag247
7510         (Flag231): New macro.
7511
7512 2007-12-13  Jose Ruiz  <ruiz@adacore.com>
7513
7514         * adaint.h: (__gnat_plist_init): Not defined for RTX.
7515
7516         * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
7517         RTX systems.
7518
7519         * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
7520         (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
7521         EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
7522         GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
7523
7524         * mingw32.h: 
7525         Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
7526
7527         * sysdep.c (winflush_function for RTX): Procedure that does nothing
7528         since we only have problems with Windows 95/98, which are not
7529         supported by RTX.
7530         (__gnat_ttyname): Return the empty string on Nucleus, just as
7531         done on vxworks.
7532
7533 2007-12-13  Robert Dewar  <dewar@adacore.com>
7534
7535         * a-textio.adb, a-textio.ads: 
7536         Extensive changes to private part for wide character encoding
7537
7538         * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
7539         (Look_Ahead): Fix mishandling of encoded sequences
7540         Move declaration of Wch_Con to private part (should not be visible)
7541
7542         * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
7543         UTF-8. Probably this is never used, but if it is, brackets is
7544         clearly correct.
7545
7546         * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
7547         setting wide character encoding for no main program case and when
7548         encoding is specified using -W?
7549         Initialize stack limit of environment task if stack limit method of
7550         stack checking is enabled.
7551         (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
7552         (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
7553         (Get_Main_Unit_Name): New function.
7554         (Gen_Adainit_Ada): Add call to main program for .NET when needed.
7555         (Gen_Output_File): Set Bind_Main_Program to True for .NET
7556
7557         * bindusg.adb: Add line for -Wx switch
7558
7559         * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
7560         Add comments
7561         Add new useful constant WC_Longest_Sequences
7562
7563         * switch-b.adb: Clean up handling of -Wx switch
7564         For -gnatWx, set Wide_Character_Encoding_Method_Specified
7565
7566         * switch-c.adb: -gnatg activates warning on assertion errors
7567         For -gnatWx, set Wide_Character_Encoding_Method_Specified
7568
7569         * s-wchcon.adb: (Is_Start_Of_Encoding): New function
7570
7571 2007-12-13  Robert Dewar  <dewar@adacore.com>
7572             Ed Schonberg  <schonberg@adacore.com>
7573
7574         * a-ngcoty.adb: New pragma Fast_Math
7575
7576         * opt.adb: New pragma Fast_Math
7577
7578         * par-prag.adb: 
7579         Add Implemented_By_Entry to the list of pragmas which do not require any
7580         special processing.
7581         (Favor_Top_Level): New pragma.
7582         New pragma Fast_Math
7583
7584         * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
7585         (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
7586         Expand_Allocator_Expression): Take into account VM_Target
7587         (Expand_Attribute, case 'Identity):  Handle properly the case where
7588         the prefix is a task interface.
7589         New pragma Fast_Math
7590
7591         * par.adb (Next_Token_Is): New function
7592         (P_Pragma): Add Skipping parameter
7593         (U_Left_Paren): New procedure
7594         (U_Right_Paren): New procedure
7595         New pragma Fast_Math
7596
7597         * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
7598         subunit
7599         New pragma Fast_Math
7600
7601         * sem_prag.adb: Add significance value to table Sig_Flag for pragma
7602         Implemented_By_Entry.
7603         (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
7604         (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
7605         items, since it can apply to more than one overloadable entity. Set
7606         new flag Has_Pragma_Inline_Always for Inline_Always case.
7607         (Analyze_Pragma, case Complex_Representation): Improve error message.
7608         (Analyze_Pragma, case Assert): When assertions are disabled build the
7609         rewritten code with Sloc of expression rather than pragma, so new
7610         warning about failing is not deleted.
7611         (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
7612         protected types and update error message to reflect that. Test whether
7613         the protected type is allowed for the pragma (an error is issued if the
7614         type has any entries, or components that do not have preelaborable
7615         initialization).
7616         New pragma Fast_Math
7617         (Analyze_Pragma, case No_Return): Handle generic instance
7618
7619         * snames.h, snames.ads, snames.adb: 
7620         Add new predefined name for interface primitive _Disp_Requeue.
7621         New pragma Fast_Math
7622
7623         * a-tags.ads, a-tags.adb: New calling sequence for
7624         String_To_Wide_[Wide_]String
7625         (Secondary_Tag): New subprogram.
7626
7627         * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
7628         from Exp_Attr
7629         New calling sequence for String_To_Wide_[Wide_]String
7630         (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
7631         the use of the secondary stack for image routines.
7632
7633         * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
7634         calling sequence for String_To_Wide_[Wide_]String
7635
7636         * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
7637         Ada 95 mode
7638         (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
7639         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7640
7641         * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
7642         (P_Formal_Part): Use Skipping parameter in P_Pragma call
7643         to improve error recovery
7644
7645         * par-util.adb (Next_Token_Is): New function
7646         (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
7647
7648         * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
7649         semicolon if missing
7650         (P_Pragma): Implement new Skipping parameter
7651         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7652         Fix location of flag for unrecognized pragma message
7653
7654         * par-tchk.adb (U_Left_Paren): New procedure
7655         (U_Right_Paren): New procedure
7656
7657 2007-12-13  Geert Bosch  <bosch@adacore.com>
7658
7659         * a-tifiio.adb: 
7660         (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
7661         the second or later Scaled_Divide would omit leading zeroes,
7662         resulting in too few digits produced and a Layout_Error as result.
7663         (Put): Initialize Pos.
7664
7665 2007-12-13  Robert Dewar  <dewar@adacore.com>
7666
7667         atree.ads, atree.adb (Flag231..Flag247): New functions
7668         (Set_Flag231..Set_Flag247): New procedures
7669         (Basic_Set_Convention): Rename Set_Convention to be
7670         Basic_Set_Convention
7671         (Nkind_In): New functions
7672         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7673
7674         * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
7675         instead
7676          of obsolete function Is_Always_Inlined
7677         (Register_Predefined_DT_Entry): Initialize slots of the second
7678         secondary dispatch table.
7679         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7680         (Expand_N_Function_Call): Remove special provision for stack checking.
7681
7682         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
7683         Include _Disp_Requeue in the list of predefined operations.
7684         (Find_Interface_ADT): Modified to fulfill the new specification.
7685         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7686
7687         * par-ch4.adb, nlists.ads, nlists.adb: 
7688         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7689
7690         * sinfo.ads, sinfo.adb: (Nkind_In): New functions
7691         Fix location of flag for unrecognized pragma message
7692
7693         * sem_ch7.adb: Use Nkind_In
7694
7695 2007-12-13  Vincent Celier  <celier@adacore.com>
7696
7697         * opt.ads: 
7698         Indicate what flags are used by the Project Manager, gprbuild and
7699         gprclean.
7700         (Opt.Follow_Links_For_Dirs): New flag
7701         (Warn_On_Assertion_Failure): New flag
7702         (Wide_Character_Encoding_Method_Specified): New flag
7703         (Suppress_All_Inlining): New switch set by -fno-inline
7704         (Real_VMS_Target): New flag
7705         New pragma Fast_Math
7706
7707 2007-12-13  Robert Dewar  <dewar@adacore.com>
7708
7709         * back_end.adb: Recognize -fno-inline
7710
7711 2007-12-13  Robert Dewar  <dewar@adacore.com>
7712
7713         * checks.adb: Fix optimization problem with short-circuited form
7714
7715 2007-12-13  Bob Duff  <duff@adacore.com>
7716
7717         * clean.adb (Usage): Add line for -aP
7718         (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
7719         with a parameter "procedure Usage", instead of passing a pointer to a
7720         procedure. This is to eliminate trampolines (since the Usage procedure
7721         is often nested in a main procedure, and it would be inconvenient to
7722         unnest it).
7723
7724         * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
7725         to be generic, with a parameter "procedure Callback (...)", instead of
7726         passing a pointer to a procedure. This is to eliminate trampolines
7727         (since the Callback procedure is usually nested).
7728
7729         * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb, 
7730         gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
7731         (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
7732
7733         * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
7734         Use the generic Heap_Sort_G instead of Heap_Sort_A.
7735
7736 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7737
7738         * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
7739         (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
7740         (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
7741         (Renamed_In_Spec): New flag
7742         (Has_Pragma_Inline_Always): New flag
7743         Add missing doc for pragma Obsolescent_Warning
7744         Add missing doc for 17 additional unused flags (230-247)
7745         (Is_Derived_Type): Remove condition "not Is_Generic_Type".
7746         Alphabetize with clauses.
7747         Separate Is_Thunk and Has_Thunks flags
7748         (Write_Entity_Flags): Add forgotten entry for Has_Thunks
7749         (Related_Interface): Renamed to Related_Type.
7750         (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
7751         (Set_Is_Flag): Restrict the assertion.
7752
7753 2007-12-13  Vincent Celier  <celier@adacore.com>
7754
7755         * errout.adb (Output_Source_Line): Do not keep a trailing space after
7756         the source line number if the source line is empty.
7757
7758 2007-12-13  Geert Bosch  <bosch@adacore.com>
7759
7760         * eval_fat.adb (Decompose_Int): Handle argument of zero.
7761         (Compose): Remove special casing of zero.
7762         (Exponent): Likewise.
7763         (Fraction): Likewise.
7764         (Machine): Likewise.
7765         (Decompose): Update comment.
7766
7767 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
7768
7769         * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
7770         limited ancestor part, initialize controllers of enclosing record
7771         before expanding ancestor aggregate.
7772         (Gen_Assign): If a component of the aggregate is box-initialized, add
7773         code to call Initialize if the component is controlled, and explicit
7774         assignment of null if the component is an access type.
7775
7776         Handle properly aggregates for limited types that appear in object
7777         declarations when the aggregate contains controlled values such as
7778         protected types.
7779         When expanding limited aggregates into individual components, do not
7780         call Adjust on controlled components that are limited.
7781
7782 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
7783
7784         * expander.adb: Take into account N_Subprogram_Renaming_Declaration
7785
7786 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7787
7788         * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
7789         predefined primitive _Disp_Requeue.
7790         (Make_Predefined_Primitive_Specs): Create the spec for predefined
7791         primitive _Disp_Requeue.
7792         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
7793         type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
7794         (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
7795         an interface type. In case of limited interfaces we now declare all the
7796         predefined primitives associated with synchronized interfaces as
7797         abstract.
7798         (Predef_Spec_Or_Body): For interface types generate abstract subprogram
7799         declarations.
7800         (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
7801         tagged type is an interface type and there is no user-defined equality
7802         function.
7803         Add also bodies of predefined primitives associated with synchronized
7804         interfaces.
7805         (Freeze_Record_Type): Do not build bodies of predefined primitives of
7806         interface types because they are now defined abstract.
7807         Add missing documentation.
7808         (Expand_Record_Controller): Update occurrence of Related_Interface
7809         to Related_Type.
7810         (Build_Offset_To_Top_Functions): Do nothing in case of VM.
7811         (Expand_N_Object_Declaration): Take into account VM_Target when handling
7812         class wide interface object declaration.
7813         (Expand_Previous_Access_Type): Do not create a duplicate master entity
7814         if the access type already has one.
7815         (Expand_N_Object_Declaration): Defend against attempt to validity check
7816         generic types. Noticed for -gnatVcf specified with previous errors.
7817
7818 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
7819
7820         * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
7821         Expand_Allocator_Expression): Take into account VM_Target
7822
7823         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
7824         secondary stack when VM_Target /= No_VM
7825
7826 2007-12-13  Javier Miranda  <miranda@adacore.com>
7827             Ed Schonberg  <schonberg@adacore.com>
7828
7829         * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
7830         Is_Complation_Unit by Is_Library_Level_Entity in the code
7831         that decides if the static dispatch tables need to be built.
7832         (Wrap_Transient_Declaration): Do not generate a finalization call if
7833         this is a renaming declaration and the renamed object is a component
7834         of a controlled type.
7835
7836 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
7837
7838         * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
7839         In the case where the renamed subprogram is a dereference, call
7840         Force_Evaluation on the prefix.
7841
7842 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7843             Ed Schonberg  <schonberg@adacore.com>
7844
7845         * exp_ch9.adb (Expand_N_Asynchronous_Select,
7846         Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
7847         comment reformatting.
7848         (Set_Privals): Inherit aliased flag from formal. From code reading.
7849         (Build_Simple_Entry_Call): Out parameters of an access type are passed
7850         by copy and initialized from the actual. This includes entry parameters.
7851         (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
7852         and Ada 2005 models of requeue.
7853         (Null_Statements): Still connsider do-end block null if it contains
7854         Unreferenced and Warnings pragmas.
7855         (Expand_N_Accept_Statement): Do not optimize away null do end if
7856         dispatching policy is other than defaulted.
7857         (Expand_N_Timed_Entry_Call): When the triggering statement is a
7858         dispatching call, manually analyze the delay statement.
7859         (Find_Parameter_Type): Move subprogram to Sem_Util.
7860
7861 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7862             Javier Miranda  <miranda@adacore.com>
7863
7864         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
7865         _Disp_Requeue occupies dispatch table slot number 15. Move
7866         _Disp_Timed_Select to slot 16.
7867         (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
7868         generate the spec and body of _Disp_Reqeueue.
7869         (Make_DT): Build and initialize the second dispatch table.
7870         Handle initialization of RC_Offset when the parent
7871         is a private type with variable size components.
7872         (Make_Secondary_DT): Complete documentation. Add support to
7873         initialize the second dispatch table.
7874         (Make_Tags): Generate the tag of the second dispatch table.
7875         (Register_Primitive): Add support to register primitives in the
7876         second dispatch table.
7877
7878 2007-12-13  Pascal Obry  <obry@adacore.com>
7879
7880         * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
7881         Windows. This signal is used by gnatmake to kill child processes for
7882         example.
7883
7884 2007-12-13  Javier Miranda  <miranda@adacore.com>
7885
7886         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
7887         support for generic dispatching constructor calls in which we need to
7888         locate the tag of a secondary dispatch table associated with an
7889         interface type to properly dispatch the call.
7890         (Expand_N_Attribute_Reference [case Address],
7891         Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
7892         handling of VM targets.
7893
7894 2007-12-13  Robert Dewar  <dewar@adacore.com>
7895             Ed Schonberg  <schonberg@adacore.com>
7896
7897         * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
7898         assert fail
7899
7900         * ug_words: Add entries for -gnatw.a -gnatw.A
7901
7902         * sem_res.adb (Set_String_Literal_Subtype): If the context of the
7903         literal is a subtype with non-static constraints, use the base type of
7904         the context as the base of the string subtype, to prevent type
7905         mismatches in gigi.
7906         (Resolve_Actuals): If the actual is an entity name, generate a
7907         reference before the actual is resolved and expanded, to prevent
7908         spurious warnings on formals of enclosing protected operations.
7909         (Analyze_Overloaded_Selected_Component): If type of prefix if
7910         class-wide, use visible components of base type.
7911         (Resolve_Selected_Component): Ditto.
7912         (Resolve_Short_Circuit): Detect case of pragma Assert argument
7913         evaluating to False, and issue warning message.
7914
7915         * usage.adb: Add lines for -gnatw.a and -gnatw.A
7916
7917 2007-12-13  Emmanuel Briot  <briot@adacore.com>
7918
7919         * g-calend.ads (No_Time): New constant, to represent an uninitialized
7920         time value
7921
7922         * g-catiio.ads, g-catiio.adb (Value): Added support for more date
7923         formats.
7924         (Month_Name_To_Number): New subprogram
7925
7926         * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
7927         letter to upper-case.
7928
7929 2007-12-13  Robert Dewar  <dewar@adacore.com>
7930             Ed Schonberg  <schonberg@adacore.com>
7931
7932         * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
7933
7934         * layout.adb (Resolve_Attribute, case 'Access): If designated type of
7935         context is a limited view, use non-limited view when available. If the
7936         non-limited view is an unconstrained array, this enforces consistency
7937         requirements in 3.10.2 (27).
7938         (Layout_Type): For an access type whose designated type is a limited
7939         view, examine its declaration to determine if it is an unconstrained
7940         array, and size the access type accordingly.
7941         (Layout_Type): Do not force 32-bits for convention c subprogram
7942         pointers in -gnatdm mode, only if real vms target.
7943
7944         * sem_attr.adb (Analyze_Access_Attribute): Use new flag
7945         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
7946         (Analyze_Access_Attribute,Attribute_Address): Remove checks for
7947         violations of the No_Implicit_Dynamic_Code restriction.
7948         (Resolve_Attribute, case 'Access): If designated type of context is a
7949         limited view, use non-limited view when available. If the non-limited
7950         view is an unconstrained array, this enforces consistency requirements
7951         in 3.10.2 (27).
7952         (Layout_Type): For an access type whose designated type is a limited
7953         view, examine its declaration to determine if it is an unconstrained
7954         array, and size the access type accordingly.
7955
7956 2007-12-13  Vincent Celier  <celier@adacore.com>
7957
7958         * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
7959         object directory of main project does not exist.
7960         On VMS, correctly set then environment variable for the source
7961         directories.
7962
7963 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
7964
7965         * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
7966         set to True this procedure will create the value of type REG_EXPAND_SZ.
7967         It was only possible to create REG_SZ values before.
7968
7969 2007-12-13  Robert Dewar  <dewar@adacore.com>
7970
7971         * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
7972         g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
7973         namet-sp.adb, namet-sp.ads: New files.
7974
7975         * g-speche.adb: Use generic routine in g-spchge
7976
7977         * s-wchcnv.ads, s-wchcnv.adb: 
7978         Minor code cleanup (make formal type consistent with spec)
7979
7980         * namet.adb: Update comments.
7981
7982         * par-endh.adb (Evaluate_End_Entry): Use new
7983         Namet.Sp.Is_Bad_Spelling_Of function
7984
7985         * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
7986
7987         * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
7988         ancestor is an access type initialized with a box, set its type
7989         explicitly, for use in subsequent expansion.
7990         (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
7991         function
7992
7993 2007-12-13  Robert Dewar  <dewar@adacore.com>
7994
7995         * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
7996         access Vstring)
7997
7998 2007-12-13  Robert Dewar  <dewar@adacore.com>
7999
8000         * inline.adb (Back_End_Cannot_Inline): Use new flag
8001         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
8002
8003         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
8004         Has_Pragma_Inline_Always instead.
8005         of obsolete function Is_Always_Inlined
8006         (Build_Body_To_Inline): Same change
8007         (Cannot_Inline): Same change
8008         Do not give warning on exception raise in No_Return function
8009
8010         * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
8011         component has two inconsistent component clauses in the same record
8012         representation clause, favor the message that complains about
8013         duplication rather than inconsistency.
8014         Update comments.
8015         (Record_Representation_Clause): Do not warn on missing component
8016         clauses for inherited components of a type extension.
8017         (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
8018         an overloadable item if it is a pragma that can apply to multiple
8019         overloadable entities (e.g. Inline) because a pragma cannot be on
8020         more than one chain at a time.
8021         (Validate_Unchecked_Conversion): Add code to warn on unchecked
8022         conversion where one of the operands is Ada.Calendar.Time.
8023         (Analyze_Attribute_Definition_Clause): Fix typo in error message.
8024         For now, ignore Component_Size clause on VM targets, as done for
8025         pragma Pack.
8026
8027 2007-12-13  Emmanuel Briot  <briot@adacore.com>
8028             Vincent Celier  <celier@adacore.com>
8029
8030         * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
8031         string
8032         (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
8033         prj.ads
8034         (Hash): Move instantiation of System.HTable.Hash from spec to body
8035         (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
8036         systems, since we do not need to recompute the Name_Id for the canonical
8037         file name.
8038         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
8039         as a parameter. This parameter is in fact always "ada" in all calls, and
8040         we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
8041         while loading a project with 40000 files
8042
8043         * prj-attr.adb: Fix name of attribute Dependency_Driver
8044         Change the kind of indexing for attribute Root
8045
8046         * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
8047         variables already declared, in case constructions.
8048
8049         * prj-env.adb (Initialize): Reset Current_Source_Path_File and
8050         Current_Object_Path_File to No_Path.
8051
8052         * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
8053         ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
8054
8055         * prj-makr.adb: new parameter Current_Dir
8056
8057         * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
8058         Ada sources when language is not Ada.
8059         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
8060         (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
8061         (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
8062         (Locate_Directory): Always resolve links when computing Canonical_Path
8063         (Look_For_Sources): Make sure that Name_Buffer contains the file name
8064         in Source_Files before checking for the presence of a directory
8065         separator.
8066         Optimize calls to Name_Find when on case sensitive systems.
8067         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
8068         as a parameter.
8069         (Prj.Nmsc.Check): new parameter Current_Dir
8070         (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
8071         cannot be empty and the spec suffix cannot be the same as the body or
8072         separate suffix.
8073         (Get_Unit): When a file name can be of several unit kinds (spec, body or
8074         subunit), always consider the longest suffix.
8075         (Check_Configuration): Do not issue an error if there is no compiler
8076         for a language. Just issue a warning and ignore the sources for the
8077         language.
8078         (Check_Library_Attributes): Only check Library_Dir if Library_Name is
8079         not empty.
8080         (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
8081         (Unit_Exceptions): New hash table
8082         (Check_Naming_Schemes): Check if a file that could be a unit because of
8083         the naming scheme is not in fact a source because there is an exception
8084         for the unit.
8085         (Look_For_Sources): Put the unit exceptions in hash table
8086         Unit_Exceptions
8087         (Get_Unit_Exceptions): Give initial value No_Source to local variable
8088         Other_Part to avoid exception when code is compiled with validity
8089         checking.
8090         (Get_Sources_From_File): Check that there is no directory information
8091         in the file names.
8092         (Look_For_Sources): Check that there is no directory information in the
8093         list of file names in Source_Files.
8094         (Look_For_Sources): In multi-language mode, do not allow exception file
8095         names that are excluded.
8096         (Excluded_Sources_Htable): New hash table
8097         (Search_Directories.Check_File): New procedure to simplify
8098         Search_Directories.
8099         (Search_Directories): Do not consider excluded sources
8100         (Look_For_Sources): Populate Excluded_Sources_Htable before calling
8101         Search_Directories.
8102         (Get_Exceptions): Set component Lang_Kind of Source_Data
8103         (Get_Unit_Exceptions): Ditto
8104         (Search_Directories): Ditto
8105
8106         * prj-pars.adb: new parameter Current_Dir
8107
8108         * prj-part.ads, prj-part.adb: 
8109         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
8110         (Opt.Follow_Links_For_Dirs): New flag
8111         (Project_Path_Name_Of): Cache information returned by this routine as
8112         Locate_Regular_File is a costly routine. The code to output a log
8113         information and the effective call to Locate_Regular_File is now
8114         factorized into a routine (code clean-up).
8115         (Parse, Parse_Single_Project): new parameter Current_Dir
8116         When main project file cannot be found, indicate in the error
8117         message the project path that was used to do the search.
8118
8119         * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
8120         (Prj.Proc.Process*): new parameter Current_Dir
8121
8122         * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
8123
8124 2007-12-13  Bob Duff  <duff@adacore.com>
8125
8126         * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
8127         procedure to be called from the back end to check the
8128         No_Implicit_Dynamic_Code restriction.
8129
8130 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
8131
8132         * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
8133         Fixes another case where RTE_Available_Call was ignored instead of being
8134         taken into account.
8135         (Load_Fail): Ditto.
8136
8137         * rtsfind.ads: Add new entries.
8138
8139 2007-12-13  Robert Dewar  <dewar@adacore.com>
8140
8141         * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
8142         g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
8143
8144         * scn.adb: Implement BOM recognition
8145
8146 2007-12-13  Thomas Quinot  <quinot@adacore.com>
8147             Ed Schonberg  <schonberg@adacore.com>
8148
8149         * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
8150         subprogram body that acts as its own spec may not have a non-private
8151         WITH clause on a private sibling.
8152         (Build_Unit_Name): If the parent unit in the name in a with_clause on a
8153         child unit is a renaming, create an implicit with_clause on that
8154         parent, and not on the unit it renames, to prevent visibility errors
8155         in the current unit.
8156
8157 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
8158
8159         * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
8160         renaming declaration, use the Slocs of the formal parameters from the
8161         declaration of the formal subprogram when creating the formal parameter
8162         entities in the renaming declaration.
8163         (Analyze_Formal_Type_Declaration): Change the placement of the error
8164         message concerning illegal known discriminants. It is now posted on the
8165         type rather than on the first discriminant. This change ensures early
8166         error report.
8167         (Freeze_Subprogram_Body): If the generic subprogram is nested within
8168         the package body that contains the instance, do not generate an
8169         out-of-place freeze node for the enclosing package.
8170         (Collect_Previous_Instantiations): Ignore internal instantiations
8171         generated for formal packages.
8172         (Validate_Derived_Type_Instance): Add a check that when a formal
8173         derived type is Known_To_Have_Preelab_Init then the actual type must
8174         have preelaborable initialization, and issue an error when this
8175         condition is violated.
8176
8177 2007-12-13  Robert Dewar  <dewar@adacore.com>
8178
8179         * s-imenne.adb, s-imenne.ads: New files.
8180
8181         * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb, 
8182         s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb, 
8183         s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads, 
8184         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb, 
8185         s-imgwch.ads: New calling sequence for Image routines to avoid sec
8186         stack usage.
8187
8188 2007-12-13  Javier Miranda  <miranda@adacore.com>
8189             Ed Schonberg  <schonberg@adacore.com>
8190
8191         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
8192         generation of spurious error if parent is an interface type; caused
8193         because predefined primitive bodies will be generated later by
8194         Freeze_Record_Type.
8195         (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
8196         flag.
8197         (Derive_Subprograms): Handle derivations of predefined primitives
8198         after all the user-defined primitives to ensure that they are
8199         found in proper order in instantiations.
8200         (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
8201         of Related_Interface to Related_Type.
8202         (Record_Type_Declaration): Minor reordering of calls to decorate the
8203         Tag component because the entity must have set its Ekind attribute
8204         before setting its Is_Tag attribute.
8205         (Analyze_Subtype_Declaration): In the case of subtypes with
8206         Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
8207
8208 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8209             Ed Schonberg  <schonberg@adacore.com>
8210
8211         * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
8212         statement to the list of contexts where a selected component with a
8213         concurrent tagged type prefix should yield a primitive operation.
8214         (Find_Primitive_Operation): Handle case of class-wide types.
8215         (Analyze_Overloaded_Selected_Component): If type of prefix is
8216         class-wide, use visible components of base type.
8217         (Resolve_Selected_Component): Ditto.
8218         (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
8219         formal of a generic subprogram. find candidate interpretations by
8220         scanning the list of generic formal declarations.:
8221         (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
8222         type from a limited_with_clause, and the full view is available, use it
8223         for subsequent semantic checks.
8224         (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
8225         (Find_Primitive_Operation): New function.
8226         (Analyze_Overloaded_Selected_Component): insert explicit dereference
8227         only once if several interpretations of the prefix yield an access type.
8228         (Try_Object_Operation): Code and comment cleanup.
8229         (Analyze_Selected_Component): Reorder local variables. Minot comment and
8230         code reformatting. When the type of the prefix is tagged concurrent, a
8231         correct interpretation might be available in the primitive and
8232         class-wide operations of the type.
8233
8234 2007-12-13  Robert Dewar  <dewar@adacore.com>
8235             Ed Schonberg  <schonberg@adacore.com>
8236
8237         * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
8238         renaming entry as subprogram using rename-as-body if subprogram spec
8239         frozen.
8240         (Use_One_Type): The clause is legal on an access type whose designated
8241         type has a limited view.
8242         (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
8243         (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
8244         (Analyze_Renamed_Primitive_Operation): new procedure to determine the
8245         operation denoted by a selected component.
8246         (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
8247         it can be an expression, possibly overloaded, that returns a task or
8248         an access to one.
8249
8250 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8251             Gary Dismukes  <dismukes@adacore.com>
8252
8253         * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
8254         requeue statement is dispatching. Do not emit an error when the name is
8255         not an entry and the context is a dispatching select. Add code to
8256         perform subtype conformance between the formals of the current entry
8257         and those of the target interface primitive.
8258         (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
8259         Timed_Entry_Call): Analyze the triggering statement as the first step of
8260         the processing. If this is a dispatching select, postpone the analysis
8261         of all select statements until the Expander transforms the select. This
8262         approach avoids generating duplicate identifiers after the Expander has
8263         replicated some of the select statements. In case the Expander is
8264         disabled, perform regular analysis.
8265         (Check_Triggering_Statement): New routine.
8266         (Analyze_Requeue): Exclude any interpretations that are not entries when
8267         checking overloaded names in a requeue. Also test type conformance for
8268         matching interpretations rather than requiring subtype conformance at
8269         that point to conform with the RM's resolution rule for requeues.
8270
8271 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
8272
8273         * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
8274         inherited operation is a defaulted tag-indeterminate call, and there is
8275         a statically tagged actual, use the static tag as a controlling actual
8276         for the defaulted actual.
8277
8278 2007-12-13  Geert Bosch  <bosch@adacore.com>
8279
8280         * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
8281         context, so do not call Check_Non_Static_Context.
8282
8283 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
8284
8285         * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
8286         whether formal E is an entity which may have parameters.
8287
8288 2007-12-13  Bob Duff  <duff@adacore.com>
8289             Javier Miranda  <miranda@adacore.com>
8290             Robert Dewar  <dewar@adacore.com>
8291
8292         * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
8293         (Set_Convention): New procedure to set the Convention flag, and in
8294         addition make sure the Favor_Top_Level flag is kept in sync (all
8295         foreign-language conventions require Favor_Top_Level = True).
8296         (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
8297         to Related_Type.
8298         (Collect_Interfaces_Info): Minor update to handle the two secondary
8299         dispatch tables. Update occurrence of Related_Interface to Related_Type.
8300         (Generate_Parent_Ref): Add parameter to specify entity to check
8301         (Is_Preelaborable_Expression): Allow the name of a discriminant to
8302         initialize a component of a type with preelaborable initialization.
8303         This includes the case of a discriminal used in such a context.
8304         (Is_Dependent_Component_Of_Mutable_Object): Take into account the
8305         latest Ada 2005 rules about renaming and 'Access of
8306         discriminant-dependent components.
8307         (Check_Nested_Access): Add handling when there are no enclosing
8308         subprograms (e.g. case of a package body).
8309         (Find_Parameter_Type): Factor routine from several other compiler files.
8310         Remove routine from Find_Overridden_Synchronized_Primitive.
8311
8312 2007-12-13  Thomas Quinot  <quinot@adacore.com>
8313
8314         * sinput.adb (Get_Source_File_Index): Add assertion to guard against
8315         an invalid access to an uninitialized slot in the
8316         Source_File_Index_Table.
8317
8318 2007-12-13  Thomas Quinot  <quinot@adacore.com>
8319
8320         * sinput-l.adb (Load_File): Disable style checks when preprocessing.
8321
8322 2007-12-13  Bob Duff  <duff@adacore.com>
8323
8324         * s-soflin.ads: Apply new pragma Favor_Top_Level to all
8325         access-to-subprogram types in this package.
8326
8327 2007-12-13  Olivier Hainque  <hainque@adacore.com>
8328
8329         * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
8330         with Stack_Grows_Down in System.Parameters. Rename Array_Address into
8331         Stack_Overlay_Address and document that we are using an internal
8332         abstraction.
8333         (Byte_Size, Unsigned_32_Size): Remove, now useless.
8334         (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
8335         consistently throughout the various implementation pieces.
8336
8337         * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
8338         overlay we are using to fill the stack area with patterns.
8339         (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
8340         (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
8341         (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
8342
8343 2007-12-13  Robert Dewar  <dewar@adacore.com>
8344
8345         * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
8346
8347 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
8348
8349         * s-tassta.adb: 
8350         (Create_Task): Take into account tasks created by foreign threads.
8351         Code clean up: use constants instead of hard coded values.
8352
8353 2007-12-13  Robert Dewar  <dewar@adacore.com>
8354
8355         * styleg.adb (Check_Comment): More liberal rules for comment placement
8356
8357 2007-12-13  Olivier Hainque  <hainque@adacore.com>
8358
8359         * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
8360         of Procedure Value instead of Frame Pointer as the invocation
8361         identifier associated with the instruction pointer in each traceback
8362         entry.
8363
8364         * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
8365         TB_Entry_For): Revert back to use of Procedure Value instead of Frame
8366         Pointer as the invocation identifier passed to tbk$symbolize.
8367
8368         * s-traent-vms.ads, s-traent-vms.adb
8369         (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
8370         Procedure Value instead of Frame Pointer as the invocation identifier
8371         passed to tbk$symbolize.
8372
8373 2007-12-13  Robert Dewar  <dewar@adacore.com>
8374
8375         * tbuild.ads, tbuild.adb: 
8376         Fix location of flag for unrecognized pragma message
8377
8378 2007-12-13  Robert Dewar  <dewar@adacore.com>
8379
8380         * treepr.ads, treepr.adb: (pl): implement use of positive value
8381         shorthands
8382
8383 2007-12-13  Robert Dewar  <dewar@adacore.com>
8384
8385         * xeinfo.adb: Remove warnings
8386         * xnmake.adb: Remove warnings
8387         * xsinfo.adb: Remove warnings
8388         * xtreeprs.adb: Remove warnings
8389         * xsnames.adb: Remove warnings
8390
8391         * a-ngcoar.adb: Fix typo.
8392         * s-interr.adb: Minor reformatting
8393         * env.c: Minor reformatting.
8394         * g-bytswa.adb: Minor reformatting.
8395         * g-rannum.ads: Minor documentation improvements
8396         * s-tasinf-mingw.adb: Minor header fix
8397         * a-clrefi.adb: Minor reformatting
8398         * g-sttsne.ads: Minor documentation improvement
8399         * g-sttsne-locking.ads: Minor documentation improvement
8400         * g-soliop-solaris.ads: Minor documentation improvement
8401         * g-soliop-mingw.ads: Minor documentation improvement
8402         * g-soliop.ads: Minor documentation improvement
8403         * exp_aggr.ads: Minor reformatting
8404         * debug.adb: Add documentation for the gprbuild debug flags
8405         * exp_ch2.adb: Use Nkind_In to simplify code throughout
8406         * exp_pakd.adb: Minor reformatting
8407
8408         * g-altive.ads, g-alleve.adb: Remove assertions.
8409         Add comment about minor differences between targets regarding
8410         floating-point operations.
8411
8412         * g-thread.adb: Remove pragma unreferenced.
8413         * lib.ads: Minor reformatting
8414         * par-ch9.adb: Minor reformatting of error messages
8415         * sem_case.adb: Minor reformatting
8416         * s-fileio.adb: Minor reformattinng
8417         * s-vmexta.ads: Minor typo
8418         * vxaddr2line.adb: 
8419         Take into account 'Success' value as per new GNAT warning.
8420
8421 2007-12-13  Vincent Celier  <celier@adacore.com>
8422
8423         * a-direct.adb (Create_Path): Always take '/' as a directory separator,
8424         even on Windows
8425
8426 2007-12-13  Robert Dewar  <dewar@adacore.com>
8427             Bob Duff  <duff@adacore.com>
8428
8429         * gnat_ugn.texi: Dcoument new rules for style check comment alignment
8430         Document that suffixes may be terminations of each others
8431         Add doc for -gnatw.a and -gnatw.A
8432         Document gnatbind -Wx switch
8433         Document BOM recognition
8434         Document pragma Implemented_By_Entry.
8435         Document new units.
8436
8437         * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
8438         Add doc for pragma Unreferenced suppressing no entities referenced msg
8439         Add documentation of GNAT.Directory_Operations.Iteration
8440         Add documentation of GNAT.Random_Numbers
8441         Add documentation for pragma Shared.
8442         Correct documentation for Bit_Order
8443         Add documentation for the Pool_Address attribute.
8444         Fix and improve documentation of pragma machine_attribute.
8445         New pragma Fast_Math
8446         Document BOM recognition
8447
8448         * vms_data.ads: Add entries for -gnatw.a -gnatw.A
8449         Add /Wide_Character_Encoding for binder
8450         Add qualifier for the new gnatpp option --no-separate-loop-then
8451
8452 2007-12-13  Matthew Heaney  <heaney@adacore.com>
8453
8454         * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
8455         which generic formal operations are called for each operation.
8456
8457 2007-12-13  Olivier Hainque  <hainque@adacore.com>
8458
8459         * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
8460         (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
8461
8462 2007-12-13  Emmanuel Briot  <briot@adacore.com>
8463
8464         * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
8465         Reference_Dir unless we actually need it.
8466
8467 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
8468             Tristan Gingold  <gingold@adacore.com>
8469
8470         * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
8471
8472         * s-osprim-vms.adb,
8473         a-calend-vms.adb: Remove pragma warning off and add pragma
8474         unreferenced.
8475
8476 2007-12-13  Robert Dewar  <dewar@adacore.com>
8477
8478         * impunit.adb: Add entries for missing units
8479
8480         * Makefile.rtl: Add new run-time units.
8481
8482         * Make-lang.in:  Update dependencies.
8483
8484 2007-12-13  Bob Duff  <duff@adacore.com>
8485
8486         * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
8487         types, set Can_Use_Internal_Rep appropriately, based on
8488         Always_Compatible_Rep_On_Target.
8489
8490 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
8491             Arnaud Charlet  <charlet@adacore.com>
8492
8493         * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
8494         it to the front end and setting the aamp_target environment variable
8495         to the switch's argument to ensure that gnaampbind and gnaamplink will
8496         take the specified library into account.
8497         (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
8498         target, since the CIL compiler supports an "object" file (.il files).
8499
8500 2007-12-13  Vincent Celier  <celier@adacore.com>
8501
8502         * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
8503         (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
8504
8505 2007-12-13  Geert Bosch  <bosch@adacore.com>
8506
8507         * s-parame-vxworks.adb: 
8508         Update comments to reflect usage of this package by Nucleus.
8509
8510 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
8511
8512         * i-vxwork.ads: Kill new warning on Convention C, since changing the
8513         spec would break code.
8514
8515         * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
8516
8517         * system-vxworks-alpha.ads: Removed.
8518
8519 2007-12-10  Eric Botcazou  <ebotcazou@adacore.com>
8520
8521         * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
8522
8523 2007-12-09  Samuel Tardieu  <sam@rfc1149.net>
8524
8525         PR ada/34366
8526         * sem_ch3.adb (Designates_T): New function.
8527         (Mentions_T): Factor reusable part of the logic into Designates_T.
8528         Consider non-access parameters and access and non-access result.
8529         (Check_Anonymous_Access_Components): Set ekind of anonymous access to
8530         E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
8531
8532         * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
8533
8534 2007-12-07  Ludovic Brenta  <ludovic@ludovic-brenta.org>
8535
8536         PR ada/34361
8537         * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
8538         the new implementation of target-specific calls.
8539
8540 2007-12-07  Olivier Hainque  <hainque@adacore.com>
8541
8542         * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
8543         the designated full view, only follow a second level Full_View link
8544         for Non_Limited_Views of from_limited_with references.
8545         
8546 2007-12-07  Samuel Tardieu  <sam@rfc1149.net>
8547
8548         PR ada/15805
8549         * sem_ch6.adb (Process_Formals): Prevent an access type formal
8550         to be initialized with an access to constant object.
8551
8552         * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
8553         when an access to constant is used to initialize an access
8554         value.
8555
8556         PR ada/21346
8557         * a-direct.adb (Compose): Containing_Directory can be an empty string.
8558
8559 2007-12-07  Olivier Hainque  <hainque@adacore.com>
8560
8561         PR ada/34173
8562         * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
8563         the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
8564         this is from an alignment clause on the GNAT entity.
8565         * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
8566         to distinguish the case where we set it from the type's alignment.
8567         When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
8568         whether this alignment was set from an explicit alignment clause.
8569
8570 2007-12-06  Eric Botcazou  <ebotcazou@adacore.com>
8571
8572         * decl.c (make_packable_type): Revert last change.
8573         (gnat_to_gnu_field): Avoid setting size and position multiple times.
8574         * utils.c (finish_record_type): Retrieve the real name of the type.
8575
8576 2007-12-05  Eric Botcazou  <ebotcazou@adacore.com>
8577
8578         * trans.c (lvalue_required_p): Take base node directly instead
8579         of its parent.  Rename second parameter to 'gnu_type'.
8580         <N_Indexed_Component>: Return 0 if the node isn't the prefix.
8581         <N_Slice>: Likewise.
8582         (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
8583         Adjust calls to lvalue_required_p.
8584
8585 2007-12-05  Samuel Tardieu  <sam@rfc1149.net>
8586
8587         PR ada/21489
8588         * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
8589         parameters of an entry call.
8590
8591 2007-12-03  Robert Dewar  <dewar@adacore.com>
8592             Samuel Tardieu  <sam@rfc1149.net>
8593
8594         PR ada/34287
8595         * sem_util.adb (Safe_To_Capture_Value): Do not capture values
8596         of variables declared in a library-level package.
8597     
8598 2007-12-02  Samuel Tardieu  <sam@rfc1149.net>
8599
8600         * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
8601         of Empty_String'Unchecked_Access.
8602
8603         * Makefile.in: Add support for sh4-linux.
8604
8605         * system-linux-sh4.ads: New file.
8606
8607 2007-12-01  Kostik Belousov  <kostikbel@ukr.net>
8608
8609         PR ada/33722
8610         * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
8611         and its argument must not be free()ed.
8612
8613 2007-11-29  Eric Botcazou  <ebotcazou@adacore.com>
8614
8615         * decl.c (make_packable_type): Retrieve the real name of the type.
8616         (maybe_pad_type): Simplify similar code.
8617
8618 2007-11-28  Samuel Tardieu  <sam@rfc1149.net>
8619
8620         PR ada/15804
8621         * par-ch3.adb (P_Variant_Part): Signal an error when anything other
8622         than an identifier is used after "case" in a variant_part.
8623
8624         PR ada/17318
8625         * par-ch4.adb (Is_Parameterless_Attribute): New map.
8626         (P_Name, Scan_Apostrophe block): Parse left parenthesis following
8627         attribute name or not depending on the new map.
8628
8629         * sem-attr.adb (Analyze_Attribute): Parameterless attributes
8630         returning a string or a type will not be called with improper
8631         arguments.
8632
8633         * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
8634
8635         * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
8636
8637         PR ada/32792
8638         * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
8639         Signal an error when attribute argument is a fixed-point value of
8640         an unknown type.
8641
8642         PR ada/22559
8643         * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
8644         a derived ordinary fixed point type.
8645
8646         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
8647         RM_Size when a Small clause is found.
8648
8649 2007-11-26  Andreas Krebbel  <krebbel1@de.ibm.com>
8650
8651         PR 34081/C++
8652         * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
8653         Pass 'false' for the new allocate_struct_function parameter.
8654         * utils.c (build_function_stub): Likewise.
8655
8656 2007-11-25  Richard Guenther  <rguenther@suse.de>
8657
8658         * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
8659         (gnat_poplevel): Likewise.
8660
8661 2007-11-25  Eric Botcazou  <ebotcazou@adacore.com>
8662
8663         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
8664         strict alignment, no alignment clause and a known static size, cap
8665         the type alignment to the greatest power of 2 factor of the size.
8666         (gnat_to_gnu_field): If the field has a component clause, is aliased
8667         or of a type with strict alignment, require that its size be equal to
8668         that of the type.
8669         (validate_size): Use the type size as the minimum size for a type with
8670         strict alignment.
8671
8672 2007-11-23  Samuel Tardieu  <sam@rfc1149.net>
8673
8674         * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
8675         s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
8676         s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
8677         Use 'Access instead of 'Unchecked_Access in second and third
8678         arguments of pthread_sigmask.
8679
8680 2007-11-23  Eric Botcazou  <ebotcazou@adacore.com>
8681
8682         * decl.c (ceil_alignment): New function.
8683         (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
8684         (make_packable_type): Likewise.
8685
8686 2007-11-22  Olivier Hainque  <hainque@adacore.com>
8687
8688         * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
8689         to fit in 80 columns.
8690
8691 2007-11-21  Aurelien Jarno  <aurelien@aurel32.net>
8692
8693         * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
8694         * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
8695
8696 2007-11-19  Eric Botcazou  <ebotcazou@adacore.com>
8697
8698         PR ada/34098
8699         * misc.c (gnat_adjust_rli): Delete.
8700         (gnat_init): Do not initialize the translation code here.
8701         Do not call set_lang_adjust_rli.
8702         * trans.c (init_code_table): Make static.
8703         (gnat_init_stmt_group): Delete.
8704         (gigi): Initialize the translation code entirely here.
8705         Emit debug info for the common types here instead of...
8706         * utils.c (gnat_init_decl_processing): ...here.
8707         * gigi.h (init_code_table): Delete.
8708         (gnat_init_stmt_group): Likewise.
8709
8710 2007-11-16  Olivier Hainque  <hainque@adacore.com>
8711
8712         * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
8713         retrieving an allocator return value from a super-aligned address from
8714         here to ...
8715         * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
8716         expect a super-aligned address for a fat or thin pointer.
8717         
8718 2007-11-14  Eric Botcazou  <ebotcazou@adacore.com>
8719
8720         * trans.c (call_to_gnu): Always set the source location on the call
8721         expression.  If the function returns-by-target, also set it on the
8722         address expression.
8723
8724 2007-11-14  Samuel Tardieu  <sam@rfc1149.net>
8725
8726         * adaint.c, init.c, initialize.c, link.c: Remove system-specific
8727         sections of non-supported Interix target.
8728
8729         * s-osinte-interix.ads: Removed.
8730
8731         * i-cstrin.ads (chars_ptr): Make it a C convention type.
8732
8733 2007-11-13  Samuel Tardieu  <sam@rfc1149.net>
8734
8735         * a-tasatt.adb: Add a comment at the beginning of the package
8736         explaining why in general 'Unchecked_Access must be used instead
8737         of 'Access.
8738
8739         * sem_prag.adb (Process_Convention): Move the test for the
8740         entity on which the Convention pragma applies down to also
8741         forbid pragma Convention on enumeration literals reached
8742         through renamings.
8743
8744 2007-11-10  Samuel Tardieu  <sam@rfc1149.net>
8745
8746         * a-tasatt.adb: Revert previous change for this file as it will
8747         generate an error when this package is instantiated from a
8748         local context.
8749
8750 2007-11-07  Samuel Tardieu  <sam@rfc1149.net>
8751
8752         * a-tasatt.adb: Type Wrapper should be declared in comment instead
8753         of already declared type Node_Access.
8754         Use 'Access instead of 'Unchecked_Access when applicable. Local
8755         lifetime is the one of the package.
8756         (Set_Value): W is allocated on the heap.
8757
8758         * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
8759         applicable.
8760         (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
8761         access type.
8762         (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
8763         access type.
8764
8765         * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
8766         applicable.
8767         (elaboration code): Timer_Queue lifetime is the one of the
8768         package.
8769
8770         * tracebak.c (i386 alternative): Remove useless comparaison
8771         which is always false; LOWEST_ADDRESS is 0 and is never greater
8772         than an unsigned integer.
8773
8774         * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
8775         embedded check for "Ada_Version >= Ada_05".
8776
8777 2007-11-07  Olivier Hainque  <hainque@adacore.com>
8778
8779         * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
8780         craft and expand comment.
8781
8782 2007-11-01  Eric Botcazou  <ebotcazou@adacore.com>
8783
8784         * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
8785
8786 2007-10-23  Eric Botcazou  <ebotcazou@adacore.com>
8787
8788         * misc.c (gnat_handle_option): Replace call to abort with
8789         call to gcc_unreachable.
8790         (gnat_init): Likewise.
8791         (gnat_expand_expr): Likewise.
8792         (fp_prec_to_size): Likewise.
8793         (fp_size_to_prec): Likewise.
8794
8795 2007-10-23  Richard Guenther  <rguenther@suse.de>
8796
8797         PR bootstrap/33608
8798         * tracebak.c: #undef abort after including system.h.
8799
8800 2007-10-20  Danny Smith  <dannysmith@users.sourceforge.net>
8801
8802         * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
8803         s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
8804         for win32 targets.
8805         (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
8806
8807 2007-10-15  Eric Botcazou  <ebotcazou@adacore.com>
8808
8809         * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
8810         Set the protection status of the guard page based on the value of On.
8811
8812         * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
8813
8814         * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
8815         (Exit_Task): Pass False to Hide_Yellow_Zone.
8816
8817 2007-10-15  Robert Dewar  <dewar@adacore.com>
8818
8819         * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
8820         s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
8821         a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb, 
8822         checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb, 
8823         freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb, 
8824         gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb, 
8825         mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb, 
8826         prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb, 
8827         sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb, 
8828         s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
8829         uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb, 
8830         a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb, 
8831         a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb, 
8832         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb, 
8833         a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb, 
8834         a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
8835         Minor reformatting.
8836         Add Unreferenced and Warnings (Off) pragmas for cases of
8837         variables modified calls where they are IN OUT or OUT parameters and
8838         the resulting values are not subsequently referenced. In a few cases,
8839         we also remove redundant code found by the new warnings.
8840
8841         * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads, 
8842         sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
8843         sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
8844         sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
8845         warning controlled by -gnatw.o that warns on cases of out parameter
8846         values being ignored.
8847
8848 2007-10-15  Geert Bosch  <bosch@adacore.com>
8849
8850         * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
8851
8852         * expect.c: Initial port to arm-mentor-nucleus.
8853         Use kill for __gnat_kill() on VMS.
8854
8855 2007-10-15  Emmanuel Briot  <briot@adacore.com>
8856
8857         * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
8858         value.
8859         (Xref_Record): Change type for Line, since in the case of a reference to
8860         a predefined entity (as happens for array index types), the line is set
8861         to 0.
8862         Add support for parsing multiple array index types info, or
8863         multiple inherited interfaces info. This information cannot be stored
8864         in Xref_Entity_Record, which only supports a single instance of Tref_*,
8865         and is therefore stored in the list of references instead. It has a
8866         special treatement later on in tools that use this information.
8867
8868 2007-10-15  Tristan Gingold  <gingold@adacore.com>
8869
8870         * debug.adb: Document use of -gnatd.a and -gnatd.I
8871
8872         * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
8873
8874 2007-10-15  Javier Miranda  <miranda@adacore.com>
8875
8876         * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
8877         Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
8878         care of access to class-wide interface types plus removal of bizarre
8879         conversion of tagged object to access type (reported by Gary
8880         Dismukes). After this patch there is no need to perform any
8881         additional management on these nodes in Expand_Interface_Actuals.
8882
8883         * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
8884         that handles use of 'Access and 'Unchecked_Access applied to
8885         actuals covering interface types. Such code is now
8886         centralized in Expand_N_Attribute_Reference.
8887
8888 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
8889
8890         * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
8891         of tagged types whose ultimate ancestor is a CPP type.
8892         (Freeze_Array_Type): For a packed array type, generate an initialization
8893         procedure if the type is public, to handle properly a client that
8894         specifies Normalize_Scalars.
8895
8896 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
8897
8898         * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
8899         inside a generic body, retrieve the full view of the entry family
8900         discrete subtype if available.
8901
8902 2007-10-15  Thomas Quinot  <quinot@adacore.com>
8903
8904         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
8905         attempt to generate stubs for hidden primitive operations.
8906
8907 2007-10-15  Vincent Celier  <celier@adacore.com>
8908
8909         * mlib-tgt-specific.adb (Support_For_Libraries): New function,
8910         returning None, used when there is no platform specific body for
8911         MLib.Tgt.Specific.
8912
8913 2007-10-15  Bob Duff  <duff@adacore.com>
8914
8915         * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
8916         (passing'Unrestricted_Access of nested subprograms to Sort) with use of
8917         the generic Heap_Sort_G, in order to avoid trampolines.
8918
8919 2007-10-15  Vasiliy Fofanov  <fofanov@adacore.com>
8920             Jose Ruiz  <ruiz@adacore.com>
8921
8922         * vx_stack_info.c: New file.
8923
8924         * i-forbla-unimplemented.ads: New file.
8925
8926         * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
8927         for unsupported configurations; use it on VMS targets instead of the
8928         real one.
8929         (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
8930         vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
8931         used by VxWorks targets to have access to task-specific data and be
8932         able to extract the stack boundaries for stack checking.
8933         Use system-vms-ia64.ads on ivms.
8934
8935         * Make-lang.in: Update dependencies.
8936
8937         * sysdep.c (__gnat_get_stack_info): Move to a standalone file
8938         (vx_stack_info.c).
8939
8940 2007-10-15  Vincent Celier  <celier@adacore.com>
8941
8942         * snames.adb, snames.ads: Add new standard name runtime_library_dir
8943
8944         * prj.ads (Language_Config): Add new component Runtime_Library_Dir
8945
8946         * prj-attr.adb: Add project level attribute Runtime_Library_Dir
8947
8948         * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
8949         the source is unknown.
8950
8951         * prj-ext.adb: Spelling error fix
8952
8953         * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
8954         95 reserved word in its name.
8955         (Process_Project_Level_Array_Attributes): Process new attribute
8956         Runtime_Library_Dir.
8957
8958         * prj-part.adb (Parse_Single_Project): Do not check the name of the
8959         config project against the user project names.
8960
8961         * prj-proc.adb (Expression): In multi-language mode, indexes that do
8962         not include a dot are always case insensitive.
8963         (Process_Declarative_Items): Ditto
8964         (Process_Project_Tree_Phase_1): Set Success to False in case an error is
8965         detected.
8966
8967         * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
8968         True, compare both indexes in lower case.
8969
8970 2007-10-15  Robert Dewar  <dewar@adacore.com>
8971
8972         * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
8973
8974 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
8975
8976         * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
8977         association for an access component, add an association with null as
8978         the expression. Remove testing for array subtypes and the setting in
8979         that case of Ctyp to the array component type, which prevented proper
8980         inclusion of an association for null-initialized arrays. Collapse
8981         condition that tests for array subtypes into just a test of
8982         Is_Partially_Initialized_Type (which already covers arrays anyway).
8983
8984 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
8985
8986         * sem_ch12.adb: Minor code reformatting.
8987         (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
8988         find the parent package which may have been hidden by local
8989         declarations.
8990
8991 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
8992
8993         * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
8994         flag of derived concurrent types, taking into account the flag setting
8995         on the parent subtype and any new set of discriminants.
8996
8997 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
8998
8999         * sem_ch4.adb: Minor code and comment reformatting.
9000         (Analyze_Allocator): When the designated type of an unconstrained
9001         allocator is a record with unknown discriminants or an array with
9002         unknown range bounds, emit a detailed error message depending on the
9003         compilation mode and whether the designated type is limited.
9004
9005 2007-10-15  Tristan Gingold  <gingold@adacore.com>
9006
9007         * system-vms-ia64.ads: New file.
9008
9009         * system-vms_64.ads: Minor comment fix.
9010
9011 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
9012
9013         * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
9014         body generated for a function with a controlling result that is a null
9015         extension, discard the generated body in favor of the current explicit
9016         one.
9017
9018 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
9019
9020         * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
9021         examining its original form, to handle properly operator calls that
9022         have been rewritten.
9023
9024 2007-10-15  Olivier Hainque  <hainque@adacore.com>
9025
9026         * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
9027         instead of a procedure value in each traceback entry.
9028
9029         * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
9030         instead of procedure value to TBK$SYMBOLIZE.
9031
9032         * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
9033         field.
9034         (TB_Entry_For): Account for the PV/FP renaming.
9035
9036         * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
9037         add comment.
9038         (Null_TB_Entry): Account for change of component name.
9039         (PV_For): Rename as FP_For.
9040
9041 2007-10-15  Tristan Gingold  <gingold@adacore.com>
9042
9043         * trans.c (gnat_to_gnu): Remove the padding structure more often.
9044         This optimize assignment to over-aligned record.
9045
9046 2007-10-15  Emmanuel Briot  <briot@adacore.com>
9047
9048         * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
9049         interfaces.
9050
9051         * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
9052         type, for dispatching calls.
9053
9054 2007-10-15  Vincent Celier  <celier@adacore.com>
9055             Robert Dewar  <dewar@adacore.com>
9056
9057         * gnat_ugn.texi: Add documentation for switches --version and --help
9058         for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
9059         gnatxref, gnatfind, gnatls, and gnatclean.
9060         Document -gnatw.o.
9061         Mention attribute Excluded_Source_Dirs
9062         Replace obsolescent attribute Locally_Removed_Files with attribute
9063         Excluded_Source_Files.
9064         Improve documentation of -u (gnatbind)
9065         Document how to do reliable stack checking for the environmental task
9066         on iVMS.
9067
9068         * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
9069         Document attribute Excluded_Source_Files and indicate that attribute
9070         Locally_Removed_Files is obsolescent.
9071
9072 2007-10-15  Thomas Quinot  <quinot@adacore.com>
9073
9074         * g-soccon-vms.ads: Fix value of MSG_WAITALL.
9075
9076         * gen-soccon.c: 
9077         Update documentation to note that OpenVMS 8.3 or later must be used
9078         to generate g-soccon-vms.ads.
9079
9080         * atree.adb: Add ??? comment
9081
9082         * exp_util.adb: Minor reformatting.
9083         Add ??? comment in Kill_Dead_Code.
9084
9085 2007-10-15  Robert Dewar  <dewar@adacore.com>
9086
9087         * errout.ads: Comment clarification
9088
9089         * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
9090         (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
9091
9092         * lib.ads: Comment update
9093
9094         * init.c: Minor reformatting.
9095
9096         * sem_attr.adb: Minor formatting
9097
9098         * osint-b.ads: Minor reformatting
9099
9100         * sem_ch9.adb: Implement -gnatd.I switch
9101
9102         * g-comlin.adb: (Start): Fix handling of empty command line.
9103
9104         * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
9105         even when -rules follows the -cargs section.
9106
9107 2007-10-08  Ollie Wild  <aaw@google.com>
9108
9109         * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
9110         gnat_return_tree.
9111         (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
9112         gnat_return_tree.
9113         (gnat_eh_runtime_type): Removed.
9114         (gnat_return_tree): New function.
9115
9116 2007-10-08  Ben Elliston  <bje@au.ibm.com>
9117
9118         PR ada/33454
9119         Revert:
9120         2007-08-31  Ben Elliston  <bje@au.ibm.com>
9121
9122         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
9123         when compiling for powerpc64-*-linux.
9124         * system-linux-ppc64.ads: New file.
9125
9126 2007-09-27  Eric Botcazou  <ebotcazou@adacore.com>
9127
9128         Mapped location support
9129         * back_end.adb (Call_Back_End): Pass information about source
9130         files instead of units to gigi.
9131         * gigi.h (struct File_Info_Type): New.
9132         (gigi): Rename and change type of number_units parameter, change
9133         type of file_info_ptr parameter.
9134         * trans.c (number_files): New global variable.
9135         (gigi): Rename and change type of number_units parameter, change
9136         type of file_info_ptr parameter.
9137         If mapped location support is enabled, create the isomorphic mapping
9138         between source files and line maps.
9139         (Sloc_to_locus): If mapped location support is enabled, translate
9140         source location into mapped location.
9141         (annotate_with_node): Rename into set_expr_location_from_node.
9142         Call set_expr_location instead of annotate_with_locus.
9143         (Pragma_to_gnu): Adjust for above change.
9144         (Loop_Statement_to_gnu): Likewise.
9145         (call_to_gnu): Likewise.
9146         (Handled_Sequence_Of_Statements_to_gnu): Likewise.
9147         (gnat_to_gnu): Likewise.
9148         (add_stmt_with_node): Likewise.
9149         (add_cleanup): Likewise.
9150         * utils.c (gnat_init_decl_processing): Do not set input_line.
9151
9152 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
9153
9154         * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
9155         (Applicable_Use): Emit a warning when a package tries to use itself.
9156         (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
9157         is already in use or the package where it is declared is in use or is
9158         declared in the current package.
9159         (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
9160
9161         * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
9162         s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
9163         s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
9164
9165 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
9166
9167         * a-calend-vms.adb, a-calend.adb: 
9168         Add a section on leap seconds control along with two entities used to
9169         enable and disable leap seconds support. The array Leap_Second_Times is
9170         now constant and contains hard time values pre-generated. Remove
9171         all elaboration code used to populate the table of leap seconds.
9172
9173         * bindgen.adb: 
9174         Add entity Leap_Seconds_Support to the list of global run-time variables
9175         along with a comment on its usage and values.
9176         (Gen_Adainit_Ada): Add code to generate the declaration and import of
9177         Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
9178         or one (enabled) depending on the presence of binder switch "-y".
9179         (Gen_Adainit_C): Add code to generate the declaration of external int
9180         __gl_leap_seconds_support. Set is value to zero (disabled) or one
9181         (enabled) depending on the presence of binder switch "-y".
9182
9183         * init.c: Add __gl_leap_seconds_support to the list of global values
9184         computed by the binder.
9185
9186 2007-09-26  Jerome Guitton  <guitton@adacore.com>
9187
9188         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
9189         s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
9190          s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
9191         s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
9192
9193         * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
9194
9195         * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
9196         function which can be called by the debugger to interrupt the tasks of
9197         an Ada application asynchronously, as needed on VxWorks.
9198         (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
9199
9200         * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
9201         renamed from Stop_All_Tasks. Update comments.
9202         (Stop_All_tasks): New function declaration.
9203
9204 2007-09-26  Olivier Hainque  <hainque@adacore.com>
9205
9206         * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
9207         #include <utime.h> and #define GCC_RESOURCE_H before
9208         #include <sys/wait.h>.
9209         Add more protections in __gnat_translate_vms.
9210
9211         * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
9212         #include <sys/wait.h>.
9213
9214 2007-09-26  Thomas Quinot  <quinot@adacore.com>
9215             Sergey Rybin  <rybin@adacore.com>
9216
9217         * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
9218
9219         * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
9220         where it belongs.
9221
9222         * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
9223
9224         * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
9225         where it belongs.
9226
9227         * sem_dist.ads: Minor comment fix
9228
9229         * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
9230
9231 2007-09-26  Javier Miranda  <miranda@adacore.com>
9232             Eric Botcazou  <ebotcazou@adacore.com>
9233
9234         * a-tags.adb: 
9235         (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
9236          indirection added to the HT_Link component of the TSD. This is required
9237          to statically allocate the TSD.
9238
9239         * a-tags.ads: 
9240         Minor reordering of the declarations in the private part. Required to
9241         add a level of indirection to the contents of the TSD component HT_Link.
9242         This is required to statically allocate the TSD.
9243
9244         * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
9245         Is_Statically_Allocated set from constant objects.
9246         Do not make exported constants created by the compiler volatile.
9247         (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
9248         as read-only.
9249
9250         * trans.c (Identifier_to_gnu): For constants, unshare initializers
9251         before returning them.
9252
9253         * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
9254         public part of the package.
9255         (Make_DT): Move HT_Link component out of the TSD record. For this
9256         purpose Make_DT now declares a separate object that stores the
9257         HT_Link value, and initializes the TSD component with the address
9258         of this new object. The addition of this level of indirection is
9259         required to statically allocate the TSD because the TSD cannot
9260         have variable components.
9261         (Expand_Interface_Conversion): Improve the expanded code.
9262         (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
9263
9264         * sem_disp.adb (Check_Dispatching_Operation): In case of a body
9265         declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
9266         if we are building static dispatch tables then we must not generate
9267         extra code to register the primitive because the dispatch table will
9268         be built at the end of the library package; otherwise we notify that
9269         we cannot build the static dispatch table.
9270
9271 2007-09-26  Robert Dewar  <dewar@adacore.com>
9272
9273         * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
9274         overlays.
9275
9276         * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
9277         (Analyze_Record_Representation_Clause): Suppress junk warning for
9278         missing component clause.
9279         (Analyze_Attribute_Definition_Clause, case Address): Apply the special
9280         tests for controlled type overlay to composites with controlled
9281         components.
9282         (Analyze_Record_Representation_Clause): Add reference for component name
9283
9284 2007-09-26  Javier Miranda  <miranda@adacore.com>
9285             Gary Dismukes  <dismukes@adacore.com>
9286
9287         * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
9288         for thunks associated with interface types.
9289
9290         * einfo.ads: Improve documentatation of Is_Internal
9291         (Is_Thunk): New attribute applicable to subprograms. True for thunks
9292         associated with interface types.
9293         Extensive comment fixes regarding flags that appear in all entities. The
9294         documentation is now consistent for all such flags (there were a number
9295         of errors in the documentation in this regard).
9296
9297         * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
9298
9299         * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
9300         of these procedures are passed a function call that already has
9301         build-in-place actuals (testing new flag
9302         Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
9303         the case where processing continues.
9304         (Expand_Call): If the call is generated from a thunk body then we
9305         propagate the extra actuals associated with the accessibility
9306         level of the access type actuals.
9307
9308         * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
9309         of each extra formal of a protected operation to reference the
9310         corresponding extra formal of the subprogram denoted by the
9311         operation's Protected_Body_Subprogram.
9312         
9313         * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
9314         N_Function_Call nodes.
9315
9316 2007-09-26  Robert Dewar  <dewar@adacore.com>
9317
9318         * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
9319
9320         * debug.adb: Add d.s flag.
9321
9322 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
9323
9324         * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
9325         debug variable so that it won't be initialized when pragma
9326         Initialize_Scalars is in effect.
9327
9328 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
9329
9330         * freeze.adb (Freeze_Entity): Remove check for preelaborable
9331         initialization of a full view. This is moved to
9332         Analyze_Package_Specification.
9333
9334         * sem_ch7.adb (Analyze_Package_Specification): Add check for
9335         preelaborable initialization of a full view in entity loop.
9336         (Uninstall_Declarations): If entity is a use-visible compilation unit,
9337         its child units are use-visible only if they are visible child units.
9338
9339         * sem_util.adb (Is_Preelaborable_Expression): New function to determine
9340         whether an expression can be used within a type declaration that
9341         requires preelaborable init.
9342         (Check_Components): Replace inline code that does partial checking for
9343         preelaborable default expressions with call to
9344         Is_Preelaborable_Expression.
9345         (Has_Preelaborable_Initialization): In the case of a generic actual
9346         subtype, (that is, Is_Generic_Actual is True), return the result of
9347         applying Has_Preelaborable_Initialization to the generic actual's base
9348         type.
9349
9350 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
9351
9352         * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
9353         call to Jan_1_Day _Of_Week to optimize its performance.
9354         (Is_Leap): Move the routine to the scope of Week_In_Year.
9355         (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
9356         weekday on which January 1 falls of Year - 1 and Year + 1. This function
9357         avoids calling Time_Of and Split, thus making it more efficent.
9358         (Week_In_Year): Reimplemented in oder to follow ISO 8601.
9359
9360         * g-calend.ads (Week_In_Year): Change comment to reflect new
9361         implementation.
9362
9363 2007-09-26  Emmanuel Briot  <briot@adacore.com>
9364
9365         * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
9366         Command_Line): New types
9367         (Define_Alias, Define_Prefix, Free): New subprograms. These provide
9368         support for defining how switches can be grouped on a command line (as
9369         is the case for -gnatw... for GNAT), and how simple switches can be
9370         used as aliases for more complex switches (-gnatwa is same as
9371         -gnatwbcef...)
9372         (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
9373         (Start, Current_*): New subprograms
9374         Added support for parsing an array of strings in addition to the real
9375         command line.
9376         (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
9377          be moved from the body to the private part of the spec.
9378         (*): All subprograms now have an extra parameter with default value to
9379         specify which parser should be used. For backward compatibility, it
9380         defaults to parsing the command line of the application. They were also
9381         modified to properly handle cases where each of the argument does not
9382         start at index 1 (which is always true for Ada.Command_Line, but not
9383         when processing any Argument_List).
9384         (Free): New subprogram
9385         (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
9386         Argument): New subprograms
9387         (Switch_Parameter_Type): New enum, which clarifies the code. The extra
9388         special characters like ':', '=',... are now handled in a single place,
9389         which makes the code more extensible eventually.
9390         (Getopt, Full_Switch): When the switch was returned as part of the
9391         special character '*', make sure it is prepended by the switch character
9392         ('-' in general), so that the application knows whether "foo" or "-foo"
9393         was specified on the command line.
9394
9395 2007-09-26  Florian Villoing  <villoing@adacore.com>
9396
9397         * g-dirope.adb (Remove_Dir): In case we are removing directories
9398         recursively, make sure that if an exception is raised during the
9399         processing, the current working directory is reset to its initial
9400         value before propagating the exception.
9401
9402 2007-09-26  Vincent Celier  <celier@adacore.com>
9403
9404         * gnatbind.adb: If there are several ALI files specified and there is
9405         a main program to bind, the first ALI is expected to contain the main
9406         subprogram and the names of the binder generated files will be derived
9407         from the first ALI file name.
9408         (Gnatbind): Fix insertion character in invocation of Error_Msg
9409
9410 2007-09-26  Vincent Celier  <celier@adacore.com>
9411
9412         * gnatcmd.adb (Check_Files): Do not include sources that have been
9413         removed by attributes Exclude_Source_Files or Locally_Removed_Files.
9414
9415 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
9416
9417         * lib-xref.ads, lib-xref.adb: The entry for array types now carries
9418         information about each of its index types, following the type
9419         reference for its component type.
9420
9421 2007-09-26  Vincent Celier  <celier@adacore.com>
9422
9423         * make.adb: (Kill): New procedure (__gnat_kill imported)
9424         (Running_Compile, Outstanding_Compiles): Global variables that
9425         were previously local to procedure Compile_Sources.
9426         (Sigint_Intercepted): Send signal SIGINT to all outstanding
9427         compilation processes.
9428
9429         (Gnatmake): If project files are used, create the mapping of all the
9430         sources, so that the correct paths will be found.
9431
9432         * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
9433
9434 2007-09-26  Vincent Celier  <celier@adacore.com>
9435
9436         * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
9437
9438         * prj.ads, prj.adb (Default_Language): Remove function, no longer used
9439         Replace components Compiler_Min_Options and Binder_Min_Options with
9440         Compiler_Required_Switches and Binder_Required_Switches in record
9441         Language_Config.
9442         Remove components Default_Language and Config in Project_Tree_Data,
9443         no longer used.
9444
9445         * prj-attr.adb: New attributes Required_Switches (<language>) in
9446         packages Compiler and Binder.
9447
9448         * prj-nmsc.adb: Major rewrite of the processing of configuration
9449         attributes for gprbuild. No impact on GNAT tools.
9450
9451         * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
9452         process configuration attributes: this is done in Prj.Nmsc.Check.
9453         (Recursive_Process): Make a full copy of packages inherited from project
9454         being extended, instead of a shallow copy.
9455         (Process_Project_Tree_Phase_1): New procedure
9456         (Process_Project_Tree_Phase_1): New procedure
9457         (Process): Implementation now uses the two new procedures
9458
9459         * prj-util.adb (Executable_Of): Get the suffix and the default suffix
9460         from the project config, not the tree config that no longer exists.
9461
9462 2007-09-26  Vincent Celier  <celier@adacore.com>
9463
9464         * Make-lang.in: Update dependencies..
9465
9466 2007-09-26  Vincent Celier  <celier@adacore.com>
9467
9468         * osint.adb, osint.ads: Minor reformatting
9469
9470         * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
9471
9472 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
9473
9474         * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
9475         message to cite use of <> in aggregate component associations rather
9476         than wrongly indicating use of limited aggregates.
9477
9478 2007-09-26  Robert Dewar  <dewar@adacore.com>
9479
9480         * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
9481         Address_Taken.
9482
9483 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
9484
9485         * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
9486         ancestor of the derived type, the operations are inherited from the
9487         primary dispatch table of the parent.
9488         (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
9489         when the context is an explicit type conversion.
9490
9491 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
9492
9493         * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
9494         rule for qualified expressions properly, to detect improper conversions
9495         and resolve some cases of overloading.
9496
9497 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
9498
9499         * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
9500         proper kind of reference to the primitive operation, for better source
9501         navigation.
9502         (Valid_Conversion): A tagged conversion is legal if both operands are
9503         tagged.
9504
9505 2007-09-26  Robert Dewar  <dewar@adacore.com>
9506
9507         * sem_warn.adb (Check_References): Catch more cases of unreferenced
9508         packages.
9509
9510 2007-09-26  Vincent Celier  <celier@adacore.com>
9511
9512         * snames.adb, snames.ads: Change Include_Option to Include_Switches
9513
9514 2007-09-26  Robert Dewar  <dewar@adacore.com>
9515
9516         * s-wchstw.adb: provide messages for run time unit exceptions
9517
9518         * a-witeio.adb: Minor reformatting
9519
9520         * exp_ch13.adb: Minor reformatting
9521
9522 2007-09-26  Sergey Rybin  <rybin@adacore.com>
9523
9524         * vms_data.ads: Revise gnatmetric qualifiers.
9525         Add qualified for the new gnatbind option '-y'
9526
9527         * gnat_ugn.texi: Revise the gnatmetric section.
9528         Add entry for new gnatbind option '-y'.
9529
9530         * gnat_rm.texi: Minor spelling correction.
9531         Document restriction on overlaying controlled types
9532
9533 2007-09-26  Vincent Celier  <celier@adacore.com>
9534
9535         * makegpr.adb (Link_Executables): Do not fail when the root project has
9536         no sources, but is an extending project.
9537
9538 2007-09-25  Eric Botcazou  <ebotcazou@adacore.com>
9539
9540         * trans.c: Fix misplaced #define.
9541
9542 2007-09-22  Eric Botcazou  <ebotcazou@adacore.com>
9543
9544         * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
9545         the TYPE_REF_CAN_ALIAS_ALL flag to the result.
9546
9547 2007-09-21  Olivier Hainque  <hainque@adacore.com>
9548
9549         * utils.c (type_for_nonaliased_component_p): Return false for
9550         all AGGREGATE_TYPEs.
9551
9552 2007-09-17  Eric Botcazou  <ebotcazou@adacore.com>
9553
9554         * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
9555         object covered by 13.3(19) volatile.
9556
9557 2007-09-12  Eric Botcazou  <ebotcazou@adacore.com>
9558
9559         PR ada/26797
9560         PR ada/32407
9561         * utils.c (unchecked_convert): Use a subtype as the intermediate type
9562         in the special VIEW_CONVERT_EXPR case.
9563
9564 2007-09-12  Robert Dewar  <dewar@adacore.com>
9565
9566         * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
9567
9568         * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
9569         lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
9570         s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
9571         s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
9572         s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
9573         s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
9574         s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
9575         s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
9576         a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads, 
9577         g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads, 
9578         s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb, 
9579         s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb, 
9580         snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads, 
9581         s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads, 
9582         s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads, 
9583         s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads, 
9584         s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
9585         pragma Compiler_Unit and adds it to relevant library units.
9586
9587 2007-09-12  Ed Schonberg  <schonberg@adacore.com>
9588
9589         * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
9590         a box need not correspond to any component.
9591
9592 2007-09-12  Robert Dewar  <dewar@adacore.com>
9593
9594         * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
9595         the tasking version of the Ada run time when foreign threads are
9596         present and there are no explicit Ada tasks or tasking constructs.
9597
9598         * gnat_rm.texi: Clarify documentation of GNAT.Threads.
9599
9600 2007-09-12  Hristian Kirtchev  <kirtchev@adacore.com>
9601
9602         * bindusg.adb (Display): Correct comment for switch -X. Add a line for
9603         the usage of switch -y.
9604
9605         * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
9606         when switch -y is present.
9607
9608         * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
9609         leap seconds in Ada.Calendar and its children.
9610
9611 2007-09-12  Jose Ruiz  <ruiz@adacore.com>
9612
9613         * a-extiti.ads (Timer): The discriminant is a "not null access
9614         constant" in the Reference Manual.
9615         (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
9616
9617 2007-09-12  Robert Dewar  <dewar@adacore.com>
9618
9619         * a-swuwha.adb: Remove junk RM header
9620
9621 2007-09-12  Vincent Celier  <celier@adacore.com>
9622
9623         * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
9624         indicator
9625
9626         * g-bytswa.ads: Minor reformatting
9627
9628 2007-09-12  Thomas Quinot  <quinot@adacore.com>
9629
9630         * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads: 
9631         Add new constant Thread_Blocking_IO, always True by default, set False
9632         on a per-runtime basis.
9633         (Need_Netdb_Buffer): New constant.
9634
9635 2007-09-12  Arnaud Charlet  <charlet@adacore.com>
9636
9637         * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
9638         Added renames for corresponding functions in System.Partition_Interface.
9639
9640 2007-09-12  Doug Rupp  <rupp@adacore.com>
9641
9642         * Makefile.in: Remove VMS specific System.CRTL packages which are no
9643         longer needed.
9644
9645         * s-crtl-vms64.ads: Removed.
9646
9647 2007-09-12  Olivier Hainque  <hainque@adacore.com>
9648
9649         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
9650         with discriminant constraints, generalize the code for BIT_FIELDs
9651         to PACKED fields of constant size and propagate DECL_PACKED.
9652
9653 2007-09-11  Eric Botcazou  <ebotcazou@adacore.com>
9654
9655         * decl.c (array_type_has_nonaliased_component): New predicate.
9656         (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
9657         set the TYPE_NONALIASED_COMPONENT flag on the type.
9658         <E_Array_Subtype>: Likewise.
9659         * gigi.h (type_for_nonaliased_component_p): Declare.
9660         * utils.c (type_for_nonaliased_component_p): New predicate.
9661         (create_field_decl): Invoke the above predicate to set the
9662         DECL_NONADDRESSABLE_P flag on the field.
9663
9664 2007-09-11  Javier Miranda  <miranda@adacore.com>
9665
9666         * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
9667         in library level record type entities if we are generating statically
9668         allocated dispatch tables.
9669
9670         * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
9671         importing/exporting the _tag declaration by new code
9672         importing/exporting the dispatch table wrapper. This change allows us
9673         to statically allocate of the TSD.
9674         (Make_DT.Export_DT): New procedure.
9675         (Build_Static_DT): New function.
9676         (Has_DT): New function.
9677
9678         * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
9679         True_Constant and Current_Value. Required to statically
9680         allocate the dispatch tables.
9681         (Check_Allocator): Make function iterative instead of recursive.
9682         Also return inner allocator node, when present, so that we do not have
9683         to look for that node again in the caller.
9684
9685 2007-09-11  Jan Hubicka  <jh@suse.cz>
9686
9687         * misc.c (gnat_expand_body): Kill.
9688         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
9689
9690 2007-09-10  Robert Dewar  <dewar@adacore.com>
9691
9692         * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
9693         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
9694         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
9695         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
9696         ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
9697         bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
9698         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
9699         butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
9700         comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
9701         elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
9702         err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
9703         exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
9704         exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
9705         exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
9706         exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
9707         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
9708         exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
9709         exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
9710         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
9711         exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
9712         exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
9713         exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
9714         fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
9715         get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
9716         gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
9717         gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
9718         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
9719         gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
9720         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
9721         gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
9722         inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
9723         lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
9724         lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
9725         make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
9726         mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
9727         mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
9728         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
9729         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
9730         osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
9731         osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
9732         par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
9733         par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
9734         par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
9735         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
9736         par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
9737         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
9738         prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
9739         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
9740         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
9741         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
9742         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
9743         prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
9744         rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
9745         scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
9746         sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
9747         sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
9748         sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
9749         sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
9750         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
9751         sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
9752         sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
9753         sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
9754         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
9755         sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
9756         sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
9757         sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
9758         sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
9759         sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
9760         stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
9761         styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
9762         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
9763         switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
9764         tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
9765         treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
9766         types.h, uintp.h, urealp.h, usage.adb, usage.ads,
9767         validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
9768         xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
9769         xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
9770         gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
9771         mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
9772         symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
9773         mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
9774         mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
9775
9776 2007-09-10  Emmanuel Briot  <briot@adacore.com>
9777
9778         * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
9779         classes ("[]").
9780
9781 2007-09-10  Vasiliy Fofanov  <fofanov@adacore.com>
9782
9783         * adaint.c (__gnat_translate_vms): new function.
9784
9785 2007-09-10  Gary Dismukes  <dismukes@adacore.com>
9786             Thomas Quinot  <quinot@adacore.com>
9787
9788         * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
9789         create an abstract subprogram in the case of 'Input. For 'Output we now
9790         create a real spec/body when the type is abstract, since it can
9791         potentially be called.
9792         (Predefined_Primitive_Bodies): Now allow the creation of a predefined
9793         body for 'Output when the type is abstract (only the creation of the
9794         body for 'Input is excluded when the type is abstract).
9795         (Stream_Operation_OK): Add an additional condition in the return
9796         statement, so that False will be returned for TTS_Stream_Input if the
9797         associated tagged type is an abstract extension. Add comments for
9798         return statement.
9799         (Expand_N_Object_Declaration): For the case of a shared passive
9800         variable, insert init proc call only after the shared variable
9801         procedures have been processed, because the IP call needs to undergo
9802         shared passive variable reference expansion, which requires these
9803         procedures to be available (and elaborated).
9804
9805 2007-09-10  Vincent Celier  <celier@adacore.com>
9806
9807         * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
9808         parameter Runtime_Project.
9809
9810 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
9811
9812         * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
9813         given a box association, the type of the component is discriminated,
9814         and the value of the discriminant is the discriminant of the enclosing
9815         type, retrieve its value from the aggregate itself, where it must have
9816         been supplied.
9817
9818         * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
9819         to remove other spurious ambiguities on arithmetic operations involving
9820         literals and addresses, on systems where Address is a visible integer
9821         type, when the operator is called in functional notation.
9822         (Try_Primitive_Operation): Within an instance, a call in prefixed form
9823         is legal when the types match, even if the operation is currently
9824         hidden.
9825
9826 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
9827
9828         * sem_ch12.adb (Build_Local_Package): A formal package with no
9829         associations is legal if all formals have defaults. It is not
9830         equivalent to a formal declared with a box.
9831
9832 2007-09-10  Sergey Rybin  <rybin@adacore.com>
9833
9834         * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
9835
9836 2007-09-10  Sergey Rybin  <rybin@adacore.com>
9837
9838         * gnat_ugn.texi: Add description of the new '-lratio' option
9839         Update 7.3.1 section about availability of the feature.
9840
9841 2007-09-10  Thomas Quinot  <quinot@adacore.com>
9842
9843         * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
9844         inserted node.
9845
9846 2007-09-10  Olivier Hainque  <hainque@adacore.com>
9847
9848         * Makefile.in: (mips-irix section): Activate build of libgmem.
9849
9850 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
9851
9852         * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
9853         x87 registers.
9854
9855 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
9856
9857         * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
9858         a debug renaming declaration specially.
9859
9860 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
9861
9862         * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
9863         which a constant renaming is treated as a normal object declaration.
9864         * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
9865         the N_Indexed_Component case.
9866         <N_Indexed_Component>: Fall through to above case.
9867         <N_Object_Renaming_Declaration>: Return true for all composite types.
9868
9869 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
9870
9871         * decl.c (make_packable_type): If the new type has been given BLKmode,
9872         try again to get an integral mode for it.
9873
9874 2007-09-07  Eric Botcazou  <ebotcazou@adacore.com>
9875
9876         Re-apply accidentally reverted change:
9877
9878         2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
9879
9880         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
9881         get_action_description_for): Replace _Unwind_Word with _uleb128_t 
9882         and _Unwind_SWord with _sleb128_t.
9883
9884 2007-09-06  Eric Botcazou  <ebotcazou@adacore.com>
9885
9886         * trans.c (convert_with_check): Update call to real_2expN.
9887
9888 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
9889
9890         * trans.c (Compilation_unit_to_gnu): Use set_cfun.
9891         * utils.c (end_subprog_body): Likewise.
9892
9893 2007-09-03  Nick Clifton  <nickc@redhat.com>
9894
9895         * Make-lang.in: Change copyright header to refer to version 3 of
9896         the GNU General Public License and to point readers at the
9897         COPYING3 file and the FSF's license web page.
9898         * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
9899         Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
9900         namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
9901         treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
9902         Likewise.
9903
9904 2007-08-31  Vincent Celier  <celier@adacore.com>
9905
9906         PR ada/4720
9907
9908         * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb, 
9909         gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
9910         (Check_Version_And_Help): New procedure in package Switch to process
9911         switches --version and --help.
9912         Use Check_Version_And_Help in GNAT tools
9913
9914         * make.adb:  Ditto.
9915         (Compile_Sources): Make sure that sources that are "excluded" are not
9916         compiled.
9917         (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
9918         project file is used.
9919         (Version_Switch): Remove, moved to Switch
9920         (Help_Switch): Remove, moved to Switch
9921         (Display_Version): Remove, moved to Switch
9922
9923         * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
9924         package Switch to process switches --version and --help.
9925         (Display_Version): New procedure
9926
9927         * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
9928
9929 2007-08-31  Javier Miranda  <miranda@adacore.com>
9930
9931         * a-tags.adb (Internal_Tag): Protect the run-time against wrong
9932         internal tags.
9933
9934 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
9935
9936         * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
9937         (Mark_Non_Null): If the node for which we just generated an access check
9938         is a reference to an *in* parameter and the reference appears in the
9939         declarative part of a subprogram body, mark the node as known non null.
9940
9941 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
9942
9943         * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
9944         structure of E_Exception to reflect the new flag.
9945         (Is_Raised, Set_Is_Raised): New inlined routines.
9946         Update the usage of available flag to reflect the addition of Is_Raised.
9947         (Is_Raised, Set_Is_Raised): Bodies of new routines.
9948         (Write_Entity_Flags): Write the status of flag Is_Raised.
9949         (Is_Descendent_Of_Address): New entity flag, to simplify handling of
9950         spurious ambiguities when integer literals appear in the context of an
9951         address type that is a visible integer type.
9952
9953         * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
9954         exceptions never being raised.
9955         (Analyze_Raise_Statement): When analyzing an exception, mark it as being
9956         explicitly raised.
9957
9958 2007-08-31  Javier Miranda  <miranda@adacore.com>
9959
9960         * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
9961         statement when compiling under restriction No_Exceptions_Proparation.
9962
9963 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
9964
9965         * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
9966         initialization aggregate for the type, generate itype references for
9967         thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
9968
9969 2007-08-31  Gary Dismukes  <dismukes@adacore.com>
9970
9971         * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
9972         library-level package renaming, pass the declaration associated with
9973         the renaming's special debug variable to Qualify_Entity_Names to ensure
9974         that its encoded name is properly qualified.
9975
9976         * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
9977         occurring in the list of entities to qualify, and do not attempt to
9978         traverse an entity list in that case. Variables associated with
9979 `       library-level package renamings can now occur in the table.
9980
9981         * exp_dbug.ads: Revise documentation of the encoding for renaming
9982         declarations.
9983
9984 2007-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9985
9986         * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
9987         access type points to an unconstrained array.
9988
9989 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
9990
9991         * restrict.adb, namet.adb, par-util.adb: Remove redundant type
9992         conversion.
9993
9994         * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
9995         simple redundant qualifications. The check is performed whenever the
9996         expression is a non-overloaded identifier.
9997         (Resolve_Type_Conversion): Enchance the redundant type conversion check
9998         to include loop parameters.
9999         (Valid_Conversion): Avoid generation of spurious error message.
10000
10001 2007-08-31  Bob Duff  <duff@adacore.com>
10002
10003         * par-ch4.adb (P_Simple_Expression): Fold long sequences of
10004         concatenations of string literals into a single literal, in order to
10005         avoid very deep recursion in the front end, which was causing stack
10006         overflow.
10007
10008         * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
10009         string, and the right operand is a string literal (the case of "" &
10010         "..."), optimize by avoiding copying the right operand -- just use the
10011         value of the right operand directly.
10012
10013         * stringt.adb (Store_String_Chars): Optimize by growing the
10014         String_Chars table all at once, rather than appending characters one by
10015         one.
10016         (Write_String_Table_Entry): If the string to be printed is very long,
10017         just print the first few characters, followed by the length. Otherwise,
10018         doing "pn(n)" in the debugger can take an extremely long time.
10019
10020         * sem_prag.adb (Process_Interface_Name): Replace loop doing
10021         Store_String_Char with Store_String_Chars.
10022
10023 2007-08-31  Vincent Celier  <celier@adacore.com>
10024
10025         * prj-attr.adb: Add new attribute Excluded_Source_Files
10026
10027         * prj-nmsc.adb: Use attribute Excluded_Source_Files before
10028         Locally_Removed_Files.
10029
10030         * snames.ads, snames.adb: New standard name Excluded_Source_Files
10031
10032 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
10033
10034         * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
10035         clauses of subunits, ignore limited_with_clauses that are illegal and
10036         have not been fully analyzed.
10037
10038 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
10039
10040         * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
10041         flag, for effiency. It is called when analyzing arithmetic operators
10042         and also for actuals in calls that are universal_integers. The flag is
10043         set for the predefined type address, and for any type or subtype
10044         derived from it.
10045
10046         * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
10047         Universal_Integer, when the formal is a descendent of address and the
10048         call appears in user code.
10049         (Analyze_Selected_Component): if the prefix is a private extension, the
10050         tag component is visible.
10051
10052         * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
10053         entity flag.
10054
10055 2007-08-31  Robert Dewar  <dewar@adacore.com>
10056
10057         * s-fileio.adb (Open): Normalize file name to lower case in non-case
10058         sensitive file name systems to avoid unexpected mismatch in Vista.
10059
10060 2007-08-31  Vincent Celier  <celier@adacore.com>
10061
10062         * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
10063
10064 2007-08-31  Vincent Celier  <celier@adacore.com>
10065
10066         * symbols-vms.adb (Initialize): Read symbol files with continuation
10067         lines
10068         (Finalize): If symbol is long, split the line
10069
10070 2007-08-31  Vincent Celier  <celier@adacore.com>
10071
10072         * fmap.ads: Minor comment updates
10073
10074 2007-08-31  GNAT Script  <nobody@adacore.com>
10075
10076         * Make-lang.in: Makefile automatically updated
10077
10078 2007-08-31  Bob Duff  <duff@adacore.com>
10079
10080         * sinfo.ads: Minor comment fix.
10081
10082 2007-08-31  Thomas Quinot  <quinot@adacore.com>
10083
10084         * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
10085         with implementation.
10086         Documentation cleanup only.
10087
10088 2007-08-31  Sergey Rybin  <rybin@adacore.com>
10089
10090         * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
10091         gnatpp '--separate-stmt-name' option.
10092         Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
10093         option.
10094
10095         * gnat_ugn.texi: Add description for the new gnatpp
10096         '--separate-stmt-name' and '--use-on-new-line' options.
10097
10098 2007-08-31  Ben Elliston  <bje@au.ibm.com>
10099
10100         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
10101         when compiling for powerpc64-*-linux.
10102         * system-linux-ppc64.ads: New file.
10103
10104 2007-08-22  Krister Walfridsson  <cato@df.lth.se>
10105
10106         * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
10107         NetBSD.
10108
10109 2007-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10110
10111         * misc.c (gnat_type_max_size): Constify.
10112
10113 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
10114
10115         * cstand.adb (Create_Standard): Create an entity for a zero-sized type
10116         associated with Standard_Debug_Renaming_Type, to be used as the type of
10117         the special variables whose names provide debugger encodings for
10118         renaming declarations.
10119
10120         * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
10121         (Set_Debug_Renaming_Link): Change to set Node25.
10122         (Write_Field13_Name): Remove case for E_Enumeration_Literal.
10123         (Write_Field25_Name): Add case for E_Variable to output
10124         "Debug_Renaming_Link".
10125         (Write_Field23_Name): Correct the output string for "Limited_View".
10126
10127         * exp_dbug.adb: Add with and use of Tbuild.
10128         (Debug_Renaming_Declaration): Replace creation of an enumeration type
10129         and literal with creation of a variable of type
10130         Standard_Debug_Renaming_Type whose name encodes both the renamed object
10131         and the entity of the renaming declaration.
10132         (Qualify_Entity_Name): Add the delayed qualification of the entity name
10133         part of the name of a variable that has a Debug_Renaming_Link.
10134
10135         * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
10136         special type to be associated with variables that provide debugger
10137         encodings for renaming declarations.
10138
10139 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
10140             Ed Schonberg  <schonberg@adacore.com>
10141             Javier Miranda  <miranda@adacore.com>
10142
10143         * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
10144         ancestor part given by an aggregate to test for an unchecked conversion,
10145         since this can occur in some cases when the ancestor part is a function
10146         call, and we don't want to fall into the recursive call to this
10147         procedure in that case.
10148
10149         * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
10150         stream attributes on limited types to account for user-specified
10151         attributes as well as whether Input (resp. Output) becomes available
10152         due to Read (resp. Write) being available for the type. Change Boolean
10153         variable to the more accurate name
10154         Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
10155         double-"not" predicate at beginning of return statement to more
10156         understandable form.
10157
10158         * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
10159         return has an associated N_Handled_Sequence_Of_Statements, then wrap it
10160         in a block statement and use that as the first statement of the
10161         expanded return rather than incorrectly using the handled sequence as
10162         the first statement.
10163
10164         * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
10165         operation, generate an explicit freeze node for it rather than
10166         generating extra formals, to ensure that gigi has the proper order of
10167         elaboration for anonymous subtypes in the signature of the subprograms.
10168         (Build_In_Place_Formal): Move assertion to beginning of loop.
10169         (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
10170         applied to a function call (occurs for some cases of 'Input).
10171         (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
10172         applied to a function call (occurs for some cases of 'Input).
10173
10174         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
10175         2005, generate an extended return statement enclosing the result object
10176         and 'Read call.
10177
10178         * freeze.adb (Freeze_Record_Type): Extend the current management of
10179         components that are access type with an allocator as default value: add
10180         missing support to the use of qualified expressions of the
10181         allocator (which also cause freezing of the designated type!)
10182         (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
10183         dispatching operation, since extra formals may be needed by calls to
10184         build-in-place functions (such as stream 'Input).
10185
10186         * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
10187         formals for 'Constrained and accessibility level in the case of a
10188         predefined dispatching operation.
10189
10190         * exp_util.adb (Insert_Actions): A protected body is a valid insertion
10191         point, no need to find the parent node.
10192
10193 2007-08-16  Javier Miranda  <miranda@adacore.com>
10194
10195         * exp_attr.adb (Attribute_Priority): Add missing support for entries
10196         and entry barriers.
10197
10198 2007-08-16  Javier Miranda  <miranda@adacore.com>
10199
10200         * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
10201         is not really required and can introduce regression with the debugger.
10202         The original problem is fixed with the patch written for checks.adb.
10203
10204 2007-08-16  Thomas Quinot  <quinot@adacore.com>
10205
10206         * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
10207         Range_Check on Allocated_Table.
10208
10209 2007-08-16  Vincent Celier  <celier@adacore.com>
10210
10211         * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
10212         Including_Non_Switch set to False.
10213         (Gnatmake): For the compiler, call Test_If_Relative_Path with
10214         Including_Non_Switch set to False.
10215
10216         * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
10217         parameter Including_Non_Switch, defaulted to True. When
10218         Including_Non_Switch is False, options that are not switches and
10219         appear as relative path are not converted to absolute paths.
10220
10221 2007-08-16  Nicolas Roche  <roche@adacore.com>
10222
10223         * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
10224         makefiles
10225
10226         * Make-lang.in: Update dependencies
10227
10228 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
10229
10230         * sem_ch10.adb (Has_With_Clause): If the name of the with clause
10231         currently inspected is a selected component, retrieve the entity of
10232         its selector.
10233         (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
10234         from the immediate ancestor of Main_Unit_Entity.
10235         (Install_Limited_Withed_Unit): Do not install the limited view of
10236         package P if P is reachable through an ancestor chain from package C
10237         and C also has a with clause for P in its body.
10238         (Has_Limited_With_Clause): New routine.
10239         (Has_With_Clause): New routine.
10240
10241 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
10242
10243         * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
10244         generic for an enclosing instance is a global reference, even though
10245         its scope is the enclosing instance.
10246
10247 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
10248             Javier Miranda  <miranda@adacore.com>
10249
10250         * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
10251         initialize a limited object.
10252         (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
10253         13/2 and 14/2.
10254         Make sure Has_Complex_Representation is inherited by derived type.
10255
10256 2007-08-16  Robert Dewar  <dewar@adacore.com>
10257
10258         * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
10259         exception case
10260
10261 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
10262
10263         * sem_disp.adb (Check_Dispatching_Operation): If the operation
10264         implements an operation inherited from a progenitor interface, verify
10265         that they are subtype-conformant.
10266
10267 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
10268             Bob Duff  <duff@adacore.com>
10269             Nicolas Setton  <setton@adacore.com>
10270
10271         * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
10272         (Resolve): Alphabetize local variables. Add new variable From_Lib. When
10273         the statement which is being resolved comes from a predefined library
10274         unit, all non-predefined library interpretations are skipped.
10275         (Resolve_Op_Concat): If string concatenation was folded in the parser,
10276         but the "&" is user defined, give an error, because the folding would
10277         be wrong.
10278
10279         * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
10280         the parser has folded a long sequence of concatenations of string
10281         literals.
10282
10283         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
10284         and "JMP_BUF" variables as artificial.
10285         (N_String_Literal): Do not use alloca for very long string literals. Use
10286         xmalloc/free instead. Otherwise the stack might overflow.
10287
10288         * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
10289         compiler.
10290
10291 2007-08-16  Vincent Celier  <celier@adacore.com>
10292
10293         * vms_conv.adb (Process_Argument): Ensure that project related options
10294         are not put in the -cargs section when using GNAT COMPILE.
10295
10296 2007-08-16  Robert Dewar  <dewar@adacore.com>
10297
10298         * gnat_ugn.texi: Add note on preprocessing (output file not written)
10299
10300 2007-08-16  Thomas Quinot  <quinot@adacore.com>
10301
10302         * a-tags.adb: Minor reformatting.
10303
10304 2007-08-16  Bob Duff  <duff@adacore.com>
10305
10306         * sem_type.ads, sem_ch4.adb: Minor reformatting.
10307
10308 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10309
10310         * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads, 
10311         s-osinte-interix.ads, system-interix.ads: Removed.
10312
10313 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
10314
10315         * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
10316         calls to Check_Within_Time_Bounds.
10317         ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
10318         (Difference): Account for possible rounding of the resulting difference
10319
10320 2007-08-14  Robert Dewar  <dewar@adacore.com>
10321
10322         * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
10323         par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
10324         s-osinte-solaris.adb, s-osinte-solaris.ads,
10325         s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
10326
10327         * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
10328         switch -gnatyS. Enable -gnatyS in GNAT style check mode
10329
10330 2007-08-14  Robert Dewar  <dewar@adacore.com>
10331             Ed Schonberg  <schonberg@adacore.com>
10332
10333         * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads: 
10334         Suppress unmodified in-out parameter warning in some cases
10335         This patch is a also fairly significant change to the way suppressible
10336         checks are handled.
10337
10338         * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
10339         needed for access to concurrent record types generated by the expander.
10340         (Generate_Range_Check): When generating a temporary to capture the
10341         value of a conversion that requires a range check, set the type of the
10342         temporary before rewriting the node, so that the type is always
10343         properly placed for back-end use.
10344         (Apply_Float_Conversion_Check): Handle case where the conversion is
10345         truncating.
10346         (Get_Discriminal): Code reformatting. Climb the scope stack looking
10347         for a protected type in order to examine its discriminants.
10348
10349 2007-08-14  Robert Dewar  <dewar@adacore.com>
10350             Gary Dismukes  <dismukes@adacore.com>
10351             Ed Schonberg  <schonberg@adacore.com>
10352             Thomas Quinot  <quinot@adacore.com>
10353
10354         * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb, 
10355         a-stwisu.adb, a-strsup.adb: Fix warnings for range
10356         tests optimized out.
10357
10358         * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
10359         (Get_Allocator_Final_List): For the case of an anonymous access type
10360         that has a specified Associated_Final_Chain, do not go up to the
10361         enclosing scope.
10362         (Expand_N_Type_Conversion): Test for the case of renamings of access
10363         parameters when deciding whether to apply a run-time accessibility
10364         check.
10365         (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
10366         aggregate code before allocator, and ahead of declaration for
10367         temporary, to prevent access before elaboration when the allocator is
10368         an actual for an access parameter.
10369         (Expand_N_Type_Conversion): On an access type conversion involving an
10370         access parameter, do not apply an accessibility check when the
10371         operand's original node was an attribute other than 'Access. We now
10372         create access conversions for the expansion of 'Unchecked_Access and
10373         'Unrestricted_Access in certain cases and clearly accessibility should
10374         not be checked for those.
10375
10376         * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
10377         includes a type conversion of a packed component that has been expanded,
10378         recover the original expression for the object, and use this expression
10379         in the post-call assignment statement, so that the assignment is made
10380         to the object and not to a back-end temporary.
10381         (Freeze_Subprogram): In case of primitives of tagged types not defined
10382         at the library level force generation of code to register the primitive
10383         in the dispatch table. In addition some code reorganization has been
10384         done to leave the implementation clear.
10385         (Expand_Call): When expanding an inherited implicit conversion,
10386         preserve the type of the inherited function after the intrinsic
10387         operation has been expanded.
10388
10389         * exp_ch2.ads, exp_ch2.adb
10390         (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
10391         of an entry formal appearing in an assignment statement does not assign
10392         to the formal.
10393         (Expand_Current_Value): Instead of calling a routine to determine
10394         whether the prefix of an attribute reference should be optimized or
10395         not, prevent the optimization of such prefixes all together.
10396
10397         * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
10398         component whose prefix is known to be of an access type is an implicit
10399         dereference and does not assign to the prefix.
10400
10401 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10402             Robert Dewar  <dewar@adacore.com>
10403
10404         * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
10405         itype is visited, make an entry into table to link associated node and
10406         new itype.
10407         Add comments and correct harmless error in Build_NCT_Hash_Tables
10408         (Array_Aggr_Subtype): Associate each itype created for an index type to
10409         the corresponding range construct, and not to the aggregate itself. to
10410         maintain a one-to-one correspondence between itype and its associated
10411         node, to prevent errors when complex expression is copied.
10412         Fix mishandling of multiple levels of parens
10413
10414         * sem_aggr.adb: Create a limited view of an incomplete type, to make
10415         treatment of limited views uniform for all visible declarations in a
10416         limited_withed package.
10417         (New_Copy_Tree): If hash table is being used and itype is visited,
10418         make an entry into table to link associated node and new itype.
10419         (Resolve_Record_Aggregate): Do not add an others box association for a
10420         discriminated record component that has only discriminants, when there
10421         is a box association for the component itself.
10422
10423         * par-ch4.adb: Fix mishandling of multiple levels of parens
10424
10425 2007-08-14  Robert Dewar  <dewar@adacore.com>
10426
10427         * comperr.adb: Fix problem with suppressing warning messages from gigi
10428
10429         * erroutc.ads, erroutc.adb, errout.ads, 
10430         errout.adb (Write_Eol): Remove trailing spaces before writing the line
10431         (Write_Eol_Keep_Blanks): New procedure to write a line, including
10432         possible trailing spaces.
10433         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
10434         Fix problem with suppressing warning messages from back end
10435         Improve handling of deleted warnings
10436
10437         * gnat1drv.adb: 
10438         Fix problem with suppressing warning messages from back end
10439         Handle setting of Static_Dispatch_Tables flag.
10440
10441         * prepcomp.adb: 
10442         Fix problem with suppressing warning messages from back end
10443
10444         * exp_intr.adb: Improve handling of deleted warnings
10445
10446 2007-08-14  Robert Dewar  <dewar@adacore.com>
10447
10448         * debug.adb: Improve -gnatdI to cover all cases of serialization
10449         Add documentation of dZ, d.t
10450
10451         * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
10452         serialization.
10453         (Sprint_Node_Actual): Generate new output associated with implicit
10454         importation and implicit exportation of object declarations.
10455
10456 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10457             Robert Dewar  <dewar@adacore.com>
10458             Javier Miranda  <miranda@adacore.com>
10459             Gary Dismukes  <dismukes@adacore.com>
10460
10461         * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
10462         to make treatment of limited views uniform for all visible declarations
10463         in a limited_withed package.
10464         Improve warnings for in out parameters
10465         (Set_Related_Interaface/Related_Interface): Allow the use of this
10466         attribute with constants.
10467         (Write_Field26_Name): Handle attribute Related_Interface in constants.
10468         Warn on duplicate pragma Preelaborable_Initialialization
10469
10470         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
10471         generation of a freezing node to ensure proper management of null
10472         excluding access types in the backend.
10473         (Create_Extra_Formals): Test base type of the formal when checking for
10474         the need to add an extra accessibility-level formal. Pass the entity E
10475         on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
10476         originally being done in a couple of cases), to ensure that the
10477         Extra_Formals list gets set on the entity E when the first entity is
10478         added.
10479         (Conforming_Types): Add missing calls to Base_Type to the code that
10480         handles anonymous access types. This is required to handle the
10481         general case because Process_Formals builds internal subtype entities
10482         to handle null-excluding access types.
10483         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
10484         functions that need it, even when not marked Requires_Overriding.
10485         Improve warnings for in out parameters
10486         (Analyze_Function_Return): Warn for disallowed null return
10487         Warn on return from procedure with unset out parameter
10488         Ensure consistent use of # in error messages
10489         (Check_Overriding_Indicator): Add in parameter Is_Primitive.
10490         (Analyze_Function_Return): Move call to Apply_Constraint_Check before
10491         the implicit conversion of the expression done for anonymous access
10492         types. This is required to generate the code of the null excluding
10493         check (if required).
10494
10495         * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
10496         A formal parameter is never publicly referenceable outside of its body.
10497         (Check_References): For an unreferenced formal parameter in an accept
10498         statement, use the same warning circuitry as for subprogram formal
10499         parameters.
10500         (Warn_On_Unreferenced_Entity): New subprogram, taken from
10501         Output_Unreferenced_Messages, containing the part of that routine that
10502         is now reused for entry formals as described above.
10503         (Goto_Spec_Entity): New function
10504         (Check_References): Do not give IN OUT warning for dispatching operation
10505         Improve warnings for in out parameters
10506         (Test_Ref): Check that the entity is not undefinite before calling
10507         Scope_Within, in order to avoid infinite loops.
10508         Warn on return from procedure with unset out parameter
10509         Improved warnings for unused variables
10510
10511 2007-08-14  Robert Dewar  <dewar@adacore.com>
10512             Javier Miranda  <miranda@adacore.com>
10513             Gary Dismukes  <dismukes@adacore.com>
10514
10515         * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
10516         (Expand_N_Attribute_Reference): Further unify the handling of the
10517         three forms of access attributes, using common code now for all three
10518         cases. Add a test for the case of applying an access attribute to
10519         an explicit dereference when the context is an access-to-interface
10520         type. In that case we need to apply the conversion to the prefix
10521         of the explicit dereference rather than the prefix of the attribute.
10522         (Attribute_Version, UET_Address): Set entity as internal to ensure
10523         proper dg output of implicit importation.
10524         (Expand_Access_To_Type): Removed.
10525         (Expand_N_Attribute_Reference): Merge the code from the three cases
10526         of access attributes, since the processing is largely identical for
10527         these cases. The substantive fix here is to process the case of a
10528         type name prefix (current instance case) before handling the case
10529         of interface prefixes.
10530
10531 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10532             Ed Schonberg  <schonberg@adacore.com>
10533             Javier Miranda  <miranda@adacore.com>
10534             Robert Dewar  <dewar@adacore.com>
10535
10536         * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
10537         (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
10538         type that is an anonymous access to controlled object, establish
10539         an associated finalization chain to avoid corrupting the global
10540         finalization list when a dynamically allocated object designated
10541         by such a component is deallocated.
10542         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
10543         functions that need it, even when not marked Requires_Overriding.
10544         (Initialize_Tag): Replace call to has_discriminants by call to
10545         Is_Variable_Size_Record in the circuitry that handles the
10546         initialization of secondary tags.
10547         (Is_Variable_Size_Record): New implementation.
10548         (Expand_N_Object_Declaration): Suppress call to init proc if there is a
10549         Suppress_Initialization pragma for a derived type.
10550         (Is_Variable_Size_Record): New subprogram.
10551         (Build_Offset_To_Top_Functions): New implementation that simplifies the
10552         initial version of this routine and also fixes problems causing
10553         incomplete initialization of the table of interfaces.
10554         (Build_Init_Procedure): Improve the generation of code to initialize the
10555         the tag components of secondary dispatch tables.
10556         (Init_Secondary_Tags): New implementation that simplifies the previous
10557         version of this routine.
10558         (Make_DT): Add parameter to indicate when type has been frozen by an
10559         object declaration, for diagnostic purposes.
10560         (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
10561         diagnose attemps to freeze a subprogram when some untagged type of its
10562         profile is a private type whose full view has not been analyzed yet.
10563         (Freeze_Array_Type): Generate init proc for packed array if either
10564         Initialize or Normalize_Scalars is set.
10565         (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
10566         constructing the new profile, copy the null_exclusion indicator for each
10567         parameter, to ensure full conformance of the new body with the spec.
10568
10569         * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
10570         Create wrappers for constructor functions that need it, even when not
10571         marked Requires_Overriding.
10572         (Covers): Handle properly designated types of anonymous access types,
10573         whose non-limited views are themselves incomplete types.
10574         (Add_Entry): Use an entity to store the abstract operation which hides
10575         an interpretation.
10576         (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
10577         (Collect_Interps): Use Empty as an actual for Abstract_Op in the
10578         initialization aggregate.
10579         (Function_Interp_May_Be_Hidden): Rename to
10580         Function_Interp_Has_Abstract_Op.
10581         (Has_Compatible_Type): Remove machinery that skips interpretations if
10582         they are labeled as potentially hidden by an abstract operator.
10583         (Has_Hidden_Interp): Rename to Has_Abstract_Op.
10584         (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
10585         (Write_Overloads): Output the abstract operator if present.
10586         (Add_Entry): Before inserting a new entry into the interpretation table
10587         for a node, determine whether the entry will be disabled by an abstract
10588         operator.
10589         (Binary_Op_Interp_May_Be_Hidden): New routine.
10590         (Collect_Interps): Add value for flag May_Be_Hidden in initialization
10591         aggregate.
10592         (Function_Interp_May_Be_Hidden): New routine.
10593         (Has_Compatible_Type): Do not consider interpretations hidden by
10594         abstract operators when trying to determine whether two types are
10595         compatible.
10596         (Has_Hidden_Interp): New routine.
10597         (Set_May_Be_Hidden_Interp): New routine.
10598         (Write_Overloads): Write the status of flag May_Be_Hidden.
10599
10600 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10601             Javier Miranda  <miranda@adacore.com>
10602
10603         * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
10604         types declared in the declarative part of a nested package body or in
10605         the proper body of a stub.
10606         (Set_All_DT_Position): Add missing check to avoid wrong assignation
10607         of the same dispatch table slot to renamed primitives.
10608         (Make_Select_Specific_Data_Table): Handle private types.
10609         (Tagged_Kind): Handle private types.
10610         (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
10611         output of implicit importation and exportation.
10612         (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
10613         first formal of the thunk is always associated with the controlling
10614         type. In addition perform the following code cleanup: remove formal
10615         Thunk_Alias which is no longer required, cleanup evaluation of the
10616         the controlling type, and update the documentation.
10617         Replace occurrence of Default_Prim_Op_Count by
10618         Max_Predef_Prims. Addition of compile-time check to verify
10619         that the value of Max_Predef_Prims is correct.
10620         (Check_Premature_Freezing): Apply check in Ada95 mode as well.
10621         (Make_DT): Add parameter to indicate when type has been frozen by an
10622         object declaration, for diagnostic purposes.
10623         (Build_Static_Dispatch_Tables): New subprogram that takes care of the
10624         construction of statically allocated dispatch tables.
10625         (Make_DT): In case of library-level tagged types export the declaration
10626         of the primary tag. Remove generation of tags (now done by Make_Tags).
10627         Additional modifications to handle non-static generation of dispatch
10628         tables. Take care of building tables for asynchronous interface types
10629         (Make_Tags): New subprogram that generates the entities associated with
10630         the primary and secondary tags of Typ and fills the contents of Access_
10631         Disp_Table. In case of library-level tagged types imports the forward
10632         declaration of the primary tag that will be declared later by Make_DT.
10633         (Expand_Interface_Conversion): In case of access types to interfaces
10634         replace an itype declaration by an explicit type declaration to avoid
10635         problems associated with the scope of such itype in transient blocks.
10636
10637 2007-08-14  Robert Dewar  <dewar@adacore.com>
10638             Ed Schonberg  <schonberg@adacore.com>
10639             Javier Miranda  <miranda@adacore.com>
10640
10641         * exp_util.ads, exp_util.adb: 
10642         This patch replaces a number of occurrences of explicit tests for N_Null
10643         with calls to Known_Null. This improves tracking of null values, since
10644         Known_Null also catches null constants, and variables currently known to
10645         be null, so we get better tracking.
10646         (Ensure_Defined): create an itype reference only in the scope of the
10647         itype.
10648         (Side_Effect_Free): A selected component of an access type that
10649         denotes a component with a rep clause must be treated as not
10650         side-effect free, because if it is part of a linked structure its
10651         value may be affected by a renaming.
10652         (Expand_Subtype_From_Expr): For limited objects initialized with build
10653         in place function calls, do nothing; otherwise we prematurely introduce
10654         an N_Reference node in the expression initializing the object, which
10655         breaks the circuitry that detects and adds the additional arguments to
10656         the called function. Bug found working in the new patch for statically
10657         allocated dispatch tables.
10658         (Is_Library_Level_Tagged_Type): New subprogram.
10659         (Remove_Side_Effects): If the expression of an elementary type is an
10660         operator treat as a function call.
10661         (Make_Literal_Range): If the index type of the array is not integer, use
10662         attributes properly to compute the constraint on the resulting aggregate
10663         which is a string.
10664
10665         * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
10666         class-wide type whose base type is an incomplete private type, leave
10667         class-wide type unfrozen so that freeze nodes can be generated
10668         properly at a later point.
10669         (Freeze_Entity, array case): Handle case of pragma Pack and component
10670         size attributre clause for same array.
10671
10672 2007-08-14  Vincent Celier  <celier@adacore.com>
10673
10674         * prj.ads, prj.adb: Update Project Manager to new attribute names for
10675         gprbuild.
10676         Allow all valid declarations in configuration project files
10677         (Reset): Initialize all tables and hash tables in the project tree data
10678         Major update of the Project Manager and of the project aware tools,
10679         including gprmake, so that the same sources in the GNAT repository
10680         can be used by gprbuild.
10681         (Slash_Id): Change type to be Path_Name_Type
10682         (Slash): Return a Path_Name_Type instead of a File_Name_Type
10683
10684         * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
10685         gprbuild.
10686         Update Project Manager to new attribute names for ghprbuild
10687         Allow all valid declarations in configuration project files
10688         Major update of the Project Manager and of the project aware tools,
10689         including gprmake, so that the same sources in the GNAT repository
10690         can be used by gprbuild.
10691
10692         * prj-com.ads: 
10693         Major update of the Project Manager and of the project aware tools,
10694         including gprmake, so that the same sources in the GNAT repository
10695         can be used by gprbuild.
10696
10697         * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
10698         insensitive flag for attributes with optional index.
10699         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
10700         array attribute, put the index in lower case.
10701         Update Project Manager to new attribute names for ghprbuild
10702         Allow all valid declarations in configuration project files
10703         Major update of the Project Manager and of the project aware tools,
10704         including gprmake, so that the same sources in the GNAT repository
10705         can be used by gprbuild.
10706
10707         * prj-env.ads, prj-env.adb: 
10708         Major update of the Project Manager and of the project aware tools,
10709         including gprmake, so that the same sources in the GNAT repository
10710         can be used by gprbuild.
10711         (Get_Reference): Change type of parameter Path to Path_Name_Type
10712
10713         * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
10714         removing '-' from the path to start with the first character of the
10715         next directory.
10716         Major update of the Project Manager and of the project aware tools,
10717         including gprmake, so that the same sources in the GNAT repository
10718         can be used by gprbuild.
10719         Major update of the Project Manager and of the project aware tools,
10720         including gprmake, so that the same sources in the GNAT repository
10721         can be used by gprbuild.
10722
10723         * prj-nmsc.ads, prj-nmsc.adb: 
10724         Update Project Manager to new attribute names for ghprbuild
10725         Allow all valid declarations in configuration project files
10726         (Search_Directories): Detect subunits that are specified with an
10727         attribute Body in package Naming. Do not replace a source/unit in the
10728         same project when the order of the source dirs are known. Detect
10729         duplicate sources/units in the same project when the order of the
10730         source dirs are not known.
10731         (Check_Ada_Name): Allow all identifiers that are not reserved words
10732         in Ada 95.
10733         Major update of the Project Manager and of the project aware tools,
10734         including gprmake, so that the same sources in the GNAT repository
10735         can be used by gprbuild.
10736         (Look_For_Sources): If the list of sources is empty, set the object
10737         directory of non extending project to nil.
10738         Change type of path name variables to be Path_Name_Type
10739         (Locate_Directory): Make sure that on Windows '/' is converted to '\',
10740         otherwise creating missing directories will fail.
10741
10742         * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb, 
10743         prj-part.ads, prj-part.adb:
10744         Major update of the Project Manager and of the project aware tools,
10745         including gprmake, so that the same sources in the GNAT repository
10746         can be used by gprbuild.
10747
10748         * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
10749         insensitive flag for attributes with optional index.
10750         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
10751         array attribute, put the index in lower case.
10752         (Parse_Variable_Reference): Allow the current project name to be used in
10753         the prefix of an attribute reference.
10754
10755         * prj-util.ads, prj-util.adb
10756         (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
10757         defaulted to False. When True, always check against indexes in lower
10758         case.
10759
10760         * snames.ads, snames.h, snames.adb: 
10761         Update Project Manager to new attribute names for gprbuild
10762         Allow all valid declarations in configuration project files
10763
10764 2007-08-14  Robert Dewar  <dewar@adacore.com>
10765             Ed Schonberg  <schonberg@adacore.com>
10766
10767         * opt.ads: Warning for non-local exception propagation now off by
10768         default
10769         New switch -gnatI to disable representation clauses
10770         Implement new pragma Implicit_Packing
10771
10772         * usage.adb: 
10773         Warning for non-local exception propagation now off by default
10774         Add warning for unchecked conversion of pointers wi different
10775         conventions.
10776         New switch -gnatI to disable representation clauses
10777
10778         * usage.adb: new switch -gnatyS
10779
10780         * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
10781         note that aggregates of anonymous array types are not flagged.
10782         -gnatwc now includes membership tests optimized away
10783         -gnatw.x warnings are now off by default
10784         Added conditional compilation Appendix
10785         Add documentation of -gnatI
10786         Add documentation for new -gnatyS style check
10787         Update documentation about SAL and auto-init on Windows.
10788
10789         * gnat_rm.texi: 
10790         Add documentation for pragma Check_Name and 'Enabled attribute
10791         Document that Eliminate on dispatching operation is ignored
10792         Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
10793         Document pragma Main
10794         Document pragma Implicit_Packing
10795
10796         * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
10797         different conventions
10798         New switch -gnatI to disable representation clauses
10799
10800         * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
10801         recognized, report the invalid characters including "-gnat" instead of
10802         just the first character in the switch.
10803         New switch -gnatI to disable representation clauses
10804         Set Warn_On_Object_Renames_Function true for -gnatg
10805
10806         * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
10807         Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
10808         Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
10809         to switch -aP (add directory to project search dir).
10810
10811         * par-prag.adb: Implement new pragma Implicit_Packing
10812
10813         * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
10814         type as having a non-standard representation, to force expansion on
10815         conversion to related types.
10816         (Analyze_Pragma): Warn on misspelled pragma
10817         (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
10818         Ensure consistent use of # in error messages
10819         Implement pragma Implicit_Packing
10820
10821 2007-08-14  Olivier Hainque  <hainque@adacore.com>
10822             Eric Botcazou  <ebotcazou@adacore.com>
10823
10824         * targtyps.c (get_target_maximum_default_alignment): New function.
10825         Maximum alignment
10826         that the compiler might choose by default for a type or object.
10827         (get_target_default_allocator_alignment): New function. Alignment known
10828         to be honored by the target default allocator.
10829         (get_target_maximum_allowed_alignment): New function. Maximum alignment
10830         we might accept for any type or object on the target.
10831         (get_target_maximum_alignment): Now synonym of maximum_default_alignment
10832
10833         * gigi.h (get_target_maximum_default_alignment): Declare new function.
10834         (get_target_default_allocator_alignment): Likewise.
10835         (get_target_maximum_allowed_alignment): Likewise.
10836
10837         PR ada/19037
10838         * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
10839         result of a function call, first try to use a stabilized reference for
10840         a constant renaming too.
10841         (validate_alignment): Use target_maximum_allowed_alignment instead of
10842         MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
10843         (gnat_to_gnu_entity): Use common nodes directly.
10844         (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
10845         alignment and size for the object.
10846         (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
10847         and N_Procedure_Call_Statement.
10848         (takes_address): Rename to lvalue_required_p, add third parameter
10849         'aliased' and adjust recursive calls.
10850         <N_Indexed_Component>: Update 'aliased' from the array type.
10851         <N_Selected_Component>: New case.
10852         <N_Object_Renaming_Declaration>: New Likewise.
10853         (Identifier_to_gnu): Adjust for above changes.
10854         (maybe_stabilize_reference) <CONST_DECL>: New case.
10855
10856         * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
10857         between type variants.
10858         (build_simple_component_ref): Likewise.
10859         (build_call_alloc_dealloc): Use target_default_allocator_alignment
10860         instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
10861         aligning type circuitry for allocations from the default storage pool.
10862         (build_allocator): Likewise.
10863         (build_simple_component_ref): Manually fold the reference for a
10864         constructor if the record type contains a template.
10865
10866         * utils.c (value_zerop): Delete.
10867         (gnat_init_decl_processing): Emit debug info for common types.
10868         (rest_of_record_type_compilation): If a union contains a field
10869         with a non-constant qualifier, treat it as variable-sized.
10870         (finish_record_type): Give the stub TYPE_DECL a name.
10871         (rest_of_record_type_compilation): Likewise.
10872         (convert) <CONSTRUCTOR>: New case.  Build a new constructor if
10873         types are equivalent array types.
10874         (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
10875         even if the type is not passed by reference.
10876         (static_ctors, static_dtors): Delete.
10877         (end_subprog_body): Do not record constructors and destructors.
10878         (build_global_cdtor): Delete.
10879         (gnat_write_global_declarations): Do not call build_global_cdtor.
10880
10881         * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
10882         -fRTS=rtp is specified.
10883         If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
10884         specified.
10885
10886         * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
10887         of the personality function with SJLJ exceptions.
10888
10889         * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
10890         the name of the personality function with SJLJ exceptions.
10891
10892 2007-08-14  Robert Dewar  <dewar@adacore.com>
10893             Ed Schonberg  <schonberg@adacore.com>
10894
10895         * par.ads, par.adb: Improve handling of extra right parens.
10896         (Par): Remove flag From_Limited_With_Clause.
10897
10898         * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
10899         Improve handling of extra right parens.
10900
10901 2007-08-14  Robert Dewar  <dewar@adacore.com>
10902
10903         * par-tchk.adb (TF_Semicolon): Improve error recovery
10904
10905 2007-08-14  Robert Dewar  <dewar@adacore.com>
10906             Ed Schonberg  <schonberg@adacore.com>
10907
10908         * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
10909         enumeration type, mark all literals as referenced.
10910         (Eval_Attribute, case 'Image): If the argument is an enumeration
10911         literal and names are available, constant-fold but mark nevertheless as
10912         non-static.
10913         Clean up function names.
10914         (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
10915         comment.
10916         (Requires_Simple_Name_Prefix): Removed.
10917
10918 2007-08-14  Robert Dewar  <dewar@adacore.com>
10919             Ed Schonberg  <schonberg@adacore.com>
10920
10921         * sem_ch11.adb: Improved warnings for unused variables
10922
10923         * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
10924         is a synchronized interface, the derived type is limited.
10925         (Analyze_Object_Declaration): Mark the potential coextensions in the
10926         definition and expression of an object declaration node.
10927         (Build_Derived_Type): For the completion of a private type declaration
10928         with a derived type declaration, chain the parent type's representation
10929         items to the last representation item of the derived type (not the
10930         first one) if they are not present already.
10931         (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
10932         object declaration of forward references to tags.
10933         (Access_Subprogram_Declaration): In Ada2005, anonymous access to
10934         subprogram types can appear as access discriminants of synchronized
10935         types.
10936         (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
10937         given in prefixed form as a selected component.
10938         (Process_Discriminants): If not all discriminants have defaults, place
10939         error message on a default that is present.
10940         (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
10941         extend a synchronized tagged type.
10942         Improved warnings for unused variables
10943         (Is_Visible_Component): Fix a visibility hole on a component inherited
10944         by a private extension when parent is itself declared as a private
10945         extension, and the derivation is in a child unit.
10946         (Find_Hidden_Interface): Move spec from the package body.
10947
10948 2007-08-14  Robert Dewar  <dewar@adacore.com>
10949             Ed Schonberg  <schonberg@adacore.com>
10950
10951         * sem_ch5.adb: Improve warnings on redundant assignments
10952
10953         * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
10954         parameter
10955         (Is_Synchronized_Tagged_Type): New subprogram that returns true
10956         in case of synchronized tagged types (AARM 3.9.4 (6/2)).
10957         (Safe_To_Capture_Value): Can now return True for constants, even if Cond
10958         is set to False. Improves handling of Known_[Not_]Null.
10959         (Wrong_Type): Special case address arithmetic attempt
10960         (Collect_Abstract_Interfaces): Add new formal to allow collecting
10961         abstract interfaces just using the partial view of private types.
10962         (Has_Abstract_Interfaces): Add new formal to allow checking types
10963         covering interfaces using the partial view of private types.
10964         (Is_Fully_Initialized_Type): Special VM case for uTag component. This
10965         component still needs to be defined in this case, but is never
10966         initialized as VMs are using other dispatching mechanisms.
10967         (Abstract_Interface_List): For a protected type, use base type to get
10968         proper declaration.
10969         Improve warnings on redundant assignments
10970         (Is_Variable): Handle properly an implicit dereference of a prefixed
10971         function call.
10972         (Build_Actual_Subtype): If this is an actual subtype for an
10973         unconstrained formal parameter, use the sloc of the body for the new
10974         declaration, to prevent anomalises in the debugger.
10975
10976 2007-08-14  Robert Dewar  <dewar@adacore.com>
10977
10978         * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
10979         dispatching operation
10980
10981 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10982             Gary Dismukes  <dismukes@adacore.com>
10983
10984         * exp_aggr.ads, 
10985         exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
10986         expanded aggregate code before allocator, and ahead of declaration for
10987         temporary, to prevent access before elaboration when the allocator is
10988         an actual for an access parameter.
10989         (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
10990         the TSD and the table of interfaces.
10991         (Convert_To_Assignments): Augment the test for delaying aggregate
10992         expansion for limited return statements to include the case of extended
10993         returns, to prevent creation of an unwanted transient scope.
10994         (Is_Static_Dispatch_Table_Aggregate): New subprogram.
10995         (Expand_Array_Aggregate): Handle aggregates associated with
10996         statically allocated dispatch tables.
10997         (Expand_Record_Aggregate): Handle aggregates associated with
10998         statically allocated dispatch tables.
10999         (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
11000         of anonymous access type.
11001
11002 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11003
11004         * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
11005         is a variable that renames a slice, use the variable itself in the
11006         expannsion when the renamed expression itself may be modified between
11007         the declaration of the renaming and the array assignment.
11008
11009 2007-08-14  Jerome Guitton  <guitton@adacore.com>
11010
11011         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb, 
11012         s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb, 
11013         s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
11014         New functions; dummy implementations.
11015
11016         * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
11017         functions, used to implement the multi-tasks mode routines on VxWorks.
11018
11019         * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
11020         New functions, thin
11021         binding to the VxWorks routines which have changed between VxWorks 5
11022         and 6.
11023         (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
11024         which are not callable from a RTP.
11025
11026         * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
11027         implemented for the multi-tasks mode on VxWorks 5 and 6.
11028
11029         * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
11030
11031         * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
11032         functions.
11033
11034 2007-08-14  Vincent Celier  <celier@adacore.com>
11035
11036         * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb, 
11037         gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
11038         mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb, 
11039         mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb, 
11040         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, 
11041         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
11042         mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
11043         procedure.
11044         (Major_Id_Name): New function.
11045         mlib-tgt.ads/mlib.tgt.adb:
11046         (Library_Major_Minor_Id_Supported): New function, default returns True
11047         Most mlib-tgt-*.adb that support shared libraries and symbolic links:
11048         (Build_Dynamic_Library): Add support for major/minor ids for shared libs
11049         Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
11050         Implementation of Library_Major_Minor_Id_Supported returns False
11051         clean.adb:
11052         (Clean_Library_Directory): If major/minor ids are supported, clean all
11053         library files.
11054         Major update of the Project Manager and of the project aware tools,
11055         including gprmake, so that the same sources in the GNAT repository
11056         can be used by gprbuild.
11057
11058 2007-08-14  Olivier Hainque  <hainque@adacore.com>
11059
11060         * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
11061         (GCC_ZCX_Support): Switch to True.
11062         
11063         * s-intman-solaris.adb (Notify_Exception): Call
11064         Adjust_Context_For_Raise before raising, as expected for signal
11065         handlers in general.
11066         
11067         * s-intman-posix.adb (Notify_Exception): Remove declaration of
11068         Adjust_Context_For_Raise, moved to the spec of this unit to be visible
11069         to other implementation bodies.
11070         
11071         * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
11072         be visible by multiple implementation bodies.
11073         
11074         * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
11075         only for conditions coming from hardware.
11076         [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
11077         adjustments to signal context prior to exception raise from signal
11078         handler.
11079         (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
11080         mode.
11081         Solaris section: (__gnat_adjust_context_for_raise): New function.
11082         Implementation of the machine context adjustments to perform prior to
11083         raise from a signal handler. Version for both sparc and x86.
11084         (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
11085         (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
11086         prior to raising as expected for any handler, before possible nested
11087         faults to make sure all the contexts in a chain have been adjusted by
11088         the time we propagate.
11089
11090 2007-08-14  Pascal Obry  <obry@adacore.com>
11091
11092         * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
11093         (SYSTEM_INFO): New record.
11094         (SetThreadIdealProcessor): New imported routine needed for supporting
11095         task_info pragma on Windows.
11096
11097         * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
11098         info can be applied to the current host.
11099         (Create_Task): Set the ideal processor if information is present.
11100
11101         * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
11102         a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
11103
11104 2007-08-14  Olivier Hainque  <hainque@adacore.com>
11105
11106         * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
11107         stack size and initial stack pointer value for a given task.
11108         (Enter_Task): Get the stack attributes of the task we are entering and
11109         let the stack checking engine know about them.
11110
11111         * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
11112         Let the stack-checking engine know about the initial sp value and stack
11113         size associated with the current task.
11114         (Set_Stack_Info): If a stack base has been notified for the current
11115         task, honor it. Fallback to the previous less accurate method otherwise.
11116
11117         * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
11118
11119 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11120
11121         * sem_ch10.adb: Create a limited view of an incomplete type, to make
11122         treatment of limited views uniform for all visible declarations in a
11123         limited_withed package.
11124         Set flag indicating that a subprogram body for a child unit has a
11125         generated spec.
11126         (Analyze_Compilation_Unit): If unit is a subprogram body that has no
11127         separate declaration, remove the unit name from visibility after
11128         compilation, so that environment is clean for subsequent compilations.
11129         (Install_Limited_Context_Clauses): Do not install a
11130         limited_private_with_clause unless the current unit is a body or a
11131         private child unit.
11132         (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
11133         in the same fashion.
11134         (Install_Limited_Withed_Unit): Do not install a limited with clause if
11135         it applies to the declaration of the current package body.
11136         (Remove_Private_With_Clauses): If there is a regular with_clause for
11137         the unit, delete Private_With_Clause from context, to prevent improper
11138         hiding when processing subsequent nested packages and instantiations.
11139
11140 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
11141
11142         * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
11143         dir/file, device:/dir/file, and device:drive_letter:/dir/file as
11144         representing absolute path names.
11145         __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
11146
11147         * cstreams.c (__gnat_full_name for VxWorks): Use
11148         __gnat_is_absolute_path to detect whether we need to add the current
11149         directory to normalize the path.
11150
11151 2007-08-14  Javier Miranda  <miranda@adacore.com>
11152
11153         * a-tags.ads, 
11154         a-tags.adb (Displace): Associate a message with the raised CE
11155         exception.
11156         (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
11157         To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
11158         To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
11159         spec.
11160         (Default_Prim_Op_Count): Removed.
11161         (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
11162         Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
11163         Remove pragma Inline_Always.
11164
11165         * rtsfind.ads (Default_Prim_Op_Count): Removed
11166         (Max_Predef_Prims): New entity
11167         (RE_Expanded_Name): Removed
11168         (RE_HT_Link): Removed
11169         (RE_Iface_Tag): Remmoved
11170         (RE_Ifaces_Table): Removed
11171         (RE_Interfaces_Array): Removed
11172         (RE_Interface_Data_Element): Removed
11173         (RE_Nb_Ifaces): Removed
11174         (RE_RC_Offset): Removed
11175         (RE_Static_Offset_To_Top): Removed
11176
11177         * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
11178         formal.
11179         (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
11180         Prim_Op_Count by Max_Predef_Prims.
11181
11182 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11183             Vincent Celier  <celier@adacore.com>
11184
11185         * binde.adb (Elab_All_Links): Remove unnecessary call to
11186         Generic_Separately_Compiled (if a unit satisfies this predicate, there
11187         won't be an associated Afile).
11188         (Elab_All_Links): Fail if a referenced unit cannot be found
11189
11190         * bindgen.adb: 
11191         Fix comments in bindgen regarding consistency checks done in Bcheck:
11192         the checks are made across units within a partition, not across several
11193         partitions.
11194         Fix generation of C binder file for VxWorks.
11195
11196         * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
11197         Generic_May_Lack_ALI, more descriptive of the current use of the
11198         predicate, and update documentation.
11199
11200         * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
11201         reorganization and documentation update for the case of predefined
11202         library generics (for which we do not reference an Afile).
11203
11204 2007-08-14  Robert Dewar  <dewar@adacore.com>
11205
11206         * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
11207         s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
11208         s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
11209         s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
11210         s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
11211         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
11212         s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
11213         s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
11214         exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
11215         s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
11216         s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
11217         a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
11218         s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
11219         g-altcon.adb: Minor reformatting
11220
11221         ada-tree.h: Delete empty line.
11222
11223         ali.ads: Minor reformatting
11224         Clarification of comments.
11225         Minor spelling correction
11226
11227         * exp_dbug.adb: Add Warnings Off to suppress new warning
11228
11229         * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
11230         formal
11231
11232         * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
11233         value
11234
11235         * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
11236
11237         * a-textio.ads: Reorder the standard input/output/error declarations
11238         for consistency.
11239
11240         * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
11241
11242         * par-ch2.adb: Recognize RM specially in errout
11243         Change 'R'M to RM in all error messages
11244
11245         * scng.adb: Recognize RM specially in errout
11246
11247         * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
11248         N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
11249
11250         * s-direio.adb: Add missing routine header box.
11251
11252         * sem_attr.ads: Add ??? comments
11253
11254         * sem_eval.adb: Recognize RM specially in errout
11255         Change 'R'M to RM in all error messages
11256
11257         * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
11258
11259         * s-tasinf.ads: Fix minor comment typo.
11260
11261         * a-cihama.adb: Minor comment addition
11262
11263         * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
11264         formal
11265
11266         * s-tasinf-tru64.ads: Fix minor comment typo.
11267
11268         * itypes.ads: Comment update.
11269
11270         * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
11271         anymore.
11272
11273         * argv.c: Added protection against null gnat_argv and gnat_envp.
11274
11275         * bcheck.adb (Check_Consistency): Use correct markup character ({) in
11276         warning message when Tolerate_Consistency_Errors is True.
11277
11278         * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
11279         Any_Id, as this subprogram is only applicable to *type* entities (it
11280         sets RM_Size). Instead initialize just Esize and Alignment.
11281
11282 2007-08-14  Bob Duff  <duff@adacore.com>
11283
11284         * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads, 
11285         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
11286         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads, 
11287         a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
11288         a-coorse.ads (Next): Applied pragma Inline.
11289         Make all Containers packages Remote_Types (unless they are already
11290         Pure).
11291         (Previous): applied pragma Inline
11292         (Elements_Type): is now a record instead of an array
11293
11294 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11295
11296         * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
11297         of Set_Item.
11298         (Set_Item): When the new item is an element of the currently allocated
11299         table passed by reference, save a copy on the stack if we're going
11300         to reallocate. Also, in Table.Set_Item, make sure we test the proper
11301         variable to determine whether to call Set_Last.
11302
11303         * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
11304         symbols-vms.adb, symbols-processing-vms-alpha.adb,
11305         symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
11306         some occurrences of the pattern
11307            T.Increment_Last;
11308            T.Table (T.Last) := Value;
11309         with a cleaner call to
11310            T.Append (Value);
11311
11312 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11313             Gary Dismukes  <dismukes@adacore.com>
11314             Thomas Quinot  <quinot@adacore.com>
11315
11316         * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
11317         derived type with interface progenitors use the analyzed formal as the
11318         parent of the actual, to create renamings for all the inherited
11319         operations in Derive_Subprograms.
11320         (Collect_Previous_Instances): new procedure within of
11321         Load_Parent_Of_Generic, to instantiate all bodies in the compilation
11322         unit being loaded, to ensure that the generation of global symbols is
11323         consistent in different compilation modes.
11324         (Is_Tagged_Ancestor): New function testing the ancestor relation that
11325         takes progenitor types into account.
11326         (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
11327         traversing over the primitives of the formal and actual types to locate
11328         any abstract subprograms of the actual type that correspond to a
11329         nonabstract subprogram of the formal type's ancestor type(s), and issue
11330         an error if such is found.
11331         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
11332         Instantiate_Package_Body, Instantiate_Subprogram_Body):
11333         Remove bogus guard around calls to Inherit_Context.
11334         (Reset_Entity): If the entity is the selector of a selected component
11335         that denotes a named number, propagate constant-folding to the generic
11336         template only if the named number is global to the generic unit.
11337         (Set_Instance_Env): Only reset the compilation switches when compiling
11338         a predefined or internal unit.
11339
11340 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11341
11342         * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
11343         parameter to determine whether operation applies to the prefix.
11344         (Complete_Object_Operation): If actual has an access type and
11345         controlling formal is not an in_parameter, reject the actual if it is
11346         an access_to_constant type.
11347         (Try_Primitive_Operation): If the type of the prefix is a formal tagged
11348         type, the candidate operations are found in the scope of declaration of
11349         the type, because the type has no primitive subprograms.
11350         (Analyze_Selected_Component): If prefix is class-wide, and root type is
11351         a private extension, only examine visible components before trying to
11352         analyze as a prefixed call.
11353         Change Entity_List to Type_To_Use, for better readability.
11354         (Has_Fixed_Op): Use base type when checking whether the type of an
11355         operator has a user-defined multiplication/division
11356         (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
11357         user-defined operators are available for fixed-point types.
11358
11359 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11360             Ed Schonberg  <schonberg@adacore.com>
11361
11362         * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
11363         formal At_Any_Place indicating, when True, that we want to test for
11364         availability of the stream attribute at any place (as opposed to the
11365         current visibility context only).
11366         (Missing_Read_Write_Attributes): A stream attribute is missing for the
11367         purpose of enforcing E.2.2(8) only if it is not available at any place.
11368         Take into account the Ada2005 pragma Has_Preelaborable_Initialization
11369         when checking the legality of an extension aggregate in a preelaborable
11370         package. Treat the literal null as a valid default expression in a
11371         component declaration for a type with preelaborable initialization.
11372         A limited interface is a legal progenitor for the designated type of a
11373         remote access to class-wide type.
11374
11375 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11376             Ed Schonberg  <schonberg@adacore.com>
11377
11378         * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
11379         reference): Use correct entity as denoted entity for the selector of
11380         the rewritten node.
11381         (Find_Direct_Name): Add comment about Generate_Reference incorrectly
11382         setting the Referenced_As_LHS flag for entities that are implicitly
11383         dereferenced.
11384         (Find_Type): If the type is an internally generated incomplete type,
11385         mark the full view as referenced, to prevent spurious warnings.
11386         (Find_Selected_Component, Has_Components): Handle properly non-limited
11387         views that are themselves incomplete types.
11388         Handle interfaces visible through limited-with clauses.
11389         (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
11390         subprogram generic actual for which we have generated a renaming.
11391         Warn when the renaming introduces a homonym of
11392         the renamed entity, and the renamed entity is directly visible.
11393
11394 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11395             Hristian Kirtchev  <kirtchev@adacore.com>
11396
11397         * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
11398         appear in the subtree to the current allocator if it is not a static
11399         coextension.
11400         (Resolve_Allocator): Perform cleanup if resolution has determined that
11401         the allocator is not a coextension.
11402         (Resolve): Skip an interpretation hidden by an abstract operator only
11403         when the type of the interpretation matches that of the context.
11404         (Resolve): When looping through all possible interpretations of a node,
11405         do not consider those that are hidden by abstract operators.
11406         (Resolve_Actuals): When verifying that an access to class-wide object
11407         is an actual  for a controlling formal, ignore anonymous access to
11408         subprograms whose return type is an access to class_wide type.
11409         (Resolve_Slice): If the prefix of the slice is a selected component
11410         whose type depends on discriminants, build its actual subtype before
11411         applying range checks on the bounds of the slice.
11412         (Valid_Conversion): In an instance or inlined body, compare root types,
11413         to prevent anomalies between private and public views.
11414         (Resolve): Improve error message for ambiguous fixed multiplication
11415         expressions that involve universal_fixed multiplying operations.
11416
11417 2007-08-14  Javier Miranda  <miranda@adacore.com>
11418             Hristian Kirtchev  <kirtchev@adacore.com>
11419
11420         * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
11421         location to allow the correct generation of errors in case of
11422         restrictions applied to the expanded code.
11423         (Expand_Entry_Barrier): Remove all generated renamings for a barrier
11424         function if the condition does not reference them.
11425         (Expand_Entry_Body_Declarations): Mark the index constant as having a
11426         valid value.
11427
11428 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11429             Pablo Oliveira  <oliveira@adacore.com>
11430
11431         * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
11432         typecode parameters for a union (in a variant record), remove
11433         extraneous layer of Any wrapping for member label.
11434         (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
11435         elabration statements, register the package with the name server
11436         at the beginning, not at the end, of the elaboration statements so
11437         that they can create remote access to subprogram values that designate
11438         remote subprograms from the package.
11439
11440 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
11441
11442         * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
11443         values to compute the number of seconds since the Unix Epoc in order to
11444         account for Daylight Savings Time. Perform special processing for dates
11445         that are earlier than the Unix Epoc to obtain a negative number.
11446
11447 2007-08-14  Emmanuel Briot  <briot@adacore.com>
11448
11449         * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
11450         switches.
11451
11452 2007-08-14  Eric Botcazou  <ebotcazou@adacore.com>
11453
11454         * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
11455         binder-generated file is not in Ada.
11456         Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
11457         recorded in the ALI file.
11458         Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
11459
11460 2007-08-14  Vincent Celier  <celier@adacore.com>
11461
11462         * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
11463         (Output_Source): Do nothing if parameter is No_Sdep_Id
11464
11465         * make.adb (Gnatmake): Do not rebuild an archive simply because a
11466         shared library it imports has a later time stamp.
11467         (Check): Resolve the symbolic links in the path name of the object
11468         directory.
11469         Check that the ALI file is in the correct object directory
11470         Check if a file name does not correspond to the mapping of units
11471         to file names.
11472         (Display_Version): New procedure
11473         (Initialize): Process switches --version and --help
11474         Use type Path_Name_Type for path name
11475
11476 2007-08-14  Paul Hilfinger  <hilfinger@adacore.com>
11477
11478         * impunit.adb: Re-organize System.Random_Numbers and
11479         GNAT.Random_Numbers and add to builds.
11480
11481         * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
11482
11483         * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
11484
11485         * a-assert.ads, a-assert.adb: New files.
11486
11487 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
11488
11489         * layout.adb (Layout_Type): In the case of access-to-subprogram types,
11490         if AAMP_On_Target is True, then the size of the type encompasses two
11491         addresses (a static link and a subprogram address), except in the case
11492         of library-level access types.
11493
11494 2007-08-14  Vincent Celier  <celier@adacore.com>
11495
11496         * output.ads, output.adb (Write_Eol): Remove trailing spaces before
11497         writing the line.
11498         (Write_Eol_Keep_Blanks): New procedure to write a line, including
11499         possible trailing spaces.
11500         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
11501
11502 2007-08-14  Javier Miranda  <miranda@adacore.com>
11503
11504         * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
11505         null-excluding access types.
11506
11507 2007-08-14  Javier Miranda  <miranda@adacore.com>
11508
11509         * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
11510         that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
11511         of private types add missing check on matching interfaces in the
11512         partial and full declarations.
11513         (Analyze_Protected_Type): Code cleanup.
11514         (Analyze_Task_Type): Code cleanup.
11515
11516 2007-08-14  Javier Miranda  <miranda@adacore.com>
11517
11518         * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
11519         generated interface thunk.
11520
11521 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11522
11523         * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
11524         obsolescent warning on application of 'Class to an incomplete type.
11525
11526         * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
11527         prevent obsolescent warning on application of 'Class to an incomplete
11528         type.
11529
11530 2007-08-14  Pascal Obry  <obry@adacore.com>
11531
11532         * s-fileio.adb (Is_Open): Add check for usability of the underlying
11533         file stream.
11534
11535 2007-08-14  Cyrille Comar  <comar@adacore.com>
11536
11537         * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
11538         since it is potentially used in cases implying double finalization of
11539         the same object.
11540
11541 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
11542
11543         * s-tasini.adb (Get_Stack_Info): Move this function to
11544         System.Soft_Links.Tasking because it is common to the full and the
11545         restricted run times.
11546         (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
11547         in SSL.Tasking.Init_Tasking_Soft_Links.
11548
11549         * s-solita.adb (Get_Stack_Info): Function moved from
11550         System.Tasking.Initialization because it is common to the full and the
11551         restricted run times.
11552         (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
11553
11554 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
11555
11556         * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
11557         s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
11558         (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
11559         parameter.
11560
11561         * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
11562         guard to 12K.
11563
11564 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
11565
11566         * s-veboop.adb (SU): New named number initialized to
11567         System.Storage_Unit.
11568         (True_Val): The initialization expression is revised to use SU (=
11569         Storage_Unit) rather than assuming 8 for the component size of an
11570         unpacked Boolean array.
11571
11572 2007-08-14  Tristan Gingold  <gingold@adacore.com>
11573
11574         * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
11575
11576         * tb-ivms.c: New file.
11577
11578         * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
11579
11580 2007-08-14  Geert Bosch  <bosch@adacore.com>
11581
11582         * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
11583         s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
11584         Add required linker pragmas for automatically linking with the gnalasup
11585         linear algebra support library, and the systems math library.
11586         Rename cdot to cdotu and zdot to zdotu.
11587         Update header comment to describe purpose of package.
11588
11589 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11590
11591         * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
11592         an explicitly specified Associated_Final_Chain, use that list.
11593         (Expand_N_Package_Body): Build dispatch tables of library level tagged
11594         types.
11595         (Expand_N_Package_Declaration): Build dispatch tables of library level
11596         tagged types. Minor code cleanup.
11597
11598 2007-08-14  Vincent Celier  <celier@adacore.com>
11599
11600         * gnatchop.adb (Terminate_Program): Remove exception and use
11601         Types.Terminate_Program instead.
11602
11603         * osint.ads, osint.adb (Current_Exit_Status): New global variable
11604         (Find_Program_Name): Added protection against empty name.
11605         (OS_Exit_Through_Exception): New procedure
11606
11607         * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
11608         (OS_Exit_Default): New procedure that contains the previous
11609         implementation of procedure OS_Exit.
11610         (Final_Value): Remove obsolete Interix stuff.
11611
11612 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11613
11614         * g-socket.ads: Reorganize example code so that it also works on
11615         Windows XP.
11616
11617 2007-08-14  Tristan Gingold  <gingold@adacore.com>
11618
11619         * g-trasym.ads: AIX now supports symbolic backtraces.
11620
11621 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11622
11623         * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
11624         units being loaded to detect circularities. A circularity may be
11625         present even if the current chain of pending units to load starts from
11626         a limited_with_clause.
11627
11628         * lib-load.ads: Change profile of Load_Unit to use a with_clause
11629         rather than a boolean flag, in order to detect circularities in
11630         with_clauses.
11631
11632         * par-load.adb: Use current with_clause in calls to Load_Unit, rather
11633         than propagating the From_Limited_With flag, in order to handle
11634         properly circularities involving with_clauses.
11635
11636 2007-08-14  Nicolas Setton  <setton@adacore.com>
11637
11638         * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
11639         warnings.
11640
11641 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
11642
11643         * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
11644         to build for libgnala.
11645         libgnat: Add rules to build libgnala.a
11646         (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
11647         target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
11648         Add s-osinte-vxworks-kernel.adb to the target pairs of the
11649         kernel run-time lib for VxWorks 6, which would provide a different
11650         implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
11651         x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
11652         running ZCX by default.
11653         Add g-sttsne-locking to LynxOS version.
11654         Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
11655         On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
11656
11657         * system-darwin-x86.ads: New file.
11658
11659         * Make-lang.in: Delete files before copying onto them, so if they are
11660         read-only, the copy won't fail.
11661         Update dependencies
11662
11663 2007-08-14  Pascal Obry  <obry@adacore.com>
11664
11665         * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
11666         naming scheme.
11667
11668 2007-08-14  Vincent Celier  <celier@adacore.com>
11669
11670         * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
11671         (Gcc): Initialize Gcc_Name at the first call
11672
11673 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11674
11675         * sem_ch7.adb (Analyze_Package_Specification): Do not install private
11676         with_clauses of the enclosing unit when analyzing the package
11677         specification of a nested instance.
11678
11679 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
11680
11681         * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
11682         (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
11683         Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
11684         layout of N_Allocator.
11685
11686 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11687
11688         * rtsfind.adb (Check_RPC): Add PCS version check.
11689
11690         * gnatvsn.ads, gnatvsn.adb: Add PCS version.
11691         (Gnat_Free_Software): New function.
11692
11693         * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
11694         the PCS_Version value from s-parint, used to check that it is consistent
11695         with what exp_dist expects.
11696
11697         * s-parint.ads (PCS_Version): New entity for checking consistency
11698         between exp_dist and PCS.
11699
11700         * gen-soccon.c: (SO_REUSEPORT): New constant.
11701
11702 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
11703
11704         * a-calfor.adb (Image (Duration; Boolean)): Change type of local
11705         variable Sub_Second to Duration in order to accomodate a larger range
11706         of arithmetic operations.
11707
11708 2007-08-14  Bob Duff  <duff@adacore.com>
11709
11710         * g-sttsne-locking.ads: Move comments from spec to body.
11711         * g-sttsne-locking.adb: Move comments from spec to body.
11712         * g-sttsne-vxworks.ads: Removed.
11713         * g-sttsne-vxworks.adb: Removed.
11714
11715 2007-08-11  Ian Lance Taylor  <iant@google.com>
11716
11717         * misc.c (gnat_get_alias_set): Change return type to
11718         alias_set_type.
11719
11720 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11721
11722         * decl.c, utils2.c: Fix whitespace in last change.
11723
11724 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11725
11726         * decl.c (compare_field_bitpos): Constify.
11727         * utils2.c (compare_elmt_bitpos): Likewise.
11728
11729 2007-07-27  Aurelien Jarno  <aurelien@aurel32.net>
11730
11731         * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by 
11732         anonymous access type.
11733         (pthread_sigmask): Now take an access sigset_t.
11734
11735 2007-07-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
11736
11737         * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
11738         
11739 2007-06-21  Eric Botcazou  <ebotcazou@adacore.com>
11740
11741         PR tree-optimization/25737
11742         * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
11743
11744 2007-06-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11745
11746         * trans.c (Attribute_to_gnu): When subtracting an
11747         offset from a pointer, use POINTER_PLUS_EXPR with
11748         NEGATE_EXPR instead of MINUS_EXPR.
11749         (gnat_to_gnu): Likewise.
11750         * utils.c (convert): When converting between
11751         thin pointers, use POINTER_PLUS_EXPR and sizetype
11752         for the offset.
11753         * utils2.c (known_alignment): POINTER_PLUS_EXPR
11754         have the same semantics as PLUS_EXPR for alignment.
11755         (build_binary_op): Add support for the semantics of
11756         POINTER_PLUS_EXPR's operands.
11757         When adding an offset to a pointer, use POINTER_PLUS_EXPR.
11758
11759 2007-06-11  Rafael Avila de Espindola  <espindola@google.com>
11760
11761         * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
11762         of get_signed_or_unsigned_type.
11763         * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
11764
11765 2007-06-11  Bob Duff  <duff@adacore.com>
11766             Thomas Quinot  <quinot@adacore.com>
11767
11768         * g-stsifd-sockets.adb (Create): Work around strange behavior of
11769         'bind' on windows that causes 'connect' to fail intermittently, by
11770         retrying the 'bind'.
11771         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11772
11773 2007-06-10  Duncan Sands  <baldrick@free.fr>
11774
11775         * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
11776         than to void, for the fields when making a new fat pointer type.
11777         (gnat_substitute_in_type): Now substitute_in_type.
11778         * gigi.h (gnat_substitute_in_type): Likewise.  Adjust recursive calls.
11779         * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
11780         * utils.c (update_pointer_to): Update fat pointers by updating the
11781         dummy node pointers used for the fields.
11782
11783 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11784             Bob Duff  <duff@adacore.com>
11785
11786         * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
11787         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads, 
11788         g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads:  Add new
11789         constant Thread_Blocking_IO, always True by default, set False
11790         on a per-runtime basis.
11791         (Need_Netdb_Buffer): New constant.
11792
11793         * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
11794         g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
11795         files.
11796
11797         * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
11798         g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
11799         Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
11800         child package Task_Safe_NetDB
11801         (Host_Error_Messages): Add stub body.
11802         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11803
11804         * g-soccon-mingw.ads: Add Windows-specific constants.
11805         (Need_Netdb_Buffer): New constant.
11806         (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
11807         wrapper and import inet_addr(3) from the standard sockets library
11808         directly instead.
11809         (In_Addr): Add alignment clause.
11810         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11811
11812 2007-06-06  Robert Dewar  <dewar@adacore.com>
11813
11814         * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
11815         s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
11816         s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
11817         s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
11818         s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
11819         s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
11820         a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
11821         a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
11822         a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
11823         g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
11824         g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
11825         i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
11826         s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
11827         s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
11828         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
11829         s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
11830         s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
11831         s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
11832         s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
11833         s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
11834         s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
11835         s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
11836         s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
11837         s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
11838         s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
11839         s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
11840         s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
11841         s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
11842         s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
11843         s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
11844         s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
11845         a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
11846         Unchecked_* by Ada.Unchecked_*
11847
11848 2007-06-06  Robert Dewar  <dewar@adacore.com>
11849
11850         * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
11851         s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
11852         g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
11853         output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
11854         g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
11855         a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
11856
11857         * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
11858         s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
11859         s-tasloc.adb, s-tasloc.ads: New files.
11860
11861 2007-06-06  Bob Duff  <duff@adacore.com>
11862
11863         * g-expect-vms.adb: 
11864         (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
11865         * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
11866         (Send_Signal, Close): Raise Invalid_Process if the process id is
11867         invalid.
11868         (Pattern_Matcher_Access): Is now a general access type to be able to
11869         use aliased string.
11870
11871 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11872             Arnaud Charlet  <charlet@adacore.com>
11873
11874         * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
11875         (SIGEMT is now used instead of SIGTERM on AIX).
11876
11877         * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
11878         (Time_Slice_Supported): Set to True.
11879         Use SIGEMT instead of SIGTERM as SIGADAABORT.
11880
11881 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
11882
11883         * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
11884         (Time, Time)): Use To_Relative_Time rather than manual calculation to
11885         express the bounds of Duration as Time. Raise Time_Error when the
11886         result is greater or equal to the higher bound of Duration (on the
11887         margin case).
11888         ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
11889         Ada_High_And_Leaps.
11890         ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
11891         Ada_High_And_Leaps.
11892         ("-" (Time, Time)): Reorder code.
11893         (All_Leap_Seconds): Removed.
11894         (Arithmetic_Operations.Add): Remove sign related kludge.
11895         (Arithmetic_Operations.Difference): Control the leaps seconds processing
11896         with flag Leap_Support.
11897         (Arithmetic_Operations.Subtract): Remove sign related kludge.
11898         (Check_Within_Time_Bounds): New procedure.
11899         (Clock): Control the leap seconds processing with flag Leap_Support.
11900         (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
11901         (Formatting_Operations.Split): Control the leap seconds processing with
11902         flag Leap_Support.
11903         (Formatting_Operations.Time_Of): Control the leaps seconds processing
11904         with flag Leap_Support. Adjust the year, month and day (if applicable)
11905         when the value of day seconds designates a new day.
11906         (Split): Use parameter associations for better readability. Integrate
11907         flag Is_Ada_05.
11908         (Time_Of): Use parameter associations for better readability. Integrate
11909         flag Is_Ada_05.
11910
11911         * a-calfor.adb (Split): Use parameter associations for better
11912         readability. Integrate flag Is_Ada_05.
11913         (Time_Of): Remove flag Leap_Checks. Use parameter associations for
11914         better readability. Integrate flag Is_Ada_05.
11915
11916 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
11917
11918         * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb, 
11919         s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb, 
11920         s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb, 
11921         s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads, 
11922         s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb, 
11923         s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb, 
11924         s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads, 
11925         s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads, 
11926         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads, 
11927         s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
11928         s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
11929         time when entering this routine to detect a backward clock setting
11930         (manual setting or DST adjustment), to avoid waiting for a longer delay
11931         than needed.
11932         (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
11933         Remove handling of deferred priority change, and replace by setting the
11934         task priority directly, as required by AI-188.
11935         Update comments.
11936         (Max_Task_Image_Length): New constant.
11937         Replace Warnings (Off) by Unreferenced pragma, cleaner.
11938         (Dynamic_Priority_Support): Removed, no longer needed.
11939         (Poll_Base_Priority_Change): Ditto.
11940         (Set_Ceiling): Add this procedure to change the ceiling priority
11941         associated to a lock. This is a dummy implementation because dynamic
11942         priority ceilings are not supported by the underlying system.
11943
11944         * a-dynpri.adb (Set_Priority): Take into account case where Target is
11945         accepting a RV with its priority boosted.
11946         Remove handling of deferred priority change, and replace by setting the
11947         task priority directly, as required by AI-188.
11948
11949         * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
11950         Succeeded = True.
11951         Remove handling of deferred priority change, and replace by setting the
11952         task priority directly, as required by AI-188.
11953         (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
11954         of Self_Id earlier.
11955
11956         * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
11957         (Poll_Base_Priority_Change): Removed.
11958         Code clean up: use SSL.Current_Target_Exception.
11959
11960         * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
11961         to run as this is a potentially dispatching point.
11962         (Call_Synchronous): Use Local_Defer_Abort.
11963         (Callable): Relax assertion.
11964         (Selective_Wait): Relax assertion in case abort is not allowed.
11965         Remove handling of deferred priority change, and replace by setting the
11966         task priority directly, as required by AI-188.
11967
11968         * s-tasuti.adb (Make_Passive): Adjust assertions.
11969         Remove handling of deferred priority change, and replace by setting the
11970         task priority directly, as required by AI-188.
11971
11972 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
11973
11974         * system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
11975         system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, 
11976         system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads, 
11977         system-vxworks-mips.ads, system-vxworks-alpha.ads, 
11978         system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads, 
11979         system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads, 
11980         system-interix.ads, system-linux-hppa.ads, system-tru64.ads, 
11981         system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads, 
11982         system-solaris-sparcv9.ads, system-vms.ads, system.ads,
11983         system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
11984         system-linux-ia64.ads: Document mapping between Ada and OS priorities.
11985         This patch changes the largest non-binary modulus from 2**31-1 to
11986         2**32-1.
11987         (Compiler_System_Version): Removed, no longer used.
11988         Clean up system files by removing flags only used on a single target.
11989         Also remove obsolete flags, only used during bootstrap from system.ads
11990         (Address): Add a pragma Preelaborable_Initialization.
11991
11992         * system-aix.ads:  Ditto.
11993         (GCC_ZCX_Support): Set to true.
11994         Update priority range on AIX and map Ada priorities to target
11995         priorities appropriately for different scheduling policies.
11996
11997         * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
11998
11999 2007-06-06  Vincent Celier  <celier@adacore.com>
12000
12001         * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
12002         mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
12003
12004         * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb, 
12005         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb, 
12006         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, 
12007         mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb, 
12008         mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
12009         MLib.Tgt, containing the default versions of the exported subprograms.
12010         For each platform, create a specific version of the body of new child
12011         package MLib.Tgt.Specific that contains only the body of subprograms
12012         that are different from the default.
12013         (Archive_Builder_Append_Options): New function.
12014
12015 2007-06-06  Matthew Gingell  <gingell@adacore.com>
12016
12017         * s-osinte-aix.adb: Map Ada priorities to target priorities
12018         appropriately for different scheduling policies.
12019
12020 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12021
12022         * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
12023         its C counterpart.
12024         Remove references to Unchecked_Conversion, and use Ada.xxx instead.
12025         Replace Unchecked_Conversion by Ada.Unchecked_Conversion. 
12026
12027 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
12028
12029         * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
12030         Noop on VMS, added for interface commonality.
12031
12032 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
12033             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12034             Olivier Hainque  <hainque@adacore.com>
12035
12036         * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
12037         renamed expression of a full renaming at toplevel.
12038         (gnat_to_gnu_entity, case object): If not defining, do not look inside
12039         the values the constant is initialized to if it is an N_Allocator.
12040         (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
12041         TYPE_SIZE_UNIT of inner types after the stride is elaborated.
12042         (make_aligning_type): Accept an extra ROOM argument for storage to be
12043         made available before the aligned field, and an extra BASE_ALIGN
12044         argument for callers to pass the alignment guaranteed to be honored for
12045         the whole aligning object. Avoid call to finish_record_type, which only
12046         interferes with the sizes we want to set.
12047         (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
12048         make_aligning_type for super-aligned objects on stack.
12049         (components_to_record): Pass the adjusted size of the type when creating
12050         fields in the qualified union for the variant part.
12051         (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
12052         (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
12053         packed array type.
12054         (maybe_pad_type): Set TYPE_USER_ALIGN.
12055         (make_aligning_type): Likewise.
12056         ALIGN argument is unsigned int.
12057         (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
12058         (gnat_to_gnu_param): Likewise, for parameters.
12059         (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
12060         if it is constant and stems from a function call.
12061         (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
12062         of the record is specified.  Adjust accordingly.
12063         (adjust_packed): New static function.
12064         (gnat_to_gnu_field): Use it to adjust the packedness setting.
12065         (components_to_record): Likewise.
12066         (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
12067         side-effects if the object is deemed constant.
12068         (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
12069         type instead of merely finalizing it.  Tidy.
12070         <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
12071         <E_Access_Type>: Likewise.
12072         (defer_debug_incomplete_list): Rename to defer_finalize_list.
12073         (defer_debug_level): Delete.
12074         (gnat_to_gnu_entity) <debug_deferred>: Likewise
12075         <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
12076         type.
12077         <E_Record_Type>: Do not explicitly defer finalizing the type.
12078         Adjust for write_record_type_debug_info renaming.
12079         <E_Subprogram_Type>: Likewise.
12080         Finalize deferred types right after deferred incomplete types are
12081         expanded.
12082         (rest_of_type_decl_compilation): New global function.
12083         (components_to_record): Rename defer_debug parameter to do_not_finalize.
12084         (components_to_record): Propagate the packedness to the fields of the
12085         qualified union type if there is a variant part.
12086         (gnat_to_gnu_entity) <E_Array_Type>: Use new function
12087         instead of inline code to adjust the XUT field offsets.
12088         (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
12089         <E_Record_Subtype>: Do not let finish_record_type compute the sizes
12090         and write the debug info if the type derives from a discriminated one.
12091         (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
12092         <E_Array_Subtype>: Likewise.
12093         <E_String_Literal_Subtype>: Likewise.
12094         (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
12095         an alignment clause.
12096         (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
12097         before giving warning.
12098         (prepend_one_attribute_to): New function, helper to prepend an attribute
12099         to an attribute list.
12100         (gnat_to_gnu_entity) <E_Procedure>: Use it.
12101         (prepend_attributes): Likewise.
12102         (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
12103         <E_Array_Type>: Declare the padding type for the element type, if any.
12104         <E_Array_Subtype>: Likewise.
12105         (defer_limited_with): New variable.
12106         (Gigi_Equivalent_Type): New function.
12107         (gnat_to_gnu_entity): Use it at start and use result throughout.
12108         (gnat_to_gnu_entity, case E_Access_Type): Rework to use
12109         Gigi_Equivalent_Type, support Limited_With, allow two levels of
12110         indirection, precompute if unconstrained array to simplify logic, and
12111         use defer_limited_with to defer elaboration of some types from limited
12112         with.
12113         (finalize_from_with_types): New function.
12114
12115 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
12116             Eric Botcazou  <ebotcazou@adacore.com>
12117             Tristan Gingold  <gingold@adacore.com>
12118             Olivier Hainque  <hainque@adacore.com>
12119
12120         * trans.c (Identifier_to_gnu): Change test for deferred constant by
12121         adding guard that the entity is an E_Constant before testing presence
12122         of Full_view (and remove unnecessary test that entity is not a type).
12123         For a CONST_DECL used by reference, manually retrieve
12124         the DECL_INITIAL.  Do not invoke fold in the other DECL_P cases either.
12125         (struct language_function): Move from utils.c to here.
12126         (struct parm_attr): New structure.
12127         (parm_attr, parm_attr vector, parm_attr GC vector): New types.
12128         (f_parm_attr_cache): New macro.
12129         (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
12130         expressions for the 'First, 'Last and 'Length attributes of the
12131         unconstrained array IN parameters.
12132         (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
12133         Allocate the information structure for the function earlier, as well
12134         as the language-specific part.
12135         If the parameter attributes cache has been populated, evaluate the
12136         cached expressions on entry.
12137         (takes_address): Add OPERAND_TYPE parameter.  Handle N_Function_Call,
12138         N_Procedure_Call_Statement and N_Indexed_Component.
12139         (Pragma_to_gnu): Translate inspection_point to an asm statement
12140         containaing a comment and a reference to the object (either its address
12141         for BLKmode or its value).
12142         (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
12143         to go to DECL_INITIAL. Together with the size constraint relaxation
12144         in create_var_decl, enlarges the set of situations in which an
12145         identifier may be used as an initializer without implying elaboration
12146         code.
12147         (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
12148         DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
12149         node.
12150         (maybe_stabilize_reference): Remove lvalues_only parameter.
12151         (gnat_stabilize_reference): Adjust for above change.
12152         (gnat_to_gnu): Do not set location information on the result
12153         if it is a reference.
12154         (add_cleanup): Add gnat_node parameter and set the location of the
12155         cleanup to it.
12156         (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
12157         (Exception_Handler_to_gnu_zcx): Likewise.
12158         (gigi): Remove the cgraph node if the elaboration procedure is empty.
12159         (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
12160         the former right after the latter.
12161         (start_stmt_group): Make global.
12162         (end_stmt_group): Likewise.
12163         (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
12164         vars.
12165         (gnu_program_error_label_stack): Likewise.
12166         (gigi): Initialize them.
12167         (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
12168         (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
12169         New cases.
12170         (push_exception_label_stack): New function.
12171         (takes_address): New function.
12172
12173         * utils.c (struct language_function): Move to trans.c from here.
12174         (unchecked_convert): Do not wrap up integer constants in
12175         VIEW_CONVERT_EXPRs.
12176         (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
12177         the latter for aggregate types, unexpected by later passes, and relax an
12178         arbitrary size constraint on the former.
12179         (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
12180         to compare the sizes.
12181         (convert_vms_descriptor): When converting to a fat pointer type, be
12182         prepared for a S descriptor at runtime in spite of a SB specification.
12183         (shift_unc_components_for_thin_pointers): New function.
12184         (write_record_type_debug_info): For variable-sized fields, cap the
12185         alignment of the pointer to the computed alignment.
12186         (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
12187         If REP_LEVEL is 2, do not compute the sizes.
12188         (build_vms_descriptor): Adjust for new prototype of finish_record_type.
12189         (build_unc_object_type): Likewise.
12190         (declare_debug_type): New function.
12191
12192         * ada-tree.def: USE_STMT: removed (not emitted anymore).
12193
12194         * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
12195         no statement is expandable anymore.
12196         (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
12197         (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
12198         when the user requested it explicitely.
12199         (gnat_post_options): By default, set flag_eliminate_unused_debug_types
12200         to 0 for Ada.
12201         (get_alias_set): Return alias set 0 for a type if
12202         TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
12203
12204         * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
12205         (DECL_FUNCTION_STUB): New accessor macro.
12206         (SET_DECL_FUNCTION_STUB): New setter macro.
12207
12208         * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
12209
12210         * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
12211         declarations.
12212
12213 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
12214
12215         * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
12216         Rename to Abort_Task_Interrupt to be able to keep the same interface
12217         as the rest of the targets.
12218
12219         * s-osinte-vxworks.ads s-osinte-vxworks.adb
12220         (To_VxWorks_Priority): Remove explicit "in" mode indicator
12221
12222         * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
12223         New files.
12224
12225 2007-06-06  Robert Dewar  <dewar@adacore.com>
12226
12227         * a-chahan.ads: Remove obsolescent pragmas
12228
12229         * a-chlat1.ads: Minor reformatting
12230
12231 2007-06-06  Robert Dewar  <dewar@adacore.com>
12232
12233         * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
12234         for Errout
12235
12236         * errout.adb: New Finalize/Compilation_Errors/Output_Messages
12237         implementation
12238
12239         * errout.ads (Finalize): Changed interface
12240         (Output_Messages): New procedure
12241         (Compilation_Errors): New Interface
12242
12243         * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
12244         Finalize/Output_Messages interface for Errout
12245         (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
12246         Errout.
12247
12248 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12249             Olivier Hainque  <hainque@adacore.com>
12250             Robert Dewar  <dewar@adacore.com>
12251
12252         * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
12253         check.
12254         (Raise_Current_Excep): Call Debug_Raise_Exception just before
12255         propagation starts, to let debuggers know about the event in a reliable
12256         fashion.
12257         (Local_Raise): Moved to System.Exceptions
12258         More convenient to have this as a separate unit
12259
12260         * s-except.adb, s-except.ads: New files.
12261
12262         * a-exextr.adb (Unhandled_Exception): Delete - replaced by
12263         Debug_Unhandled_Exception in System.Exceptions where it belongs
12264         together with a couple of other debug helpers.
12265         (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
12266         the former Unhandled_Exception.
12267
12268         * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
12269         (Warn_No_Exception_Propagation): New procedure
12270         (Warn_If_No_Propagation): Rewritten for new warning generation
12271         (Expand_Exception_Handlers): New warning generation
12272         (Expand_N_Raise_xxx_Error): Rewritten for new warnings
12273         (Add_Exception_Label): Use Special_Exception_Package_Used for test
12274         instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
12275         (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
12276         even if restriction is set (makes life easier in Check_Returns)
12277         (Expand_Local_Exception_Handlers): Follow renamed entity chain when
12278         checking exception identities.
12279         (Expand_Local_Exception_Handlers): Do not optimize when all others case
12280         (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
12281         block for handler (used by Check_Returns)
12282         (Expand_Local_Exception_Handlers): Local_Raise now takes an address
12283         (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
12284         remove all exception handlers when optimizing local raise statements.
12285         (Find_Local_Handler): Use Get_Renamed_Entity
12286         (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
12287         marked analyzed after expanding exception handlers, do not generate
12288         redundant cleanup actions, because they have been constructed already.
12289
12290 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12291
12292         * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
12293         presence of this categorization pragma is mandated by the language.
12294         (Limited_Controlled): Add missing pragma Preelaborable_Initialization
12295         for this type.
12296
12297 2007-06-06  Vincent Celier  <celier@adacore.com>
12298             Robert Dewar  <dewar@adacore.com>
12299
12300         * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb, 
12301         butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads, 
12302         err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads, 
12303         fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads, 
12304         lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads, 
12305         makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb, 
12306         par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb, 
12307         prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads, 
12308         prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb, 
12309         sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb, 
12310         uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
12311         ali.ads, ali.adb: 
12312         Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
12313         package Namet. Make File_Name_Type and Unit_Name_Type types derived from
12314         Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
12315         Use variables of types File_Name_Type and Unit_Name_Type in error
12316         messages.
12317         (Get_Name): Add parameter Ignore_Special, and set it reading file name
12318         (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
12319         here.
12320         Define flags Flag217-Flag230 with associated subprograms
12321         (Flag_Word5): New record type.
12322         (Flag_Word5_Ptr): New access type.
12323         (To_Flag_Word5): New unchecked conversion.
12324         (To_Flag_Word5_Ptr): Likewise.
12325         (Flag216): New function.
12326         (Set_Flag216): New procedure.
12327
12328 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12329
12330         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
12331         instead of 'Size.
12332
12333         * a-stwifi.ads, a-stzfix.ads: Minor reformatting
12334
12335 2007-06-06  Javier Miranda  <miranda@adacore.com>
12336
12337         * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
12338         the package.
12339         (Object_Specific_Data_Array): This is now internal to the package.
12340         (Object_Specific_Data): This is now internal to the package.
12341         (Select_Specific_Data_Element): This is now internal to the package.
12342         (Select_Specific_Data_Array): This is now internal to the package.
12343         (Select_Specific_Data): This is now internal to the package.
12344         (Offset_To_Top_Function_Ptr): This is now public.
12345         (To_Offset_To_Top_Function_Ptr): Removed.
12346         (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
12347          local to subprogram Offset_To_Top.
12348         (Predefined_DT): Removed.
12349         (Typeinfo_Ptr): Removed.
12350         (OSD): This function is now internal to this package.
12351         (SSD): This function is now internal to this package.
12352         (DT): New function that displaces the pointer to the table of primitives
12353          to get access to the enclosing wrapper record.
12354         (IW_Membership): Code cleanup.
12355         (Offset_To_Top): Code cleanup.
12356         (Predefined_DT): Removed.
12357         (Register_Interface_Tag): Removed.
12358         (Set_Interface_Table): Removed.
12359         (Set_Offset_Index): Removed.
12360         (Set_Offset_To_Top): Code cleanup.
12361         (Set_OSD): Removed.
12362         (Set_Signature): Removed.
12363         (Set_SSD): Removed.
12364         (Set_Tagged_Kind): Removed.
12365         (Typeinfo_Ptr): Removed.
12366         (TSD): Removed.
12367         (Displace): Add missing check on null actual.
12368
12369         * exp_disp.ads, exp_disp.adb
12370         (Select_Expansion_Utilities): Removed.
12371         (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
12372         (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
12373         the interface requires a new parameter.
12374         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
12375         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
12376         calls to subprograms Build_T, Build_S, etc. by the corresponding code.
12377         Done to remove package Select_Expansion_Utilities.
12378         (Make_DT): New implementation for statically allocated dispatch tables.
12379         (Make_Secondary_DT): Moved to the scope of Make_DT.
12380         (Register_Primitive): Code cleanup plus incoporate the use of the new
12381         function DT_Address_Attribute.
12382         (Expand_Interface_Thunk): The profile of this subprogram has been
12383         changed to return the Thunk_Id and the corresponding code.
12384         (Fill_DT_Entry): Removed. Its functionality is now provided by
12385         subprogram Register_Primitive.
12386         (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
12387         subprogram Register_Primitive.
12388         (Register_Primitive): New subprogram that incorporates the previous
12389         functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
12390         (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
12391         was only required to call Make_DT_Access_Action, which is now removed.
12392         (Ada_Actions): Removed
12393         (Action_Is_Proc): Removed
12394         (Action_Nb_Arg): Removed
12395         Replace all the calls to Make_DT_Access_Action by direct calls to
12396         Make_Procedure_Call_Statement or Make_Function_Call.
12397         (Set_DTC_Entity_Value): New subprogram.
12398         (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
12399         (Expand_Interface_Thunk): Add missing support for primitives that are
12400         functions with a controlling result (case in which there is no need
12401         to generate the thunk).
12402
12403         * exp_atag.ads, exp_atag.adb
12404         (Build_DT): New subprogram that displaces the pointer to reference the
12405         base of the wrapper record.
12406         (Build_Typeinfo_Offset): Removed.
12407         (RTE_Tag_Node): Removed.
12408         (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
12409         (Build_Get_RC_Offset): Removed.
12410         (Build_Inherit_Predefined_Prims): Removed.
12411         (Build_Inherit_TSD: Removed.
12412         (Build_New_TSD): Removed.
12413         (Build_Set_External_Tag): Removed.
12414         (Build_Set_Predefined_Prim_Op_Address): Add documentation.
12415         (Build_Set_Prim_Op_Address): Add documentation.
12416         (Build_Set_TSD): Removed.
12417
12418         * rtsfind.ads, rtsfind.adb
12419         (Load_Fail): If load fails and we are not in configurable run-time
12420         mode, then raise Unrecoverable_Error.
12421         (Text_IO_Kludge): Generate an error message if a run-time library is
12422         not available in a given run-time (ie. zfp run-time).
12423         (RTE_Record_Component): Add code to check that the component we search
12424         for is not found in two records in the given run-time package.
12425         (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
12426         (RE_DT_Predef_Prims_Offset): New entity
12427         (RE_Static_Offset_To_Top): New entity
12428         (RE_HT_Link): New entity.
12429         (System_Address_Image): Addition of this run-time package.
12430         (RE_Address_Image): New entity.
12431         (RE_Abstract_Interface): Removed.
12432         (RE_Default_Prim_Op_Count): Removed.
12433         (RE_DT_Entry_Size): Removed.
12434         (RE_DT_Min_Prologue_Size): Removed.
12435         (RE_DT_Prologue_Size): Removed.
12436         (RE_Ifaces_Table_Ptr): Removed.
12437         (RE_Interface_Data_Ptr): Removed.
12438         (RE_Type_Specific_Data): Removed.
12439         (RE_Primary_DT): Removed.
12440         (RE_Register_Interface_Tag): Removed.
12441         (RE_Set_Offset_Index): Removed.
12442         (RE_Set_OSD): Removed.
12443         (RE_Set_SSD): Removed.
12444         (RE_Set_Signature): Removed.
12445         (RE_Set_Tagged_Kind): Removed.
12446         (RE_Address_Array): New entity.
12447         (RE_DT): New entity.
12448         (RE_Iface_Tag): New entity.
12449         (RE_Interfaces_Table): New entity.
12450         (RE_No_Dispatch_Table): New entity.
12451         (RE_NDT_Prims_Ptr): New entity.
12452         (RE_NDT_TSD): New entity.
12453         (RE_Num_Prims): New entity.
12454         (RE_Offset_To_Top_Function_Ptr): New entity.
12455         (RE_OSD_Table): New entity.
12456         (RE_OSD_Num_Prims): New entity.
12457         (RE_Predef_Prims): New entity
12458         (RE_Predef_Prims_Table_Ptr): New entity.
12459         (RE_Primary_DT): New entity.
12460         (RE_Signature): New entity.
12461         (RE_SSD): New entity.
12462         (RE_TSD): New entity.
12463         (RE_Type_Specific_Data): New entity.
12464         (RE_Tag_Kind): New entity.
12465
12466 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12467
12468         * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
12469         C imported variable.
12470         (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
12471         on entry.
12472
12473 2007-06-06  Robert Dewar  <dewar@adacore.com>
12474
12475         * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
12476         character
12477
12478 2007-06-06  Vincent Celier  <celier@adacore.com>
12479
12480         * a-tifiio.adb (Put, internal): For negative numbers, check that there
12481         is room for at least one digit and the minus sign.
12482         (Put.Put_Character): Never put a character outside of the range of
12483         string To.
12484
12485 2007-06-06  Olivier Hainque  <hainque@adacore.com>
12486             Eric Botcazou  <ebotcazou@adacore.com>
12487
12488         * utils2.c (build_allocator): Provide the extra arguments to
12489         make_aligning_type for super-aligned objects allocated from the default
12490         pool. Leave enough room for a pointer before the aligning field, and
12491         store the system's allocator return value there.
12492         (build_call_alloc_dealloc): When releasing a super-aligned object,
12493         retrieve the system's allocator return value from where build_allocator
12494         has stored it, just ahead of the adjusted address we are passed.
12495         (build_call_raise): Handle properly the generation of line numbers when
12496         the node is marked No_Location.
12497         (compare_elmt_bitpos): Use tree_int_cst_compare.  Stabilize the sort
12498         by using DECL_UID on ties.
12499         (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
12500         main variant.
12501         (build_call_raise): Handle converting exception into goto; support new
12502         argument KIND.
12503         (build_component_ref): Add new arg to build_call_raise.
12504
12505 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
12506
12507         * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
12508         "." in the case of nnn.xxx when nnn terminates with an underscore.
12509         Parse the remaining "#" or ":" in the case of nnn#.xxx#
12510
12511 2007-06-06  Robert Dewar  <dewar@adacore.com>
12512
12513         * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
12514
12515 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12516             Vincent Celier  <celier@adacore.com>
12517             Robert Dewar  <dewar@adacore.com>
12518
12519         * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
12520         needed.
12521         (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
12522         ((destructor)) for adafinal, even when switch -a is used.
12523         Do not issue pragma Linker_Destructor for adafinal when switch -a is
12524         used.
12525         (Gen_Object_Files_Options): Add formatting of Linker Options, when
12526         Output_Linker_Option_List is set. Suppress this formatting when
12527         Zero_Formatting is set.
12528         Add case for CLI_Target.
12529         (System_Restrictions_Used): New flag, used to avoid generating with of
12530         System_Restrictions and initialization of the data unless there is
12531         some use of System.Restrictions in the partition.
12532         (Check_System_Restrictions_Used): New procedure
12533
12534         * s-stalib.adb: Remove with of System.Restrictions. No longer needed
12535         since we only with this unit in the binder file if it is used elsewhere
12536         in the partition.
12537
12538 2007-06-06  Vincent Celier  <celier@adacore.com>
12539
12540         * bindusg.adb: Add line for @<response file>
12541         Add lines for new switches -R and -Z
12542
12543         * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
12544         hierarchy in the list of files of the closure when -R is used
12545         (Gnatbind): Accept arguments starting with '@' to indicate response
12546         files and take the arguments from the response files.
12547         If List_Closure is set, display the referenced files
12548
12549 2007-06-06  Javier Miranda  <miranda@adacore.com>
12550             Robert Dewar  <dewar@adacore.com>
12551             Ed Schonberg  <schonberg@adacore.com>
12552
12553         * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
12554         which the address-clause is applied to in-mode actuals (allowed by
12555         13.1(22)).
12556         (Apply_Discriminant_Check): Do not generate a check if the type is
12557         constrained by a current instance.
12558         (Activate_Division_Check): New procedure
12559         (Activate_Overflow_Check): New procedure
12560         (Activate_Range_Check): New procedure
12561         Call these new Activate procedures instead of setting flags directly
12562         (Apply_Array_Size_Check): Removed, no longer needed.
12563         Code clean up: remove obsolete code related to GCC 2.
12564         (Get_E_Length): Protect against bomb in case scope is standard
12565         (Selected_Range_Checks): If the node to be checked is a conversion to
12566         an unconstrained array type, and the expression is a slice, use the
12567         bounds of the slice to construct the required constraint checks.
12568         Improve NOT NULL error messages
12569         (Apply_Constraint_Check): If the context is a null-excluding access
12570         type, diagnose properly the literal null.
12571
12572 2007-06-06  Pascal Obry  <obry@adacore.com>
12573
12574         * clean.adb (Clean_Archive): Use untouched casing for the archive name
12575         and the corresponding .deps file.
12576         (Clean_Interface_Copy_Directory): Use untouched casing for the library
12577         src directory. Minor code-clean-up. Use untouched casing for files
12578         read into the library src dir.
12579         (Clean_Library_Directory): Idem.
12580         (Parse_Cmd_Line): Accept new switch -aP
12581
12582 2007-06-06  Javier Miranda  <miranda@adacore.com>
12583             Ed Schonberg  <schonberg@adacore.com>
12584             Robert Dewar  <dewar@adacore.com>
12585             Eric Botcazou  <ebotcazou@adacore.com>
12586             Arnaud Charlet  <charlet@adacore.com>
12587
12588         * einfo.ads, einfo.adb (Available_View): New synthesized attribute
12589         applicable to types that have the With_Type flag set. Returns the
12590         non-limited view of the type, if available, otherwise the type itself.
12591         For class-wide types, there is no direct link in the tree, so we have
12592         to retrieve the class-wide type of the non-limited view of the Etype.
12593         New attributes Static_Initialization and Static_Elaboration_Desired.
12594         Remove the pragma Thread_Body, and the associated flag
12595         Is_Thread_Body in entities, and all related code.
12596         (Suppress_Value_Tracking_On_Call): New flag
12597         E_Exception has Esize and Alignment fields
12598         (Universal_Aliasing): New function.
12599         (Set_Universal_Aliasing): New procedure.
12600         (Write_Entity_Flags): Deal with Universal_Aliasing flag.
12601         (Check_Nested_Access): New procedure.
12602         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
12603         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
12604         (Related_Interface): New attribute. Present in dispatch table pointer
12605         components of records. Set to point to the entity of the corresponding
12606         interface type.
12607         (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
12608         (Original_Access_Type): Remove, not needed.
12609         (Root_Type): Handle properly subtypes of class-wide-types.
12610         Update comments.
12611
12612         * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
12613         class-wide types visible through limited-with clauses.
12614         (Try_Primitive_Operation): When examining all primitive operations of a
12615         tagged type, do not consider subprograms labeled as hidden unless they
12616         belong to a private generic type with a tagged parent.
12617         (Try_Object_Operation): Extensive rewriting, to handle properly various
12618         overloading cases, when several ancestors may have class-wide operations
12619         that are possible candidates, and when the overloaded functions return
12620         array types and have defaulted parameters so that the call may be
12621         interpreted as an indexing.
12622         (Analyze_Allocator): Remove Mark_Allocator and its invocation.
12623         (Process_Function_Call): use Next, rather than Next_Actual, to analyze
12624         successive actuals before analyzing the call itself.
12625         (Try_Primitive_Operation): A primitive operation is compatible with the
12626         prefix if the prefix has a synchronized type and the type of the formal
12627         is its corresponding record, as can be the case when the primitive
12628         operation is declared outside of the body of the type.
12629         (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
12630         perform homonym traversal, looking for class-wide operation matches
12631         (formerly done in statements of Try_Class_Wide_Operation). Matches on
12632         access parameters are now restricted to anonymous access types.
12633         (Mark_Allocator): An allocator with a discriminant association parent is
12634         a coextension.
12635         (Try_One_Prefix_Interpretation): If the type of the object is
12636         incomplete, as can be happen when it is a limited view obtained through
12637         a limited_with_clause, the selected component is not part of a prefixed
12638         call.
12639         (Complete_Object_Operation): Diagnose properly an object that is not
12640         aliased when the corresponding controlling formal is an access
12641         parameter.
12642         (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
12643         ambiguous calls in prefixed notation, where two primitives differ only
12644         in that the controlling argument of one is an access parameter.
12645
12646         * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
12647         whether a function that returns an unconstrained type can be inlined.
12648         (Process_Formals): Diagnose properly the illegal use of an incomplete
12649         type in the profile of an access_to_subprogram declaration.
12650         (Check_Synchronized_Overriding): Nothing check for concurrent types, the
12651         operations are attached to the corresponding record.
12652         (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
12653         When processing a primitive of a concurrent type which implements an
12654         interface change the type of all controlling formals to that of the
12655         corresponding record type.
12656         (Check_Synchronized_Overriding): Relax the conditional logic when trying
12657         to determine the tagged type to which a primitive belongs.
12658         (Check_Conventions): Capture condition to ignore a primitive operation
12659         (which is shared between the loop in Check_Conventions and the one in
12660         Check_Convention) in a new local function Skip_Check.
12661         (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
12662         confusion with Check_Conventions' own Prim_Op local variable.
12663         (Create_Extra_Formals): Test for a tagged result type rather than a
12664         controlling result when determining whether to add a BIP_Alloc_Form
12665         formal and a BIP_Final_List formal to the function.
12666         (Check_Conformance); For parameters that are anonymous access types,
12667         subtype conformance requires that the not null and the constant
12668         indicators must match
12669         (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
12670         to retrieve the appropriate type when processing a concurrent type
12671         declared within a generic. Minor comment reformatting. Change invocation
12672         of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
12673         mitive.
12674         (Analyze_Subprogram_Body): If the return type of a function is an
12675         anonymous access to the limited view of a class-wide type, and the
12676         non-limited view of the type is available, update the type of the
12677         function so that code can be generated.
12678         (Process_Formals): In case of access-subtype itype whose designated
12679         type is also an itype (situation that happens now with access to
12680         subprograms) we mark the access-type itype with the Has_Delayed_Freeze
12681         attribute to avoid backend problems.
12682         (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
12683         init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
12684         anonymous types' designated types are same before testing
12685         Subtypes_Statically_Match.
12686         (Create_Extra_Formals): Test for a named access parameter that is a
12687         controlling formal as an additional condition for adding an
12688         accessibility level formal. This can occur in the subp type created for
12689         dispatching calls in Expand_Dispatching_Call, and allows calling
12690         Create_Extra_Formals from that procedure rather than special-casing the
12691         extra formals there.
12692         (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
12693         when the function has a controlling result.
12694         (Check_Returns): Add much more knowledge of the optimization of local
12695         raise statements to gotos, to retain proper warnings in this case.
12696         (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
12697         nodes when looking for last statement.
12698
12699         * sem_type.ads, sem_type.adb (Specific_Type): Add support for
12700         class-wide types visible through limited with clauses.
12701         (Add_One_Interp): If the operands are anonymous access types, the
12702         predefined operator on universal_access is immediately visibles
12703         (Find_Unique_Type): Handle anonymous access to subprogram types just as
12704         other anonymous access types.
12705         (Disambiguate): Take into account CIL convention.
12706         (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
12707
12708 2007-06-06  Robert Dewar  <dewar@adacore.com>
12709
12710         * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
12711         sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
12712         elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
12713         Fix lower bound of tables.
12714         Add rep clauses.
12715
12716         * nlists.adb: Ditto.
12717         (Prev_Node, Next_Node): Change index type to Int so that it properly
12718         covers the range First_Node_Id - 1 up.
12719
12720 2007-06-06  Javier Miranda  <miranda@adacore.com>
12721             Ed Schonberg  <schonberg@adacore.com>
12722             Bob Duff  <duff@adacore.com>
12723             Hristian Kirtchev  <kirtchev@adacore.com>
12724
12725         * exp_aggr.ads, exp_aggr.adb: 
12726         (Build_Record_Aggr_Code): Add missing initialization of secondary tags
12727         in extension aggregates.
12728         (Flatten): Other conditions being met, an aggregate is static if the
12729         low bound given by component associations is different from the low
12730         bound of the base index type.
12731         (Packed_Array_Aggregate_Handled): If the component type is itself a
12732         packed array or record, the front-end must expand into assignments.
12733         (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
12734         Init_Pr, instead of Ancestor_Is_Expression.
12735         (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
12736         coextension chain root, either generate a list controller or use the
12737         already existing one.
12738         (Static_Array_Aggregate): New procedure to construct a positional
12739         aggregate that can be handled by the backend, when all bounds and
12740         components are compile-time known constants.
12741         (Expand_Record_Aggregate): Force conversion of aggregates of tagged
12742         types covering interface types into assignments.
12743         (Replace_Type): move to Build_Record_Aggr_Code.
12744         (Expand_Record_Aggr_Code): if the target of the aggregate is an
12745         interface type, convert to the definite type of the aggregate itself,
12746         so that needed components are visible.
12747         (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
12748         components and the context is an extended return statement do not
12749         create a transient block for it, to prevent premature finalization
12750         before the return is executed.
12751         (Gen_Assign): Do not generate a call to deep adjust routine if the
12752         component type is itself an array of controlled (sub)-components
12753         initialized with an inner aggregate.
12754         (Component_Check): New name for Static_Check. This name is now more
12755         appropriate, and documentation is added which was missing.
12756         (Component_Check): Add test for bit aligned component value
12757         (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
12758         Tagged_Comps, name is more appropriate given added function below.
12759         (Component_Not_OK_For_Backend): Check for bit aligned component ref.
12760
12761 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
12762             Javier Miranda  <miranda@adacore.com>
12763             Robert Dewar  <dewar@adacore.com>
12764
12765         * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
12766         Terminated: Add unchecked type conversion from System.Address to
12767         System.Tasking.Task_Id when calling the predefined primitive
12768         _disp_get_task_id.
12769         Disable new Ada 05 accessibility check for JVM.NET targets, which
12770         cannot be implemented in a practical way.
12771         (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
12772         the sources always references the tag of the actual object. Therefore,
12773         if 'Tag is applied in the sources to class-wide interface objects we
12774         generate code that displaces "this" to reference the base of the object.
12775         (Expand_N_Attribute_Reference, case Size): Return specified size if
12776         known to front end.
12777         (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
12778         has code that displaces the pointer of the object to manage interface
12779         types. However this code must not be executed when the prefix is a
12780         subprogram. This bug caused the wrong expansion of the internally
12781         generated assignment that fills the dispatch table when the primitive
12782         is a function returning a class-wide interface type.
12783         (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
12784         Set_Attribute_Name for Name_Unaligned_Valid.
12785
12786 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12787             Gary Dismukes  <dismukes@adacore.com>
12788
12789         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
12790         If the initialization is the equivalent aggregate of the initialization
12791         procedure of the type, do not remove it.
12792         (Expand_N_Attribute_Definition_Clause): Exclude access variables
12793         initialized to null from having their expression reset to empty and
12794         note this exception in the comment.
12795
12796 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
12797             Robert Dewar  <dewar@adacore.com>
12798             Ed Schonberg  <schonberg@adacore.com>
12799             Gary Dismukes  <dismukes@adacore.com>
12800
12801         * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
12802         Add "with" and "use" clauses for Sem_Attr.
12803         (Expand_Current_Value): Do not replace occurences of attribute
12804         references where the prefix must be a simple name.
12805
12806         * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
12807         Namet. Add new arrays Attribute_Name_Modifies_Prefix and
12808         Attribute_Requires_Simple_Name_Prefix.
12809         (Name_Modifies_Prefix): Body of new function.
12810         (Requires_Simple_Name_Prefix): Body of new function.
12811         (Resolve_Attribute, case Access): Improve error message for case of
12812         mismatched conventions.
12813         (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
12814         incomplete type.
12815         (Analyze_Attribute, case 'Access): If the type of the prefix is a
12816         constrained subtype for a nominal unconstrained type, use its base type
12817         to check for conformance with the context.
12818         (Resolve_Attribute): Remove test of the access type being associated
12819         with a return statement from condition for performing accessibility
12820         checks on access attributes, since this case is now captured by
12821         Is_Local_Anonymous_Access.
12822         (Analyze_Access_Attribute): Set Address_Taken on entity
12823         (Analyze_Attribute, case Address): Set Address_Taken on entity
12824         (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
12825         validating an access attribute whose prefix is a current instance.
12826         (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
12827         applied to dispatching operations, if freezing is required then we set
12828         the attribute Has_Delayed_Freeze in the prefix's entity.
12829         (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
12830         current scope if access of local subprogram taken
12831         (Analyze_Access_Attribute): Check legality of self-reference even if the
12832         expression comes from source, as when a single component association in
12833         an aggregate has a box association.
12834         (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
12835         the prefix if it is a protected operation and the attribute is
12836         Unrestricted_Access.
12837         (Resolve_Attribute, case 'Access): Set the Etype of the attribute
12838         reference to the base type of the context, to force a constraint check
12839         when the context is an access subtype with an explicit constraint.
12840         (Analyze_Attribute, case 'Class): If the prefix is an interface and the
12841         node is rewritten as an interface conversion. leave unanalyzed after
12842         resolution, to ensure that type checking against the context will take
12843         place.
12844
12845 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12846             Javier Miranda  <miranda@adacore.com>
12847             Robert Dewar  <dewar@adacore.com>
12848
12849         * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
12850         wrapper when the full view of the controlling type of an inherited
12851         function that dispatches on result implements interfaces.
12852         (Expand_N_Object_Declaration): In cases where the type of the
12853         declaration is anonymous access, create finalization list for it.
12854         (Expand_N_Object_Declaration): Generate a persistent_bss directive only
12855         if the object has no explicit initialization, to match description of
12856         functionality of pragam Persistent_BSS.
12857         (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
12858         new function to build static aggregates, to replace initialization call
12859         when static initialization is desired.
12860         (Freeze_Type): Generate a list controller for an access type whenever
12861         its designated type has controlled anonymous access discriminants.
12862         (Build_Equivalent_Aggregate): New procedure to compute a static
12863         aggregate to be used as default initialization for composite types,
12864         instead of a generating a call to the initialization procedure for the
12865         type.
12866         (Build_Initialization_Call): When available, replace a call to the
12867         initialization procedure with a copy of the equivalent static aggregate
12868         for the type.
12869         (Expand_N_Object_Declaration):  Use New_Occurrence_Of in generated
12870         declarations for objects of a class-wide interface type, rather than
12871         just identifiers, to prevent visibility problems.
12872         (Expand_N_Object_Declaration): When expanding the declaration for an
12873         object of a class-wide interface type, preserve the homonym chain of
12874         the original entity before exchanging it with that of the generated
12875         renaming declaration.
12876         (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
12877         active, because there is no way to handle the exception.
12878         (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
12879         to do a minimum decoration of the Access_Disp_Table list.
12880         (Expand_Record_Controller): Avoid the addition of the controller between
12881         the component containing the tag of a secondary dispatch table and its
12882         adjacent component that stores the offset to the base of the object.
12883         This latter component is only generated when the parent type has
12884         discriminants ---documented in Add_Interface_Tag_Components).
12885         (Apply_Array_Size_Check): Removed, no longer needed.
12886         (Expand_N_Full_Type_Declaration): If the type has anonymous access
12887         components, create a Master_Entity for it only if it contains tasks.
12888         (Build_Init_Procedure): Suppress the tag assignment compiling under
12889         no run-time mode.
12890         (Freeze_Record_Type): Remove code associated with creation of dispatch
12891         table.
12892         (Init_Secondary_Tags): Update type of actuals when generating calls to
12893         Ada.Tags.Set_Offset_To_Top
12894         (Stream_Operation_OK): Disable use of streams compiling under no
12895         run-time mode
12896         (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
12897         if Has_Init_Expression set.
12898         (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
12899         Register_Primitive, which provides the same functionality.
12900         (Requires_Init_Proc): Return false in case of interface types.
12901         (Add_Secondary_Tables): Use the new attribute Related_Interface to
12902         cleanup the code.
12903         (Predefined_Primitive_Freeze): Do not assume that an internal entity
12904         is always associated with a predefined primitive because the internal
12905         entities associated with interface types are not predefined primitives.
12906         Therefore, the call to Is_Internal is replaced by a call to the
12907         function Is_Predefined_Dispatching_Operation.
12908         (Make_Eq_If): When generating the list of comparisons for the
12909         components of a given variant, omit the controller component that is
12910         present if the variant has controlled components.
12911
12912 2007-06-06  Javier Miranda  <miranda@adacore.com>
12913             Hristian Kirtchev  <kirtchev@adacore.com>
12914             Bob Duff  <duff@adacore.com>
12915
12916         * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
12917         handle the creation of finalization lists and calls for nested
12918         coextensions when the root of the chains is part of a return statement.
12919         (Inside_A_Return_Statement): New function inside Complete_Coextension_
12920         Finalization.
12921         (Expand_Record_Equality): Skip components that are interface types.
12922         (Displace_Allocator_Pointer): Add missing support for interface subtypes
12923         (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
12924         with Rewrite_Coextension. Change the condition for detecting coextension
12925         root nodes.
12926         (Is_Local_Access_Discriminant): Removed.
12927         (Rewrite_Coextension): New routine which rewrites a static coextension
12928         as a temporary and uses its unrestricted access in the construction of
12929         the outer object.
12930         (Complete_Coextension_Finalization): New routine. Generate finalization
12931         attachment calls to all delayed coextensions.
12932         (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
12933         the allocator is not a coextension itself and has delayed coextensions.
12934         If the current allocator is controlled, but also a coextension, delay
12935         the generation of the finalization attachment call.
12936         Rename local variable "Node" to "Nod" in order to avoid confusion with
12937         "Elists.Node".
12938         (Expand_Allocator_Expression): Call Adjust for initialized allocators of
12939         limited types that are not inherently limited. Such an allocator is
12940         illegal, but is generated by the expander for a return statement, to
12941         copy the result onto the secondary stack. This is the only case where a
12942         limited object can be copied. Generate code to displace the pointer
12943         to the object if the qualified expression is a class-wide interface
12944         object. Such displacement was missing and hence the copy of the object
12945         was wrong.
12946         (Apply_Accessibility_Check): Handle allocated objects initialized in
12947         place.
12948         (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
12949         and Expand_Allocator_Expression. Allocating class-wide interface objects
12950         this routine displaces the pointer to the allocated object to reference
12951         the component referencing the corresponding secondary dispatch table.
12952         Expand_Allocator_Expression): Add missing support to allocate class-wide
12953         interface objects initialized with a qualified expression.
12954         (Get_Allocator_Final_List): Test for an anonymous access type that is a
12955         function result type, and use the finalization list associated with the
12956         function scope in that case (such an anonymous type should not be
12957         treated like an access parameter's type).
12958
12959 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12960             Gary Dismukes  <dismukes@adacore.com>
12961             Javier Miranda  <miranda@adacore.com>
12962
12963         * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
12964         controlled type, use Make_Handler_For_Ctrl_Operation to construct the
12965         required exception handler.
12966         (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
12967         properly the case of a function whose return type is a limited
12968         class-wide interface type. Modify the code of the accessibility
12969         check to handle class-wide interface objects. In this case we need to
12970         displace "this" to reference the primary dispatch table to get access
12971         to the TSD of the object (to evaluate its accessibility level).
12972         (Expand_N_Extended_Return_Statement): Test for a tagged result type
12973         rather than a controlling result as one of the conditions for
12974         generating tests of the implicit BIP_Alloc_Form formal. The
12975         initialization assignment is also handled according to whether the
12976         result is tagged instead of controlling.
12977         In the case where the init assignment is inserted in the "then" part of
12978         the allocation conditional, rewrite the target to be a dereference of
12979         the implicit BIP_Object_Access formal.
12980         If the returned value is unconstrained and created on the secondary
12981         stack, mark the enclosing block and function so that the secondary
12982         stack is not reclaimed on return.
12983         Treat returns from functions with controlling results similarly to
12984         returns from functions with unconstrained result subtypes.
12985         If the object returned is unconstrained, and an allocator must be
12986         created for it, analyze the allocator once the block for the extended
12987         return is installed, to ensure that finalizable components
12988         of the expression use the proper finalization list. Guard the call to
12989         Move_Final_List with a check that there is something to finalize.
12990         (Make_Tag_Ctrl_Assignment): Use "old" handling
12991         of controlled type assignment for virtual machines, since new code uses
12992         unsupported features (such as direct access to bytes in memory).
12993
12994 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
12995             Ed Schonberg  <schonberg@adacore.com>
12996
12997         * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
12998         accessibility actual, check for the case of an aliased object that has
12999         been rewritten as an Access attribute, and assign Prev to Prev_Orig so
13000         we fall into processing for the attribute rather than the name of the
13001         object.
13002         (Expand_Inline_Call): If an actual is a literal, and the corresponding
13003         formal has its address taken in the body, create a temporary to capture
13004         value.  If the return type is a limited interface, do not treat the
13005         return value as Controlled.
13006         (Is_In_Place_Function):  If the return type is a limited interface,
13007         treat as returning in place. The actual returned object may not always
13008         be limited, but the caller has to assume that it is returned in place.
13009         (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
13010         context of an allocator, use the correct finalization chain (that is,
13011         the chain belonging to the access type, rather than the chain belonging
13012         to the current scope).
13013         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
13014         result type rather than a controlling result as a precondition for
13015         adding an allocation form actual to a build-in-place call.
13016         (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
13017         (Freeze_Subprogram): Code cleanup. Remove all the code that register the
13018         primitive in the dispatch tables. This work is now done by Make_DT when
13019         the type is frozen.
13020         (Register_Predefined_DT_Entry): Removed.
13021         (Add_Return): If end label is not present, use sloc of last statement
13022         for generated return statement in procedure, for better gdb behavior
13023         on expanded code.
13024         (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
13025         object address nodes to ensure proper processing by routines like
13026         Insert_After*.
13027         (Expand_Call): Fix generation of validity check for parameter
13028         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
13029         the allocation form parameter if the result subtype is constrained,
13030         except when the function has a controlling result.
13031         (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
13032         rather than Is_Controlled and Has_Controlled_Component, since we want to
13033         include class-wide result types in this treatment. Also test for a
13034         controlling result, since that also requires passing a finalization
13035         list.
13036         (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
13037         even when the result subtype is constrained, to handle calls involving
13038         controlling results.
13039         (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
13040         is now called even when the result subtype is constrained, to handle
13041         calls involving controlling results.
13042         (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
13043         on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
13044         now performs the test).
13045         (Make_Build_In_Place_Call_In_Object_Declaration):
13046         Add_Alloc_Form_Actual_* is now called even when the result subtype is
13047         constrained, to handle calls involving controlling results.
13048         (Add_Return): Accomodate rewritten pattern from local raise to goto
13049         transformation, so that we still recognize an transfer statement
13050         and do the right thing here in that case.
13051         (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
13052         and end of subprogram code.
13053         (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
13054         support for primitives that are functions (without formals) with a
13055         controlling result.
13056         (Inherited_From_Formal): If the actual subtype has not generic parent
13057         type, it is not an actual for a formal derived type, and there is no
13058         operation to inherit from the formal.
13059
13060 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13061             Thomas Quinot  <quinot@adacore.com>
13062
13063         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
13064         inserted cleanup code appropriately for GDB use.
13065         (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
13066         exception handler for Deep_Adjust or Deep_Finalize.
13067         (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
13068         Raise_From_Controlled_Operation is available, use a call to that
13069         subprogram instead of a plain "raise Program_Error" node to raise
13070         Program_Error if an exception is propagated from an Adjust or Finalize
13071         operation.
13072         (Insert_Actions_In_Scope_Around): If the statement to be wrapped
13073         appears in the optional statement list of a triggering alternative, the
13074         scope actions can be inserted directly there, and not in the list that
13075         includes the asynchronous select itself.
13076
13077 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13078             Robert Dewar  <dewar@adacore.com>
13079             Hristian Kirtchev  <kirtchev@adacore.com>
13080
13081         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
13082         generated exception handler appropriately when debugging generated code.
13083         Deal properly with No_Exception_Propagation restriction mode.
13084         (Expand_N_Abort_Statement): Add an unchecked type conversion from
13085         System.Address to System.Tasking.Task_Id when processing the result of
13086         the predefined primitive _disp_get_task_id.
13087         (Expand_N_Asynchronous_Select): Clarify comment.
13088         (Expand_N_Protected_Type_Declaration): Minor code cleanup.
13089         (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
13090         (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
13091         (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
13092         privals and for generated call to Complete_Entry_Body, for better gdb
13093         behavior.
13094         (Copy_Result_Type): Utility to construct a parameter and result profile
13095         for protected functions whose return type is an anonymous access to
13096         subprogram.
13097         (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
13098         call the above.
13099         (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
13100         point when the local-raise-to-goto transformation has taken place.
13101
13102 2007-06-06  Javier Miranda  <miranda@adacore.com>
13103             Nicolas Setton  <setton@adacore.com>
13104
13105         * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
13106         functionality when the backend is generating code.
13107         Otherwise any serious error
13108         reported by the backend calling the frontend routine Error_Msg
13109         changes the Compilation_Mode to Check_Semantics, disables the
13110         functionality of this routine and causes the generation of
13111         spureous additional errors.
13112
13113         * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
13114         debugging information now generated by the compiler for fat-pointer
13115         types.
13116         Document the contents of DW_AT_producer in the GNAT Vendor extensions to
13117         DWARF2/3.
13118         Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
13119
13120 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13121
13122         * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
13123         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
13124         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
13125         For a remote call to a function with a classwide return type, apply an
13126         E.4(18) check to the returned value.
13127         (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
13128         stream attributes of the designated type of an RACW, as they are not
13129         dispatching primitive operations.
13130
13131 2007-06-06  Geert Bosch  <bosch@adacore.com>
13132
13133         * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
13134         negative literal
13135         (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
13136         positive
13137         (Do_Divide_Fixed_Universal): Handle case of negative Frac.
13138         (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
13139         positive
13140         (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
13141
13142 2007-06-06  Javier Miranda  <miranda@adacore.com>
13143
13144         * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
13145         attribute compiling package Ada.Tags under No_Run_Time_Mode.
13146
13147 2007-06-06  Javier Miranda  <miranda@adacore.com>
13148
13149         * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
13150         deallocation of class-wide interface objects.
13151         (Expand_Dispatching_Constructor_Call): Take into account that if the
13152         result of the dispatching constructor is an interface type, the
13153         function returns a class-wide interface type; otherwise the returned
13154         object would be actual. The frontend previously accepted returning
13155         interface types because Expand_Interface_Actuals silently performed
13156         the management of the returned type "as if" it were a class-wide
13157         interface type.
13158         (Expand_Dispatching_Constructor_Call): Replace call to
13159         Make_DT_Access_Action by direct call to Make_Function_Call.
13160
13161 2007-06-06  Robert Dewar  <dewar@adacore.com>
13162             Ed Schonberg  <schonberg@adacore.com>
13163
13164         * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
13165         compute masking constant, since we now set Esize properly to the
13166         underlying size.
13167         (Create_Packed_Array_Type): Set proper Esize value adjusted as required
13168         to match the alignment.
13169         (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
13170         packed arrays of 8 bits or less.
13171
13172         * freeze.adb (Freeze_Entity): When freezing the formals of a
13173         subprogram, freeze the designated type of a parameter of an access type
13174         only if it is an access parameter.
13175         Increase size of C convention enumeration object
13176         (Freeze_Entity, array type case): Make sure Esize value is properly
13177         adjusted for the alignment if it is known.
13178         (Freeze_Entity, array type case): When checking bit packed arrays for
13179         the size being incorrect, check RM_Size, not Esize.
13180         (Freeze_Record_Type): Check for bad discriminated record convention
13181         (In_Exp_Body): Return true if the body is generated for a subprogram
13182         renaming, either an attribute renaming or a renaming as body.
13183         (Check_Itype): If the designated type of an anonymous access component
13184         is a non-protected subprogram type, indicate that it is frozen, to
13185         prevent out-of-scope freeze node at some subsequent call.
13186         (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
13187         only if the subprogram is neither imported nor exported, as well as the
13188         NCA descriptor class if the subprogram is exported.
13189
13190 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13191             Arnaud Charlet  <charlet@adacore.com>
13192             Robert Dewar  <dewar@adacore.com>
13193             Gary Dismukes  <dismukes@adacore.com>
13194
13195         * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
13196         default initialization on an imported object, when there is no
13197         initialization call generated for it.
13198         (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
13199         restriction
13200
13201         * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
13202         Static_Elaboration_Desired.
13203         Remove pragma Thread_Body.
13204         Implement a new pragma No_Body
13205         Removes the Explicit_Overriding pragma
13206         Remove Optional_Overriding pragma
13207         (Prag): Deal with Universal_Aliasing.
13208         (Name_CIL, Name_CIL_Constructor, Convention_CIL,
13209         Pragma_CIL_Constructor): New names.
13210
13211         * sem_cat.adb (Validate_Object_Declaration): An initialization that
13212         uses the equivalent aggregate of a type must be treated as an implicit
13213         initialization.
13214         (Get_Categorization): Check a unit for pragma Preelaborate only if it
13215         has none of the other categories.
13216         (Process_Import_Or_Interface_Pragma): Report an error for an attempt
13217         to apply Import to an object renaming declaration.
13218
13219         * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
13220         from a C++ class should be declared as limited and that it will be
13221         considererd limited.
13222         (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
13223         should be declared as limited and that it will be considererd limited.
13224         (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
13225         (Analyze_Pragma, case Export): Diagnose export of enumeration literal
13226         (Analyze_Pragma): Deal with Universal_Aliasing.
13227         (Sig_Flags): Likewise.
13228         (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
13229         (Overflow_Checks_Unsuppressed): New flag.
13230         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
13231         (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
13232         case of JVM or .NET targets, and compiling user code.
13233         Add debugging convenience routine rv
13234
13235 2007-06-06  Robert Dewar  <dewar@adacore.com>
13236
13237         * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
13238         are interface type.
13239         (Build_Elementary_Input_Call): For floating-point use right type in the
13240         absence of strange size or stream size clauses.
13241         (Build_Elementary_Write_Call): Same fix
13242         (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
13243         set to value that does not match base type size.
13244
13245 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13246
13247         * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
13248         object of a limited type can be initialized with a call to a function
13249         that returns in place. If the limited type has unknown discriminants,
13250         and the underlying type is a constrained composite type, build an actual
13251         subtype from the function call, as is done for private types.
13252         (Side_Effect_Free): An expression that is the renaming of an object or
13253         whose prefix is the renaming of a object, is not side-effect free
13254         because it may be assigned through the renaming and its value must be
13255         captured in a temporary.
13256         (Has_Controlled_Coextensions): New routine.
13257         (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
13258         as is done for other limited types.
13259         (Non_Limited_Designated_Type): new predicate.
13260         (Make_CW_Equivalent_Type): Modified to handle class-wide interface
13261         objects.
13262         Remove all handling of with_type clauses.
13263
13264         * par-ch10.adb: Remove all handling of with_type clauses.
13265
13266         * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
13267         checksum if the main source could not be parsed.
13268         (Loat_Unit): When processing a child unit, determine properly whether
13269         the parent unit is a renaming when the parent is itself a child unit.
13270         Remove handling of with_type clauses.
13271
13272         * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
13273         (Set_Is_Static_Coextension): New procedure.
13274         (Has_Local_Raise): New function
13275         (Set_Has_Local_Raise): New procedure
13276         (Renaming_Exception): New field
13277         (Has_Init_Expression): New flag
13278         (Delay_Finalize_Attach): Remove because flag is obsolete.
13279         (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
13280         Remove all handling of with_type clauses.
13281         (Exception_Junk): Can now be set in N_Block_Statement
13282
13283 2007-06-06  Vincent Celier  <celier@adacore.com>
13284             Robert Dewar  <dewar@adacore.com>
13285
13286         * frontend.adb (Frontend): Return immediately if the main source could
13287         not be parsed, because of preprocessing errors.
13288
13289         * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
13290         (Gnat1drv): Exit with errors if the main source could not be parsed,
13291         because of preprocessing errors.
13292         (Check_Rep_Info): New procedure
13293
13294 2007-06-06  Robert Dewar  <dewar@adacore.com>
13295
13296         * g-hesorg.ads, g-heasor.ads,
13297         g-busorg.ads, g-bubsor.ads: Update documentation
13298         GNAT.Heap/Bubble_Sort_G is now pure
13299
13300 2007-06-06  Robert Dewar  <dewar@adacore.com>
13301
13302         * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
13303
13304 2007-06-06  Robert Dewar  <dewar@adacore.com>
13305             Ed Schonberg  <schonberg@adacore.com>
13306
13307         * g-comlin.ads, g-comlin.adb: 
13308         Add new warning for renaming of function return objects
13309
13310         * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
13311         (Tree_Read): Use size of object instead of type'object_size, since the
13312         latter is incorrect for packed array types.
13313         (Tree_Write): Same fix
13314
13315         * opt.ads: Add new warning for renaming of function return objects
13316         (Generating_Code): New boolean variable used to indicate that the
13317         frontend as finished its work and has called the backend to process
13318         the tree and generate the object file.
13319         (GCC_Version): Is now private
13320         (Static_Dispatch_Tables): New constant declaration.
13321         (Overflow_Checks_Unsuppressed): New flag.
13322         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
13323         (List_Closure): New flag for gnatbind (-R)
13324         Zero_Formatting: New flag for gnatbind (-Z)
13325         (Special_Exception_Package_Used): New flag.
13326         (Warn_On_Unrepped_Components): New flag.
13327
13328         * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
13329         unit is a compilation unit, rather than relying on its scope, so that
13330         Standard can be renamed.
13331         (Analyze_Object_Renaming): Add new warning for renaming of function
13332         return objects.
13333         Also reject attempt to rename function return object in Ada 83 mode.
13334         (Attribute_Renaming): In case of tagged types, add the body of the
13335         generated function to the freezing actions of the type.
13336         (Find_Type): A protected type is visible right after the reserved word
13337         "is" is encountered in its type declaration. Set the entity and type
13338         rather than emitting an error message.
13339         (New_Scope): Properly propagate Discard_Names to inner scopes
13340         (Check_Nested_Access): New procedure.
13341         (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
13342         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
13343
13344         * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
13345         Add new warning for renaming of function return objects
13346         (Check_References): Suppress warnings for objects whose type or
13347         base type has Warnings suppressed.
13348         (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
13349         (Set_Warning_Switch): Include new -gnatwc in -gnatwa
13350
13351 2007-06-06  Vincent Celier  <celier@adacore.com>
13352             Emmanuel Briot  <briot@adacore.com>
13353             Olivier Hainque  <hainque@adacore.com>
13354
13355         * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
13356         absolute value of Header.Block_Size when displaying the freed physical
13357         memory in traces.
13358         (Allocate): Compute Storage_Address using Integer_Address, not
13359         Storage_Offset, because the range of Storage_Offset may not be large
13360         enough.
13361         (Configure): New parameter Low_Level_Traces
13362         (Allocate, Deallocation, Free_Physically): Added low-level traces
13363         (Configure): new parameter Errors_To_Stdout.
13364         (Output_File): new subprogram
13365         (Deallocate, Dereference): Send error messages to the proper stream
13366         (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
13367         documented. Previous code would send it to the current output file
13368         defined in GNAT.IO, which might not be stdout
13369         (Is_Valid): Adjust comment to mention that a positive reply means that
13370         Header_Of may be used to retrieve the allocation header associated with
13371         the subprogram Storage address argument. Return False early if this
13372         address argument is misaligned.
13373
13374 2007-06-06  Vincent Celier  <celier@adacore.com>
13375
13376         * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
13377         switch -P
13378         (ASIS_Main): New global variable
13379         (Get_Closure): New procedure
13380         (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
13381         check, metric or pretty. Call Get_Closure in this case.
13382         (Check_Files): For GNAT LIST, check all sources of all projects when
13383         All_Projects is True.
13384         (GNATCmd): Accept -U for GNAT LIST
13385
13386 2007-06-06  Vincent Celier  <celier@adacore.com>
13387
13388         * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
13389         has been specified
13390         Correct error message when invocation of the linker fails
13391         Add explicit size clause for the C imported variables
13392         Object_List_File_Supported and Using_GNU_Linker to emphasize that
13393         we expect char size.
13394         Read target parameters earlier, since this is needed to set
13395         Target_VM properly. Also do not use -static/shared-libgcc for non GCC
13396         targets.
13397
13398 2007-06-06  Vincent Celier  <celier@adacore.com>
13399
13400         * gnatls.adb: 
13401         Add 3 spaces before the default project directory when displaying
13402         the project search path.
13403         Add new command line switch '-l' to display license information.
13404
13405 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
13406
13407         * gmem.c: Add support for timestamps on memory operations.
13408
13409         * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
13410         operations (not used currently, just foundation for future
13411         enhancements). Add possibility to perform full dump of gmem.out file.
13412         (Print_Back_Traces): Declare accesses to root arrays constants since
13413         they aren't modified.
13414         (Print_Back_Traces): allocate root arrays on the heap rather than stack.
13415
13416 2007-06-06  Vincent Celier  <celier@adacore.com>
13417
13418         * gnatsym.adb: Update Copyright notice
13419         (Parse_Cmd_Line): Accept new switch -D
13420         (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
13421          file.
13422
13423         * prj.ads (Policy): New policy Direct
13424         (Yes_No_Unknown): New enumeration type
13425         (Project_Data): New component Libgnarl_Needed
13426
13427         * prj-nmsc.adb (Check_For_Source): When recording a source file make
13428         use the untouched pathname casing.
13429         (Get_Directories): Ensure that the Display_Exec_Directory is using the
13430         proper casing on non case-sensitive platforms like Windows.
13431         (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
13432         on all platforms, as it is not possible to know which one is allowed
13433         before processing the project files.
13434         (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
13435         specified when symbol policy is Direct. Check that when there is a
13436         symbol file defined (either by default or with attribute
13437         Library_Symbol_File) it is not the same as the reference symbol file.
13438         (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
13439         (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
13440         extending projects.
13441         (Record_Ada_Source): Record a source that has been locally removed in an
13442         imported project.
13443
13444         * symbols.ads (Policy): New policy Direct
13445
13446         * symbols-vms.adb (Initialize): Take new policy Direct in case
13447         statement
13448
13449 2007-06-06  Vincent Celier  <celier@adacore.com>
13450
13451         * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
13452         Correct obvious bug (return Dir; instead of return Directory;).
13453         (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
13454
13455 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13456
13457         * g-pehage.adb (Produce): Open output files in Binary mode, so that
13458         they have UNIX line endings (LF only) even on Windows, and thus pass
13459         all GNAT style checks.
13460
13461 2007-06-06  Emmanuel Briot  <briot@adacore.com>
13462
13463         * g-regpat.adb (Quote): Fix improper quoting of '.'
13464
13465 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13466
13467         * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
13468         default, set False on a per-runtime basis.
13469         (Need_Netdb_Buffer): New constant.
13470
13471         * g-socket.ads, g-socket.adb: Import new package
13472         GNAT.Sockets.Thin.Task_Safe_NetDB.
13473         (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
13474         binding to obtain proper message.
13475         (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
13476         Replace various occurrences of Arry (Arry'First)'Address with the
13477         equivalent Arry'Address (GNAT always follows implementation advice from
13478         13.3(14)).
13479         (Get_Host_By_Address, Get_Host_By_Name,
13480         Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
13481         instead, rely on platform-specific task safe netdb operations provided
13482         by g-socthi.
13483
13484         * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
13485         parameter Process_Blocking_IO.
13486         (Host_Error_Messages): Add stub body.
13487         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
13488         (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
13489         Safe_Getservbyport): Move functions into new child package
13490         Task_Safe_NetDB.
13491         (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
13492         Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
13493         (In_Addr): Add alignment clause.
13494
13495 2007-06-06  Robert Dewar  <dewar@adacore.com>
13496
13497         * g-trasym.ads, g-traceb.ads: Update list of supported targets
13498         Add note about symbolic traceback
13499
13500 2007-06-06  Pascal Obry  <obry@adacore.com>
13501
13502         * hostparm.ads (Normalized_CWD): Use the host directory separator
13503         instead of the hardcoded forward slash which is not the proper
13504         character on Windows for example.
13505         (Java_VM): Removed.
13506
13507 2007-06-06  Vincent Celier  <celier@adacore.com>
13508             Arnaud Charlet  <charlet@adacore.com>
13509
13510         * a-clrefi.adb, a-clrefi.ads: New files
13511
13512         * impunit.adb: Add s-os_lib in the list of user visible units.
13513         (Non_Imp_File_Names_95): Add a-clrefi to this list
13514         Remove obsolete run-time entries.
13515         (Non_Imp_File_Names_05): Add Ada 2005 entries for:
13516          "a-exetim" -- Ada.Execution_Time
13517          "a-extiti" -- Ada.Execution_Time.Timers
13518
13519         * mlib-prj.ads, mlib-prj.adb
13520         (Build_Library): Use untouched object dir and library dir. At the
13521         same time makes sure that the checks are done using the canonical
13522         form. Removes hard-coded directory separator and use the proper host
13523         one instead.
13524         (Process_Project): Do not look in object directory to check if libgnarl
13525         is needed for a library, if there is no object directory.
13526         (Build_Library): Scan the ALI files to decide if libgnarl is needed for
13527         linking.
13528         (Build_Library): When invoking gnatbind, use a response file if the
13529         total size of the arguments is too large.
13530
13531         * Makefile.rtl: (g-sttsne): New object file.
13532         Add entry for a-clrefi, s-utf_32, System.Exceptions
13533
13534         * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
13535         (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
13536         (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
13537         Change g-string to s-string, g-os_lib to s-os_lib
13538         Change all g-utf_32 references to s-utf_32
13539
13540 2007-06-06  Tristan Gingold  <gingold@adacore.com>
13541             Olivier Hainque  <hainque@adacore.com>
13542
13543         * init.c: Do not adjust IP of an imported VMS exception of ia64.
13544         LIB$STOP is called to raise an exception and the IP of the exception
13545         is the instruction right after the call.
13546         (__gnat_adjust_context_for_raise, AIX): Implement.
13547         (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
13548          adjust_context_for_raise before Raise_From_Signal_Hanler.
13549         (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
13550         siginfo is passed to the handler, necessary to let the zcx propagation
13551         engine unwind past it.
13552
13553 2007-06-06  Olivier Hainque  <hainque@adacore.com>
13554
13555         * initialize.c (__gnat_initialize for vxworks):  Update documentation
13556         on the ZCX support, using different sets of crtstuff objects than with
13557         GCC 3.4.
13558
13559 2007-06-06  Robert Dewar  <dewar@adacore.com>
13560
13561         * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
13562         spec from body
13563         (Layout_Type): Fix recomputation of size from alignment.
13564
13565 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13566             Javier Miranda  <miranda@adacore.com>
13567
13568         * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
13569         association in an instance.
13570         (Copy_Generic_Node): If the node is a string literal, no need to copy
13571         its descendants.
13572         (Is_Generic_Formal): For a formal subprogram, the declaration is the
13573         grandparent of the entity.
13574         (Analyze_Formal_Interface_Type): Transform into a full type declaration,
13575         to simplify handling of formal interfaces that derive from other formal
13576         interfaces.
13577         (Instantiate_Subprogram_Body): The defining unit name of the body of
13578         the instance should be a defining identifier.
13579         (Install_Formal_Packages): make global to the package, for use in
13580         instantiations of child units.
13581         (Analyze_Package_Instantiation): Do not attempt to set information on an
13582         enclosing master of an entry when expansion is disabled.
13583         (Instantiate_Type): If the actual is a tagged synchronized type and the
13584         generic ancestor is an interface, create a generic actual for the
13585         corresponding record.
13586         (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
13587         declaration, to ensure that the interface list is processed correctly.
13588         (Inline_Instance_Body): If enclosing scope is an instance body, remove
13589         its entities from visibiility as well.
13590         (Pre_Analyze_Actuals): if the actual is an allocator with  constraints
13591         given with a named association, analyze the expression only, not the
13592         discriminant association itself.
13593         (Reset_Entity): If the analysis of a selected component is transformed
13594         into an expanded name in the prefix of a call with parameters, do not
13595         transform the original node into an expanded name, to prevent visibility
13596         errors in the case of nested generics.
13597         (Check_Private_View): For an array type, check whether the index types
13598         may need exchanging.
13599
13600 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
13601             Vincent Celier  <celier@adacore.com>
13602
13603         * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
13604         since both are separated.
13605         Add support for imported CIL packages.
13606         Add further special handling of "value_type" for CIL.
13607         Add special handling of pragma Import for CIL.
13608
13609         * make.ads, make.adb: When switch -eS is used, direct all outputs to
13610         standard output instead of standard error, except errors.
13611         (Absolute_Path): Use untouched casing for the parent directory.
13612         (Add_Library_Search_Dir): Use the untouched directory name.
13613         (Add_Source_Search_Dir): Idem.
13614         (Change_To_Object_Directory): Update output to use proper casing.
13615         (Create_Binder_Mapping_File): Use the untouched filename to set
13616         ALI_Name.
13617         (Gnatmake): Use untouched library and executable directory names.
13618         (Insert_Project_Sources): Use untouched filename for spec and body.
13619         (Is_In_Object_Directory): Use untouched object directory.
13620         (Mark_Directory): Idem.
13621         (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
13622         contains the non-canonical filename in all cases.
13623         (Change_To_Object_Directory): In verbose mode, display the name of the
13624         object directory we're changing to.
13625         (Compile_Sources): Make sure, when a project file is used, to compile
13626         the body of the unit, when there is one, even when only the spec is
13627         recorded in an ALI file.
13628         (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
13629         spec to the body.
13630         (Report_Compilation_Failed): New procedure
13631         (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
13632         procedures moved from the spec to the body.
13633         (Extract_Failure): Removed, not used
13634         Replace explicit raises of exception Bind_Failed and Link_Failed with
13635         calls to Make_Failed with the proper message.
13636         Replace explicit raises of exception Compilation_Failed with calls to
13637         procedure Report_Compilation_Failed.
13638         (Initialize): Create mapping files unconditionally when using project
13639         files.
13640
13641         * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
13642         Pragma_CIL_Constructor): New names.
13643
13644         * targparm.ads, targparm.adb
13645         (Compiler_System_Version): Removed, no longer used.
13646         (Get_Target_Parameters): Relax checks on system.ads validity. Add
13647         handling of two new system flags: JVM and CLI.
13648
13649 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
13650             Arnaud Charlet  <charlet@adacore.com>
13651
13652         * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
13653         time, use the default s-interr body that provides interrupt support
13654         based on signals.
13655         (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
13656         a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
13657         g-soccon.ads, and s-taprop.adb for the marte run time.
13658         (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
13659         timers are supported on marte.
13660         (EH_MECHANISM for marte): Do not use ZCX.
13661         (THREADSLIB for marte): Use -lmarte.
13662         Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
13663         Add mlib-tgt-specific.o to gnatmake objects
13664         mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
13665         longer of MLib.Tgt.
13666         (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
13667         6, either kernel or rtp, use a specialized version of s-osinte.ads.
13668
13669 2007-06-06  Pascal Obry  <obry@adacore.com>
13670
13671         * mkdir.c (__gnat_mkdir): Add support for UTF-8.
13672
13673 2007-06-06  Vincent Celier  <celier@adacore.com>
13674
13675         * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
13676         separator, use instead the proper host directory separator.
13677         (Copy_ALI_Files): Make sure that an already existing ALI file in the
13678         ALI copy dir is writable, before doing the copy.
13679
13680         * mlib-utl.ads, mlib-utl.adb: 
13681         (Gcc): If length of command line is too long, put the list of object
13682         files in a response file, if this is supported by the platform.
13683         (Ar): If invocation of the archive builder is allowed to be done in
13684         chunks and building it in one shot would go above an OS dependent
13685         limit on the number of characters on the command line, build the archive
13686         in chunks.
13687
13688 2007-06-06  Vincent Celier  <celier@adacore.com>
13689
13690         * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
13691         of specified object file is not equal to base name of source.
13692
13693 2007-06-06  Javier Miranda  <miranda@adacore.com>
13694             Hristian Kirtchev  <kirtchev@adacore.com>
13695             Ed Schonberg  <schonberg@adacore.com>
13696
13697         * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
13698         the full type declaration.
13699         (Analyze_Component_Declaration): Add local variable E to capture the
13700         initialization expression of the declaration. Replace the occurences of
13701         Expression (N) with E.
13702         (OK_For_Limited_Init_In_05): Allow initialization of class-wide
13703         limited interface object with a function call.
13704         (Array_Type_Declaration): If the declaration lacks subtype marks for
13705         indices, create a simple index list to prevent cascaded errors.
13706         (Is_Null_Extension): Ignore internal components created for secondary
13707         tags when checking whether a record extension is a null extension.
13708         (Check_Abstract_Interfaces): Add missing support for interface subtypes
13709         and generic formals.
13710         (Derived_Type_Declaration): Add missing support for interface subtypes
13711         and generic formals.
13712         (Analyze_Object_Declaration): If an initialization expression is
13713         present, traverse its subtree and mark all allocators as static
13714         coextensions.
13715         (Add_Interface_Tag_Component): When looking for components that may be
13716         secondary tags, ignore pragmas that can appear within a record
13717         declaration.
13718         (Check_Abstract_Overriding): an inherited function that dispatches on
13719         result does not need to be overriden if the controlling type is a null
13720         extension.
13721         (Mentions_T): Handle properly a 'class attribute in an anonymous access
13722         component declaration, when the prefix is an expanded name.
13723         (Inherit_Component): If the derivation is for a private extension,
13724         inherited components remain visible and their ekind should not be set
13725         to Void.
13726         (Find_Type_Of_Object): In the case of an access definition, always set
13727         Is_Local_Anonymous_Access. We were previously not marking the anonymous
13728         access type of a return object as a local anonymous type.
13729         (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
13730         range with character literal bounds.
13731         (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
13732         (Access_Subprogram_Declaration): Indicate that the type declaration
13733         depends on an incomplete type only if the incomplete type is declared
13734         in an open scope.
13735         (Analyze_Subtype_Declaration): Handle properly subtypes of
13736         synchronized types that are tagged, and that may appear as generic
13737         actuals.
13738         (Access_Subprogram_Declaration): An anonymous access to subprogram can
13739         appear as an access discriminant in a private type declaration.
13740         (Add_Interface_Tag_Components): Complete decoration of the component
13741         containing the tag of a secondary dispatch table and the component
13742         containing the offset to the base of the object (this latter component
13743         is only generated when the parent type has discriminants --as documented
13744         in this routine).
13745         (Inherit_Components): Use the new decoration of the tag components to
13746         improve the condition that avoids inheriting the components associated
13747         with secondary tags of the parent.
13748         (Build_Discriminanted_Subtype): Indicate to the backend that the
13749         size of record types associated with dispatch tables is known at
13750         compile time.
13751         (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
13752         (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
13753         to include task, protected, and synchronized interfaces as limited
13754         interfaces.
13755         (Process_Discriminants): Remove the setting of
13756         Is_Local_Anonymous_Access on the type of (anonymous) access
13757         discriminants of nonlimited types.
13758         (Analyze_Interface_Type_Declaration): Complete the decoration of the
13759         class-wide entity it is is already present. This situation occurs if
13760         the limited-view has been previously built.
13761         (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
13762         field.
13763         (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
13764         Related_Interface.
13765
13766 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13767
13768         * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
13769         of the type that specify the position of interface tags when the type
13770         inherits discriminated array components from the parent type.
13771         If a component is initialized with a box, check for the presence of a
13772         default expression in its declaration before using its default
13773         initialization procedure.
13774         (Resolve_Record_Aggregate): If a component is box-initialized, and the
13775         component type has a discriminants, create a partial aggregate for it
13776         by copying the discriminants of the component subtype.
13777         Reject attempt to initialize a discriminant with a box.
13778         (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
13779         associated with dispatch tables is known at compile time.
13780         (Get_Value): If an association in a record aggregate has a box
13781         association, and the corresponding record component has a default
13782         expression, always copy the default expression, even when the
13783         association has a single choice, in order to create a proper
13784         association for the expanded aggregate.
13785
13786 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13787             Robert Dewar  <dewar@adacore.com>
13788
13789         * par-ch12.adb (P_Generic_Associations): The source position of an
13790         Others association is that of the others keyword, not that of the token
13791         that follows the box.
13792         (P_Formal_Type_Definition): Handle formal access types that carry a
13793         not null indicator.
13794
13795         * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
13796         multiple identifier are present, save Scan_State before scanning the
13797         colon, to ensure that separate trees are constructed for each
13798         declaration.
13799         (P_Identifier_Declarations): For object declaration, set new flag
13800         Has_Init_Expression if initialization expression present.
13801         (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
13802         Improve NOT NULL error messages
13803
13804 2007-06-06  Robert Dewar  <dewar@adacore.com>
13805
13806         * par-ch4.adb: (P_Name): Recover from literal used as name
13807
13808 2007-06-06  Vincent Celier  <celier@adacore.com>
13809
13810         * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
13811         defaulted to False.
13812         In the "not" case, recursive call with Complemented set to True.
13813         Do not allow "or" or "and" operators when Complemented is True.
13814
13815 2007-06-06  Vincent Celier  <celier@adacore.com>
13816
13817         * prj.adb (Project_Empty): Gives default value for new component
13818         Libgnarl_Needed
13819
13820         * prj-attr.ads: Minor reformatting
13821
13822         * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
13823         directory using the untouched casing.
13824         (For_All_Source_Dirs): Idem.
13825
13826         * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
13827         directories specified with switches -aP.
13828         (Add_Search_Project_Directory): New procedure
13829         (Initialize_Project_Path): Put the directories in table
13830         Search_Directories in the project search path.
13831         (Initialize_Project_Path): For VMS, transform into canonical form the
13832         project path.
13833
13834 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
13835
13836         * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
13837         true if configurable run-time or No_Run_Time is set.
13838         (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
13839         processing an unit which is not the one being compiled.
13840
13841 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
13842
13843         * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
13844         Replace UC by Ada.UC
13845
13846         * s-bitops.adb: Get rid of System.Pure_Exceptions.
13847         Replace UC by Ada.UC
13848
13849 2007-06-06  Robert Dewar  <dewar@adacore.com>
13850
13851         * scng.adb: (Check_End_Of_Line): Deal with very long lines
13852
13853 2007-06-06  Robert Dewar  <dewar@adacore.com>
13854
13855         * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
13856         Remove no longer used nodes.
13857
13858 2007-06-06  Javier Miranda  <miranda@adacore.com>
13859             Ed Schonberg  <schonberg@adacore.com>
13860             Robert Dewar  <dewar@adacore.com>
13861
13862         * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
13863         on obsolescent withed unit in case of limited-withed units.
13864         (Analyze_Compilation_Unit): Add guard to code that removed an
13865         instantiation from visibility, to prevent compiler aborts when
13866         instantiation is abandoned early on.
13867         (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
13868         current unit being analyzed, and Distinguish local incomplete types
13869         from limited views of types declared elsewhere.
13870         (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
13871         to state that the class-wide entity is shared by the limited-view
13872         and the full-view.
13873         (Analyze_With_Clause): Improve placement of flag for case of
13874         unimplemented unit.
13875         (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
13876         manner similar to GNAT.Current_Exception. This is a violation of
13877         restriction (No_Exception_Propagation), and also inhibits the
13878         optimization of local raise to goto.
13879         (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
13880         and if so set Most_Recent_Exception_Used flag in Opt, and also check
13881         for violation of restriction No_Exception_Propagation.
13882
13883 2007-06-06  Javier Miranda  <miranda@adacore.com>
13884             Hristian Kirtchev  <kirtchev@adacore.com>
13885             Gary Dismukes  <dismukes@adacore.com>
13886
13887         * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
13888         use of entity Exception_Occurrence if it is not available in the
13889         target run-time.
13890
13891         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
13892         concurrent types are declared within an Ada 2005 generic, build their
13893         corresponding record types since they are needed for overriding-related
13894         semantic checks.
13895         (Analyze_Protected_Type): Rearrange and simplify code for testing that a
13896         protected type does not implement a task interface or a nonlimited
13897         interface.
13898         (Analyze_Task_Type): Rearrange and simplify code for testing that a task
13899         type does not implement a protected interface or a nonlimited interface.
13900         (Single_Task_Declaration, Single_Protected_Declaration): use original
13901         entity for variable declaration, to ensure that debugging information
13902         is correcty generated.
13903         (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
13904         routines if the expander is not active.
13905         (Analyze_Task_Body): Mark all handlers to stop optimization of local
13906         raise, since special things happen for task exception handlers.
13907
13908         * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
13909         concurrent types declared within a generic.
13910         (Check_Dispatching_Operation): Do not emit warning about late interface
13911         operations in the context of an instance.
13912         (Check_Dispatching_Call): Remove restriction against calling a
13913         dispatching operation with a limited controlling result.
13914         (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
13915         Register_Interface_DT_Entry by calls to Register_Primitive.
13916         (Check_Dispatching_Formals): Handle properly a function with a
13917         controlling access result.
13918
13919 2007-06-06  Robert Dewar  <dewar@adacore.com>
13920             Arnaud Charlet  <charlet@adacore.com>
13921
13922         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
13923         Check for restriction No_Implementation_Attributes if in Ada 95 mode.
13924         (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
13925         (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
13926         message when using a VM, since this attribute is not supported.
13927         (Analyze_Record_Representation_Clause): Give unrepped component warnings
13928
13929         * usage.adb: Add new warning for renaming of function return objects
13930         Indicate that -gnatwp and -gnatwP concern front-end inlining
13931         Add line for -gnatyg
13932         Add usage information for -gnatw.c/C
13933
13934 2007-06-06  Robert Dewar  <dewar@adacore.com>
13935             Ed Schonberg  <schonberg@adacore.com>
13936
13937         * sem_ch5.adb
13938         (Find_Var): Do not consider function call in test for infinite loop
13939         warning if warnings set off for function entity.
13940         (One_Bound): Do not create a temporary for a loop bound if it is a
13941         character literal.
13942         (Analyze_Assignment): Traverse the right hand side of an assignment and
13943         mark all allocators as static coextensions.
13944         (Analyze_Assignment): Exempt assignments involving a dispatching call
13945         to a function with a controlling access result from the check requiring
13946         the target to be class-wide.
13947
13948 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
13949             Ed Schonberg  <schonberg@adacore.com>
13950             Robert Dewar  <dewar@adacore.com>
13951             Javier Miranda  <miranda@adacore.com>
13952
13953         * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
13954         chain of coextensions when an allocator serves as the root of such a
13955         chain.
13956         (Propagate_Coextensions): Remove the test for the root being an
13957         allocator.
13958         (Resolve_Allocator): Add condition to ensure that all future decoration
13959         occurs on an allocator node. Add processing and cleanup for static
13960         coextensions.
13961         (Valid_Conversion): If the operand type is the limited view of a
13962         class-wide type, use the non-limited view is available to determine
13963         legality of operation.
13964         (Ambiguous_Character): move to spec, for use elsewhere.
13965         (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
13966         (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
13967         character literals.
13968         (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
13969         Do_Division_Check flag explicitly.
13970         (Resolve_Actuals): If the actual is of a synchronized type, and the
13971         formal is of the corresponding record type, this is a call to a
13972         primitive operation of the type, that is declared outside of the type;
13973         the actual must be unchecked-converted to the type of the actual
13974         (Resolve_Call): Kill all current values for any subprogram call if
13975         flag Suppress_Value_Tracking_On_Call is set.
13976         (Resolve_Type_Conversion): Generate error message the the operand
13977         or target of interface conversions come from a limited view.
13978         (Check_Infinite_Recursion): Ignore generated calls
13979         (Check_Allocator_Discrim_Accessibility): New procedure for checking
13980         that an expression that constrains an access discriminant in an
13981         allocator does not denote an object with a deeper level than the
13982         allocator's access type.
13983         (Resolve_Allocator): In the case of an allocator initialized by an
13984         aggregate of a discriminated type, check that associations for any
13985         access discriminants satisfy accessibility requirements by calling
13986         Check_Allocator_Discrim_Accessibility.
13987         (Resolve_Equality_Op): Handle comparisons of anonymous access to
13988         subprogram types in the same fashion as other anonymous access types.
13989         (Resolve_Concatenation_Arg): Remove initial character '\' in an error
13990         message that is not a continuation message.
13991         (Resolve_Type_Conversion): Add missing support for conversion to
13992         interface type.
13993         (Resolve_Actuals): Introduce a transient scope around the call if an
13994         actual is a call to a function returning a limited type, because the
13995         resulting value must be finalized after the call.
13996         (Resolve_Actuals): If the call was given in prefix notations, check
13997         whether an implicit 'Access reference or implicit dereference must be
13998         added to make the actual conform to the controlling formal.
13999
14000 2007-06-06  Robert Dewar  <dewar@adacore.com>
14001             Javier Miranda  <miranda@adacore.com>
14002
14003         * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
14004         (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
14005         overriding of an inherited private subprogram now there is no need to
14006         inherit its dispatching slot and reduce the size of the dispatch table.
14007         Set_All_DT_Position now ensures that the same slot is now assigned to
14008         both entities. This is required to statically build the dispatch table.
14009         (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
14010         of calling Set_All_DT_Position to re-evaluate the position of the
14011         entries in the dispatch table. Such reevaluation is not desired if
14012         the tagged type is already frozen.
14013
14014 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
14015             Gary Dismukes  <dismukes@adacore.com>
14016             Robert Dewar  <dewar@adacore.com>
14017             Javier Miranda  <miranda@adacore.com>
14018
14019         * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
14020         reference acts as an lvalue when the attribute name modifies the prefix
14021         (Is_Coextension_Root): New routine.
14022         (Mark_Static_Coextensions): New routine.
14023         (Type_Access_Level): Revise code for checking the level of the
14024         anonymous access type of a return object.
14025         (Safe_To_Capture_Value): Not safe to capture if Address_Taken
14026         (Matches_Prefixed_View_Profile): Remove the no longer necessary
14027         retrieval of the corresponding controlling record type.
14028         (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
14029         concurrent types declared within a generic as well as class wide types.
14030         Emit a mode incompatibility error whenever a protected entry or routine
14031         override an interface routine whose first parameter is not of mode
14032         "out", "in out" or access to variable.
14033         (Overrides_Synchronized_Primitive): Rename to
14034         Find_Overridden_Synchronized_Primitive.
14035         (Collect_Interface_Components): New subprogram that collects all the
14036         components of a tagged record containing tags of secondary dispatch
14037         tables.
14038         (Add_Global_Declaration): New procedure
14039         (Abstract_Interface_List): Handle properly the case of a subtype of a
14040         private extension.
14041         (Type_Access_Level): In the case of a type whose parent scope is a
14042         return statement, call Type_Access_Level recursively on the enclosing
14043         function's result type to determine the level of the return object's
14044         type.
14045         (Build_Elaboration_Entity): Build name of elaboration entity from the
14046         scope chain of the entity, rather than the unit name of the file name.
14047         (Check_Nested_Access): New procedure.
14048         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
14049         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
14050         (Get_Renamed_Entity): Utility routine for performing common operation
14051         of chasing the Renamed_Entity field of an entity.
14052
14053 2007-06-06  Robert Dewar  <dewar@adacore.com>
14054
14055         * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
14056         elaboration model
14057         (Check_A_Call): Add check for entry call which was causing blowup
14058
14059 2007-06-06  Olivier Hainque  <hainque@adacore.com>
14060
14061         * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
14062         special code on ia64-vms to handle major incompatibilities between the
14063         GCC unwinding ABI and the VMS Condition Handling Facility, both calling
14064         this routine with a very different set of arguments and expectations on
14065         the return value.
14066
14067 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14068
14069         * socket.c (__gnat_close_signalling_fd): New function.
14070         (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
14071         __gnat_safe_getservbyname, __gnat_safe_getservbyport):
14072         New supporting functions for task safe Netdb operations.
14073
14074 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14075             Olivier Hainque  <hainque@adacore.com>
14076
14077         * a-except-2005.ads, a-except-2005.adb
14078         (Raise_From_Controlled_Operation): New procedure in
14079         (private part of) Ada.Exceptions (standard runtime version). Used to
14080         provide informational exception message when Program_Error is raised as
14081         a result of an Adjust or Finalize operation propagating an exception.
14082         (Rmsg_28): Fix description for E.4(18) check.
14083         (Raise_Current_Excep): Call Debug_Raise_Exception just before
14084         propagation starts, to let debuggers know about the event in a reliable
14085         fashion.
14086         Take the address of E and dereference to make sure it is homed on stack
14087         and prevent the stores from being deleted, necessary for proper
14088         debugger behavior on "break exception" hits.
14089         (Local_Raise): Moved to System.Exceptions
14090
14091         * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
14092         exception message from the current occurrence and raise Program_Error
14093         has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
14094
14095 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
14096             Arnaud Charlet  <charlet@adacore.com>
14097
14098         * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
14099         lock, if needed.
14100
14101         * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
14102         priority associated to a lock.
14103
14104         * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
14105         assertion to take into account case of no abort restriction.
14106         (Initialize_Protection_Entries): Add initialization for the field
14107         New_Ceiling associated to the protected object.
14108         (Unlock_Entries): Change the ceiling priority of the underlying lock, if
14109         needed.
14110
14111         * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
14112         since this function needs to be set consistently with Update_Exception.
14113
14114         * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
14115         since this function needs to be set consistently with Update_Exception.
14116
14117         * s-taskin.ads: Update comments on
14118         Interrupt_Server_Blocked_On_Event_Flag.
14119         (Unbind_Handler): Fix handling of server_task wakeup
14120         (Server_Task): Set self's state so that Unbind_Handler can take
14121         appropriate actions.
14122         (Common_ATCB): Now use a constant from System.Parameters to determine
14123         the max size of the Task_Image field.
14124
14125         * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
14126         Initialize_Analyzer function.
14127         ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
14128         take into account case of no abort restriction.
14129         ([Vulnerable_]Complete_Master): Modify assertion.
14130
14131         * s-tataat.adb (Finalize): Use the nestable versions of
14132         Defer/Undefer_Abort.
14133
14134         * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
14135
14136         * s-tpobop.ads: Update comments.
14137
14138         * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
14139         of locking the object manually, to avoid inconsistencies between
14140         Lock/Unlock_Entry assertions.
14141
14142         * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
14143         terminating
14144         application and System.Parameters.No_Abort is True.
14145         Update comments on Interrupt_Server_Blocked_On_Event_Flag.
14146         (Unbind_Handler): Fix handling of server_task wakeup
14147         (Server_Task): Set self's state so that Unbind_Handler can take
14148         appropriate actions.
14149
14150 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14151
14152         * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
14153         declarations instead of an explicit null body, for conciseness.
14154
14155 2007-06-06  Robert Dewar  <dewar@adacore.com>
14156
14157         * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
14158         illegal aggregate and the type is still Any_Composite.
14159         (Subtypes_Statically_Match): Fix problem of empty discriminant list
14160
14161 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
14162
14163         * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
14164         to prevent subsequent expansion.
14165
14166 2007-06-06  Robert Dewar  <dewar@adacore.com>
14167
14168         * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
14169
14170 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
14171             Robert Dewar  <dewar@adacore.com>
14172
14173         * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
14174         exceptions.
14175         (Write_Itype): Handle case of string literal subtype, which
14176         comes up in this context.
14177         (Update_Itype): when debugging expanded code, update sloc of itypes
14178         associated with defining_identifiers and ranges, for gdb use.
14179         (Sprint_Node_Actual): Add static keyword to object or exception
14180         declaration output if Is_Statically_Allocated is True.
14181         (Sprint_End_Label): Set entity of end marker for a subprogram, package,
14182         or task body, so that the tree carries the proper Sloc information for
14183         debugging use.
14184         (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
14185
14186 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
14187
14188         * s-secsta.adb (Chunk): Ensure this object has a static size known at
14189         compile time, to avoid dynamic memory allocation
14190         (Elaboration code): Only use dynamic memory allocation when needed.
14191
14192 2007-06-06  Quentin Ochem  <ochem@adacore.com>
14193
14194         * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
14195         "Overflow_Guard".
14196         (Stack_Analyzer): Added field "Overflow_Guard"
14197         (Task_Result): Added field "Overflow_Guard".
14198         (Index_Str): New constant.
14199         (Task_Name_Str): New constant.
14200         (Actual_Size_Str): New constant.
14201         (Pattern_Array_Element_Size): New constant.
14202         (Get_Usage_Range): New subprogram.
14203         (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
14204         Now align the output.
14205         Added comments.
14206         (Initialize): Added value for Overflow_Guard.
14207         (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
14208         Update the value of the overflow guard according to the actual
14209         beginning of the pattern array.
14210         (Initialize_Analyzer): Added parameter Overflow_Guard.
14211         Take this parameter into accound when computing the max size.
14212         (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
14213         (Report_Result): Removed extra useless procedure.
14214         Updated call to Output_Result.
14215         Moved full computation of the Task_Result here.
14216
14217 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14218
14219         * g-soccon-darwin.ads, gen-soccon.c: Add new constant
14220         Thread_Blocking_IO, always True by default, set False on a per-runtime
14221         basis.
14222         Add Windows-specific constants
14223         Add new constant Need_Netdb_Buffer.
14224         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
14225         not, whether to use getXXXbyYYY_r.
14226
14227         * gsocket.h: Add new constant Need_Netdb_Buffer.
14228         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
14229         not, whether to use getXXXbyYYY_r.
14230
14231 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
14232
14233         * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
14234         than their first call.
14235         Add type Dummy_Communication_Block used in the generation of the pre-
14236         defined dispatching primitive _disp_asynchronous_select.
14237         (Storage_Element): Put Pragma Universal_Aliasing on it.
14238
14239 2007-06-06  Vincent Celier  <celier@adacore.com>
14240
14241         * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
14242         function.
14243
14244         * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
14245         letter if it is not followed by a '/' or a '\'.
14246         (Windows): New Boolean function
14247
14248         * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
14249         Ada 2005.
14250         (Containing_Directory): On Windows, keep at least one '/' or '\' after a
14251         drive letter.
14252         (Containing_Directory): Raise Use_Error when the directory is a root
14253         directory.
14254         (Extension): When returning the result, use a conversion to Result_Type,
14255         not a qualification.
14256
14257 2007-06-06  Robert Dewar  <dewar@adacore.com>
14258
14259         * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
14260         (Set_Style_Check_Options): Recognize new -gnatyg style switch
14261
14262         * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
14263         Warn_On_Non_Local_Exception to False, to turn off warnings for
14264         No_Exception_Propagation in ZFP runtime.
14265         (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
14266         back-ends.
14267         (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
14268
14269 2007-06-06  Vincent Celier  <celier@adacore.com>
14270
14271         * switch-b.adb (Scan_Binder_Switches): Add processing for new
14272         switches -R and -Z
14273
14274         * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
14275         (Scan_Make_Switches): Recognize new switch -aP
14276
14277 2007-06-06  Matthew Gingell  <gingell@adacore.com>
14278             Jose Ruiz  <ruiz@adacore.com>
14279
14280         * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
14281         VxWorks task descriptor in the Ada run time, call a C subprogram
14282         (__gnat_get_stack_info) that extracts the required information.
14283
14284         * sysdep.c: Back out temporary lynxos workaround.
14285         (__gnat_get_stack_info): Add this procedure that passes to the Ada run
14286         time the stack information associated to the currently executing task.
14287         Only VxWorks systems require this function.
14288
14289 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
14290
14291         * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
14292         add the stack bias if the offset is computed from a frame address.
14293         (__gnat_backtrace): Adjust for above change.
14294
14295 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14296
14297         * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
14298         PE_Non_Transportable_Actual.
14299         (By_Descriptor_Last): New constant.
14300         (By_Copy_Return): Likewise.
14301
14302 2007-06-06  Vincent Celier  <celier@adacore.com>
14303
14304         * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
14305         is.
14306
14307         * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
14308         /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
14309         /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
14310         Add missing comment for /OPTIMIZE=SPACE
14311         Add entry for OPTIMIZE=SPACE
14312         Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
14313         Add documentation for new qualifiers corresponding to -gnatw.c/.C
14314
14315 2007-06-06  Vincent Celier  <celier@adacore.com>
14316             Robert Dewar  <dewar@adacore.com>
14317
14318         * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
14319         -gnatw.C)
14320
14321         * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
14322         Document gnatbind switch -a
14323         (case Constructions): Document that variables declarations are allowed
14324         for previously declared variables.
14325         Fix external lib project example
14326         -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
14327         Indicate that "#if not X or Y then" is not allowed in input files to
14328         gnatprep.
14329         Document gnatw.x and gnatw.X warning flags
14330         Mention -Winline switch to activate warnings when back-end inlining is
14331         ineffective.
14332         Add gnatcheck rule descriptions
14333         Describe how to use the GNAT driver to call a tool on a closure.
14334         Describe how to run project-wide checks or metrics.
14335         Document gnatbind's -R option
14336         Updated to account for Ada 2005 support
14337
14338         * gnat_rm.texi (Case Construction): Allow variable declarations for
14339         previously declared variables.
14340         (Representation Clauses and Pragmas): Lift restriction on alignment
14341         clauses for record types.
14342         (Ada.Characters.*): Fix typo in reference to A.3.3(27).
14343         Document No_Exception_Propagation restriction
14344         Document No_Body pragma
14345         Updated to account for Ada 2005 support; corrected some typos
14346         (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
14347
14348         * gnat-style.texi: Make it clear that we never use mode IN for
14349         procedures or functions
14350
14351         * ug_words: Add entries for -gnatw.x and -gnatw.X
14352         Add entries for -gnatw.c/.C
14353
14354 2007-06-06  Pascal Obry  <obry@adacore.com>
14355             Vincent Celier  <celier@adacore.com>
14356
14357         * makegpr.adb (Add_Archive_Path): Use untouched object and library
14358         dirs and library name.
14359         (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
14360         comments.
14361         (Build_Library): Idem.
14362         (Compile_Individual_Sources): Idem.
14363         (Compile_Link_With_Gnatmake): Idem.
14364         (Compile_Sources): Idem.
14365         (Get_Imported_Directories): Idem.
14366         (Link_Executables): Idem. Same change for the executable dir.
14367         (Check_Compilation_Needed): C_Source_Path new variable containing
14368         the canonical form of Source_Path to check against the source names
14369         in the dependency file.
14370         (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
14371         verbose mode, display the name of the object directory we're changing
14372         to.
14373         (Saved_Switches): New name of table X_Switches
14374         (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
14375         (Usage): New line for switch -aP
14376         (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
14377         testing if a directory should be added to the search path.
14378
14379 2007-06-06  Javier Miranda  <miranda@adacore.com>
14380
14381         * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads, 
14382         a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
14383         declaration after freezing point of all its associated tagged types;
14384         otherwise such types are frozen too early.
14385
14386 2007-06-06  Robert Dewar  <dewar@adacore.com>
14387
14388         * a-reatim.adb: Documentation addition
14389
14390         * g-cgideb.adb: Minor code reorganization
14391
14392         * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
14393         mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
14394         s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
14395
14396         * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
14397         function.  Change name New_Scope to Push_Scope
14398         (Get_Debug_Flag_K): Remove unused obsolete function.
14399
14400         * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
14401         Push_Scope.
14402
14403         * makeusg.adb: Update Copyright notice
14404         Add line for switch -aP
14405
14406         * makeusg.adb: Fix wording of some usage messages
14407
14408         * s-assert.adb (Raise_Assert_Failure): Add call to
14409         Debug_Raise_Assert_Failure.
14410
14411         * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
14412         (2, Standard'Alignment) for compatibility with AAMP (where alignment
14413         is restricted to 1).
14414
14415         * s-wchjis.adb: Remove use of System.Pure_Exceptions
14416
14417         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
14418         node location to No_Location when we're not debugging the expanded
14419         code.
14420
14421 2007-05-22  Alexandre Oliva  <aoliva@redhat.com>
14422
14423         * misc.c (enumerate_modes): Consider log2_b to always be one.
14424
14425 2007-05-14  Rafael Avila de Espindola  <espindola@google.com>
14426
14427         * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
14428
14429 2007-05-02  Pascal Obry  <obry@adacore.com>
14430
14431         * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
14432         to use Stream_IO.File_Type. This is needed to make use of the UTF-8
14433         encoding support of Stream_IO.
14434         (Write_Unit): Idem.
14435
14436         * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
14437         filename and corresponding encoding to match the OS requirement.
14438         (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
14439         routine will fail on specific devices like CON: AUX: ...
14440
14441         PR ada/29856: Add missing braces
14442
14443 2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14444
14445         PR ada/31660
14446         * ada-tree.h (lang_tree_node): Fix typo in chain_next.
14447
14448 2007-04-21  Jan Hubicka  <jh@suse.cz>
14449
14450         * misc.c (gnat_expand_body): Don't call target for destructors,
14451         avoid redundant check on syntax errors.
14452
14453 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14454
14455         * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
14456         instead of checking GIMPLE_STMT_P in chain_next.
14457
14458 2007-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
14459
14460         PR ada/31576
14461         * system-linux-alpha.ads: Disable constant condition warning for the
14462         Default_Bit_Order variable.
14463         * system-linux-s390.ads: Likewise.
14464         * system-linux-s390x.ads: Likewise.
14465         * system-linux-sparc.ads: Likewise.
14466
14467 2007-04-06  Javier Miranda  <miranda@adacore.com>
14468             Matt Heaney  <heaney@adacore.com>
14469             Robert Dewar  <dewar@adacore.com>
14470
14471         a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
14472         a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
14473         a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
14474         a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
14475         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
14476         a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
14477         a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
14478         a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
14479         a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
14480         a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
14481         a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
14482         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
14483         a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
14484         a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
14485         a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
14486         a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
14487         a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
14488         i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
14489         unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
14490         a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
14491         a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
14492         a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
14493         expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
14494         s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
14495         s-taprop-tru64.adb, s-taprop-irix.adb,
14496         s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
14497         s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
14498         s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
14499         s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb, 
14500         s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads, 
14501         a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb, 
14502         a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads, 
14503         g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads, 
14504         s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb, 
14505         s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads, 
14506         s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb, 
14507         s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, 
14508         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb, 
14509         s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb, 
14510         a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads, 
14511         a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads, 
14512         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb, 
14513         a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
14514         a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads, 
14515         a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
14516         access types.
14517         Update documentation.
14518         Minor rewording.
14519
14520 2007-04-06  Robert Dewar  <dewar@adacore.com>
14521
14522         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
14523         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
14524         system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
14525         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
14526         system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
14527         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
14528         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
14529         system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
14530         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
14531         system-hpux-ia64.ads, targparm.adb,
14532         targparm.ads (Functions_Return_By_DSP_On_Target): Removed
14533
14534         * system.ads: Move Functions_Return_By_DSP to obsolete section,
14535         kept for bootstrap purposes only.
14536
14537 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
14538
14539         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
14540         s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
14541         s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
14542         (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
14543
14544 2007-04-06  Robert Dewar  <dewar@adacore.com>
14545
14546         * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
14547         (Local_Raise): New dummy procedure called when a raise is converted
14548         to a local goto. Used for debugger to detect that the exception
14549         is raised.
14550
14551         * debug.adb: Document new d.g flag (expand local raise statements to
14552         gotos even if pragma Restriction (No_Exception_Propagation) is not set)
14553
14554         * exp_sel.adb: Use Make_Implicit_Exception_Handler
14555
14556         * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
14557         suppress warnings for unused handlers.
14558         (Warn_If_No_Propagation):  Use new flag -gnatw.x to suppress
14559         warnings for raise statements not handled locally.
14560         (Get_RT_Exception_Entity): New function
14561         (Get_Local_Call_Entity): New function
14562         (Find_Local_Handler): New function
14563         (Warn_If_No_Propagation): New procedure
14564         (Expand_At_End_Handler): Call Make_Implicit_Handler
14565         (Expand_Exception_Handlers): Major additions to deal with local handlers
14566         (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
14567         Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
14568         for local raise
14569
14570         * exp_ch11.ads (Get_RT_Exception_Entity): New function
14571         (Get_Local_Call_Entity): New function
14572
14573         * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
14574         of restrictions that the binder will never suggest adding.
14575
14576         * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
14577         to No_Elist.
14578
14579         * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
14580         be with'ed in the presence of pragma Restriction
14581         (No_Exception_Propagation).
14582
14583         * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
14584
14585         * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
14586         parameter, then the handler is not a suitable target for a local raise,
14587         and this is a violation of restriction No_Exception_Propagation.
14588         (Analyze_Handled_Statements): Analyze choice parameters in exception
14589         handlers before analyzing statement sequence (needed for proper
14590         detection of local raise statements).
14591         (Analyze_Raise_Statement): Reraise statement is a violation of the
14592         No_Exception_Propagation restriction.
14593
14594         * s-rident.ads: Add new restriction No_Exception_Propagation
14595
14596         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
14597         function, like Make_Exception_Handler but sets Local_Raise_Statements
14598         to No_List.
14599         (Add_Unique_Serial_Number): Deal with case where this is called during
14600         processing of configuration pragmas.
14601
14602 2007-04-06  Thomas Quinot  <quinot@adacore.com>
14603             Pat Rogers  <rogers@adacore.com>
14604             Pascal Obry  <obry@adacore.com>
14605
14606         * g-stsifd-sockets.adb: New file.
14607
14608         * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
14609         g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
14610         g-socthi-vms.adb: Move signalling
14611         fd management to a nested package, so that they can conveniently be
14612         moved to a subunit that is shared across Windows, VMS, and VxWorks
14613         (Ada implementation) or completed with imported bodies from socket.c
14614         (UNIX case).
14615         (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
14616         subprograms.
14617         (Check_Selector): Use Read_Signalling_Fd to read and discard data from
14618         the signalling file descriptor.
14619         (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
14620         signalling file descriptor.
14621         (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
14622         instead of creating a pair of sockets for signalling here.
14623
14624         * g-socthi.adb: Ditto.
14625         Set the runtime process to ignore SIGPIPEs on platforms that support
14626         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
14627
14628         * g-socthi-mingw.adb: Ditto.
14629         (WS_Version): Use Windows 2.2.
14630         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
14631
14632         * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
14633         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
14634
14635         * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
14636         added GNAT byte swapping facility
14637         Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
14638
14639         * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
14640
14641         * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
14642         New subprograms.
14643         (__gnat_create_signalling_fds): New subprogram.
14644         Set the runtime process to ignore SIGPIPEs on platforms that support
14645         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
14646
14647 2007-04-06  Hristian Kirtchev  <kirtchev@adacore.com>
14648             Vincent Celier  <celier@adacore.com>
14649
14650         * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
14651         New version of Ada.Calendar which supports the new upper bound of Ada
14652         time (2399-12-31 86_399.999999999).
14653         The following modifications have been made to the package:
14654          - New representation of time as count of nanoseconds since the start of
14655            Ada time (1901-1-1 0.0).
14656          - Target independent Split and Time_Of routines which service both
14657            Ada 95 and Ada 2005 code.
14658          - Target independent interface to the Ada 2005 children of Calendar.
14659          - Integrated leap seconds into Ada 95 and Ada 2005 mode.
14660          - Handling of non-leap centenial years.
14661          - Updated clock function.
14662          - Updated arithmetic and comparison operators.
14663
14664         * a-caldel.adb (To_Duration): Add call to target independent routine in
14665         Ada.Calendar to handle the conversion of time to duration.
14666
14667         * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
14668         (UTC Offset).
14669         If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
14670         set off to 0.
14671         (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
14672         targets do not have a natural time zone, GMT is used as a default.
14673         (__gnat_get_task_options): New.
14674
14675         * a-direct.adb (Modification_Time): Add with and use clauses for
14676         Ada.Calendar and Ada.
14677         Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
14678         since it is no longer needed.
14679         (Duration_To_Time): Removed.
14680         (OS_Time_To_Long_Integer): Removed.
14681         (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
14682         Formatting Time_Of routines which automatically handle time zones,
14683         buffer periods and leap seconds.
14684
14685         * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
14686         target independent routines in Ada.Calendar.
14687
14688         * a-calfor.ads, a-calfor.adb: 
14689         Code cleanup and addition of validity checks in various routines.
14690         (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
14691         Ada.Calendar.
14692
14693         * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
14694         independent routine in Ada.Calendar.
14695
14696 2007-04-06  Olivier Hainque  <hainque@adacore.com>
14697
14698         * adaint.c: 
14699         (convert_addresses): Adjust prototype and dummy definition to expect an
14700          extra file_name argument.
14701
14702         * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
14703         filling the now expected file_name argument with the appropriate
14704         argv[0] expansion.
14705         (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
14706         (tracebk): Array of void * instead of char *, corresponding to what
14707          convert_addresses expects.
14708         (exename): New static global, to hold the executable file name to be
14709         used in all convert_addresses invocations.
14710         (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
14711         change.
14712         (__gnat_gmem_a2l_initialize): Resolve exename.
14713         (__gnat_convert_addresses): Use exename as the convert_addresses
14714         file_name argument.
14715
14716         * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
14717         "convert_addresses", now expecting a filename argument. Import the
14718         necessary entities to compute the filename to use and pass it to
14719         convert_addresses.
14720
14721 2007-04-06  Matt Gingell  <gingell@adacore.com>
14722
14723         * system-aix.ads: Back out previous change.
14724         (Functions_Return_By_DSP): Removed
14725
14726 2007-04-06  Pascal Obry  <obry@adacore.com>
14727
14728         * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
14729         or the monotonic used by Ada.Real_Time) to compute the sleep duration
14730         on Windows.
14731
14732 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
14733
14734         * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
14735         function. Its value changes in different VxWorks versions, and it is
14736         now handled by the function __gnat_get_task_options.
14737
14738         * s-taprop-vxworks.adb (Create_Task): Call the function
14739         __gnat_get_task_options to get the required options for creating a task.
14740
14741 2007-04-06  Pascal Obry  <obry@adacore.com>
14742             Thomas Quinot  <quinot@adacore.com>
14743
14744         * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
14745         dealing with filename.
14746         (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
14747         filename from a standard string to a wide-string depending on the
14748         encoding value.
14749         (__gnat_freopen): Idem.
14750         (__gnat_current_time): New function (wrapper for time(3) standard C
14751         function).
14752
14753         * g-os_lib.ads (Current_Time): New function. Returns the current
14754         system time as an OS_Time value.
14755
14756         * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
14757         (Monotonic_Clock): Same.
14758
14759 2007-04-06  Quentin Ochem  <ochem@adacore.com>
14760
14761         * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
14762         not on a natural.
14763         (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
14764
14765 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
14766
14767         * a-retide.adb: Add elaboration code to ensure that the tasking run
14768         time is initialized when using delay operations even when no task is
14769         created.
14770
14771 2007-04-06  Javier Miranda  <miranda@adacore.com>
14772
14773         * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
14774         component Num_Prim_Ops.
14775         (Set_Num_Prim_Ops): Removed.
14776         Remove all the assertions because all the routines of this
14777         package are inline always.
14778         (Get_Offset_Index): Add support to primary dispatch tables.
14779         Move the documentation about the dispatch table to a-tags.ads
14780         (Set_External_Tag): Removed
14781         (Inherit_TSD): Removed.
14782         (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
14783         moved to a-tags.ads
14784         (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
14785         Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
14786         of the TSD field "Table" because this field has been renamed to
14787         "Ifaces_Table".
14788         (Inherit_CPP_DT): Removed.
14789         (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
14790         Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
14791         declarations have been moved to a-tags.ads
14792         (Check_Size): Removed.
14793         (Expanded_Name): Updated to get access to the new field of TSD
14794         containing the address of the expanded name.
14795         (Get_Access_Level/Set_Access_Level): Removed.
14796         (Get_Predefined_Prim_Op_Address): Removed.
14797         (Set_Predefined_Prim_Op_Address): Removed.
14798         (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
14799         (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
14800         (Set_Expanded_Name): Removed.
14801         (Inherit_DT): Removed.
14802         (Inherit_CPP_DT): Removed.
14803         (Set_RC_Offset): Removed.
14804         (Set_TSD): Removed.
14805         (Base_Address): New function that displaces "this" to point to the base
14806         of the object (that is, to point to the primary tag of the object).
14807
14808 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14809             Javier Miranda  <miranda@adacore.com>
14810
14811         * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
14812         anonymous access component, do not create a master_id if type already
14813         has one, as may happen if the type is a subcomponent of a packed array
14814         type.
14815         (Build_Init_Procedure, Component_Needs_Simple_Initialization,
14816         Initialize_Tag): Remove code associated with the old CPP pragmas.
14817         CPP_Virtual and CPP_Vtable are no longer supported.
14818         (Build_Offset_To_Top_Internal): Add support for concurrent record types
14819         (Build_Offset_To_Top_Functions): Add support for concurrent record types
14820         (Freeze_Record_Type): Remove call to
14821         Init_Predefined_Interface_Primitives.
14822         (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
14823         code required to initialize the tags of the secondary dispatch tables.
14824         This leaves the algoritm more clear.
14825         (Init_Secondary_Tags): Add support for concurrent record types
14826         (Make_Predefined_Primitive_Specs): Code cleanup.
14827         (Predefined_Primitive_Bodies): Code cleanup.
14828         (Build_Master_Renaming): New local subprogram.
14829         (Expand_N_Full_Type_Declaration): Build the master_id associated with
14830         anonymous access to task type components.
14831         (Expand_N_Subtype_Indication): The bounds of a range constraint in a
14832         subtype indication are resolved during analysis, and must not be done
14833         here.
14834         (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
14835
14836 2007-04-06  Geert Bosch  <bosch@adacore.com>
14837             Ed Schonberg  <schonberg@adacore.com>
14838             Javier Miranda  <miranda@adacore.com>
14839             Bob Duff  <duff@adacore.com>
14840
14841         * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
14842         for conversion of a Float_Type'Truncation to integer.
14843
14844         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
14845         check if a node is an attribute that can be handled directly by the
14846         back end.
14847         (Expand_N_Attribute_Reference): Suppress expansion of floating-point
14848         attributes that can be handled directly by the back end.
14849         (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
14850         use new predicate Is_Access_Protected_Subprogram_Type.
14851         (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
14852         and Unchecked_Union if it is generated as part of the default  Output
14853         procedure for a type with default discriminants.
14854         (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
14855         if we are compiling under restriction No_Dispatching_Calls.
14856         (Constrained): Use Underlying_Type, in case the type is private without
14857         discriminants, but the full type has discriminants.
14858         (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
14859         call to Build_Get_Access_Level.
14860         (Expand_N_Attribute_Reference): The use of 'Address with class-wide
14861         interface objects requires a call to the run-time subprogram that
14862         returns the base address of the object.
14863         (Valid_Conversion): Improve error message on illegal attempt to store
14864         an anonymous access to subprogram value into a record component.
14865
14866         * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
14867         null".
14868         (Simplify_Type_Conversion): New procedure that performs simplification
14869         of Int_Type (Float_Type'Truncation (X)).
14870         (Resolve_Type_Conversion): Call above procedure after resolving operand
14871         and before performing checks. This replaces the existing ineffective
14872         code in Exp_Ch4.
14873         (Set_String_Literal_Subtype): When creating the internal static lower
14874         bound subtype for a string literal, use a newly created copy of the
14875         subtree representing the lower bound.
14876         (Resolve_Call): Exclude build-in-place function calls from transient
14877         scope treatment. Update comments to describe this exception.
14878         (Resolve_Equality_Op): In case of dispatching call check violation of
14879         restriction No_Dispatching_Calls.
14880         (Resolve_Call): If the call returns an array, the context imposes the
14881         component type of the array, and the function has one non-defaulted
14882         parameter, rewrite the call as the indexing of a call with a single
14883         parameter, to handle an Ada 2005 syntactic ambiguity for calls written
14884         in prefix form.
14885         (Resolve_Actuals): If an actual is an allocator for an access parameter,
14886         the master of the created object is the innermost enclosing statement.
14887         (Remove_Conversions): For a binary operator, check if type of second
14888         formal is numeric, to check if an abstract interpretation is present
14889         in the case of exponentiation as well.
14890
14891 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14892             Bob Duff  <duff@adacore.com>
14893
14894         * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
14895         copying a parameter list in a call, set properly the First_Named_Formal
14896         and Next_Named_Formal fields in the new list and in the enclosing call.
14897         (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
14898         names, to ease typing in the debugger. Improve comments.
14899         (Watch_Node): New variable, intended to be set in the debugger.
14900         (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
14901         called when the watched node is created.
14902         (New_Node_Debugging_Output): Combined version of local procedures
14903         New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
14904         with a parameter so that conditional breakpoints like "if Node = 12345"
14905         work.
14906         (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
14907         Add Elist1 function
14908
14909 2007-04-06  Thomas Quinot  <quinot@adacore.com>
14910             Ed Schonberg  <schonberg@adacore.com>
14911             Gary Dismukes  <dismukes@adacore.com>
14912
14913         * checks.ads, checks.adb (Selected_Range_Checks): No range check is
14914         required for a conversion between two access-to-unconstrained-array
14915         types.
14916         (Expr_Known_Valid): Validity checks do not apply to discriminants, but
14917         to discriminant constraints on discriminant objects. This rule must
14918         apply as well to discriminants of protected types in private components.
14919         (Null_Exclusion_Static_Checks): If No_Initialization is set on an
14920         object of a null-excluding access type then don't require the
14921         the object declaration to have an expression and don't emit a
14922         run-time check.
14923
14924 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
14925             Eric Botcazou  <botcazou@adacore.com>
14926
14927         * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
14928         and made constant.
14929
14930         * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
14931         Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
14932         carry any.
14933
14934         * fe.h (Compiler_Abort): Add third parameter.
14935
14936         * misc.c (internal_error_function): Build third argument from current
14937         input location and pass it to Compiler_Abort.
14938
14939 2007-04-06  Gary Dismukes  <dismukes@adacore.com>
14940
14941         * cstand.adb (Create_Standard): When the target's storage unit size is
14942         greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
14943         Standard_String.
14944
14945 2007-04-06  Nicolas Roche  <roche@adacore.com>
14946
14947         * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
14948         absolute path can have the following form: device:/a/b. In this case
14949         '/' should be inserted between the path and the filename.
14950
14951 2007-04-06  Olivier Hainque  <hainque@adacore.com>
14952             Eric Botcazou  <botcazou@adacore.com>
14953
14954         * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
14955         VAR_DECL to a CONST_DECL we make for a public constant when we know the
14956         corresponding definition has created the so made visible variable.
14957         Handle anonymous access to protected subprogram.
14958         (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
14959         object with an address clause volatile.  Re-enable original fix.
14960         <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
14961         too.
14962         (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
14963         associated with either the Equivalent or Root type, instead of the
14964         naked type node.
14965         (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
14966         subtree for every field of a global record type.
14967         (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
14968         discriminants, invoke again variable_size on its newly computed sizes.
14969
14970 2007-04-06  Robert Dewar  <dewar@adacore.com>
14971             Thomas Quinot  <quinot@adacore.com>
14972             Ed Schonberg  <schonberg@adacore.com>
14973             Bob Duff  <duff@adacore.com>
14974
14975         * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
14976         (Next_Component_Or_Discriminant): New function and procedure
14977         (First_Index, First_Literal, Master_Id,
14978         Set_First_Index, Set_First_Literal, Set_Master_Id):
14979         Add missing Ekind assertions.
14980         (Is_Access_Protected_Subprogram_Type): New predicate.
14981         (Has_RACW): New entity flag, set on package entities to indicate that
14982         the package contains the declaration of a remote accecss-to-classwide
14983         type.
14984         (E_Return_Statement): This node type has the Finalization_Chain_Entity
14985         attribute, in case the result type has controlled parts.
14986         (Requires_Overriding): Add this new flag, because "requires
14987         overriding" is subtly different from "is abstract" (see AI-228).
14988         (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
14989         Is_Abstract_Type. Make sure these are called only when appropriate.
14990         (Has_Pragma_Unreferenced_Objects): New flag
14991
14992         * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
14993         class-wide, the tag of the right-hand side must be an exact match, not
14994         an ancestor of that of the object on left-hand side.
14995         (Move_Activation_Chain): New procedure to create the call to
14996         System.Tasking.Stages.Move_Activation_Chain.
14997         (Expand_N_Extended_Return_Statement): Generate code to call
14998         System.Finalization_Implementation.Move_Final_List at the end of a
14999         return statement if the function's result type has controlled parts.
15000         Move asserts to Build_In_Place_Formal.
15001         (Move_Final_List): New function to create the call statement.
15002         (Expand_N_Assignment_Statement): In case of assignment to a class-wide
15003         tagged type, replace generation of call to the run-time subprogram
15004         CW_Membership by call to Build_CW_Membership.
15005         (Expand_N_Return_Statement): Replace generation of call to the run-time
15006         subprogram Get_Access_Level by call to Build_Get_Access_Level.
15007         (Expand_N_Simple_Function_Return): Replace generation of call to the
15008         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
15009
15010         * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
15011         Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
15012         access to protected operations.
15013         (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
15014         master and chain actual parameters to a build-in-place function call
15015         involving tasks.
15016         (BIP_Formal_Suffix): Add new enumeration literals to complete the case
15017         statement.
15018         (Make_Build_In_Place_Call_In_Allocator,
15019         Make_Build_In_Place_Call_In_Anonymous_Context,
15020         Make_Build_In_Place_Call_In_Assignment,
15021         Make_Build_In_Place_Call_In_Object_Declaration): Call
15022         Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
15023         (Expand_Inlined_Call): If the subprogram is a null procedure, or a
15024         stubbed procedure with a null body, replace the call with a null
15025         statement without using the full inlining machinery, for efficiency
15026         and to avoid invalid values in source file table entries.
15027
15028         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
15029         renamings of calls to build-in-place functions.
15030
15031         * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
15032         provides the functionality of RTE_Available to record components.
15033         (RTU_Entity): The function Entity has been renamed to RTU_Entity
15034         to avoid undesired overloading.
15035         (Entity): New subprogram that returns the entity for the referened
15036         unit. If this unit has not been loaded, it returns Empty.
15037         (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
15038         Remove no longer used entities.
15039         (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
15040         (RE_Type_Specific_Data): New entity.
15041         (RE_Move_Any_Value): New entity.
15042         (RE_TA_A, RE_Get_Any_Type): New entities.
15043         (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
15044          RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
15045          RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
15046         (Entity): New subprogram that returns the entity for the referened
15047         unit. If this unit has not been loaded, it returns Empty.
15048         (RTE): Addition of a new formal that extends the search to the scopes
15049         of the record types found in the chain of the package.
15050
15051         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
15052         "abstract subprograms must be visible" message, whether or not the type
15053         is an interface; that is, remove the special case for interface types.
15054         (Analyze_Function_Return): Remove error message "return of task objects
15055         is not yet implemented" because this is now implemented.
15056         (Create_Extra_Formals): Add the extra master and activation chain
15057         formals in case the result type has tasks.
15058         Remove error message "return of limited controlled objects is not yet
15059         implemented".
15060         (Create_Extra_Formals): Add the extra caller's finalization list formal
15061         in case the result type has controlled parts.
15062         (Process_Formals): In case of access formal types there is no need
15063         to continue with the analysis of the formals if we already notified
15064         errors.
15065         (Check_Overriding_Indicator): Add code to check overriding of predefined
15066         operators.
15067         (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
15068         flags for formals that do not require them,.
15069         (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
15070         hidden entity is use visible or directly visible.
15071         (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
15072         Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
15073         Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
15074         New_Overloaded_Entity): Split Is_Abstract flag into
15075         Is_Abstract_Subprogram and Is_Abstract_Type.
15076
15077         * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
15078         a return statement's finalization list to the caller's list, used for
15079         build-in-place functions with result type with controlled parts.
15080         Remove no longer used entities.
15081
15082         * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
15083         longer needed, because the full type is now limited, and therefore a
15084         pass-by-reference type.
15085         (Foreign_Task_Level): New constant.
15086
15087         * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
15088         move tasks from the activation chain belonging to a return statement to
15089         the one passed in by the caller, and update the master to the one
15090         passed in by the caller.
15091         (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
15092         of unactivated tasks, so we don't kill the ones that are being returned
15093         by a build-in-place function.
15094         (Create_Task): Ignore AI-280 for foreign threads.
15095
15096 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15097             Robert Dewar  <dewar@adacore.com>
15098             Bob Duff  <duff@adacore.com>
15099             Gary Dismukes  <dismukes@adacore.com>
15100
15101         * errout.adb (Unwind_Internal_Type): Use predicate
15102         Is_Access__Protected_Subprogram_Type.
15103
15104         * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
15105         (Freeze_Entity, packed array case): Do not override explicitly set
15106         alignment and size clauses.
15107         (Freeze_Entity):  An entity declared in an outer scope can be frozen if
15108         the enclosing subprogram is a child unit body that acts as a spec.
15109         (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
15110         (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
15111         Remove all code for DSP option
15112
15113         * layout.adb (Layout_Record_Type): Use First/
15114         Next_Component_Or_Discriminant
15115         (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
15116         to handle properly the anonymous access case.
15117
15118         * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
15119         for all access attributes, because overload resolution should work the
15120         same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
15121         causes the error message for the ambiguous "X'Access = Y'Access" and
15122         "X'Unrestricted_Access = Y'Access" and so forth to match.
15123         (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
15124         now that anonymous access to protected operations have their own kind.
15125         (Resolve_Attribute): In case of dispatching call check the violation of
15126         restriction No_Dispatching_Calls.
15127         (Check_Array_Type): Check new -gnatyA array index style option
15128
15129         * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
15130         attempt to derive from a synchronized tagged type.
15131         (Analyze_Type_Declaration): If there is a incomplete tagged view of the
15132         type, inherit the class-wide type already created, because it may
15133         already have been used in a self-referential anonymous access component.
15134         (Mentions_T): Recognize self-referential anonymous access components
15135         that use (a subtype of) the class-wide type of the enclosing type.
15136         (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
15137         Derived_Type for Prev formal on call to
15138         Check_Anonymous_Access_Components rather than Empty.
15139         (Make_Incomplete_Type_Declaration): Add test for case where the type has
15140         a record extension in deciding whether to create a class-wide type,
15141         rather than just checking Tagged_Present.
15142         (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
15143         to stand-alone object declarations as well as component declarations.
15144         (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
15145         prevent accidental overwriting when enclosing package appears in
15146         a limited_with_clause.
15147         (Array_Type_Declaration): If the component type is an anonymous access,
15148         the associated_node for the itype is the type declaration itself.
15149         (Add_Interface_Tag_Components): Modified to support concurrent
15150         types with abstract interfaces.
15151         (Check_Abstract_Interfaces): New subprogram that verifies the ARM
15152         rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
15153         (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
15154         to complete the decoration of synchronized interface types. Add also
15155         a call to Check_Abstract_Interfaces to verify the ARM rules.
15156         (Derive_Interface_Subprograms): Modified to support concurrent types
15157         with abstract interfaces.
15158         (Analyze_Subtype_Indication): Resolve the range with the given subtype
15159         mark, rather than delaying the full resolution depending on context.
15160         (Analyze_Component_Declaration,Analyze_Interface_Declaration,
15161         Analyze_Object_Declaration,Analyze_Subtype_Declaration,
15162         Array_Type_Declaration,Build_Derived_Record_Type,
15163         Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
15164         Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
15165         Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
15166         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
15167         called only when appropriate.
15168         (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
15169         to private type.
15170         (Analyze_Subtype_Declaration): For an access subtype declaration, create
15171         an itype reference for the anonymous designated subtype, to prevent
15172         scope anonmalies in gigi.
15173         (Build_Itype_Reference): New utility, to simplify construction of such
15174         references.
15175
15176 2007-04-06  Vincent Celier  <celier@adacore.com>
15177
15178         * errutil.adb (Initialize): Initialize warnings table, if all warnings
15179         are suppressed, supply an initial dummy entry covering all possible
15180         source locations.
15181
15182         * make.adb (Scan_Make_Arg): Reject options that should start with "--"
15183         and start with only one, such as "-RTS=none".
15184         (Collect_Arguments): Do not check for sources outside of projects.
15185         Do not collect arguments if project is externally built.
15186         (Compile_Sources): Do nothing, not even check if the source is up to
15187         date, if its project is externally built.
15188         (Compile): When compiling a predefined source, add -gnatpg
15189         as the second switch, after -c.
15190         (Compile_Sources): Allow compilation of Annex J renames without -a
15191         (Is_In_Object_Directory): Check if the ALI file is in the object
15192         even if there is no project extension.
15193         (Create_Binder_Mapping_File): Only put a unit in the mapping file for
15194         gnatbind if the ALI file effectively exists.
15195         (Initialize): Add the directory where gnatmake is invoked in front of
15196         the path if it is invoked from a bin directory, even without directory
15197         information, so that the correct GNAT tools will be used when spawned
15198         without directory information.
15199
15200         * makeusg.adb: Change switch -S to -eS
15201         Add lines for new switches -we, -wn and -ws
15202         Add line for new switch -p
15203
15204         * prj-proc.adb (Process): Set Success to False when Warning_Mode is
15205         Treat_As_Error and there are warnings.
15206
15207         * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
15208         -gnatww Change gnatmake switch -S to -eS
15209         (Scan_Make_Switches): Code reorganisation. Process separately multi
15210         character switches and single character switches.
15211         (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
15212         False when switch is not recognized by gnatmake.
15213         (Scan_Make_Switches): Set Setup_Projects True when -p or
15214         --create-missing-dirs is specified.
15215
15216         * fname.adb (Is_Predefined_File_Name): Return True for annex J
15217         renamings Calendar, Machine_Code, Unchecked_Conversion and
15218         Unchecked_Deallocation only when Renamings_Included is True.
15219
15220         * par.adb: Allow library units Calendar, Machine_Code,
15221         Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
15222         when -gnatg is not specified.
15223         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
15224         there is no need to generate always a record_definition_node in case
15225         of synchronized interface types.
15226         (SIS_Entry_Active): Initialize global variable to False
15227         (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
15228         indicate cases where AI-447 says "not null" is legal.
15229
15230         * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
15231
15232         * makegpr.adb (Check_Compilation_Needed): Take into account dependency
15233         files with with several lines starting with the object fileb name.
15234         (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
15235         is specified.
15236         (Initialize): Add the directory where gprmake is invoked in front of the
15237         path, if it is invoked from a bin directory or with directory
15238         information, so that the correct GNAT tools will be used when invoked
15239         directly.
15240         (Check_Compilation_Needed): Process correctly backslashes on Windows.
15241
15242         * vms_data.ads: Update switches/qualifiers
15243
15244 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15245             Thomas Quinot  <quinot@adacore.com>
15246
15247         * exp_aggr.adb:
15248         If the array component is a discriminated record, the array aggregate
15249         is non-static even if the component is given by an aggregate with
15250         static components.
15251         (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
15252         (Convert_Aggr_In_Allocator): If the allocator is for an access
15253         discriminant and the type is controlled. do not place on a finalization
15254         list at this point. The proper list will be determined from the
15255         enclosing object.
15256         (Build_Record_Aggr_Code): If aggregate has box-initialized components,
15257         initialize record controller if needed, before the components, to ensure
15258         that they are properly finalized.
15259         (Build_Record_Aggr_Code): For the case of an array component that has a
15260         corresponding array aggregate in the record aggregate, perform sliding
15261         if required.
15262
15263 2007-04-06  Javier Miranda  <miranda@adacore.com>
15264             Gary Dismukes  <dismukes@adacore.com>
15265             Ed Schonberg  <schonberg@adacore.com>
15266
15267         * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
15268         run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
15269
15270         * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
15271         accessibility on class-wide allocators if the allocator occurs at the
15272         same scope level as the allocator's type. The check is guaranteed to
15273         succeed in that case, even when the expression originates from a
15274         parameter of the containing subprogram.
15275         (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
15276         under No_Dispatching_Calls restriction. During the semantic analysis
15277         we already notified such violation.
15278         (Tagged_Membership): Constant folding. There is no need to check
15279         the tag at run-time if the type of the right operand is non
15280         class-wide abstract.
15281         Replace call to Is_Ancestor by call to Is_Parent
15282         to support concurrent types with interface types.
15283         (Expand_N_Allocator): Add an assertion associated with the generation
15284         of the master_id.
15285         (Expand_N_Slice): Do not enable range check to nodes associated
15286         with the frontend expansion of the dispatch table.
15287         (Is_Local_Access_Discriminant): Subsidiary function to
15288         Expand_N_Allocator.
15289         (Tagged_Membership): Replace generation of call to the run-time
15290         subprogram CW_Membership by call to Build_CW_Membership.
15291         (Expand_Allocator_Expression): Replace generation of call to the
15292         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
15293
15294         * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
15295         initialize most the TSD components by means of an aggregate.
15296         Modify the declaration of the object containing the TSD
15297         because we now expand code that has a higher level of abstraction.
15298         The TSD has a discriminant containing the Inheritance Depth Level,
15299         value that is used in the membership test but also to fix the size
15300         of the table of ancestors.
15301         (Expand_Interface_Conversion): Insert function body at the closest place
15302         to the conversion expression, to prevent access-before-elaboration
15303         errors in the backend.
15304         Code improved to reduce the size of the dispatch table if
15305         compiling under restriction No_Dispatching_Calls plus code cleanup.
15306         Code reorganization plus removal of calls to Set_Num_Prim_Ops
15307         (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
15308         (Expand_Dispatching_Call): Minor code reorganization plus addition of
15309         code to return immediately if compiling under No_Dispatching_Calls
15310         restriction.
15311         (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
15312         CPP_Virtual and CPP_Vtable are no longer supported.
15313         (Expand_Interface_Conversion): Add missing support for interface type
15314         derivations.
15315         (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
15316         Is_Parent to support concurrent types with interfaces.
15317         (Init_Predefined_Interface_Primitives): Removed.
15318         (Make_Secondary_DT): Modified to support concurrent record types.
15319         (Set_All_DT_Position): Modified to support concurrent record types.
15320         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
15321         with Get_External_Tag, Inherit_TSD, Set_External_Tag.
15322         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
15323         with CW_Membership.
15324         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
15325         with Get_Access_Level, Get_Predefined_Prim_Op_Address,
15326         Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
15327         Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
15328         Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
15329         (Expand_Dispatching_Call): Replace generation of call to the run-time
15330         subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
15331         calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
15332         Address.
15333         (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
15334         the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
15335         Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
15336         Build_Set_Prim_Op_Address.
15337         (Get_Remotely_Callable): Subprogram removed.
15338         (Init_Predefined_Interface_Primitives): Replace generation of call to
15339         the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
15340         Prims.
15341
15342         * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
15343         First (Parameter_Associations ()) with the call to First_Actual that
15344         returns an actual parameter expression for both named and positional
15345         associations.
15346
15347         * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
15348         check violation of restriction No_Dispatching_Calls.
15349         (Check_Controlling_Type): A formal of a tagged incomplete type is a
15350         controlling argument.
15351
15352         * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
15353         First/Next_Component_Or_Discriminant
15354         (Insert_Actions): Add entries for new N_Push and N_Pop nodes
15355         (Find_Implemented_Interface): Removed. All the calls to this subprogram
15356         specify Any_Limited_Interface, and this functionality is already
15357         provided by the function Has_Abstract_Interfaces.
15358         (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
15359         support concurrent types implementing interfaces.
15360         (Find_Implemented_Interface): Removed. All the calls to this subprogram
15361         specify kind Any_Limited_Interface, and this functionality is already
15362         provided by the function Has_Abstract_Interfaces.
15363         (Remove_Side_Effects): replace Controlled_Type by
15364         CW_Or_Controlled_Type whenever the issue is related to
15365         using or not the secondary stack.
15366
15367         * par-ch12.adb (P_Formal_Type_Definition): Update calls to
15368         P_Interface_Type_Definition to fulfill the new interface (the formal
15369         Is_Synchronized is no longer required).
15370
15371         * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
15372         Update dependencies.
15373
15374         * exp_atag.ads, exp_atag.adb: New file
15375
15376 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15377             Bob Duff  <duff@adacore.com>
15378             Cyrille Comar  <comar@adacore.com>
15379
15380         * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
15381         anonymous, use finalization list of enclosing dynamic scope.
15382         (Expand_N_Package_Declaration): For a library package declaration
15383         without a corresponding body, generate RACW subprogram bodies in the
15384         spec (just as we do for the task activation call).
15385         (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
15386         Is_Abstract_Type. Make sure these are called only when appropriate.
15387         Remove all code for DSP option
15388         (CW_Or_Controlled_Type): new subprogram.
15389
15390 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
15391             Ed Schonberg  <schonberg@adacore.com>
15392             Gary Dismukes  <dismukes@adacore.com>
15393
15394         * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
15395         parameter. If it is set to true, return a result capped according to
15396         the global upper bound for the index of an entry family.
15397         (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
15398         (Build_Find_Body_Index): Adjust for above change.
15399         (Entry_Index_Expression): Likewise.
15400         (Is_Potentially_Large_Family): New function extracted from...
15401         (Collect_Entry_Families): ...here. Call it to detect whether the family
15402         is potentially large.
15403         (Build_Entry_Count_Expression): If the family is potentially large, call
15404         Family_Size with 'Cap' set to true.
15405         (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
15406         a protected version of an operation declared in the private part of
15407         a protected object, because they may be invoked through a callback.
15408         (Set_Privals): If the type of a private component is an anonymous access
15409         type, do not create a new itype for each protected body.
15410         If the body of a protected operation creates
15411         controlled types (including allocators for class-widetypes), the
15412         body of the corresponding protected subprogram must include a
15413         finalization list.
15414         (Build_Activation_Chain_Entity): Build the chain entity for extended
15415         return statements.
15416         (Type_Conformant_Parameters): Use common predicate Conforming_Types
15417         to determine whether operation overrides an inherited primitive.
15418         (Build_Wrapper_Spec): Add code to examine the parents while looking
15419         for a possible overriding candidate.
15420         (Build_Simple_Entry_Call): Set No_Initialization on the object used to
15421         hold an actual parameter value since its initialization is separated
15422         from the the declaration. Prevents errors on null-excluding access
15423         formals.
15424
15425 2007-04-06  Thomas Quinot  <quinot@adacore.com>
15426             Pablo Oliveira  <oliveira@adacore.com>
15427
15428         * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
15429         Do an Unchecked_Conversion to handle the passage from the Underlying
15430         Type to the Base Type when calling Build_To_Any_Call and
15431         Build_From_Any_Call.
15432         (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
15433         E_Constant, depending upon Variable formal.
15434         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
15435         PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
15436         parameter that requires an extra constrained parameter, declare
15437         temporary for actual as a variable, not a constant.
15438         (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
15439         the unit being compiled is the one that contains the stub type.
15440         Change primitive operation name for the RACW associated with a RAS
15441         from Call to _Call so it cannot clash with any legal identifier.
15442         (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
15443         Is_RAS.
15444         (Append_RACW_Bodies): New subprogram.
15445         (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
15446         Add_Receiving_Stubs_To_Declarations functions.
15447         When expanding a package body, this list correspond to the
15448         statements in the HSS at the end of the pacakge.
15449         When expanding a package spec, this list correspond to the
15450         spec declarations.
15451         (Add_Receiving_Stubs_To_Declarations): Append the function
15452         registering the receiving stubs at the end of the 'Stmts' list.
15453         (RCI_Package_Locator): Pass the new Version generic formal when
15454         instantiating a RCI_Locator package.
15455         (Build_From_Any_Function): To compute the High bound for an
15456         unconstrained array actual, we add the Low bound with the length.
15457         Thus we must convert the low bound and the length to an appropriate
15458         type before doing the sum.
15459         (Build_Subprogram_Receiving_Stubs, PolyORB):
15460          * Retrieve the extra formals parameters at the
15461            end of the parameter stream.
15462          * Use Move_Any_Value to write back out parameters
15463            after executing the request as it is more efficient
15464            than Copy_Any_Value.
15465          * Build the any containing Extra Formals with the
15466            appropriate typecode.
15467         (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
15468         empty Component_List.
15469         (Build_Actual_Object_Declaration): New subprogram. Build and insert into
15470         the tree the declaration for an object that serves as actual parameter
15471         in server-side stubs.
15472         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
15473         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
15474         Use Build_Actual_Object_Declaration to prepare the actuals.
15475         (Add_Parameter_To_NVList): Set the parameter mode to In for
15476         Extra Constrained Parameters.
15477         (Build_General_Calling_Stubs): Set the parameter type to boolean for
15478         Extra Constrained parameters.
15479         (Build_To_Any_Function, Build_From_Any_Function,
15480         Built_TypeCode_Function): When Typ is implicit, call the correct
15481         function with the first not implicit parent type.
15482         (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
15483         (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
15484         typecode from the Etype. Therefore we retrieve the correct typecode
15485         with a call to Get_Any_Type.
15486         (Copy_Specification): Do controlling formal type substitution based on
15487         Is_Controlling_Formal flag, instead of caller-provided object type.
15488         (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
15489         a RACW primitive operation, we might get a subprogram declaration for an
15490         ancestor of the RACW designated type (not for the designated type
15491         itself), in the case where this operation is inherited. In this case we
15492         have no easy means of determining the original tagged type for which
15493         the primitive was declared, so instead we now rely on
15494         Copy_Specification to use the Is_Controlling_Formal flag to determine
15495         which formals require type substitution.
15496
15497 2007-04-06  Robert Dewar  <dewar@adacore.com>
15498             Ed Schonberg  <schonberg@adacore.com>
15499
15500         * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
15501         GNAT.Current_Exception are not allowed if pragma Restrictions
15502         (No_Exception_Propagation) is set and in any case make the associated
15503         handler unsuitable as a target for a local raise statement.
15504         (Expand_Dispatching_Constructor_Call): Replace generation of call to the
15505         run-time subprogram CW_Membership by call to Build_CW_Membership.
15506         (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
15507         by a function call, a temporary must be created before expanding the
15508         Constructor_Call itself, to prevent out-of-order elaboration in the
15509         back-end when stack checking is enabled..
15510
15511 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15512
15513         * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
15514         result are the bounds of the left operand, not the right.
15515
15516 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15517
15518         * exp_strm.adb
15519         (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
15520          discriminant defaults.
15521         (Build_Record_Or_Elementary_Output_Procedure): Ditto.
15522         (Make_Component_List_Attributes): Ditto.
15523
15524 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15525             Bob Duff  <duff@adacore.com>
15526
15527         * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
15528         an association with a box as providing a value even though the
15529         initialization procedure for the type is not available.
15530         (Resolve_Record_Aggregate): Check that a choice of an association with a
15531         box corresponds to a component of the type.
15532         (Resolve_Record_Aggregate): Split Is_Abstract flag into
15533         Is_Abstract_Subprogram and Is_Abstract_Type.
15534
15535         * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
15536         assert.
15537
15538         * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
15539         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
15540         called only when appropriate.
15541
15542 2007-04-06  Olivier Hainque  <hainque@adacore.com>
15543
15544         * g-alleve.ads (Low Level Vector type definitions): Map each to the
15545         associated vector view instead of all to the unsigned char view.
15546
15547         * g-altcon.adb (Generic_Conversions): New internal generic package,
15548         offering facilities for all the Vector/View conversion routines
15549         implemented by this unit.
15550         (To_View/To_Vector - all versions): Reimplemented in a systematic
15551         manner, using the internal Generic_Conversions facilities.
15552
15553 2007-04-06  Pascal Obry  <obry@adacore.com>
15554
15555         * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
15556         string.
15557         (Create): Free the source string before storing the new one.
15558
15559 2007-04-06  Vincent Celier  <celier@adacore.com>
15560
15561         * g-debpoo.adb (Validity): New package with a complete new
15562         implementation of subprograms Is_Valid and Set_Valid.
15563         (Is_Valid): Move to local package Validity
15564         (Set_Valid): Move to local package Validity
15565
15566 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
15567             Pablo Oliveira  <oliveira@adacore.com>
15568
15569         * g-expect.adb (Get_Command_Output): When expanding the output buffer
15570         we must ensure that there is enough place for the new data we are going
15571         to copy in.
15572
15573 2007-04-06  Thomas Quinot  <quinot@adacore.com>
15574
15575         * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
15576         computation.
15577
15578 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
15579             Vincent Celier  <celier@adacore.com>
15580
15581         * gnatcmd.adb (B_Start): Add prefix of binder generated file.
15582         (Stack_String): Add this String that contains the name of the Stack
15583         package in the project file.
15584         (Packages_To_Check_By_Stack): Add this list that contains the packages
15585         to be checked by gnatstack, which are the naming and the stack packages.
15586         (Check_Files): If no .ci files were specified for gnatstack we add all
15587         the .ci files belonging to the projects, including binder generated
15588         files.
15589         (Non_VMS_Usage): Document that gnatstack accept project file switches.
15590         (GNATCmd): Update the B_Start variable if we are in a VMS environment.
15591         Add gnatstack to the list of commands that use project file related
15592         switches, and get the single attribute Switches from the stack package
15593         in a project file when calling gnatstack. Parse the -U flag for
15594         processing files belonging to all projects in the project tree.
15595         Remove all processing for command Setup
15596
15597         * prj-attr.adb: Add new package Stack with single attribute Switches
15598
15599         * vms_conv.ads (Command_Type): Add command Stack.
15600         Move to body declarations that are only used in the body: types Item_Id,
15601         Translation_Type, Item_Ptr, Item and its subtypes.
15602
15603         * vms_conv.adb: (Initialize): Add data for new command Stack.
15604         Add declarations moved from the spec: types Item_Id, Translation_Type,
15605         Item_Ptr, Item and its subtypes.
15606         (Cargs_Buffer): New table
15607         (Cargs): New Boolean global variable
15608         (Process_Buffer): New procedure to create arguments
15609         (Place): Put character in table Buffer or Cargs_Buffer depending on the
15610          value of Cargs.
15611         (Process_Argument): Set Cargs when processing qualifiers for GNAT
15612         COMPILE
15613         (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
15614         empty, for table Cargs_Buffer.
15615         (Initialize): Remove component Setup in Command_List
15616
15617 2007-04-06  Vincent Celier  <celier@adacore.com>
15618
15619         * gprep.adb (Process_Files.Process_One_File): Use full file name when
15620         issuing pragma Source_Reference.
15621
15622 2007-04-06  Emmanuel Briot  <briot@adacore.com>
15623
15624         * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
15625         [[:xdigit:]] character class.
15626         Also raise an exception when an invalid character class is used.
15627
15628 2007-04-06  Pascal Obry  <obry@adacore.com>
15629
15630         * i-cstrea.ads: (fopen): Add encoding parameter.
15631         (freopen): Idem.
15632         Change reference from a-sysdep.c to sysdep.c in comment.
15633         Update copyright notice.
15634         This set of patch add support for the encoding form parameter.
15635
15636         * mingw32.h (S2WSU): New macro to convert from a string to a
15637         wide-string using the UTF-8 encoding. The S2WS macro supports now only
15638         standard 8bits encoding.
15639         (WS2SU): As above but converting from wide-sring to string.
15640         This is needed as it is necessary to have access to both versions in the
15641         runtime for the form parameter encoding support.
15642         This set of patch add support for the encoding form parameter.
15643         (S2WS): Improve implementation to handle cases where the filename is not
15644         UTF-8 encoded. In this case we default to using the current code page
15645         for the conversion.
15646
15647         * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
15648         type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
15649         the constants defined in adaint.h.
15650         (fopen): Add encoding parameter.
15651         (freopen): Idem.
15652
15653         * s-ficobl.ads (AFCB): Add Encoding field to record the filename
15654         encoding. This is needed for the Reset routine (freopen low level-call).
15655
15656         * s-fileio.adb (Open): Decode encoding form parameter and set the
15657         corresponding encoding value into AFCB structure.
15658         (Reset): Pass the encoding value to freopen.
15659         (Close): Move the call to Lock_Task to the beginning of the procedure.
15660
15661 2007-04-06  Geert Bosch  <bosch@adacore.com>
15662             Robert Dewar  <dewar@adacore.com>
15663
15664         * i-fortra.ads: Add Double_Complex type.
15665
15666         * impunit.adb: (Is_Known_Unit): New function
15667         Add Gnat.Byte_Swapping
15668         Add GNAT.SHA1
15669         Add new Ada 2005 units
15670         Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
15671         Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
15672         Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
15673         Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
15674
15675         * impunit.ads (Is_Known_Unit): New function
15676
15677         * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
15678         a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
15679         a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
15680         g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
15681         s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
15682         s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
15683         New files.
15684
15685         * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
15686
15687         * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
15688
15689 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
15690             Arnaud Charlet  <charlet@adacore.com>
15691
15692         * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
15693         __gnat_adjust_context_for_raise.
15694         (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
15695         implementation of floating point operations as native x86 targets.
15696         So the FPU should be initialized in the same way using finit. Fix
15697         floating point operations accuracy issues.
15698         (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
15699         member in struct sigaction, so as to avoid warning for incompatible
15700         pointer types.
15701
15702 2007-04-06 Serguei Rybin  <rybin@adacore.com>
15703
15704         * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
15705         switches from previously loaded tree
15706
15707 2007-04-06  Thomas Quinot  <quinot@adacore.com>
15708
15709         * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
15710         cases where a given dependency has a body or not.
15711         (Write_With_File_Names): New subprogram, common code for the two cases
15712         above.
15713
15714 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15715             Javier Miranda  <miranda@adacore.com>
15716
15717         * lib-xref.ads, lib-xref.adb: 
15718         Modify the loop that collects type references, to include interface
15719         types that the type implements. List each of these interfaces when
15720         building the entry for the type.
15721         (Generate_Definition): Initialize component Def and Typ of new entry
15722         in table Xrefs, to avoid to have these components unitialized.
15723         (Output_References): Split Is_Abstract flag into
15724         Is_Abstract_Subprogram and Is_Abstract_Type.
15725         (Generate_Reference): Add barrier to do not generate the warning
15726         associated with Ada 2005 entities with entities generated by the
15727         expander.
15728
15729 2007-04-06  Robert Dewar  <dewar@adacore.com>
15730             Arnaud Charlet  <charlet@adacore.com>
15731             Vincent Celier  <celier@adacore.com>
15732
15733         * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
15734         Update 'Exception Handling Control' chapter which was outdated.
15735         Minor fix to documentation of -gnatwq
15736         Remove section "Adapting the Run Time to a New C++ Compiler" because
15737         it is now obsolete.
15738         Add passage on need of -nostart-files in some non-ada-main cases.
15739         Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
15740         Update documentation about Interfacing with C++
15741         Add documentation for new gnatmake switch -p
15742         Add missing protocol part in URLs.
15743         Document -gnatyA
15744         Document pragma Compile_Time_Error
15745         Add documentation for Object_Size indicating that stand alone
15746         objects can have a larger size in some cases.
15747         Add node for GNAT.Byte_Swapping, GNAT.SHA1
15748         Update reference to the Ravenscar profile.
15749         Document pragma Unreferenced_Objects
15750
15751         * gnat-style.texi: Fix typo
15752
15753 2007-04-06  Vincent Celier  <celier@adacore.com>
15754
15755         * mlib.adb (Building_Library): Only output "building a library..." in
15756         verbose mode
15757
15758         * mlib-prj.adb (Build_Library): Only output lists of object and ALI
15759         files in verbose mode.
15760
15761         * mlib-utl.adb (Ar): Only output the first object files when not in
15762         verbose mode.
15763         (Gcc): Do not display all the object files if not in verbose mode, only
15764         the first one.
15765
15766 2007-04-06  Robert Dewar  <dewar@adacore.com>
15767
15768         * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
15769         it no longer destroys the contents of Name_Buffer or Name_Len and
15770         non-standard and invalid names are handled better.
15771         (Get_Decoded_Name_String): Improve performance by using
15772         Name_Has_No_Encodings flag in the name table.
15773         (Is_Valid_Name): New function to determine whether a Name_Id is valid.
15774         Used for debugging printouts.
15775
15776 2007-04-06  Robert Dewar  <dewar@adacore.com>
15777             Javier Miranda  <miranda@adacore.com>
15778             Bob Duff  <duff@adacore.com>
15779
15780         * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
15781         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
15782         there is no need to generate always a record_definition_node in case
15783         of synchronized interface types.
15784         (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
15785         (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
15786         illegal in Ada 95, in cases where it is legal. Change the warnings to
15787         errors in other cases. Don't give the error unless the "not null"
15788         parses properly. Correct the source position at which the error occurs.
15789         (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
15790         P_Null_Exclusion, to suppress "not null" warnings.
15791         (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
15792         associated goto statements.
15793
15794         * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
15795         of END RECORD
15796
15797         * scans.ads (Type_Token_Location): New flag
15798
15799         * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
15800         (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
15801         P_Null_Exclusion, to suppress "not null" warnings.
15802
15803 2007-04-06  Robert Dewar  <dewar@adacore.com>
15804             Javier Miranda  <miranda@adacore.com>
15805             Bob Duff  <duff@adacore.com>
15806             Vincent Celier  <celier@adacore.com>
15807
15808         * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
15809         (Extensions_Allowed): No longer sets Ada_Version
15810         Entry for pragma Unreferenced_Objects
15811
15812         * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
15813         system.tasking if pragma priority used in a procedure
15814         (Analyze_Pragma, case Warning): Handle dot warning switches
15815         (Process_Compile_Time_Warning_Or_Error): New procedure
15816         (Analyze_Pragma): Add processing for Compile_Time_Error
15817         Add support for extra arguments External_Name and Link_Name.
15818         Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
15819         (Process_Import_Or_Interface): Add support for the use of pragma Import
15820         with tagged types.
15821         (Extensions_Allowed): No longer affects Ada_Version
15822         (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
15823         Is_Abstract_Type. Make sure these are called only when appropriate.
15824         Add processing for pragma Unreferenced_Objects
15825
15826         * snames.h, snames.ads, snames.adb: Add entry for pragma
15827         Compile_Time_Error
15828         Add new standard name Minimum_Binder_Options for new gprmake
15829         Add new standard names for gprmake: Archive_Suffix,
15830         Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
15831         Library_Support, Library_Version_Options,
15832         Shared_Library_Minimum_Options,
15833         Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
15834         Change Name_Call to Name_uCall so that it cannot clash with a legal
15835         subprogram name.
15836         Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
15837         Append C_Plus_Plus to convention identifiers as synonym for CPP
15838         Add new standard names Stack and Builder_Switches
15839         Add new standard names: Compiler_Minimum_Options, Global_Config_File,
15840         Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
15841         Run_Path_Option, Toolchain_Version.
15842         Entry for pragma Unreferenced_Objects
15843
15844         * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
15845         switches, without repetition of "eD". Make sure that last character of
15846         -gnatep= switch is not taken as -gnat switch character.
15847         Complete rewrite of circuit for handling saving compilation options
15848         Occasioned by need to support dot switchs for -gnatw, but cleans up
15849         things in general.
15850         -gnatX does not affect Ada_Version
15851         Include -gnatyA in -gnatg style switches
15852
15853         * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
15854         warnings on return objects.
15855         (Warn_On_Useless_Assignment): Exclude warnings on return objects
15856         (Set_Dot_Warning_Switch): New procedure
15857         (Check_References): Add missing case of test for
15858         Has_Pragma_Unreferenced_Objects
15859         (Output_Unreferenced_Messages): Implement effect of new pragma
15860         Unreferenced_Objects, remove special casing of limited controlled
15861         variables.
15862
15863 2007-04-06  Vincent Celier  <celier@adacore.com>
15864
15865         * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
15866         the default project path, initially done during elaboration of the
15867         package.
15868         If the prefix returned by Sdefault is null, get the prefix from a call
15869         to Executable_Prefix_Path.
15870         (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
15871         null.
15872
15873         * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
15874         canonical directory name to open the directory from which files are
15875         retrieved.
15876         (Record_Other_Sources): Idem.
15877         (Locate_Directory): Add the possibility to create automatically missing
15878         directories when Setup_Projects is True.
15879         Call Locate_Directory so that the directory will be created when
15880         Setup_Projects is True, for object dir, library dir, library ALI dir,
15881         library source copy dir and exec dir.
15882
15883         * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
15884         versions of GNAT.
15885
15886 2007-04-06  Robert Dewar  <dewar@adacore.com>
15887
15888         * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
15889         Use First/Next_Component_Or_Discriminant
15890         (Analyze_Record_Representation_Clause):
15891         Use First/Next_Component_Or_Discriminant
15892         (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
15893         (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
15894         definition if type is unconstrained.
15895         (Adjust_Record_For_Reverse_Bit_Order): New procedure
15896         (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
15897         Is_Abstract_Subprogram and Is_Abstract_Type.
15898         (Adjust_Record_For_Reverse_Bit_Order): New procedure
15899
15900         * repinfo.adb (List_Record_Info): Use First/
15901         Next_Component_Or_Discriminant.
15902
15903         * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
15904         New procedure.
15905
15906         * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
15907         Include -gnatyA in default switches
15908
15909         * opt.ads: (Warn_On_Non_Local_Exception): New flag
15910         (Warn_On_Reverse_Bit_Order): New flag
15911         (Extensions_Allowed): Update the documentation.
15912         (Warn_On_Questionable_Missing_Parens): Now on by default
15913
15914         * usage.adb: Add documentation of -gnatw.x/X switches
15915         Document new -gnatyA style switch
15916         -gnatq warnings are on by default
15917
15918 2007-04-06  Ed Falis  <falis@adacore.com>
15919
15920         * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
15921         full word is no longer compared twice.
15922
15923 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15924
15925         * sem_ch10.adb (Install_Limited_Context_Clauses.
15926         Expand_Limited_With_Clause): Use a new copy of selector name in the
15927         call to Make_With_Clause. This fixes the tree structure for ASIS
15928         purposes. Nothing is changed in the compiler behaviour.
15929         (Process_Body_Clauses): Handle properly use clauses whose prefix is
15930         a package renaming.
15931         (Install_Limited_With_Clauses): Do not install non-limited view when it
15932         is still incomplete.
15933
15934 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15935             Gary Dismukes  <dismukes@adacore.com>
15936
15937         * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
15938         when capturing size information, instead of base type, which for a
15939         formal array type will be the unconstrained type.
15940         (Analyze_Formal_Object_Declaration): Add check for illegal default
15941         expressions for a formal in object of a limited type.
15942         (Instantiate_Object): Ditto.
15943         (Check_Formal_Package_Instance): Skip entities that are formal objects,
15944         because they were defaulted in the formal package and no check applies
15945         to them.
15946         (Check_Formal_Package_Instance): Extend conformance check to other
15947         discrete types beyond Integer.
15948         (Process_Default): Copy directly the unmatched formal. A generic copy
15949         has already been performed in Analyze_Formal_Package.
15950         (Analyze_Associations): If a formal subprogram has no match, check for
15951         partial parametrization before looking for a default, to prevent
15952         spurious errors.
15953         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
15954         not set the instantiation environment before analyzing the actuals.
15955         Fixes regression on 8515-003 with implementation of AI-133.
15956         Set_Instance_Env checks whether the generic unit is a predefined
15957         unit, in which case the instance must be analyzed with the latest Ada
15958         mode. This setting must take place after analysis of the actuals,
15959         because the actuals must be analyzed and frozen in the Ada mode extant
15960         outside of the current instantiation.
15961         (Save_Env, Restore_Env): Preserve and restore the configuration
15962         parameters so that predefined units can be compiled in the proper Ada
15963         mode.
15964         (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
15965         Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
15966         and Is_Abstract_Type.
15967         (Analyze_Formal_Package): For better error recovery, Add exception
15968         handler to catch Instantion_Error, which can be raised in
15969         Analyze_Associations
15970
15971 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15972             Bob Duff  <duff@adacore.com>
15973             Gary Dismukes  <dismukes@adacore.com>
15974
15975         * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
15976         prefix type is a discriminated subtype of the type of the formal.
15977         (Analyze_Allocator): Collect all coextensions regardless of the context.
15978         Whether they can be allocated statically is determined in exp_ch4.
15979         (Analyze_Selected_Component): If the prefix is a limited view and the
15980         non-limited view is available, use the non-limited one.
15981         (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
15982         therefore illegal), suggest a qualified expression rather than a type
15983         conversion, because a type conversion would be illegal in this context.
15984         (Anayze_Allocator): Trace recursively all nested allocators so that all
15985         coextensions are on the corresponding list for the root. Do no mark
15986         coextensions if the root allocator is within a declaration for a stack-
15987         allocated object, because the access discriminants will be allocated on
15988         the stack as well.
15989         (Analyze_Call): Remove restriction on calls to limited functions for the
15990         cases of generic actuals for formal objects, defaults for formal objects
15991         and defaults for record components.
15992         (Analyze_Allocator): Before analysis, chain coextensions on the proper
15993         element list. Their expansion is delayed until the enclosing allocator
15994         is processed and its finalization list constructed.
15995         (Try_Primitive_Operation): If the prefix is a concurrent type, looks
15996         for an operation with the given name among the primitive operations of
15997         the corresponding record type.
15998         (Analyze_Selected_Component): If the prefix is a task type that
15999         implements an interface, and there is no entry with the given name,
16000         check whether there is another primitive operation (e.g. a function)
16001         with that name.
16002         (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
16003         properly the indexing of a function call written in prefix form, where
16004         the function returns an array type, and all parameters of the function
16005         except the first have defaults.
16006         (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
16007         the original operands, rather than relocating them, for efficiency and
16008         to work properly when an operand is overloaded.
16009         (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
16010         Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
16011         (Analyze_Selected_Component): If the prefix is a private extension, only
16012         scan the visible components, not those of the full view.
16013         (Try_Primitive_Operation): If the operation is a procedure, collect all
16014         possible interpretations, as for a function, because in the presence of
16015         classwide parameters several primitive operations of the type can match
16016         the given arguments.
16017
16018 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16019             Robert Dewar  <dewar@adacore.com>
16020
16021         * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
16022         tag-indeterminate call to an abstract function, when the left-hand side
16023         is not classwide.
16024         (Analyze_Loop_Statement): Improve detection of infinite loops
16025
16026 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16027             Thomas Quinot  <quinot@adacore.com>
16028
16029         * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
16030         out of Analyze_Package_Declaration, because processing must be applied
16031         to package bodies as well, for deferred constants completed by pragmas.
16032         (Analyze_Package_Declaration): When the package declaration being
16033         analyzed does not require an explicit body, call Check_Completion.
16034         (May_Need_Implicit_Body): An implicit body is required when a package
16035         spec contains the declaration of a remote access-to-classwide type.
16036         (Analyze_Package_Body): If the package contains RACWs, append the
16037         pending subprogram bodies generated by exp_dist at the end of the body.
16038         (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
16039         Is_Abstract_Subprogram and Is_Abstract_Type.
16040         (Preserve_Full_Attributes): The full entity list is not an attribute
16041         that must be preserved from full to partial view.
16042
16043         * sem_dist.adb (Add_RAS_Dereference_TSS):
16044         Change primitive name to _Call so it cannot clash with any legal
16045         identifier, and be special-cased in Check_Completion.
16046         Mark the full view of the designated type for the RACW associated with
16047         a RAS as Comes_From_Source to get proper view switching when installing
16048         private declarations.
16049         Provite a placeholder nested package body along with the nested spec
16050         to have a place for Append_RACW_Bodies to generate the calling stubs
16051         and stream attributes.
16052
16053 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16054             Robert Dewar  <dewar@adacore.com>
16055
16056         * sem_ch8.adb (Has_Components): If the argument is an incomplete type
16057         that is a limited view, check the non-limited view if available.
16058         (Undefined): Refine error message for missing with of Text_IO
16059         (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
16060         to distinguish real missing with cases.
16061         Fix format of all missing with messages
16062         (Analyze_Subprogram_Renaming): Emit proper error message on illegal
16063         renaming as body when renamed entity is abstract.
16064
16065 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16066             Javier Miranda  <miranda@adacore.com>
16067
16068         * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
16069         predicate recursive, to handle complex expressions on literals whose
16070         spurious ambiguity comes from the abstract interpretation of some
16071         subexpression.
16072         (Interface_Present_In_Ancestor): Add support to concurrent record
16073         types.
16074         (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
16075         Is_Abstract_Subprogram and Is_Abstract_Type.
16076
16077 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16078             Javier Miranda  <miranda@adacore.com>
16079
16080         * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
16081         dereference of a local object R created as a reference to another
16082         object O, use the access level of O.
16083         (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
16084         rather than local Same_Formal_Type, to check whether protected operation
16085         overrides an inherited one.
16086         (Same_Formal_Type): New predicate, used when matching signatures of
16087         overriding synchronized operations, to handle the case when a formal
16088         has a type that is a generic actual.
16089         (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
16090         predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
16091         (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
16092         syntactic ambiguities involving indexing of function calls that return
16093         arrays.
16094         (Abstract_Interface_List): New subprogram that returns the list of
16095         abstract interfaces associated with a concurrent type or a
16096         concurrent record type.
16097         (Interface_Present_In_Parent): New subprogram used to check if a
16098         given type or some of its parents implement a given interface.
16099         (Collect_Abstract_Interfaces): Add support for concurrent types
16100         with interface types.
16101         (Has_Abstract_Interfaces): Add support for concurrent types with
16102         interface types.
16103         (Is_Parent): New subprogram that determines whether E1 is a parent
16104         of E2. For a concurrent type its parent is the first element of its
16105         list of interface types; for other types this function provides the
16106         same result than Is_Ancestor.
16107         (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
16108         (Collect_Synchronized_Interfaces): Removed because the subprogram
16109         Collect_Abstract_Interfaces provides this functionality.
16110         (Collect_Abstract_Interfaces): Minor update to give support to
16111         concurrent types and thus avoid undesired code duplication.
16112         (Get_Subprogram_Entity): Handle entry calls.
16113         (May_Be_Lvalue): Include actuals that appear as in-out parameters in
16114         entry calls.
16115         (Enter_Name): Do not give -gnatwh hiding warning for record component
16116         entities, they never result in hiding.
16117
16118 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
16119             Robert Dewar  <dewar@adacore.com>
16120
16121         * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
16122         to chain nested components that are allocators for access discriminants
16123         of the enclosing object.
16124         Add N_Push and N_Pop nodes
16125         New field Exception_Label added
16126         (Local_Raise_Statements): New field in N_Exception_Handler_Node
16127         (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
16128         (Is_Coextension): New flag for allocators, to mark allocators that
16129         correspond to access discriminants of dynamically allocated objects.
16130         (N_Block_Statement): Document the fact that the corresponding entity
16131         can be an E_Return_Statement.
16132         (Is_Coextension): New flag for allocators.
16133         Remove all code for DSP option
16134
16135         * sprint.ads, sprint.adb: Display basic information for class_wide
16136         subtypes. Add handling of N_Push and N_Pop nodes
16137
16138 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
16139
16140         * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
16141         before propagating exception.
16142
16143 2007-04-06  Olivier Hainque  <hainque@adacore.com>
16144
16145         * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
16146         an address always within the call instruction from a return address.
16147
16148 2007-04-06  Olivier Hainque  <hainque@adacore.com>
16149             Eric Botcazou  <botcazou@adacore.com>
16150
16151         * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
16152         expression with a COMPOUND_EXPR including the call instead of emitting
16153         the call directly here.
16154         (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
16155         high bound is constant and the slice is empty.  Tidy.
16156         (tree_transform, case N_Op_Not): Handle properly the case where the
16157         operation applies to a private type whose full view is a modular type.
16158         (Case_Statement_To_gnu): If an alternative is an E_Constant with an
16159         Address_Clause, use the associated Expression as the GNAT tree
16160         representing the choice value to ensure the corresponding GCC tree is
16161         of the proper kind.
16162         (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
16163         instead of just the operands, as the base GCC stabilize_reference does.
16164         <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
16165         requested; otherwise fail.
16166         (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
16167
16168 2007-04-06  Thomas Quinot  <quinot@adacore.com>
16169
16170         * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
16171         implementation of UI_Div.
16172         (UI_Div): Reimplement as a call to UI_Div_Rem.
16173         (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
16174         remainder, avoiding the cost of a multiplication and a subtraction.
16175         (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
16176         provides both quotient and remainder in a single computation.
16177         (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
16178         functions for uint.
16179         (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
16180         is undefined if the given n is not inversible.
16181
16182 2007-04-06  Olivier Hainque  <hainque@adacore.com>
16183
16184         * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
16185         BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
16186         opcodes.
16187
16188 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
16189             Olivier Hainque  <hainque@adacore.com>
16190
16191         * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
16192         when updating the contents of the old pointer to an unconstrained array.
16193         (end_subprog_body): Set error_gnat_node to Empty.
16194         (write_record_type_debug_info): Do not be unduly sparing with our bytes.
16195         (unchecked_convert): For subtype to base type conversions, require that
16196         the source be a subtype if it is an integer type.
16197         (builtin_decls): New global, vector of available builtin functions.
16198         (gnat_pushdecl): Add global builtin function declaration nodes to the
16199         builtin_decls list.
16200         (gnat_install_builtins): Adjust comments.
16201         (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
16202         calling gnat_pushdecl, so that it knows when it handed a builtin
16203         function declaration node.
16204         (builtin_decl_for): Search the builtin_decls list.
16205
16206 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
16207
16208         * s-stchop-vxworks.adb: 
16209         (Stack_Check): Raise Storage_Error if the argument has wrapped around.
16210
16211 2007-04-06  Robert Dewar  <dewar@adacore.com>
16212             Arnaud Charlet  <charlet@adacore.com>
16213
16214         * a-diroro.ads: Inserted the pragma Unimplemented_Unit
16215
16216         * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
16217         of files
16218         Add mention of -Sev (set initialize_scalars option from environment
16219         variable at run time) in gnatbind usage message.
16220
16221         * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
16222
16223         * fname-uf.ads: Minor comment fix
16224
16225         * osint.ads: Change pragma Elaborate to Elaborate_All
16226
16227         * par-load.adb: Add documentation.
16228
16229         * sem_cat.ads, sem_cat.adb: Minor code reorganization
16230
16231         * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
16232
16233         * s-secsta.ads: Extra comments
16234
16235         * s-soflin.ads: Minor comment fixes
16236
16237         * s-stratt.ads (Block_Stream_Ops_OK): Removed.
16238
16239         * s-wchcon.ads: Minor comment addition
16240
16241         * treepr.adb: Minor change in message
16242         (Print_Name,Print_Node): Make these debug printouts more robust: print
16243         "no such..." instead of crashing on bad input.
16244
16245 2007-03-30  Rafael Avila de Espindola  <espindola@google.com>
16246
16247         * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
16248         instead of gnat_signed_or_unsigned_type.
16249         * utils.c (gnat_signed_or_unsigned_type): Remove.
16250         * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
16251         * gigi.h (gnat_signed_or_unsigned_type): Remove
16252
16253 2007-03-09  Roger Sayle  <roger@eyesopen.com>
16254
16255         * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
16256         fold with the result of buildN.
16257         * decl.c (gnat_to_gnu_entity): Likewise.
16258         * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
16259         * utils.c (finish_record_type, merge_sizes, max_size, convert):
16260         Likewise.
16261         * utils2.c (gnat_truthvalue_conversion, compare_arrays,
16262         nonbinary_modular_operation, build_binary_op, build_unary_op,
16263         build_cond_expr): Likewise.
16264
16265         * utils.c (convert): Use fold_build1 when casting values to void.
16266         * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
16267         fold_convert instead of convert when appropriate.
16268
16269 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
16270
16271         * Make-lang.in: Add install-pdf target as copied from
16272         automake v1.10 rules.
16273
16274 2007-02-28  Andreas Schwab  <schwab@suse.de>
16275
16276         * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
16277         $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
16278         (doc/gnat-style.info): Likewise.
16279
16280 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
16281
16282         * gnat-style.texi: Standardize title page.
16283         * gnat_rm.texi: Likewise.
16284         * gnat_ugn.texi: Likewise.
16285
16286 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
16287
16288         * decl.c (annotate_value): Adjust for refactoring of tree_map
16289         hierarchy.
16290
16291 2007-02-24  Mark Mitchell  <mark@codesourcery.com>
16292
16293         * decl.c (annotate_value): Adjust for refactoring of tree_map
16294         hierarchy.
16295
16296 2007-02-21  Ed Schonberg  <schonberg@adacore.com>
16297
16298         PR ada/18819
16299         * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
16300         untagged derived type, add hidden components to keep discriminant
16301         layout consistent, when a given discriminant of the derived type
16302         constraints several discriminants of the parent type.
16303
16304 2007-02-16  Eric Botcazou  <ebotcazou@adacore.com>
16305             Sandra Loosemore  <sandra@codesourcery.com>
16306
16307         * trans.c (call_to_gnu):  Use build_call_list instead of build3 to
16308         build the call expression.
16309         (gnat_stabilize_reference_1): Handle tcc_vl_exp.
16310         * utils.c (max_size) <tcc_exceptional>: Delete.
16311         <tcc_vl_exp>: New case.
16312         <tcc_expression>: Delete CALL_EXPR subcase.
16313         (build_global_cdtor): Use build_call_nary instead of build3.
16314         * utils2.c (build_call_1_expr): Likewise.
16315         (build_call_2_expr): Likewise.
16316         (build_call_0_expr): Likewise.
16317         (build_call_alloc_dealloc): Likewise.
16318
16319 2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
16320
16321         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
16322         get_action_description_for): Replace _Unwind_Word with _uleb128_t 
16323         and _Unwind_SWord with _sleb128_t.
16324
16325 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
16326
16327         * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
16328         * decl.c: Include gt-ada-decl.h.
16329         (annotate_value_cache): New.
16330         (annotate_value): Use it instead of TREE_COMPLEXITY.
16331
16332 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
16333
16334         * misc.c, utils2.c: Fix comment typos.
16335
16336 2007-01-24  Roger Sayle  <roger@eyesopen.com>
16337
16338         * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
16339         TREE_CONSTANT_OVERFLOW.
16340         (allocatable_size_p, annotate_value): Likewise.
16341         * trans.c (gnat_to_gnu): Likewise.
16342         * utils.c (unchecked_convert): Likewise.
16343         * utils2.c (build_simple_component_ref): Likewise.
16344
16345 2007-01-23  Richard Guenther  <rguenther@suse.de>
16346
16347         PR bootstrap/30541
16348         * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
16349         (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
16350         (gnatboot3): Likewise.
16351         (GNATBIND): Do not define.
16352         * Makefile.in (GNATBIND): Do not define.
16353
16354 2007-01-08  Richard Guenther  <rguenther@suse.de>
16355
16356         * cuintp.c (build_cst_from_int): Use built_int_cst_type.
16357         * trans.c (gnat_to_gnu): Likewise.
16358
16359 2006-12-07  Geoffrey Keating  <geoffk@apple.com>
16360
16361         * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
16362         * adaint.c: Likewise.
16363
16364 2006-12-05  Aldy Hernandez  <aldyh@redhat.com>
16365
16366         Merge from gimple-tuples-branch:
16367         2006-11-02  Aldy Hernandez  <aldyh@redhat.com>
16368
16369         * ada-tree.h (lang_tree_node): Handle gimple tuples.
16370         * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
16371         GIMPLE_MODIFY_STMT.
16372
16373 2006-12-02  Kazu Hirata  <kazu@codesourcery.com>
16374
16375         * Makefile.in, mingw32.h, trans.c: Fix comment typos.
16376         * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
16377         Fix typos.
16378
16379 2006-11-17  Eric Botcazou  <ebotcazou@adacore.com>
16380
16381         PR ada/27936
16382         * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
16383         if the initializer takes into account the padding.
16384
16385 2006-11-11  Richard Guenther  <rguenther@suse.de>
16386
16387         * trans.c (maybe_stabilize_reference): Remove handling of
16388         FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
16389
16390 2006-11-05  Arnaud Charlet  <charlet@adacore.com>
16391
16392         PR ada/29707
16393         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
16394         (To_Target_Priority): New function.
16395
16396 2006-10-31  Robert Dewar  <dewar@adacore.com>
16397
16398         * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
16399         a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
16400         s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
16401         a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
16402         a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
16403         a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
16404         a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
16405         a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
16406         a-szbzha.adb: Minor reformatting. Fix header.
16407
16408         * a-numaux-x86.adb: Add parentheses for use of unary minus
16409         * a-ngcefu.adb: Supply missing parentheses for unary minus
16410         * a-ngcoty.adb: Add parens for use of unary minus
16411         * a-ngelfu.adb: Add missing parens for unary minus
16412         * a-tifiio.adb: Add parentheses for uses of unary minus
16413
16414 2006-10-31  Robert Dewar  <dewar@adacore.com>
16415             Bob Duff  <duff@adacore.com>
16416             Ed Schonberg  <schonberg@adacore.com>
16417
16418         * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
16419         with multiplying operator.
16420         (Expected_Type_Is_Any_Real): New function to determine from the Parent
16421         pointer whether the context expects "any real type".
16422         (Resolve_Arithmetic_Op): Do not give an error on calls to the
16423         universal_fixed "*" and "/" operators when they are used in a context
16424         that expects any real type. Also set the type of the node to
16425         Universal_Real in this case, because downstream processing requires it
16426         (mainly static expression evaluation).
16427         Reword some continuation messages
16428         Add some \\ sequences to continuation messages
16429         (Resolve_Call): Refine infinite recursion case. The test has been
16430         sharpened to eliminate some false positives.
16431         Check for Current_Task usage now includes entry barrier, and is now a
16432         warning, not an error.
16433         (Resolve): If the call is ambiguous, indicate whether an interpretation
16434         is an inherited operation.
16435         (Check_Aggr): When resolving aggregates, skip associations with a box,
16436         which are priori correct, and will be replaced by an actual default
16437         expression in the course of expansion.
16438         (Resolve_Type_Conversion): Add missing support for conversion from
16439         a class-wide interface to a tagged type. Minor code cleanup.
16440         (Valid_Tagged_Converion): Add support for abstact interface type
16441         conversions.
16442         (Resolve_Selected_Component): Call Generate_Reference here rather than
16443         during analysis, and use May_Be_Lvalue to distinguish read/write.
16444         (Valid_Array_Conversion): New procedure, abstracted from
16445         Valid_Conversion, to incorporate accessibility checks for arrays of
16446         anonymous access types.
16447         (Valid_Conversion): For a conversion to a numeric type occurring in an
16448         instance or inlined body, no need to check that the operand type is
16449         numeric, since this has been checked during analysis of the template.
16450         Remove legacy test for scope name Unchecked_Conversion.
16451
16452         * sem_res.ads: Minor reformatting
16453
16454         * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
16455         (PE_Current_Task_In_Entry_Body): New exception code
16456         (SE_Restriction_Violation): Removed, not used
16457
16458         * a-except.ads:  Update comments.
16459
16460         * types.h, types.ads: Add definition for Validity_Check
16461         (PE_Current_Task_In_Entry_Body): New exception code
16462         (SE_Restriction_Violation): Removed, not used
16463
16464 2006-10-31  Thomas Quinot  <quinot@adacore.com>
16465
16466         * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
16467         error status.
16468
16469 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
16470             Jose Ruiz  <ruiz@adacore.com>
16471
16472         * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
16473         part of Ada.Calendar: all subprogram raise Unimplemented.
16474         (Split_W_Offset): Temp function body, raising Unimplemented
16475
16476         * a-calend.ads, a-calend-vms.ads: 
16477         Add imported variable Invalid_TZ_Offset used to designate targets unable
16478         to support time zones.
16479         (Unimplemented): Temporary function raised by the body of new
16480         subprograms below.
16481         (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
16482         unit provides handling of leap seconds and is used by the new Ada 2005
16483         packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
16484         (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
16485         version returns an extra value which is the offset to UTC.
16486
16487         * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
16488         (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
16489         (Split_W_Offset): New function body.
16490         (Time_Of): When a date is close to UNIX epoch, compute the time for
16491         that date plus one day (that amount is later substracted after
16492         executing mktime) so there are no problems with time zone adjustments.
16493
16494         * a-calend-mingw.adb: Remove Windows specific version no longer needed.
16495
16496         * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
16497         a-catizo.ads, a-catizo.adb: New files.
16498
16499         * impunit.adb: Add new Ada 2005 entries
16500
16501         * sysdep.c: Add external variable __gnat_invalid_tz_offset.
16502         Rename all occurences of "__gnat_localtime_r" to
16503         "__gnat_localtime_tzoff".
16504         (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
16505         zone data and calculate the GMT offset.
16506         (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
16507         Use the field "tm_gmtoff" to extract the GMT offset.
16508         (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
16509         the external variable "timezone" to calculate the GMT offset.
16510
16511 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
16512             Jose Ruiz  <ruiz@adacore.com>
16513
16514         * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb, 
16515         s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads, 
16516         s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
16517         s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
16518         System.Any_Priority to a POSIX priority on the target.
16519
16520         * system-linux-ia64.ads: 
16521         Extend range of Priority types on Linux to use the whole range made
16522         available by the system.
16523
16524         * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
16525         function maps from System.Any_Priority to a POSIX priority on the
16526         target.
16527         (PTHREAD_PRIO_PROTECT): Set real value.
16528         (PTHREAD_PRIO_INHERIT): Now a function.
16529         (SIGCPUFAIL): New signal.
16530         (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
16531         are documented as reserved by the OS.
16532
16533         * system-aix.ads: Use the full range of priorities provided by the
16534         system on AIX.
16535
16536         * s-taprop-posix.adb: Call new function To_Target_Priority.
16537         (Set_Priority): Take into account Task_Dispatching_Policy and
16538         Priority_Specific_Dispatching pragmas when determining if Round Robin
16539         must be used for scheduling the task.
16540
16541         * system-linux-x86_64.ads, system-linux-x86.ads, 
16542         system-linux-ppc.ads: Extend range of Priority types on Linux to use
16543         the whole range made available by the system.
16544
16545         * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb, 
16546         s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb, 
16547         s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
16548         when deallocating the TCB in order to avoid potential references to
16549         deallocated data.
16550         (Set_Priority): Take into account Task_Dispatching_Policy and
16551         Priority_Specific_Dispatching pragmas when determining if Round Robin
16552         or FIFO within priorities must be used for scheduling the task.
16553
16554         * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
16555         the Thread field (to be used internally by the run-time system) and the
16556         kernel-level task id in the LWP field (to be used by the debugger).
16557         (Create_Task): Reorganize to unify the calls to taskSpawn into a single
16558         instance, and propagate the current task options to the spawned task.
16559         (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
16560         (Initialize): Set Round Robin dispatching when the corresponding pragma
16561         is in effect.
16562
16563 2006-10-31  Robert Dewar  <dewar@adacore.com>
16564
16565         * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, 
16566         system-linux-hppa.ads, system-hpux-ia64.ads, 
16567         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads, 
16568         system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
16569         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, 
16570         system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads, 
16571         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
16572         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
16573         system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
16574         Default_Bit_Order) to kill constant condition warnings for references
16575         to this switch.
16576
16577 2006-10-31  Vincent Celier  <celier@adacore.com>
16578             Eric Botcazou  <ebotcazou@adacore.com>
16579
16580         * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
16581         mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
16582         mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
16583         Ext_To, when building the library file name
16584
16585         * mlib-tgt-vxworks.adb: ditto.
16586         (Get_Target_Suffix): Add support for x86 targets.
16587
16588         * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
16589
16590         * mlib-tgt-darwin.adb: 
16591         Use Append_To, instead of Ext_To, when building the library file name
16592         (Flat_Namespace): New global variable.
16593         (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
16594         (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
16595         (Link_Shared_Libgcc): Delete.
16596         (Build_Dynamic_Library): Adjust for above changes.
16597         Use Opt package.
16598         (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
16599
16600 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
16601
16602         * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
16603         (Initialize): Add type conversions required by above change.
16604
16605 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
16606
16607         * s-osinte-vxworks.ads, s-osinte-vxworks.adb: 
16608         (getpid): New body for this function that uses the underlying taskIdSelf
16609         function for VxWorks 5 and VxWorks 6 in kernel mode.
16610         (unsigned_int): New type, modular to allow logical bit operations.
16611         (taskOptionsGet): New imported function.
16612
16613         * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
16614         field to be compliant with the type used by the corresponding operating
16615         system primitive.
16616
16617 2006-10-31  Pascal Obry  <obry@adacore.com>
16618             Eric Botcazou  <ebotcazou@adacore.com>
16619             Vincent Celier  <celier@adacore.com>
16620
16621         * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
16622         ASCII version of the registry API. This is needed as the GNAT runtime
16623         is now UNICODE by default.
16624         Include version.h.
16625         (get_gcc_version): Do not hardcode the return value.
16626         (__gnat_file_time_name): On Windows properly set the default returned
16627         value to -1 which corresponds to Invalid_Time.
16628         (__gnat_fopen): New routine. A simple wrapper on all plateforms
16629          except on Windows where it does conversion for unicode support.
16630         (__gnat_freopen): Idem.
16631         (__gnat_locate_exec_on_path): If environment variable PATH does not
16632         exist, return a NULL pointer
16633
16634         * adaint.h: (__gnat_fopen): Declare.
16635         (__gnat_freopen): Likewise.
16636
16637         * mingw32.h (_tfreopen): Define this macro here for older MingW
16638         version.
16639         Activate the unicode support on platforms using a MingW runtime
16640         version 3.9 or newer.
16641
16642         * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
16643         This is needed for proper unicode support on Windows.
16644         (freopen): Idem.
16645
16646 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
16647             Nicolas Setton  <setton@adacore.com>
16648             Olivier Hainque  <hainque@adacore.com>
16649             Gary Dismukes  <dismukes@adacore.com>
16650
16651         * gigi.h: (tree_code_for_record_type): Declare.
16652         (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
16653         (get_global_renaming_pointers): Rename to
16654         invalidate_global_renaming_pointers.
16655         (static_ctors): Delete.
16656         (static_dtors): Likewise.
16657         (gnat_write_global_declarations): Declare.
16658         (create_var_decl): Adjust descriptive comment to indicate that the
16659         subprogram may return a CONST_DECL node.
16660         (create_true_var_decl): Declare new function, similar to
16661         create_var_decl but forcing the creation of a VAR_DECL node.
16662         (get_global_renaming_pointers): Declare.
16663         (add_global_renaming_pointer): Likewise.
16664
16665         * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
16666
16667         * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
16668         tree before setting TREE_ADDRESSABLE for by-reference return mechanism
16669         processing.
16670         (gnat_to_gnu_entity): Remove From_With_Type from computation for
16671         imported_p.
16672         <E_Access_Type>: Use the Non_Limited_View as the full view of the
16673         designated type if the pointer comes from a limited_with clause.  Make
16674         incomplete designated type if it is in the main unit and has a freeze
16675         node.
16676         <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
16677         Underlying_Full_View similarly.  Return earlier if the full view already
16678         has an associated tree.
16679         (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
16680         (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
16681         (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
16682         reference type built for objects with an address clause.
16683         Use create_true_var_decl with const_flag set for
16684         DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
16685         TREE_READONLY set.
16686         (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
16687         for Character and Wide_Character types. This info is read by the
16688         dwarf-2 writer, and is needed to be able to use the command "ptype
16689         character" in the debugger.
16690         (gnat_to_gnu_entity): When generating a type representing
16691         a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
16692         so that debug writers can distinguish it from ordinary integers.
16693         (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
16694         addition to TREE_READONLY to assert the constantness of variables for
16695         elaboration purposes.
16696         (gnat_to_gnu_entity, subprogram cases): Change loops on formal
16697         parameters to call new Einfo function First_Formal_With_Extras.
16698         (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
16699         protected type with its corresponding discriminant, to obtain a usable
16700         declaration
16701         (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
16702         for a multiple elaboration of the "equivalent" type.
16703         (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
16704         into record_global_renaming_pointer.
16705         (gnat_to_gnu_entity) <E_Array_Type>: Do not force
16706         TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
16707         <E_Array_Subtype>: Likewise.
16708         (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
16709         incomplete subtypes and incomplete subtypes of incomplete types visible
16710         through a limited with clause.
16711         (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
16712         the base index type for the maximum size of the array only if they are
16713         constant.
16714         (gnat_to_gnu_entity, renaming object case): Do not wrap up the
16715         expression into a SAVE_EXPR if stabilization failed.
16716
16717         * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
16718         a result decl into DECL_BY_REFERENCE on this decl, now what is expected
16719         by lower level compilation passes.
16720         (gnat_genericize): New function, lowering a function body to GENERIC.
16721         Turn the type of RESULT_DECL into a real reference type if the decl
16722         has been marked DECL_BY_REFERENCE, and adjust references to the latter
16723         accordingly.
16724         (gnat_genericize_r): New function. Tree walking callback for
16725         gnat_genericize.
16726         (convert_from_reference, is_byref_result): New functions. Helpers for
16727         gnat_genericize_r.
16728         (create_type_decl): Call gnat_pushdecl before calling
16729         rest_of_decl_compilation, to make sure that field TYPE_NAME of
16730         type_decl is properly set before calling the debug information writers.
16731         (write_record_type_debug_info): The heuristics which compute the
16732         alignment of a field in a variant record might not be accurate. Add a
16733         safety test to make sure no alignment is set to a smaller value than
16734         the alignment of the field type.
16735         (make_dummy_type): Use the Non_Limited_View as the underlying type if
16736         the type comes from a limited_with clause. Do not loop on the full view.
16737         (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
16738         (dummy_node_table): New global variable, moved from decl.c.
16739         (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
16740         (save_gnu_tree): Use above macros.
16741         (get_gnu_tree): Likewise.
16742         (present_gnu_tree): Likewise.
16743         (init_dummy_type): New function, moved from decl.c. Use above macros.
16744         (make_dummy_type): Likewise.
16745         (tree_code_for_record_type): New function extracted from make_dummy_type
16746         (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
16747         (static_ctors): Change it to a vector, make static.
16748         (static_dtors): Likewise.
16749         (end_subprog_body): Adjust for above change.
16750         (build_global_cdtor): Moved from trans.c.
16751         (gnat_write_global_declarations): Emit global constructor and
16752         destructor, and call cgraph_optimize before emitting debug info for
16753         global declarations.
16754         (global_decls): New global variable.
16755         (gnat_pushdecl): Store the global declarations in global_decls, for
16756         later use.
16757         (gnat_write_global_declarations): Emit debug information for global
16758          declarations.
16759         (create_var_decl_1): Former create_var_decl, with an extra argument to
16760          state whether the creation of a CONST_DECL is allowed.
16761         (create_var_decl): Behavior unchanged. Now a wrapper around
16762         create_var_decl_1 allowing CONST_DECL creation.
16763         (create_true_var_decl): New function, similar to create_var_decl but
16764         forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
16765         (create_field_decl): Do not always mark the field as addressable
16766         if its type is an aggregate.
16767         (global_renaming_pointers): New static variable.
16768         (add_global_renaming_pointer): New function.
16769         (get_global_renaming_pointers): Likewise.
16770
16771         * misc.c (gnat_dwarf_name): New function.
16772         (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
16773         (gnat_post_options): Add comment about structural alias analysis.
16774         (gnat_parse_file): Do not call cgraph_optimize here.
16775         (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
16776
16777         * trans.c (process_freeze_entity): Don't abort if we already have a
16778         non dummy GCC tree for a Concurrent_Record_Type, as it might
16779         legitimately have been elaborated while processing the associated
16780         Concurrent_Type prior to this explicit freeze node.
16781         (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
16782         exception handler volatile if it is of variable size.
16783         (process_type): Remove bypass for types coming from a limited_with
16784         clause.
16785         (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
16786         actual, convert the corresponding gnu_actual to the real destination
16787         type when necessary.
16788         (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
16789         originally TREE_READONLY but whose elaboration cannot be performed
16790         statically.
16791         Part of fix for F504-021.
16792         (tree_transform, subprogram cases): Change loops on formal parameters to
16793         call new Einfo function First_Formal_With_Extras.
16794         (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
16795         stemming from type conversion for the lhs.
16796         (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
16797         number of bits per unit for components of records.
16798         (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
16799         (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
16800         with At_End_Proc after the SJLJ EH cleanup.
16801         (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
16802         compilation unit.
16803         (elaborate_all_entities): Do not retest type_annotate_only.
16804         (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
16805         result type of an abstract subprogram, which may be an itype associated
16806         with an anonymous access result (related to AI-318-02).
16807         (build_global_cdtor): Move to utils.c.
16808         (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
16809         this choice is not a null tree nor an integer constant.
16810         (gigi): Run unshare_save_expr via walk_tree_without_duplicates
16811         on the body of elaboration routines instead of mark_unvisited.
16812         (add_stmt): Do not mark the tree.
16813         (add_decl_expr): Tweak comment.
16814         (mark_unvisited): Delete.
16815         (unshare_save_expr): New static function.
16816         (call_to_gnu): Issue an error when making a temporary around a
16817         procedure call because of non-addressable actual parameter if the
16818         type of the formal is by_reference.
16819         (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
16820         after building the elaboration routine.
16821
16822 2006-10-31  Bob Duff  <duff@adacore.com>
16823
16824         * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
16825         as finalization-started, so we can raise Program_Error on 'new'.
16826
16827         * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
16828         collection has already started.
16829
16830         * s-finimp.ads (Collection_Finalization_Started): Added new special
16831         flag value for indicating that a collection's finalization has started.
16832
16833         * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
16834         create a task whose master has already waited for dependent tasks.
16835
16836 2006-10-31  Robert Dewar  <dewar@adacore.com>
16837
16838         * lib.adb, lib.ads: (In_Predefined_Unit): New functions
16839
16840         * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads, 
16841         a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads, 
16842         a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads, 
16843         a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads, 
16844         a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads, 
16845         a-except-2005.ads: Add pragma Preelaborable_Warning
16846
16847 2006-10-31  Robert Dewar  <dewar@adacore.com>
16848             Jose Ruiz  <ruiz@adacore.com>
16849
16850         * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
16851
16852         * ali.adb (Get_Name): Properly handle scanning of wide character names
16853         encoded with brackets notation.
16854         (Known_ALI_Lines): Add S lines to this list.
16855         (Scan_ALI): Acquire S (priority specific dispatching) lines.
16856         New flag Elaborate_All_Desirable in unit table
16857
16858         * ali.ads (Priority_Specific_Dispatching): Add this range of
16859         identifiers to be used for Priority_Specific_Dispatching table entries.
16860         (ALIs_Record): Add First_Specific_Dispatching and
16861         Last_Specific_Dispatching that point to the first and last entries
16862         respectively in the priority specific dispatching table for this unit.
16863         (Specific_Dispatching): Add this table for storing each S (priority
16864         specific dispatching) line encountered in the input ALI file.
16865         New flag Elaborate_All_Desirable in unit table
16866
16867         * bcheck.adb: (Check_Configuration_Consistency): Add call to
16868         Check_Consistent_Dispatching_Policy.
16869         (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
16870         verifying that the use of Priority_Specific_Dispatching,
16871         Task_Dispatching_Policy, and Locking_Policy is consistent across the
16872         partition.
16873
16874         * bindgen.adb: (Public_Version_Warning): function removed.
16875         (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
16876         required information from ALI files in order to initialize the table
16877         containing the specific dispatching policy.
16878         (Gen_Adainit_Ada): Generate the variables required for priority specific
16879         dispatching entries (__gl_priority_specific_dispatching and
16880         __gl_num_specific_dispatching).
16881         (Gen_Adainit_C): Generate the variables required for priority specific
16882         dispatching entries (__gl_priority_specific_dispatching and
16883         __gl_num_specific_dispatching).
16884         (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
16885         pragma entries.
16886         (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
16887         (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
16888         (Tab_To): Removed.
16889         (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
16890         a call to gnat_set_globals.
16891         Generate a string containing settings from
16892         Priority_Specific_Dispatching pragma entries.
16893         (Gen_Object_Files_Options): Do not include the runtime libraries when
16894         pragma No_Run_Time is specified.
16895
16896         * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
16897         consistency with s-intman-posix.adb.
16898         (__gnat_error_handler, case FreeBSD): Account for the fact that the
16899         handler is installed with SA_SIGINFO.
16900         (__gnat_adjust_context_for_raise, FreeBSD case): New function for
16901         FreeBSD ZCX support, copied from Linux version.
16902         Add MaRTE-specific definitions for the linux target. Redefine sigaction,
16903         sigfillset, and sigemptyset so the routines defined by MaRTE.
16904         (__gl_priority_specific_dispatching): Add this variable that stores the
16905         string containing priority specific dispatching policies in the
16906         partition.
16907         (__gl_num_specific_dispatching): Add this variable that indicates the
16908         highest priority for which a priority specific dispatching pragma
16909         applies.
16910         (__gnat_get_specific_dispatching): Add this routine that returns the
16911         priority specific dispatching policy, as set by a
16912         Priority_Specific_Dispatching pragma appearing anywhere in the current
16913         partition. The input argument is the priority number, and the result
16914         is the upper case first character of the policy name.
16915         (__gnat_set_globals): Now a dummy function.
16916         (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
16917         mechargs instead of sigargs, as the latter can be retrieved from the
16918         former and sigargs is not what we want on ia64.
16919         (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
16920         mechargs argument.
16921         (__gnat_adjust_context_for_raise, ia64-vms): New function.
16922         (tasking_error): Remove unused symbol.
16923         (_abort_signal): Move this symbol to the IRIX specific part since this
16924         is the only target that uses this definition.
16925         (Check_Abort_Status): Move this symbol to the IRIX specific part since
16926         this is the only target that uses this definition.
16927         (Lock_Task): Remove unused symbol.
16928         (Unlock_Task): Remove unused symbol.
16929
16930         * lib-writ.adb (Write_ALI): Output new S lines for
16931         Priority_Specific_Dispatching pragmas.
16932         Implement new flag BD for elaborate body desirable
16933
16934         * lib-writ.ads: Document S lines for Priority Specific Dispatching.
16935         (Specific_Dispatching): Add this table for storing the entries
16936         corresponding to Priority_Specific_Dispatching pragmas.
16937         Document new BD flag for elaborate body desirable
16938
16939         * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
16940         of known pragmas.
16941
16942 2006-10-31  Javier Miranda  <miranda@adacore.com>
16943
16944         * a-tags.ads, a-tags.adb: 
16945         (Predefined_DT): New function that improves readability of the code.
16946         (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
16947         Inherit_DT): Use the new function Predefined_DT to improve code
16948         readability.
16949         (Register_Interface_Tag): Update assertion.
16950         (Set_Interface_Table): Update assertion.
16951         (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
16952         determining progenitor interfaces in Tags.
16953         (Inherit_CPP_DT): New subprogram.
16954
16955         * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
16956         analysis of the thunk code.
16957         (Expand_Interface_Conversion): Handle run-time conversion of
16958         access to class wide types.
16959         (Expand_Dispatching_Call): When generating the profile for the
16960         subprogram itype for a dispatching operation, properly terminate the
16961         formal parameters chaind list (set the Next_Entity of the last formal
16962         to Empty).
16963         (Collect_All_Interfaces): Removed. This routine has been moved to
16964         sem_util and renamed as Collect_All_Abstract_Interfaces.
16965         (Set_All_DT_Position): Hidden entities associated with abstract
16966         interface primitives are not taken into account in the check for
16967         3.9.3(10); this check is done with the aliased entity.
16968         (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
16969         interfacing with CPP by default.
16970         (Expand_Interface_Conversion): Add missing support for static conversion
16971         from an interface to a tagged type.
16972         (Collect_All_Interfaces): Add new out formal containing the list of
16973         abstract interface types to cleanup the subprogram Make_DT.
16974         (Make_DT): Update the code to generate the table of interfaces in case
16975         of abstract interface types.
16976         (Is_Predefined_Dispatching_Alias): New function that returns true if
16977         a primitive is not a predefined dispatching primitive but it is an
16978         alias of a predefined dispatching primitive.
16979         (Make_DT): If the ancestor of the type is a CPP_Class and we are
16980         compiling under full ABI compatibility mode we avoid the generation of
16981         calls to run-time services that fill the dispatch tables because under
16982         this mode we currently inherit the dispatch tables in the IP subprogram.
16983         (Write_DT): Emit an "is null" indication for a null procedure primitive.
16984         (Expand_Interface_Conversion): Use an address as the type of the formal
16985         of the internally built function that handles the case in which the
16986         target type is an access type.
16987
16988 2006-10-31  Robert Dewar  <dewar@adacore.com>
16989
16990         * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
16991
16992 2006-10-31  Robert Dewar  <dewar@adacore.com>
16993
16994         * bindusg.ads, bindusg.adb:
16995         Change to package and rename procedure as Display, which
16996         now ensures that it only outputs usage information once.
16997
16998 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
16999
17000         * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
17001         using RTPs.
17002
17003         * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
17004         when using RTPs.
17005
17006 2006-10-31  Robert Dewar  <dewar@adacore.com>
17007             Ed Schonberg  <schonberg@adacore.com>
17008
17009         * treepr.adb: Use new subtype N_Membership_Test
17010
17011         * checks.ads, checks.adb: Add definition for Validity_Check
17012         (Range_Or_Validity_Checks_Suppressed): New function
17013         (Ensure_Valid): Test Validity_Check suppressed
17014         (Insert_Valid_Check): Test Validity_Check suppressed
17015         (Insert_Valid_Check): Preserve Do_Range_Check flag
17016         (Validity_Check_Range): New procedure
17017         (Expr_Known_Valid): Result of membership test is always valid
17018         (Selected_Range_Checks): Range checks cannot be applied to discriminants
17019         by themselves. Disabling those checks must also be done for task types,
17020         where discriminants may be used for the bounds of entry families.
17021         (Apply_Address_Clause_Check): Remove side-effects if address expression
17022         is non-static and is not the name of a declared constant.
17023         (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
17024         Code cleanup and new error messages.
17025         (Enable_Range_Check): Test for some cases of suppressed checks
17026         (Generate_Index_Checks): Suppress index checks if index checks are
17027         suppressed for array object or array type.
17028         (Apply_Selected_Length_Checks): Give warning for compile-time detected
17029         length check failure, even if checks are off.
17030         (Ensure_Valid): Do not generate a check on an indexed component whose
17031         prefix is a packed boolean array.
17032         * checks.adb: (Alignment_Checks_Suppressed): New function
17033         (Apply_Address_Clause_Check): New procedure, this is a completely
17034         rewritten replacement for Apply_Alignment_Check
17035         (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
17036         we request a discriminal value only in case of discriminants.
17037         (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
17038         assignments where the target subtype is unconstrained and the target
17039         object is a parameter or dereference (other aliased cases are known
17040         to be unconstrained).
17041
17042 2006-10-31  Robert Dewar  <dewar@adacore.com>
17043
17044         * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
17045         prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
17046         vms_conv.adb: Fix bad table increment values (much too small)
17047
17048         * table.adb (Realloc): Make sure we get at least some new elements
17049         Defends against silly small values for table increment
17050
17051 2006-10-31  Robert Dewar  <dewar@adacore.com>
17052             Ed Schonberg  <schonberg@adacore.com>
17053             Bob Duff  <duff@adacore.com>
17054
17055         * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
17056         entities. Move other fields around to make this possible
17057         (Is_Derived_Type): Add missing call to Is_Type.
17058         (Extra_Formals): New function for subprograms, entries, subprogram
17059         types.
17060         (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
17061         (First_Formal_With_Extras): New function for subprogs, entries, subp
17062         types.
17063         (Write_Field28_Name): New procedure for node display of "Extra_Formals".
17064         Add node information for E_Return_Statement.
17065         (Elaborate_Body_Desirable): New flag
17066         (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
17067         to be Is_Inherently_Limited_Type, because return-by-reference has
17068         no meaning in Ada 2005.
17069         (E_Return_Statement): New entity kind.
17070         (Return_Applies_To): Field of E_Return_Statement.
17071         (Is_Return_Object): New flag in object entities.
17072         (Is_Dynamic_Scope): Make it True for E_Return_Statement.
17073         (Must_Have_Preelab_Init): New flag
17074         (Known_To_Have_Preelab_Init): New flag
17075         (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
17076         (Is_Visible_Formal): New flag on entities in formal packages.
17077         (Low_Bound_Known): New flag
17078         (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
17079         Incomplete_Kind.
17080         (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
17081         output when Id is an incomplete subtype.
17082
17083 2006-10-31  Robert Dewar  <dewar@adacore.com>
17084
17085         * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
17086         Avoid abbreviation Creat
17087         (Finalize): List all sources in extended mail source if -gnatl
17088         switch is active.
17089         Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
17090         (Finalize): Implement new -gnatl=xxx switch to output listing to file
17091         (Set_Specific_Warning_On): New procedure
17092         (Set_Specific_Warning_Off): New procedure
17093         Add implementation of new insertion \\
17094         (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
17095         (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
17096         types.
17097         (Error_Msg_Internal): Make sure that we set Last_Killed to
17098         True when a message from another package is suppressed.
17099         Implement insertion character ~ (insert string)
17100         (First_Node): Minor adjustments to get better placement.
17101
17102         * frontend.adb: 
17103         Implement new -gnatl=xxx switch to output listing to file
17104
17105         * gnat1drv.adb: 
17106         Implement new -gnatl=xxx switch to output listing to file
17107
17108         * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
17109         (Commands_To_Stdout): New flag
17110         Implement new -gnatl=xxx switch to output listing to file
17111         New switch Dump_Source_Text
17112         (Warn_On_Deleted_Code): New warning flag for -gnatwt
17113         Define Error_Msg_Line_Length
17114         (Warn_On_Assumed_Low_Bound): New switch
17115
17116         * osint.ads, osint.adb
17117         (Normalize_Directory_Name): Fix bug.
17118         Implement new -gnatl=xxx switch to output listing to file
17119         (Concat): Removed, replaced by real concatenation
17120         Make use of concatenation now allowed in compiler
17121         (Executable_Prefix.Get_Install_Dir): First get the full path, so that
17122         we find the 'lib' or 'bin' directory even when the tool has been
17123         invoked with a relative path.
17124         (Executable_Name): New function taking string parameters.
17125
17126         * osint-c.ads, osint-c.adb: 
17127         Implement new -gnatl=xxx switch to output listing to file
17128
17129         * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
17130
17131         * switch-c.adb: 
17132         Implement new -gnatl=xxx switch to output listing to file
17133         Recognize new -gnatL switch
17134         (no longer keep in old warning about old style usage)
17135         Use concatenation to simplify code
17136         Recognize -gnatjnn switch
17137         (Scan_Front_End_Switches): Clean up handling of -gnatW
17138         (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
17139
17140 2006-10-31  Robert Dewar  <dewar@adacore.com>
17141
17142         * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
17143         (Set_Specific_Warning_Off): New procedure
17144         (Warning_Specifically_Suppressed): New function
17145         (Validate_Specific_Warnings): New procedure
17146         (Output_Msg_Text): Complete rewrite to support -gnatjnn
17147
17148         * err_vars.ads: Implement insertion character ~ (insert string)
17149
17150 2006-10-31  Bob Duff  <duff@adacore.com>
17151             Ed Schonberg  <schonberg@adacore.com>
17152
17153         * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
17154         the parent part is a build-in-place function call, generate assignments.
17155         (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
17156         are build-in-place function calls.
17157         (Replace_Self_Reference): New subsidiary of
17158         Make_OK_Assignment_Statement, to replace an access attribute that is a
17159         self-reference into an access to the appropriate component of the
17160         target object. Generalizes previous mechanism to handle self-references
17161         nested at any level.
17162         (Is_Self_Referential_Init): Remove, not needed.
17163         (Is_Self_Referential_Init): New predicate to simplify handling of self
17164         referential components in record aggregates.
17165         (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
17166         check for presence of entity before checking for self-reference.
17167         (Has_Default_Init_Comps): Return True if a component association is a
17168         self-reference to the enclosing type, which can only come from a
17169         default initialization.
17170         (Make_OK_Assignment_Statement): If the expression is of the form
17171         Typ'Acc, where Acc is an access attribute, the expression comes from a
17172         default initialized self-referential component.
17173         (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
17174         that has been derived from several abstract interfaces we must also
17175         initialize the tags of the secondary dispatch tables.
17176
17177 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17178             Thomas Quinot  <quinot@adacore.com>
17179             Javier Miranda  <miranda@adacore.com>
17180             Robert Dewar  <dewar@adacore.com>
17181
17182         * exp_attr.adb: 
17183         (Expand_Access_To_Protected_Op): If the context indicates that an access
17184         to a local operation may be transfered outside of the object, create an
17185         access to the wrapper operation that must be used in an external call.
17186         (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
17187         target, pass the Valid attribute applied to a floating-point prefix on
17188         to the back end without expansion.
17189         (Storage_Size): Use the new run-time function Storage_Size to retrieve
17190         the allocated storage when it is specified by a per-object expression.
17191         (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
17192         Nothing to do here, the attribute has been rewritten during semantic
17193         analysis.
17194         (Expand_Attribute_Reference): Handle expansion of the new Priority
17195         attribute
17196         (Find_Fat_Info): Handle case of universal real
17197         (Expand_Access_To_Protected_Op): Fix use of access to protected
17198         subprogram from inside the body of a protected entry.
17199         (Expand_Access_To_Protected_Op): Common procedure for the expansion of
17200         'Access and 'Unrestricted_Access, to transform the attribute reference
17201         into a fat pointer.
17202         (Is_Constrained_Aliased_View): New predicate to help determine whether a
17203         subcomponent's enclosing variable is aliased with a constrained subtype.
17204         (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
17205         test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
17206         an aliased prefix must be known to be constrained in order to use True
17207         for the attribute value, and now it's possible for some aliased views
17208         to be unconstrained.
17209
17210 2006-10-31  Robert Dewar  <dewar@adacore.com>
17211
17212         * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
17213         (Expand_Entity_Reference): Correct error of not handling subprogram
17214         formals in current_value processing.
17215
17216 2006-10-31  Javier Miranda  <miranda@adacore.com>
17217             Robert Dewar  <dewar@adacore.com>
17218             Ed Schonberg  <schonberg@adacore.com>
17219             Gary Dismukes  <dismukes@adacore.com>
17220
17221         * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
17222         register in the final list objects containing class-wide interfaces;
17223         otherwise we incorrectly register the tag of the interface in the final
17224         list.
17225         (Make_Controlling_Function_Wrappers): Add missing barrier to do not
17226         generate the wrapper if the parent primitive is abstract. This is
17227         required to report the correct error message.
17228         (Expand_N_Subtype_Indication): Do validity checks on range
17229         (Clean_Task_Names): If an initialization procedure includes a call to
17230         initialize a task (sub)component, indicate that the procedure will use
17231         the secondary stack.
17232         (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
17233         compatibility for interfacing with CPP by default.
17234         (Expand_N_Object_Declaration): Only build an Adjust call when the
17235         object's type is a nonlimited controlled type.
17236         * exp_ch3.adb: Add with and use of Exp_Ch6.
17237         (Expand_N_Object_Declaration): Check for object initialization that is a
17238         call to build-in-place function and apply Make_Build_In_Place_Call_In_
17239         Object_Declaration to the call.
17240         (Freeze_Type): When the designated type of an RACW was not frozen at the
17241         point where the RACW was declared, validate the primitive operations
17242         with respect to E.2.2(14) when it finally is frozen.
17243         (Build_Initialization_Call,Expand_Record_Controller): Rename
17244         Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
17245         return-by-reference has no meaning in Ada 2005.
17246         (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
17247         to register tag of the immediate ancestor interfaces in the
17248         run-time structure.
17249         (Init_Secondary_Tags): Moved to the specification to allow the
17250         initialization of extension aggregates with abstract interfaces.
17251         (Build_Master_Renaming): Make public, for use by function declarations
17252         whose return type is an anonymous access type.
17253         (Freeze_Record_Type): Replace call to Insert_List_Before by call to
17254         Insert_List_Before_And_Analyze after the generation of the specs
17255         associated with null procedures.
17256         (Expand_Tagged_Root): Update documentation in its specification.
17257         (Init_Secondary_Tags): Update documentation.
17258         (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
17259         tibility mode and the immediate ancestor is a CPP_Pragma tagged type
17260         then generate code to inherit the contents of the dispatch table
17261         directly from the ancestor.
17262         (Expand_Record_Controller): Insert controller component after tags of
17263         implemented interfaces.
17264         (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
17265         create null procedure overridings when null procedures are inherited
17266         from interfaces.
17267         (Make_Null_Procedure_Specs): New procedure to generate null procedure
17268         declarations for overriding null primitives inherited from interfaces.
17269         (Is_Null_Interface_Procedure): New function in
17270         Make_Null_Procedure_Specs.
17271         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
17272         immediate ancestor of a tagged type is an abstract interface type we
17273         must generate the specification of the predefined primitives associated
17274         with controlled types (because the dispatch table of the ancestor is
17275         null and hence these entries cannot be inherited). This is required to
17276         elaborate well the dispatch table.
17277
17278 2006-10-31  Javier Miranda  <miranda@adacore.com>
17279             Ed Schonberg  <schonberg@adacore.com>
17280             Bob Duff  <duff@adacore.com>
17281             Gary Dismukes  <dismukes@adacore.com>
17282             Robert Dewar  <dewar@adacore.com>
17283
17284         * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
17285         conversion.
17286         (Expand_N_In): Do validity checks on range
17287         (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
17288         (Expand_N_Allocator): For "new T", if the object is constrained by
17289         discriminant defaults, allocate the right amount of memory, rather than
17290         the maximum for type T.
17291         (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
17292         when the allocator is initialized by a build-in-place call, since the
17293         allocator is already rewritten as a reference to the function result,
17294         and this prevents an unwanted duplication of the function call.
17295         Add with and use of Exp_Ch6.
17296         (Expand_Allocator_Expresssion): Check for an allocator whose expression
17297         is a call to build-in-place function and apply
17298         Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
17299         untagged designated types).
17300         (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
17301         optimization if source or target is biased.
17302         (Expand_N_Allocator): Add comments for case of an allocator within a
17303         function that returns an anonymous access type designating tasks.
17304         (Expand_N_Allocator): apply discriminant checks for access
17305         discriminants of anonymous access types (AI-402, AI-416)
17306
17307 2006-10-31  Bob Duff  <duff@adacore.com>
17308             Robert Dewar  <dewar@adacore.com>
17309             Gary Dismukes  <dismukes@adacore.com>
17310             Ed Schonberg  <schonberg@adacore.com>
17311
17312         * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
17313
17314         * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
17315         (Expand_N_Assignment_Statement): Call
17316         Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
17317         build-in-place function call. Currently, this can happen only for
17318         assignments that come from aggregates.
17319         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
17320         in order to alleviate the upward compatibility introduced by AI-318.
17321         (Expand_N_Extended_Return_Statement): Add support for handling the
17322         return object as a build-in-place result.
17323         (Expand_Non_Function_Return): Implement simple return statements nested
17324         within an extended return.
17325         (Enable_New_Return_Processing): Turn on the new processing of return
17326         statements.
17327         (Expand_Non_Function_Return): For a return within an extended return,
17328         don't raise Program_Error, because Sem_Ch6 now gives a warning.
17329         (Expand_N_Extended_Return_Statement): Implement AI-318
17330         (Expand_Simple_Function_Return): Ditto.
17331         (Expand_N_If_Statement): Handle new -gnatwt warning
17332         (Expand_N_Case_Statement): Handle new -gnatwt warning
17333         (Expand_N_Assignment): Handle assignment to the Priority attribute of
17334         a protected object.
17335         (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
17336         validity checking of assignments to elementary record components.
17337         (Expand_N_Return_Statement): return Class Wide types on the secondary
17338         stack independantly of their controlled status since with HIE runtimes,
17339         class wide types are not potentially controlled anymore.
17340
17341         * expander.adb (Expand): Add case for new N_Extended_Return_Statement
17342         node kind.
17343
17344         * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
17345         Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
17346         it expects a block, procedure, or task. The return statement will get
17347         turned into a block, and Expand_Cleanup_Actions will happen then.
17348
17349 2006-10-31  Robert Dewar  <dewar@adacore.com>
17350             Ed Schonberg  <schonberg@adacore.com>
17351             Bob Duff  <duff@adacore.com>
17352             Gary Dismukes  <dismukes@adacore.com>
17353
17354         * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
17355         capability.
17356         (Expand_Inlined_Call): Tagged types are by-reference types, and
17357         therefore should be replaced by a renaming declaration in the expanded
17358         body, as is done for limited types.
17359         (Expand_Call): If this is a call to a function with dispatching access
17360         result, propagate tag from context.
17361         (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
17362         CPP by default.
17363         (Make_Build_In_Place_Call_In_Assignment): New procedure to do
17364         build-in-place when the right-hand side of an assignment is a
17365         build-in-place function call.
17366         (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
17367         of the explicit dereference of the allocator to the result subtype of
17368         the build-in-place function. This is needed to satisfy type checking
17369         in cases where the caller's return object is created by an allocator for
17370         a class-wide access type and the type named in the allocator is a
17371         specific type.
17372         (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
17373         conversion of the reference to the declared object to the result subtype
17374         of the build-in-place function. This is needed to satisfy type checking
17375         in cases where the declared object has a class-wide type. Also, in the
17376         class-wide case, change the type of the object entity to the specific
17377         result subtype of the function, to avoid passing a class-wide object
17378         without explicit initialization to the back end.
17379         (Register_Interface_DT_Entry): Moved outside the body of
17380         Freeze_Subprogram because this routine is now public; it is called from
17381         Check_Dispatching_Overriding to handle late overriding of abstract
17382         interface primitives.
17383         (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
17384         adding an implicit access actual on a call to a build-in-place function.
17385         (Expand_Actuals): Test for an actual parameter that is a call to a
17386         build-in-place function and apply
17387         Make_Build_In_Place_Call_In_Anonymous_Context to the call.
17388         (Is_Build_In_Place_Function): New function to determine whether an
17389         entity is a function whose calls should be handled as build-in-place.
17390         (Is_Build_In_Place_Function_Call): New function to determine whether an
17391         expression is a function call that should handled as build-in-place.
17392         (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
17393         calls to build-in-place functions as the initialization of an allocator.
17394         (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
17395         handling calls to build-in-place functions in contexts that do not
17396         involve init of a separate object (for example, actuals of subprogram
17397         calls).
17398         (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
17399         handling calls to build-in-place functions as the initialization of an
17400         object declaration.
17401         (Detect_Infinite_Recursion): Add explicit parameter Process to
17402         instantiation of Traverse_Body to avoid unreferenced warning.
17403         (Check_Overriding_Inherited_Interfaces): Removed.
17404         (Register_Interface_DT_Entry): Code cleanup.
17405         (Register_Predefined_DT_Entry): Code cleanup.
17406         (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
17407         inlined statements if within a transient scope.
17408         (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
17409         formal parameters with occurrences of actuals in inlined body, establish
17410         visibility on the proper view of the actual's subtype for the body's
17411         context.
17412         (Freeze_Subprogram): Do nothing if we are compiling under full ABI
17413         compatibility mode and we have an imported CPP subprogram because
17414         for now we assume that imported CPP primitives correspond with
17415         objects whose constructor is in the CPP side (and therefore we
17416         don't need to generate code to register them in the dispatch table).
17417         (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
17418         aligned selected component.
17419         (Add_Call_By_Copy_Node): Add missing code to handle the case in which
17420         the actual of an in-mode parameter is a type conversion.
17421         (Expand_Actuals): If the call does not come from source and the actual
17422         is potentially misaligned, let gigi handle it rather than rejecting the
17423         (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
17424         Class Wide types as returning by reference independantly of their
17425         controlled status since with HIE runtimes class wide types are not
17426         potentially controlled anymore.
17427
17428 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17429
17430         * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
17431         references that are private components of the protected object.
17432         (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
17433         (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
17434         instantiation to deal with warnings.
17435         (Initialize_Protection): If expression for priority is non-static, use
17436         System_Priority as its expected type, in case the expression has not
17437         been analyzed yet.
17438
17439 2006-10-31  Robert Dewar  <dewar@adacore.com>
17440
17441         * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
17442         initialization of Homonym_Len.
17443         (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
17444         names from fully qualified name. Fixes problem of duplicate
17445         external names differing only in the presence of such a block name.
17446
17447 2006-10-31  Thomas Quinot  <quinot@adacore.com>
17448             Pablo Oliveira  <oliveira@adacore.com>
17449
17450         * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
17451         subprogram Ids, even if they are not yet assigned.
17452         (Build_Subprogram_Id): It is now this function that will take care of
17453         calling Assign_Subprogram_Ids if necessary.
17454         (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
17455         should be done only once they are assigned.
17456         (Build_From_Any_Function, case of tagged types): Add missing call to
17457         Allocate_Buffer.
17458         (Corresponding_Stub_Type): New subprogram. Returns the associated stub
17459         type for an RACW type.
17460         (Add_RACW_Features): When processing an RACW declaration for which the
17461         designated type is already frozen, enforce E.2.2(14) rules immediately.
17462         (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
17463         special reordering of controlling formals.
17464
17465         * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
17466         associated stub type for an RACW type.
17467
17468 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17469
17470         * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
17471         fixed-point operations in an integer context, i.e. as operands of a
17472         conversion to an integer type, indicate that result must be rounded.
17473
17474 2006-10-31  Robert Dewar  <dewar@adacore.com>
17475
17476         * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
17477         cases, pass the encoding method, since it is now required by the run
17478         time.
17479
17480         * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
17481         assumption that Str'First = 1.
17482         (Value_Wide_Character): Takes EM (encoding method) parameter and passes
17483         it on to the Value_Wide_Wide_Character call.
17484         (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
17485         properly handles a string of the form quote-encoded_wide_char-quote.
17486
17487         * s-wchcnv.adb: Minor reformatting
17488
17489 2006-10-31  Javier Miranda  <miranda@adacore.com>
17490
17491         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
17492         run-time membership test to ensure that the constructed object
17493         implements the target abstract interface.
17494
17495 2006-10-31  Robert Dewar  <dewar@adacore.com>
17496
17497         * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
17498         Machine_Attribute pragma internally to implement the user pragma.
17499         Add processing for pragma Interface so that it is now completely
17500         equivalent to pragma Import.
17501
17502         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
17503         so that it can be applied to all entities, including record components
17504         and enumeration literals.
17505         (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
17506         priority ranges are correct, verify compatibility against task
17507         dispatching and locking policies, and if everything is correct an entry
17508         is added to the table containing priority specific dispatching entries
17509         for this compilation unit.
17510         (Delay_Config_Pragma_Analyze): Delay processing
17511         Priority_Specific_Dispatching pragmas because when processing the
17512         pragma we need to access run-time data, such as the range of
17513         System.Any_Priority.
17514         (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
17515         Allow pragma Unreferenced as a context item
17516         Add pragma Preelaborable_Initialization
17517         (Analyze_Pragma, case Interface): Interface is extended so that it is
17518         now syntactically and semantically equivalent to Import.
17519         (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
17520         insertion characters.
17521         Add handling for Pragma_Wide_Character_Encoding
17522         (Process_Restrictions_Restriction_Warnings): Ensure that a warning
17523         never supercedes a real restriction, and that a real restriction
17524         always supercedes a warning.
17525         (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
17526         appropriate form.
17527
17528 2006-10-31  Bob Duff  <duff@adacore.com>
17529             Ed Schonberg  <schonberg@adacore.com>
17530             Robert Dewar  <dewar@adacore.com>
17531
17532         * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
17533         Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
17534         Is_Inherently_Limited_Type, because return-by-reference has no meaning
17535         in Ada 2005.
17536         (Find_Node_To_Be_Wrapped): Use new method of determining the result
17537         type of the function containing a return statement, because the
17538         Return_Type field was removed. We now use the Return_Applies_To field.
17539
17540         * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
17541         (Build_Task_Image_Decl): If procedure is not called from an
17542         initialization procedure, indicate that function that builds task name
17543         uses the sec. stack. Otherwise the enclosing initialization procedure
17544         will carry the indication.
17545         (Insert_Actions): Remove N_Return_Object_Declaration. We now use
17546         N_Object_Declaration instead.
17547         (Kill_Dead_Code): New interface to implement -gnatwt warning for
17548         conditional dead code killed, and change implementation accordingly.
17549         (Insert_Actions): Add N_Return_Object_Declaration case.
17550         Correct comment to mention N_Extension_Aggregate node.
17551         (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
17552         attempts to save information for global variables which cannot be
17553         safely tracked.
17554         (Get_Current_Value_Condition): Handle conditions the other way round
17555         (constant on left). Also handle right operand of AND and AND THEN
17556         (Set_Current_Value_Condition): Corresponding changes
17557         (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
17558         (Get_Current_Value_Condition): Handle simple boolean operands
17559         (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
17560         (Get_Current_Value_Condition): If the variable reference is within an
17561         if-statement, does not appear in the list of then_statments, and does
17562         not come from source, treat it as being at unknown location.
17563         (Get_Current_Value_Condition): Enhance to allow while statements to be
17564         processed as well as if statements.
17565         (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
17566         come from source.
17567         (OK_To_Do_Constant_Replacement): Allow constant replacement within body
17568         of loop. This is safe now that we fixed Kill_Current_Values.
17569         (OK_To_Do_Constant_Replacement): Check whether current scope is
17570         Standard, before examining outer scopes.
17571
17572 2006-10-31  Vincent Celier  <celier@adacore.com>
17573
17574         * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
17575         When True, apply VMS treatment to children of packages A, G, I and S.
17576         For F320-016
17577
17578         * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
17579
17580 2006-10-31  Robert Dewar  <dewar@adacore.com>
17581             Ed Schonberg  <schonberg@adacore.com>
17582
17583         * freeze.adb: Add handling of Last_Assignment field
17584         (Warn_Overlay): Supply missing continuation marks in error msgs
17585         (Freeze_Entity): Add check for Preelaborable_Initialization
17586
17587         * g-comlin.adb: Add Warnings (Off) to prevent new warning
17588
17589         * g-expect.adb: Add Warnings (Off) to prevent new warning
17590
17591         * lib-xref.adb: Add handling of Last_Assignment field
17592         (Generate_Reference): Centralize handling of pragma Obsolescent here
17593         (Generate_Reference): Accept an implicit reference generated for a
17594         default in an instance.
17595         (Generate_Reference): Accept a reference for a node that is not in the
17596         main unit, if it is the generic body corresponding to an subprogram
17597         instantiation.
17598
17599         * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
17600
17601         * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
17602         -gnatwq/Q.
17603         (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
17604         exception handler.
17605         (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
17606         use clauses, to avoid messages on packages used to qualify, and also
17607         to avoid messages from obsolescent units.
17608         (Warn_On_Useless_Assignments): Don't generate messages for imported
17609         and exported variables.
17610         (Warn_On_Useless_Assignments): New procedure
17611         (Output_Obsolescent_Entity_Warnings): New procedure
17612         (Check_Code_Statement): New procedure
17613
17614         * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
17615         Change name Is_Ada_2005 to Is_Ada_2005_Only
17616         (Last_Assignment): New field for useless assignment warning
17617
17618 2006-10-31  Olivier Hainque  <hainque@adacore.com>
17619
17620         * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
17621         closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
17622
17623 2006-10-31  Bob Duff  <duff@adacore.com>
17624             Robert Dewar  <dewar@adacore.com>
17625             Ed Schonberg  <schonberg@adacore.com>
17626
17627         * g-awk.adb (Default_Session, Current_Session): Compile this file in
17628         Ada 95 mode, because it violates the new rules for AI-318.
17629
17630         * g-awk.ads: Use overloaded subprograms in every case where we used to
17631         have a default of Current_Session. This makes the code closer to be
17632         correct for both Ada 95 and 2005.
17633
17634         * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
17635         code, relying on the fact that the compiler generates a warning
17636         instead of an error in -gnatg mode.
17637
17638         * lib-xref.ads (Xref_Entity_Letters): Add entry for new
17639         E_Return_Statement entity kind.
17640         Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
17641
17642         * par.adb (P_Interface_Type_Definition): Addition of one formal to
17643         report an error if the reserved word abstract has been previously found.
17644         (SS_End_Type): Add E_Return for new extended_return_statement syntax.
17645
17646         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
17647         parenthesized range attribute usage
17648         (P_Expression_No_Right_Paren): Add missing comment about error recovery.
17649
17650         * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
17651         in the syntax for extended_return_statement. This is not in the latest
17652         RM, but the ARG is expected to issue an AI allowing this.
17653         (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
17654         N_Return_Object_Declaration. We now use N_Object_Declaration instead.
17655         (P_Return_Object_Declaration, P_Return_Subtype_Indication,
17656         P_Return_Statement): Parse the new syntax for extended_return_statement.
17657
17658         * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
17659         Output_End_Missing): Add error-recovery code for the new
17660         extended_return_statement syntax; that is, the new E_Return entry on
17661         the scope stack.
17662
17663         * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
17664         limited to nonlimited, because otherwise we violate the new Ada 2005
17665         rules about returning limited types in function Create_AST_Handler in
17666         s-asthan.adb.
17667
17668         * sem.adb (Analyze): Add cases for new node kinds
17669         N_Extended_Return_Statement and N_Return_Object_Declaration.
17670
17671         * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
17672         type is in the same category as type of context before applying check,
17673         to prevent anomalies in instantiations.
17674         (Resolve_Aggregate): Remove test for limited components in aggregates.
17675         It's unnecessary in Ada 95, because if it has limited components, then
17676         it must be limited. It's wrong in Ada 2005, because limited aggregates
17677         are now allowed.
17678         (Resolve_Record_Aggregate): Move check for limited types later, because
17679         OK_For_Limited_Init requires its argument to have been resolved.
17680         (Get_Value): When copying the component default expression for a
17681         defaulted association in an aggregate, use the sloc of the aggregate
17682         and not that of the original expression, to prevent spurious
17683         elaboration errors, when the expression includes function calls.
17684         (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
17685         were missing. We also didn't handle qualified expressions. Now also
17686         allow function calls. Use new common routine OK_For_Limited_Init.
17687         (Resolve_Extension_Aggregate): Minor fix to bad error message (started
17688         with space can upper case letter).
17689
17690         * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
17691         Has_Static_Discriminants flag
17692         (Record_Type_Declaration): Diagnose an attempt to declare an interface
17693         type with discriminants.
17694         (Process_Range_Expr_In_Decl): Do validity checks on range
17695         (Build_Discriminant_Constraints): Use updated form of
17696         Denotes_Discriminant.
17697         (Process_Subtype): If the subtype is a private subtype whose full view
17698         is a concurrent subtype, introduce an itype reference to prevent scope
17699         anomalies in gigi.
17700         (Build_Derived_Record_Type, Collect_Interface_Primitives,
17701         Record_Type_Declaration):  The functionality of the subprograms
17702         Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
17703         is now performed by a single routine.
17704         (Build_Derived_Record_Type): If the type definition includes an explicit
17705         indication of limitedness, then the type must be marked as limited here
17706         to ensure that any access discriminants will not be treated as having
17707         a local anonymous access type.
17708         (Check_Abstract_Overriding): Issue a detailed error message when an
17709         abstract subprogram was not overridden due to incorrect mode of its
17710         first parameter.
17711         (Analyze_Private_Extension_Declaration): Add support for the analysis of
17712         synchronized private extension declarations. Verify that the ancestor is
17713         a limited or synchronized interface or in the generic case, the ancestor
17714         is a tagged limited type or synchronized interface and all progenitors
17715         are either limited or synchronized interfaces.
17716         Derived_Type_Declaration): Check for presence of private extension when
17717         dealing with synchronized formal derived types.
17718         Process_Full_View): Enchance the check done on the usage of "limited" by
17719         testing whether the private view is synchronized.
17720         Verify that a synchronized private view is completed by a protected or
17721         task type.
17722         (OK_For_Limited_Init_In_05): New function.
17723         (Analyze_Object_Declaration): Move check for limited types later,
17724         because OK_For_Limited_Init requires its argument to have been resolved.
17725         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
17726         in order to alleviate the upward compatibility introduced by AI-318.
17727         (Constrain_Corresponding_Record): If the constraint is for a component
17728         subtype, mark the itype as frozen, to avoid out-of-scope references to
17729         discriminants in the back-end.
17730         (Collect_Implemented_Interfaces): Protect the recursive algorithm of
17731         this subprogram against wrong sources.
17732         (Get_Discr_Value, Is_Discriminant): Handle properly references to a
17733         discriminant of limited type completed with a protected type, when the
17734         discriminant is used to constrain a private component of the type, and
17735         expansion is disabled.
17736         (Find_Type_Of_Object): Do not treat a return subtype that is an
17737         anonymous subtype as a local_anonymous_type, because its accessibility
17738         level is the return type of the enclosing function.
17739         (Check_Initialization): In -gnatg mode, turn the error "cannot
17740         initialize entities of limited type" into a warning.
17741         (OK_For_Limited_Init): Return true for generated nodes, since it
17742         sometimes violates the legality rules.
17743         (Make_Incomplete_Declaration): If the type for which an incomplete
17744         declaration is created happens to be the currently visible entity,
17745         preserve the homonym chain when removing it from visibility.
17746         (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
17747         inherited subprograms.
17748         (Access_Definition): If this is an access to function that is the return
17749         type of an access_to_function definition, context is a type declaration
17750         and the scope of the anonymous type is the current one.
17751         (Analyze_Subtype_Declaration): Add the defining identifier of a regular
17752         incomplete subtype to the set of private dependents of the original
17753         incomplete type.
17754         (Constrain_Discriminated_Type): Emit an error message whenever an
17755         incomplete subtype is being constrained.
17756         (Process_Incomplete_Dependents): Transform an incomplete subtype into a
17757         corresponding subtype of the full view of the original incomplete type.
17758         (Check_Incomplete): Properly detect invalid usage of incomplete types
17759         and subtypes.
17760
17761 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
17762
17763         * g-catiio.ads, g-catiio.adb (Value): New function.
17764         Given an input String, try and parse a valid Time value.
17765
17766 2006-10-31  Vincent Celier  <celier@adacore.com>
17767
17768         * g-debpoo.adb (Is_Valid): Correctly compute Offset using
17769         Integer_Address arithmetic, as in Set_Valid.
17770
17771 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
17772             Robert Dewar  <dewar@adacore.com>
17773
17774         * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
17775         handling executable extension manually and duplicating code.
17776
17777         * make.adb: Implement new -S switch
17778         (Gnatmake): Use new function Osint.Executable_Name instead
17779         of handling executable extension manually.
17780
17781         * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
17782         is specified, the executable name ends with this suffix.
17783         Take advantage of Osint.Executable_Name instead of duplicating code.
17784
17785         * switch-m.adb: Recognize new gnatmake -S switch
17786
17787         * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
17788         variable.
17789         (Get_Target_Parameters): Set Executable_Extension_On_Target if
17790         available.
17791
17792         * makeusg.adb: Add line for gnatmake -S switch
17793
17794 2006-10-31  Vincent Celier  <celier@adacore.com>
17795
17796         * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
17797         call it with -static-libgcc, as there are some platforms, such as
17798         Darwin, where one of these two switches is compulsory to link.
17799
17800 2006-10-31  Vincent Celier  <celier@adacore.com>
17801
17802         * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
17803         instead of ADA_PROJECT_PATH, for the project path.
17804         (Gnatls): When displaying the project path directories, use host dir
17805         specs.
17806
17807         * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
17808         names in the project path, as absolute paths may correspond to
17809         multi-valued VMS logical names.
17810
17811 2006-10-31  Vincent Celier  <celier@adacore.com>
17812
17813         * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
17814         absolute path name.
17815         (Locate_Regular_File): Ditto
17816         (Change_Dir): Remove, no longer used
17817         (Normalize_Pathname): Do not use Change_Dir to get the drive letter
17818         on Windows. Get it calling Get_Current_Dir.
17819         (OpenVMS): Remove imported boolean, no longer needed.
17820         (Normalize_Pathname)[VMS]: Do not resolve directory names.
17821         (Pid_To_Integer): New function to convert a Process_Id to  Integer
17822
17823 2006-10-31  Thomas Quinot  <quinot@adacore.com>
17824
17825         * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
17826         sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
17827         to No_Socket.
17828         (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
17829         W_Sig_Socket.
17830
17831 2006-10-31  Robert Dewar  <dewar@adacore.com>
17832
17833         * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
17834         initial letter o as a zero.
17835
17836 2006-10-31  Robert Dewar  <dewar@adacore.com>
17837
17838         * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
17839
17840 2006-10-31  Robert Dewar  <dewar@adacore.com>
17841
17842         * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
17843         variant records
17844         (Layout_Variant_Record): Retrieve the discriminants from the entity
17845         rather than from the type definition, because in the case of a full
17846         type for a private type we need to take the discriminants from the
17847         partial view.
17848         (Layout_Component_List): When applying the Max operator to variants with
17849         a nonstatic size, check whether either operand is static and scale that
17850         operand from bits to storage units before applying Max.
17851         (Layout_Type): In VMS, if a C-convention access type has no explicit
17852         size clause (and does not inherit one in the case of a derived type),
17853         then the size is reset to 32 from 64.
17854
17855 2006-10-31  Vincent Celier  <celier@adacore.com>
17856
17857         * lib-load.adb (Load_Unit): Skip the test for a unit not found when
17858         its file has already been loaded, according to the unit being loaded,
17859         not to the current value of Multiple_Unit_Index.
17860
17861 2006-10-31  Thomas Quinot  <quinot@adacore.com>
17862             Eric Botcazou  <ebotcazou@adacore.com>
17863             Arnaud Charlet  <charlet@adacore.com>
17864
17865         * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
17866         (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
17867         possible.
17868         (a-except.o): Pass it to the compiler.
17869         (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
17870         (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
17871         a-calend-mingw.adb version.
17872
17873         * Makefile.rtl: Added s-dsaser.
17874         Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
17875         (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
17876         Ada.Dispatching.Round_Robin.
17877         Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
17878
17879         * Make-lang.in: Remove all references to gt-ada-decl.h.
17880         Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
17881         sources.
17882         Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
17883         Update dependencies.
17884
17885         * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
17886
17887 2006-10-31  Vincent Celier  <celier@adacore.com>
17888
17889         * mlib-utl.adb (Initialized): Remove, no longer used
17890         (Initialize): Remove, no longer used
17891         (Ar): If Ar_Exec is null, get the location of the archive builder and,
17892         if there is one, the archive indexer. Fail if the archive builder cannot
17893         be found.
17894         (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
17895         be found.
17896
17897 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17898
17899         * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
17900         Process_Body_Clauses): If the context of a body includes a use clause
17901         for P.Q then a with_clause for P in the same body is not redundant,
17902         even if the spec also has a with_clause on P.
17903         Add missing continuation mark to error msg
17904         (Build_Limited_Views): A limited view of a type is tagged if its
17905         declaration includes a record extension.
17906         (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
17907         node, even if the subunit has errors. This avoids malfunction by
17908         Lib.Check_Same_Extended_Unit in the presence of syntax errors.
17909         (Analyze_Compilation_Unit): Add circuit to make sure we get proper
17910         generation of obsolescent messages for with statements (cannot do
17911         this too early, or we cannot implement avoiding the messages in the
17912         case of obsolescent units withing obsolescent units).
17913         (Install_Siblings): If the with_clause is on a remote descendant of
17914         an ancestor of the current compilation unit, find whether there is
17915         a sibling child unit that is immediately visible.
17916         (Remove_Private_With_Clauses): New procedure, invoked after completing
17917         the analysis of the private part of a nested package, to remove from
17918         visibility the private with_clauses of the enclosing package
17919         declaration.
17920         (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
17921         now centralized in Generate_Reference.
17922         (Install_Limited_Context_Clauses): Remove superfluous error
17923         message associated with unlimited view visible through use
17924         and renamings. In addition, at the point in which the error
17925         is reported, we add the backslash to the text of the error
17926         to ensure that it is reported as a single error message.
17927         Use new // insertion for some continuation messages
17928         (Expand_Limited_With_Clause): Use copy of name rather than name itself,
17929         to create implicit with_clause for parent unit mentioned in original
17930         limited_with_clause.
17931         (Install_Limited_With_Unit): Set entity of parent identifiers if the
17932         unit is a child unit. For ASIS queries.
17933         (Analyze_Subunit): If the subunit appears within a child unit, make all
17934         ancestor child units directly visible again.
17935
17936 2006-10-31  Robert Dewar  <dewar@adacore.com>
17937
17938         * par-ch10.adb (P_Context_Clause): Minor error message fix
17939
17940 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
17941             Javier Miranda  <miranda@adacore.com>
17942
17943         * par-ch12.adb: Grammar update and cleanup.
17944         (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
17945         support for synchronized derived type definitions.
17946         Add the new actual Abstract_Present to every call to
17947         P_Interface_Type_Definition.
17948         (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
17949         a formal object declaration with an access definition or a subtype mark
17950         with a null exclusion.
17951         (P_Generic_Association): Handle association with box, and others_choice
17952         with box, to support Ada 2005 partially parametrized formal packages.
17953
17954 2006-10-31  Robert Dewar  <dewar@adacore.com>
17955             Javier Miranda  <miranda@adacore.com>
17956
17957         * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
17958         (P_Type_Declaration): Remove barrier against the reserved word "limited"
17959         after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
17960         (P_Type_Declaration): Minor code cleanup. Add support for synchronized
17961         private extensions.
17962         (P_Type_Declaration): Add the new actual Abstract_Present to every call
17963         to P_Interface_Type_Definition.
17964         (P_Interface_Type_Definition): Addition of one formal to report an error
17965         if the reserved word abstract has been previously found.
17966         (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
17967         object renaming declaration with an access definition or subtype mark
17968         with a possible null exclusion.
17969
17970         * par-ch9.adb: Minor error msg fix
17971
17972         * par-load.adb: Add missing continuation mark to error msg
17973
17974         * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
17975
17976 2006-10-31  Vincent Celier  <celier@adacore.com>
17977
17978         * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
17979         unknown attribute in unknown package or in package that does not need
17980         to be checked.
17981         (Parse_Package_Declaration): Do not issue warning for unknown package in
17982         quiet output.
17983
17984 2006-10-31  Vincent Celier  <celier@adacore.com>
17985
17986         * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
17987         (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
17988         Packages_To_Check.
17989
17990 2006-10-31  Vincent Celier  <celier@adacore.com>
17991
17992         * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
17993         on VMS, change "__" to '.' before checking the name.
17994         (Record_Ada_Source): Always add the source file name in the list of
17995         of sources, even if it is not the first time, as it is for another
17996         source index.
17997         (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
17998         dot, instead of replacing only the first '_'.
17999
18000         * prj-part.adb (Parse): Convert project file path to canonical form
18001
18002         * prj-proc.adb (Recursive_Process): Make sure that, when a project is
18003         extended, the project id of the project extending it is recorded in its
18004         data, even when it has already been processed as an imported project.
18005
18006 2006-10-31  Robert Dewar  <dewar@adacore.com>
18007
18008         * repinfo.adb (List_Entities): Don't list entities from renaming
18009         declarations.
18010
18011 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
18012             Robert Dewar  <dewar@adacore.com>
18013
18014         * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
18015         only a restriction warning is active for the given restriction. This is
18016         desirable because we do not want to modify code in the case where only
18017         a warning is set.
18018         (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
18019         causes overriding of real restrictions.
18020         Take advantage of new No_Restrictions constant.
18021
18022         * raise.h: (__gnat_set_globals): Change profile.
18023
18024 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
18025
18026         * rtsfind.adb: Remove s-polint from comment as it exists no more.
18027
18028         * rtsfind.ads: 
18029         Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
18030         Move all the entities in obsolete package System.PolyORB_Interface to
18031         System.Partition_Interface.
18032         (RE_Storage_Size): New function in System.Tasking.
18033         (RE_Get_Ceiling): New entity.
18034         (RE_Set_Ceiling): New entity.
18035         (RO_PE_Get_Ceiling): New entity.
18036         (RO_RE_Set_Ceiling): New entity.
18037         (Inherit_CPP_DT): New entity
18038
18039 2006-10-31  Robert Dewar  <dewar@adacore.com>
18040
18041         * scng.adb (Scan, case of numeric literal): Better msg for identifier
18042         starting with a digit.
18043
18044 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18045             Thomas Quinot  <quinot@adacore.com>
18046             Javier Miranda  <miranda@adacore.com>
18047             Gary Dismukes  <dismukes@adacore.com>
18048
18049         * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
18050         properly an attempt to apply Unchecked_Access to a protected operation.
18051         (OK_Self_Reference): New subprogram to check the legality of an access
18052         attribute whose prefix is the type of an enclosing aggregate.
18053         Generalizes previous mechanism to handle attribute references nested
18054         arbitrarily deep within the aggregate.
18055         (Analyze_Access_Attribute): An access attribute whose prefix is a type
18056         can appear in an aggregate if this is a default-initialized aggregate
18057         for a self-referential type.
18058         (Resolve_Attribute, case Access): Ditto.
18059         Add support for new implementation defined attribute Stub_Type.
18060         (Eval_Attribute, case Attribute_Stub_Type): New case.
18061         (Analyze_Attribute, case Attribute_Stub_Type): New case.
18062         (Stream_Attribute_Available): Implement using new subprogram from
18063         sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
18064         Has_Specified_Stream_Attribute flag.
18065         Disallow Storage_Size and Storage_Pool for access to subprogram
18066         (Resolve_Attribute, case 'Access et al): Take into account anonymous
18067         access types of return subtypes in extended return statements. Remove
18068         accessibility checks on anonymous access types when Unchecked_Access is
18069         used.
18070         (Analyze_Attribute): Add support for the use of 'Class to convert
18071         a class-wide interface to a tagged type.
18072         Add support for the attribute Priority.
18073         (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
18074         whether the designated type is discriminated with a constrained partial
18075         view and require static matching in that case.
18076         Add local variable Des_Btyp. The Designated_Type
18077         of an access to incomplete subtype is either its non-limited view if
18078         coming from a limited with or its etype if regular incomplete subtype.
18079
18080         * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
18081         Fix predicate to identify and allow cases of (expander-generated)
18082         references to tag of designated object of a RACW.
18083         (Validate_Static_Object_Name): In Ada 2005, a formal object is
18084         non-static, and therefore cannot appear as a primary in a preelaborable
18085         package.
18086         (Has_Stream_Attribute_Definition): New subprogram, abstracted from
18087         Has_Read_Write_Attributes.
18088         (Has_Read_Write_Attributes): Reimplement in termes of
18089         Has_Stream_Attribute_Definition.
18090         (Missing_Read_Write_Attributes): When checking component types in a
18091         record, unconditionally call Missing_Read_Write_Attributes recursively
18092         (remove guard checking for Is_Record_Type / Is_Access_Type).
18093
18094 2006-10-31  Robert Dewar  <dewar@adacore.com>
18095
18096         * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
18097         useless assignments here and conditionalize it on absence of exception
18098         handlers.
18099         (Analyze_Exception_Handlers): Small code reorganization of error
18100         detection code, for new handling of formal packages.
18101
18102 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18103             Hristian Kirtchev  <kirtchev@adacore.com>
18104
18105         * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
18106         that has been constant-folded, preserve information of original tree,
18107         for ASIS uses.
18108         (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
18109         generated private extension declaration if the formal derived type is
18110         synchronized. Carry synchronized present over to the generated private
18111         extension.
18112         (Validate_Derived_Type_Instance): Ensure that the actual of a
18113         synchronized formal derived type is a synchronized tagged type.
18114         (Instantiate_Formal_Package): When creating the instantiation used to
18115         validate the actual package of a formal declared without a box, check
18116         whether the formal itself depends on a prior actual.
18117         (Instantiate_Formal_Subprogram): Create new entities for the defining
18118         identifiers of the formals in the renaming declaration, for ASIS use.
18119         (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
18120         a renaming declaration or a subtype declaration for an actual in an
18121         instance, capture location information of declaration in generic, for
18122         ASIS use.
18123         (Instantiate_Formal_Package): Add comments on needed additional tests.
18124         AI-317 (partial parametrization) is fully implemented.
18125         (Validate_Private_Type_Instance): Add check for actual which
18126         must have preelaborable initialization
18127         Use new // insertion for some continuation messages
18128         (Analyze_Formal_Object_Declaration): Change usage of Expression to
18129         Default_Expression. Add type retrieval when the declaration has an
18130         access definition. Update premature usage of incomplete type check.
18131         (Check_Access_Definition): New subsidiary routine. Check whether the
18132         current compilation version is Ada 05 and the supplied node has an
18133         access definition.
18134         (Instantiate object): Alphabetize local variables. Handle the creation
18135         of new renaming declarations with respect to the kind of definition
18136         used - either an access definition or a subtype mark. Guard against
18137         unnecessary error message in the context of anonymous access types after
18138         they have been resolved. Add check for required null exclusion in a
18139         formal object declaration.
18140         (Switch_View): A private subtype of a non-private type needs to be
18141         switched (the base type can have been switched without its private
18142         dependents because of the last branch of Check_Private_View.
18143         (Check_Private_View): Do not recompute Base_Type (T), instead use cached
18144         value from BT.
18145         (Instantiate_Type): Emit an error message whenever a class-wide type of
18146         a tagged incomplete type is used as a generic actual.
18147         (Find_Actual_Type): Extend routine to handle a component type in a child
18148         unit that is imported from a formal package in a parent.
18149         (Validate_Derived_Type_Instance): Check that analyzed formal and actual
18150         agree on constrainedness, rather than checking against ultimate ancestor
18151         (Instantiate_Subprogram_Body): Create a cross-reference link to the
18152         generic body, for navigation purposes.
18153
18154 2006-10-31  Robert Dewar  <dewar@adacore.com>
18155             Thomas Quinot  <quinot@adacore.com>
18156
18157         * sem_ch13.adb: Storage pool cannot be given for access to subprogram
18158         type.
18159         (New_Stream_Subprogram): When processing an attribute definition clause
18160         for a stream-oriented subprogram, record an entity node occurring at
18161         the point of clause to use for checking the visibility of the clause,
18162         as defined by 8.3(23) as amended by AI-195.
18163         (New_Stream_Subprogram): New procedure, factoring behaviour from both
18164          New_Stream_Function and New_Stream_Procedure.
18165         (New_Stream_Function, New_Stream_Procedure): Removed.
18166         (Analyze_Attribute_Definition_Clause, case Address): Check new
18167         Alignment_Check check
18168
18169 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18170             Javier Miranda  <miranda@adacore.com>
18171             Robert Dewar  <dewar@adacore.com>
18172
18173         * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
18174         generate the same errors compiling under -gnatc.
18175         (Try_Object_Operation): If no candidate interpretation succeeds, but
18176         there is at least one primitive operation with the right name, report
18177         error in call rather than on a malformed selected component.
18178         (Analyze_Selected_Component): If the prefix is an incomplete type from
18179         a limited view, and the full view is available, use the full view to
18180         determine whether this is a prefixed call to a primitive operation.
18181         (Operator_Check): Verify that a candidate interpretation is a binary
18182         operation before checking the type of its second formal.
18183         (Analyze_Call): Add additional warnings for function call contexts not
18184         yet supported.
18185         (Analyze_Allocator): Move the check for "initialization not allowed for
18186         limited types" after analyzing the expression. This is necessary,
18187         because OK_For_Limited_Init looks at the structure of the expression.
18188         Before analysis, we don't necessarily know what sort of expression it
18189         is. For example, we don't know whether F(X) is a function call or an
18190         indexed component; the former is legal in Ada 2005; the latter is not.
18191         (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
18192         were missing. We also didn't handle qualified expressions. Now also
18193         allow function calls. Use new common routine OK_For_Limited_Init.
18194         (Analyze_Type_Conversion): Do not perform some legality checks in an
18195         instance, because the error message will be redundant or spurious.
18196         (Analyze_Overloaded_Selected_Component): Do not do style check when
18197         setting an entity, since we do not know it is the right entity yet.
18198         (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
18199         (Analyze_Overloaded_Selected_Component): Same change
18200         (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
18201         since regular incomplete subtypes are transformed into corresponding
18202         subtypes of their full views.
18203         (Complete_Object_Operation): Treat name of transformed subprogram call
18204         as coming from source, for browsing purposes.
18205         (Try_Primitive_Operation): If formal is an access parameter, compare
18206         with base type of object to determine whether it is a primitive
18207         operation.
18208         (Operator_Check): If no interpretation of the operator matches, check
18209         whether a use clause on any candidate might make the operation legal.
18210         (Try_Class_Wide_Operation): Check whether the first parameter is an
18211         access type whose designated type is class-wide.
18212
18213 2006-10-31  Robert Dewar  <dewar@adacore.com>
18214             Ed Schonberg  <schonberg@adacore.com>
18215             Gary Dismukes  <dismukes@adacore.com>
18216
18217         * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
18218         warn on infinite loops.
18219         Add \\ to some continuation messages
18220         (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
18221         (Process_Bounds): If the bounds are integer literals that result from
18222         constant-folding, and they carry a user-defined type, preserve that type
18223         rather than treating this as an integer range.
18224         (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
18225         (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
18226         (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
18227         left hand side of assignment.
18228         (Analyze_Assignment): Add suport to manage assigments to the attribute
18229         priority of a protected object.
18230         (Check_Possible_Current_Value_Condition): Allow fully qualified names
18231         not just identifiers.
18232         (Check_Possible_Current_Value_Condition): Acquire left operand of AND
18233         or AND THEN for possible tracking.
18234         (Analyze_Iteration_Scheme): Check for setting Current_Value for the
18235         case of while loops so we can track values in the loop body.
18236
18237 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18238             Hristian Kirtchev  <kirtchev@adacore.com>
18239             Bob Duff  <duff@adacore.com>
18240
18241         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
18242         procedure cannot be a protected operation (it is a basic_declaration,
18243         not a subprogram_declaration).
18244         (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
18245         Subp. Add logic for entry processing.
18246         (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
18247         Determine whether an entry or subprogram of a protected or task type
18248         override an inherited primitive of an implemented interface.
18249         (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
18250         Update the actual used in calls to Check_Overriding_Indicator.
18251         (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
18252         generate the proper reference to the parent unit, for cross-reference.
18253         (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
18254         Is_Formal.
18255         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
18256         (Add_Extra_Formal): Revise procedure to allow passing in associated
18257         entity, scope, and name suffix, and handle setting of the new
18258         Extra_Formals field.
18259         (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
18260         pass new parameters. Add support for adding the new extra access formal
18261         for functions whose calls are treated as build-in-place.
18262         (Analyze_A_Return_Statement): Correct casing in error message.
18263         Move Pop_Scope to after Analyze_Function_Return, because an extended
18264         return statement really is a full-fledged scope. Otherwise, visibility
18265         doesn't work right. Correct use of "\" for continuation messages.
18266         (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
18267         evilly trying to call Analyze_Object_Declaration directly. Otherwise,
18268         the node doesn't get properly marked as analyzed.
18269         (Analyze_Subprogram_Body): If subprogram is a function that returns
18270         an anonymous access type that denotes a task, build a Master Entity
18271         for it.
18272         (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
18273         proper usage of null exclusion in a result definition.
18274         (Process_Formals): Code cleanup and new error message.
18275         (Process_Formals): Detect incorrect application of null exclusion to
18276         non-access types.
18277         (Conforming_Types): Handle conformance between [sub]types and itypes
18278          generated for entities that have null exclusions applied to them.
18279         (Maybe_Primitive_Operation): Add an additional type retrieval when the
18280          base type is an access subtype. This case arrises with null exclusions.
18281         (New_Overloaded_Entity): Do not remove the overriden entity from the
18282         homonym chain if it corresponds with an abstract interface primitive.
18283         (Process_Formals): Replace membership test agains Incomplete_Kind with a
18284         call to the synthesized predicate Is_Incomplete_Type.
18285         (Analyze_Subprogram_Body): Check wrong placement of abstract interface
18286         primitives.
18287         (Analyze_Subprogram_Declaration): Check that abstract interface
18288         primitives are abstract or null.
18289         (Analyze_Subprogram_Specification): Remove previous check for abstract
18290         interfaces because it was not complete.
18291         (Has_Interface_Formals): Removed.
18292
18293 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18294             Javier Miranda  <miranda@adacore.com>
18295
18296         * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
18297         of Analyze_Package_Body, to create Itype references for anonymous
18298         access types created in the package declaration, whose designated types
18299         may have only a limited view.
18300         (Analyze_Package_Specification): For the private part of a nested
18301         package, install private_with_clauses of enclosing compilation unit if
18302         we are in its visible part.
18303         (Declare_Inherited_Private_Subprograms): Complete barrier
18304         to ensure that the primitive operation has an alias to some parent
18305         primitive. This is now required because, after the changes done for the
18306         implementation of abstract interfaces, the contents of the list of
18307         primitives has entities whose alias attribute references entities of
18308         such list of primitives.
18309         (Analyze_Package_Specification): Simplify code that handles parent units
18310         of instances and formal packages.
18311         (Uninstall_Declarations): Check the convention consistency among
18312         primitive overriding operations of a tagged record type.
18313
18314 2006-10-31  Robert Dewar  <dewar@adacore.com>
18315             Hristian Kirtchev  <kirtchev@adacore.com>
18316             Javier Miranda  <miranda@adacore.com>
18317             Ed Schonberg  <schonberg@adacore.com>
18318
18319         * sem_ch8.adb: Minor error msg rewording
18320         (Undefined): When checking for misspellings, invert arguments (to get
18321         expected and found set right)
18322         (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
18323         (Analyze_Generic_Renaming): Same fix
18324         (Use_One_Package): Do not take into account the internal entities of
18325         abstract interfaces during the analysis of entities that are marked
18326         as potentially use-visible.
18327         (Find_Type): Handle the case of an attribute reference for
18328         implementation defined attribute Stub_Type (simply let the analysis of
18329         the attribute reference rewrite it).
18330         (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
18331         type that appears in a Use_Type clause.
18332         (Analyze_Object_Renaming): Add support for renaming of the Priority
18333         attribute.
18334         (Find_Type): In Ada 2005, a task type can be used within its own body,
18335         when it appears in an access definition.
18336         (Analyze_Object_Renaming): Remove warning on null_exclusion.
18337         (Analyze_Object_Renaming): Introduce checks for required null exclusion
18338          in a formal object declaration or in a subtype declaration.
18339         (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
18340         (Check_Null_Exclusion): New local routine to
18341         Analyze_Subprogram_Renaming. Check whether the formals and return
18342         profile of a renamed subprogram have required null exclusions when
18343         their counterparts of the renaming already impose them.
18344         (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
18345         Determine whether an entity is inside a generic scope.
18346         (In_Open_Scope): First pass of documentation update.
18347         (Find_Expanded_Name): Add support for shadow entities associated with
18348         limited withed packages. This is required to handle nested packages.
18349         (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
18350         that makes a renaming of a limited withed package illegal.
18351
18352 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
18353             Ed Schonberg  <schonberg@adacore.com>
18354
18355         * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
18356         Check_Overriding_Indicator.
18357         (Analyze_Task_Definition): Ditto.
18358         (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
18359         (Check_Overriding_Indicator): To find overridden interface operation,
18360         examine only homonyms that have an explicit subprogram declaration, not
18361         inherited operations created by an unrelated type derivation.
18362         (Check_Overriding_Indicator): When checking for the presence of "null"
18363         in a procedure, ensure that the queried node is a procedure
18364         specification.
18365         (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
18366         type when the formal is an access to variable.
18367         (Analyze_Protected_Type): Add check for Preelaborable_Initialization
18368         (Analyze_Task_Type): Same addition
18369         (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
18370         provide navigation capabilities for entries.
18371
18372 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
18373             Ed Schonberg  <schonberg@adacore.com>
18374             Javier Miranda  <miranda@adacore.com>
18375             Gary Dismukes  <dismukes@adacore.com>
18376
18377         * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
18378         inherited from an interface ancestor by another interface in the
18379         context of an instance as 'late'.
18380         (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
18381         of a call to a function that dispatches on access result.
18382         (Check_Dispatching_Operation): In case of late overriding of a primitive
18383         that covers abstract interface subprograms we register it in all the
18384         secondary dispatch tables associated with abstract interfaces.
18385         (Check_Dispatching_Call): Add check that a dispatching call is not made
18386         to a function with a controlling result of a limited type. This is a
18387         current implementation restriction.
18388         (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
18389         (Check_Dispatching_Operation): Do no emit a warning if the controlling
18390         argument is an interface type that is a generic formal.
18391         (Is_Interface_Subprogram): Removed.
18392         (Check_Dispatching_Operation): If the subprogram is not a dispatching
18393         operation, check the formals to handle the case in which it is
18394         associated with an abstract interface type.
18395
18396 2006-10-31  Robert Dewar  <dewar@adacore.com>
18397             Ed Schonberg  <schonberg@adacore.com>
18398
18399         * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
18400         Add new calls to this procedure during traversal
18401         (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
18402         another unit if expansion is disabled.
18403
18404 2006-10-31  Robert Dewar  <dewar@adacore.com>
18405
18406         * sem_eval.adb (Compile_Time_Compare): Make use of information from
18407         Current_Value in the conditional case, to evaluate additional
18408         comparisons at compile time.
18409
18410 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18411             Hristian Kirtchev  <kirtchev@adacore.com>
18412             Javier Miranda  <miranda@adacore.com>
18413
18414         * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
18415         subprogram type to provide better diagnostics in case of ambiguity.
18416         (Covers): Handle coverage of formal and actual anonymous access types in
18417         the context of generic instantiation.
18418         (Covers/Interface_Present_In_Ancestors): Use the base type to manage
18419         abstract interface types; this is required to handle concurrent types
18420         with discriminants and abstract interface types.
18421         (Covers): Include type coverage of both regular incomplete subtypes and
18422         incomplete subtypes of incomplete type visibles through a limited with
18423         clause.
18424
18425 2006-10-31  Robert Dewar  <dewar@adacore.com>
18426             Hristian Kirtchev  <kirtchev@adacore.com>
18427             Ed Schonberg  <schonberg@adacore.com>
18428
18429         * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
18430         messages for entities in packages which are not used.
18431         (Collect_Synchronized_Interfaces): New procedure.
18432         (Overrides_Synchronized_Primitive): New function.
18433         (Denotes_Discriminant): Extend predicate to apply to task types.
18434         Add missing continuation marks in error msgs
18435         (Unqualify): New function for removing zero or more levels of
18436         qualification from an expression. There are numerous places where this
18437         ought to be used, but we currently only deal properly with zero or one
18438         level.
18439         (In_Instance); The analysis of the actuals in the instantiation of a
18440         child unit is not within an instantiation, even though the parent
18441         instance is on the scope stack.
18442         (Safe_To_Capture_Value): Exclude the case of variables that are
18443         renamings.
18444         (Check_Obsolescent): Removed
18445         (Is_Aliased_View): A reference to an enclosing instance in an aggregate
18446         is an aliased view, even when rewritten as a reference to the target
18447         object in an assignment.
18448         (Get_Subprogram_Entity): New function
18449         (Known_To_Be_Assigned): New function
18450         (Type_Access_Level): Compute properly the access level of a return
18451         subtype that is an anonymous access type.
18452         (Explain_Limited_Type): Correct use of "\" for continuation messages.
18453         (Is_Transfer): The new extended_return_statement causes a transfer of
18454         control.
18455         (Has_Preelaborable_Initialization): New function
18456         (Has_Null_Exclusion): New function. Given a node N, determine whether it
18457         has a null exclusion depending on its Nkind.
18458         Change Is_Lvalue to May_Be_Lvalue
18459         (May_Be_Lvalue): Extensive additional code to deal with subprogram
18460         arguments (IN parameters are not Lvalues, IN OUT parameters are).
18461         (Safe_To_Capture_Value): Extend functionality so it can be used for
18462         the current value condition case.
18463         (Has_Compatible_Alignment): New function
18464         (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
18465         objects to handle the Ada 2005 case, where aliasedness no longer implies
18466         that the object is constrained. In particular, for dereferenced names,
18467         the designated object must be assumed to be unconstrained.
18468         (Kill_Current_Values): Properly deal with the case where we encounter
18469         a loop in the scope chain.
18470         (Safe_To_Capture_Value): Do not let a loop stop us from capturing
18471         a value.
18472         (Compile_Time_Constraint_Error): Improve error message in error case
18473
18474         * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
18475         associated with entities of abstract interface primitives.
18476         Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
18477
18478 2006-10-31  Robert Dewar  <dewar@adacore.com>
18479
18480         * s-osinte-tru64.adb: 
18481         Mark Asm statements Volatile to prevent warnings (seems a
18482         reasonable change anyway)
18483         Fixes new warnings
18484
18485         * s-mastop-irix.adb: Add Volatile to Asm statements
18486         Suppresses warning, and seems appropriate in any case
18487
18488         * s-osinte-vms.adb: Add Volatile to Asm statement
18489
18490         * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
18491
18492         * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
18493         returned.
18494         Add call to Check_Code_Statement
18495
18496 2006-10-31  Robert Dewar  <dewar@adacore.com>
18497             Ed Schonberg  <schonberg@adacore.com>
18498             Bob Duff  <duff@adacore.com>
18499
18500         * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
18501         Synchronized_Present): Add Formal_Derived_Type_Definition and
18502         Private_Extension_Declaration to the list of assertions.
18503         (Is_Entry_Barrier_Function): New flag
18504         (Has_Self_Reference): New flag on aggregates, to indicate that they
18505         contain a reference to the enclosing type, inserted through a default
18506         initialization.
18507         (Next_Rep_Item): Move from Node4 to Node5.
18508         (Entity): Add this field for N_Attribute_Definition_Clause.
18509         (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
18510         (N_Return_Object_Declaration): Remove this node kind. We now use
18511         N_Object_Declaration instead.
18512         (Actual_Designated_Subtype): Move to a different place to make room in
18513         N_Extended_Return_Statement.
18514         (Procedure_To_Call): Move to a different place to make room in
18515         N_Extended_Return_Statement.
18516         (Return_Type): Removed this field to make room in return statements
18517         (both kinds).
18518         (Return_Statement_Entity): New field in return statements, in part to
18519         replace Return_Type, and in part to support the fact that return
18520         statements are now pushed on the scope stack during semantic analysis.
18521         (Return_Object_Declarations): New field to support extended return
18522         statements.
18523         (N_Extended_Return_Statement): New node for extended_return_statement
18524         nonterminal.
18525         (N_Return_Object_Declaration): New node for part of
18526         extended_return_statement nonterminal. Needed because all the necessary
18527         fields won't fit in N_Extended_Return_Statement.
18528         Generic_associations now carry the Box_Present flag, to indicate a
18529         default for an actual in a partially parametrized formal package.
18530
18531         * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
18532         (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
18533         and for the new predefined dispatching policies: EDF_Across_Priorities,
18534         Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
18535         Introduce new name Stub_Type for implementation defined attribute.
18536         Add pragma Preelaborable_Initialization
18537         Add entry for Priority attribute.
18538         Add Pragma_Wide_Character_Encoding
18539         (Get_Convention_Name): Given a convention id, this function returns the
18540         corresponding name id from the names table.
18541
18542 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
18543             Robert Dewar  <dewar@adacore.com>
18544             Bob Duff  <duff@adacore.com>
18545
18546         * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
18547         print null exclusion twice in the case of an access definition,
18548         Implement new -gnatL switch
18549         Remove N_Return_Object_Declaration. We now use
18550         N_Object_Declaration instead. Implement the case for
18551         N_Extended_Return_Statement. Alphabetize the cases.
18552         Add cases for new nodes N_Extended_Return_Statement and
18553         N_Return_Object_Declaration. The code is not yet written.
18554         Update the output for N_Formal_Object_Declaration
18555         and N_Object_Renaming_Declaration.
18556         (Write_Itype): Account for the case of a modular integer subtype whose
18557         base type is private.
18558
18559 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
18560
18561         * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
18562         Remove elaboration code, now done in the binder.
18563
18564         * s-rident.ads: Make this unit Preelaborate.
18565         (No_Restrictions): New constant used to clean up code and follow
18566         preelaborate constraints.
18567
18568         * s-stalib.adb: 
18569         Add System.Restrictions dependence, referenced directly from the
18570         binder generated file.
18571
18572 2006-10-31  Gary Dismukes  <dismukes@adacore.com>
18573
18574         * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
18575         True when AAMP extended floating-point is in use (48-bit). Change type
18576         ByteLF to ByteLLF, add new array type ByteLF and condition the size of
18577         the two byte array types on AFloat. Change type of IV_Ilf overlay
18578         variable from Byte8 to ByteLF. Add appropriate initializations of
18579         floating-point overlays for AAMP cases.
18580
18581 2006-10-31  Javier Miranda  <miranda@adacore.com>
18582
18583         * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
18584         (Get_Ceiling): New subprogram that returns
18585         the ceiling priority of the protected object.
18586         (Set_Ceiling): New subprogram that sets the new ceiling priority of
18587         the protected object.
18588
18589         * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
18590
18591         * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
18592
18593 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
18594
18595         * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
18596         requeuing to the same protected object to give higher priority tasks
18597         the opportunity to execute.
18598
18599 2006-10-31  Robert Dewar  <dewar@adacore.com>
18600
18601         * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
18602         add more precise check for the character sequence that follows '[' to
18603         avoid possible confusion in case if '[' is the last character of a
18604         string literals.
18605         (Scan_Wide): Always allow brackets encoding
18606
18607 2006-10-31  Olivier Hainque  <hainque@adacore.com>
18608
18609         * s-stchop.ads: make this unit preelaborate. This is desirable in
18610         general and made mandatory by the use of this unit by s-taprop which
18611         is itself preelaborate.
18612
18613         * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
18614         Td_Events component.
18615
18616 2006-10-31  Vincent Celier  <celier@adacore.com>
18617
18618         * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
18619         in file names.
18620
18621 2006-10-31  Vincent Celier  <celier@adacore.com>
18622
18623         * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
18624
18625 2006-10-31  Vincent Celier  <celier@adacore.com>
18626
18627         * makegpr.adb (Check_Compilation_Needed): Take into account path names
18628         with spaces.
18629         (Check_Compilation_Needed): When checking a C or C++ source, do not
18630         resolve symbolic links.
18631         (Display_Command): New Boolean parameter Ellipse, defaulted to False.
18632         When not in verbose mode and Ellipse is True, display "..." for the
18633         first argument with Display set to False.
18634         (Build_Global_Archive): Always set Display True for the first object
18635         file. Call Display_Command with Ellipse set to True.
18636
18637 2006-10-31  Matt Heaney  <heaney@adacore.com>
18638
18639         * a-crbtgo.ads: Commented each subprogram
18640
18641         * a-crbtgo.adb: Added reference to book from which algorithms were
18642         adapted.
18643
18644         * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
18645         indicate which child.
18646         (Generic_Conditional_Insert): changed parameter name from "Success" to
18647         "Inserted".
18648         (Generic_Unconditional_Insert_With_Hint): improved algorithm
18649
18650         * a-coorse.adb (Replace_Element): changed parameter name in call to
18651         conditional insert operation.
18652
18653         * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
18654
18655         * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
18656         Generic_Iteration
18657
18658         * a-ciorse.adb (Replace_Element): changed parameter name in call to
18659         conditional insert operation.
18660
18661         * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
18662         Generic_Iteration.
18663
18664         * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
18665         instead of mode inout.
18666
18667         * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
18668         draft
18669         (Generic_Read): preserve existing buckets array if possible
18670         (Generic_Write): don't send buckets array length anymore
18671
18672         * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
18673         instead of mode inout.
18674
18675         * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
18676         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
18677
18678         * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
18679         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
18680         (Replace_Element): local operation is now an instantiation
18681
18682         * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
18683         check current length.
18684         (Generic_Replace_Element): new operation
18685
18686 2006-10-31  Doug Rupp  <rupp@adacore.com>
18687
18688         * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
18689         Call TBK$SYMBOLIZE without omitting parameters.
18690
18691 2006-10-31  Vincent Celier  <celier@adacore.com>
18692
18693         * symbols-processing-vms-ia64.adb,
18694         symbols-processing-vms-alpha.adb (Process): Do not include symbols
18695         that come from generic instantiations in bodies.
18696
18697 2006-10-31  Pat Rogers  <rogers@adacore.com>
18698
18699         * a-rttiev.ads, a-rttiev.adb: 
18700         This is a significant redesign primarily for the sake of automatic
18701         timer task termination but also to fix a design flaw.
18702         Therefore we are now using an RTS lock, instead of a protected
18703         object, to provide mutual exclusion to the queue of pending events
18704         and the type Timing_Event is no longer a protected type.
18705
18706 2006-10-31  Robert Dewar  <dewar@adacore.com>
18707             Cyrille Comar  <comar@adacore.com>
18708             Ben Brosgol  <brosgol@adacore.com>
18709
18710         * debug.adb:  Update flags documentation
18711
18712         * gnat_ugn.texi: Add documentation for new -gnatwq switch
18713         Clean up documentation for several other warning switches
18714         Clarify how task stack size can be specified with various
18715         versions of Windows.
18716         Add note that -gnatVo includes ranges including loops
18717         Add documentation for -gnatL switch
18718         Add note on elaboration warning for initializing variables
18719         Add documentation for new -gnatwt warning switch
18720         Document new form of pragma Warnings (On|Off, string)
18721         Add comment on use of pragma Warnings to control warnings
18722         Add documentation for -gnatjnn switch
18723         Modify section on interfacing with C for VMS 64-bit.
18724         Add doc for -gnatVe/E
18725         Add documentation of new warning flags -gnatww/-gnatwW
18726         Add warnings about address clause overlays to list of warnings
18727         (Exception Handling Control): Document that the option --RTS must be
18728         used consistently for gcc and gnatbind.
18729         Clarify that inlining is not always possible
18730         Update documentation on pragma Unchecked_Union.
18731
18732         * gnat_rm.texi: 
18733         Add documentation for new extended version of pragma Obsolescent
18734         Add documentation for implementation defined attribute 'Stub_Type.
18735         Add note on use of Volatile in asm statements
18736         Add documentation on use of pragma Unreferenced in context clause
18737         Document new form of pragma Warnings (On|Off, pattern)
18738         Document pragma Wide_Character_Encoding
18739         Add note that pragma Restrictions (No_Elaboration_Code) is only fully
18740         enforced if code generation is active.
18741         Add section on pragma Suppress to document GNAT specific check
18742         Alignment_Check
18743         Clarify difference between No_Dispatching_Calls & No_Dispatch.
18744         Add documentation for pragma Restrictions (No_Elaboration_Code)
18745
18746         * gnat-style.texi: 
18747         Add comments on layout of subprogram local variables in the
18748         presence of nested subprograms.
18749
18750         * ug_words: Resync.
18751
18752         * elists.ads: Minor reformatting
18753         Node returns Node_Or_Entity_Id (doc change only)
18754
18755         * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
18756
18757         * g-arrspl.ads (Create): Update comments.
18758
18759         * sem.ads: Add details on the handling of the scope stack.
18760
18761         * usage.adb: Update documentation.
18762
18763         * validsw.ads, validsw.adb: 
18764         Add definition of Validity_Check_Components and implement -gnatVe/E
18765
18766         * vms_data.ads: Add missing VMS qualifiers.
18767
18768         * s-addope.ads: Add documentation on overflow and divide by zero
18769
18770 2006-10-31  Robert Dewar  <dewar@adacore.com>
18771             Thomas Quinot  <quinot@adacore.com>
18772             Arnaud Charlet  <charlet@adacore.com>
18773
18774         * fmap.adb: Put routines in alpha order
18775
18776         * g-boumai.ads: Remove redundant 'in' keywords
18777
18778         * g-cgi.adb: Minor reformatting
18779
18780         * g-cgi.ads: Remove redundant 'in' keywords
18781
18782         * get_targ.adb: Put routines in alpha order
18783
18784         * prj-attr.ads: Minor reformatting
18785
18786         * s-atacco.ads: Minor reformatting
18787
18788         * scn.adb: Put routines in alpha order
18789
18790         * sinput-l.adb: Minor comment fix
18791
18792         * sinput-p.adb: Minor comment fix
18793
18794         * s-maccod.ads: Minor reformatting
18795
18796         * s-memory.adb: Minor reformatting
18797
18798         * s-htable.adb: Fix typo in comment.
18799
18800         * s-secsta.adb: Minor comment update.
18801
18802         * s-soflin.adb: Minor reformatting
18803
18804         * s-stoele.ads: 
18805         Add comment about odd qualification in Storage_Offset declaration
18806
18807         * s-strxdr.adb: 
18808         Remove unnecessary 'in' keywords for formal parameters.
18809
18810         * treeprs.adt: Minor reformatting
18811
18812         * urealp.adb: Put routines in alpha order
18813
18814         * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
18815         taking string.
18816
18817         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
18818
18819         * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
18820
18821         * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
18822         workaround as on other platforms.
18823
18824         * g-eacodu-vms.adb: Remove redundant 'in' keywords
18825         * g-expect-vms.adb: Remove redundant 'in' keywords
18826
18827         * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
18828         clear error message if the list-of-files file cannot be opened.
18829
18830         * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
18831         equality operator is always visible.
18832
18833         * lang.opt: Woverlength-strings: New option.
18834
18835         * nmake.adt: 
18836         Update copyright, since nmake.ads and nmake.adb have changed.
18837
18838         * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
18839         (Binder_Output_Time_Stamps_Set): removed.
18840         (Old_Binder_Output_Time_Stamp): idem.
18841         (New_Binder_Output_Time_Stamp): idem.
18842         (Recording_Time_From_Last_Bind): idem.
18843         (Recording_Time_From_Last_Bind): Make constant.
18844
18845         * output.ads, output.adb (Write_Str): Allow LF characters
18846         (Write_Spaces): New procedure
18847
18848         * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
18849
18850         * inline.adb: Minor reformatting
18851
18852         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
18853
18854         * s-mastop-vms.adb: Remove redundant 'in' keywords
18855
18856         * s-osprim-vms.adb: Remove redundant 'in' keywords
18857
18858         * s-trafor-default.adb: Remove redundant 'in' keywords
18859
18860         * 9drpc.adb: Remove redundant 'in' keywords
18861
18862         * s-osinte-mingw.ads: Minor reformatting
18863
18864         * s-inmaop-posix.adb: Minor reformatting
18865
18866         * a-direio.ads: Remove quotes from Compile_Time_Warning message
18867
18868         * a-exexda.adb: Minor code reorganization
18869
18870         * a-filico.adb: Minor reformatting
18871
18872         * a-finali.adb: Minor reformatting
18873
18874         * a-nudira.ads: Remove quote from Compile_Time_Warning message
18875
18876         * a-numeri.ads: Minor reformatting
18877
18878         * a-sequio.ads: Remove quotes from Compile_Time_Warning message
18879
18880         * exp_pakd.ads: Fix obsolete comment
18881
18882         * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
18883         a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
18884         Probably not a bug, but certainly neater and more efficient.
18885
18886         * a-tienio.adb: Minor reformatting
18887
18888         * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
18889         Avoid assuming low bound of string is 1.
18890
18891         * gnatbind.adb: Change Bindusg to package and rename procedure as
18892         Display, which now ensures that it only outputs usage information once.
18893         (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
18894
18895         * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
18896         Table'First.
18897
18898         * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
18899         warning.
18900         (Match): Add pragma Assert to ensure that Matches'First is zero
18901
18902         * g-regpat.ads (Match): Document that Matches lower bound must be zero
18903
18904         * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
18905         documented preconditions (also kills warnings about bad indexes).
18906
18907         * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
18908         is 1.
18909         (Build_Import_Library): Ditto;
18910
18911         * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
18912
18913         * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
18914
18915         * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
18916         lower bound of choice table is 1.
18917
18918         * sem_case.ads (Analyze_Choices): Document that lower bound of
18919         Choice_Table is 1.
18920
18921         * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
18922         string is 1.
18923
18924         * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
18925         and add appropriate Assert pragma to suppress warnings.
18926
18927         * atree.h, atree.ads, atree.adb
18928         Change Elist24 to Elist25
18929         Add definitions of Field28 and Node28
18930         (Traverse_Field): Use new syntactic parent table in sinfo.
18931
18932         * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
18933
18934         * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
18935
18936         * exp_tss.adb: Put routines in alpha order
18937
18938         * fe.h: Remove redundant declarations.
18939
18940 2006-10-23 Rafael Avila de Espindola  <rafael.espindola@gmail.com>
18941
18942         * utils.c (builtin_function): Rename to gnat_builtin_function.
18943         Move common code to add_builtin_function.
18944         * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
18945         gnat_builtin_function.
18946         * gigi.h (builtin_function): Rename to gnat_builtin_function.
18947         Change the signature.
18948
18949 2006-10-16  Brooks Moses  <bmoses@stanford.edu>
18950
18951         * Makefile.in: Add TEXI2PDF definition.
18952         * Make-lang.in: Add "ada.pdf" target.
18953
18954 2006-10-03  Kazu Hirata  <kazu@codesourcery.com>
18955
18956         * decl.c, utils.c: Fix comment typos.
18957         * utils.c: Fix a typo.
18958
18959 2006-09-28  Eric Botcazou  <ebotcazou@adacore.com>
18960
18961         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
18962         on "pure" Ada subprograms if SJLJ exceptions are used.
18963         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
18964         on the declaration node of JMPBUF_SAVE.
18965         * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
18966         of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
18967         * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
18968
18969 2006-08-20  Laurent Guerby  <laurent@guerby.net>
18970
18971         PR ada/28716
18972         g-socket.adb (Bind_Socket): Call Set_Address.
18973
18974 2006-09-15  Eric Botcazou  <ebotcazou@adacore.com>
18975
18976         PR ada/15802
18977         * decl.c (same_discriminant_p): New static function.
18978         (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
18979         subtype and we have discriminants, fix up the COMPONENT_REFs
18980         for the discriminants to make them reference the corresponding
18981         fields of the parent subtype after it has been built.
18982
18983 2006-09-15  Roger Sayle  <roger@eyesopen.com>
18984
18985         PR ada/18817
18986         * utils.c (max_size): Perform constant folding of (A ? B : C) - D
18987         into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
18988
18989 2006-09-13  Olivier Hainque  <hainque@adacore.com>
18990
18991         PR ada/29025
18992         * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
18993         of a SAVE_EXPR, just make the operand addressable/not-readonly and
18994         let the common gimplifier code make and propagate a temporary copy.
18995         (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
18996         out/in-out actuals and defer setting the addressable/readonly bits
18997         to the gimplifier.
18998
18999 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
19000
19001         PR ada/28591
19002         * decl.c (components_to_record): Defer emitting debug info for the
19003         record type associated with the variant until after we are sure to
19004         actually use it.
19005
19006 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
19007
19008         PR ada/21952
19009         * gigi.h (gnat_internal_attribute_table): Declare.
19010         * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
19011         * utils.c (gnat_internal_attribute_table): New global variable.
19012         (builtin_function): Always call decl_attributes on the builtin.
19013         (handle_const_attribute): New static function.
19014         (handle_nothrow_attribute): Likewise.
19015
19016 2006-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
19017
19018         * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
19019
19020 2006-06-23  Olivier Hainque  <hainque@adacore.com>
19021
19022         * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
19023         not been able to get a constant upper bound from TYPE_SIZE_UNIT.
19024
19025 2006-06-20  James A. Morrison  <phython@gcc.gnu.org>
19026             Eric Botcazou  <ebotcazou@adacore.com>
19027
19028         PR ada/18692
19029         * Make-lang.in: Add check-gnat to lang_checks.  Rename existing
19030         check-gnat into check-acats.
19031
19032 2006-06-17  Karl Berry  <karl@gnu.org>
19033
19034         * gnat-style.texi (@dircategory): Use "Software development"
19035         instead of "Programming", following the Free Software Directory.
19036
19037 2006-06-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19038
19039         PR ada/27944
19040         * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
19041
19042 2006-06-06  Laurent Guerby  <laurent@guerby.net>
19043
19044         PR ada/27769
19045         mlib-utl.adb: Use Program_Name.
19046
19047 2006-05-28  Kazu Hirata  <kazu@codesourcery.com>
19048
19049         * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
19050         sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
19051         trans.c, utils.c: Fix comment typos.  Follow spelling
19052         conventions.
19053         * gnat_rm.texi, gnat_ugn.texi, : Fix typos.  Follow spelling
19054         conventions.
19055
19056 2006-05-19  Nicolas Setton  <setton@adacore.com>
19057
19058         * misc.c (gnat_dwarf_name): New function.
19059         (LANG_HOOKS_DWARF_NAME): Define to it.
19060
19061 2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
19062
19063         * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
19064         (ada/misc.o): Likewise.
19065         (ada/utils.o): Likewise.
19066
19067 2006-04-08  Aurelien Jarno  <aurel32@debian.org>
19068
19069         * Makefile.in: Add Ada support for GNU/kFreeBSD.
19070         * s-osinte-kfreebsd-gnu.ads: New file.
19071
19072 2006-03-29  Carlos O'Donell  <carlos@codesourcery.com>
19073
19074         * Make-lang.in: Rename docdir to gcc_docdir.
19075
19076 2006-03-04  Eric Botcazou  <ebotcazou@adacore.com>
19077
19078         * gigi.h (get_ada_base_type): Delete.
19079         * utils2.c (get_ada_base_type): Likewise.
19080         * trans.c (convert_with_check): Operate in the real base type.
19081
19082 2006-03-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19083
19084         * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
19085
19086 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
19087
19088         * utils.c (create_var_decl): Use have_global_bss_p when deciding
19089         whether to make the decl common.
19090
19091 2006-02-20  Rafael ï¿½vila de Esp�ndola  <rafael.espindola@gmail.com>
19092
19093         * Make-lang.in (Ada): Remove.
19094         (.PHONY): Remove Ada
19095
19096 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19097
19098         * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
19099         aggregate, check the interpretations of the other operand to find one
19100         that may be a boolean array.
19101
19102         (Analyze_Selected_Component): Fix flow-of-control typo in case where
19103         the prefix is a private extension.
19104
19105 2006-02-17  Eric Botcazou  <botcazou@adacore.com>
19106
19107         PR ada/26315
19108         * utils2.c (find_common_type): If both input types are BLKmode and
19109         have the same constant size, keep using the first one.
19110
19111         * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
19112
19113         * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
19114
19115         * misc.c (gnat_handle_option): New case for -Woverlength-strings.
19116
19117 2006-02-17  Jose Ruiz  <ruiz@adacore.com>
19118
19119         * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb, 
19120         s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
19121         s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb, 
19122         s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
19123         Abort_Defer/Undefer pairs to avoid the possibility of a task being
19124         aborted while owning a lock.
19125
19126 2006-02-17  Javier Miranda  <miranda@adacore.com>
19127             Robert Dewar  <dewar@adacore.com>
19128
19129         * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
19130         through an access to class-wide interface we force the displacement of
19131         the pointer to the allocated object to reference the corresponding
19132         secondary dispatch table.
19133         (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
19134         if Long_Shifts are supported on the target, even if 64 bit divides
19135         are not supported (configurable run time mode).
19136         (Expand_N_Type_Conversion): Do validity check if validity checks on
19137         operands are enabled.
19138         (Expand_N_Qualified_Expression): Do validity check if validity checks
19139         on operands are enabled.
19140
19141 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19142
19143         * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
19144         must be materialized when the renamed expression is an explicit
19145         dereference.
19146
19147 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19148
19149         * freeze.adb (Statically_Discriminated_Components): Return false if
19150         the bounds of the type of the discriminant are not static expressions.
19151
19152         * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
19153         the bounds of the discriminant type are not static.
19154
19155 2006-02-17  Robert Dewar  <dewar@adacore.com>
19156
19157         * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
19158         then we close To if it is valid.
19159
19160 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
19161
19162         * init.c (facility_resignal_table): new array
19163         (__gnat_default_resignal_p): enhance default predicate to resignal if
19164         VMS condition has one of the predefined facility codes.
19165
19166 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
19167
19168         * Makefile.in: Use VMS64 specialized versions of several units in
19169         Interfaces.C hierarchy to be compatible with HP C default size choices.
19170         Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
19171
19172 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19173
19174         * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
19175         instantiation, the corresponding entity is the related_instance of the
19176         wrapper package created for the instance.
19177
19178 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19179
19180         * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
19181         the current instance is nested within another instance in a child unit.
19182
19183 2006-02-17  Javier Miranda  <miranda@adacore.com>
19184             Ed Schonberg  <schonberg@adacore.com>
19185
19186         * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
19187         type we cannot inherit the primitive operations; we inherit the
19188         Corresponding_Record_Type (which has the list of primitive operations).
19189         (Check_Anonymous_Access_Types): When creating anonymous access types for
19190         access components, use Rewrite in order to preserve the tree structure,
19191         for ASIS use.
19192         (Analyze_Object_Declaration): For limited types with access
19193         discriminants with defaults initialized by an aggregate, obtain
19194         subtype from aggregate as for other mutable types.
19195         (Derived_Type_Declaration): If the derived type is a limited interface,
19196         set the corresponding flag (Is_Limited_Record is not sufficient).
19197
19198 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
19199
19200         * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
19201         to inline a function that returns an unconstrained type, the return
19202         expression must be the first variable declared in the body of the
19203         function.
19204
19205 2006-02-17  Javier Miranda  <miranda@adacore.com>
19206
19207         * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
19208         abstract interface type, the static analysis is not enough to know if
19209         the interface is implemented or not by the source tagged type. Hence
19210         we must pass the work to the expander to generate the required code to
19211         evaluate the conversion at run-time.
19212         (Resolve_Equality_Op): Do not apply previous
19213         transformation if expansion is disasbled, to prevent anomalies when
19214         locating global references in a generic unit.
19215
19216 2006-02-17  Vincent Celier  <celier@adacore.com>
19217
19218         * snames.ads, snames.adb: New standard names for new project attributes:
19219         archive_builder, archive_indexer, compiler_pic_option,
19220         config_body_file_name, config_body_file_name_pattern,
19221         config_file_switches, config_file_unique, config_spec_file_name,
19222         config_spec_file_name_pattern, default_builder_switches,
19223         default_global_compiler_switches, default_language,
19224         dependency_file_kind, global_compiler_switches, include_path,
19225         include_path_file, language_kind, linker_executable_option,
19226         linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
19227         roots, runtime_project.
19228
19229 2006-02-17  Matthew Heaney  <heaney@adacore.com>
19230
19231         * a-convec.ads, a-convec.adb: 
19232         (operator "&"): handle potential overflow for large index types
19233         (Insert): removed Contraint_Error when using large index types
19234         (Insert_Space): removed Constraint_Error for large index types
19235         (Length): moved constraint check from Length to Insert
19236
19237         * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
19238         as not null access.
19239         Explicit raise statements now include an exception message.
19240         (operator "&"): handle potential overflow for large index types
19241         (Insert): removed Contraint_Error when using large index types
19242         (Insert_Space): removed Constraint_Error for large index types
19243         (Length): moved constraint check from Length to Insert
19244
19245 2006-02-17  Robert Dewar  <dewar@adacore.com>
19246
19247         * s-wchcnv.adb: Document handling of [ on output (we do not change
19248         this to ["5B"] and the new comments say why not.
19249
19250         * gnat_ugn.texi: 
19251         Add note for -gnatVo that this now includes the cases of type
19252         conversions and qualified expressions.
19253         Add comments on handling of brackets encoding for Text_IO
19254
19255 2006-02-17  Ramon Fernandez  <fernandez@adacore.com>
19256             Thomas Quinot  <quinot@adacore.com>
19257             Robert Dewar  <dewar@adacore.com>
19258             Javier Miranda  <miranda@adacore.com>
19259
19260         * expander.adb: Fix typo in comment
19261
19262         * exp_pakd.adb: Fix typo
19263         Minor comment reformatting.
19264
19265         * g-dyntab.adb: Minor reformatting
19266
19267         * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
19268         aliased subprograms to look for the abstract interface subprogram.
19269
19270 2006-02-16  Eric Botcazou  <ebotcazou@adacore.com>
19271
19272         * env.c (__gnat_setenv): Use size_t.
19273         (__gnat_unsetenv): Likewise.
19274         (__gnat_clearenv): Likewise.
19275
19276 2006-02-16  Arnaud Charlet  <charlet@adacore.com>
19277
19278         * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
19279
19280 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19281
19282         * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
19283         g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
19284         i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
19285         s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
19286         s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
19287         s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
19288         s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
19289         s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
19290         s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
19291         no longer used.
19292
19293 2006-02-13  Jose Ruiz  <ruiz@adacore.com>
19294
19295         * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
19296         protection against race conditions is not needed.
19297         (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
19298         fallback handler.
19299         (Set_Specific_Handler): Add mutual exclusive access to the specific
19300         handler.
19301         (Specific_Handler): Add mutual exclusive access for retrieving the
19302         specific handler.
19303
19304         * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
19305         back handler.
19306
19307         * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
19308         Fall_Back_Handler and Specific_Handler.
19309
19310         * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
19311         termination handlers.
19312         Set two different owerflow depending on the maximal stack size.
19313
19314         * s-solita.adb (Task_Termination_Handler_T): Document why explicit
19315         protection against race conditions is not needed when executing the
19316         task termination handler.
19317
19318 2006-02-13  Robert Dewar  <dewar@adacore.com>
19319
19320         * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
19321         a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
19322         a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
19323         a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
19324         a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
19325         a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
19326         a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
19327         a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
19328         a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
19329         a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
19330         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
19331         a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
19332         a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
19333         a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
19334         a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
19335         a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
19336         a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
19337         a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
19338         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
19339         a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
19340         g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
19341         g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
19342         mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
19343         prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
19344         s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
19345         s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
19346         s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
19347         s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
19348         s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
19349         s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
19350         a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
19351         fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
19352         par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
19353         system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
19354         reformatting.
19355
19356 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
19357
19358         * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
19359         s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
19360         s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
19361         s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
19362         a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
19363         s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
19364         a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
19365         s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
19366         s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
19367
19368 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19369
19370         * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads, 
19371         s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads, 
19372         s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads, 
19373         s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads, 
19374         s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads, 
19375         s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
19376         replaced by anonymous access type.
19377         (pthread_sigmask): Now take an access sigset_t
19378
19379         * s-osinte-hpux.ads:  Ditto.
19380         (pthread_mutex_t, pthread_cond_t): Update definitions to support
19381         properly 32 and 64 bit ABIs.
19382
19383 2006-02-13  Pascal Obry  <obry@adacore.com>
19384
19385         * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb, 
19386         s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb, 
19387         s-taprop-linux.adb, s-taprop-solaris.adb,
19388         s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
19389         adjustement is already done when calling this routine.
19390
19391 2006-02-13  Pascal Obry  <obry@adacore.com>
19392
19393         * system-mingw.ads (Underlying_Priorities): Update the priority mapping
19394         table to take advantage of the 16 priority levels available on Windows
19395         2000 and XP. On NT4 there are only 7 priority levels, this is properly
19396         supported by this new mapping.
19397
19398 2006-02-13  Nicolas Setton  <setton@adacore.com>
19399
19400         * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
19401         (get_encoding): New subprogram. Extracts the encodings from an encoded
19402         Ada name.
19403
19404 2006-02-13  Pascal Obry  <obry@adacore.com>
19405             Nicolas Roche  <roche@adacore.com>
19406             Arnaud Charlet  <charlet@adacore.com>
19407
19408         * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
19409         support.
19410         (__gnat_try_lock): Add unicode support by using a specific section on
19411         Windows.
19412         (__gnat_get_current_dir): Idem.
19413         (__gnat_open_read): Idem.
19414         (__gnat_open_rw): Idem.
19415         (__gnat_open_create): Idem.
19416         (__gnat_create_output_file): Idem.
19417         (__gnat_open_append): Idem.
19418         (__gnat_open_new): Idem.
19419         (__gnat_file_time_name): Idem.
19420         (__gnat_set_file_time_name): Idem.
19421         (__gnat_stat): Idem.
19422         (win32_no_block_spawn): Idem.
19423         (__gnat_locate_exec_on_path): Idem.
19424         (__gnat_opendir): New routine.
19425         (__gnat_closedir): Idem.
19426         (__gnat_readdir): Add new parameter length (pointer to int). Update
19427         implementation to use it and add specific Win32 code for Unicode
19428         support.
19429         (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
19430         (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
19431         (convert_addresses): Do not define this dummy routine on VMS.
19432
19433         * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
19434         runtime Unicode support will be activated.
19435         (S2WS): String to Wide-String conversion. This version just copy a
19436         string in non Unicode version.
19437         (WS2S): Wide-String to String conversion. This version just copy a
19438         string in non Unicode version.
19439
19440         * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
19441         (Open): Now import __gnat_opendir from adaint.c.
19442         (Read): Change the implementation to support unicode characters. It is
19443         not possible to use strlen() on Windows as this version supports only
19444         standard ASCII characters. So the length of the directory entry is now
19445         returned from the imported __gnat_readdir routine.
19446         Update copyright notice.
19447
19448         * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
19449         (opendir): Moved to adaint.c.
19450
19451         * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
19452         (Get_Directory): Fix wrong indexing.
19453         (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
19454         __gnat_getenv from env.c
19455         (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
19456         from env.c
19457
19458         * env.h, env.c: New file.
19459
19460         * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
19461         adaint.c by __gnat_getenv from env.c
19462
19463         * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
19464         adaint.c by __gnat_getenv from env.c
19465
19466         * Make-lang.in: Add env.o in the list of C object needed by gnat1
19467         and gnatbind.
19468         Update dependencies.
19469
19470 2006-02-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19471             Olivier Hainque  <hainque@adacore.com>
19472             Eric Botcazou  <ebotcazou@adacore.com>
19473
19474         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
19475         
19476         * gigi.h (value_factor_p): Add prototype and description, now public.
19477
19478         * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
19479         promotion for field with rep clause if the associated size was proven
19480         to be in error.
19481         Expand comments describing attempts to use a packable type.
19482         (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
19483         E_Floating_Point_Subtype>: Inherit alias set of what we are making a
19484         subtype of to ensure conflicts amongst all subtypes in a hierarchy,
19485         necessary since these are not different types and pointers may
19486         actually designate any subtype in this hierarchy.
19487         (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
19488         discriminants but put them into record only if not Unchecked_Union;
19489         pass flag to components_to_record showing Unchecked_Union.
19490         (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
19491         components before variants; don't set TYPE_UNCHECKED_UNION_P.
19492         (components_to_record): New argument UNCHECKED_UNION.
19493         Remove special case code for Unchecked_Union and instead use main code
19494         with small changes.
19495
19496         PR ada/26096
19497         (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
19498         variable with the expression being built, only its inner field.
19499
19500         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
19501         emit_sequence_entry_statements.
19502         (emit_sequence_entry_statements, body_with_handlers_p): Delete.
19503         (establish_gnat_vms_condition_handler): Move before
19504         Subprogram_Body_to_gnu.
19505         (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
19506         for a subprogram if it has a foreign convention or is exported.
19507         (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
19508         substituted for a CONST_DECL.
19509         (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
19510         Etype to assoc_to_constructor.
19511         (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
19512         discriminants of Unchecked_Union.
19513         (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
19514         don't need cluttering preprocessor directives.
19515         (establish_gnat_vms_condition_handler): New function. Establish the GNAT
19516         condition handler as current in the compiled function.
19517         (body_with_handlers_p): New function. Tell whether a given sequence of
19518         statements node is attached to a package or subprogram body and involves
19519         exception handlers possibly nested within inner block statements.
19520         (emit_sequence_entry_statements): New function, to emit special
19521         statements on entry of sequences when necessary. Establish GNAT
19522         condition handler in the proper cases for VMS.
19523         (Handled_Sequence_Of_Statements_to_gnu): Start block code with
19524         emit_sequence_entry_statements.
19525
19526         * utils2.c (find_common_type): If both input types are BLKmode and
19527         have a constant size, use the smaller one.
19528         (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
19529         the same.
19530
19531         * utils.c (value_factor_p): Make public, to allow uses from other gigi
19532         units.
19533         (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
19534         (convert, case UNION_TYPE): Remove special treatment for unchecked
19535         unions.
19536
19537         PR ada/18659
19538         (update_pointer_to): Update variants of pointer types to unconstrained
19539         arrays by attaching the list of fields of the main variant.
19540
19541 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19542             Robert Dewar  <dewar@adacore.com>
19543
19544         * a-exexpr.adb, a-exexpr-gcc.adb
19545         (Process_Raise_Exception): Removed, merged with Propagate_Exception.
19546         (Propagate_Exception): Now take extra From_Signal_Handler parameter.
19547         Remove code unused for exception propagation for the compiler itself
19548         from a-except.adb and update to still share separate packages.
19549
19550         * a-except.ads, a-except.adb: Ditto.
19551         Add comments that this version is now used only by the compiler and
19552         other basic tools. The full version that includes the Ada 2005 stuff
19553         is in separate files a-except-2005.ads/adb. The reason is that we do
19554         not want to cause bootstrap problems with compilers not recognizing
19555         Wide_Wide_String.
19556         Add exception reason code PE_Implicit_Return
19557         Add new exception reason code (Null Exception_Id)
19558
19559         * a-except-2005.adb, a-except-2005.ads: New files.
19560
19561         * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
19562
19563         * s-wchcon.adb: New file.
19564
19565         * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
19566         (traceback.o deps): Likewise.
19567         (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
19568         Activate build of GMEM instrumentation library on VMS targets.
19569         (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
19570         Use a-except-2005.ads/adb for all run-time library builds unless
19571         specified otherwise.
19572         [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
19573         s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
19574         Use s-parame.adb on all native platforms.
19575         Use s-parame-vxworks.adb on all vxworks platforms.
19576         Add env.c env.h in LIBGNAT_SRCS
19577         Add env.o in LIBGNAT_OBJS
19578         (GNATMAKE_OBJS): Remove ctrl_c.o object.
19579         (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
19580         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
19581         supports VxWorks 6 RTPs.
19582         (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
19583         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
19584
19585         * types.h, types.ads (Terminate_Program): New exception
19586         Add comment on modifying multiple versions of a-except.adb when the
19587         table of exception reasons is modified.
19588         Add exception reason code PE_Implicit_Return
19589         Add new exception reason code (Null Exception_Id)
19590
19591         * clean.adb (Initialize): Get the target parameters before checking
19592         if target is OpenVMS. Move the OpenVMS specific code here from package
19593         body elaboration code.
19594
19595 2006-02-13  Thomas Quinot  <quinot@adacore.com>
19596             Vincent Celier  <celier@adacore.com>
19597             Robert Dewar  <dewar@adacore.com>
19598
19599         * ali-util.adb (Get_File_Checksum): Update to account for change in
19600         profile of Initialize_Scanner.
19601
19602         * gprep.adb (Gnatprep): Update to account for change in profile of
19603         Initialize_Scanner.
19604         (Process_One_File): Same.
19605
19606         * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
19607         common code between Get_Code_Unit and Get_Source_Unit. Reimplement
19608         that behaviour using the new Unit information recorded in the source
19609         files table, rather than going through all units every time.
19610         (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
19611         (Get_Source_Unit): Same.
19612
19613         * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
19614         change in profile of Initialize_Scanner.
19615         (Prepare_To_Preprocess): Same.
19616
19617         * lib.ads: Fix typo in comment (templace -> template).
19618
19619         * prj-part.adb (Parse_Single_Project): Update to account for change in
19620         profile of Initialize_Scanner.
19621
19622         * scn.adb (Initialize_Scanner): Account for change in profile of
19623         Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
19624         Also record the association of the given Source_File_Index to the
19625         corresponding Unit_Number_Type.
19626
19627         * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
19628         procedure.
19629         (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
19630         Remove Unit formal for generic scanner: this formal
19631         is only relevant to Scn (the scanner instance used to parse Ada source
19632         files), not to other instances. Update comment accordingly.
19633         (Scan): Use new function Snames.Is_Keyword_Name.
19634
19635         * sinfo-cn.adb: Fix typo in comment.
19636
19637         * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
19638         Unit.
19639
19640         * sinput.ads (Source_File_Record): New component Unit, used to capture
19641         the unit identifier (if any) associated to a source file.
19642
19643         * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
19644         Unit in Source_File_Record.
19645
19646         * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
19647         in profile of Initialize_Scanner.
19648
19649         * scans.adb (Initialize_Ada_Keywords): New procedure
19650
19651         * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
19652         Ada keywords in the Namet table, without the need to call
19653         Initialize_Scanner.
19654
19655         * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
19656         (Is_Keyword_Name): New function
19657
19658         * snames.ads: Add subtype Configuration_Pragma_Names
19659         Add pragma Ada_2005 (synonym for Ada_05)
19660         (Is_Keyword_Name): New function
19661
19662         * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
19663
19664 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19665
19666         * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
19667         index.
19668
19669         * a-stwima.adb (To_Set): Add extra check when N = 0.
19670
19671         * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
19672
19673 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19674
19675         * s-parame-mingw.adb, s-parame-linux.adb,
19676         s-parame-solaris.adb: Removed, replaced by s-parame.adb
19677
19678         * s-parame-vxworks.ads: Fix typo.
19679
19680         * s-parame-vxworks.adb: New file.
19681
19682         * s-parame.adb: Version now used by all native platforms.
19683         (Default_Stack_Size): Use 2 megs for default stack size and use
19684         __gl_default_stack_size when available.
19685         (Minimum_Stack_Size): Use 12K.
19686
19687         * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
19688         (Create_Task): Refine implementation taking advantage of the XP stack
19689         size support. On XP, we now create the thread using the flag
19690         STACK_SIZE_PARAM_IS_A_RESERVATION.
19691
19692         * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
19693
19694         * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
19695         XP and 0 on older Windows versions.
19696
19697         * interfac-vms.ads: Removed, no longer used.
19698
19699 2006-02-13  Matthew Heaney  <heaney@adacore.com>
19700
19701         * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb, 
19702         a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb, 
19703         a-cohase.adb: All explicit raise statements now include an exception
19704         message.
19705
19706         * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
19707         (Update_Element_Preserving_Key): renamed op to just Update_Element.
19708         Explicit raise statements now include an exception message
19709
19710         * a-cihase.ads, a-cohase.ads: Removed comment.
19711
19712         * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
19713         a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
19714         a-szbzha.adb, a-szfzha.ads: New files.
19715
19716 2006-02-13  Matthew Heaney  <heaney@adacore.com>
19717
19718         * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
19719         quicksort.
19720
19721 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
19722
19723         * lang.opt: Wvariadic-macros: New option.
19724         Wold-style-definition: Likewise.
19725         Wmissing-format-attribute: Likewise.
19726
19727         * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
19728         -Wold-style-definition and -Wmissing-format-attribute.
19729
19730 2006-02-13  Robert Dewar  <dewar@adacore.com>
19731
19732         * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
19733
19734         * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
19735
19736 2006-02-13  Nicolas Roche  <roche@adacore.com>
19737
19738         * a-envvar.adb, a-envvar.ads: New files.
19739
19740 2006-02-13  Douglas Rupp  <rupp@adacore.com>
19741
19742         * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
19743
19744         * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
19745
19746 2006-02-13  Pat Rogers  <rogers@adacore.com>
19747
19748         * a-rttiev.adb, a-rttiev.ads: New files.
19749
19750 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
19751
19752         * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
19753         a-wwboio.ads, a-zzboio.adb, a-zzboio.ads:  New files.
19754
19755         * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
19756
19757 2006-02-13  Robert Dewar  <dewar@adacore.com>
19758
19759         * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb, 
19760         sem_case.adb: Minor code reorganization (not Present should be No)
19761
19762 2006-02-13  Geert Bosch  <bosch@adacore.com>
19763             Gary Dismukes  <dismukes@adacore.com>
19764
19765         * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
19766         0, since the lower bound of the actual string may be greater than one.
19767
19768         PR ada/20753
19769         * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
19770         layout is requested.
19771
19772 2006-02-13  Vincent Celier  <celier@adacore.com>
19773
19774         * back_end.adb (Scan_Compiler_Arguments): Check if
19775         Search_Directory_Present is True and, if it is, add the argument in
19776         the source search directory path.
19777
19778         * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
19779         Search_Directory_Present to True.
19780
19781 2006-02-13  Joel Brobecker  <brobecke@adacore.com>
19782
19783         * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
19784         volatile, to tell the compiler to preserve this variable at any level
19785         of optimization.
19786         (Gen_Versions_Ada): Temporarily work around codegen bug.
19787
19788 2006-02-13  Vincent Celier  <celier@adacore.com>
19789
19790         * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
19791         gcc to link with option -shared-libgcc.
19792         (Gnatlink): Remove duplicate switches -shared-libgcc
19793
19794 2006-02-13  Robert Dewar  <dewar@adacore.com>
19795
19796         * gnatvsn.ads (Current_Year): New constant, used to easily update
19797         copyright on all GNAT tools.
19798
19799         * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
19800         copyright notice.
19801
19802 2006-02-13  Robert Dewar  <dewar@adacore.com>
19803
19804         * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
19805         after hyphen (small aesthetic change useful for a range of numbers
19806         using ^-^.
19807         Suppress range checks for a couple of assignments which otherwise
19808         cause validity checks with validity checking turned on.
19809
19810         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
19811         Improvement in error message for object.
19812         (Rep_Item_Too_Late): Remove '!' in warning message.
19813
19814 2006-02-13  Robert Dewar  <dewar@adacore.com>
19815             Eric Botcazou  <ebotcazou@adacore.com>
19816
19817         * err_vars.ads: Suppress range checks for a couple of assignments
19818         which otherwise cause validity checks with validity checking turned on.
19819         Update comments.
19820
19821         * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
19822         Make message unconditional if it is a warning.
19823         (Error_Msg_NEL): Always output warning messages.
19824         Suppress range checks for a couple of assignments which otherwise
19825         cause validity checks with validity checking turned on.
19826
19827         * errout.ads (Message Insertion Characters): Document that '!' is
19828         implied by '?' in error messages.
19829
19830         * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
19831         (Gnat1drv): Use a goto to end of main subprogram instead of
19832         Exit_Program (E_Success) so that finalization can occur normally.
19833
19834 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
19835
19836         * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
19837         wrapped around.
19838
19839 2006-02-13  Vincent Celier  <celier@adacore.com>
19840
19841         * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
19842         Unchecked_Conversion functions.
19843         (Modification_Time): Use direct conversion of OS_Time to Calendar time
19844         when OpenVMS returns False.
19845
19846         * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
19847         a-dirval.adb (OpenVMS): New Boolean function
19848
19849 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19850             Thomas Quinot  <quinot@adacore.com>
19851
19852         * checks.adb (Build_Discriminant_Checks): If the expression being
19853         checks is an aggregate retrieve the values of its discriminants to
19854         generate the check, rather than creating a temporary and a reference
19855         to it.
19856         (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
19857         (Install_Null_Excluding_Check): Ditto
19858         (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
19859         not for the renamed object, so that the actual itype is attached in the
19860         proper context.
19861
19862 2006-02-13  Robert Dewar  <dewar@adacore.com>
19863             Vincent Celier  <celier@adacore.com>
19864
19865         * debug.adb: Eliminate numeric switches for binder/gnatmake
19866
19867         * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
19868         switches for the compiler.
19869         (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
19870         (Scan_Make_Switches): When failing with an illegal switch, output an
19871         error message with the full switch.
19872         Eliminate numeric switches for binder/gnatmake
19873
19874         * switch.ads, switch.adb (Bad_Switch): New procedure
19875
19876         * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
19877         Remove 0-9 as debug flag character possibilities
19878         -d is now controlling the primary stack size when its value is a
19879         positive. Also add checks against invalid values, and support for kb,
19880         mb. Ditto for -D switch.
19881
19882 2006-02-13  Robert Dewar  <dewar@adacore.com>
19883             Serguei Rybin  <rybin@adacore.com>
19884
19885         * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
19886         save/restore routines.
19887         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
19888         were not always properly handled previously.
19889         Since we are changing the tree format anyway, also get rid of the
19890         junk obsolete Immediate_Errors flag.
19891         (Tree_Read): Change the way of reading Tree_Version_String - now we
19892         read the version string from the tree even if its length is not the
19893         same as the length of the version string computed from Gnatvsn.
19894         (Search_Directory_Present): New Boolean flag for the compiler.
19895         Define Tree_Version_String as a dynamic string.
19896         (Default_Stack_Size): new variable, used to handle switch -d.
19897
19898         * par-prag.adb: 
19899         For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
19900         only for main unit.
19901         Add pragma Ada_2005 (synonym for Ada_05)
19902         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
19903         were not always properly handled previously.
19904
19905         * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
19906         explicit Ada_95 to Ada_2005.
19907
19908 2006-02-13  Javier Miranda  <miranda@adacore.com>
19909             Robert Dewar  <dewar@adacore.com>
19910             Ed Schonberg  <schonberg@adacore.com>
19911
19912         * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
19913         against errors in the source program: a private types for which the
19914         corresponding full type declaration is missing and pragma CPP_Virtual
19915         is used.
19916         (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
19917         (Is_Known_Null): New flag
19918         (Has_Pragma_Pure): New flag
19919         (No_Return): Present in all entities, set only for procedures
19920         (Is_Limited_Type): A type whose ancestor is an interface is limited if
19921         explicitly declared limited.
19922         (DT_Offset_To_Top_Func): New attribute that is present in E_Component
19923         entities. Only used for component marked Is_Tag. If present it stores
19924         the Offset_To_Top function used to provide this value in tagged types
19925         whose ancestor has discriminants.
19926
19927         * exp_ch2.adb: Update status of new Is_Known_Null flag
19928
19929         * sem_ch7.adb: Maintain status of new Is_Known_Null flag
19930
19931         * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
19932         the categorization sense if Is_Pure was set by pragma Pure_Function.
19933
19934 2006-02-13  Quentin Ochem  <ochem@adacore.com>
19935             Olivier Hainque  <hainque@adacore.com>
19936
19937         * bindusg.adb: Updated documentation for -d and -D switches.
19938
19939         * raise.h (__gnat_set_globals): added new parameter for
19940         Default_Stack_Size.
19941
19942         * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
19943         (__gnat_handle_vms_condition): Adjust context before raise.
19944         (__gnat_install_handler): Restore the global vector setup for GCC
19945         versions before 3.4, as the frame based circtuitry is not available
19946         in this case.
19947         (__gnat_set_globals): added a parameter default_stack_size
19948         (__gl_default_stack_size): new variable.
19949
19950 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19951
19952         * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
19953         "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
19954         does not exist in the Ada RM.
19955         (Compatible_Int_Bounds): Determine whether two integer range bounds
19956         are of equal length and have the same start and end values.
19957         (Is_Int_Range_Bounds): Determine whether a node is an integer range.
19958         (Build_Record_Aggr_Code): Perform proper sliding of a nested array
19959         aggregate when it is part of an object declaration.
19960         (Build_Record_Aggr_Code)  If the aggregate ttype is a derived type that
19961         constrains discriminants of its parent, add explicitly the discriminant
19962         constraints of the ancestor by retrieving them from the
19963         stored_constraint of the parent.
19964
19965 2006-02-13  Robert Dewar  <dewar@adacore.com>
19966
19967         * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
19968         attribute Mechanism_Code is applied to renamed subprogram, modify
19969         prefix to point to base subprogram.
19970         Max/Min attributes now violate Restriction No_Implicit_Conditionals
19971
19972         * sinfo.ads: Document that Mechanism_Code cannot be applied to
19973         renamed subprograms so that the front-end must replace the prefix
19974         appropriately.
19975
19976 2006-02-13  Javier Miranda  <miranda@adacore.com>
19977             Gary Dismukes  <dismukes@adacore.com>
19978
19979         * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
19980         availability of RE_Interface_Tag.
19981         (Build_Initialization_Call): Fix wrong access to the discriminant value.
19982         (Freeze_Record_Type): Do not generate the tables associated with
19983         timed and conditional dispatching calls through synchronized
19984         interfaces if compiling under No_Dispatching_Calls restriction.
19985         When compiling for Ada 2005, for a nonabstract
19986         type with a null extension, call Make_Controlling_Function_Wrappers
19987         and insert the wrapper function declarations and bodies (the latter
19988         being appended as freeze actions).
19989         (Predefined_Primitive_Bodies): Do not generate the bodies of the
19990         predefined primitives associated with timed and conditional
19991         dispatching calls through synchronized interfaces if we are
19992         compiling under No_Dispatching_Calls.
19993         (Build_Init_Procedure):  Use RTE_Available to check if a run-time
19994         service is available before generating a call.
19995         (Make_Controlling_Function_Wrappers): New procedure.
19996         (Expand_N_Full_Type_Declaration): Create a class-wide master for
19997         access-to-limited-interfaces because they can be used to reference
19998         tasks that implement such limited interface.
19999         (Build_Offset_To_Top_Functions): Build the tree corresponding to the
20000         procedure spec and body of the Offset_To_Top function that is generated
20001         when the parent of a type with discriminants has secondary dispatch
20002         tables.
20003         (Init_Secondary_Tags): Handle the case in which the parent of the type
20004         containing secondary dispatch tables has discriminants to generate the
20005         correct arguments to call Set_Offset_To_Top.
20006         (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
20007
20008         * a-tags.ads, a-tags.adb: (Check_Index): Removed.
20009         Add Wide_[Wide_]Expanded_Name.
20010         (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
20011         the same functionality of Get_Prim_Op_Address but applied to predefined
20012         primitive operations because the pointers to the predefined primitives
20013         are now saved in a separate table.
20014         (Parent_Size): Modified to get access to the separate table of primitive
20015         operations or the parent type.
20016         (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
20017         functionality of Set_Prim_Op_Address but applied to predefined primitive
20018         operations.
20019         (Set_Signature): New subprogram used to store the signature of a DT.
20020         (Displace): If the Offset_To_Top value is not static then call the
20021         function generated by the expander to get such value; otherwise use
20022         the value stored in the table of interfaces.
20023         (Offset_To_Top): The type of the actual has been changed to Address to
20024         give the correct support to tagged types with discriminants. In this
20025         case this value is stored just immediately after the tag field.
20026         (Set_Offset_To_Top): Two new formals have been added to indicate if the
20027         offset_to_top value is static and hence pass this value to the run-time
20028         to store it in the table of interfaces, or else if this value is dynamic
20029         and then pass to the run-time the address of a function that is
20030         generated by the expander to provide this value for each object of the
20031         type.
20032
20033         * rtsfind.ads (Default_Prin_Op_Count): Removed.
20034         (Default_Prim_Op_Count): New entity
20035         (Get_Predefined_Prim_Op_Address): New entity
20036         (Set_Predefined_Prim_Op_Address): New entity
20037         (RE_Set_Signature): New entity
20038
20039 2006-02-13  Thomas Quinot  <quinot@adacore.com>
20040             Ed Schonberg  <schonberg@adacore.com>
20041
20042         * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
20043         Make_Adjust_Call done for a newly-allocated object.
20044
20045         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
20046         in a subprogram are wrapped in a cleanup block, indicate that the
20047         subprogram contains an inner block with an exception handler.
20048         (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
20049         Adjust call is for a newly-allocated object. In that case we must not
20050         assume that the finalization list chain pointers are correct (since they
20051         come from a bit-for-bit copy of the original object's pointers) so if
20052         the attach level would otherwise be zero (no change), we set it to 4
20053         instead to cause the pointers to be reset to null.
20054
20055         * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
20056         reset chain pointers to null.
20057
20058 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20059
20060         * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
20061         string, and the context requires a loop for the assignment (e.g.
20062         because the left-hand side is packed), generate a unique name for the
20063         temporary that holds the string, to prevent spurious name clashes.
20064
20065 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20066             Javier Miranda  <miranda@adacore.com>
20067             Robert Dewar  <dewar@adacore.com>
20068             Gary Dismukes  <dismukes@adacore.com>
20069
20070         * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
20071         return unconstrained arrays.
20072         Update comments.
20073         (Expand_Call):  An indirect call through an access parameter of a
20074         protected operation is not a protected call.
20075         Add circuit to raise CE in Ada 2005 mode following call
20076         to Raise_Exception.
20077         (Register_DT_Entry): Do nothing if
20078         the run-time does not give support to abstract interfaces.
20079         (Freeze_Subprogram): In case of dispatching operations, do not generate
20080         code to register the operation in the dispatch table if the source
20081         is compiled with No_Dispatching_Calls.
20082         (Register_Predefined_DT_Entry): Generate code that calls the new
20083         run-time subprogram Set_Predefined_Prim_Op_Address instead of
20084         Set_Prim_Op_Address.
20085
20086         * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
20087         on array assignments if the right-hand side is a function call that has
20088         been inlined. Check is performed on the assignment in the block.
20089         (Process_Bounds): If bounds and range are overloaded, apply preference
20090         rule for root operations to disambiguate, and diagnose true ambiguity.
20091         (Analyze_Assignment): Propagate the tag for a class-wide assignment with
20092         a tag-indeterminate right-hand side even when Expander_Active is True.
20093         Needed to ensure that dispatching calls to T'Input are allowed and
20094         get the tag of the target class-wide object.
20095
20096         * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
20097         an inherited primitive operation that already overrides several
20098         abstract interface primitives. For transitivity, the new entity must
20099         also override all the abstract interface primitives covered by the
20100         inherited overriden primitive.
20101         Emit warning if new entity differs from homograph in same scope only in
20102         that one has an access parameter and the other one has a parameter of
20103         a general access type with the same designated type, at the same
20104         position in the signature.
20105         (Make_Inequality_Operator): Use source locations of parameters and
20106         subtype marks from corresponding equality operator when creating the
20107         tree structure for the implicit declaration of "/=". This does not
20108         change anything in behaviour except that the decoration of the
20109         components of the subtree created for "/=" allows ASIS to get the
20110         string images of the corresponding identifiers.
20111         (Analyze_Return_Statement): Remove '!' in warning message.
20112         (Check_Statement_Sequence): Likewise.
20113         (Analyze_Subprogram_Body): For an access parameter whose designated type
20114         is an incomplete type imported through a limited_with clause, use the
20115         type of the corresponding formal in the body.
20116         (Check_Returns): Implicit return in No_Return procedure now raises
20117         Program_Error with a compile time warning, instead of beging illegal.
20118         (Has_Single_Return):  Function returning unconstrained type cannot be
20119         inlined if expression in unique return statement is not an identifier.
20120         (Build_Body_To_Inline): It is possible to inline a function call that
20121         returns an unconstrained type if all return statements in the function
20122         return the same local variable. Subsidiary procedure Has_Single_Return
20123         verifies that the body conforms to this restriction.
20124
20125         * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
20126         same type, and  one of them is of an anonymous access type, convert
20127         the other operand to it, so that this is a valid binary operation for
20128         gigi.
20129         (Resolve_Type_Conversion): Handle subtypes of protected types and
20130         task types when accessing to the corresponding record type.
20131         (Resolve_Allocator): Add '\' in 2-line warning message.
20132         Remove '!' in warning message.
20133         (Resolve_Call): Add '\' in 2-line warning message.
20134         (Valid_Conversion): Likewise.
20135         (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
20136         resulting type may be an access type with an implicit dereference.
20137         Obtain the proper component from the designated type.
20138         (Make_Call_Into_Operator): Handle properly a call to predefined equality
20139         given by an expanded name with prefix Standard, when the operands are
20140         of an anonymous access type.
20141         (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
20142         Explicit_Dereference and Resolve_Selected_Component, to verify that the
20143         prefix of the expression is not of an incomplete type. Allows full
20144         diagnoses of all semantic errors.
20145         (Resolve_Actuals): If the actual is an allocator whose directly
20146         designated type is a class-wide interface we build an anonymous
20147         access type to use it as the type of the allocator. Later, when
20148         the subprogram call is expanded, if the interface has a secondary
20149         dispatch table the expander will add a type conversion to force
20150         the displacement of the pointer.
20151         (Resolve_Call): If a function that returns an unconstrained type is
20152         marked Inlined_Always and inlined, the call will be inlined and does
20153         not require the creation of a transient scope.
20154         (Check_Direct_Boolean_Op): Removed
20155         (Resolve_Comparison_Op): Remove call to above
20156         (Resolve_Equality_Op): Remove call to above
20157         (Resolve_Logical_Op): Inline above, since this is only call.
20158         (Valid_Conversion): Handle properly conversions between arrays of
20159         convertible anonymous access types.
20160
20161         PR ada/25885
20162         (Set_Literal_String_Subtype): If the lower bound is not static, wrap
20163         the literal in an unchecked conversion, because GCC 4.x needs a static
20164         value for a string bound.
20165
20166 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20167             Hristian Kirtchev  <kirtchev@adacore.com>
20168
20169         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
20170         components of the corresponding record, take into account component
20171         definitions that are access definitions.
20172         (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
20173         procedure is not considered a dispatching call and will be expanded
20174         properly.
20175
20176 2006-02-13  Javier Miranda  <miranda@adacore.com>
20177
20178         * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
20179         controlling argument of the dispatching call is an abstract interface
20180         class-wide type then we use it directly.
20181         Check No_Dispatching_Calls restriction.
20182         (Default_Prim_Op_Position): Remove the code that looks for the last
20183         entity in the list of aliased subprograms. This code was wrong in
20184         case of renamings.
20185         (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
20186         when the source is compiled with the No_Dispatching_Calls restriction.
20187         (Init_Predefined_Interface_Primitives): No need to inherit primitives
20188         if we are compiling with restriction No_Dispatching_Calls.
20189         (Make_Disp_XXX): Addition of assertion to avoid the use of all these
20190         subprograms if we are compiling under No_Dispatching_Calls restriction.
20191         (Make_DT): Generate a dispatch table with a single dummy entry if
20192         we are compiling with the No_Dispatching_Calls restriction. In
20193         addition, in this case we don't generate code that calls to the
20194         following run-time subprograms: Set_Type_Kind, Inherit_DT.
20195         (Make_Select_Specific_Data_Table): Add assertion to avoid the use
20196         of this subprogram if compiling with the No_Dispatching_Calls
20197         restriction.
20198         (Expand_Type_Conversion): Instead of using the actual parameter,
20199         the argument passed as parameter to the conversion function was
20200         erroneously referenced by the expander.
20201         (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
20202         Set_Predefined_Primitive_Op_Address and Set_Signature.
20203         (Expand_Dispatching_Call): Generate call to
20204         Get_Predefined_Prim_Op_Address for predefined primitives.
20205         (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
20206         predefined primitives.
20207         (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
20208         primitives we reserve one dummy entry to ensure that the tag does not
20209         point to some memory that is associated with some other object. In
20210         addition, remove all the old code that generated the assignments
20211         associated with the signature of the dispatch table and replace them
20212         by a call to the new subprogram Set_Signature.
20213         (Set_All_DT_Position): Change the algorithm because now we have a
20214         separate dispatch table associated with predefined primitive operations.
20215         (Expand_Interface_Conversion): In case of non-static offset_to_top
20216         add explicit dereference to get access to the object after the call
20217         to displace the pointer to the object.
20218         (Expand_Interface_Thunk): Modify the generation of the actual used
20219         in the calls to the run-time function Offset_To_Top to fulfil its
20220         new interface.
20221         (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
20222
20223 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20224
20225         * exp_dist.adb (Copy_Specification): For access parameters, copy
20226         Null_Exclusion flag, which will have been set for stream subprograms
20227         in Ada2005 mode.
20228
20229 2006-02-13  Pascal Obry  <obry@adacore.com>
20230
20231         * expect.c (__gnat_expect_portable_execvp): New implementation. The
20232         previous implementation was using the C runtime spawnve routine but
20233         the corresponding wait was using directly the Win32 API. This was
20234         causing some times a lock when waiting for an event using
20235         WaitForSingleObject in __gnat_waitpid. This new implementation uses
20236         the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
20237         API fixes this problem.
20238
20239 2006-02-13  Robert Dewar  <dewar@adacore.com>
20240
20241         * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
20242         call.
20243
20244 2006-02-13  Thomas Quinot  <quinot@adacore.com>
20245
20246         * exp_pakd.ads: Fix typos in comments.
20247
20248         * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
20249         array reference that is an explicit dereference, mark the converted
20250         (packed) array reference as analyzed to prevent a forthcoming
20251         reanalysis from resetting its type to the original (non-packed) array
20252         type.
20253
20254 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20255             Javier Miranda  <miranda@adacore.com>
20256             Eric Botcazou  <ebotcazou@adacore.com>
20257
20258         * exp_util.ads, exp_util.adb (Find_Prim_Op,
20259         Is_Predefined_Primitive_Operation): When
20260         searching for the predefined equality operator, verify that operands
20261         have the same type.
20262         (Is_Predefined_Dispatching_Operation): Remove the code that looks
20263         for the last entity in the list of aliased subprograms. This code
20264         was wrong in case of renamings.
20265         (Set_Renamed_Subprogram): New procedure
20266         (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
20267         Exp_Type constant computed when entering this subprogram.
20268         (Known_Null): New function
20269         (OK_To_Do_Constant_Replacement): New function
20270         (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
20271         (Side_Effect_Free): An attribute reference 'Input is not free of
20272         side effect, unlike other attributes that are functions. (from code
20273         reading).
20274         (Remove_Side_Effects): Expressions that involve packed arrays or records
20275         are copied at the point of reference, and therefore must be marked as
20276         renamings of objects.
20277         (Is_Predefined_Dispatching_Operation): Return false if the operation is
20278         not a dispatching operation.
20279
20280         PR ada/18819
20281         (Remove_Side_Effects): Lift enclosing type conversion nodes for
20282         elementary types in all cases.
20283
20284 2006-02-13  Javier Miranda  <miranda@adacore.com>
20285
20286         * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
20287         task types when accessing to the corresponding record type.
20288         Remove '!' in warning message.
20289
20290 2006-02-13  Olivier Hainque  <hainque@adacore.com>
20291
20292         * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
20293         to avoid useless and space inefficient overalignments on targets where
20294         Max_Alignment is larger than 16.
20295
20296 2006-02-13  Pascal Obry  <obry@adacore.com>
20297
20298         * g-catiio.adb (Sec_Number): New type used to compute the number of
20299         seconds since 1-1-1970.
20300         (Image) [Natural]: The parameter was an Integer, as we can't deal with
20301         negative numbers (years, months...) it is better to have a Natural here.
20302         Code clean-up.
20303         (Image) [Number]: Change parameter from Long_Integer to Number.
20304         (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
20305         overflow for dates past year 2038.
20306
20307 2006-02-13  Matthew Heaney  <heaney@adacore.com>
20308
20309         *  g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
20310         Constraint_Error.
20311
20312 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
20313
20314         * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
20315         native platforms.
20316         (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
20317         finalization can occur normally.
20318
20319 2006-02-13  Vincent Celier  <celier@adacore.com>
20320
20321         * gnatcmd.adb (Rules_Switches): New table
20322         (Add_To_Rules_Switches): New procedure
20323         (GNATCmd): For command CHECK, put all options following "-rules" in the
20324         Rules_Switches table. Append these -rules switches after the -cargs
20325         switches.
20326
20327 2006-02-13  Robert Dewar  <dewar@adacore.com>
20328
20329         * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
20330         These two cases were generating incorrect output, and if this unit
20331         was built with checks on, generated a discriminant mismatch constraint
20332         error.
20333
20334 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20335             Robert Dewar  <dewar@adacore.com>
20336
20337         * lib-xref.adb (Get_Type_Reference): For a private type whose full
20338         view is an array type, indicate the component type as well, for
20339         navigation purposes.
20340         (Generate_Reference): Don't consider array ref on LHS to be a case
20341         of violating pragma Unreferenced.
20342         Do not give Ada 2005 warning except on real reference.
20343
20344 2006-02-13  Vincent Celier  <celier@adacore.com>
20345
20346         * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
20347         main source, add switch -mdebug-main=_ada_ so that the executable can
20348         be debugged by the standard VMS debugger.
20349         (Gnatmake): Set No_Main_Subprogram to True when there is no main
20350         subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
20351         Exit the Multi_Main_Loop when Unique_Compile is True after compilation
20352         of the last source, as the binding and linking phases are never
20353         performed.
20354         Set all executable obsolete when rebuilding a library.
20355
20356         * makeutl.adb (Linker_Options_Switches): Do not process empty linker
20357         options.
20358
20359 2006-02-13  Javier Miranda  <miranda@adacore.com>
20360
20361         PR ada/23973
20362         * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
20363         code to improve the error message reported when the program has
20364         declarations of abstract interface types and it is not compiled with
20365         the -gnat05 switch.
20366         (P_Access_Definition): Reorganize the code to improve the error
20367         message reported when the new Ada 2005 syntax for anonymous
20368         access types is used and the program is not compiled with the
20369         -gnat05 switch.
20370
20371 2006-02-13  Robert Dewar  <dewar@adacore.com>
20372
20373         * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
20374         stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
20375         (MODE_IN)
20376
20377 2006-02-13  Javier Miranda  <miranda@adacore.com>
20378
20379         * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
20380         against source containing syntax errors.
20381
20382 2006-02-13  Vincent Celier  <celier@adacore.com>
20383
20384         * prj.adb (Reset): Initialize the first element of table Namings with
20385         the standard naming data.
20386
20387 2006-02-13  Vincent Celier  <celier@adacore.com>
20388
20389         * prj.ads (Error_Warning): New enumeration type
20390
20391         * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
20392         unknown, use the location of the project to report the error.
20393         (When_No_Sources): New global variable
20394         (Report_No_Ada_Sources): New procedure
20395         (Check): New parameter When_No_Sources. Set value of global variable
20396         When_No_Sources,
20397         (Find_Sources): Call Report_No_Ada_Sources when appropriate
20398         (Get_Sources_From_File): Ditto
20399         (Warn_If_Not_Sources): Better warning messages indicating the unit name
20400         and the file name.
20401
20402         * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
20403         Call Prj.Proc.Process with parameter When_No_Sources.
20404
20405         * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
20406         Call Recursive_Check with parameter When_No_Sources.
20407         (Recursive_Check): New parameter When_No_Sources. Call itself and
20408         Prj.Nmsc.Check with parameter When_No_Sources.
20409         (Process): New parameter When_No_Sources. Call Check with parameter
20410         When_No_Sources.
20411         (Copy_Package_Declarations): New procedure to copy renamed parameters
20412         and setting the location of the declared attributes to the location
20413         of the renamed package.
20414         (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
20415         packages.
20416
20417 2006-02-13  Vincent Celier  <celier@adacore.com>
20418
20419         * prj-makr.adb (Make): Preserve the comments from the original project
20420         file.
20421         When removing nodes (attributes Source_Dirs, Source_Files,
20422         Source_List_File and package Naming), save the comments and attach the
20423         saved comments to the newly created nodes.
20424         Do not add a with clause for the naming package if one already exists.
20425
20426 2006-02-13  Javier Miranda  <miranda@adacore.com>
20427             Gary Dismukes  <dismukes@adacore.com>
20428             Robert Dewar  <dewar@adacore.com>
20429
20430         * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
20431
20432         * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
20433         aliased entities to look for the overriden abstract interface
20434         subprogram.
20435         (Is_Interface_Subprogram): Complete documentation.
20436         (Check_Dispatching_Operation): Do not generate code to register the
20437         operation in the dispatch table if the source is compiled with
20438         restriction No_Dispatching_Calls.
20439         (Override_Dispatching_Operation): Check for illegal attempt to override
20440         No_Return procedure with procedure that is not No_Return
20441         (Check_Dispatching_Call): Suppress the check for an abstract operation
20442         when the original node of an actual is a tag-indeterminate attribute
20443         call, since the attribute, which must be 'Input, can never be abstract.
20444         (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
20445         call to the Input attribute (even when rewritten).
20446         (Propagate_Tag): Augment comment to indicate the possibility of a call
20447         to an Input attribute.
20448
20449         * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
20450         calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
20451
20452         * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
20453         No_Wide_Characters is no longer partition-wide
20454         No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
20455         rather than GNAT
20456
20457 2006-02-13  Douglas Rupp  <rupp@adacore.com>
20458
20459         * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
20460
20461 2006-02-13  Javier Miranda  <miranda@adacore.com>
20462
20463         * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
20464         handles default-initialized components to keep separate the management
20465         of this feature but also avoid the unrequired resolution and
20466         expansion of components that do not have partially initialized
20467         values.
20468         (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
20469         (Check_Bounds): Likewise.
20470         (Check_Length): Likewise.
20471
20472 2006-02-13  Javier Miranda  <miranda@adacore.com>
20473             Ed Schonberg  <schonberg@adacore.com>
20474
20475         * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
20476         abstract interface type call analyze_and_resolve to expand the type
20477         conversion into the corresponding displacement of the
20478         reference to the base of the object.
20479         (Eval_Attribute, case Width): For systems where IEEE extended precision
20480         is supported, the maximum exponent occupies 4 decimal digits.
20481         (Accessibility_Message): Add '\' in 2-line warning message.
20482         (Resolve_Attribute): Likewise.
20483         (case Attribute_Access): Significantly revise checks
20484         for illegal access-to-subprogram Access attributes to properly enforce
20485         the rules of 3.10.2(32/2).
20486         Diagnose use of current instance with an illegal attribute.
20487
20488         * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
20489         to a Node_Id.
20490         (Enclosing_Generic_Unit): New function to return a node's innermost
20491         enclosing generic declaration node.
20492         (Compile_Time_Constraint_Error): Remove '!' in warning messages.
20493         (Type_Access_Level): The accessibility level of anonymous acccess types
20494         associated with discriminants is that of the current instance of the
20495         type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
20496         (Compile_Time_Constraint_Error): Handle case of conditional expression.
20497         (Kill_Current_Values_For_Entity): New function
20498         (Enter_Name): Change formal type to Entity_Id
20499
20500 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
20501             Ed Schonberg  <schonberg@adacore.com>
20502             Gary Dismukes  <dismukes@adacore.com>
20503
20504         * sem_ch10.adb (Check_Redundant_Withs): New procedure in
20505         Analyze_Compilation_Unit.
20506         Detect and warn on redundant with clauses detected in a package spec
20507         and/or body when -gnatwr is used.
20508         (Analyze_Context): Analyze config pragmas before other items
20509         (Install_Context_Items): Don't analyze config pragmas here
20510         (Install_Limited_Withed_Unit): Set limited entity of package in
20511         with_clause so that cross-reference information or warning messages on
20512         unused packages can be properly generated
20513         (Is_Visible_Through_Renamings): Return false if the limited_with_clause
20514         has Error_Posted set. Prevent infinite loops in illegal programs.
20515         (Check_Private_Child_Unit): Move test for a nonprivate with clause down
20516         to the point of the error test requiring the current unit to be private.
20517         This ensures that private with clauses are not exempted from the basic
20518         checking for being a descendant of the same library unit parent as a
20519         withed private descendant unit.
20520         (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
20521         handle private with clauses properly, as well as to account for cases
20522         where the withed unit is a public descendant of a private ancestor
20523         (in which case the current unit must be a descendant of the private
20524         ancestor's parent). The spec comments were updated accordingly. Also,
20525         the old error message in this subprogram was replaced with error
20526         messages that mirror the errors tested and reported by
20527         Check_Private_Child_Unit.
20528         Parameter and variable names improved for readability.
20529         (Install_Limited_Context_Clauses): Remove test for a withed unit being
20530         private as the precondition for calling
20531         Check_Private_Limited_Withed_Unit since that subprogram has been
20532         revised to test public units as well as private units.
20533
20534 2006-02-13  Thomas Quinot  <quinot@adacore.com>
20535             Robert Dewar  <dewar@adacore.com>
20536             Ed Schonberg  <schonberg@adacore.com>
20537             Javier Miranda  <miranda@adacore.com>
20538
20539         * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
20540         that Scope_Stack.First = 1.
20541         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20542         were not always properly handled previously.
20543         (Formal_Entity): Complete rewrite, to handle properly some complex case
20544         with multiple levels of parametrization by formal packages.
20545         (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
20546         to the corresponding derived type declaration for proper semantics.
20547
20548         * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
20549         (Check_Component): Enforce restriction on components of
20550         unchecked_unions: a component in a variant cannot contain tasks or
20551         controlled types.
20552         (Unchecked_Union): Allow nested variants and multiple discriminants, to
20553         conform to AI-216.
20554         Add pragma Ada_2005 (synonym for Ada_05)
20555         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20556         were not always properly handled previously.
20557         Document that pragma Propagate_Exceptions has no effect
20558         (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
20559         (Set_Convention_From_Pragma): Check that if a convention is
20560         specified for a dispatching operation, then it must be
20561         consistent with the existing convention for the operation.
20562         (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
20563         longer required to specify an vtable-ptr component in the record. For
20564         compatibility reasons we leave the support for the previous definition.
20565         (Analyze_Pragma, case No_Return): Allow multiple arguments
20566
20567         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
20568         non-overrideen inherited operation with a controlling result as
20569         illegal only its implicit declaration comes from the derived type
20570         declaration of its result's type.
20571         (Check_Possible_Deferred_Completion): Relocate the object definition
20572         node of the subtype indication of a deferred constant completion rather
20573         than directly analyzing it. The analysis of the generated subtype will
20574         correctly decorate the GNAT tree.
20575         (Record_Type_Declaration): Check whether this is a declaration for a
20576         limited derived record before analyzing components.
20577         (Analyze_Component_Declaration): Diagnose record types  not explicitly
20578         declared limited when a component has a limited type.
20579         (Build_Derived_Record_Type): Code reorganization to check if some of
20580         the inherited subprograms of a tagged type cover interface primitives.
20581         This check was missing in case of a full-type associated with a private
20582         type declaration.
20583         (Constant_Redeclaration): Check that the subtypes of the partial and the
20584         full view of a constrained deferred constant statically match.
20585         (Mentions_T): A reference to the current type in an anonymous access
20586         component declaration  must be an entity name.
20587         (Make_Incomplete_Type_Declaration): If type is tagged, set type of
20588         class_wide type to refer to full type, not to the incomplete one.
20589         (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
20590         available. Required to give support to the certified run-time.
20591         (Analyze_Component_Declaration): In case of anonymous access components
20592         perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
20593         (Process_Discriminants): For an access discriminant, use the
20594         discriminant specification as the associated_node_for_itype, to
20595         simplify accessibility checks.
20596
20597 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20598             Javier Miranda  <miranda@adacore.com>
20599
20600         * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
20601         abstract interpretations on an operator, remove interpretations that
20602         yield Address or a type derived from it, if one of the operands is an
20603         integer literal.
20604         (Try_Object_Operation.Try_Primitive_Operation,
20605         Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
20606         location when creating the new reference to a primitive or class-wide
20607         operation as a part of rewriting a subprogram call.
20608         (Try_Primitive_Operations): If context requires a function, collect all
20609         interpretations after the first match, because there may be primitive
20610         operations of the same type with the same profile and different return
20611         types. From code reading.
20612         (Try_Primitive_Operation): Use the node kind to choose the proper
20613         operation when a function and a procedure have the same parameter
20614         profile.
20615         (Complete_Object_Operation): If formal is an access parameter and prefix
20616         is an object, rewrite as an Access reference, to match signature of
20617         primitive operation.
20618         (Find_Equality_Type, Find_One_Interp): Handle properly equality given
20619         by an expanded name with prefix Standard, when the operands are of an
20620         anonymous access type.
20621         (Remove_Abstract_Operations): If the operation is abstract because it is
20622         inherited by a user-defined type derived from Address, remove it as
20623         well from the set of candidate interpretations of an overloaded node.
20624         (Analyze_Membership_Op): Membership test not applicable to cpp-class
20625         types.
20626
20627 2006-02-13  Bob Duff  <duff@adacore.com>
20628
20629         * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
20630         redundant use clauses.
20631         In particular, if the scope of two use clauses overlaps, but one is not
20632         entirely included in the other, we should not warn.  This can happen
20633         with nested packages.
20634         (Analyze_Subprogram_Renaming): Protect the compiler against previously
20635         reported errors. The bug was reported when the compiler was built
20636         with assertions enabled.
20637         (Find_Type): If the node is a 'Class reference and the prefix is a
20638         synchronized type without a corresponding record, return the type
20639         itself.
20640
20641 2006-02-13  Javier Miranda  <miranda@adacore.com>
20642
20643         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
20644         if this is the full-declaration associated with a private declaration
20645         that implement interfaces, then the private type declaration must be
20646         limited.
20647         (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
20648         as aliased. The use of the 'access attribute is not available for such
20649         object (for this purpose the object should be explicitly marked as
20650         aliased, but being an anonymous type this is not possible).
20651
20652 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20653             Robert Dewar  <dewar@adacore.com>
20654
20655         * sem_elab.adb (Same_Elaboration_Scope): A package that is a
20656         compilation unit is an elaboration scope.
20657         (Add_Task_Proc): Add '\' in 2-line warning message.
20658         (Activate_All_Desirable): Deal with case of unit with'ed by parent
20659
20660 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20661             Javier Miranda  <miranda@adacore.com>
20662
20663         * sem_type.adb (Write_Overloads): Improve display of candidate
20664         interpretations.
20665         (Add_One_Interp): Do not add to the list of interpretations aliased
20666         entities corresponding with an abstract interface type that is an
20667         immediate ancestor of a tagged type; otherwise we have a dummy
20668         conflict between this entity and the aliased entity.
20669         (Disambiguate): The predefined equality on universal_access is not
20670         usable if there is a user-defined equality with the proper signature,
20671         declared in the same declarative part as the designated type.
20672         (Find_Unique_Type): The universal_access equality operator defined under
20673         AI-230 does not cover pool specific access types.
20674         (Covers): If one of the types is a generic actual subtype, check whether
20675         it matches the partial view of the other type.
20676
20677 2006-02-13  Thomas Quinot  <quinot@adacore.com>
20678
20679         * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
20680         line. This is necessary to allow In_Extended_Main_Unit to provide
20681         correct results for itypes while writing out expanded source.
20682         (Close_File): No need to update the source_index_table here since it's
20683         now done for each line.
20684
20685 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20686             Robert Dewar  <dewar@adacore.com>
20687
20688         * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
20689         preserve the source unit where the itype is declared, and prevent a
20690         backend abort.
20691         (Note_Implicit_Run_Time_Call): New procedure
20692         (Write_Itype): Handle missing cases (E_Class_Wide_Type and
20693         E_Subprogram_Type)
20694
20695         * sprint.ads: Document use of $ for implicit run time routine call
20696
20697 2006-02-13  Quentin Ochem  <ochem@adacore.com>
20698
20699         * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
20700         task name.
20701
20702 2006-02-13  Bob Duff  <duff@adacore.com>
20703
20704         * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
20705         Scan_Unsigned, so we do not scan leading blanks and sign twice.
20706         Integer'Value("- 5") and Integer'Value("-+5") now correctly
20707         raise Constraint_Error.
20708
20709         * s-vallli.adb (Scan_Long_Long_Integer): Call
20710         Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
20711         do not scan leading blanks and sign twice.
20712         Integer'Value("- 5") and Integer'Value("-+5") now correctly
20713         raise Constraint_Error.
20714
20715         * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
20716         Scan_Long_Long_Unsigned): Split out most of the processing from
20717         Scan_Long_Long_Unsigned out into
20718         Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
20719         This prevents scanning leading blanks and sign twice.
20720         Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
20721         See RM-3.5(44).
20722
20723         * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
20724         out most of the processing from Scan_Unsigned out into
20725         Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
20726         This prevents scanning leading blanks and sign twice.
20727
20728         * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
20729         use with Modular'Value attribute.
20730         (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
20731         attribute.
20732
20733 2006-02-13  Robert Dewar  <dewar@adacore.com>
20734
20735         * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
20736
20737 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
20738
20739         * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
20740         (PPC VxWorks): Likewise.
20741         (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
20742         (forced_callee): Make non-inlinable and non-pure.
20743         (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
20744
20745 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
20746             Ben Brosgol  <brosgol@adacore.com>
20747             Robert Dewar  <dewar@adacore.com>
20748
20749         * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
20750         support.
20751         Document that gnatbind -M option is for cross environments only.
20752         Added description of using gnatmem to trace gnat rtl allocs and deallocs
20753         Add note on use of $ to label implicit run time calls
20754         Add documentation for -gnatyI (check mode IN)
20755         Updated chapter on compatibility with HP Ada
20756         VMS-oriented edits.
20757         Ran spell and corrected errors
20758         Add documentation for gnatbind -d and rework documentation of -D
20759         at the same time.
20760         Add subprogram/data elimination section.
20761         Minor editing of annex A.
20762         Add section for gnatcheck.
20763         Add documentation for restriction No_Dispatching_Calls
20764         Add documentation for pragma Ada_2005
20765         Remove mention of obsolete pragma Propagate_Exceptions
20766         Document that pragma Unreferenced can appear after DO in ACCEPT
20767         Clarify Pure_Function for library level units
20768         Mention Max/Min in connection with No_Implicit_Conditionals
20769         No_Wide_Characters restriction is no longer partition-wide
20770         Add a nice example for Universal_Literal_String attribute
20771         Document that pragma No_Return can take multiple arguments
20772
20773         * ug_words: Added entry for gnatcheck
20774
20775         * g-ctrl_c.ads (Install_Handler): Enhance comments
20776
20777         * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
20778
20779         * g-trasym.ads: Add documentation on how to do off line symbolic
20780         traceback computation.
20781
20782         * s-fatgen.adb: Add comments for Unaligned_Valid
20783
20784         * stand.ads: Fix typo in comment
20785
20786 2006-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
20787
20788         * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
20789
20790 2006-02-06  Roger Sayle  <roger@eyesopen.com>
20791
20792         * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
20793
20794 2006-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20795
20796         PR target/25926
20797         * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
20798         implementation that calls __main.
20799
20800 2006-01-25  Peter O'Gorman  <peter@pogma.com>
20801
20802         PR bootstrap/25859
20803         * Makefile.in (GCC_LINK): Remove quotes.
20804         (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
20805         or $(GCC_LINK).
20806
20807         (powerpc-darwin): Pass -shared-libgcc when building shared library.
20808
20809 2006-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20810
20811         PR ada/24533
20812         * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
20813
20814 2005-12-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20815
20816         * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
20817
20818 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
20819
20820         * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
20821         needed.
20822
20823 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
20824
20825         * Make-lang.in: Update dependencies
20826
20827 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
20828
20829         * Make-lang.in: Add rule for ada/exp_sel.o
20830
20831 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
20832
20833         * Makefile.in (mingw section): Remove EH_MECHANISM setting.
20834
20835 2005-12-09  Arnaud Charlet  <charlet@adacore.com>
20836
20837         * gnatvsn.ads (Library_Version): Bump to version 4.2
20838         (ASIS_Version_Number): Bumped.
20839
20840 2005-12-09  Doug Rupp  <rupp@adacore.com>
20841
20842         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
20843         Ada bind file prefix on VMS from b$ to b__.
20844         (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
20845         __init.
20846
20847         * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
20848         Targparm.OpenVMS_On_Target.
20849         (Object_Suffix): Initialize with target object suffix.
20850         (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
20851
20852         * butil.adb: Change some Hostparm.OpenVMS checks to
20853         Targparm.OpenVMS_On_Target.
20854
20855         * clean.adb: Change some Hostparm.OpenVMS checks to
20856         Targparm.OpenVMS_On_Target.
20857         (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
20858         ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
20859         Ada bind file prefix on VMS from b$ to b__.
20860
20861         * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
20862         --GCC so that Get_Target_Parameters can find system.ads.
20863         (Gnatlink): Call Get_Target_Parameters in mainline.
20864         Initialize standard packages for Targparm.
20865         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
20866         (Process_Args): Also Check for object files with target object
20867         extension.
20868         (Make_Binder_File_Names): Create with target object extension.
20869         (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
20870         to b__.
20871
20872         * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
20873         Targparm.OpenVMS_On_Target.
20874         ({declaration},Build_Library,Check_Library): Change Ada bind file
20875         prefix on VMS from b$ to b__.
20876
20877         * osint-b.adb: Change some Hostparm.OpenVMS checks to
20878         Targparm.OpenVMS_On_Target.
20879         (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
20880         b__.
20881
20882         * targext.c: New file.
20883
20884         * Makefile.in: add support for vxworks653 builds
20885         (../../vxaddr2line): gnatlink with targext.o.
20886         (TOOLS_LIBS): Move targext.o to precede libgnat.
20887         (init.o, initialize.o): Minor clean up in dependencies.
20888         (GNATLINK_OBJS): Add targparm.o, snames.o
20889         Add rules fo building targext.o and linking it explicitly with all
20890         tools.
20891         Also add targext.o to gnatlib.
20892
20893         * Make-lang.in: Add rules for building targext.o and linking it in
20894         with gnat1 and gnatbind.
20895         Add entry for exp_sel.o.
20896
20897         * osint.adb Change some Hostparm.OpenVMS checks to
20898         Targparm.OpenVMS_On_Target.
20899         (Object_File_Name): Use target object suffix.
20900
20901         * osint.ads (Object_Suffix): Remove, no longer used.
20902         (Target_Object_Suffix): Initialize with target object suffix.
20903
20904         * rident.ads: Add special exception to license.
20905
20906         * targparm.adb (Get_Target_Parameters): Set the value of
20907         Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
20908         value.
20909         (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
20910         
20911         * targparm.ads: Add special exception to license.
20912
20913         * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
20914         function.
20915         (Copy_File): Make sure from file is closed if error on to file
20916         (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
20917
20918         * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
20919         (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
20920
20921         * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
20922         target object suffix.
20923
20924 2005-12-09  Jose Ruiz  <ruiz@adacore.com>
20925             Quentin Ochem  <ochem@adacore.com>
20926             Florian Villoing  <villoing@adacore.com>
20927
20928         * a-taster.ads, a-taster.adb: New files.
20929
20930         * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
20931         link to the version that does nothing. This way the task termination
20932         routine is not executed twice for the environment task when finishing
20933         because of an unhandled exception.
20934
20935         * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
20936         handler because of an unhandled exception.
20937
20938         * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
20939         System.Tasking.Utilities instead of that in System.Tasking.Stages.
20940
20941         * s-finimp.adb (initialization code): Modify the soft link for the
20942         finalization of the global list instead of Adafinal.
20943
20944         * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
20945         non-tasking version of the soft link for task termination. We do
20946         nothing since if we are using the non-tasking version it
20947         means that the task termination functionality is not used.
20948         (Null_Finalize_Global_List): Add this null version for the procedure
20949         in charge of finalizing the global list for controlled objects.
20950         (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
20951         instead for handling run-time termination in a more flexible way.
20952         (Adafinal_NT): This new procedure will take care of finalizing the
20953         global list for controlled objects if needed, but no tasking
20954         finalization.
20955
20956         * s-tarest.adb (Task_Lock): Do not try to lock again the
20957         Global_Task_Lock if we already own it. Otherwise, we get blocked in
20958         some run-time operations.
20959         (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
20960         until all nested locks have been released.
20961         (Task_Wrapper): Call the fall-back task termination handler. It
20962         applies to all tasks but the environment task.
20963         (Finalize_Global_Tasks): Add the call for the task termination
20964         procedure for the environment task.
20965         (Task_Wrapper): suppress warnings around declaration of
20966         Secondary_Stack_Address.
20967
20968         * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
20969         moved to the Common_ATCB record.
20970         (Task_Lock): Global_Task_Lock_Nesting has been moved to the
20971         Common_ATCB record.
20972         (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
20973         Common_ATCB record.
20974
20975         * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
20976         Fall_Back_Handler, and Specific_Handler.
20977
20978         * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
20979         defined in Ada.Task_Termination, to avoid circular dependencies.
20980         (Termination_Handler): Redefine this type here, alredy defined in
20981         Ada.Task_Termination, for avoiding circular dependencies.
20982         (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
20983         for storing task termination handlers. In addition,
20984         Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
20985         Common_ATCB because it is used by both the regular and the restricted
20986         run times.
20987         (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
20988         Common_ATCB because it is used by both the regular and the restricted
20989         run times.
20990         (Common_ATCB): Added a dynamic task analyzer field.
20991
20992         * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
20993         potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
20994         (Task_Wrapper): Call the task termination handler. It applies to all
20995         tasks but the environment task.
20996         (Finalize_Global_Tasks): Call the task termination procedure for the
20997         environment task. The call to Finalize_Global_List is now performed
20998         using the soft links mechanism.
20999         (Task_Wrapper): added dynamic stack analysis.
21000
21001         * s-tasuti.adb (Abort_Tasks): The code in charge of checking
21002         potentially blocking operations has been moved from
21003         System.Tasking.Stages.Abort_Tasks to this procedure. There can be
21004         direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
21005         through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
21006         this run-time check.
21007
21008         * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
21009         of task termination procedure.
21010         (Init_Tasking_Soft_Links): Install the task-safe version of the soft
21011         link for the task termination procedure.
21012
21013         * bindusg.adb: (Bindusg): Added documentation for -u option.
21014
21015         * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
21016         (Get_Main_C): Add handling of dynamic stack analysis.
21017         (Gen_Output_File_C): Add external functions for dynamic stack analysis.
21018
21019         * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
21020         (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
21021         (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
21022
21023         * opt.ads: Added flags used by dynamic stack measurement.
21024         (Max_Line_Length): Remove (not used anymore)
21025
21026         * s-io.ads, s-io.adb (Standard_Error): new subprogram
21027         (Standart_Output): new subprogram
21028         (Set_Output): new subprogram
21029         (Put): now uses the value of Current_Out to know if the output has to be
21030         send to stderr or stdout.
21031         
21032         * s-stausa.ads: Complete implementation.
21033
21034         * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
21035         
21036         * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
21037         list of Ada 05 files.
21038         (GNAT Library Units): Add AltiVec files.
21039
21040         * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
21041         g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
21042         g-alvety.ads, g-alvevi.ads: New files providing altivec API.
21043
21044 2005-12-09  Nicolas Setton  <setton@adacore.com>
21045
21046         * adaint.c (__gnat_locate_regular_file): Return immediately if
21047         file_name is empty.
21048
21049 2005-12-09  Javier Miranda  <miranda@adacore.com>
21050             Hristian Kirtchev  <kirtchev@adacore.com>
21051
21052         * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
21053         to the specification because the frontend generates code that uses this
21054         subprogram.
21055         (Set_Interface_Table): Add missing assertion.
21056         Update documentation describing the run-time structure.
21057         (Displace): New subprogram that displaces the pointer to the object
21058         to reference one of its secondary dispatch tables.
21059         (IW_Membership): Modified to use the new table of interfaces.
21060         (Inherit_TSD): Modified to use the new table of interfaces.
21061         (Register_Interface_Tag): Use the additional formal to fill the
21062         contents of the new table of interfaces.
21063         (Set_Interface_Table): New subprogram that stores in the TSD the
21064         pointer to the table of interfaces.
21065         (Set_Offset_To_Top): Use the additional formal to save copy of
21066         the offset value in the table of interfaces.
21067         Update structure of GNAT Primary and Secondary dispatch table diagram.
21068         Add comment section on GNAT dispatch table prologue.
21069         (Offset_To_Signature): Update the constant value of the Signature field.
21070         (Dispatch_Table): Update comment on hidden fields in the prologue.
21071         (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
21072         Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
21073         the type of formal parameter T to Tag, introduce additional assertions.
21074         (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
21075         conversion.
21076         (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
21077
21078         * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
21079         in all the calls to Expand_Interface_Thunk. Instead of referencing the
21080         record component containing the tag of the secondary dispatch table we
21081         have to use the Offset_To_Top run-time function to get this information;
21082         otherwise if the pointer to the base of the object has been displace
21083         we get a wrong value if we use the 'position attribute.
21084
21085         * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
21086         all the calls to Expand_Interface_Thunk.
21087         (Make_Secondary_DT): Secondary dispatch tables do not have a table of
21088         interfaces; hence the call to Set_Interface_Table was clearly wrong.
21089         (Collect_All_Interfaces): Modify the internal subprogram Collect to
21090         ensure that the interfaces implemented by the ancestors are placed
21091         at the header of the generated list.
21092         (Expand_Interface_Conversion): Handle the case in which the displacement
21093         associated with the interface conversion is not statically known. In
21094         this case we generate a call to the new run-time subprogram Displace.
21095         (Make_DT): Generate and fill the new table of interfaces.
21096         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
21097         Get_Tagged_Kind and Set_Tagged_Kind.
21098         (Tagged_Kind): New function that determines the tagged kind of a type
21099         with respect to limitedness and concurrency and returns a reference to
21100         RE_Tagged_Kind.
21101         (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
21102         Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
21103         primary dispatch table for a type.
21104         (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
21105         secondary dispatch table respectively of a tagged type.
21106
21107         * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
21108         (Expand_Interface_Conversion): New subprogram to indicate if the
21109         displacement of the type conversion is statically known.
21110         (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
21111
21112         * rtsfind.ads (RE_Offset_To_Top): New entity
21113         (RTU_Id): Add Ada_Task_Termination to the list so that it is made
21114         accessible to users.
21115         (Re_Displace): New entity
21116         (RE_Interface_Data): New entity
21117         (RE_Set_Interface_Data): New_Entity
21118         (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
21119         Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
21120         RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
21121         RE_TK_Tagged, RE_TK_Task.
21122
21123         * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
21124         Init_Secondary_Tags_Internal to allow its use with interface types and
21125         also to generate the code for the new additional actual required
21126         by Set_Offset_To_Top.
21127         (Build_Init_Statements): In case of components associated with abstract
21128         interface types there is no need to generate a call to its IP.
21129         (Freeze_Record_Type): Generate Select Specific Data tables only for
21130         concurrent types.
21131         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
21132         the bodies and specifications of the predefined primitive operations
21133         dealing with dispatching selects and abort, 'Callable, 'Terminated only
21134         for concurrent types.
21135
21136         * exp_sel.ads, exp_sel.adb: New files.
21137
21138         * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
21139         Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
21140         properly protected objects and attach handler in the case of the
21141         restricted profile.
21142         Move embeded package Select_Expansion_Utilities into a separate external
21143         package.
21144         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
21145         Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
21146         (Build_K, Build_S_Assignment): New subprograms, part of the select
21147         expansion utilities.
21148         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
21149         Expand_N_Timed_Entry_Call): Optimize expansion of select statements
21150         where the trigger is a dispatching procedure of a limited tagged type.
21151
21152 2005-12-09  Olivier Hainque  <hainque@adacore.com>
21153
21154         * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
21155         pointer initialization values. Make a SAVE_EXPR instead. Add comments
21156         about the use and expansion of SAVE_EXPRs in the various possible
21157         renaming handling cases.
21158         (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
21159         abusing DECL_FCONTEXT.
21160
21161 2005-12-09  Matthew Heaney  <heaney@adacore.com>
21162
21163         * a-convec.adb (Merge): Added assertions to check whether vector params
21164         are sorted.
21165
21166         * a-coinve.adb (Merge): Added assertions to check whether vector params
21167         are sorted.
21168
21169         * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
21170         draft.
21171         (Cursor'Read): raises PE
21172
21173         * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
21174         to its default value.
21175
21176         * a-cihama.adb: Manually check whether cursor's key and elem are
21177         non-null
21178
21179         * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
21180         (Merge): Assert that target and source lists are in order
21181         (Swap): Declare non-const temporaries, to pass to Splice
21182
21183         * a-cdlili.ads: (Splice): Changed param name and param mode
21184
21185         * a-cdlili.adb: (Splice): Changed param name and param mode
21186         (Merge): Assert that target and source lists are in order
21187         (Swap): Declare non-const temporaries, to pass to Splice
21188
21189         * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
21190         (Write): declare Stream param as not null
21191
21192         * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
21193         an exception message.
21194
21195 2005-12-09  Thomas Quinot  <quinot@adacore.com>
21196             Robert Dewar  <dewar@adacore.com>
21197
21198         * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
21199         which is the absolute maximum length we can support.
21200
21201         * frontend.adb: For the processing of configuration pragma files,
21202         remove references to Opt.Max_Line_Length, which is not checked anymore.
21203
21204         * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
21205         length.
21206
21207         * scn.adb, scng.adb: 
21208         Always check line length against the absolute supported maximum,
21209         Hostparm.Max_Line_Length.
21210
21211         * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
21212         value for the maximum line length is Max_Line_Length (not
21213         Column_Number'Last).
21214         Minor error msg update
21215         (Set_Style_Check_Options): New interface returning error msg
21216         Minor code reorganization (processing for 'M' was out of alpha order)
21217
21218         * switch-c.adb: New interface for Set_Style_Check_Options
21219
21220         * stylesw.ads (Set_Style_Check_Options): New interface returning error
21221         msg.
21222
21223 2005-12-09  Javier Miranda  <miranda@adacore.com>
21224
21225         * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
21226         with IP subprogram were only supported if there were limited types.
21227
21228         * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
21229         records with IP subprogram were only supported if there were limited
21230         types.
21231
21232 2005-12-09  Olivier Hainque  <hainque@adacore.com>
21233             Eric Botcazou  <ebotcazou@adacore.com>
21234
21235         * trans.c (tree_transform, emit_check): Adjust calls to
21236         build_call_raise, passing the now expected GNAT_NODE argument.
21237
21238         * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
21239         source line information than what the current global locus indicates
21240         when appropriate.
21241
21242         * utils2.c (build_simple_component_ref): Return 0 if the offset of the
21243         field has overflowed.
21244         (build_call_raise): Add a GNAT_NODE argument to convey better source
21245         line information than what the current global locus indicates when
21246         appropriate.
21247         (build_component_ref): Adjust call to build_call_raise.
21248
21249 2005-12-09  Pascal Obry  <obry@adacore.com>
21250
21251         * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
21252         the iterator is quitting iteration on parent directory.
21253
21254 2005-12-09  Javier Miranda  <miranda@adacore.com>
21255
21256         * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
21257         and the assignment to a class-wide object, before the assignment we
21258         generate a run-time check to ensure that the tag of the Target is
21259         covered by the tag of the source.
21260
21261 2005-12-09  Robert Dewar  <dewar@adacore.com>
21262
21263         * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
21264         parameter in call to Image_Wide_Character.
21265
21266         * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
21267         parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
21268         (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
21269         annoying FFFE/FFFF inconsistency.
21270
21271 2005-12-09  Robert Dewar  <dewar@adacore.com>
21272             Javier Miranda  <miranda@adacore.com>
21273             Ed Schonberg  <schonberg@adacore.com>
21274
21275         * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
21276         of type conversion.
21277         (Find_Interface): New subprogram that given a tagged type and one of its
21278         component associated with the secondary table of an abstract interface
21279         type, return the entity associated with such abstract interface type.
21280         (Make_Subtype_From_Expr): If type has unknown discriminants, always use
21281         base type to create anonymous subtype, because entity may be a locally
21282         declared subtype or generic actual.
21283         (Find_Interface): New subprogram that given a tagged type and one of its
21284         component associated with the secondary table of an abstract interface
21285         type, return the entity associated with such abstract interface type.
21286
21287         * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
21288         conversion cannot be handled at compile time. In this case we pass this
21289         information to the expander to generate the appropriate code.
21290
21291 2005-12-09  Robert Dewar  <dewar@adacore.com>
21292             Ed Schonberg  <schonberg@adacore.com>
21293             Gary Dismukes  <dismukes@adacore.com>
21294             Javier Miranda  <miranda@adacore.com>
21295             Hristian Kirtchev  <kirtchev@adacore.com>
21296
21297         * einfo.adb (Itype_Printed): New flag
21298         (Is_Limited_Type): Derived types do not inherit limitedness from
21299         interface progenitors.
21300         (Is_Return_By_Reference_Type): Predicate does not apply to limited
21301         interfaces.
21302
21303         * einfo.ads (Itype_Printed): New flag
21304         Move Is_Wrapper_Package to proper section
21305         Add missing Inline for Is_Volatile
21306
21307         * output.ads, output.adb (Write_Erase_Char): New procedure
21308         (Save/Restore_Output_Buffer): New procedures
21309         (Save/Restore_Output_Buffer): New procedures
21310
21311         * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
21312         Add missing support for anonymous access type
21313         (Write_Id): Insert calls to Write_Itype
21314         (Write_Itype): New procedure to output itypes
21315
21316         * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
21317         use of "limited" in declaration.
21318
21319         * sinfo.ads, sinfo.adb: 
21320         Formal derived types can carry an explicit "limited" indication.
21321
21322         * sem_ch3.adb: Add with and use of Targparm.
21323         (Create_Component): If Frontend_Layout_On_Target is True and the
21324         copied component does not have a known static Esize, then reset
21325         the size and positional fields of the new component.
21326         (Analyze_Component_Declaration): A limited component is
21327         legal within a protected type that implements an interface.
21328         (Collect_Interfaces): Do not add to the list the interfaces that
21329         are implemented by the ancestors.
21330         (Derived_Type_Declaration): If the parent of the full-view is an
21331         interface perform a transformation of the tree to ensure that it has
21332         the same parent than the partial-view. This simplifies the job of the
21333         expander in order to generate the correct object layout, and it is
21334         needed because the list of interfaces of the full-view can be given in
21335         any order.
21336         (Process_Full_View): The parent of the full-view does not need to be
21337         a descendant of the parent of the partial view if both parents are
21338         interfaces.
21339         (Analyze_Private_Extension_Declaration): If declaration has an explicit
21340         "limited" the parent must be a limited type.
21341         (Build_Derived_Record_Type): A derived type that is explicitly limited
21342         must have limited ancestor and progenitors.
21343         (Build_Derived_Type): Ditto.
21344         (Process_Full_View): Verify that explicit uses of "limited" in partial
21345         and full declarations are consistent.
21346         (Find_Ancestor_Interface): Remove function.
21347         (Collect_Implemented_Interfaces): New procedure used to gather all
21348         implemented interfaces by a type.
21349         (Contain_Interface): New function used to check whether an interface is
21350         present in a list.
21351         (Find_Hidden_Interface): New function used to determine whether two
21352         lists of interfaces constitute a set equality. If not, the first
21353         differing interface is returned.
21354         (Process_Full_View): Improve the check for the "no hidden interface"
21355         rule as defined by AI-396.
21356
21357 2005-12-09  Robert Dewar  <dewar@adacore.com>
21358
21359         * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
21360         types, not on record subtypes.
21361         (Freeze_Entity): Code cleanup. Add barrier to the loop
21362         that generates the references for primitive operations. This allows to
21363         remove an unnecessary exception handler.
21364         Code reformatting and comment clean ups.
21365
21366 2005-12-09  Vincent Celier  <celier@adacore.com>
21367
21368         * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
21369         If GNAT CHECK is called with a project file, but with no
21370         source on the command line, call gnatcheck with all the compilable
21371         sources of the project.
21372         Take into account the new command Check, for gnatcheck. Treat as for
21373         other ASIS tools: take into account project, specific package Check and
21374         Compiler switches.
21375         For ASIS tools, add the switches in package Compiler for
21376         the invocation of the compiler.
21377
21378         * prj-attr.adb: Add package Check and its attributes
21379
21380         * vms_conv.ads (Command_Type): New command Check, for gnatcheck
21381
21382         * vms_conv.adb (Initialize): Change Params of command Check to
21383         unlimited files.
21384         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
21385         Add data for new command Check
21386
21387         * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
21388         ELIM.
21389         Add qualifiers for Check command options
21390         (Command_Type): New command Check
21391
21392 2005-12-09  Thomas Quinot  <quinot@adacore.com>
21393
21394         * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
21395         command line switch overruns the output buffer.
21396
21397 2005-12-09  Robert Dewar  <dewar@adacore.com>
21398
21399         * sem_prag.adb: Processing for new pragma Complete_Representation
21400         (Analyze_Pragma, case Debug): Implement two argument form.
21401
21402         * par-prag.adb: Entry for new pragma Complete_Representation
21403         (Prag, case Debug): Recognize two argument form of pragma Debug
21404         New interface for Set_Style_Check_Options.
21405
21406         * sem_ch13.adb: Implement new pragma Complete_Representation.
21407
21408         * snames.adb, snames.ads, snames.h: Entry for new pragma
21409         Complete_Representation.
21410
21411 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
21412
21413         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
21414         available user-specified stream attributes on limited parameters to
21415         also test the type directly rather than only its underlying type (for
21416         Ada 95) and, in the case of Ada 2005, to check that the user-specified
21417         attributes are visible at the point of the subprogram declaration.
21418         For Ada 2005, the error message is modified to indicate that the
21419         type's stream attributes must be visible (again, only for -gnat05).
21420
21421 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
21422
21423         * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
21424         anonymous access types.
21425
21426         * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
21427         matching of anonymous access types and anonymous access to subprogram
21428         types. 'R'M 4.9.1 (2/2).
21429
21430 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
21431
21432         * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
21433         rule prematurely when operands are universal, remaining ambiguities
21434         will be removed during resolution.
21435         Code cleanup.
21436
21437         * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
21438         that are Ada 2005 functions.
21439         (Has_Abstract_Interpretation): Subsidiary to
21440         Remove_Conversions, to remove ambiguities caused by abstract operations
21441         on numeric types when operands are universal.
21442
21443 2005-12-09  Robert Dewar  <dewar@adacore.com>
21444
21445         * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
21446         for case where spec is categorized.
21447
21448 2005-12-09  Javier Miranda  <miranda@adacore.com>
21449
21450         * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
21451         types use the corresponding record type. This was not needed before
21452         the implementation of Ada 2005 synchronized types because
21453         concurrent types were never tagged types in Ada 95.
21454
21455 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
21456
21457         * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
21458         first subtype of the type of the expression to verify that it is a
21459         legal Time type.
21460
21461 2005-12-09  Robert Dewar  <dewar@adacore.com>
21462
21463         * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
21464         decoded names.
21465
21466 2005-12-09  Quentin Ochem  <ochem@adacore.com>
21467             Robert Dewar  <dewar@adacore.com>
21468             Ed Falis  <falis@adacore.com>
21469             Florian Villoing  <villoing@adacore.com>
21470             Thomas Quinot  <quinot@adacore.com>
21471             Arnaud Charlet  <charlet@adacore.com>
21472
21473         * gnat_ugn.texi: Created section "Stack Related Tools"
21474         Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
21475         "Stack Related Tools"
21476         Added subsection "Static Stack Usage Analysis"
21477         Added subsection "Dynamic Stack Usage Analysis"
21478         Include documentation of itypes in sprint listing (-gnatG)
21479         Documented gnatbind -D switch (default sec stack size for fixed sec
21480         stacks).
21481         Added Interrupt_State and Persistent_BSS to list of configuration
21482         pragmas.
21483         Add missing doc for maximum value of nnn in -gnatyMnnn
21484
21485         * gnat_rm.texi: Document the AltiVec binding.
21486         Add documentation for pragma Complete_Representation
21487         Shortened an overly long line (> 79 chars)
21488         Clarify documentation of unchecked conversion in implementation
21489         defined cases.
21490         Document two argument form of pragma Debug
21491
21492         * types.ads (Column_Number): Update documentation.
21493
21494         * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
21495         library level Finalize_Storage_Only objects (these are not attached to
21496         any finalization list).
21497
21498         * system-mingw.ads: (Underlying_Priorities): Update comment.
21499
21500 2005-12-09  Robert Dewar  <dewar@adacore.com>
21501
21502         * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
21503         i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
21504         inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
21505         i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
21506         krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
21507         lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
21508         interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
21509         s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
21510         reformatting.
21511
21512 2005-12-09  Robert Dewar  <dewar@adacore.com>
21513
21514         * s-vaflop-vms-alpha.adb: (Ne_F): New function
21515         (Ne_G): New function
21516
21517         * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
21518         for tag assignment.
21519         (Rewrite_Comparison): Handle case where operation is not a comparison
21520         and ignore, and also handle type conversion case.
21521
21522 2005-12-09  Thomas Quinot  <quinot@adacore.com>
21523
21524         * exp_aggr.ads: Fix typo in comment.
21525         ???-mark Convert_Aggr_In_Assignment as needing documentation.
21526
21527 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
21528
21529         * layout.adb: Replace various uses of byte by storage unit throughout.
21530         (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
21531         static size, convert to storage units before returning, to conform to
21532         spec.
21533
21534 2005-12-09  Matthew Gingell  <gingell@adacore.com>
21535
21536         * g-exctra.ads: Fix typo in comment.
21537
21538 2005-12-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21539
21540         * utils.c: Minor reformatting.
21541
21542 2005-12-09  Robert Dewar  <dewar@adacore.com>
21543
21544         * g-soccon.ads: 
21545         Further comment fixes to make the status of the default file clear
21546
21547         * s-bitops.adb: Clarify comment for Bits_Array
21548
21549 2005-12-07  Rafael ï¿½vila de Esp�ndola  <rafael.espindola@gmail.com>
21550
21551         * Make-lang.in (ada.install-normal): Remove.
21552
21553 2005-12-07  Rafael ï¿½vila de Esp�ndola  <rafael.espindola@gmail.com>
21554
21555         * Make-lang.in: Remove all dependencies on s-gtype.
21556
21557 2005-12-05  Richard Guenther  <rguenther@suse.de>
21558
21559         * utils.c (convert): Use fold_convert where appropriate.
21560
21561 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
21562
21563         * Makefile.in (gnatlib): Fix regex, using \. instead of . when
21564         a period is meant.
21565
21566 2005-12-02  Richard Guenther  <rguenther@suse.de>
21567
21568         * trans.c (gnat_gimplify_expr): Use buildN instead of build.
21569
21570 2005-12-01  Roger Sayle  <roger@eyesopen.com>
21571
21572         * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
21573         nodes.
21574
21575 2005-11-23  Laurent Guerby  <laurent@guerby.net>
21576
21577         * mlib-prj.adb (Build_Library): Initialize Delete.
21578
21579 2005-11-21  Joel Sherrill  <joel.sherrill@oarcorp.com>
21580
21581         * socket.c: Add extern int h_errno for rtems since networking header
21582         files are not available at this point in a tool bootstrap. Newlib
21583         only has basic C library header files.
21584
21585 2005-11-19  Richard Guenther  <rguenther@suse.de>
21586         Roger Sayle  <roger@eyesopen.com>
21587
21588         PR ada/23717
21589         * misc.c (internal_error_function): Don't use vsprintf to format
21590         the error message text, instead use pp_format_text and the new
21591         pretty printer APIs.  This allows handling of %qs, %w, etc.
21592
21593 2005-11-18  Laurent Guerby  <laurent@guerby.net>
21594
21595         PR ada/24857
21596         * Makefile.in: Use s-auxdec-empty for RTEMS.
21597
21598 2005-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21599
21600         PR ada/22333
21601         * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
21602         a temporary if taking the address of something that is neither
21603         reference, declaration, or constant, since the gimplifier
21604         can't handle that case.
21605
21606 2005-11-17  Laurent Guerby  <laurent@guerby.net>
21607
21608         PR ada/24857
21609         * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
21610
21611 2005-11-16  Richard Guenther  <rguenther@suse.de>
21612
21613         * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
21614
21615 2005-11-16  Joel Sherrill  <joel.sherrill@oarcorp.com>
21616
21617         PR ada/24855
21618         * raise-gcc.c: Add missing stdarg.h include.
21619  
21620 2005-11-16  Richard Guenther  <rguenther@suse.de>
21621
21622         * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
21623         (ada/misc.o): Likewise.
21624
21625 2005-11-14  Thomas Quinot  <quinot@adacore.com>
21626
21627         * g-soccon.ads: Minor reformatting. Update comments.
21628
21629         * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
21630         gain visibility on the declaration of struct timeval.
21631
21632         * g-soccon-freebsd.ads,
21633         g-soccon-darwin.ads,
21634         g-soccon-tru64.ads,
21635         g-soccon-aix.ads,
21636         g-soccon-irix.ads,
21637         g-soccon-hpux.ads,
21638         g-soccon-solaris.ads,
21639         g-soccon-vms.ads,
21640         g-soccon-mingw.ads,
21641         g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
21642
21643         * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
21644         g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
21645         g-soccon-linux-x86.ads: New files.
21646
21647         * g-socthi-mingw.adb: 
21648         (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
21649
21650         * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
21651         (time_t, suseconds_t): New types constructed to match the tv_sec
21652         and tv_usec fields of C struct timeval.
21653         (Timeval): Construct structure in terms of the new types.
21654         (Host_Errno): New function (imported from socket.c), returns last hosts
21655         database error.
21656
21657         * g-socthi-vxworks.adb:  Add error handling circuitry.
21658
21659         * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
21660         components of struct timeval.
21661         (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
21662         (Check_Selector): In error conditions, clear internal socket sets to
21663         avoid a memory leak.
21664         (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
21665         Send_Timeout, Receive_Timeout.
21666
21667         * g-socthi.ads (time_t, suseconds_t): New types constructed to match
21668         the tv_sec and tv_usec fields of C struct timeval.
21669         (Timeval): Construct structure in terms of the new types.
21670         (Host_Errno): New function (imported from socket.c), returns last hosts
21671         database error.
21672
21673         * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
21674         hosts database last error code.
21675
21676         * gen-soccon.c: Complete value expansion should not be performed on
21677         TARGET, as it has the form of a math expression, and some components
21678         may be platform-defined macros.
21679         For VxWorks, generate the OK and ERROR values.
21680         New constants giving the sizes of the components of C struct timeval.
21681
21682 2005-11-14  Robert Dewar  <dewar@adacore.com>
21683             Ed Schonberg  <schonberg@adacore.com>
21684
21685         PR ada/18434
21686         * types.ads: Include All_Checks in Suppress_Array
21687
21688         * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
21689         not(a=b), since we no longer do this rewriting, and hence it is not
21690         needed.
21691         (Elaboration_Checks_Suppressed): Add special casing to
21692         deal with different cases of static and dynamic elaboration checks (all
21693         checks does not count in the first case, but does in the second).
21694         (Expr_Known_Valid): Do not assume that the result of any arbitrary
21695         function call is valid, since this is not the case.
21696         (Ensure_Valid): Do not apply validity check to a real literal
21697         in a universal or fixed context
21698
21699         * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
21700         elementary types using the operator in standard. It is cleaner not to
21701         modify the programmers intent, especially in the case of floating-point.
21702         (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
21703         it did not matter because we always rewrote a/=b to not(a=b).
21704         (Expand_Allocator_Expression): For an allocator expression whose nominal
21705         subtype is an unconstrained packed type, convert the expression to its
21706         actual constrained subtype.
21707         Implement warning for <= or >= where < or > not possible
21708         Fix to Vax_Float tests (too early in many routines, causing premature
21709         Vax_Float expansions.
21710
21711         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
21712         to be used with packages and generic packages as well as with
21713         subprograms.
21714         (Suppress): Set All_Checks, but not Elaboration_Check, for case
21715         of pragma Suppress (All_Checks)
21716         (Analyze_Pragma, case Warnings): Implement first argument allowed to be
21717         a string literal for precise control over warnings.
21718         Avoid raise of pragma in case of unrecognized pragma and just return
21719         instead.
21720
21721         * sem_prag.ads: Minor reformatting
21722
21723         * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
21724         with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
21725         Switch. Do not handle any exception.
21726         Include -gnatwx as part of -gnatg (warn on redundant parens)
21727         Allow optional = after -gnatm
21728         (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
21729         longer sets Elaboration_Checks.
21730         Code to set warning mode moved to Sem_Warn
21731         so that it can be shared by pragma processing.
21732
21733         * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
21734         statement.
21735
21736         * s-taprop-solaris.adb: 
21737         Change some <= to =, to avoid new warning
21738
21739         * a-exexda.adb, prj-proc.adb: 
21740         Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
21741         Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
21742
21743 2005-11-14  Robert Dewar  <dewar@adacore.com>
21744
21745         * exp_vfpt.adb: Handle /= case
21746         (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
21747         so that we do not get duplicate scaling for fixed point conversions.
21748
21749         * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
21750
21751 2005-11-14  Matthew Gingell  <gingell@adacore.com>
21752
21753         * system-lynxos-ppc.ads, system-lynxos-x86.ads: 
21754         Increase default priority on Lynx from 15 to 17, and meet the Ada
21755         requirement that Default_Priority be ((Priority'First +
21756         Priority'Last) / 2) by increasing the range of Interrupt_Priority.
21757
21758 2005-11-14  Vincent Celier  <celier@adacore.com>
21759
21760         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
21761         mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
21762         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
21763         mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
21764         mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
21765         mlib-tgt-lynxos.adb (DLL_Prefix): New function
21766
21767 2005-11-14  Doug Rupp  <rupp@adacore.com>
21768
21769         * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
21770         private part.
21771
21772 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
21773
21774         * s-traces-default.adb, s-trafor-default.ads,
21775         s-tratas-default.adb: Fix compilation errors.
21776
21777 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
21778
21779         * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
21780         raising the exception so the memory used is freed.
21781
21782 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
21783
21784         * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
21785         (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
21786         (convert_address): Update comments and list of platforms using this.
21787
21788         * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
21789         no longer used.
21790
21791 2005-11-14  Pascal Obry  <obry@adacore.com>
21792             Vincent Celier  <celier@adacore.com>
21793
21794         * gnatdll.adb (Parse_Command_Line): Remove redundant use of
21795         GNAT.Command_Line.
21796
21797         * memroot.adb: Remove redundant with/use clause on
21798         System.Storage_Elements.
21799
21800 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
21801
21802         * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
21803         (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
21804         related code to a-exexpr.adb
21805         (Save_Occurrence_And_Private): Move GCC EH related code to
21806         a-exexpr-gcc.adb
21807         (Raise_Current_Excep): Add new variable Id with pragma
21808         volatile, to ensure that the variable lives on stack.
21809
21810         * a-exexpr-gcc.adb, raise-gcc.c: New file.
21811
21812         * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
21813         from a-except.adb.
21814         Move GCC EH related code to a-exexpr-gcc.adb
21815
21816         * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
21817         64-bit Solaris
21818         Split the Linux version of g-soccon into separate variants for 32 and 64
21819         bit platforms.
21820         (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
21821         vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
21822         install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
21823         of host variable $(RANLIB_FLAGS).
21824         (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
21825         Code clean up: remove unused/obsolete targets.
21826         (EH_MECHANISM): New variable introduced to differenciate between the
21827         two EH mechanisms statically.
21828         (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
21829         (LIBGNAT_OBJS): Add raise-gcc.o
21830         (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
21831         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
21832         supports VxWorks 6 RTPs.
21833         (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
21834         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
21835
21836         * raise.c: Move all GCC EH-related routines to raise-gcc.c
21837
21838 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
21839
21840         * s-tassta.adb (Create_Task): Move the code in charge of resetting the
21841         deferral level, when abort is not allowed, to a later stage (the
21842         Task_Wrapper).
21843         (Task_Wrapper): If Abort is not allowed, reset the deferral level since
21844         it will not get changed by the generated code. It was previously done
21845         in Create_Task.
21846
21847 2005-11-14  Thomas Quinot  <quinot@adacore.com>
21848             Olivier Hainque  <hainque@adacore.com>
21849             Eric Botcazou  <ebotcazou@adacore.com>
21850
21851         * decl.c:
21852         Factor common code to build a storage type for an unconstrained object
21853         from a fat or thin pointer type and a constrained object type.
21854         (annotate_value): Handle BIT_AND_EXPR.
21855         (annotate_rep): Don't restrict the back annotation of inherited
21856         components to the type_annotate_only case.
21857         (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
21858         we are not defining the type.
21859         <E_Record_Type>: Likewise.
21860         (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
21861         to get advantage of the new maybe_stabilize_reference interface, to
21862         ensure that what we reference is indeed stabilized instead of relying
21863         on assumptions on what the stabilizer does.
21864         (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
21865         type imported through a limited_with clause, use its non-limited view.
21866         (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
21867         differentiation.
21868         (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
21869         of #if sections + explicit comparisons of convention identifiers.
21870         (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
21871         before early-returning for certain types when code generation is
21872         disabled.
21873         (gnat_to_gnu_entity) <object>: Adjust comment attached to the
21874         nullification of gnu_expr we do for objects with address clause and
21875         that we are not defining.
21876         (elaborate_expression_1): Do not create constants when creating
21877         variables needed by the debug info: the dwarf2 writer considers that
21878         CONST_DECLs is used only to represent enumeration constants, and emits
21879         nothing for them.
21880         (gnat_to_gnu_entity) <object>: When turning a non-definition of an
21881         object with an address clause into an indirect reference, drop the
21882         initializing expression.
21883         Include "expr.h".
21884         (STACK_CHECK_BUILTIN): Delete.
21885         (STACK_CHECK_PROBE_INTERVAL): Likewise.
21886         (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
21887         (STACK_CHECK_MAX_VAR_SIZE): Likewise.
21888         (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
21889         corresponding to the renamed object as ignored for debugging purposes.
21890
21891         * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
21892         related): For a prefix that is a dereference of a fat or thin pointer,
21893         if there is an actual subtype provided by the front-end, use that
21894         subtype to build an actual type with bounds template.
21895         (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
21896         is provided by the front-end, use that subtype to compute the size of
21897         the deallocated object.
21898         (gnat_to_gnu): When adding a statement into an elaboration procedure,
21899         check for a potential violation of a No_Elaboration_Code restriction.
21900         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
21901         with extra arguments to control whether to recurse through non-values
21902         and to let the caller know if the stabilization has succeeded.
21903         (gnat_stabilize_reference): Now a simple wrapper around
21904         maybe_stabilize, for common uses without restriction on lvalues and
21905         without need to check for the success indication.
21906         (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
21907         pass false instead of 0 as the FORCE argument which is a bool.
21908         (Identifier_to_gnu): Remove checks ensuring that an renamed object
21909         attached to a renaming pointer has been properly stabilized, as no such
21910         object is attached otherwise.
21911         (call_to_gnu): Invoke create_var_decl to create the temporary when the
21912         function uses the "target pointer" return mechanism.
21913         Reinstate conversion of the actual to the type of the formal
21914         parameter before any other specific treatment based on the passing
21915         mechanism. This turns out to be necessary in order for PLACEHOLDER
21916         substitution to work properly when the latter type is unconstrained.
21917
21918         * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
21919         common pattern.
21920         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
21921         with extra arguments to control whether to recurse through non-values
21922         and to let the caller know if the stabilization has succeeded.
21923
21924         * utils2.c (gnat_build_constructor): Only sort the fields for possible
21925         static output of record constructor if all the components are constant.
21926         (gnat_build_constructor): For a record type, sort the list of field
21927         initializers in increasing bit position order.
21928         Factor common code to build a storage type for an unconstrained object
21929         from a fat or thin pointer type and a constrained object type.
21930         (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
21931         types variants, and process special cases of VIEW_CONVERT expressions
21932         as their NOP_EXPR counterpart to ensure we get to the
21933         CORRESPONDING_VARs associated with CONST_DECls.
21934         (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
21935         on the right-hand side.
21936
21937         * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
21938         a common pattern.
21939         (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
21940         are converting back to its original type.
21941         (convert) <JM input>: Fallthrough regular conversion code instead of
21942         extracting the object if converting to a type variant.
21943         (create_var_decl): When a variable has an initializer requiring code
21944         generation and we are at the top level, check for a potential violation
21945         of a No_Elaboration_Code restriction.
21946         (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
21947         SIZE and SIZE_UNIT which we need for later back-annotations.
21948         * utils.c: (convert) <STRING_CST>: Remove obsolete code.
21949         <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
21950         is an unchecked union.
21951         (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
21952         (convert) <VIEW_CONVERT_EXPR>: When the types have the same
21953         main variant, just replace the VIEW_CONVERT_EXPR.
21954         <UNION_TYPE>: Revert 2005-03-02 change.
21955
21956         * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
21957
21958         * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
21959
21960 2005-11-14  Matthew Heaney  <heaney@adacore.com>
21961
21962         * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads, 
21963         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb, 
21964         a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads, 
21965         a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb, 
21966         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
21967         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb: 
21968         Compiles against the spec for ordered maps described in sections
21969         A.18.6 of the most recent (August 2005) AI-302 draft.
21970
21971 2005-11-14  Olivier Hainque  <hainque@adacore.com>
21972
21973         * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
21974         to ensure bias adjustments take place when need be and to prevent
21975         occurrences of intermediate overflows.
21976
21977 2005-11-14  Matthew Gingell  <gingell@adacore.com>
21978             Olivier Hainque  <hainque@adacore.com>
21979
21980         * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
21981         ia64 HP-UX.
21982
21983         * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
21984         tracebacks on ia64 HP-UX and provide explanatory comment.
21985         Enable backtraces on ia64 GNU/Linux.
21986         (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
21987         base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
21988
21989 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
21990             Javier Miranda  <miranda@adacore.com>
21991
21992         * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
21993         exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
21994         exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
21995         einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
21996
21997         * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
21998         properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
21999         assertions).
22000
22001         * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
22002         subprogram that generates the external name associated with a
22003         secondary dispatch table.
22004         (Get_Secondary_DT_External_Name): New subprogram that generates the
22005         external name associated with a secondary dispatch table.
22006
22007 2005-11-14  Emmanuel Briot  <briot@adacore.com>
22008
22009         * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
22010         line in the ALI file to include both an instantiation reference, and a
22011         returned value.
22012
22013 2005-11-14  Vincent Celier  <celier@adacore.com>
22014
22015         * clean.adb (Check_Project): Look for Ada code in extending project,
22016         even if Ada is not specified as a language.
22017         Use new function DLL_Prefix for DLL_Name
22018         (Clean_Interface_Copy_Directory): New procedure
22019         (Clean_Library_Directory): New procedure
22020         (Clean_Directory): Remove procedure, no longer used
22021         (Clean_Project): Do not delete any file in an externally built project
22022
22023         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
22024         directory of an extending project, even when there are no Ada source
22025         present.
22026         (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
22027         (Set_Ada_Paths.Add.Recursive_Add): Ditto
22028
22029         * mlib-prj.adb (Check_Library): For all library projects, get the
22030         library file timestamp.
22031         (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
22032         (Build_Library): Use new function DLL_Prefix for the DLL_Name
22033         (Clean): Remove procedure, no longer used
22034         (Ultimate_Extension_Of): New function
22035         (Build_Library): When cleaning the library directory, only remove an
22036         existing library file and any ALI file of a source of the project.
22037         When cleaning the interface copy directory, remove any source that
22038         could be a source of the project.
22039
22040         * prj.ads, prj.adb (Project_Empty): Add values of new components
22041         Library_TS and All_Imported_Projects.
22042         (Project_Empty): Add values for new components of Project_Data:
22043         Library_ALI_Dir and Display_Library_ALI_Dir
22044
22045         * prj-attr.adb: New project level attribute name Library_ALI_Dir
22046
22047         * prj-nmsc.adb (Check_Library_Attributes): Take into account new
22048         attribute Library_ALI_Dir.
22049         (Check_Library_Attributes): The library directory cannot be the same as
22050         any source directory of the project tree.
22051         (Check_Stand_Alone_Library): The interface copy directory cannot be
22052         the same as any source directory of the project tree.
22053
22054         * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
22055         all temporary files.
22056
22057 2005-11-14  Robert Dewar  <dewar@adacore.com>
22058             Ed Schonberg  <schonberg@adacore.com>
22059
22060         * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22061         (Check_Elab_Call): A call within a protected body is never an
22062         elaboration call, and does not require checking.
22063         (Same_Elaboration_Scope): Take into account protected types for both
22064         entities.
22065         (Activate_Elaborate_All_Desirable): New procedure
22066
22067         * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
22068         desirable
22069
22070         * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
22071         (Elab_Error_Msg): Use -da to include internal unit links, not -de.
22072
22073         * lib-writ.ads, lib-writ.adb: 
22074         Implement new AD/ED for Elaborate_All/Elaborate desirable
22075         Use new Elaborate_All_Desirable flag in N_With_Clause node
22076
22077         * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
22078         N_Free_Statement nodes.
22079         Define new class N_Subprogram_Instantiation
22080         Add Elaborate_Desirable flag to N_With_Clause node
22081         Add N_Delay_Statement (covering two kinds of delay)
22082
22083         * debug.adb: Introduce d.f flag for compiler
22084         Add -da switch for binder
22085
22086 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22087             Cyrille Comar  <comar@adacore.com>
22088
22089         * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
22090         for task component, in the case of a limited aggregate. The enclosed
22091         object declaration will create it earlier. Otherwise, in the case of a
22092         nested aggregate, the object may appear in the wrong scope.
22093         (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
22094         (Gen_Assign): If the component being assigned is an array type and the
22095         expression is itself an aggregate, wrap the assignment in a block to
22096         force finalization actions on the temporary created for each row of the
22097         enclosing object.
22098         (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
22099         structures are initialized after all discriminants are set so that
22100         they can be accessed even when their offset is dynamic.
22101
22102 2005-11-14  Robert Dewar  <dewar@adacore.com>
22103             Hristian Kirtchev  <kirtchev@adacore.com>
22104
22105         * sem_attr.adb: Implement Machine_Rounding attribute
22106         (Analyze_Access_Attribute): The access attribute may appear within an
22107         aggregate that has been expanded into a loop.
22108         (Check_Task_Prefix): Add semantic check for attribute 'Callable and
22109         'Terminated whenever the prefix is of a task interface class-wide type.
22110         (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
22111         the prefix is of a task interface class-wide type.
22112
22113         * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
22114         to avoid warnings.
22115
22116         * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
22117         Remove pragma Inline for [Unaligned_]Valid.
22118         Add comments that Valid routines do not work for Vax_Float
22119
22120         * exp_attr.adb: Implement Machine_Rounding attribute
22121
22122         * snames.h: Add entry for Machine_Rounding attribute
22123
22124 2005-11-14  Javier Miranda  <miranda@adacore.com>
22125             Robert Dewar  <dewar@adacore.com>
22126             Hristian Kirtchev  <kirtchev@adacore.com>
22127
22128         * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
22129         and related): For a prefix that is an explicit dereference of an
22130         access to unconstrained packed array type, annotate the dereference
22131         with an actual subtype so GIGI can make a correct size computation.
22132         (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
22133         'Unrestricted_Access, if the designated type is an interface we
22134         add a type conversion to force the displacement of the pointer
22135         to the secondary dispatch table.
22136         Use Universal_Real instead of Long_Long_Float when we need a high
22137         precision float type for the generated code (prevents gratuitous
22138         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
22139         (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
22140         'Terminated for task interface class-wide objects. Generate a call to
22141         the predefined dispatching routine used to retrieve the _task_id from
22142         a task corresponding record.
22143         (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
22144
22145         * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22146         (Check_Dispatching_Operation): Protect the frontend againts
22147         previously detected errors.
22148
22149         * Makefile.rtl: Add new instantiations of system.fat_gen
22150
22151         * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads: 
22152         Change name of instantiated package for better consistency
22153         with newly added system.fat_gen instantiations.
22154
22155         * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
22156         s-fvagfl.ads: New files.
22157
22158 2005-11-14  Cyrille Comar  <comar@adacore.com>
22159             Thomas Quinot  <quinot@adacore.com>
22160
22161         * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
22162         assignment of a value of a tagged type that has been rewritten to a
22163         block statement, it is known by construction that no checks are
22164         necessary for the statements within the block: analyze it with checks
22165         suppressed.
22166         (Expand_N_If_Statement): When killing a dead then-branch in an
22167         if-statement that has elsif_parts, recompute the Current_Value node
22168         for any entity whose value is known from the condition of the first
22169         elsif_part.
22170         (Expand_N_Return_Statement): When returning a mutable record, convert
22171         the return value into its actual subtype in order to help the backend
22172         to return the actual size instead of the maximum. This is another
22173         aftermath of not returning mutable records on the sec-stack anymore.
22174
22175         * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
22176         handling of error msg for suspicious reverse range iteration.
22177         (Check_Possible_Current_Value_Condition): Move declaration from body to
22178         spec, to allow this subprogram to be called from exp_ch5.
22179
22180 2005-11-14  Thomas Quinot  <quinot@adacore.com>
22181
22182         * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
22183         generate a set of nested array aggregates instead of a single flat
22184         aggregate for multi-dimensional arrays.
22185
22186 2005-11-14  Pascal Obry  <obry@adacore.com>
22187
22188         * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
22189         by spawnve is a process handle, no need to convert. Add a parameter
22190         close to control wether the process handle must be closed.
22191         (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
22192         a process handle, not need to convert.
22193         (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
22194
22195         * g-expect.adb: (Kill): Document the new close parameter.
22196         (Close): Do not release the process handle in the kill there as
22197         waitpid() is using it.
22198         (Send_Signal): Release the process handle.
22199
22200 2005-11-14  Robert Dewar  <dewar@adacore.com>
22201
22202         * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
22203         need a high precision float type for the generated code (prevents
22204         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
22205         used).
22206
22207         * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
22208         need a high precision float type for the generated code (prevents
22209         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
22210         used).
22211         (Expand_Width_Attribute): In configurable run-time, the attribute is not
22212         allowed on non-static enumeration subtypes. Force a load error to emit
22213         the correct diagnostic.
22214
22215 2005-11-14  Thomas Quinot  <quinot@adacore.com>
22216             Robert Dewar  <dewar@adacore.com>
22217             Ed Schonberg  <schonberg@adacore.com>
22218
22219         * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
22220         subtype to compute the size of the designated object at run-time,
22221         create such a subtype and store it in the Actual_Designated_Subtype
22222         attribute of the N_Free_Statement.
22223         Generate itype for classwide designated object in both cases of
22224         user-specified storage pool: specific and class-wide, not only in the
22225         specific case.
22226         Raise CE when trying to set a not null access type object to null.
22227         (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
22228         an explicit loop, because freeze nodes make its position variable.
22229
22230         * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
22231         null object.
22232
22233 2005-11-14  Javier Miranda  <miranda@adacore.com>
22234
22235         * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
22236         Build_Stream_Procedure): Add the null-excluding attribute to the first
22237         formal.
22238         This has no semantic meaning under Ada95 mode but it is a
22239         requirement under Ada05 mode.
22240
22241         * par-ch3.adb (P_Access_Definition): Addition of warning message if
22242         the null exclusion is used under Ada95 mode
22243         (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
22244         (P_Access_Definition): Remove assertion that forbids the use of
22245         the null-exclusion feature in Ada95.
22246
22247 2005-11-14  Robert Dewar  <dewar@adacore.com>
22248
22249         * impunit.adb: Exclude container helper units not intended for use by
22250         users.
22251
22252 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22253
22254         * freeze.adb (Freeze_Entity): For an access formal that is an access
22255         to subprogram, freeze the anonymous subprogram type at the same time,
22256         to prevent later freezing in the wrong scope, such as the enclosing
22257         subprogram body.
22258         (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
22259         subprogram whenever available.
22260
22261 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
22262
22263         PR ada/23732
22264         * gnatvsn.ads (Library_Version): Bump to 4.1
22265
22266 2005-11-14  Robert Dewar  <dewar@adacore.com>
22267
22268         * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
22269         Storage_Offset to avoid wrap around causing invalid results.
22270
22271 2005-11-14  Pascal Obry  <obry@adacore.com>
22272
22273         * gnatbind.adb (Is_Cross_Compiler): New function returning True for
22274         cross-compiler.
22275         (Scan_Bind_Arg): Fail with an error message if -M option is used
22276         on a native compiler.
22277
22278 2005-11-14  Robert Dewar  <dewar@adacore.com>
22279             Vincent Celier  <celier@adacore.com>
22280
22281         * gprep.adb: Implement -C switch to scan comments
22282
22283         * scng.adb: Scan comment symbol separately if Replace_In_Comments set
22284
22285         * scans.ads: Comment updates (including new use of Tok_Comment in
22286         preprocessing)
22287
22288         * opt.ads: Add documentation for flags that are used by gprmake,
22289         currently and in the next version of gprmake.
22290         (Verbosity_Level): New variable
22291         Add Replace_In_Comments switch
22292
22293         * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
22294         and -vm.
22295         Add /REPLACE_IN_COMMENTS for gnatprep -C switch
22296
22297 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
22298
22299         * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
22300         message, friendlier.
22301
22302 2005-11-14  Robert Dewar  <dewar@adacore.com>
22303
22304         * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
22305
22306 2005-11-14  Doug Rupp  <rupp@adacore.com>
22307
22308         * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
22309
22310 2005-11-14  Robert Dewar  <dewar@adacore.com>
22311
22312         * interfac.ads: Change declarations of IEEE float types so that we no
22313         longer need a separate version of this package for VMS.
22314
22315 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22316
22317         * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
22318         internal entity created for the declaration of a child subprogram body
22319         with no spec as coming from source, to generate proper cross-reference
22320         information.
22321
22322 2005-11-14  Vincent Celier  <celier@adacore.com>
22323
22324         * make.adb (Compile_Sources): Change verbose message to minimum
22325         verbosity level High for "is in an Ada library", "is a read-only
22326         library" and "is an internal library",
22327         (Create_Binder_Mapping_File): Path name of ALI file for library project
22328         must include the library directory, not the object directory.
22329         (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
22330         for new switches -vl, -vm and -vh.
22331         (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
22332         (Check): Use minimum verbosity Medium for some Verbose_Msg calls
22333         (Compile_Sources): Do not attempt to compile if an ALI file is missing
22334         in a project that is externally built.
22335         (Compute_All_Imported_Projects): New procedure
22336         (Gnatmake): Check if importing libraries should be regenerated because
22337         at least an imported library is more recent.
22338         (Initialize): For each project compute the list of the projects it
22339         imports directly or indirectly.
22340         (Add_Library_Search_Dir): New procedure, used in place of
22341         Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
22342         put in the search paths.
22343         (Add_Source_Search_Dir): New procedure, used in place of
22344         Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
22345         put in the search paths.
22346         (Mark_Directory): Resolve the absolute path the directory before marking
22347         it.
22348
22349         * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
22350         call to new procedure Bad_Switch. Call Scan_Pos with new parameter
22351         Switch. Do not handle any exception.
22352         (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
22353         so that the switch is recognized as valid.
22354         (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
22355
22356 2005-11-14  GNAT Script  <nobody@adacore.com>
22357
22358         * Make-lang.in: Makefile automatically updated
22359
22360 2005-11-14  Pascal Obry  <obry@adacore.com>
22361
22362         * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
22363         used.
22364         (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
22365         In both cases the last argument was dropped.
22366
22367 2005-11-14  Eric Botcazou  <ebotcazou@adacore.com>
22368
22369         * namet.h: (Column_Numbe): New type.
22370         (Get_Column_Number): Define to sinput__get_column_number.
22371         (Instantiation): Define to sinput__instantiation.
22372         (Get_Column_Number): Declare.
22373         (Instantiation): Likewise.
22374
22375 2005-11-14  Robert Dewar  <dewar@adacore.com>
22376
22377         * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
22378         syntax, which could cause compiler hangs.
22379
22380 2005-11-14  Vincent Celier  <celier@adacore.com>
22381
22382         * prj-ext.adb: Take into account new environment variable
22383         GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
22384         are defined.
22385         (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
22386         normalize its path name, making it absolute and resolving symbolic
22387         links, and replace the original if resolved path is different.
22388
22389 2005-11-14  Vincent Celier  <celier@adacore.com>
22390
22391         * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
22392         into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
22393
22394 2005-11-14  Emmanuel Briot  <briot@adacore.com>
22395
22396         * prj-pp.adb (Print): Do not output the with statement if the
22397         associated name is empty, which happens for virtual extending projects.
22398         (Print): Preserve the "extends all" attribute when printing the project.
22399
22400         * prj-tree.ads (String_Value_Of): Add comment about returned value for
22401         a virtual extending project.
22402
22403 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22404
22405         * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
22406         rhs of an assignment even if the type is unconstrained, when the
22407         context is non-expanding.
22408         In an inlined body, if the context type is private,
22409         resolve with its full view, which must be a composite type.
22410
22411 2005-11-14  Robert Dewar  <dewar@adacore.com>
22412             Ed Schonberg  <schonberg@adacore.com>
22413
22414         * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22415         Do not give obsolescent warning on with of subprogram (since we
22416         diagnose calls)
22417         (Analyze_With_Clause): Add test for obsolescent package
22418         (Install_Context_Clauses): If the unit is the body of a child unit, do
22419         not install twice the private declarations of the parents, to prevent
22420         circular lists of Use_Clauses in a parent.
22421         (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
22422         compiling body of child unit.
22423         Use new class N_Subprogram_Instantiation
22424         (Expand_With_Clause): If this is a private with_clause for a child unit,
22425         appearing in the context of a package declaration, then the implicit
22426         with_clauses generated for parent units are private as well.
22427         (License_Check): Do not generate message if with'ed unit is internal
22428
22429 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
22430             Ed Schonberg  <schonberg@adacore.com>
22431             Thomas Quinot  <quinot@adacore.com>
22432
22433         * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
22434         names are internal, because they will not have a corresponding partner
22435         in the actual package.
22436         (Analyze_Formal_Package): Move the setting of the formal package spec's
22437         Generic_Parent field so that it occurs prior to analyzing the package,
22438         to allow proper operation of Install_Parent_Private_Declarations.
22439         (Analyze_Package_Instantiation): Set the instantiated package entity's
22440         Package_Instantiation field.
22441         (Get_Package_Instantiation_Node): Move declaration to package spec.
22442         Retrieve the N_Package_Instantiation node when the Package_Instantiation
22443         field is present.
22444         (Check_Generic_Child_Unit): Within an inlined call, the only possible
22445         instantiation is Unchecked_Conversion, for which no parents are needed.
22446         (Inline_Instance_Body): Deinstall and record the use_clauses for all
22447         parent scopes of a scope being removed prior to inlining an instance
22448         body.
22449         (Analyze_Package_Instantiation): Do not perform front-end inlining when
22450         the current context is itself an instance within a non-instance child
22451         unit, to prevent scope stack errors.
22452         (Save_References): If the node is an aggregate that is an actual in a
22453         call, rewrite as a qualified expression to preserve some type
22454         information, to resolve possible ambiguities in the instance.
22455         (Instance_Parent_Unit): New global variable to record the ultimate
22456         parent unit associated with a generic child unit instance (associated
22457         with the existing Parent_Unit_Visible flag).
22458         (type Instance_Env): New component Instance_Parent_Unit for stacking
22459         parents recorded in the global Instance_Parent_Unit.
22460         (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
22461         stack.
22462         (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
22463         it's not a top-level unit, and only do this if Instance_Parent_Unit is
22464         not already set. Replace test of Is_Child_Unit with test of parent's
22465         scope against package Standard. Add comments and a ??? comment.
22466         (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
22467         on a child instance parent to test that the parent equals
22468         Instance_Parent rather than simply checking that the unit is not a
22469         child unit.
22470         (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
22471         (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
22472         a formal interface are ancestors of the corresponding actual.
22473         (Validate_Formal_Interface_Type): Additional legality checks.
22474         (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
22475         interface types with ancestors.
22476         (Analyze_Formal_Package): If formal is a renaming, use renamed entity
22477         to diagnose attempts to use generic within its own declaration.
22478
22479 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22480             Javier Miranda  <miranda@adacore.com>
22481
22482         * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
22483         discriminant.
22484         (Build_Private_Derived_Type): The entity of the created full view of the
22485         derived type does not come from source. If after installing the private
22486         declarations of the parent scope the parent is still private, use its
22487         full view to construct the full declaration of the derived type.
22488         (Build_Derived_Record_Type): Relax the condition that controls the
22489         execution of the check that verifies that the partial view and
22490         the full view agree in the set of implemented interfaces. In
22491         addition, this test now only takes into account the progenitors.
22492         (Derive_Interface_Subprograms): No need to derive subprograms
22493         of ancestors that are interfaces.
22494         (Derive_Subprograms): Remove formal No_Predefined_Prims and the
22495         associated code.
22496         Change name Is_Package to Is_Package_Or_Generic_Package
22497         (Complete_Subprograms_Derivation): Handle the case in which the full
22498         view is a transitive derivation of the ancestor of the partial view.
22499         (Process_Full_View): Rename local subprogram Find_Interface_In_
22500         Descendant to Find_Ancestor_Interface to leave the code more clear.
22501         Remove wrong code that avoids the generation of an error message
22502         when the immediate ancestor of the partial view is an interface.
22503         In addition some minor reorganization of the code has been done to
22504         leave it more clear.
22505         (Analyze_Type_Declaration): If type has previous incomplete tagged
22506         partial view, inherit properly its primitive operations.
22507         (Collect_Interfaces): Make public, for analysis of formal
22508         interfaces.
22509         (Analyze_Interface_Declaration): New procedure for use for regular and
22510         formal interface declarations.
22511         (Build_Derived_Record_Type): Add support for private types to the code
22512         that checks if a tagged type implements abstract interfaces.
22513         (Check_Aliased_Component_Type): The test applies in the spec of an
22514         instance as well.
22515         (Access_Type_Declaration): Clean up declaration of malformed type
22516         declared as an access to its own classwide type, to prevent cascaded
22517         crash.
22518         (Collect_Interfaces): For private extensions and for derived task types
22519         and derived protected types, the parent may be an interface that must
22520         be included in the interface list.
22521         (Access_Definition): If the designated type is an interface that may
22522         contain tasks, create Master_Id for it before analyzing the expression
22523         of the declaration, which may be an allocator.
22524         (Record_Type_Declaration): Set properly the interface kind, for use
22525         in allocators, the creation of master id's for task interfaces, etc.
22526
22527 2005-11-14  Javier Miranda  <miranda@adacore.com>
22528             Ed Schonberg  <schonberg@adacore.com>
22529
22530         * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
22531         omitted in case of stream attribute subprograms.
22532         (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
22533         appear immediately after a subprogram body, when there is no previous
22534         subprogram declaration.
22535         Change name Is_Package to Is_Package_Or_Generic_Package
22536         (Process_Formals): A non null qualifier on a non null named access
22537         type is not an error, and is a warning only if Redundant_Constructs
22538         are flagged.
22539
22540 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
22541             Ed Schonberg  <schonberg@adacore.com>
22542
22543         * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
22544         nested within Analyze_Package_Specification to install the private
22545         declarations and use clauses within each of the parent units of a
22546         package instance of a generic child package.
22547         (Analyze_Package_Specification): When entering a private part of a
22548         package associated with a generic instance or formal package, the
22549         private declarations of the parent must be installed (by calling new
22550         procedure Install_Parent_Private_Declarations).
22551         Change name Is_Package to Is_Package_Or_Generic_Package
22552         (Preserve_Full_Attributes): For a synchronized type, the corresponding
22553         record is absent in a generic context, which does not indicate a
22554         compiler error.
22555
22556 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22557
22558         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
22559         not try to rewrite a renamed stream attribute, because the operations
22560         on the type may not have been generated.
22561         Handle properly a renaming_as_body generated for a stream operation
22562         whose default is abstract because the object type itself is abstract.
22563         (Find_Type): If the type is incomplete and appears as the prefix of a
22564         'Class reference, it is tagged, and its list of primitive operations
22565         must be initialized properly.
22566         (Chain_Use_Clauses): When chaining the use clauses that appear in the
22567         private declaration of a parent unit, prior to compiling the private
22568         part of a child unit, find on the scope stack the proper parent entity
22569         on which to link the use clause.
22570         (Note_Redundant_Use): Emit a warning when a redundant use clause is
22571         detected.
22572         (Analyze_Object_Renaming): An attribute reference is not a legal object
22573         if it is not a function call.
22574
22575 2005-11-14  Robert Dewar  <dewar@adacore.com>
22576             Ed Schonberg  <schonberg@adacore.com>
22577
22578         * sem_eval.adb: Implement d.f flag
22579         (Subtype_Statically_Match): A generic actual type has unknown
22580         discriminants when the corresponding actual has a similar partial view.
22581         If the routine is called to validate the signature of an inherited
22582         operation in a child instance, the generic actual matches the full view,
22583
22584 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
22585             Ed Schonberg  <schonberg@adacore.com>
22586             Robert Dewar  <dewar@adacore.com>
22587             Thomas Quinot  <quinot@adacore.com>
22588
22589         * sem_res.adb (Resolve_Call): Provide a better error message whenever
22590         a procedure call is used as a select statement trigger and is not an
22591         entry renaming or a primitive of a limited interface.
22592         (Valid_Conversion): If the operand has a single interpretation do not
22593         remove address operations.
22594         (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
22595         statement to inhibit warning.
22596         (Resolve_Unary_Op): Do not produce a warning when
22597         processing an expression of the form -(A mod B)
22598         Use Universal_Real instead of Long_Long_Float when we need a high
22599         precision float type for the generated code (prevents gratuitous
22600         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
22601         (Resolve_Concatenation_Arg): Improve error message when argument is an
22602         ambiguous call to a function that returns an array.
22603         (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
22604         there is an implicit operator in the given scope if we are within an
22605         instance: legality check has been performed on the generic.
22606         (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
22607         after resolving operand, to avoid false warnings on overloaded calls.
22608
22609 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22610             Javier Miranda  <miranda@adacore.com>
22611
22612         PR ada/15604
22613         * sem_type.adb (Covers): In an inlined body, a composite type matches
22614         a private type whose full view is a composite type.
22615         (Interface_Present_In_Ancestor): Protect the frontend against
22616         previously detected errors to ensure that its compilation
22617         with assertions enabled gives the same output that its
22618         compilation without assertions.
22619         (Interface_Present_In_Ancestor): Add support for private types.
22620         Change name In_Actual to In_Generic_Actual (clean up)
22621         (Disambiguate): New predicate In_Actual, to recognize expressions that
22622         appear in the renaming declaration generated for generic actuals, and
22623         which must be resolved in the outer context.
22624
22625 2005-11-14  Robert Dewar  <dewar@adacore.com>
22626             Thomas Quinot  <quinot@adacore.com>
22627             Hristian Kirtchev  <kirtchev@adacore.com>
22628             Ed Schonberg  <schonberg@adacore.com>
22629
22630         * sem_util.ads, sem_util.adb: Change name Is_Package to
22631         Is_Package_Or_Generic_Package.
22632         (Check_Obsolescent): New procedure.
22633         (Set_Is_Public): Remove obsolete junk test.
22634         (Set_Public_Status): Do not set Is_Public on an object whose declaration
22635         occurs within a handled_sequence_of_statemets.
22636         (Is_Controlling_Limited_Procedure): Factor some of the logic, account
22637         for a parameterless procedure.
22638         (Enter_Name): Recognize renaming declarations created for private
22639         component of a protected type within protected operations, so that
22640         the source name of the component can be used in the debugger.
22641
22642 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22643             Robert Dewar  <dewar@adacore.com>
22644
22645         * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
22646         of a generic subprogram are not visible outside the body.
22647         (Set_Warning_Switch): New procedure (code to set warning mode moved
22648         here from Switch.C so that it can be shared by pragma processing.
22649         (Check_References): Special case warning for non-modified non-imported
22650         volatile objects.
22651         * par-prag.adb: Modify processing of pragma Warnings to accomodate new
22652         form with a string literal argument
22653
22654 2005-11-14  Javier Miranda  <miranda@adacore.com>
22655
22656         * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
22657         anonymous access.
22658         (Write): Addition of "not null" to the anonymous access.
22659         (Read): Addition of "not null" to the anonymous access.
22660         (Write): Addition of "not null" to the anonymous access.
22661
22662         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
22663         I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
22664         I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
22665         (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
22666         W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
22667         "not null" to the anonymous access.
22668
22669 2005-11-14  Robert Dewar  <dewar@adacore.com>
22670
22671         * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
22672         offset values
22673
22674 2005-11-14  Vincent Celier  <celier@adacore.com>
22675
22676         * switch.adb (Bad_Switch): New procedure
22677         (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
22678         message when in error.
22679
22680         * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
22681         Too_Many_Output_Files): Remove declarations, no longer used.
22682         (Scan_Nat): New parameter Switch
22683         (Scan_Pos): Ditto
22684         (Bad_Switch): New procedure
22685
22686         * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
22687         with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
22688         new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
22689         to Osint.Fail. Do not handle any exception.
22690
22691 2005-11-14  Vincent Celier  <celier@adacore.com>
22692
22693         * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
22694         designates a non existent directory.
22695
22696 2005-11-14  Robert Dewar  <dewar@adacore.com>
22697
22698         * xgnatugn.adb: Replace invalid membership test by 'Valid
22699
22700 2005-11-14  Vincent Celier  <celier@adacore.com>
22701
22702         * makegpr.adb (Gprmake): Do not attempt to build the global archive if
22703         there is no object directory.
22704
22705 2005-11-14  Robert Dewar  <dewar@adacore.com>
22706
22707         * usage.adb: Minor adjustment to output format, use nn instead of nnn
22708         (so that -gnateInnn does not run into next column)
22709
22710 2005-11-14  Ed Falis  <falis@adacore.com>
22711
22712         * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
22713         "constrained"
22714
22715 2005-11-14  Cyrille Comar  <comar@adacore.com>
22716
22717         * s-chepoo.ads: Add comments on Dereference.
22718         Remove unnecessary inherited abstract primitives.
22719         Cosmetic cleanup.
22720
22721 2005-11-14  Robert Dewar  <dewar@adacore.com>
22722
22723         * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
22724         node parameter, not needed, since it is available as Declaration_Node.
22725
22726 2005-11-14  Geert Bosch  <bosch@adacore.com>
22727
22728         * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
22729         grammatically correct.
22730
22731 2005-11-14  Vincent Celier  <celier@adacore.com>
22732
22733         * s-fileio.ads: Correct spelling error in comment
22734
22735 2005-11-14  Cyrille Comar  <comar@adacore.com>
22736             Robert Dewar  <dewar@adacore.com>
22737             Vincent Celier  <celier@adacore.com>
22738             Ben Brosgol  <brosgol@adacore.com>
22739             Jose Ruiz  <ruiz@adacore.com>
22740             Pascal Obry  <obry@adacore.com>
22741
22742         * gnat_ugn.texi: 
22743         Document that -fstack-check is needed for strict compliance with the
22744         Ada 95 Reference Manual.
22745         Correct reference to VAX systems to meet HP guidelines
22746         Add documentation for new gnatmake switches -vl, -vm and -vh
22747         Replace DEC Ada by HP Ada
22748         Replace DIGITAL by HP
22749         Remove empty section on tools in compatibility section
22750         Clarify the Windows convention semantics.
22751         Document the Win32 calling convention.
22752         The Stdcall, Win32 and DLL convention are synonyms.
22753         Add a note in -gnatR description about zero size record components
22754         Note on new >= and <= warnings for -gnatwc
22755         Document that equal sign after -gnatm is optional.
22756         Note that strip is working fine on DLL built with a Library
22757         Project. The restriction apply only to DLL built with gnatdll.
22758         Update section about the way to debug a DLL.
22759         Update information about the DLL convention.
22760         Document -C switch for gnatprep
22761         Document new attribute Library_ALI_Dir
22762         Update elaboration doc to include implicit Elaborate pragmas now
22763         generated for subprogram instantiations.
22764         Document limitation on executable names that include spaces for --GCC,
22765         --GNATBIND, and --GNATLINK switches.
22766         Document that -w causes -gnatws to be added at start of gcc switches
22767
22768         * gnat_rm.texi: Document that -mieee is needed for generating infinite
22769         and NaN values in case of overflow on machines that are not fully
22770         compliant with the IEEE floating-point standard.
22771         Create a section describing the set of compiler options needed for
22772         strict compliance with the Ada 95 Reference Manual.
22773         Add documentation for pragma Obsolescent applied to a package
22774         Clarify potential issues of mixed language programs related to the
22775         I/O buffering enabling in the elaboration of the GNAT runtime.
22776         Add extra documentation for pragma Restrictions (No_Elaboration_Code)
22777         This documentation only patch adds extra documentsion for pragma
22778         Restrictions (No_Elaboration_Code), explaining why it is not possible
22779         to document this restriction in terms of allowed source constructs.
22780         Document string literal form of pragma Warnings
22781         Document new attribute Library_ALI_Dir
22782         Add documentation on stable attributes in project files that was missing
22783
22784         * gnat-style.texi: Indicate that paragraphs within a single comment
22785         should be separated by empty comment lines
22786
22787         * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
22788         /05 respectively)
22789
22790         * bindusg.adb: Minor cleanup, put -m before -M for consistency
22791
22792 2005-11-14  Robert Dewar  <dewar@adacore.com>
22793
22794         * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
22795         a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
22796         a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
22797         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
22798         a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
22799         a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
22800         a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
22801         a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
22802         a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
22803         a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
22804         a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
22805         a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
22806         g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
22807         a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
22808         a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
22809         system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
22810         g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
22811         g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
22812         a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
22813         a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
22814         a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
22815         a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
22816         a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
22817         a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
22818         system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
22819         system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
22820         a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
22821         a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
22822         a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
22823         system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
22824         system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
22825         s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
22826         system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
22827         system-interix.ads, system-solaris-sparc.ads,
22828         system-solaris-sparcv9.ads, s-inmaop-vms.adb,
22829         s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
22830         system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
22831         s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
22832         a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
22833         a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
22834         a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
22835         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
22836         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
22837         a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
22838         a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
22839         a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
22840         a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
22841         a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
22842         a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
22843         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
22844         a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
22845         a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
22846         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
22847         a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
22848         a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
22849         a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
22850         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
22851         a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
22852         a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
22853         a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
22854         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
22855         a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
22856         a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
22857         a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
22858         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
22859         a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
22860         a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
22861         a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
22862         bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
22863         csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
22864         errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
22865         errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
22866         exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
22867         exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
22868         freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
22869         g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
22870         g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
22871         g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
22872         g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
22873         g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
22874         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
22875         g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
22876         g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
22877         gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
22878         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
22879         g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
22880         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
22881         g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
22882         g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
22883         g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
22884         layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
22885         mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
22886         mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
22887         nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
22888         osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
22889         par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
22890         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
22891         par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
22892         prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
22893         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
22894         prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
22895         prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
22896         sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
22897         sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
22898         sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
22899         sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
22900         s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
22901         sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
22902         s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
22903         s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
22904         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
22905         s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
22906         s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
22907         s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
22908         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
22909         s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
22910         s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
22911         s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
22912         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
22913         s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
22914         s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
22915         s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
22916         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
22917         s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
22918         s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
22919         s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
22920         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
22921         s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
22922         s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
22923         s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
22924         s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
22925         s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
22926         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
22927         s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
22928         styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
22929         s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
22930         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
22931         s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
22932         s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
22933         s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
22934         s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
22935         s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
22936         s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
22937         s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
22938         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
22939         table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
22940         tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
22941         ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
22942         usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
22943         xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
22944         xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
22945         a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
22946         a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
22947         a-numaux-darwin.ads, a-numaux-darwin.adb,
22948         a-swuwha.ads, a-stunha.ads: Minor reformatting
22949
22950 2005-11-14  Robert Dewar  <dewar@adacore.com>
22951
22952         PR ada/18434
22953         * osint-m.adb: Add pragma Elaborate_All for Osint
22954
22955 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
22956
22957         PR ada/23995
22958         * trans.c (call_to_gnu): Restore statement lost in translation.
22959
22960 2005-11-08  Eric Botcazou  <ebotcazou@adacore.com>
22961
22962         * init.c: Use the Linux-specific section for the IA-64/Linux target.
22963         (__gnat_adjust_context_for_raise): Add conditional code so that the
22964         IA-64 is also supported.
22965
22966 2005-11-03  James E Wilson  <wilson@specifix.com>
22967
22968         PR ada/23427
22969         * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
22970         TREE_OVERFLOW check.
22971
22972 2005-09-21  Olivier Hainque  <hainque@adacore.com>
22973
22974         PR ada/22418
22975         * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
22976         as we create them to store a size in bits.
22977
22978 2005-10-21  Eric Botcazou  <ebotcazou@adacore.com>
22979
22980         PR ada/21937
22981         PR ada/22328
22982         PR ada/22381
22983         PR ada/22383
22984         PR ada/22419
22985         PR ada/22420
22986         * utils2.c (build_return_expr): New helper function.
22987         * gigi.h (build_return_expr): Declare it.
22988         * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
22989         of manually building the RETURN_EXPR tree.
22990         (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
22991         (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
22992         build_binary_op for the "target pointer" case.  Use build_return_expr
22993         instead of manually building the RETURN_EXPR tree.
22994
22995 2005-09-16  Laurent Guerby  <laurent@guerby.net>
22996
22997         PR ada/23788
22998         * s-tpinop.ads: Make this unit Preelaborate.
22999
23000 2005-09-16  Andreas Jaeger  <aj@suse.de>
23001
23002         * socket.c: Add string.h for memcpy.
23003
23004 2005-09-05  Arnaud Charlet  <charlet@adacore.com>
23005
23006         * dec-io.ads, dec-io.adb: Removed, no longer used.
23007
23008 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23009
23010         * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
23011
23012         * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
23013         s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
23014         s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
23015         s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
23016         dependent units are Preelaborate.
23017         (Initialize): Call Interrupt_Managemeent.Initialize and
23018         OS_Primitives.Initialize to ensure proper initialization of this unit.
23019         Remove use of System.Soft_Links
23020         Make this unit Preelaborate.
23021
23022         * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
23023         s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
23024         s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
23025         s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
23026         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
23027         s-tratas.ads, s-tasinf.ads: Minor reformatting.
23028         Add pragma Preelaborate, since these packages are suitable for this
23029         categorization.
23030         Update comments.
23031
23032         * s-traent-vms.ads, s-intman-dummy.adb,
23033         s-taprop-dummy.adb: Make this unit Preelaborate.
23034
23035         * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
23036         s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
23037         s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
23038         s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
23039         s-intman-solaris.adb, s-intman-irix-athread.adb,
23040         s-intman-irix.adb: Mark this unit Preelaborate.
23041         (Initialize): New procedure.
23042         Update comments.
23043
23044         * s-taspri-linux.ads: Removed.
23045
23046         * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
23047         as done by other implementations (e.g. posix).
23048
23049         * s-taprop.ads (Timed_Delay): Update spec since the caller now is
23050         responsible for deferring abort.
23051         Mark this unit Preelaborate.
23052
23053         * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
23054         proper initialization of the tasking run-time.
23055
23056         * s-tasdeb.ads: Mark this unit Preelaborate.
23057         (Known_Tasks): Add explicit default value to avoid elaboration code.
23058
23059         * s-inmaop-vms.adb (Elaboration code): Add call to
23060         Interrupt_Management.Initialize since the elaboration code depends on
23061         proper initialization of this package.
23062
23063         * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
23064         s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
23065         s-osprim-posix.adb: Make this unit Preelaborate.
23066
23067         * a-calend.adb: Add call to OS_Primitives.Initialize
23068
23069         * a-elchha.adb: Update use of Except.Id.Full_Name.
23070         Minor reformatting.
23071         Remove use of Ada.Exceptions.Traceback when possible, cleaner.
23072
23073         * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
23074         Move with clauses outside Warnings Off now that dependent units are
23075         Preelaborate.
23076         Use raise xxx with "..."; Ada 2005 form.
23077
23078         * a-taside.ads, a-taside.adb:
23079         Remove some dependencies, to make it easier to make this unit truly
23080         Preelaborate.
23081         Rewrite some code to be conformant with Preelaborate rules.
23082
23083         * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
23084         marked Preelaborate in the future.
23085
23086         * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
23087         these units Preelaborate.
23088
23089         * s-exctab.adb: Update use of Except.Id.Full_Name.
23090
23091         * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
23092         (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
23093         Set_Exc_Stack_Addr): Removed, no longer used.
23094         Remove reference to *Machine_State_Addr*, no longer needed.
23095
23096         * s-stalib.ads: Mark this unit as Preelaborate[_05].
23097         (Exception_Data): Full_Name is now a System.Address so that this unit
23098         can be made Preelaborate.
23099         Clean up/simplify code thanks to Full_Name being a System.Address.
23100         Remove obsolete pragma Suppress (All_Checks), no longer needed.
23101
23102         * s-taskin.ads, s-taskin.adb:
23103         Move with clauses outside Warnings Off now that dependent units are
23104         Preelaborate.
23105         Make this unit Preelaborate.
23106         (Initialize): New proceduure, replace elaboration code and makes the
23107         set up of the tasking run-time cleaner.
23108         (Detect_Blocking): Now a function instead of a deferred boolean, to
23109         obey Preelaborate rules.
23110
23111         * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
23112         soft links, no longer used.
23113
23114         * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
23115         packages are suitable for this categorization.
23116
23117         * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
23118         since we compile run-time sources in Ada 2005 mode.
23119         (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
23120         avoid having s-taprop*.adb depend on s-soflin and to avoid code
23121         duplication.
23122         Remove reference to *Machine_State_Addr*, no longer needed.
23123
23124 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23125
23126         * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
23127         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
23128         Remove reference to System.Exceptions.
23129
23130         * s-mastop-x86.adb: Removed, no longer used.
23131
23132         * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
23133
23134         * a-excach.adb: Minor reformatting.
23135
23136         * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
23137         instead fix new warnings that were hidden by this change.
23138         (AAA, ZZZ): Removed, replaced by...
23139         (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
23140         are used instead of constants, to help make Ada.Exception truly
23141         preelaborate.
23142         (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
23143         Raise_Storage_Error): File is now a System.Address, to simplify code.
23144         (Elab code): Removed, no longer used.
23145         (Null_Occurrence): Remove Warnings Off and make this construct
23146         preelaborate.
23147         Remove code related to front-end zero cost exception handling, since
23148         it is no longer used.
23149         Remove -gnatL/-gnatZ switches.
23150
23151         * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
23152         Update use of Except.Msg.
23153
23154         * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
23155         freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
23156         to front-end zero cost exception handling, since it is no longer used.
23157         Remove -gnatL/-gnatZ switches.
23158
23159         * lib-writ.ads: Minor reformatting
23160         Remove doc of UX
23161
23162         * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
23163
23164         * Make-lang.in: Remove references to s-except.ads
23165
23166         * s-except.ads: Removed, no longer used.
23167
23168         * s-mastop.ads, s-mastop.adb:
23169         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
23170         Remove reference to System.Exceptions.
23171
23172         * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
23173         switch-b.adb: Remove code related to front-end zero cost exception
23174         handling, since it is no longer used.
23175         Remove -gnatL/-gnatZ switches.
23176
23177 2005-09-01  Robert Dewar  <dewar@adacore.com>
23178             Gary Dismukes  <dismukes@adacore.com>
23179             Javier Miranda  <miranda@adacore.com>
23180
23181         * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
23182         type by valid test and generate warning.
23183         (Tagged_Membership): Generate call to the run-time
23184         subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
23185         Change formal name Subtype_Mark to Result_Definition in several calls to
23186         Make_Function_Specification.
23187         (Expand_Allocator_Expression): Add tests for suppression of the AI-344
23188         check for proper accessibility of the operand of a class-wide allocator.
23189         The check can be left out if checks are suppressed or if the expression
23190         has a specific tagged type whose level is known to be safe.
23191
23192         * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
23193         generates the run-time check associated with null-excluding entities.
23194         (Expand_N_Return_Statement): Add tests to determine if the accessibility
23195         check on the level of the return expression of a class-wide function
23196         can be elided. The check usually isn't needed if the expression has a
23197         specific type (unless it's a conversion or a formal parameter). Also
23198         add a test for whether accessibility checks are suppressed. Augment
23199         the comments to describe the conditions for performing the check.
23200
23201 2005-09-01  Hristian Kirtchev  <kirtchev@adacore.com>
23202             Javier Miranda  <miranda@adacore.com>
23203             Gary Dismukes  <dismukes@adacore.com>
23204             Ed Schonberg  <schonberg@adacore.com>
23205
23206         * a-tags.adb (IW_Membership): Give support to
23207         "Iface_CW_Typ in T'Class". For this purpose the functionality of this
23208         subprogram has been extended to look for the tag in the ancestors tag
23209         table.
23210         Update the structure of the GNAT Dispatch Table to reflect the
23211         additional two tables used in dispatching selects.
23212         Introduce appropriate array types and record components in
23213         Type_Specific_Data to reflect the two tables.
23214         (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
23215         the TSD of a tag, indexed by position.
23216         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
23217         operation kind in the TSD of a tag, indexed by position.
23218
23219         * a-tags.ads: Introduce an enumeration type to capture different
23220         primitive operation kinds. Define a constant reflecting the number of
23221         predefined primitive operations.
23222         (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
23223         of an entry wrapper.
23224         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
23225         callable entity of a primitive operation.
23226
23227         * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
23228         primitive operations used in dispatching selects for limited
23229         interfaces, limited tagged, task and protected types what implement a
23230         limited interface.
23231         (Freeze_Type): Generate the bodies of the primitive operations used in
23232         dispatching selects for limited tagged, task and protected types that
23233         implement a limited interface. Generate statements to populate the two
23234         auxiliary tables used for dispatching in select statements.
23235         (Freeze_Record_Type): Add call to initialize the dispatch table entries
23236         associated with predefined interface primitive operations.
23237         (Build_Dcheck_Function): Change Set_Subtype_Mark to
23238         Set_Result_Definition.
23239         (Build_Variant_Record_Equality): Change Subtype_Mark to
23240         Result_Definition.
23241         (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
23242         (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
23243         (Build_Assignment): Simplify the code that adds the run-time-check.
23244         (Expand_N_Object_Declaration): Code cleanup.
23245
23246         * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
23247         entries when there is a protected type that implements a limited
23248         interface.
23249
23250         * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
23251         common routines used in expansion of dispatching selects.
23252         (Add_Private_Declarations): Select the appropriate protection type when
23253         there is a protected type that implements a limited interface.
23254         (Build_Parameter_Block): Generate a wrapped parameter block.
23255         (Build_Protected_Subprogram_Body): Select the appropriate type for
23256         locking entries when there is a protected type that implements a
23257         limited interface.
23258         (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
23259         classified as entry wrappers.
23260         (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
23261         asynchronous selects.
23262         (Expand_N_Conditional_Entry_Call): Add support for expansion of
23263         dispatching conditional selects.
23264         (Expand_N_Protected_Type_Declaration): Select the appropriate type for
23265         protection when there is a protected type that implements limited
23266         interfaces.
23267         (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
23268         timed selects.
23269         (Extract_Dispatching_Call): Extract the entity of the name of a
23270         dispatching call, the object parameter, actual parameters and
23271         corresponding formals.
23272         (Make_Initialize_Protection): Correct logic of protection initialization
23273         when there is a protected type that implements a limited interface.
23274         (Parameter_Block_Pack): Populate a wrapped parameter block with the
23275         values of actual parameters.
23276         (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
23277         block and assign them to the original actual parameters.
23278
23279         * exp_ch9.ads (Subprogram_Protection_Mode): New type.
23280         (Build_Protected_Sub_Specification): Change the type and name of the
23281         last formal to account for the increased variety of protection modes.
23282
23283         * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
23284         entities. Used to save the value of the Is_Hidden attribute when the
23285         limited-view is installed.
23286         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
23287         the attribute of procedures classified as entry wrappers.
23288         (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
23289         entity of a primitive wrapper.
23290         (Write_Entity_Flags): Output the name and value of the
23291         Is_Primitive_Wrapper attribute.
23292         (Write_Field27_Name): Output the name and entity of the field Wrapped_
23293         Entity.
23294         (Underlying_Type): If we have an incomplete entity that comes from
23295         the limited view then we return the Underlying_Type of its non-limited
23296         view if it is already available.
23297         (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
23298         including operators.
23299         (Write_Field26_Name): Add entry for Overridden_Operation
23300         (Overridden_Operation): New attribute of functions and procedures.
23301
23302         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
23303         predefined position in the dispatch table for the primitive operations
23304         used in dispatching selects.
23305         (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
23306         predefined primitive operations and replace it with
23307         Default_Prim_Op_Count.
23308         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
23309         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
23310         the names of the generated primitive operations used in dispatching
23311         selects.
23312         (Init_Predefined_Interface_Primitives): No need to inherit primitives in
23313         case of abstract interface types. They will be inherit by the objects
23314         implementing the interface.
23315         (Make_DT): There is no need to inherit the dispatch table of the
23316         ancestor interface for the elaboration of abstract interface types.
23317         The dispatch table will be inherited by the object implementing the
23318         interface.
23319         (Copy_Secondary_DTs): Add documentation.
23320         (Validate_Position): Improve this static check in case of
23321         aliased subprograms because aliased subprograms must have
23322         the same position.
23323         (Init_Predefined_Interface_Primitives): New subprogram that initializes
23324         the entries associated with predefined primitives of all the secondary
23325         dispatch tables.
23326         (Build_Anonymous_Access_Type): Removed.
23327         (Expand_Interface_Actuals): With the previous cleanup there is no need
23328         to build an anonymous access type. This allows further cleanup in the
23329         code generated by the expander.
23330         (Expand_Interface_Conversion): If the actual is an access type then
23331         build an internal function to handle the displacement. If the actual
23332         is null this function returns null because no displacement is
23333         required; otherwise performs a type conversion that will be
23334         expanded in the code that returns the value of the displaced actual.
23335         (Expand_Interface_Actuals): Avoid the generation of unnecessary type
23336         conversions that have no effect in the generated code because no
23337         displacement is required. Code cleanup; use local variables to
23338         avoid repeated calls to the subprogram directly_designated_type().
23339
23340         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
23341         Classify the primitive operations used in dispatching selects as
23342         predefined.
23343         (Implements_Limited_Interface): Determine whether some type either
23344         directly implements a limited interface or extends a type that
23345         implements a limited interface.
23346         (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
23347         (Expand_Subtype_From_Expr): Do not build actual subtype if the
23348         expression is limited.
23349         (Find_Interface_Tag): Add code to handle class-wide types and
23350         entities from the limited-view.
23351
23352         * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
23353         Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
23354         POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
23355         POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
23356         Set_Prim_Op_Kind.
23357
23358         * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
23359         of procedure name or prefix that appears as a trigger in a triggering
23360         alternative.
23361
23362         * uintp.ads: Introduce constants Uint_11 and Uint_13.
23363
23364 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23365
23366         * s-tataat.adb, a-tasatt.adb:
23367         Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
23368
23369         * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
23370         these procedures to body, and renamed Abort_Defer, Abort_Undefer.
23371         (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
23372         longer used.
23373
23374 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23375             Jose Ruiz  <ruiz@adacore.com>
23376
23377         * s-taprop-vxworks.adb:
23378         Move with clauses outside Warnings Off now that dependent units are
23379         Preelaborate.
23380         (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
23381         initialization of this unit.
23382         (Specific): Add new procedures Initialize and Delete so that this
23383         package can be used for VxWorks 5.x and 6.x
23384         (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
23385         differences between VxWorks 5.x and 6.x
23386         Minor reformatting.
23387         (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
23388         caller.
23389         Use only Preelaborate-compatible constructs.
23390
23391         * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
23392         Primitives.Operations.
23393         (Delete, Initialize): New procedures.
23394
23395         * s-osinte-vxworks.adb: Body used to handle differences between
23396         VxWorks 5.x and 6.x
23397         (kill, Set_Time_Slice, VX_FP_TASK): New functions.
23398
23399         * s-osinte-vxworks.ads: Minor reformatting.
23400         Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
23401         (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
23402         and 6.
23403         (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
23404         between Vxworks 5 and 6.
23405         (taskLock, taskUnlock): Removeed, no longer used.
23406
23407         * adaint.c: The wait.h header is not located in the sys directory on
23408         VxWorks when using RTPs.
23409         (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
23410         using RTPs.
23411         (__gnat_dup): dup is available on Vxworks when using RTPs.
23412         (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
23413
23414         * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
23415
23416         * expect.c: The wait.h header is not located in the sys directory on
23417         VxWorks when using RTPs.
23418
23419 2005-09-01  Thomas Quinot  <quinot@adacore.com>
23420
23421         * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
23422
23423         * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
23424
23425         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
23426         g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
23427         g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
23428         g-soccon-freebsd.ads: Add new constants:
23429          IP_MULTICAST_IF
23430          SO_RCVTIMEO/SO_SNDTIMEO
23431          IOV_MAX
23432
23433         * gen-soccon.c:
23434         Move all target-specific file inclusions and macro definitions to
23435         gsocket.h, in order to ensure that any C code in socket.c will see a
23436         set of constants that is consistent with the contents of g-soccon.ads.
23437
23438         * gsocket.h: Code imported from gen-soccon.c:
23439         Move all target-specific file inclusions and macro definitions to
23440         gsocket.h, in order to ensure that any C code in socket.c will see a set
23441         of constants that is consistent with the contents of g-soccon.ads.
23442         This change also makes gen-soccon self-contained (removing dependencies
23443         upon GCC internal headers).
23444
23445         * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
23446         iovecs at a time.
23447         (To_Inet_Addr): Now a procedure instead of a function, more efficient.
23448
23449         * socket.c: Minor reformatting.
23450
23451 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23452             Thomas Quinot  <quinot@adacore.com>
23453
23454         * fname-sf.adb, mlib-tgt.ads,
23455         back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
23456         g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
23457         osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
23458         prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
23459         prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
23460         prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
23461         sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
23462         makegpr.adb: Remove redundant use_clauses.
23463
23464 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23465
23466         * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
23467         s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
23468         s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
23469         s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
23470         s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
23471         s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
23472         s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
23473         table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
23474         s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
23475         s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
23476         a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
23477         a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
23478         a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
23479         a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
23480         system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
23481         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
23482         s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
23483         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
23484         s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
23485         s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
23486         s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
23487         s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
23488         system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
23489         s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
23490         system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
23491         s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
23492         a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
23493         a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
23494         a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
23495         a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
23496         a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
23497         a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
23498         a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
23499         a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
23500         a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
23501         a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
23502         csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
23503         g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
23504         a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
23505         a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
23506         a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
23507         a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
23508         g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
23509         i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
23510         interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
23511         i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
23512         s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
23513         s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
23514         s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
23515         s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
23516         s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
23517         s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
23518         s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
23519         s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
23520         s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
23521         s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
23522         s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
23523         s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
23524         s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
23525         s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
23526         s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
23527         s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
23528         s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
23529         s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
23530         s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
23531         s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
23532         s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
23533         s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
23534         and always use the no parameter form for consistency.
23535
23536         * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
23537
23538 2005-09-01  Robert Dewar  <dewar@adacore.com>
23539
23540         * binde.adb: Minor reformatting
23541         (Find_Elab_Order): Output warning if -p used with static elab order
23542
23543 2005-09-01  Robert Dewar  <dewar@adacore.com>
23544
23545         * checks.adb (Check_Needed): New procedure, deals with removing checks
23546         based on analysis of short-circuited forms. Also generates warnings for
23547         improper use of non-short-circuited forms.
23548         Code clean ups.
23549
23550 2005-09-01  Robert Dewar  <dewar@adacore.com>
23551
23552         * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
23553         with 'Valid tests.
23554
23555 2005-09-01  Robert Dewar  <dewar@adacore.com>
23556
23557         * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
23558         spec.
23559         Implement new insertion char < (conditional warning)
23560         * errutil.adb, erroutc.adb: Implement new insertion char <
23561         (conditional warning).
23562         * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
23563         (Error_Msg_Warn): New variable for < insertion char.
23564         * prj-nmsc.adb: Implement new errout insertion char < (conditional
23565         warning).
23566         (Check_For_Source): Change value of Source_Id only after the current
23567         source has been dealt with.
23568
23569 2005-09-01  Robert Dewar  <dewar@adacore.com>
23570             Doug Rupp  <rupp@adacore.com>
23571
23572         * exp_attr.adb: Handle vax fpt for 'Valid attribute
23573         * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
23574         * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
23575         (Valid_D, Valid_F, Valid_G): New functions
23576
23577 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23578             Hristian Kirtchev  <kirtchev@adacore.com>
23579             Javier Miranda  <miranda@adacore.com>
23580
23581         * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
23582         from object notation, the original node is unanalyzed and carries no
23583         semantic information, so that accessiblity checks must be performed on
23584         the type of the actual itself.
23585         (Expand_N_Subprogram_Declaration): Change last actual parameter for
23586         compatibility with Build_Protected_Sub_Specification.
23587         (Check_Overriding_Inherited_Interfaces): Add suport to handle
23588         overloaded primitives.
23589         (Register_Interface_DT_Entry): Use the new name of the formal
23590         the the calls to Expand_Interface_Thunk
23591
23592         * exp_dbug.ads: Augment comments on encoding of protected types to
23593         include the generation of dispatching subprograms when the type
23594         implements at least one interface.
23595
23596         * lib.ads: Extend information in Load_Stack to include whether a given
23597         load comes from a Limited_With_Clause.
23598
23599         * lib-load.adb (From_Limited_With_Chain): New predicate to determine
23600         whether a potential circularity is harmless, because it includes units
23601         loaded through a limited_with clause. Extends previous treatment which
23602         did not handle properly arbitrary combinations of limited and
23603         non-limited clauses.
23604
23605 2005-09-01  Nicolas Setton  <setton@adacore.com>
23606
23607         * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
23608         to be encoded as typ___XBLU_lowerbound__upperbound instead of
23609         typ___XB_lowerbound__upperbound.
23610
23611 2005-09-01  Thomas Quinot  <quinot@adacore.com>
23612
23613         * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
23614         dummy access formal for RACW/RAS TypeCode TSS.
23615         (Build_TypeCode_Call): Do not generate dummy null access actual for
23616         calls to the TypeCode TSS.
23617
23618 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23619
23620         * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
23621         fully qualified name, to distinguish instances with the same local name.
23622
23623         * g-souinf.ads (Enclosing_Entity): Document that entity name is now
23624         fully qualified.
23625
23626 2005-09-01  Robert Dewar  <dewar@adacore.com>
23627
23628         * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
23629         packed arrays.
23630
23631 2005-09-01  Jerome Lambourg  <lambourg@adacore.com>
23632
23633         * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
23634         (Free): New deallocation procedure for filter elements
23635         (Close): Deallocate any existing filter for the concerned connection
23636
23637 2005-09-01  Laurent Pautet  <pautet@adacore.com>
23638
23639         * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
23640         position set is provided, we compute one in order to reduce the maximum
23641         length of the keys.  This computation first selects a character
23642         position between 1 and the minimum length of the keys in order to
23643         avoid reducing one of the keys to an empty string.
23644         (Initialize, Compute): When the ratio V to K is too low, the algorithm
23645         does not converge. The initialization procedure now comes with a
23646         maximum number of iterations such that when exceeded, an exception is
23647         raised in Compute. The user can initialize this ratio to another value
23648         and try again
23649         Reformating and updated headers.
23650
23651 2005-09-01  Javier Miranda  <miranda@adacore.com>
23652
23653         * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
23654         that given an entity T creates and returns an Itype that duplicates the
23655         contents of T. The returned Itype has the null-exclusion
23656         attribute set to True, and its Etype attribute references T
23657         to keep the association between the two entities.
23658         Update copyright notice
23659
23660         * sem_aggr.adb (Check_Can_Never_Be_Null,
23661         Aggregate_Constraint_Checks, Resolve_Aggregate,
23662         Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
23663
23664         * sem_ch5.adb (Analyze_Assignment): Code cleanup.
23665
23666 2005-09-01  Gary Dismukes  <dismukes@adacore.com>
23667             Robert Dewar  <dewar@adacore.com>
23668             Hristian Kirtchev  <kirtchev@adacore.com>
23669
23670         * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
23671         Result_Definition.
23672
23673         * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
23674         function specs.
23675         Call Set_Result_Definition instead of Set_Subtype_Mark.
23676         (P_Subprogram_Specification): Add parsing of anonymous access result
23677         plus null exclusions. Call Set_Result_Definition instead of
23678         Set_Subtype_Mark.
23679
23680         * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
23681         (P_Access_Type_Definition): Add parsing for an anonymous access result
23682         subtype, plus parsing for null exclusions. Call Set_Result_Definition
23683         instead of Set_Subtype_Mark.
23684
23685         * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
23686         (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
23687         (Result_Definition): New function for N_Function_Specifications.
23688         (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
23689         N_Function_Specification.
23690         (Set_Null_Exclusion_Present): Allow this flag for
23691         N_Function_Specification.
23692         (Set_Result_Definition): New procedure for N_Function_Specifications.
23693         (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
23694         and N_Function_Specification.
23695
23696         * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
23697         Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
23698         Add support for LIMITED NEW for Ada 2005 AI-419
23699         Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
23700         syntax for anonymous access results.
23701         Replace Subtype_Mark field by Result_Definition in
23702         N_Function_Specification and N_Access_Definition specs.
23703         Add Null_Exclusion_Present to spec of N_Function_Specification.
23704         (Result_Definition): New function for N_Function_Specification and
23705         N_Access_Function_Definition.
23706         (Set_Result_Definition): New procedure for N_Function_Specification and
23707         N_Access_Function_Definition.
23708
23709         * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
23710         Result_Definition for cases of N_Access_Function_Definition and
23711         N_Function_Specification.
23712         Print "not null" if Null_Exclusion_Present on N_Function_Specification.
23713
23714 2005-09-01  Vincent Celier  <celier@adacore.com>
23715
23716         * lib-writ.adb: Update Copyright notice
23717         (Write_With_Lines): On platforms where file names are case-insensitive,
23718         record the file names in lower case.
23719         (Write_ALI): For D lines, on platforms where file names are
23720         case-insensitive, record the file names in lower case.
23721
23722 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23723             Emmanuel Briot  <briot@adacore.com>
23724
23725         * lib-xref.adb (Output_Overridden_Op): Display information on
23726         overridden operation.
23727
23728         * lib-xref.ads: Add documentation on overridden operations.
23729
23730         * ali.ads (Xref_Entity_Record): Add support for storing the overriding
23731         information.
23732
23733         * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
23734         overriding entity information.
23735
23736 2005-09-01  Vincent Celier  <celier@adacore.com>
23737
23738         * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
23739         including those that are inherited.
23740
23741 2005-09-01  Robert Dewar  <dewar@adacore.com>
23742
23743         * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
23744
23745         * par-prag.adb: Implement new pragma Debug_Policy
23746
23747         * sem_prag.adb Implement new pragma Debug_Policy
23748         (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
23749         Component_Size attribute specification. Give warning for ignored pragma
23750         Pack.
23751
23752         * snames.h, snames.ads, snames.adb: Introduce entries in
23753         Preset_Names for Name_Disp_Asynchronous_Select,
23754         Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
23755         Name_Disp_Timed_Select.
23756         New pragma Debug_Policy
23757
23758         * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
23759         explicitly.
23760         Switch -gnata also sets Debug_Pragmas_Enabled
23761
23762         * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
23763         handle an explicit -gnata when compiling predefined files.
23764
23765 2005-09-01  Vincent Celier  <celier@adacore.com>
23766
23767         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
23768         directories of projects that have no Ada sources.
23769
23770 2005-09-01  Robert Dewar  <dewar@adacore.com>
23771
23772         * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
23773         (makes a difference for wide characters)
23774
23775         * widechar.adb, widechar.ads:
23776         Add Wide_Char_Byte_Count feature to count chars vs bytes
23777
23778 2005-09-01  Thomas Quinot  <quinot@adacore.com>
23779             Ed Schonberg  <schonberg@adacore.com>
23780             Robert Dewar  <dewar@adacore.com>
23781
23782         * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
23783         'Address attribute reference with an overloaded prefix, use the
23784         location of the prefix (not the location of the attribute reference) as
23785         the error location.
23786         (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
23787         a function renaming thereof, is a valid prefix for 'Size (where it is
23788         intepreted as a function call).
23789         (Statically_Denotes_Entity): New predicate to determine whether the
23790         prefix of an array attribute can be considered static.
23791
23792         PR ada/9087
23793         (Eval_Attr): Fix failure to evaluate Component_Size for
23794         unconstrained arrays (resulted in wrong value in packed case, since
23795         back end cannot handle this case)
23796
23797 2005-09-01  Robert Dewar  <dewar@adacore.com>
23798
23799         * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
23800         error msgs for most common cases.
23801         Use new errout insertion char < (conditional warning)
23802
23803 2005-09-01  Javier Miranda  <miranda@adacore.com>
23804             Ed Schonberg  <schonberg@adacore.com>
23805
23806         * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
23807         become local to the whole package.
23808         (Install_Limited_Withed_Unit): Instead of unchaining real entities if
23809         the package was already analyzed the new algorithm "replaces" the
23810         real entities by the shadow ones. This is required to ensure that
23811         the order of these entities in the homonym chains does not change;
23812         otherwise we can have undefined references at linking time because
23813         in case of conflicts the external name of the entities will have
23814         a suffix that depends on the order of the entities in the chain.
23815         (Remove_Limited_With_Clause): Complementary code that completes the
23816         new algorithm and replaces the shadow entities by the real ones.
23817         (Install_Limited_Withed_Unit): When unchaining entities before the
23818         installation of the shadow entities, only regular entities of the
23819         public part must be taken into account. This is required to
23820         keep this routine in synch with the work done by Remove_Limited_
23821         With_Clause
23822         (Install_Limited_With_Clause): Introduce implicit limited_with_clause
23823         even if unit is analyzed, because the analysis of the unit is
23824         idempotent in any case, and the limited view of the unit may have to
23825         be installed for proper visibility.
23826         (Expand_Limited_With_Clause): Even if the unit in the implicit
23827         with_clause has been analyzed already, a limited view of the package
23828         must be built for the current context, if it does not exist yet.
23829
23830 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23831             Javier Miranda  <miranda@adacore.com>
23832             Gary Dismukes  <dismukes@adacore.com>
23833
23834         * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
23835         defining entity for the instance body, make a new defining identifier
23836         rather than copying the entity of the spec, to prevent accidental
23837         sharing of the entity list.
23838         (Check_Private_View): When exchanging views of private types, build the
23839         list of exchanged views as a stack, to ensure that on exit the exchanges
23840         are undone in the proper order.
23841         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
23842         Restore the compilation environment in case of instantiation_error.
23843         (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
23844         for an anonymous access result.
23845         (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
23846         (Formal_Entity): Handle properly the case of a formal package that
23847         denotes a generic package renaming.
23848
23849 2005-09-01  Thomas Quinot  <quinot@adacore.com>
23850
23851         * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
23852         clause if the array aggregate is surrounded by parentheses.
23853
23854 2005-09-01  Cyrille Comar  <comar@adacore.com>
23855             Gary Dismukes  <dismukes@adacore.com>
23856             Ed Schonberg  <schonberg@adacore.com>
23857             Javier Miranda  <miranda@adacore.com>
23858
23859         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
23860         underlying type
23861         to check if a type is Constrained in cases related to code generation
23862         (rather than semantic checking) since otherwise we do not generate
23863         similar code for mutable private types depending if their
23864         discriminants are visible or not.
23865         (Check_Abstract_Overriding): Do not complain about failure to override
23866         the primitive operations used in dispatching selects since they will
23867         always be overriden at the freeze point of the type.
23868         (Access_Definition): Separate out handling for resetting the scope
23869         of an anonymous access function result type. Retrieve the scope
23870         of the associated function rather than using Current_Scope, which
23871         does not have a consistent value (depends on whether we're in the
23872         middle of analyzing formal parameters). Add ??? comment about
23873         finding a cleaner way to handle the special cases of scope setting.
23874         (Process_Incomplete_Dependents): A protected operation is never a
23875         dispatching operation (only its wrapper may be).
23876         (Build_Derived_Record_Type): In case of tagged private types that
23877         implement interfaces add derivation of predefined primitive
23878         operations.
23879         (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
23880         by two parameters that are used in case of derivation from abstract
23881         interface types: No_Predefined_Prims is used to avoid the derivation
23882         of predefined primitives from the interface, and Predefined
23883         Prims_Only is used to complete the derivation predefined primitives
23884         in case of private tagged types implementing interfaces.
23885         Fix typo in comments
23886         (Find_Interface_In_Descendant): Protect the frontend against
23887         wrong code with large circularity chains.
23888         (Is_Private_Overriding): Add support for entities overriding interface
23889         subprograms. The test failed because Entities associated with overriden
23890         interface subprograms are always marked as hidden (and used to build
23891         the secondary dispatch table); in this case the overriden entity is
23892         available through the field abstract_interface_alias (cf. override_
23893         dispatching_operation)
23894         (Access_Definition): Set the scope of the type to Current_Scope for the
23895         case of a function with an anonymous access result type.
23896         (Access_Subprogram_Declaration): Handle creation of the type entity for
23897         an access-to-function type with an anonymous access result.
23898         (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
23899         in handling for N_Access_Function_Definition.
23900         (Analyze_Subtype_Declaration): Modify the text of error message.
23901         (Derived_Type_Declaration): Modify the text of error message.
23902         (Process_Subtype): Modify the text of error message plus cleanup
23903         of one redundant error message.
23904         (Analyze_Component_Declaration): Code cleanup.
23905         (Analyze_Object_Declaration): Code cleanup.
23906         (Analyze_Subtype_Declaration): Propagate the null-exclusion
23907         attribute in case of access types. Code cleanup.
23908         (Array_Type_Declaration): Code cleanup.
23909         (Process_Discriminants): Create the new null-excluding itype
23910         if required. Code cleanup.
23911         (Process_Subtype): Create the new null-excluding itype if
23912         required. Code cleanup.
23913         (Build_Derived_Record_Type): Code cleanup to avoid calling
23914         twice the subprogram derive_subprograms in case of private
23915         types that implement interfaces. In this particular case the
23916         subprogram Complete_Subprograms_Derivation already does the
23917         job associated with the second call.
23918
23919         * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
23920         conversion to the full view when generating an operation for a
23921         discriminant whose type may currently be private.
23922
23923 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23924             Javier Miranda  <miranda@adacore.com>
23925
23926         * sem_ch4.adb (Transform_Object_Operation): In a context off the form
23927         V (Obj.F), the rewriting does not involve the indexed component, but
23928         only the selected component itself.
23929         Do not apply the transformation if the analyzed node is an actual of a
23930         call to another subprogram.
23931         (Complete_Object_Operation): Retain the entity of the
23932         dispatching operation in the selector of the rewritten node. The
23933         entity will be used in the expansion of dispatching selects.
23934         (Analyze_One_Call): Improve location of the error message associated
23935         with interface.
23936         (Analyze_Selected_Component): No need to resolve prefix when it is a
23937         function call, resolution is done when parent node is resolved, as
23938         usual.
23939         (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
23940         when attempting to resolve a call transformed from its object notation.
23941         (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
23942         of the argument list for each interpretation of the operation.
23943         (Try_Object_Operation): The designated type of an access parameter may
23944         be an incomplete type obtained through a limited_with clause, in which
23945         case the primitive operations of the type are retrieved from its full
23946         view.
23947         (Analyze_Call): If this is an indirect call, and the return type of the
23948         access_to_subprogram is incomplete, use its full view if available.
23949
23950 2005-09-01  Javier Miranda  <miranda@adacore.com>
23951             Gary Dismukes  <dismukes@adacore.com>
23952
23953         * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
23954         access types the null-exclusion and access-to-constant attributes must
23955         also match.
23956         (Analyze_Return_Statement): When the result type is an anonymous access
23957         type, apply a conversion of the return expression to the access type
23958         to ensure that appropriate accessibility checks are performed.
23959         (Analyze_Return_Type): For the case of an anonymous access result type,
23960         generate the Itype and set Is_Local_Anonymous_Access on the type.
23961         Add ??? placeholder for check to disallow returning a limited object
23962         in Ada 2005 unless it's an aggregate or a result of a function call.
23963         Change calls from Subtype_Mark to Result_Definition.
23964         (Analyze_Subprogram_Body): Change formal Subtype_Mark to
23965         Result_Definition in call to Make_Function_Specification.
23966         (Build_Body_To_Inline): Change Set_Subtype_Mark to
23967         Set_Result_Definition.
23968         (Make_Inequality_Operator): Change formal Subtype_Mark to
23969         Result_Definition in call to Make_Function_Specification.
23970         (Process_Formals): Create the new null-excluding itype if required.
23971         (New_Overloaded_Entity): For an entity overriding an interface primitive
23972         check if the entity also covers other abstract subprograms in the same
23973         scope. This is required to handle the general case, that is, overriding
23974         other interface primitives and overriding abstract subprograms inherited
23975         from some abstract ancestor type.
23976         (New_Overloaded_Entity): For an overriding entity that comes from
23977         source, note the operation that it overrides.
23978         (Check_Conformance, Type_Conformant): Addition of one new formal
23979         to skip controlling formals in the analysis. This is used to
23980         handle overloading of abstract interfaces.
23981         (Base_Types_Match): Add missing case for types imported from
23982         limited-with clauses
23983         (New_Overloaded_Entity): Add barrier to protect the use of
23984         the "alias" attribute.
23985
23986 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23987
23988         * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
23989         verify that the procedure and the entry are mode conformant.
23990         (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
23991         as a different operator, which is often a cut-and-paste error.
23992
23993 2005-09-01  Javier Miranda  <miranda@adacore.com>
23994             Ed Schonberg  <schonberg@adacore.com>
23995
23996         * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
23997         used in controlling parameters exclude null because it is necessary to
23998         read the tag to dispatch, and null has no tag.
23999         (Override_Dispatching_Operation): If the previous operation is inherited
24000         from an interface, it becomes hidden  and does not participate in later
24001         name resolution.
24002
24003 2005-09-01  Javier Miranda  <miranda@adacore.com>
24004             Ed Schonberg  <schonberg@adacore.com>
24005             Gary Dismukes  <dismukes@adacore.com>
24006
24007         * sem_res.adb (Resolve_Membership_Op): In case of the membership test
24008         "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
24009         the expander will generate the corresponding run-time check to evaluate
24010         the expression.
24011         (Resolve_Call): Check for legal type of procedure name or prefix that
24012         appears as a trigger in a triggering alternative.
24013         (Valid_Conversion): If expression is ambiguous and the context involves
24014         an extension of System, remove System.Address interpretations.
24015         (Resolve_Qualified_Expression): Reject the case of a specific-type
24016         qualification applied to a class-wide argument. Enhance comment
24017         to explain checking of Original_Node.
24018         (Resolve_Type_Conversion): The location of the error message was not
24019         general enough to handle the general case and hence it has been removed.
24020         In addition, this patch improves the text of the message.
24021         (Resolve_Type_Conversion): Add missing support for access to interface
24022         types.
24023         (Resolve_Type_Conversion): If the target is a class-wide interface type,
24024         do not expand if the expression is the actual in a call, because proper
24025         expansion will take place when the call itself is expanded.
24026         (Resolve_Allocator): If the context is an unchecked conversion, the
24027         allocator inherits its storage pool, if any, from the target type of
24028         the conversion.
24029
24030 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24031             Javier Miranda  <miranda@adacore.com>
24032
24033         * sem_type.adb (Add_One_Interp): If a candidate operation is an
24034         inherited interface operation that has an implementation, use the
24035         implementation to avoid spurious ambiguities.
24036         (Interface_Present_In_Ancestor): In case of concurrent types we can't
24037         use the Corresponding_Record_Typ attribute to look for the interface
24038         because it is set by the expander (and hence it is not always
24039         available). For this reason we traverse the list of interfaces
24040         (available in the parent of the concurrent type).
24041         (Interface_Present_In_Ancestor): Handle entities from the limited view
24042
24043 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24044
24045         * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
24046         from the list of required components.
24047         (Is_Controlling_Limited_Procedure): Determine whether an entity is a
24048         primitive procedure of a limited interface with a controlling first
24049         parameter.
24050         (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
24051         of an entry.
24052         (Safe_To_Capture_Value): A value (such as non_null) is not safe to
24053         capture if it is generated in the second operand of a short-circuit
24054         operation.
24055         Do not capture values for variables with address clauses.
24056         (Is_Object_Reference): Treat a function call as an object reference only
24057         if its type is not Standard_Void_Type.
24058
24059 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
24060
24061         * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
24062         to a variable that is statically known to be constant.
24063
24064 2005-09-01  Geert Bosch  <bosch@adacore.com>
24065             Robert Dewar  <dewar@adacore.com>
24066
24067         * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
24068         (VAXGF_Safe_First): Idem.
24069
24070 2005-09-01  Robert Dewar  <dewar@adacore.com>
24071             Arnaud Charlet  <charlet@adacore.com>
24072
24073         * g-dirope.ads: Minor reformatting
24074         Document that bounds of result of Base_Name match the input index
24075         positions.
24076         Add documentation on environment variable syntax for Expand_Path
24077
24078         * gnat_ugn.texi: Update documentation to include mention of -m switches
24079         Document new treatment of wide characters in max line length
24080         style check.
24081         Remove -gnatL/-gnatZ switches, no longer used.
24082         Add note on pragmas Assertion_Policy and Debug_Policy in discussion
24083         of -gnata switch.
24084
24085         * gnat_rm.texi: Add doc for two argument form of pragma
24086         Float_Representation.
24087         Add documentation for pragma No_Strict_Aliasing
24088         Add note that explicit component clause overrides pragma Pack.
24089         Add documentation of pragma Debug_Policy
24090
24091 2005-09-01  Matthew Heaney  <heaney@adacore.com>
24092
24093         * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
24094         a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
24095         a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
24096         a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
24097         draft (Draft 13, August 2005) of Ada Amendment 1.
24098
24099 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
24100
24101         * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
24102         Note that the platform-specific version of g-soccon.ads for VMS is now
24103         named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
24104         really is a package spec).
24105         Replace s-taspri-linux.ads by s-taspri-posix.ads
24106         Remove references to s-mastop-x86.adb
24107
24108         * system-vxworks-xscale.ads: Removed, no longer used.
24109         * s-vxwork-xscale.ads: Removed, no longer used.
24110
24111 2005-09-01  Robert Dewar  <dewar@adacore.com>
24112
24113         * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
24114         g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
24115         g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
24116         exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
24117         g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
24118         g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
24119         g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
24120         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
24121         g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
24122         g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
24123         sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
24124         a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
24125         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
24126         a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
24127         a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
24128         a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
24129         g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
24130         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
24131         g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
24132         i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
24133         a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
24134
24135 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
24136
24137         PR ada/23187
24138         * adaint.c
24139         (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
24140
24141 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
24142             Doug Rupp  <rupp@adacore.com>
24143
24144         * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
24145         when needed.
24146         (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
24147         this code in the GNAT run-time.
24148
24149         * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
24150
24151         PR ada/21053
24152         * init.c (__gnat_error_handler [many]): Mark "msg" as const
24153         (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
24154
24155         (__gnat_inside_elab_final_code): Moved here from
24156         Standard_Library and only defined for the compiler.
24157         __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
24158         (__gnat_inum_to_ivec): Do not define this function on VxWorks when
24159         using RTPs because directly vectored Interrupt routines are not
24160         supported on this configuration.
24161         (getpid): Do not redefine this function on VxWorks when using RTPs
24162         because this primitive is well supported by the RTP libraries.
24163         (copy_msg): Correct the code that checks for buffer overflow.
24164         Discovered during code reading.
24165
24166 2005-08-29  Olivier Hainque  <hainque@adacore.com>
24167
24168         * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
24169         a library level mutable variable with an initializer, tell
24170         build_allocator to ignore the initializer's size. It may not be large
24171         enough for all the values that might be assigned to the variable later
24172         on.
24173
24174 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
24175             Eric Botcazou  <ebotcazou@adacore.com>
24176
24177         * trans.c: Protect < in error msg with quote
24178         Replace GCC_ZCX by Back_End_Exceptions.
24179         (addressable_p) <COMPONENT_REF>: Also return 1 if the field
24180         has been sufficiently aligned in the record.
24181
24182 2005-08-15  James E. Wilson  <wilson@specifix.com>
24183
24184         * system-linux-alpha.ads: Change ia64 to alpha.
24185
24186 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
24187
24188         * decl.c, utils.c: Fix comment typos.
24189
24190 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
24191
24192         * decl.c, init.c, initialize.c: Fix comment typos.
24193
24194 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
24195
24196         Make CONSTRUCTOR use VEC to store initializers.
24197         * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
24198         CONSTRUCTOR_ELTS.
24199         * trans.c (extract_values): Likewise.
24200         * utils.c (convert, remove_conversions): Likewise.
24201         * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
24202         gnat_build_constructor): Likewise.
24203
24204 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
24205
24206         * decl.c (components_to_record): Use DECL_FCONTEXT instead of
24207         DECL_SECTION_NAME.
24208         (compare_field_bitpos): Likewise.
24209
24210 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
24211
24212         * utils.c (create_var_decl): Only set DECL_COMMON on
24213         VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
24214         VAR_OR_FUNCTION_DECL_P.
24215
24216 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
24217
24218         * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
24219         removed.
24220
24221 2005-07-07  Pascal Obry  <obry@adacore.com>
24222
24223         * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
24224         returned type on Windows.
24225
24226         * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
24227         routine.
24228
24229         * g-socket.adb (Inet_Addr): Check for empty Image and raises an
24230         exception in this case.
24231         Simplify the code as "Image (Image'Range)" = "Image".
24232
24233 2005-07-07  Vincent Celier  <celier@adacore.com>
24234
24235         * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
24236         the destructor/constructor attributes for <lib>final/<lib>init.
24237
24238         * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
24239
24240 2005-07-07  Eric Botcazou  <ebotcazou@adacore.com>
24241
24242         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
24243         type if the parameter is not passed by copy but reference by default.
24244
24245 2005-07-07  Javier Miranda  <miranda@adacore.com>
24246
24247         * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
24248         Reimplementation of the support for abstract interface types in order
24249         to leave the code more clear and easy to maintain.
24250
24251         * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
24252         abstract interface types in order to leave the code clearer and easier
24253         to maintain.
24254
24255         * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
24256         is now implemented by the new subprogram Fill_Secondary_DT_Entry.
24257         (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
24258         appropriate entry of the secondary dispatch table.
24259         (Make_DT): Add code to inherit the secondary dispatch tables of
24260         the ancestors.
24261
24262         * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
24263         implementing both functionalities by means of a common routine, each
24264         routine has its own code.
24265
24266 2005-07-07  Javier Miranda  <miranda@adacore.com>
24267
24268         * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
24269
24270         * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
24271         types:
24272         --
24273           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
24274         --
24275
24276         * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
24277         use of tag incomplete types.
24278
24279         * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
24280         give support to tagged incomplete types.
24281
24282         * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
24283         expression is a discriminant reference and its type is private, as can
24284         happen within a stream operation for a mutable record, use the full
24285         view of the type to resolve the case alternatives.
24286         (Analyze_Assignment): Check wrong dereference of incomplete types.
24287
24288         * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
24289         types.
24290
24291         * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
24292         incomplete types.
24293
24294         * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
24295         N_Incomplete_Type_Declaration nodes.
24296
24297         * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
24298         Tag_Present to give support to tagged incomplete types:
24299         --
24300           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
24301         --
24302
24303 2005-07-07  Olivier Hainque  <hainque@adacore.com>
24304
24305         PR ada/22301
24306         * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
24307         definitions for the Unwind wrappers in the compiler case.
24308
24309 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
24310             Javier Miranda  <miranda@adacore.com>
24311
24312         * par-load.adb (Load): If a child unit is loaded through a limited_with
24313         clause, each parent must be loaded as a limited unit as well.
24314
24315         * sem_ch10.adb (Previous_Withed_Unit): Better name for
24316         Check_Withed_Unit. Return true if there is a previous with_clause for
24317         this unit, whether limited or not.
24318         (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
24319         the current unit.
24320         (Is_Visible_Through_Renamings): New local subprogram of install_limited
24321         _withed_unit that checks if some package installed through normal with
24322         clauses has a renaming declaration of package whose limited-view is
24323         ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
24324         of the current Draft document for Ada 2005.
24325         (Analyze_Context): Complete the list of compilation units that
24326         are allowed to contain limited-with clauses. It also contains
24327         checks that were previously done by Install_Limited_Context_Clauses.
24328         This makes the code more clear and easy to maintain.
24329         (Expand_Limited_With_Clause) It is now a local subprogram of
24330         Install_Limited_Context_Clauses, and contains the code that adds
24331         the implicit limited-with clauses for parents of child units.
24332         This functionality was prevously done by Analyze_Context.
24333
24334         * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
24335         incomplete type.
24336
24337         * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
24338         been erroneously named in a limited-with clause of its own context.
24339         In this case the error has been previously notified by Analyze_Context.
24340
24341 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
24342
24343         * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
24344         generic package that contains local declarations with the same name.
24345         (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
24346
24347 2005-07-07  Bernard Banner  <banner@adacore.com>
24348
24349         * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
24350         ia64 platform only on platforms that you the GCC unwind library
24351         rather than the system unwind library.
24352
24353 2005-07-07  Thomas Quinot  <quinot@adacore.com>
24354
24355         * expect.c: Minor reformatting
24356
24357 2005-07-07  Sergey Rybin  <rybin@adacore.com>
24358
24359         * vms_data.ads: Add VMS qualifiers for new gnatpp switch
24360         --no-separate-is
24361
24362         * gnat_ugn.texi: Add description for new gnatpp option
24363         (--no-separate-is)
24364
24365 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24366
24367         * g-expect-vms.adb, g-expect.ads, g-expect.adb
24368         (Get_Command_Output): New subprogram to launch a process and get its
24369         standard output as a string.
24370
24371 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
24372             Olivier Hainque  <hainque@adacore.com>
24373
24374         * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
24375         fetch a code-range descriptor associated with the machine state. On
24376         failure set the machine state's PC to 0; on success, pass the
24377         descriptor to exc_virtual_unwind.
24378
24379         * init.c (Tru64 section): New function __gnat_set_code_loc.
24380
24381 2005-07-04  Vincent Celier  <celier@adacore.com>
24382
24383         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24384         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
24385         mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
24386         Remove all auto-initialization code, as this is now done through the
24387         constructor mechanism.
24388
24389         * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
24390         __gnat_sals_init_using_constructors): New functions.
24391
24392         * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
24393         Linker_Constructor and Linker_Destructor when switch -a is used.
24394
24395         * bindusg.adb: Add line for new switch -a
24396
24397         * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
24398         (Gnatbind): When switch -a is used, check if it is allowed
24399
24400         * switch-b.adb (Scan_Binder_Switches): Process new switch -a
24401
24402 2005-07-04  Joel Brobecker  <brobecker@adacore.com>
24403
24404         * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
24405         This prevents us from hitting a limitation during the debug info
24406         generation when using stabs.
24407         (Prims_Ptr): Likewise.
24408
24409 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
24410             Ed Schonberg  <schonberg@adacore.com>
24411             Javier Miranda  <miranda@adacore.com>
24412
24413         * checks.adb (Null_Exclusion_Static_Checks): In the case of
24414         N_Object_Declaration, only perform the checks if the Object_Definition
24415         is not an Access_Definition.
24416
24417         * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
24418         where the parent of an the access definition is an N_Object_Declaration
24419         when determining the Associated_Node_For_Itype and scope of an
24420         anonymous access-to-subprogram type.
24421
24422         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
24423         Corresponding_Spec on the body created for a null procedure. Add ???
24424         comment. Remove New_Copy_Tree call on body argument to
24425         Set_Body_To_Inline.
24426
24427         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
24428         discriminants, use the type of the actual as well, because the
24429         discriminants may be read by the called subprogram.
24430
24431         * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
24432         access type we do not need to handle non-limited views.
24433         (Build_Derived_Record_Type): Additional check to check that in case of
24434         private types, interfaces are only allowed in private extensions.
24435
24436 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
24437
24438         * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
24439         <Pragma_Linker_Destructor>: Likewise.
24440
24441         * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
24442         Pragma_Linker_Destructor.
24443
24444         * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
24445         ATTR_LINK_DESTRUCTOR.
24446         (static_ctors, static_dtors): New variables.
24447
24448         * misc.c (gnat_expand_body): Output current function as constructor
24449         and destructor if requested.
24450
24451         * par-prag.adb: Add processing for pragma Linker_Constructor and
24452         Linker_Destructor.
24453
24454         * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
24455         extracted from Check_Interrupt_Or_Attach_Handler.
24456         (Check_Interrupt_Or_Attach_Handler): Invoke it.
24457         Implement pragma Linker_Constructor and Linker_Destructor with the
24458         help of Find_Unique_Parameterless_Procedure.
24459         Replace Name_Alias with Name_Target for pragma Linker_Alias.
24460
24461         * snames.h, snames.ads, snames.adb:
24462         Add Name_Linker_Constructor and Name_Linker_Destructor.
24463         Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
24464         * snames.adb: Remove Name_Alias.
24465
24466         * trans.c: Include cgraph.h.
24467         (build_global_cdtor): New function.
24468         (Compilation_Unit_to_gnu): Build global constructor and destructor if
24469         needed.
24470         (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
24471         of objects too.
24472         (addressable_p) <COMPONENT_REF>: Unconditionally test
24473         DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
24474
24475         * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
24476         variable if it is external.
24477
24478         (static_ctors, static_dtors): New global variables.
24479         (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
24480         <ATTR_LINK_DESTRUCTOR>: Likewise.
24481         (end_subprog_body): Chain function as constructor and destructor
24482         if requested.
24483
24484         * exp_util.adb (Force_Evaluation): Unconditionally invoke
24485         Remove_Side_Effects with Variable_Ref set to true.
24486         (Remove_Side_Effects): Handle scalar types first. Use a renaming
24487         for non-scalar types even if Variable_Ref is true and for class-wide
24488         expressions.
24489
24490 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24491
24492         * exp_attr.adb (Mod): Evaluate condition expression with checks off,
24493         to prevent spurious warnings.
24494
24495 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24496
24497         * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
24498         Itypes. Itypes are really unexpected there.
24499         (Build_TypeCode_Function): Generalise special processing for Itypes to
24500         handle the case of numeric implicit base types as well as enumerated
24501         ones.
24502
24503 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24504
24505         * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
24506         controlled, indicate the expected type of the dereference that is
24507         created for the call to Deep_Finalize, to prevent spurious errors when
24508         the designated type is private and completed with a derivation from
24509         another private type.
24510
24511 2005-07-04  Vincent Celier  <celier@adacore.com>
24512
24513         * make.adb (Change_To_Object_Directory): When unable to change the
24514         current dir to the object directory, output the full path of the
24515         directory.
24516
24517 2005-07-04  Matthew Gingell  <gingell@adacore.com>
24518
24519         * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
24520
24521         * indepsw-linux.adb: Replace by...
24522
24523         * indepsw-gnu.adb: ...this new file
24524
24525 2005-07-04  Vincent Celier  <celier@adacore.com>
24526
24527         * mlib-prj.adb (Auto_Initialize): New constant String
24528         (SALs_Use_Constructors): New Boolean function
24529         (Build_Library): Call gnatbind with Auto_Initialize switch when
24530         SALs_Use_Constructors returns True.
24531
24532         * mlib-tgt.ads: Minor reformatting
24533
24534         * mlib-utl.ads: Minor reformatting
24535
24536         * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
24537
24538 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24539
24540         * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
24541         single protected declarations can have an interface list.
24542         (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
24543         with seriously malformed entry declarations, and lead to compilation
24544         abandoned messages.
24545
24546 2005-07-04  Javier Miranda  <miranda@adacore.com>
24547
24548         * par-load.adb: Load the context items in two rounds.
24549
24550 2005-07-04  Robert Dewar  <dewar@adacore.com>
24551
24552         * scng.adb: Do not consider Mod used as an attribute to be a keyword
24553
24554 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24555             Javier Miranda  <miranda@adacore.com>
24556
24557         * sem_ch10.adb (Build_Limited_Views): A type declared with a private
24558         type extension needs a limited view.
24559         Remove previous restriction on private types available through the
24560         limited-view (only tagged private types were previously allowed).
24561         (Install_Withed_Unit): In the code that implements the
24562         legality rule given in AI-377, exclude a child unit with the name
24563         Standard, because it is a homonym of the Standard environment package.
24564
24565 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24566
24567         * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
24568         overloaded function call, carry interpretations from the original tree
24569         to the copy.
24570
24571 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24572
24573         * sem_ch6.adb (Conforming_Types): If the types are anonymous access
24574         types check whether some designated type is a limited view, and use
24575         the non-limited view if available.
24576
24577 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
24578
24579         * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
24580         constraint of full view of a private view T1 if present, when T2 is a
24581         discriminated full view.
24582
24583 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24584
24585         * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
24586         actual that is a view conversion of a bit packed array reference.
24587
24588 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24589
24590         * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
24591         present before checking whether an interface type covers a synchronized
24592         type.
24593
24594 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24595
24596         * sem_util.adb (Is_Object_Reference): An indexed or selected component
24597         whose prefix is an implicit dereference is an object reference. Removes
24598         spurious errors when compiling with -gnatc.
24599
24600 2005-07-04  Robert Dewar  <dewar@adacore.com>
24601
24602         PR ada/22039
24603         * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
24604
24605 2005-07-04  Matthew Gingell  <gingell@adacore.com>
24606
24607         * tracebak.c: Enable tracebacks on ia64 platforms
24608
24609 2005-07-04  Vincent Celier  <celier@adacore.com>
24610
24611         * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
24612         the GNAT BIND command, as gnatbind accepts multiples ALI files with
24613         the -L or -n switches.
24614
24615 2005-07-04  Vincent Celier  <celier@adacore.com>
24616
24617         * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
24618         correctly computed and the main project data is not modified while
24619         doing so.
24620         (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
24621         (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
24622         c++linker as this does not work on some platforms.
24623
24624 2005-07-04  Matthew Heaney  <heaney@adacore.com>
24625
24626         * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
24627         was changed.
24628         * a-coinve.adb: Perform constraint checks explicitly.
24629
24630 2005-07-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24631             Thomas Quinot  <quinot@adacore.com>
24632
24633         * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
24634         new target gen-soccon.
24635
24636 2005-07-04  Robert Dewar  <dewar@adacore.com>
24637
24638         * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
24639
24640 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24641
24642         * g-socket.ads (Check_Selector): Minor rewording of comment.
24643
24644 2005-07-04  Vincent Celier  <celier@adacore.com>
24645
24646         * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
24647
24648 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24649
24650         * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
24651
24652 2005-07-04  Sergey Rybin  <rybin@adacore.com>
24653
24654         * gnat_ugn.texi: Add description of --eol gnatpp option
24655
24656 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
24657             Thomas Quinot  <quinot@adacore.com>
24658
24659         * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
24660         if the user wants all calls of a subprogram to be flagged,
24661         independently of whether they are made from within the same unit or
24662         another unit.
24663         Mention restriction for pragma Linker_Alias on some platforms.
24664         Document pragma Linker_Constructor and Linker_Destructor.
24665         Rewrite documentation of Weak_External, Linker_Section and
24666         Linker_Alias pragmas.
24667
24668 2005-07-04  Arnaud Charlet  <charlet@adacore.com>
24669
24670         * s-stausa.ads, s-stausa.adb: New files.
24671
24672 2005-06-30  Kelley Cook
24673
24674         * all files:  Update FSF address in copyright headers.
24675         * gen-soccon.co (main): Output new FSF address in generated files.
24676
24677 2005-06-28  Paul Brook  <paul@codesourcery.com>
24678
24679         * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
24680
24681 2005-06-14  Olivier Hainque  <hainque@adacore.com>
24682             Eric Botcazou  <ebotcazou@adacore.com>
24683
24684         * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
24685         exc_unwind, now that we are generating proper .debug_frame output for
24686         that target.
24687
24688         * tracebak.c: Remove the mips-irix section, as we are now using the
24689         s-mastop based unwinder again.
24690         Under SPARC/Solaris, take into account the stack bias to compute the
24691         frame offset.  The stack bias is 0 for the V8 ABI and 2047 for the V9
24692         ABI.
24693
24694 2005-06-14  Doug Rupp  <rupp@adacore.com>
24695
24696         * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
24697
24698         * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
24699
24700 2005-06-14  Pascal Obry  <obry@adacore.com>
24701
24702         * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
24703         a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
24704         a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
24705         package name).
24706
24707         * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
24708         a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
24709         a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
24710         a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
24711         a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
24712         a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
24713         a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
24714         s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
24715         s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
24716         s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
24717         s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
24718         s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
24719         s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
24720         s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
24721         s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
24722         s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
24723         s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
24724         s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
24725         s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
24726         s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
24727         s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
24728         s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
24729         s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
24730         s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
24731         s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
24732         s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
24733         s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
24734         s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
24735         s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
24736         s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
24737         a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
24738         a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
24739         a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
24740         a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
24741         a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
24742         a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
24743         a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
24744         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
24745         a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
24746         a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
24747         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
24748         a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
24749         a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
24750         a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
24751         a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
24752         a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
24753         a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
24754         a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
24755         a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
24756         a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
24757         a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
24758         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
24759         a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
24760         a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
24761         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
24762         a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
24763         a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
24764         dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
24765         g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
24766         g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
24767         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
24768         g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
24769         g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
24770         gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
24771         g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
24772         i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
24773         s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
24774         s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
24775         s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
24776         s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
24777         s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
24778         s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
24779         s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
24780         s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
24781         s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
24782         s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
24783         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
24784         s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
24785         s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
24786         s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
24787         s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
24788         s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
24789         s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
24790         s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
24791         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
24792         s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
24793         s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
24794         s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
24795         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
24796         s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
24797         s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
24798         s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
24799         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
24800         s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
24801         s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
24802         s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
24803         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
24804         s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
24805         s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
24806         s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
24807         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
24808         s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
24809         s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
24810         s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
24811         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
24812         s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
24813         s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
24814         s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
24815         s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
24816         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
24817         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
24818         s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
24819         s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
24820         s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
24821         s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
24822         s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
24823         s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
24824         s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
24825         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
24826         s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
24827         s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
24828         s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
24829         s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
24830         a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
24831         a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
24832         a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
24833         a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
24834         a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
24835         a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
24836         a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
24837         a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
24838         a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
24839         "GNU Ada" to GNAT, use proper casing for RUN-TIME.
24840
24841 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
24842             Arnaud Charlet  <charlet@adacore.com>
24843
24844         * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
24845         longer protected objects. They have been replaced by lower-level
24846         suspension objects made up by a mutex and a condition variable (or
24847         their equivalent given a particular OS) plus some internal data to
24848         reflect the state of the suspension object.
24849         (Initialize, Finalize): Add this initialization procedure for
24850         Suspension_Object, which is a controlled type.
24851         (Finalize): Add the finalization procedure for Suspension_Object,
24852         which is a controlled type.
24853
24854         * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
24855         Ada.Synchronous_Task_Control because there is no longer a need for a
24856         VxWorks specific version of this package. Target dependencies
24857         has been moved to System.Task_Primitives.Operations.
24858
24859         * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
24860         longer needed.
24861         (InitializeCriticalSection, EnterCriticalSection,
24862         LeaveCriticalSection, DeleteCriticalSection): Replace the type
24863         pCriticalSection by an anonymous access type so that we avoid problems
24864         of accessibility to local objects.
24865
24866         * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
24867         s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
24868         s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
24869         s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
24870         s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
24871         set the environment task mask here.
24872         (Current_State): Add this function that returns the state of the
24873         suspension object.
24874         (Set_False): Add this procedure that sets the state of the suspension
24875         object to False.
24876         (Set_True): Add this procedure that sets the state of the suspension
24877         object to True, releasing the task that was suspended, if any.
24878         (Suspend_Until_True): Add this procedure that blocks the calling task
24879         until the state of the object is True. Program_Error is raised if
24880         another task is already waiting on that suspension object.
24881         (Initialize): Add this procedure for initializing the suspension
24882         object. It initializes the mutex and the condition variable which are
24883         used for synchronization and queuing, and it sets the internal state
24884         to False.
24885         (Finalize): Add this procedure for finalizing the suspension object,
24886         destroying the mutex and the condition variable.
24887
24888         * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
24889         s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
24890         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
24891         s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
24892         which provides a low-level abstraction (using operating system
24893         primitives) for Ada.Synchronous_Task_Control.
24894         This object is made up by a mutex (for ensuring mutual exclusion), a
24895         condition variable (for queuing threads until the condition is
24896         signaled), a Boolean (State) indicating whether the object is open,
24897         and a Boolean (Waiting) reflecting whether there is a task already
24898         suspended on this object.
24899
24900         * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
24901         s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
24902         s-intman-vms.ads, s-intman-mingw.adb,
24903         (Initialize_Interrupts): Removed, no longer used.
24904
24905         * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
24906         (Setup_Interrupt_Mask): New procedure.
24907
24908         * s-intman-vxworks.ads, s-intman-vxworks.adb:  Update comments.
24909
24910         * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
24911
24912         * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
24913         this is no longer done in the body of s-taprop
24914         (Server_Task): Explicitely test for Pending_Action in case
24915         System.Parameters.No_Abort is True.
24916
24917         * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
24918         is no longer done in the body of s-taprop
24919
24920 2005-06-14  Robert Dewar  <dewar@adacore.com>
24921
24922         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
24923         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
24924         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
24925         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
24926         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
24927         system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
24928         system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
24929         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
24930         system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
24931         system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
24932         system-linux-hppa.ads, system-vms_64.ads,
24933         system-vxworks-alpha.ads: Minor comment update for
24934         AI-362 (unit is Pure).
24935
24936         * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
24937         Add pragma Pure_05 for AI-362
24938         Make remaining conversion functions obsolescent in Ada 95
24939
24940         * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
24941         Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
24942         Add entries for a-wichun and a-zchuni
24943         Add a-widcha a-zchara for AI-395
24944         Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
24945
24946         * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
24947         Add entries for a-wichun.o and a-zchuni.o
24948         Entries for a-widcha.o and a-zchara.o
24949         Add entry for a-chacon.o
24950
24951         * a-ztenau.adb: Add with of Ada.Characters.Conversions
24952
24953         * a-chacon.ads, a-chacon.adb: New files.
24954
24955         * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
24956         categorization violations.
24957
24958         * a-strmap.ads: Add pragma Pure_05 for AI-362
24959         * a-strmap.ads: Add note on implicit categorization for AI-362
24960
24961         * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
24962
24963         * par-prag.adb: Dummy entry for pragma Persistent_BSS
24964         Set Ada_Version_Explicit, for implementation of AI-362
24965         Add processing for pragma Pure_05 and Preelaborate_05
24966         Add entry for Assertion_Policy pragma
24967
24968         * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
24969         when needed for proper processing of categorization stuff
24970
24971         * sem_cat.adb:
24972         For several cases, make errors in preealborate units warnings,
24973         instead of errors, if GNAT_Mode is set. For AI-362.
24974
24975         * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
24976         preelaborate unit is now warning if in GNAT mode
24977
24978         * s-stoele.ads: Document AI-362 for pragma preelaborate
24979
24980 2005-06-14  Doug Rupp  <rupp@adacore.com>
24981
24982         * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
24983         s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
24984         Default_Exception_Msg_Max_Length: new parameter.
24985
24986         * a-except.ads: (Exception_Msg_Max_Length): Set to
24987         System.Parameters.Default_Exception_Msg_Max_Length
24988         Add pragma Preelaborate_05 for AI-362
24989         Add warnings off to allow categorization violations for AI-362
24990
24991 2005-06-14  Vincent Celier  <celier@adacore.com>
24992
24993         * gnatsym.adb: Adapt to modification of package Symbols: procedure
24994         Process is now in package Processing.
24995
24996         * symbols.ads, symbols.adb:
24997         (Processing): New package, containing procedure Process
24998
24999         * symbols-vms-alpha.adb:
25000         Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
25001
25002         * symbols-vms.adb, symbols-processing-vms-alpha.adb,
25003         symbols-processing-vms-ia64.adb: New files.
25004
25005 2005-06-14  Pascal Obry  <obry@adacore.com>
25006
25007         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
25008         implementation. This new version generates the proper DllMain routine
25009         to initialize the SAL. The DllMain is generated in Ada and compiled
25010         before being added as option to the library build command.
25011
25012 2005-06-14  Doug Rupp  <rupp@adacore.com>
25013             Pascal Obry  <obry@adacore.com>
25014
25015         * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
25016         call to decc$translate_vms.
25017         (__gnat_locate_regular_file): Check if the path_val contains quotes. We
25018         need to remove those quotes before catenating the filename.
25019         (__gnat_locate_exec_on_path): improvements to the Win32 section:
25020         * avoid allocating the memory twice for better efficiency;
25021         * allocate 32K buffer for environment expansion as suggested by MSDN;
25022         * prepend ".;" to the path so that current directory is searched too.
25023
25024 2005-06-14  Robert Dewar  <dewar@adacore.com>
25025
25026         * a-except.adb (Exception_Identity): return Null_Id for null occurrence
25027         instead of raising CE (AI-241)
25028         Add warnings off to allow categorization violations for AI-362
25029
25030 2005-06-14  Robert Dewar  <dewar@adacore.com>
25031
25032         * ali-util.adb, gnatbind.adb: Remove references to
25033         Force_RM_Elaboration_Order.
25034
25035         * switch-b.adb: Remove recognition of -f switch
25036
25037 2005-06-14  Pascal Obry  <obry@adacore.com>
25038
25039         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
25040         implementation which is slightly more efficient.
25041
25042 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
25043             Javier Miranda  <miranda@adacore.com>
25044             Ed Schonberg  <schonberg@adacore.com>
25045             Hristian Kirtchev  <kirtchev@adacore.com>
25046
25047         * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
25048         allocator's designated type is a class-wide type, and compiling for
25049         Ada 2005, emit a run-time check that the accessibility level of the
25050         type given in the allocator's expression is not deeper than the level
25051         of the allocator's access type.
25052
25053         (Tagged_Membership): Modified to gives support to abstract interface
25054         types.
25055
25056         * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
25057         Access_Level.
25058         (Descendant_Tag): New predefined function
25059         (Is_Descendant_At_Same_Level): New predefined function
25060         (Get_Access_Level): New private function
25061         (Set_Access_Level): New private procedure
25062         (IW_Membership): New function. Given the tag of an object and the tag
25063         associated with an interface, evaluate if the object implements the
25064         interface.
25065         (Register_Interface_Tag): New procedure used to initialize the table of
25066         interfaces used by the IW_Membership function.
25067         (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
25068         of the dispatch table.
25069         (Inherit_TSD): Modified to copy the table of ancestor tags plus the
25070         table of interfaces of the parent.
25071         (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
25072         (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
25073         (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
25074         and raise Tag_Error if the passed tag equalis No_Tag, to conform with
25075         Ada 2005 semantics for the new predefined function.
25076
25077         * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
25078         call to Descendant_Tag rather than Internal_Tag.
25079         (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
25080         the accessibility level of the attribute's Item parameter is not deeper
25081         than the level of the attribute's prefix type. Tag_Error is raised if
25082         the check fails. The check is only emitted for Ada_05.
25083         (Find_Stream_Subprogram): If a TSS exists on the type itself for the
25084         requested stream attribute, use it.
25085         (Expand_N_Attribute_Reference): If the designated type is an interface
25086         then rewrite the referenced object as a conversion to force the
25087         displacement of the pointer to the secondary dispatch table.
25088         (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
25089         is a dereference of an object with a constrained partial view.
25090
25091         * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
25092         type is a class-wide type, emit a run-time check that the accessibility
25093         level of the returned object is not deeper than the level of the
25094         function's master (only when compiling for Ada 2005).
25095
25096         * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
25097         Action_Nb_Arg): Add entries for new Get_Access_Level and
25098         Set_Access_Level routines in these tables.
25099         (Make_DT): Generate a call to set the accessibility level of the
25100         tagged type in its TSD.
25101         (Make_DT): Code cleanup. The functionality of generating all the
25102         secondary dispatch tables has been moved to freeze_record_type.
25103         (Make_Abstract_Interface_DT): Minor code cleanup.
25104         (Set_All_DT_Position): Code cleanup. As part of the code cleanup
25105         this subprogram implements a new algorithm that provides the
25106         same functionality and it is more clear in case of primitives
25107         associated with abstract interfaces.
25108         (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
25109         clean up, the functionality of this subprogram is now provided
25110         by Set_All_DT_Position.
25111         (Write_DT): New subprogram: a debugging procedure designed to be called
25112         within gdb to display the dispatch tables associated with a tagged
25113         type.
25114         (Collect_All_Interfaces): New subprogram that collects the whole list
25115         of interfaces that are directly or indirectly implemented by a tagged
25116         type.
25117         (Default_Prim_Op_Position): New subprogram that returns the fixed
25118         position in the dispatch table of the default primitive operations.
25119         (Expand_Interface_Actuals): New subprogram to generate code that
25120         displaces all the actuals corresponding to class-wide interfaces to
25121         reference the interface tag of the actual object.
25122         (Expand_Interface_Conversion): New subprogram. Reference the base of
25123         the object to give access to the interface tag associated with the
25124         secondary dispatch table.
25125         (Expand_Interface_Thunk): New subprogram that generates the code of the
25126         thunk. This is required for compatibility with the C+ ABI.
25127         (Make_Abstract_Interface_DT): New subprogram that generate the
25128         declarations for the secondary dispatch tables associated with an
25129         abstract interface.
25130         (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
25131         attribute for each primitive operation covering interface subprograms
25132         (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
25133         These subprograms were upgraded to give support to abstract interfaces
25134
25135         * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
25136         RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
25137         RE_Set_Access_Level.
25138         (RE_Unit_Table): Add entries for new Ada.Tags operations.
25139         Add support to call the followig new run-time subprograms:
25140         IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
25141
25142         * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
25143         match its full declaration when both have an access definition with
25144         statically matching designated subtypes.
25145         (Analyze_Component_Declaration): Delete commented out code that was
25146         incorrectly setting the scope of an anonymous access component's type.
25147         (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
25148         an access discriminant when the containing type is nonlimited.
25149         (Make_Incomplete_Type_Declaration): Create an incomplete type
25150         declaration for a record type that includes self-referential access
25151         components.
25152         (Check_Anonymous_Access_Types): Before full analysis of a record type
25153         declaration, create anonymous access types for each self-referential
25154         access component.
25155         (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
25156         an access component in this context is a Local_Anonymous_Access, for
25157         proper accessibility checks.
25158         (Access_Definition): Set properly the scope of the anonymous access type
25159         created for a stand-alone access object.
25160         (Find_Type_Of_Object): An object declaration may be given with an access
25161         definition.
25162         (Complete_Subprograms_Derivation): New subprogram used to complete
25163         type derivation of private tagged types implementing interfaces.
25164         In this case some interface primitives may have been overriden
25165         with the partial-view and, instead of re-calculating them, they
25166         are included in the list of primitive operations of the full-view.
25167         (Build_Derived_Record_Type): Modified to give support to private
25168         types implemening interfaces.
25169         (Access_Definition): Reject ALL on anonymous access types.
25170         (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
25171         type derivation to occur at a deeper accessibility level than the
25172         parent type.
25173         For the case of derivation within a generic body however, disallow the
25174         derivation if the derived type has an ancestor that is a formal type
25175         declared in the formal part of an enclosing generic.
25176         (Analyze_Object_Declaration): For protected objects, remove the check
25177         that they cannot contain interrupt handlers if not declared at library
25178         level.
25179         (Add_Interface_Tag_Components): New subprogram to add the tag components
25180         corresponding to all the abstract interface types implemented by a
25181         record type or a derived record type.
25182         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
25183         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
25184         Process_Full_View, Record_Type_Declaration): Modified to give
25185         support to abstract interface types
25186         (Collect_Interfaces): New subprogram that collects the list of
25187         interfaces that are not already implemented by the ancestors
25188         (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
25189         when partial view has no discriminants and full view has defaults.
25190         (Constrain_Access): Reject a constraint on a general access type
25191         if the discriminants of the designated type have defaults.
25192         (Access_Subprogram_Declaration): Associate the Itype node with the inner
25193         full-type declaration or subprogram spec. This is required to handle
25194         nested anonymous declarations.
25195         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
25196         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
25197         Process_Full_View, Record_Type_Declaration): Modified to give
25198         support to abstract interface types
25199         (Derive_Subprograms): Addition of a new formal to indicate if
25200         we are in the case of an abstact-interface derivation
25201         (Find_Type_Of_Subtype_Indic): Moved from the body of the package
25202         to the specification because it is requied to analyze all the
25203         identifiers found in a list of interfaces
25204
25205         * debug.adb: Complete documentation of flag "-gnatdZ"
25206
25207         * exp_ch3.adb: Implement config version of persistent_bss pragma
25208         (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
25209         testing for TSS presence to properly enforce visibility rules.
25210         (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
25211         Make_Abstract_Interfaces_DT to generate the secondary tables
25212         associated with abstract interfaces.
25213         (Build_Init_Procedure): Modified to initialize all the tags
25214         corresponding.
25215         (Component_Needs_Simple_Initialization): Similar to other tags,
25216         interface tags do not need initialization.
25217         (Freeze_Record_Type): Modified to give support to abstract interface
25218         types.
25219         (Expand_N_Object_Declaration): Do not generate an initialization for
25220         a scalar temporary marked as internal.
25221
25222         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
25223         in-out parameter that is a component in an initialization procedure,
25224         whose constraint might depend on discriminants, and that may be
25225         misaligned because of packing or representation clauses.
25226         (Is_Legal_Copy): New predicate to determine whether a possibly
25227         misaligned in-out actual can actually be passed by copy/return. This
25228         is an error in case the type is by_reference, and a warning if this is
25229         the consequence of a DEC import pragma on the subprogram.
25230         (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
25231         interface types
25232         (Expand_Inlined_Call): Mark temporary generated for the return value as
25233         internal, so that no useless scalar normalization is generated for it.
25234         (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
25235         null procedure can always be inlined.
25236         (Expand_N_Subprogram_Declaration): If this is the declaration of a null
25237         procedure, generate an explicit empty body for it.
25238
25239         * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
25240         Given a type implementing an interface, returns the corresponding
25241         access_disp_table value.
25242         (Find_Interface_Tag): New subprogram. Given a type implementing an
25243         interface, returns the record component containing the tag of the
25244         interface.
25245         (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
25246         previous ones that return the corresponding tag and access_disp_table
25247         entities.
25248         (Is_Predefined_Dispatching_Operation): Determines if a subprogram
25249         is a predefined primitive operation.
25250         (Expand_Subtype_From_Expr): If the expression is a selected component
25251         within an initialization procedure, compute its actual subtype, because
25252         the component may depend on the discriminants of the enclosing record.
25253
25254         * i-cpp.ads, i-cpp.adb:
25255         This package has been left available for compatibility with previous
25256         versions of the frontend. As part of the new layout this is now a
25257         dummy package that uses declarations available at a-tags.ads
25258
25259         * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
25260         "constant access" and "aliased [constant] access" when not compiling
25261         with -gnat05.
25262         Suppress Ada 2005 keyword warning if -gnatwY used
25263         (P_Identifier_Declarations): Add support for object declarations with
25264         access definitions.
25265         (Private_Extension_Declaration): Complete the documentation
25266         (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
25267         attribute in case of private extension declaration
25268         (P_Type_Declaration): Mark as "abstract" the type declarations
25269         corresponding with protected, synchronized and task interfaces
25270         (P_Declarative_Items): "not" and "overriding" are overriding indicators
25271         for a subprogram or instance declaration.
25272
25273         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
25274         instantiation that is a dispatching operation has controlling access
25275         parameters that are null excluding.
25276         Save and restore Ada_Version_Explicit, for implementation of AI-362
25277         (Validate_Derived_Type_Instance): Add check for abstract interface
25278         types.
25279         (Analyze_Formal_Package): Establish Instantiation source for the copy of
25280         the generic that is created to represent the formal package.
25281         (Analyze_Package_Instantiation): Instantiate body immediately if the
25282         package is a predefined unit that contains inlined subprograms, and
25283         we are compiling for a Configurable_Run_Time.
25284         (Instantiate_Formal_Subprogram): Indicate that null default subprogram
25285         If the program has a null default, generate an empty body for it.
25286
25287         * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
25288         error message condition, null procedures are correctly detected now.
25289         (New_Overloaded_Entity): Bypass trivial overriding indicator check
25290         for subprograms in the context of protected types. Instead, the
25291         indicator is examined in Sem_Ch9 while analysing the subprogram
25292         declaration.
25293         (Check_Overriding_Indicator): Check consistency of overriding indicator
25294         on subprogram stubs as well.
25295         (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
25296         the library level.
25297         (Analize_Subprogram_Specification): When analyzing a subprogram in which
25298         the type of the first formal is a concurrent type, replace this type
25299         by the corresponding record type.
25300         (Analyze_Subprogram_Body): Undo the previous work.
25301         (Analyze_Procedure_Call): If the call has the form Object.Op, the
25302         analysis of the prefix ends up analyzing the call itself, after which
25303         we are done.
25304         (Has_Interface_Formals): New subprogram subsidiary to analyze
25305         subprogram_specification that returns true if some non
25306         class-wide interface subprogram is found
25307         (New_Overloaded_Entity): Modified to give support to abstract
25308         interface types
25309         (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
25310         access to subprograms must be recursive.
25311         (Is_Unchecked_Conversion): Improve the test that recognizes
25312         instantiations of Unchecked_Conversion, and allows them in bodies that
25313         are to be inlined by the front-end. When the body comes from an
25314         instantiation, a reference to Unchecked_Conversion will be an
25315         Expanded_Name, even though the body has not been analyzed yet.
25316         Replace Is_Overriding and Not_Overriding in subprogram_indication with
25317         Must_Override and Must_Not_Override, to better express intent of AI.
25318         (Analyze_Subprogram_Body): If an overriding indicator is given, check
25319         that it is consistent with the overrinding status of the subprogram
25320         at this point.
25321         (Analyze_Subprogram_Declaration): Indicate that a null procedure is
25322         always inlined.
25323         If the subprogram is a null procedure, indicate that it does not need
25324         a completion.
25325
25326         * sem_disp.adb (Check_Controlling_Type): Give support to entities
25327         available through limited-with clauses.
25328         (Check_Dispatching_Operation): A stub acts like a body, and therefore is
25329         allowed as the last primitive of a tagged type if it has no previous
25330         spec.
25331         (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
25332         to give support to abstract interface types
25333
25334         * sem_res.adb (Valid_Conversion): Perform an accessibility level check
25335         in the case where the target type is an anonymous access type of an
25336         object or component (that is, when Is_Local_Anonymous_Access is true).
25337         Prevent the special checks for conversions of access discriminants in
25338         the case where the discriminant belongs to a nonlimited type, since
25339         such discriminants have their accessibility level defined in the same
25340         way as a normal component of an anonymous access type.
25341         (Resolve_Allocator): When an allocator's designated type is a class-wide
25342         type, check that the accessibility level of type given in the
25343         allocator's expression or subtype indication is not statically deeper
25344         than the level of the allocator's access type.
25345         (Check_Discriminant_Use): Diagnose discriminant given by an expanded
25346         name in a discriminant constraint of a record component.
25347         (Resolve_Explicit_Dereference): Do not check whether the type is
25348         incomplete when the dereference is a use of an access discriminant in
25349         an initialization procedure.
25350         (Resolve_Type_Conversion): Handle conversions to abstract interface
25351         types.
25352         (Valid_Tagged_Conversion): The conversion of a tagged type to an
25353         abstract interface type is always valid.
25354         (Valid_Conversion): Modified to give support to abstract interface types
25355         (Resolve_Actuals): Enable full error reporting on view conversions
25356         between unrelated by_reference array types.
25357         The rule for view conversions of arrays with aliased components is
25358         weakened in Ada 2005.
25359         Call to obsolescent subprogram is now considered to be a violation of
25360         pragma Restrictions (No_Obsolescent_Features).
25361         (Check_Direct_Boolean_Operator): If the boolean operation has been
25362         constant-folded, there is nothing to check.
25363         (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
25364         check on possible violation of restriction No_Direct_Boolean_Operators
25365         until after expansion of operands, to prevent spurious errors when
25366         operation is constant-folded.
25367
25368         * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
25369         Has_Compatible_Type): Modified to give support to abstract interface
25370         types.
25371         (Interface_Present_In_Ancestor): New function to theck if some ancestor
25372         of a given type implements a given interface
25373
25374         * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
25375         prefix is a parameterless function that returns an access_to_procedure.
25376         (Transform_Object_Operation): Handle properly function calls of the
25377         form Obj.Op (X), which prior to analysis appear as indexed components.
25378         (Analyze_One_Call): Complete the error notification to help new Ada
25379         2005 users.
25380         (Analyze_Allocator): For an allocator without an initial value, where
25381         the designated type has a constrained partial view, a discriminant
25382         constraint is illegal.
25383
25384 2005-06-14  Robert Dewar  <dewar@adacore.com>
25385
25386         * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
25387         do with treatment of Set_Col when positioned at end of line character.
25388
25389 2005-06-14  Robert Dewar  <dewar@adacore.com>
25390
25391         * atree.adb: (Elist*): Protect against uninitialized field
25392
25393 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25394
25395         * checks.adb (Install_Null_Excluding_Check): Do not generate checks
25396         for an attribute reference that returns an access type.
25397         (Apply_Discriminant_Check): No need for check if (designated) type has
25398         constrained partial view.
25399
25400         (Apply_Float_Conversion_Check): Generate a short-circuit expression for
25401         both bound checks, rather than a conjunction.
25402         (Insert_Valid_Check): If the expression is an actual that is an indexed
25403         component of a bit-packed array, force expansion of the packed element
25404         reference, because it is specifically inhibited elsewhere.
25405
25406 2005-06-14  Vincent Celier  <celier@adacore.com>
25407
25408         * clean.adb (Clean_Project): Correctly delete executable specified as
25409         absolute path names.
25410
25411         * make.adb (Gnatmake): Allow relative executable path names with
25412         directory information even when project files are used.
25413         (Change_To_Object_Directory): Fail gracefully when unable to change
25414         current working directory to object directory of a project.
25415         (Gnatmake): Remove exception handler that could no longer be exercized
25416         (Compile_Sources.Compile): Use deep copies of arguments, as some of them
25417         may be deallocated by Normalize_Arguments.
25418         (Collect_Arguments): Eliminate empty arguments
25419
25420         * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
25421         and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
25422         (Check_Project): Return False when Project is No_Project. Return True
25423         when All_Projects is True.
25424         (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
25425         All_Projects to True.
25426         Minor reformatting
25427
25428 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25429             Javier Miranda  <miranda@adacore.com>
25430             Thomas Quinot  <quinot@adacore.com>
25431             Robert Dewar  <dewar@adacore.com>
25432             Hristian Kirtchev  <kirtchev@adacore.com>
25433             Gary Dismukes  <dismukes@adacore.com>
25434
25435         * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
25436         anonymous access types, to indicate that the accessibility level of
25437         the type is determined by that of the enclosing declaration.
25438         (Has_Persistent_BSS): New flag
25439         (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
25440         of this attribute with functions.
25441         (Is_Primitive_Wrapper): Remove the barrier.
25442         (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
25443         Has_Specified_Stream_Read, Has_Specified_Stream_Write):
25444         New subprograms.
25445         (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
25446         Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
25447         New subprograms.
25448         (Is_Pure_Unit_Access_Type): New flag
25449         (Abstract_Interfaces): Complete the assertion to cover all usages.
25450         (Set_Is_Interface): Complete the assertion to cover all usages.
25451         (Is_Primitive_Wrapper): New attribute.
25452         (Is_Obsolescent): Now applies to all entities (though it is only set
25453         for subprograms currently)
25454         New flag:  Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
25455         which solves various problems concerning access subtypes.
25456         (Has_Persistent_BSS): New flag
25457         (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
25458         Remove these subprograms because this attribute is currently
25459         not used.
25460         New entity flags:
25461         Has_Specified_Stream_Input (Flag190)
25462         Has_Specified_Stream_Output (Flag191)
25463         Has_Specified_Stream_Read (Flag192)
25464         Has_Specified_Stream_Write (Flag193)
25465         Present in all type and subtype entities. Set for a given view if the
25466         corresponding stream-oriented attribute has been defined by an
25467         attribute definition clause. When such a clause occurs, a TSS is set
25468         on the underlying full view; the flags are used to track visibility of
25469         the attribute definition clause for partial or incomplete views.
25470         (Is_Pure_Unit_Access_Type): New flag
25471         Clarify use of Is_Internal.
25472         (Is_Primitive_Wrapper): New attribute present in primitive subprograms
25473         internally generated to wrap the invocation of tasks and protected
25474         types that implement interfaces.
25475         (Implementation_Base_Type): Documentation correction
25476         (Is_Obsolescent): Now applies to all entities (though it is only set
25477         for subprograms currently)
25478         New flag:  Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
25479         which solves various problems concerning access subtypes.
25480
25481         * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
25482         for examined parameters. Identify unequal parameter list lengths as
25483         non-conformant parameters.
25484         (Overriding_Possible): Do not check for "All" qualifier in declaration
25485         of controlling access parameter, following prescription of AI-404.
25486         (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
25487         that build the procedure body that wraps an entry invocation
25488         (Build_Corresponding_Record, Build_Protected_Sub_Specification,
25489         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
25490         Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
25491         give support to abstract interface types
25492
25493         * freeze.adb (Freeze_Entity): Issue error message if
25494         Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
25495         type has no storage pool (Ada 2005) AI-366.
25496         Also modified to give support to abstract interface types
25497         (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
25498         Inline_Always pragma.
25499
25500         * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
25501         now begin an entry declaration.
25502         (P_Entry_Or_Subprogram_With_Indicator): New procedure in
25503         P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
25504         a subprogram declaration preceded by an overriding indicator.
25505         (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
25506         declarations or subprogram declarations preceded by reserved words
25507         "not" or "overriding".
25508         (P_Entry_Declaration): Update comment. Parse and check overriding
25509         indicator, set semantic flags of entry declarations.
25510         (P_Task): New error message in case of private applied
25511         to a task type declaration.
25512         (P_Protected): New error message in case of private applied
25513         to a task type declaration.
25514
25515         * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
25516         in which the full view of a type implementing an interface is a
25517         concurrent type.
25518         (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
25519         Declare_Inherited_Private_Subprograms): If an explicit operation
25520         overrides an operation that is inherited in the private part, mark the
25521         explicit one as overriding, to enable overriding indicator checks.
25522         (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
25523         full view to partial view, to simplify handling in back-end.
25524
25525         * sprint.adb: Print interface lists where needed: derived types,
25526         protected types, task types.
25527         output "is null" for null procedures. Part of implementation of
25528
25529         * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
25530         relaxation of rules for access types in pure, shared passive partitions.
25531
25532         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
25533         first read discriminants into temporary objects, performing checks on
25534         the read values, then possibly performing discriminant checks on the
25535         actual (if it is constrained), and only finally reading the components
25536         into a constrained temporary object.
25537         (Build_Elementary_Input_Call): Adjust the specific circuitry for the
25538         case of reading discriminants of a mutable record type to recognize
25539         the new form of the code generated by
25540         Build_Mutable_Record_Read_Procedure.
25541
25542         * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
25543         of a simple call to Make_TSS_Name.
25544         (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
25545         buffer, in order for Is_TSS to work correctly on local TSS names.
25546
25547         * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
25548         Is_Local_Anonymous_Access to check legaliy of attributes in the
25549         context of  access components and stand-alone access objects.
25550         (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
25551         treated as available for a limited private type if there is an
25552         attribute_definition_clause that applies to its full view, but not in
25553         other cases where the attribute is available for the full view
25554         (specifically, the sole fact that the full view is non-limited does not
25555         make the attribute available for the partial view).
25556         (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
25557         non-overloaded intrinsic subprogram.
25558         (Check_Stream_Attribute): Reject an attribute reference for an
25559         unavailable stream attribute even if the prefix is not a limited type
25560         (case of a 'Input attribute reference for an abstract, non-classwide
25561         type)
25562         (Stream_Attribute_Available): New function to determine whether a stream
25563         attribute is available at a place.
25564         (Check_Attribute): Use Stream_Attribute_Available instead of just
25565         testing for TSS presence on the implementation base type.
25566         (Analyze_Attribute): Modified to give support to task interfaces.
25567         (Analyze_Access_Attribute): Add error check for use of an Access (or
25568         Unrestricted_Access) attribute with a subprogram marked as
25569         Inline_Always.
25570         (Analyze_Attribute, case Attribute_Address): Add error check for use of
25571         an Address attribute with a subprogram marked as Inline_Always.
25572         Update Eval_Attribute to handle new value of Width from AI-395
25573
25574         * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
25575         (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
25576         Factor common code across the stream-oriented attribute circcuits into
25577         a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
25578         processing is functionally identical to the previous duplicated one,
25579         except that an expression that denotes an abstract subprogram will now
25580         be rejected, as mandated by AI-195 item 5.
25581
25582         * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
25583         Is_Local_Anonymous_Access to apply accessibility checks to access
25584         components and stand-alone access objects.
25585         (Has_Discriminant_Dependent_Constraint): Moved to spec for use
25586         elsewhere.
25587         (Is_Potentially_Persistent_Type): New function
25588         (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
25589         a heap-object whose type has a constrained partial view, the object is
25590         unconstrained and the component may depend on a discriminant, making its
25591         renaming illegal.
25592
25593         * sinfo.ads, sinfo.adb
25594         (Must_Not_Override): Flag applicable to N_Entry_Declaration.
25595         (Must_Override): Flag applicable to N_Entry_Declaration.
25596         Indicate that interface_list can appear in single task and single
25597         protected declarations.
25598         Replace Is_Overriding and Not_Overriding with Must_Override and
25599         Must_Not_Override, to better express intent of AI.
25600         Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
25601         of an overriding indicator in a subprogram or instance.
25602         Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
25603         Add the overriding indicator [[not] overriding] construct to the
25604         following grammar productions:
25605          ENTRY_DECLARATION
25606          GENERIC_INSTANTIATION
25607          SUBPROGRAM_SPECIFICATION
25608
25609         * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
25610         can start with an overriding indicator.
25611
25612         * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
25613         flags accordingly on subrogram specifications or instances.
25614
25615         * sem_ch8.adb:
25616         (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
25617         overriding_indicator, if present, is consistent with status of spec.
25618         Improve error message for null-excluding checks on controlling access
25619         parameters.
25620         (Check_In_Previous_With_Clause): Protect the frontend against
25621         previously reported critical errors in the context clauses.
25622         Save and restore Ada_Version_Explicit, for implementation of AI-362
25623         (Analyze_Subprogram_Renaming): If the new entity is a dispatching
25624         operation verify that controlling formals of the renamed entity that
25625         are access parameters are explicitly non-null.
25626         (Find_Expanded_Name): Improve error message when prefix is an illegal
25627         reference to a private child unit.
25628
25629         * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
25630         s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
25631         Rewrite to correspond to new wide character names in AI-395
25632
25633         * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
25634         default procedures.
25635
25636 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25637             Robert Dewar  <dewar@adacore.com>
25638
25639         * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
25640         code, not on the bodies of predefined operations, to cut down on
25641         spurious noise.
25642
25643 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25644
25645         * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
25646         be expanded in place. The size computation does not require a
25647         subtraction, which would raise an exception on a compiler built with
25648         assertions when the upper bound is Integer'first.
25649         (Flatten): For an array of composite components, take into account the
25650         size of the components to determine whether it is safe to expand the
25651         array into a purely positional representation.
25652
25653 2005-06-14  Thomas Quinot  <quinot@adacore.com>
25654
25655         * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
25656         denoting a formal parameter into account.
25657
25658 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25659
25660         * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
25661         the entry_call alternative of a conditional entry call, wrap the
25662         conditional entry call itself.
25663
25664 2005-06-14  Nicolas Setton  <setton@adacore.com>
25665             Ed Schonberg  <schonberg@adacore.com>
25666
25667         * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
25668         the "simple_choice" member in a variant record, in accordance with the
25669         description in the package spec: the information output for a constant
25670         should be "S number", not "SS number".
25671         (Get_Encoded_Name): Return at once if not generating code. Avoids name
25672         overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
25673
25674 2005-06-14  Thomas Quinot  <quinot@adacore.com>
25675
25676         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
25677         RACW without any primitives, do not generate the if statement for
25678         dispatching by name in the PolyORB/DSA case, as it would be malformed
25679         (it would have an Elsif_Parts list that is not No_List, but with a
25680         length of 0).
25681
25682 2005-06-14  Robert Dewar  <dewar@adacore.com>
25683
25684         * exp_intr.adb, par-ch5.adb: Minor fix to error message text
25685
25686 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
25687
25688         * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
25689         can determine whether pragma Suppress_Exception_Locations is in effect.
25690
25691         * utils2.c (build_call_raise): Do not pass the file name to the
25692         exception handler if pragma Suppress_Exception_Locations is in effect.
25693         (build_allocator): Add and process arg IGNORE_INIT_TYPE.
25694
25695 2005-06-14  Emmanuel Briot  <briot@adacore.com>
25696
25697         * g-debpoo.adb (Deallocate, Dereference): Improve output.
25698
25699 2005-06-14  Nicolas Roche  <roche@adacore.com>
25700
25701         * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
25702         to ""
25703         (Next_Level): Fix minor bug in handling of ../dir case
25704         (Read): Add dir separator to Directory name so that "" is understood as
25705          "/"
25706
25707 2005-06-14  Pascal Obry  <obry@adacore.com>
25708
25709         * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
25710         releasing the items.
25711
25712 2005-06-14  Vincent Celier  <celier@adacore.com>
25713             Cyrille Comar  <comar@adacore.com>
25714
25715         * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
25716         with output file descriptor and with output file name.
25717         (Dup, Dup2): Now global procedures as they are used by two subprograms
25718         (Copy): Allocate the 200K buffer on the heap rather than on the stack.
25719
25720 2005-06-14  Thomas Quinot  <quinot@adacore.com>
25721
25722         PR ada/6717
25723         * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
25724         broadcast address.
25725         (Create_Selector): Bind listening socket used to create the signalling
25726         socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
25727         Set listen backlog to 1 to ensure that we detect socket theft by a
25728         failure of our own connect(2) call.
25729         (Check_Selector): Improve documentation of the selector mechanism.
25730         (Broadcast_Inet_Addr): New constant.
25731
25732 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
25733
25734         * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
25735         type which turns out to be an incomplete and incorrect fix.
25736         (Layout_Array_Type): Use Underlying_Type when checking whether the scope
25737         of the type is declared in a record (for determination of insertion
25738         type).
25739         (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
25740         a private type and ensure that the primary entity is used for the type
25741         of the newly created function's V formal by taking the Etype of the
25742         view.
25743
25744 2005-06-14  Javier Miranda  <miranda@adacore.com>
25745             Jose Ruiz  <ruiz@adacore.com>
25746             Robert Dewar  <dewar@adacore.com>
25747             Ed Schonberg  <schonberg@adacore.com>
25748
25749         * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
25750         that indicates if we are parsing a compilation unit found in a
25751         limited-with clause.
25752         It is use to avoid the circularity check.
25753
25754         * par.ads, par.adb (Par): Addition of a new parameter to indicate if
25755         we are parsing a compilation unit found in a limited-with clause. This
25756         is use to avoid the circularity check.
25757
25758         * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
25759         unit as a consequence of parsing a limited-with clause. This is used
25760         to avoid the circularity check.
25761
25762         * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
25763         (Analyze_Context): Limited-with clauses are now allowed
25764         in more compilation units.
25765         (Analyze_Subunit_Context, Check_Parent): Protect the frontend
25766         againts previously reported critical errors in context clauses
25767         (Install_Limited_Withed_Unit): Code cleanup plus static detection
25768         of two further errors: renamed subprograms and renamed packages
25769         are not allowed in limited with clauses.
25770         (Install_Siblings): Do not install private_with_clauses on the package
25771         declaration for a non-private child unit.
25772         (Re_Install_Parents): When a parent of the subunit is reinstalled,
25773         reset visibility of child units properly.
25774         (Install_Withed_Unit): When a child unit appears in a with_clause of its
25775         parent, it is immediately visible.
25776
25777 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25778             Emmanuel Briot  <briot@adacore.com>
25779
25780         * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
25781         declared within an inlined body as referenced, to prevent spurious
25782         warnings.
25783         (Output_One_Ref): If an entity renames an array component, indicate in
25784         the ALI file that this aliases (renames) the array. Capture as well
25785         function renamings that rename predefined operations.
25786         Add information about generic parent for package and subprogram
25787         instances.
25788         (Get_Type_Reference): For a subtype that is the renaming of an actual in
25789         an instantiation, use the first_subtype to ensure that we don't generate
25790         cross-reference information for internal types.
25791         For objects and parameters of a generic private type, retain the '*'
25792         indicator to distinguish such an entity from its type.
25793
25794         * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
25795         to store information about instantiated entities.
25796
25797         * ali.adb (Scan_ALI): Add support for parsing the reference to the
25798         generic parent
25799
25800         * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
25801         (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
25802         information.
25803
25804 2005-06-10  Doug Rupp  <rupp@adacore.com>
25805             Arnaud Charlet  <charlet@adacore.com>
25806             Olivier Hainque  <hainque@adacore.com>
25807             Jose Ruiz  <ruiz@adacore.com>
25808
25809         * Make-lang.in: Add initialize.o when needed.
25810         Remove obsolete references to RT_FLAGS.
25811         Add missing dependencies for sdefault.o
25812
25813         * initialize.c: New file.
25814
25815         * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
25816         [VMS] cond_signal_table: Fix problem in declaration.
25817         [VMS] __gnat_error_handler: rewrite.
25818         Move all __gnat_initialize() routines to initialize.c
25819         Specialize the former "hpux" section to "hppa hpux", as this is what the
25820         section really is here for and we now have other hpux ports that need
25821         different contents.
25822         (__gnat_adjust_context_for_raise) i386-linux: First version of this
25823         function for this target. Adjust PC by one in the machine context. This
25824         adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
25825         it is more reliable to do that in the signal handler itself.
25826         (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
25827         flags, so that the handler is passed the context structure to adjust
25828         prior to the raise.
25829         (__gnat_error_handler) i386-linux: Adjust the signature to match what a
25830         SA_SIGINFO sigaction should look like. Call
25831         __gnat_adjust_context_for_raise before actually raising. Cleanup unused
25832         Machine_State_Operations stuff.
25833         Add conditional code so that the x86_64 is also supported.
25834
25835 2005-06-14  Pascal Obry  <obry@adacore.com>
25836
25837         * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
25838         the library name.
25839
25840 2005-06-14  Robert Dewar  <dewar@adacore.com>
25841
25842         * opt.ads, opt.adb: New flags for persistent_bss mode
25843         Add Ada_Version_Explicit, for implementation of AI-362
25844         Add Assertions_Enabled_Config and associated handling
25845         Needed since setting can be changed with Assertion_Policy pragma
25846         Add new flag Warn_On_Ada_2005_Compatibility
25847
25848         * switch-c.adb: Recognize -gnatwy/Y
25849         Set Ada_Version_Explicit, for implementation of AI-362
25850         The -gnatg switch now includes -gnatyu
25851
25852         * usage.adb: Add -gnatwy/Y
25853         Remove wrong asterisk on -gnatwX line
25854         Add line for -gnatyu switch
25855
25856 2005-06-14  Vincent Celier  <celier@adacore.com>
25857
25858         * osint.adb (Add_Default_Search_Dirs): Put source and object
25859         directories of project files before directories coming from
25860         ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
25861
25862 2005-06-14  Robert Dewar  <dewar@adacore.com>
25863
25864         PR ada/15613
25865         * par-ch2.adb (Scan_Pragma_Argument): New procedure
25866         (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
25867
25868 2005-06-14  Vincent Celier  <celier@adacore.com>
25869
25870         * prep.adb (Preprocess): Ignore error when scanning the first token of
25871         a line.
25872
25873 2005-06-14  Vincent Celier  <celier@adacore.com>
25874
25875         * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
25876         (Check_Stand_Alone_Library): If the specified reference symbol file does
25877         not exist, only issue a warning when the symbol policy is not
25878         Controlled. And, when symbol policy is Compliant, set the symbol
25879         policy to Autonomous.
25880
25881 2005-06-14  Vincent Celier  <celier@adacore.com>
25882
25883         * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
25884         when the project file in a with clause is not the last one, that is the
25885         project file name is followed by a comma.
25886         * prj-pp.adb: (First_With_In_List): New Boolean global variable
25887         (Print): Issue list of project files separated by commas in with clauses
25888         according to the values returned by Is_Not_Last_In_List.
25889         * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
25890         (Set_Is_Not_Last_In_List): New procedure
25891
25892 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
25893
25894         * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
25895
25896 2005-06-14  Robert Dewar  <dewar@adacore.com>
25897
25898         * scng.adb: Add call to new Check_EOF routine
25899         (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
25900         Add some comments regarding wide character handling
25901
25902         * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
25903
25904         * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
25905
25906         * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
25907         characters are now considered graphic characters and hence yield false
25908         in this call.
25909
25910         * nmake.adt: Modify header so that xnmake does not generate output
25911         files with multiple blank lines.
25912
25913         * treeprs.adt: Remove a blank line so that output from xtreeprs does
25914         not have an extra blank line
25915
25916 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
25917
25918         * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
25919         expression when the component type is an anonymous access type to
25920         ensure that appropriate accessibility checks are done.
25921
25922         * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
25923         expression of an assignment when the target object is of an anonymous
25924         access type. This ensures that required accessibility checks are done.
25925         (One_Bound): Move the check for type Universal_Integer to
25926         Process_Bounds.
25927         (Process_Bounds): Check whether the type of the preanalyzed range is
25928         Universal_Integer, and in that case set Typ to Integer_Type prior
25929         to setting the type of the original range and the calls to One_Bound.
25930
25931 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25932
25933         * sem_case.adb (Expand_Others_Choice): Improve warning.
25934
25935 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25936
25937         * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
25938         constraint of full view if present, when other type is discriminated.
25939         (Eval_Relational_Op): Recognize tests of pointer values against Null,
25940         when the pointer is known to be non-null, and emit appropriate warning.
25941
25942 2005-06-14  Robert Dewar  <dewar@adacore.com>
25943             Ed Schonberg  <schonberg@adacore.com>
25944
25945         PR ada/10671
25946         * sem_prag.adb: Implement pragma Persistent_BSS
25947         Remove obsolete pragma Persistent_Data, Persistent_Object
25948         Set Ada_Version_Explicit, for implementation of AI-362
25949         Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
25950         Add processing for pragma Pure_05 and Preelaborate_05
25951         Add processing for Assertion_Policy pragma
25952         Add pragma identifiers for Assert
25953         (Analyze_Pragma, case Assert): Check number of arguments
25954         (Process_Inline): Additional guard against an illegal program, where the
25955         argument of the pragma is undefined, and warnings on redundant
25956         constructs are enabled.
25957         (Analyze_Pragma, case Obsolescent): Allow an optional second argument
25958         Ada_05 to this pragma, specifying that the pragma is only active in
25959         Ada_05 mode.
25960         (Check_Arg_Order): New procedure
25961         Add appropriate calls to this procedure throughout
25962         Also throughout, check entity name before doing any other checks
25963
25964         * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
25965         Remove obsolete pragma Persistent_Data, Persistent_Object
25966         Add entries for pragma Pure_05 and Preelaborate_05
25967         Add entries for Assertion_Policy pragma and associated names
25968         Add some names for pragma argument processing
25969
25970         * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
25971
25972 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25973
25974         * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
25975         appears within a negation (either from source or as a rewriting of
25976         inequality) adjust text of warning accordingly.
25977
25978 2005-06-14  Thomas Quinot  <quinot@adacore.com>
25979
25980         * s-strxdr.adb: Follow AI95-00132
25981
25982 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
25983
25984         * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
25985
25986 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
25987             Jose Ruiz  <ruiz@adacore.com>
25988
25989         * s-tposen.adb, s-tpobop.adb
25990         (Exceptional_Complete_Rendezvous): Save the occurrence and not only
25991         the exception id.
25992         (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
25993         there is no violation of the Max_Entry_Queue_Length restriction (if it
25994         has been set); Program_Error is raised otherwise.
25995         (Requeue_Call): Before requeuing the task on the target entry queue we
25996         check that there is no violation of the Max_Entry_Queue_Length
25997         restriction (if it has been set); Program_Error is raised otherwise.
25998
25999 2005-06-14  Robert Dewar  <dewar@adacore.com>
26000
26001         * styleg.adb: Fix several remaining problems in -gnatyu switch
26002         Blank line count not reset at start
26003         Scanning outside source buffer in some cases
26004         Confusing message for blanks at end of file
26005         Non-empty blank lines not recognized
26006
26007         * nmake.adt: Modify header so that xnmake does not generate output
26008         files with multiple blank lines.
26009
26010         * treeprs.adt: Remove a blank line so that output from xtreeprs does
26011         not have an extra blank line
26012
26013 2005-06-14  Sergey Rybin  <rybin@adacore.com>
26014
26015         * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
26016
26017 2005-06-14  Doug Rupp  <rupp@adacore.com>
26018             Vincent Celier  <celier@adacore.com>
26019
26020         * vms_conv.ads, vms_conv.adb: Remove "Library" command.
26021         Update copyright.
26022
26023         * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
26024         Remove "Library" command.
26025         Change keyword for style check -gnatyd from NOCRLF to
26026         DOS_LINE_ENDINGS.
26027         Remove useless second style check keyword NONE
26028         Remove help documentation for inexistent style check keyword
26029         RM_COLUMN_LAYOUT.
26030         Add help documentation for style check keywords DOS_LINE_ENDINGS,
26031         UNNECESSARY_BLANK_LINES and XTRA_PARENS
26032         Add UNNECESSARY_BLANK_LINES for -gnatyu
26033         Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
26034
26035         * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
26036
26037 2005-06-14  Vincent Celier  <celier@adacore.com>
26038
26039         * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
26040         gprmake was invoked with -d.
26041         (Compile_Sources): If -d was used, output the "completed ..." message
26042         for each compilation.
26043         (Scan_Arg): Recognize new switch -d
26044         When -c and at least one main is specified, set
26045         Unique_Compile to True to guarantee that no other sources will be
26046         compiled.
26047
26048 2005-06-14  Matthew Heaney  <heaney@adacore.com>
26049
26050         * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
26051         * a-swuwha.ads, a-swuwha.adb: New files
26052
26053         * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
26054         * a-szuzha.ads, a-szuzha.adb: New files.
26055
26056         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
26057         a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
26058         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
26059         a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
26060         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
26061         a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
26062         a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
26063         a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
26064         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
26065         a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
26066         Ada 2005 RM.
26067
26068 2005-06-10  Eric Botcazou  <ebotcazou@adacore.com>
26069             Olivier Hainque  <hainque@adacore.com>
26070             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26071             Pascal Obry  <obry@adacore.com>
26072
26073         * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
26074
26075         * trans.c (call_to_gnu): Issue a warning for users of Starlet when
26076         making a temporary around a procedure call because of non-addressable
26077         actual parameter.
26078         (process_freeze_entity): If entity is a private type, capture size
26079         information that may have been computed for the full view.
26080         (tree_transform, case N_Allocator): If have initializing expression,
26081         check type for Has_Constrained_Partial_View and pass that to
26082         build_allocator.
26083         (tree_transform, case N_Return_Statement): Pass extra arg to
26084         build_allocator.
26085
26086         * decl.c (annotate_value): Remove early return if -gnatR is not
26087         specified.
26088         (gnat_to_gnu_field): Don't make a packable type for a component clause
26089         if the position is byte aligned, the field is aliased, and the clause
26090         size isn't a multiple of the packable alignment. It serves no useful
26091         purpose packing-wise and would be rejected later on.
26092         (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
26093
26094         PR ada/20515
26095         (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
26096         context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
26097         instead.
26098         (create_concat_name): Idem.
26099
26100 2005-06-10  Robert Dewar  <dewar@adacore.com>
26101             Eric Botcazou  <ebotcazou@adacore.com>
26102             Ben Brosgol  <brosgol@adacore.com>
26103             Cyrille Comar  <comar@adacore.com>
26104             Sergey Rybin  <rybin@adacore.com>
26105             Pascal Obry  <obry@adacore.com>
26106
26107         * gnat_rm.texi: Add documentation for pragma Persistent_BSS
26108         Document second argument (Ada_05) of pragma Obsolescent
26109         Add note that call to subprogram marked with pragma Obsolescent
26110         is now considered to be a violation of program Restrictions
26111         (No_Obsolescent_Features).
26112         (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
26113         that only machine-dependent attributes are supported.
26114
26115         * gnat_ugn.texi:
26116         Commented out menu lines and empty section for gnatclean examples
26117         Document -gnatwy/Y
26118         Fix some over long lines
26119         Clarify and enhance documentation of ADA_PROJECT_PATH.
26120         Rework section 2.11.2(3) about linking with a non-GNU compiler.
26121         Mention new switch -fcallgraph-info.
26122         Mention new switch -fstack-usage.
26123         For gnatpp, replace '-notab' with '-N' and add this option to Index
26124         Corrected VMS example.
26125         VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
26126         Minor reformatting
26127         Add documentation for -gnatyu switch (unnecessary blank lines)
26128         Document new switch -U for GNAT PRETTY and GNAT METRIC
26129         Add note about Stdcall being handled as C convention on non Windows OS.
26130         Remove some junk typo in description of gnatbind -S switch
26131         Remove reference to Extensions_Allowed pragma
26132         Document the new order of the directories to be searched (source and
26133         object directories of project files before directories in ADA_*_PATH
26134         environment variables.
26135
26136         * g-trasym.ads: Document that IRIX is supported
26137
26138 2005-06-10  Arnaud Charlet  <charlet@adacore.com>
26139
26140         * Makefile.in: Add initialize.o when needed.
26141         Adapt to new VMS package body Symbols and subunits
26142         No specialized version of a-sytaco is needed for VxWorks.
26143
26144         * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
26145         * a-zchara.ads, a-widcha.ads: New files.
26146
26147         * system-hpux-ia64.ads: New file.
26148
26149         * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
26150         is imported from the VxWorks kernel.
26151
26152 2005-06-14  Robert Dewar  <dewar@adacore.com>
26153
26154         * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
26155         fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
26156         a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
26157         s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
26158         a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
26159         g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
26160         i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
26161         namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
26162         sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
26163         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
26164         s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
26165         xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
26166
26167 2005-06-14  Thomas Quinot  <quinot@adacore.com>
26168
26169         * xeinfo.adb: Fix typo in comment
26170
26171 2005-06-14  Javier Miranda  <miranda@adacore.com>
26172
26173         * repinfo.ads: Fix typo in comment
26174
26175 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
26176
26177         * s-finimp.adb (Parent_Tag): Delete this imported function (function
26178         Parent_Tag is now in the visible part of Ada.Tags).
26179         (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
26180         using imported function.
26181
26182 2005-06-14  Bernard Banner  <banner@adacore.com>
26183
26184         * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
26185         also apply for handling support for VxSim 653.
26186
26187 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
26188
26189         * xsnames.adb: Add automatic generation of snames.h.
26190
26191 2005-06-14  Thomas Quinot  <quinot@adacore.com>
26192
26193         * gen-soccon.c: Add IP_MULTICAST_IF constant
26194         Minor reformatting and adjustments to prevent warnings.
26195
26196 2005-06-14  Pascal Obry  <obry@adacore.com>
26197
26198         * seh_init.c: Do not include <sys/stat.h>. This is not needed.
26199
26200 2005-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
26201
26202         * trans.c (gnat_gimplify_expr): Call
26203         recompute_tree_invarant_for_addr_expr when we change
26204         the operand of the ADDR_EXPR.
26205
26206 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26207
26208         * misc.c: Don't include errors.h.
26209
26210 2005-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26211
26212         * raise.c (db): Add ATTRIBUTE_PRINTF_2.
26213
26214 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
26215
26216         * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
26217         comment typos.
26218         * gnat_rm.texi, gnat_ugn.texi: Fix typos.
26219
26220 2005-05-16  Nathanael Nerode  <neroden@gcc.gnu.org>
26221
26222         PR ada/20270
26223         * Makefile.in: Make TGT_LIB behave correctly.
26224
26225 2005-04-23  DJ Delorie  <dj@redhat.com>
26226
26227         * misc.c: Adjust warning() callers.
26228
26229 2005-04-16  Laurent Guerby  <laurent@guerby.net>
26230
26231         PR ada/18847
26232         * a-nudira.adb (Value): Check for valid string.
26233         * a-nuflra.adb (Value): Likewise.
26234
26235 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
26236
26237         * lang.opt: Refer to the GCC internals documentation instead of c.opt.
26238
26239 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
26240
26241         * adaint.c, init.c, tracebak.c: Fix comment typos.
26242         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
26243
26244 2005-04-07  Laurent Guerby  <laurent@guerby.net>
26245             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26246
26247         * Makefile.in: Add make ifeq define for hppa linux tasking support.
26248         * system-hpux.ads: Define Signed_Zeros to be True.
26249         * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
26250
26251 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
26252
26253         * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
26254         raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
26255         typos.
26256
26257 2005-03-30  Tom Tromey  <tromey@redhat.com>
26258
26259         * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
26260
26261 2005-03-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
26262
26263         * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
26264
26265 2005-03-29  Robert Dewar  <dewar@adacore.com>
26266
26267         * sem_res.adb (Resolve_Real_Literal): Generate warning if static
26268         fixed-point expression has value that is not a multiple of the Small
26269         value.
26270
26271         * opt.ads (Warn_On_Bad_Fixed_Value): New flag
26272
26273         * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
26274         nanoseconds.
26275
26276         * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
26277
26278 2005-03-29  Vincent Celier  <celier@adacore.com>
26279
26280         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
26281         (Build_Dynamic_Library.Version_String): Return the empty string when
26282         Lib_Version is empty or when the symbol policy is not Autonomous.
26283
26284         * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
26285         a symbol is not in the reference symbol file, increase the Major ID
26286         and set the Minor ID to 0.
26287         Use gsmatch=lequal instead of gsmatch=equal
26288
26289 2005-03-29  Doug Rupp  <rupp@adacore.com>
26290
26291         * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
26292         name and translate.
26293
26294 2005-03-29  Javier Miranda  <miranda@adacore.com>
26295
26296         * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
26297         (Inherit_DT): The first formal has been redefined as a Tag.
26298         This allows us the removal of the subprogram Get_TSD.
26299         (TSD): Replace the call to Get_TSD by the actual code.
26300
26301         * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
26302         (Make_DT): Upgrade the call to Inherit_TSD according to the
26303         new interface: the first formal is now a Tag.
26304
26305         * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
26306         redefined as a Tag.
26307         This change allows us to remove the subprogram Get_TSD.
26308         (CPP_Get_TSD): Subprogram removed.
26309         (TSD): Replace the call to CPP_Get_TSD by the actual code.
26310
26311         * rtsfind.ads: Remove support to call the run-time
26312         subprogram Get_TSD
26313
26314 2005-03-29  Robert Dewar  <dewar@adacore.com>
26315
26316         * errutil.adb, errout.adb:
26317         Minor comment updates on Line_Terminator references
26318
26319         * par-ch10.adb: Add ??? comment about line terminator
26320
26321         * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
26322         (check dos line terminator).
26323         (Check_Line_Max_Length): New procedure, split off from the existing
26324         Check_Line_Terminator routine. Separating this out allows -gnatyf to
26325         be properly recognized.
26326
26327         * styleg.adb: Add ??? comment for line terminator reference
26328
26329         * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
26330         (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
26331
26332         * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
26333         (check dos line terminator).
26334         (Check_Line_Max_Length): New procedure, split off from the existing
26335         Check_Line_Terminator routine. Separating this out allows -gnatyf to
26336         be properly recognized.
26337
26338         * stylesw.ads, stylesw.adb:
26339         Add handling for new -gnatyd switch (check dos line terminator)
26340
26341         * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
26342         Recognize -gnatwb/-gnatwB switches
26343         Include Warn_On_Bad_Fixed_Value for -gnatg
26344
26345         * usage.adb:
26346         Add line for new -gnatyd switch (check dos line terminator)
26347
26348         * usage.adb: Add lines for -gnatwb/-gnatwB
26349
26350         * vms_data.ads: Add entry for NOCRLF (-gnatyd)
26351
26352         * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
26353
26354         * gnat_ugn.texi: Fix overlong lines
26355         Document new -gnatyd switch
26356         Document new -gnatwb/-gnatwB switches
26357
26358 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
26359
26360         * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
26361         order to retrieve the component list of the type, before examining
26362         individual components.
26363
26364         * sem_type.adb (Covers): Types are compatible if one is the base type
26365         of the other, even though their base types might differ when private
26366         views are involved.
26367
26368 2005-03-29  Thomas Quinot  <quinot@adacore.com>
26369
26370         * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
26371         To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
26372         of using Set_Renaming_TSS. This ensures that the TSS bodies are not
26373         analyzed if expansion is disabled (which could otherwise cause spurious
26374         error messages if expansion has been disabled due to previous
26375         (unrelated) errors).
26376
26377         * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
26378         is disabled, the entity denoted by the argument is the access type
26379         itself, not an underlying record type, so there is no need to go back
26380         to the Corresponding_Remote_Type.
26381
26382 2005-03-29  Gary Dismukes  <dismukes@adacore.com>
26383             Robert Dewar  <dewar@adacore.com>
26384
26385         * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
26386         expand a call to an instance of
26387         Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
26388         Constructor actual of the instance. A class-wide membership
26389         check is also generated, to ensure that the tag passed to the instance
26390         denotes a type in the class.
26391         (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
26392         of Name_Generic_Dispatching_Constructor.
26393
26394         * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
26395         05 unit for AI-260-02).
26396
26397         * a-tgdico.ads: New file.
26398
26399         * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
26400         predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
26401
26402         * snames.ads, snames.adb (Preset_Names): Add entry for
26403         Generic_Dispatching_Constructor.
26404
26405         PR ada/20300
26406         * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
26407         character type cases.
26408         (Analyze_Subprogram_Renaming): Add special handling for
26409         the case of renaming of stream attributes when the renaming denotes a
26410         generic formal subprogram association for an abstract formal subprogram.
26411         Check that the attribute is a primitive stream attribute (and not
26412         a class-wide stream attribute) and then rewrite the attribute name
26413         as the name of the appropriate compiler-generated stream primitive.
26414
26415 2005-03-29  Robert Dewar  <dewar@adacore.com>
26416
26417         * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
26418         recursive calls.
26419         (Is_Possibly_Unaligned_Object): Correct typo that
26420         resulted in inaccurate result for unaligned scalars within records.
26421
26422 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
26423
26424         * freeze.adb (Freeze_Record_Type): If the type of the component is an
26425         itype whose parent is controlled and not yet frozen, do not create a
26426         freeze node for the itype if expansion is disabled.
26427
26428 2005-03-29  Vincent Celier  <celier@adacore.com>
26429
26430         * make.adb (Gnatmake): Don't fail if the main project file is declared
26431         as having no Ada sources. Do not display message "no sources to
26432         compile" in quiet output.
26433
26434 2005-03-29  Doug Rupp  <rupp@adacore.com>
26435
26436         * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
26437         extra tools.
26438
26439 2005-03-29  Robert Dewar  <dewar@adacore.com>
26440
26441         * par-ch12.adb (P_Generic): Give better msg for illegal private generic
26442         child.
26443
26444 2005-03-29  Robert Dewar  <dewar@adacore.com>
26445
26446         * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
26447         missing TYPE Improve the error message generated when compiling a
26448         limited interface in Ada83 or Ada95 mode.
26449
26450 2005-03-29  Robert Dewar  <dewar@adacore.com>
26451
26452         * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
26453         rather than proceed ahead using a junk attribute name.
26454
26455 2005-03-29  Vincent Celier  <celier@adacore.com>
26456
26457         * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
26458
26459         * prj-part.adb (Parse_Single_Project): Set the location of a project
26460         on its defining identifier, rather than on the reserved word "project".
26461
26462         * prj-proc.adb (Expression): Adapt to the fact that default of external
26463         references may be string expressions, not always literal strings.
26464         (Recursive_Process): Set Display_Name equal to Name
26465         when Location is No_Location, that is when there is no actual file.
26466         Get the Display_Name of the project from the source, when it is not a
26467         virtual project.
26468         (Process): Use the Display_Name in error messages
26469
26470         * prj-strt.adb (External_Reference): Allow default to be string
26471         expressions, not only literal strings.
26472
26473 2005-03-29  Vincent Celier  <celier@adacore.com>
26474
26475         * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
26476         file and the reference symbol file to be the same file.
26477
26478 2005-03-29  Thomas Quinot  <quinot@adacore.com>
26479
26480         * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
26481         forbid conversion of a local access-to-subprogram type to a remote one.
26482
26483         * sem_util.adb (Wrong_Type): For a record type that is the expanded
26484         equivalent type for a remote access-to-subprogram type, go back to the
26485         original RAS entity when displaying an error message, so the casing is
26486         the original source casing.
26487
26488 2005-03-29  Robert Dewar  <dewar@adacore.com>
26489
26490         * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
26491         on param update.
26492
26493 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
26494
26495         * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
26496         subtype if code is being pre-analyzed, to prevent un-expanded
26497         references to protected formals, among others.
26498         (Analyze_Explicit_Dereference): If the overloaded prefix includes some
26499         interpretation that can be a call, include the result of the call as a
26500         possible interpretation of the dereference.
26501
26502         * sem_ch5.adb (Process_Bounds): Determine type of range by
26503         pre-analyzing a copy of the original range, and then analyze the range
26504         with the expected type.
26505
26506         * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
26507         with an overloaded prefix where not all interpretations yield an
26508         access to subprogram, do not rewrite node as a call.
26509         (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
26510         the node as a call once the context identifies the interpretation of
26511         the prefix whose call yields the context type.
26512         (Valid_Conversion): For the case of a conversion between
26513         local access-to-subprogram types, check subtype conformance using
26514         Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
26515         detailed error message.
26516
26517 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
26518
26519         * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
26520         indicator, indicate that the formal can never be null.
26521         (Process_Formals): If a formal has a non_null indicator, insert the
26522         resulting subtype immediately before the enclosing subprogram decl,
26523         and not at the beginning of the corresponding declarative part, to
26524         prevent access before elaboration (Ada2005).
26525
26526 2005-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26527
26528         PR ada/19956
26529         * utils.c (finish_record_type): Use variable_size when setting sizes.
26530
26531 2005-03-29  Robert Dewar  <dewar@adacore.com>
26532
26533         * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
26534         guarantee Unix style line terminators for the output files, even when
26535         running on windows.
26536
26537 2005-03-29  Robert Dewar  <dewar@adacore.com>
26538
26539         * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
26540         buffer if an exception is raised.
26541
26542 2005-03-29  Ed Falis  <falis@adacore.com>
26543
26544         * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
26545         VxWorks 653 1.4
26546
26547 2005-03-29  Robert Dewar  <dewar@adacore.com>
26548
26549         * sem_util.ads: Minor reformatting
26550         * gnat_rm.texi: Minor editing.
26551
26552 2005-03-29  Eric Botcazou  <ebotcazou@adacore.com>
26553
26554         * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
26555         * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
26556
26557 2005-03-24  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
26558
26559         * adaint.c (__gnat_portable_spawn): Adjust cast.
26560
26561 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
26562
26563         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
26564
26565 2005-03-17  Pascal Obry  <obry@adacore.com>
26566
26567         * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
26568         used.
26569
26570         * expect.c (__gnat_waitpid): Moved here from adaint.c.
26571         Reimplement under Win32 using Win32 API.
26572
26573         (__gnat_kill) [Win32]: Properly close the process handle before leaving
26574         this routine.
26575
26576 2005-03-17  Eric Botcazou  <ebotcazou@adacore.com>
26577
26578         * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
26579         (DECL_RENAMED_OBJECT): New accessor macro.
26580         (SET_DECL_RENAMED_OBJECT): New setter macro.
26581
26582         * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
26583         object in all cases.  Attach the renamed object to the VAR_DECL.
26584         (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
26585         field is not prescribed.
26586
26587         * misc.c (gnat_handle_option): Handle -gnatO separately.
26588         (gnat_print_decl) <VAR_DECL>: New case.
26589         Print the DECL_RENAMED_OBJECT node.
26590
26591         * lang.opt:  Declare separate -gnatO option.
26592
26593         * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
26594         pointer, replace it with the renamed object.
26595         <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
26596         pointer type if the source is not a fat pointer type whose underlying
26597         array has the same non-zero alias set as that of the destination array.
26598
26599 2005-03-17  Javier Miranda  <miranda@adacore.com>
26600
26601         * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
26602         (Get_Inheritance_Depth): Removed.
26603         (Set_Inheritance_Depth): Removed.
26604
26605         * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
26606         subprogram Get_Expanded_Name because it is not referenced by the
26607         frontend.
26608
26609         * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
26610         (CPP_Get_Inheritance_Depth): Removed.
26611         (CPP_Set_Inheritance_Depth): Removed.
26612
26613         * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
26614
26615 2005-03-17  Robert Dewar  <dewar@adacore.com>
26616
26617         * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
26618         3, since we now expect GCC 3 to do all the work.
26619
26620 2005-03-17  Javier Miranda  <miranda@adacore.com>
26621
26622         * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
26623         of one barrier to avoid wrong usage of this attribute.
26624
26625         * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
26626         First_Private_Entity.
26627
26628         * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
26629         the subprogram against wrong usage.
26630         Adapt the code to traverse the entities in the
26631         scope of a record_type because in addition to its usage regarding
26632         packages, this subprogram is also called by Expand_N_Freeze_Entity
26633         to install the visible declarations of the enclosing scope of a
26634         record_type_with_private to establish the proper visibility before
26635         freezing the entity and related subprograms.
26636
26637 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
26638
26639         * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
26640         entry formals.
26641
26642 2005-03-17  Thomas Quinot  <quinot@adacore.com>
26643
26644         * exp_ch3.adb (Check_Attr): New subprogram.
26645         (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
26646         into a new Check_Attr subprogram, in order to provide a more
26647         explanatory error message (including the name of the missing attribute).
26648         (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
26649         subprogram determines whether a default implementation exists for a
26650         given stream attribute.
26651         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
26652         Determine whether to generate a default implementation for each stream
26653         attribute separately, as this depends on the specific attribute.
26654
26655         * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
26656         limited extension where a stream attribute is missing for a limited
26657         component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
26658         generate a bogus reference to the missing attribute to prevent
26659         cascaded errors. Instead, generate a null statement.
26660
26661         * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
26662         available for a limited type if it has been specified for an ancestor
26663         of the type.
26664
26665 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
26666
26667         * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
26668         entity is an operator.
26669
26670 2005-03-17  Thomas Quinot  <quinot@adacore.com>
26671
26672         * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
26673         spec, to make this predicate available to other units.
26674
26675         * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
26676         reimplementing it.
26677
26678         * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
26679         when no distribution runtime library is available.
26680
26681         * sem_res.adb, sem_dist.adb: Disable expansion of remote
26682         access-to-subprogram types when no distribution runtime library is
26683         available.
26684         (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
26685         predicate available to other units.
26686
26687         * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
26688         spec, to make this predicate available to other units.
26689
26690 2005-03-17  Vincent Celier  <celier@adacore.com>
26691
26692         * make.adb (Insert_Project_Sources): Make sure the Q is always
26693         initialized.
26694
26695         * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
26696         the default for the tree, not the global default naming.
26697
26698         * prj-proc.adb (Recursive_Process): No need to put the default naming
26699         in the project data, it's already there.
26700
26701 2005-03-17  Doug Rupp  <rupp@adacore.com>
26702
26703         * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
26704
26705         * 5xcrtl.ads: Renamed to...
26706         * s-crtl-vms64.ads: ...this new file
26707
26708 2005-03-17  Robert Dewar  <dewar@adacore.com>
26709
26710         PR ada/19519
26711         * namet.adb (Copy_One_Character): Set proper wide character encoding
26712         for upper half character if we have upper half encoding.
26713
26714 2005-03-17  Robert Dewar  <dewar@adacore.com>
26715
26716         * par.adb (Par): Improved msg for attempt to recompile predefined unit
26717
26718 2005-03-17  Thomas Quinot  <quinot@adacore.com>
26719
26720         * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
26721         tagged limited type, the TSS is a newly built renaming declaration:
26722         insert it using Set_TSS, not Copy_TSS.
26723
26724 2005-03-17  Javier Miranda  <miranda@adacore.com>
26725
26726         * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
26727         Try_Object_Operation): Analyze the object that is accessible
26728         through the prefix of the subprogram call before we apply
26729         the transformation of the object-operation notation.
26730
26731 2005-03-17  Jose Ruiz  <ruiz@adacore.com>
26732
26733         * s-taprob.adb (Initialize_Protection): Initialize the protected
26734         object's owner to Null_Task.
26735         (Lock): If pragma Detect_Blocking is in effect and the caller of this
26736         procedure is already the protected object's owner then Program_Error
26737         is raised. In addition the protected object's owner is updated.
26738         (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
26739         of this procedure is already the protected object's owner then
26740         Program_Error is raised.
26741         In addition the protected object's owner is updated.
26742         (Unlock): Remove the ownership of the protected object.
26743
26744         * s-taprob.ads (Protection): Add the field Owner, used to store the
26745         protected object's owner.
26746         This component is needed for detecting one type of potentially blocking
26747         operations (external calls on a protected subprogram with the same
26748         target object as that of the protected action). Document the rest of
26749         the components.
26750
26751         * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
26752         Initialize the protected object's owner to Null_Task.
26753         (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
26754         caller of this procedure is already the protected object's owner then
26755         Program_Error is raised.
26756         Do not raise Program_Error when this procedure is called from a
26757         protected action.
26758         (Unlock_Entries): Remove the ownership of the protected object.
26759         (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
26760         of this procedure is already the protected object's owner then
26761         Program_Error is raised.
26762         Do not raise Program_Error when this procedure is called from
26763         a protected action.
26764
26765         * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
26766         used to store the protected object's owner.
26767
26768         * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
26769         effect and this procedure (a potentially blocking operation) is called
26770         from whithin a protected action, Program_Error is raised.
26771         (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
26772         and this procedure (a potentially blocking operation) is called from
26773         whithin a protected action, Program_Error is raised.
26774
26775 2005-03-17  Vincent Celier  <celier@adacore.com>
26776             Nicolas Setton  <setton@adacore.com>
26777
26778         * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
26779         switch, not supported by the linker on Darwin. Add '_' before
26780         <library>init, as this character is added unconditionally by the
26781         compiler.
26782         (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
26783         correct one ".dylib". This fixes detection of the archive files when
26784         building library projects.
26785
26786 2005-03-17  Vincent Celier  <celier@adacore.com>
26787
26788         * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
26789         -gnat83, -gnat95 and -gnat05.
26790
26791 2005-03-17  Vasiliy Fofanov  <fofanov@adacore.com>
26792
26793         * gnat_ugn.texi: Document gnatmem restriction
26794
26795 2005-03-17  Thomas Quinot  <quinot@adacore.com>
26796
26797         * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
26798         cleanup
26799
26800 2005-03-17  Robert Dewar  <dewar@adacore.com>
26801
26802         * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
26803         a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
26804         s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
26805
26806         * casing.adb: Comment improvements
26807
26808 2005-03-17  Pascal Obry  <obry@adacore.com>
26809
26810         * g-expect.adb: Minor reformatting.
26811
26812 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
26813
26814         * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
26815         (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
26816         to dependencies.
26817
26818 2005-03-15  Vincent Celier  <celier@adacore.com>
26819
26820         * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
26821         Add new parameter In_Tree to specify the project tree: needed
26822         by the project manager. Adapt to changes in project manager
26823         using new parameter In_Tree.
26824
26825 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
26826
26827         * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
26828         ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
26829         ada/bldtools to avoid make -jN failures.
26830
26831 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
26832
26833         * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
26834         to NULL_TREE on entry.
26835
26836 2005-03-15  Robert Dewar  <dewar@adacore.com>
26837
26838         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
26839         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
26840         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
26841         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
26842         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
26843         system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
26844         system-interix.ads, system-solaris-sparc.ads,
26845         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
26846         system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
26847         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
26848         system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
26849         system-linux-s390.ads, system-linux-s390x.ads: Add line defining
26850         Compiler_System_Version to be False.
26851
26852         * opt.ads: Add new flag Opt.Address_Is_Private
26853
26854         * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
26855         Add new parameter Compiler_System_Version to avoid checking for
26856         completeness of parameters when compiler is compiling itself.
26857         Allows old versions of GNAT to be compiled with new compiler.
26858
26859 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
26860
26861         * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
26862         (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
26863         calling thread.
26864         (Stack_Base_Available): New flag.
26865         (Get_Page_Size): New overloaded functions imported from C.
26866         (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
26867         PROT_ON, PROT_OFF): New constants.
26868         (mprotect): New function imported from C.
26869         (pthread_teb_t): New record type.
26870
26871         * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
26872         (Create_Task): Account for the Yellow Zone and the guard page.
26873
26874 2005-03-15  Vincent Celier  <celier@adacore.com>
26875
26876         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
26877         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
26878         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
26879         mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
26880         Library_File_Name_For): Add new parameter In_Tree
26881         to specify the project tree: needed by the project manager.
26882         Adapt to changes in project manager using new parameter In_Tree.
26883         Remove local imports, use functions in System.CRTL.
26884
26885         * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
26886         to use the project manager.
26887
26888         * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
26889         In_Tree to designate the project tree. Adapt to changes in the project
26890         manager, using In_Tree.
26891
26892         * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
26893         Copy_Interface_Sources): Add new parameter In_Tree to specify the
26894         project tree: needed by the project manager.
26895         (Build_Library): Check that Arg'Length >= 6 before checking if it
26896         contains "--RTS=...".
26897
26898         * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
26899         Library_File_Name_For): Add new parameter In_Tree to specify the
26900         project tree: needed by the project manager.
26901
26902         * prj.ads, prj.adb: Major modifications to allow several project trees
26903         in memory at the same time.
26904         Change tables to dynamic tables and hash tables to dynamic hash
26905         tables. Move tables and hash tables from Prj.Com (in the visible part)
26906         and Prj.Env (in the private part). Move some constants from the visible
26907         part to the private part. Make other constants deferred.
26908         (Project_Empty): Make it a variable, not a function
26909         (Empty_Project): Add parameter Tree. Returns the data with the default
26910         naming data of the project tree Tree.
26911         (Initialize): After updating Std_Naming_Data, copy its value to the
26912         component Naming of Project Empty.
26913         (Register_Default_Naming_Scheme): Use and update the default naming
26914         component of the project tree, instead of the global variable
26915         Std_Naming_Data.
26916         (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
26917         Tree is not defaulted, return the default naming data of the Tree.
26918         (Initial_Buffer_Size): Constant moved from private part
26919         (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
26920         variables initialized in procedure Initialize.
26921         (Add_To_Buffer): Add two in out parameters to replace global variables
26922         Buffer and Buffer_Last.
26923         (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
26924         functions.
26925         Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
26926         hash tables.
26927         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
26928         for the project tree.
26929         (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
26930         constant at the beginning of the package spec, so that they cane be used
26931         in subprograms before their full declarations.
26932         (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
26933         (Empty_Project): Add parameter of type Project_Node_Ref
26934         (Private_Project_Tree_Data): Add component Default_Naming of type
26935         Naming_Data.
26936         (Buffer, Buffer_Last): remove global variables
26937         (Add_To_Buffer): Add two in out parameters to replace global variables
26938         Buffer and Buffer_Last.
26939         (Current_Packages_To_Check): Remove global variable
26940         (Empty_Name): Move to private part
26941         (No-Symbols): Make it a constant
26942         (Private_Project_Tree_Data): New type for the private part of the
26943         project tree data.
26944         (Project_Tree_Data): New type for the data of a project tree
26945         (Project_Tree_Ref): New type to designate a project tree
26946         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
26947         for the project tree.
26948
26949         * prj-attr.ads: Add with Table; needed, as package Prj no longer
26950         imports package Table.
26951
26952         * prj-com.adb: Remove empty, no longer needed body
26953
26954         * prj-com.ads: Move most of the content of this package to package Prj.
26955
26956         * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
26957         designate the project node tree and Packages_To_Check to replace
26958         global variable Current_Packages_To_Check.
26959         Add new parameters In_Tree and Packages_To_Check to local subprograms,
26960         when needed. Adapt to changes in project manager with project node tree
26961         In_Tree.
26962
26963         * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
26964         project tree to most subprograms. Move tables and hash tables to
26965         private part of package Prj.
26966         Adapt to changes in project manager using project tree In_Tree.
26967
26968         * prj-makr.adb (Tree): New constant to designate the project node tree
26969         Adapt to change in project manager using project node tree Tree
26970
26971         * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
26972         display the Library_Src_Dir and the Library_Dir.
26973         Add new parameter In_Tree to designate the project node tree to most
26974         subprograms. Adapt to changes in the project manager, using project tree
26975         In_Tree.
26976         (Check_Naming_Scheme): Do not alter the casing on platforms where
26977         the casing of file names is not significant.
26978         (Check): Add new parameter In_Tree to designate the
26979
26980         * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
26981         designate the project tree.
26982         Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
26983
26984         * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
26985         to replace those that were in the private part of package Prj.
26986         Add new parameter In__Tree to designate the project node tree to most
26987         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
26988         (Post_Parse_Context_Clause): When specifying the project node of a with
26989         clause, indicate that it is a limited with only if there is "limited"
26990         in the with clause, not necessarily when In_Limited is True.
26991         (Parse): Add new parameter In_Tree to designate the project node tree
26992
26993         * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
26994         designate the project node tree. Adapt to change in Prj.Tree with
26995         project node tree In_Tree.
26996
26997         * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
26998         tree In_Tree in the call to function Empty_Process to give its initial
26999         value to the project data Processed_Data.
27000         Add new parameters In_Tree to designate the project tree and
27001         From_Project_Node_Tree to designate the project node tree to several
27002         subprograms. Adapt to change in project manager with project tree
27003         In_Tree and project node tree From_Project_Node_Tree.
27004
27005         * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
27006         to replace those that were in the private part of package Prj.
27007         Add new parameter In_Tree to designate the project node tree to most
27008         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
27009
27010         * prj-tree.ads, prj-tree.adb: Add new parameter of type
27011         Project_Node_Tree_Ref to most subprograms.
27012         Use this new parameter to store project nodes in the designated project
27013         node tree.
27014         (Project_Node_Tree_Ref): New type to designate a project node tree
27015         (Tree_Private_Part): Change table to dynamic table and hash tables to
27016         dynamic hash tables.
27017
27018         * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
27019         the project tree to most subprograms. Adapt to changes in project
27020         manager using project tree In_Tree.
27021
27022         * makegpr.adb (Project_Tree): New constant needed to use project
27023         manager.
27024
27025 2005-03-15  Olivier Hainque  <hainque@adacore.com>
27026
27027         * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
27028         for sigactions with SA_SIGINFO set. Call
27029         __gnat_adjust_context_for_raise before raising, to perform the
27030         potentially required adjustments to the machine context for the GCC
27031         unwinder.
27032
27033         * raise.h (__gnat_adjust_context_for_raise): New prototype.
27034
27035         * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
27036         Adjust PC by one in the provided machine context.
27037         (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
27038         so that the handler is passed the context structure to adjust prior to
27039         the raise.
27040         (__gnat_error_handler) HPUX: Adjust the signature to match what an
27041         SA_SIGINFO sigaction should look like. Call
27042         __gnat_adjust_context_for_raise before actually raising.
27043         (__gnat_adjust_context_for_raise): Default noop to help PC
27044         adjustments before raise from signal handlers.
27045         (__gnat_error_handler): Indirectly call a predicate function to
27046         determine if a condition should be resignaled or not.
27047         (__gnat_set_resignal_predicate): User interface to modify the predicate.
27048         (__gnat_default_resignal_p): Default GNAT predicate.
27049
27050 2005-03-15  Doug Rupp  <rupp@adacore.com>
27051
27052         * adaint.c: Prefix #include of VMS system header files with vms/
27053         [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
27054         Do not define a dummy function "convert_addresses" under Darwin,
27055         not needed.
27056
27057         * tb-alvms.c, expect.c: Prefix #include of VMS system header files
27058         with vms/
27059
27060 2005-03-15  Nicolas Setton  <setton@adacore.com>
27061
27062         * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
27063         PPC/AIX.
27064
27065 2005-03-15  Robert Dewar  <dewar@adacore.com>
27066
27067         * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
27068         AI-386.
27069
27070         * a-retide.ads: Minor comment changes
27071
27072 2005-03-15  Robert Dewar  <dewar@adacore.com>
27073
27074         * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
27075         a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
27076         Realloc_For_Chunk to private part of package.
27077         New subprograms for AI-301
27078
27079         * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
27080         Get_Line procedure.
27081         Avoid unnecessary use of Get/Set_Wide_String
27082
27083 2005-03-15  Robert Dewar  <dewar@adacore.com>
27084
27085         PR ada/13470
27086         * a-stunau.ads, a-stunau.adb:
27087         Change interface to allow efficient (and correct) implementation
27088         The previous changes to allow extra space in unbounded strings had
27089         left this interface a bit broken.
27090
27091         * a-suteio.adb: Avoid unnecessary use of Get/Set_String
27092
27093         * g-spipat.ads, g-spipat.adb: New interface for Get_String
27094         Minor reformatting (function specs)
27095
27096         * g-spitbo.adb: New interface for Get_String
27097
27098         * g-spitbo.ads: Minor reformatting
27099
27100         * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
27101
27102         * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
27103
27104 2005-03-15  Javier Miranda  <miranda@adacore.com>
27105             Robert Dewar  <dewar@adacore.com>
27106             Thomas Quinot  <quinot@adacore.com>
27107             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27108
27109         * atree.ads, atree.adb: Add support for Elist24 field
27110
27111         * atree.h: Fix wrong definition of Field27
27112         Add support for Elist16 field
27113         Add support for Elist24 field
27114
27115         * einfo.ads, einfo.adb (Abstract_Interfaces,
27116         Set_Abstract_Interfaces): New subprograms.
27117         (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
27118         subprograms.
27119         (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
27120         entities rather than a single node.
27121         (Is_Interface, Set_Is_Interface): New subprogram
27122         (First_Tag_Component): New syntesized attribute
27123         (Next_Tag_Component): New synthesized attribute
27124         (Write_Entity_Flags): Upgraded to write Is_Interface
27125         (Write_Field24_Name): Upgraded to write Abstract_Interfaces
27126         (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
27127         (Task_Body_Procedure): New subprogram to read this attribute.
27128         (Set_Task_Body_Procedure): New subprogram to set this attribute.
27129         (Has_Controlled_Component): Now applies to all entities.
27130         This is only a documentation change, since it always worked to apply
27131         this to other than composite types (yielding false), but now this is
27132         official.
27133         Update documentation on Must_Be_Byte_Aligned for new spec
27134
27135         * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
27136         exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
27137         uses of the Access_Disp_Table attribute to reference the first dispatch
27138         table associated with a tagged type. As
27139         part of the implementation of abstract interface types,
27140         Access_Disp_Table has been redefined to contain a list of dispatch
27141         tables (rather than a single dispatch table).
27142         Similarly, upgrade all the references to Tag_Component by the
27143         new attribute First_Tag_Component.
27144         (Find_Inherited_TSS): Moved to exp_tss.
27145         Clean up test in Expand_N_Object_Declaration for cases
27146         where we need to do a separate assignment of the initial value.
27147         (Expand_N_Object_Declaration): If the expression in the
27148         declaration of a tagged type is an aggregate, no need to generate an
27149         additional tag assignment.
27150         (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
27151         is to be deleted.
27152         Bit packed array ops are only called if operands are known to be
27153         aligned.
27154         (Component_Equality): When returning an N_Raise_Program_Error statement,
27155         ensure that its Etype is set to Empty to avoid confusing GIGI (which
27156         expects that only expressions have a bona fide type).
27157         (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
27158         determine the amount of data to be copied.
27159
27160         * par.adb (P_Interface_Type_Definition): New subprogram that parses the
27161         new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
27162             INTERFACE_TYPE_DEFINITION ::=
27163               [limited | task | protected | synchronized] interface
27164                 [AND interface_list]
27165
27166         * par-ch3.adb (P_Type_Declaration): Modified to give support to
27167         interfaces.
27168         (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
27169         interfaces.
27170         (P_Interface_Type_Definition): New subprogram that parses the new
27171         syntax rule of Ada 2005 interfaces
27172         (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
27173         messages by the correct RENAMES (quotes removed).
27174
27175         * sem_prag.adb: Upgrade all the references to Tag_Component by the new
27176         attribute First_Tag_Component.
27177
27178         * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
27179         (Interface_List, Set_Interface_List): New subprograms.
27180         (Interface_Present, Set_Interface_Present): New subprograms.
27181         (Limited_Present, Set_Limited_Present): Available also in derived
27182         type definition nodes.
27183         (Protected_Present, Set_Protected_Present): Available also in
27184         record type definition and
27185         derived type definition nodes.
27186         (Synchronized_Present, Set_Synchronized_Present): New subprograms.
27187         (Task_Present, Set_Task_Present): New subprogram.
27188         (Task_Body_Procedure): Removed.
27189         (Set_Task_Body_Procedure): Removed.
27190         These subprogram have been removed because the attribute
27191         Task_Body_Procedure has been moved to the corresponding task type
27192         or task subtype entity to leave a field free to store the list
27193         of interfaces implemented by a task (for AI-345)
27194         Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
27195         (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
27196         expression flag Do_Range_Check
27197         (Exception_Junk): Change to Flag7 to accomodate above change
27198         (Box_Present, Default_Name, Specification, Set_Box_Present,
27199         Set_Default_Name, Set_Specification): Expand the expression
27200         "X in N_Formal_Subprogram_Declaration" into the corresponding
27201         two comparisons. Required to use the csinfo tool.
27202
27203         * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
27204         "with string" given.
27205
27206         * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
27207         expression given.
27208
27209         * par-ch11.adb (P_Raise_Statement): Recognize with string expression
27210         in 2005 mode
27211
27212         * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
27213         attribute Task_Body_Procedure rather than the old semantic field that
27214         was available in the task_type_declaration node.
27215
27216         * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
27217         interface type definitions.
27218         (P_Formal_Derived_Type_Definition): Modified to handle the list of
27219         interfaces.
27220
27221         * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
27222         task type declaration.
27223         (P_Protected): Modified to handle the list of interfaces in a
27224         protected type declaration.
27225
27226 2005-03-15  Doug Rupp  <rupp@adacore.com>
27227             Vincent Celier  <celier@adacore.com>
27228
27229         * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
27230         (Gen_Output_File_C): Likewise.
27231         (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
27232
27233 2005-03-15  Thomas Quinot  <quinot@adacore.com>
27234
27235         * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
27236         is an N_Raise_Constraint_Error node, create a new copy of it without
27237         going through a call to Duplicate_Subexpr.
27238
27239 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
27240             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27241             Nicolas Setton  <setton@adacore.com>
27242             Ed Schonberg  <schonberg@adacore.com>
27243
27244         PR ada/19900
27245         PR ada/19408
27246         PR ada/19140
27247         PR ada/20255
27248         * decl.c (gnat_to_gnu_field): Reject aliased components with a
27249         representation clause that prescribes a size not equal to the rounded
27250         size of their types.
27251         (gnat_to_gnu_entity, case E_Component): Always look at
27252         Original_Record_Component if Present and not the entity.
27253         (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
27254         of tagged extension types by not making field for components that are
27255         inside the parent.
27256         (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
27257         (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
27258         expression to the type of the object when the object is constant.
27259         Reverse defer_debug_incomplete_list before traversing it, so that trees
27260         are processed in the order at which they were added to the list. This
27261         order is important when using the stabs debug format.
27262         If we are deferring the output of debug information, also defer this
27263         output for a function return type.
27264         When adding fields to a record, prevent emitting debug information
27265         for incomplete records, emit the information only when the record is
27266         complete.
27267         (components_to_record): New parameter defer_debug.
27268         (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
27269         (gnat_to_gnu_field_decl): New function.
27270         (substitution_list, annotate_rep): Call it.
27271         (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
27272         (gnat_to_gnu_entity, case E_Record_Type): Likewise.
27273         No longer update discriminants to not be a COMPONENT_REF.
27274         (copy_alias_set): Strip padding from input type; also handle
27275         unconstrained arrays properly.
27276
27277         * gigi.h (write_record_type_debug_info): New function.
27278         Convert to use ANSI-style prototypes. Remove unused
27279         declarations for emit_stack_check, elab_all_gnat and
27280         set_second_error_entity.
27281         (gnat_to_gnu_field_decl): New decl.
27282
27283         * utils.c (write_record_type_debug_info): New function.
27284         (finish_record_type): Delegate generation of debug information to
27285         write_record_type_debug_info.
27286         (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
27287         (update_pointer_to): Fix pasto.
27288         (convert) <UNION_TYPE>: Accept slight type variations when
27289         converting to an unchecked union type.
27290
27291         * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
27292         replace the N_Freeze_Entity with a null statement.
27293
27294         * freeze.adb (Freeze_Expression): If the freeze nodes are generated
27295         within a constrained subcomponent of an enclosing record, place the
27296         freeze nodes in the scope stack entry for the enclosing record.
27297         (Undelay_Type): New Subprogram.
27298         (Set_Small_Size): Pass T, the type to modify; all callers changed.
27299         (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
27300         within records; allow them to have freeze nodes if their base types
27301         aren't frozen yet.
27302
27303         * exp_util.adb (Remove_Side_Effects): Properly test for
27304         Expansion_Delayed and handle case when it's inside an
27305         N_Qualified_Expression.
27306
27307         * sem_ch3.adb (Derived_Type_Declaration): New predicate
27308         Comes_From_Generic, to recognize accurately that the parent type in a
27309         derived type declaration can be traced back to a formal type, because
27310         it is one or is derived from one, or because its completion is derived
27311         from one.
27312         (Constrain_Component_Type): If component comes from source and has no
27313         explicit constraint, no need to constrain in in a subtype of the
27314         enclosing record.
27315         (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
27316         Minor change to propagate Is_Ada_2005 flag
27317
27318         * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
27319         Expansion_Delayed is False.
27320         (assoc_to_constructor): Ignore fields that have a
27321         Corresponding_Discriminant.
27322         (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
27323         function returns "by target", dereference the target pointer using the
27324         type of the actual return value.
27325         <all>: Be prepared for a null gnu_result.
27326         (processed_inline_subprograms): Check flag_really_no_inline
27327         instead of flag_no_inline.
27328         (set_second_error_entity): Remove unused function.
27329         (gnat_to_gnu, case N_Selected_Component): Call
27330         gnat_to_gnu_field_decl.
27331         (assoc_to_constructor): Likewise.
27332
27333 2005-03-15  Robert Dewar  <dewar@adacore.com>
27334             Ed Schonberg  <schonberg@adacore.com>
27335             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27336
27337         * exp_pakd.adb (Create_Packed_Array_Type): Do not set
27338         Must_Be_Byte_Aligned for cases where we do not need to use a
27339         System.Pack_nn unit.
27340
27341         * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
27342         as procedures.
27343         Needed now that we do some processing for IN parameters as well. This
27344         may well fix some unrelated errors.
27345         (Expand_Call): Handle case of unaligned objects (in particular those
27346         that come from packed arrays).
27347         (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
27348         renamed entity is an inherited operation, re-expand the call using the
27349         original operation, which is the one to call.
27350         Detect attempt to inline parameterless recursive subprogram.
27351         (Represented_As_Scalar): Fix to work properly with private types
27352         (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
27353         accurate estimate. Yields True in far fewer cases than before,
27354         improving the quality of code that depends on this test.
27355
27356         * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
27357         over both visible and private declarations to remove them from tree,
27358         and mark subprograms declared in package as eliminated, to prevent
27359         spurious use in subsequent compilation of generic units in the context.
27360
27361         * exp_util.ads: Minor cleanup in variable names
27362
27363         * sem_eval.ads, sem_eval.adb: Minor reformatting
27364         (Compile_Time_Known_Bounds): New function
27365
27366 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27367
27368         * exp_ch7.adb (Convert_View): Use base types of underlying types when
27369         determining whether an unchecked conversion is needed for the argument
27370         of an initialization call.
27371
27372 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27373
27374         * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
27375         that appears in the instantiation rather than the internal subtype
27376         generated in the wrapper package, to avoid anomalies in gigi when the
27377         target is derived from a private type whose full view is an access type.
27378
27379 2005-03-15  Robert Dewar  <dewar@adacore.com>
27380
27381         * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
27382         not needed.
27383         Add documentation to replace the use of this flag
27384         Fix kludge for Maximum_Alignment on x86 so that it does not apply to
27385         the x86_64.
27386
27387 2005-03-15  Thomas Quinot  <quinot@adacore.com>
27388
27389         * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
27390         here from exp_attr so it can be shared between exp_attr and exp_dist.
27391         (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
27392         all TSS names, not a subset thereof, and the previous name introduced
27393         an unnecessarily confusion that a distinction might exist between
27394         "OK" TSS names and some "not OK" TSS names.
27395
27396 2005-03-15  Doug Rupp  <rupp@adacore.com>
27397
27398         * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
27399         Command_Name.
27400
27401 2005-03-15  Pascal Obry  <obry@adacore.com>
27402             Eric Botcazou  <ebotcazou@adacore.com>
27403
27404         PR ada/20226
27405         PR ada/20344
27406         * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
27407         when IN_RTS. This is to work around a bootstrap path problem.
27408
27409         * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
27410         table and pass it to __gnat_install_SEH_handler().
27411         (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
27412
27413         * lang.opt: Fix specification of -fRTS=.
27414
27415 2005-03-15  Doug Rupp  <rupp@adacore.com>
27416             Bernard Banner  <banner@adacore.com>
27417             Vincent Celier  <celier@adacore.com>
27418             Arnaud Charlet  <charlet@adacore.com>
27419
27420         PR ada/6852
27421         This change works fine when gnatlib is built from the gcc directory,
27422         but does not work when using the libada Makefile, since GCC_FOR_TARGET
27423         is not passed to ada/Makefile.in, so more work is needed by a
27424         Makefile/configure expert.
27425
27426         * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
27427         set GMEM_LIB on ia64 linux to add optional support for gnatmem.
27428         Setup gnatlink switch -M for x86_64 linux, as it is already setup
27429         for Linux x86.
27430         (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
27431         Run ranlib on libgccprefix.a
27432         Define PREFIX_OBJS for Darwin, to build libgccprefix.
27433         (ADA_INCLUDE_SRCS): Split Ada packages.
27434
27435 2005-03-15  Robert Dewar  <dewar@adacore.com>
27436
27437         * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
27438
27439         * impunit.adb: Add GNAT.UTF_32
27440
27441         * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
27442
27443         * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
27444         now uses GNAT.UTF_32).
27445
27446         * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
27447         capabilities for categorizing characters using Unicode categories
27448
27449 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27450
27451         * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
27452         instantiation that has been rewritten as a package body, retrieve spec
27453         to generate proper name for implicit_with_clause.
27454         (Install_Parents): Recognize a parent that is an instantiation but has
27455         been rewritten as a package declaration during analysis.
27456
27457 2005-03-15  Javier Miranda  <miranda@adacore.com>
27458             Ed Schonberg  <schonberg@adacore.com>
27459
27460         * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
27461         parameter reported some error we immediately return. This improves the
27462         behaviour of the frontend in case of errors.
27463         (Install_Parent, Remove_Parent): Introduce new flag
27464         Parent_Unit_Visible, to preserve the proper visibility of the ultimate
27465         ancestor of a generic child unit, when the child is being instantiated.
27466         (Inline_Instance_Body): If we are compiling the private
27467         part or the body of a child unit, restore the proper visibility of the
27468         parents after compiling the instance body.
27469
27470 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27471             Javier Miranda  <miranda@adacore.com>
27472
27473         PR ada/15608
27474         * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
27475         of a private type, in which case it is underlying_type that denotes
27476         the proper task. Also modified to use the new entity attribute
27477         that is directly available in the task type and task subtype entities
27478         (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
27479         arrays when other dimensions than the first are constrained by
27480         discriminants of an enclosing record.
27481         (Insert_Explicit_Dereference): If the prefix is an indexed component or
27482         a combination of indexed and selected components, find ultimate entity
27483         and generate the appropriate reference for it, to suppress spurious
27484         warnings.
27485         (Note_Possible_Modification): If an entity name has no entity, return.
27486         (Is_Variable): A function call never denotes a variable.
27487         (Requires_Transient_Scope): For record types, recurse only on
27488         components, not on internal subtypes that may have been generated for
27489         constrained components.
27490
27491 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27492
27493         * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
27494         Eliminated as candidates for resolution. Both efficient, and avoids
27495         anomalies with operators declared in deleted code.
27496         (Process_Implicit_Dereference_Prefix): Use this procedure whenever
27497         expansion is disabled (as when compiling a generic) to prevent spurious
27498         warnings on prefixes of selected components.
27499
27500 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27501
27502         * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
27503         attached to a list before checking whether it appears in the private
27504         declarations of the current package.
27505         (Make_Inequality_Operator): Insert declaration in proper declarative
27506         list rather than just setting the Parent field, so that
27507         Is_Private_Declaration can handle it properly.
27508
27509 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
27510
27511         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
27512         a renaming a body, check that the renamed subprogram in not intrinsic.
27513         (Find_Direct_Name): If several use_visible entities hide
27514         each other, and the context is a predefined file compiled through
27515         rtsfind, keep only the entity that comes from a predefined file.
27516
27517 2005-03-15  Geert Bosch  <bosch@adacore.com>
27518
27519         * s-fatgen.adb (Valid): Extend special exceptions to account for long
27520         long float padding to also cover AMD64 and IA64.
27521
27522 2005-03-15  Gary Dismukes  <dismukes@adacore.com>
27523
27524         * s-imgwch.adb: Add with and use of Interfaces.
27525         (Img_Wide_Character): Change type of Val to Unsigned_16.
27526         (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
27527
27528 2005-03-15  Matthew Gingell  <gingell@adacore.com>
27529
27530         * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
27531
27532 2005-03-15  Robert Dewar  <dewar@adacore.com>
27533
27534         * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
27535
27536         * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
27537
27538         * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
27539
27540 2005-03-15  Robert Dewar  <dewar@adacore.com>
27541
27542         * s-bitops.adb, s-bitops.ads,
27543         s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
27544         s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
27545         tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
27546         s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
27547         s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
27548         s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
27549         s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
27550         s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
27551         reformatting.
27552
27553 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
27554
27555         * utils2.c (build_binary_op): Fix typo.
27556
27557 2005-03-15  Doug Rupp  <rupp@adacore.com>
27558
27559         * s-crtl.ads (popen,pclose): New imports.
27560
27561 2005-03-15  Cyrille Comar  <comar@adacore.com>
27562
27563         * comperr.adb (Compiler_Abort): remove references to obsolete
27564         procedures in the bug boxes for various GNAT builds.
27565
27566 2005-03-15  Vincent Celier  <celier@adacore.com>
27567
27568         * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
27569
27570 2005-03-15  Geert Bosch  <bosch@adacore.com>
27571             Arnaud Charlet  <charlet@adacore.com>
27572             Robert Dewar  <dewar@adacore.com>
27573             Cyrille Comar  <comar@adacore.com>
27574             Sergey Rybin  <rybin@adacore.com>
27575
27576         * gnat_ugn.texi: Remove extended inline assembly example, as it was far
27577         too specific and long-winded to be appropriate for the GNAT User's
27578         Guide.
27579         Warn about use of GCC switches not documented in the GNAT User's Guide,
27580         as these may cause generated code to not conform to Ada semantics.
27581         Remove mention of -gdwarf-2 for sparc64, since this is now the default.
27582         Add documentation for -gnat95 and -gnat05 switches
27583         Remove paragraph documenting obsolete way to refer to third party
27584         libraries.
27585         Add a few references to Ada_05 that were missing.
27586         Update documentation on -gnatZ/-gnatL.
27587         Document limitation when using -m64 under Solaris.
27588         Change the "Name Casing" subsection of the pretty-printer section
27589         according to the changes in the dictionary processing.
27590
27591         * gnat_rm.texi: Document the Ada_05 pragma.
27592         Section on record representation clauses describes the new more
27593         relaxed rules about placement of large packed bit array components.
27594         Add documentation of GNAT.UTF_32
27595
27596 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
27597
27598         * misc.c (gnat_post_options): Turn off structural
27599         aliasing for now.
27600
27601 2005-03-08  Laurent Guerby  <laurent@guerby.net>
27602
27603         * system-linux-sparc.ads: Fix typo in previous commit.
27604
27605 2005-03-07  James A. Morrison  <phython@gcc.gnu.org>
27606             Laurent Guerby  <laurent@guerby.net>
27607
27608         PR ada/20035
27609         * system-linux-sparc.ads: New.
27610         * Makefile.in: Add sparc linux entry.
27611
27612 2005-02-27  Danny Smith  <dannysmith@users.sourceforge.net>
27613
27614         * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
27615         parameters as unused.
27616
27617 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
27618         Partial merge from libada-gnattools-branch:
27619
27620         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
27621         * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
27622         into code in gnattools/Makefile.in.  Remove direct dependencies on
27623         stamp-tools by tools clauses.
27624         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
27625         * config-lang.in: Add gnattools to $lang_dirs.
27626
27627 2005-02-13  Andrew Pinski  <pinskia@physics.uc.edu>
27628
27629         PR ada/19942
27630         * utils.c (gnat_type_for_mode): Return null instead of ICE because
27631         we asked for an unknown mode.
27632
27633 2005-02-12  Richard Henderson  <rth@redhat.com>
27634
27635         * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
27636         validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
27637
27638 2005-02-10  Andreas Jaeger  <aj@suse.de>
27639
27640         * init.c (__gnat_initialize): Mark parameter as unused.
27641
27642 2005-02-09  Doug Rupp  <rupp@adacore.com>
27643
27644         * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
27645         * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
27646
27647 2005-02-09  Doug Rupp  <rupp@adacore.com>
27648
27649         * gnatchop.adb (dup, dup2),
27650         g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
27651
27652         * gnatlbr.adb (mkdir),
27653         mlib-tgt-vms-ia64.adb (popen, plose):  Import with decc$ prefix.
27654
27655         * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
27656
27657 2005-02-09  Doug Rupp  <rupp@adacore.com>
27658
27659         * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
27660
27661 2005-02-09  Robert Dewar  <dewar@adacore.com>
27662             Thomas Quinot  <quinot@adacore.com>
27663             Javier Miranda  <miranda@adacore.com>
27664             Pascal Obry  <obry@adacore.com>
27665             Ed Schonberg  <schonberg@adacore.com>
27666             Doug Rupp  <rupp@adacore.com>
27667             Gary Dismukes  <dismukes@adacore.com>
27668             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27669
27670         * g-zstspl.ads: New file.
27671
27672         * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
27673
27674         * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
27675         Ada 95 mode
27676         Add definition of Wide_Wide_Space for AI-285
27677
27678         * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
27679         interface (to support Ada 95 and Ada 2005 units).
27680         Add Unbounded_IO files
27681         Add entries for Wide_Wide packages for AI-285
27682         Add list of containers packages to Ada 2005 unit list
27683
27684         * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
27685         support new Unbounded_IO package cleanly.
27686
27687         * g-utf_32.ads, g-utf_32.adb: New files.
27688
27689         * Makefile.rtl: Add entry for g-utf_32
27690         Add new files for Unbounded_IO
27691         Adjust make file for new AI-285 wide wide packages
27692         Add AI-302 containers to the run time.
27693
27694         * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
27695         a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
27696         subprograms for AI-301.
27697
27698         * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
27699
27700         * a-stunau.ads: Minor comment correction
27701
27702         * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
27703         etc.
27704         Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
27705         (Check_RPC): Update to match changes in expanded code.
27706         Clean up unused entity.
27707
27708         * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
27709         was not taken into account.
27710         This includes proper initialization with Normalize_Scalars.
27711         (Get_Simple_Init_Val): Major rewrite for initialize scalars and
27712         normalize scalars cases (particularly the latter) to do a better job
27713         of finding invalid representations.
27714
27715         * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
27716
27717         * s-strops.ads, s-strops.adb: Remove string normalize routines, never
27718         used
27719
27720         * exp_dist.adb: Add support for wide wide character type
27721         (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
27722         private part, generate stub bodies at the end of the private part,
27723         not the visible part.
27724         (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
27725         PolyORB support.
27726         (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
27727         generic wrapper to execute final processing after completing the
27728         expansion of the RPC receiver for an RACW.
27729
27730         * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
27731         packages and attributes.
27732         (Preset_Names): Addition of the new reserved words of Ada 2005,
27733         that is interface, overriding and synchronized.
27734         (Get_Pragma_Id): Give support to the use of the new reserved word
27735         "interface" as a pragma name.
27736         (Is_Pragma_Name): Give support to the use of the new reserved word
27737         "interface" as a pragma name.
27738         (Preset_Names): Add stream_size string for the Stream_Size Ada2005
27739         attribute implementation.
27740
27741         * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
27742         checks to entities that are output parameters of Asm operations.
27743         Handle the Stream_Size attribute.
27744         Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
27745
27746         * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
27747
27748         * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
27749         for second parameter being 0.0.
27750         Add support for wide wide character type.
27751         (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
27752
27753         * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
27754         s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
27755         s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
27756         s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
27757         for wide wide character cases.
27758
27759         * cstand.adb: Create entities for Wide_Wide_Character and
27760         Wide_Wide_String.
27761
27762         * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
27763         accordance with AI-258.
27764         Add new declarations for 16/32 bit C character types (Part of AI285)
27765
27766         * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
27767         (Obsolescent_Warning): New field
27768         (Rep_Clause): New local subprogram used to share code. Returns the rep
27769         clause for which the name is given in parameter.
27770         (Has_Stream_Size_Clause): New routine.
27771         (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
27772         (Address_Clause): Implementation is now using Rep_Clause.
27773         (Alignment_Clause): Idem.
27774         (Size_Clause): Idem.
27775
27776         * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
27777         entity in non-Ada 2005 mode and generate warning.
27778
27779         * par-prag.adb: Add handling of one argument form for pragma Ada_05.
27780         (Prag): Code cleanup. Remove old gnat pragma "overriding"
27781
27782         * sem_prag.adb: Add handling of one argument form for pragma Ada_05
27783         (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
27784         on the named unit if the pragma is not in the current compilation unit,
27785         so that elaboration calls in the current unit can set up an elaboration
27786         dependency on the named unit, as needed.
27787         (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
27788         subprogram as well as for subprograms declared within a package.
27789         (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
27790         pragma overriding.
27791
27792         * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
27793         to z) to avoid some instances of duplication for Wide_Wide packages.
27794
27795         * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
27796         characters.
27797
27798         * scn.adb: Char_Literal_Value field is now a Uint
27799
27800         * scng.adb: Significant rewrite to handle new Ada 2005 features
27801         allowing wide and wide wide characters in program text, e.g. for
27802         identifiers, as described in AI-285.
27803         (Set_Reserved): New procedure, makes setting up keywords cleaner.
27804         (Initialize_Scanner): Register the new reserved words of Ada 2005.
27805         (Scan): Give support to the new reserved words.
27806
27807         * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
27808         warning notifying that interface, overriding, and synchronized are
27809         new reserved words.
27810         (P_Pragma): Allow the use of the new reserved word "interface" as
27811         a pragma name.
27812
27813         * gnatls.adb, gnatbind.adb,
27814         ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
27815         identifiers named "interface" to "SAL_Interface".
27816
27817         * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
27818         (Structured Exception handling).
27819         (Gen_Main_C): Idem.
27820
27821         * bindgen.adb:
27822         (Gen_Main_Ada): Set the default exit code if specified.
27823         (Gen_Main_C): Likewise.
27824         Part of *DC20-006.
27825         (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
27826         Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
27827
27828         * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
27829         new -Xnnn switch.
27830
27831         * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
27832         has a collision with the new Ada 2005 "interface" reserved word.
27833
27834         * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
27835         generate a warning notifying that interface, overriding, and
27836         synchronized are new reserved words.
27837
27838         * scans.ads (Token_Type): Addition of the tokens corresponding to the
27839         new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
27840         and Tok_Synchronized.
27841
27842         * sem_res.adb (Resolve_Actuals): Change error messages to refer to
27843         "dispatching" rather than "primitive" operations, since dispatching
27844         calls are now allowed to abstract formal subprograms (which are not
27845         primitive).
27846         Char_Literal_Value field is now a Uint
27847         (Resolve_Slice): If the prefix is an access to an unconstrained array,
27848         compute the actual subtype of the designated object to impose the proper
27849         index constraints.
27850         (Resolve_Selected_Component): Do not insert an access check if the
27851         prefix is an access type: such a node is expanded into an explicit
27852         dereference, on which the access check is performed anyway. Removes
27853         expensive duplicate checks.
27854         (Resolve_Call): Use new flag Is_Obsolescent and field
27855         Obsolescent_Warning so that pragma Obsolescent works on library
27856         subprograms.
27857         Add support for wide wide character type
27858         (Resolve_Allocator): Replace the error message on wrong null-exclusion
27859         value by a warning message.
27860         (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
27861         as fixed-point, and one of the operands is non-static and universal, it
27862         can only be an illegal exponentiation operation, in which case there is
27863         no real value to retrieve.
27864
27865         * exp_strm.adb: Add support for wide wide character type
27866         (Build_Elementary_Input_Call): Compute the size of the stream element by
27867         querying the rep chain to find the Stream_Attribute attribute value.
27868         (Build_Elementary_Write_Call): Ditto.
27869
27870         * sem_aggr.adb: Char_Literal_Value field is now a Uint
27871         Add support for wide wide character type
27872         Replace the error messages on wrong null-exclusion value by warnings
27873         as described in Ada 2005.
27874         (Resolve_Extension_Aggregate): Document the fact that the error
27875         message on class-wide expressions in extensions aggregates.
27876
27877         * sem_case.adb: Add support for wide wide character type
27878
27879         * sem_ch13.adb: Add support for wide wide character type
27880         (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
27881
27882         * sem_ch3.adb: Add support for wide wide character type
27883         (Process_Subtype): If constraint is illegal for the type, set Ekind of
27884         now-useless Itype, to prevent cascaded errors on a compiler built
27885         without -gnatp.
27886
27887         * sem_ch8.adb: Add with and use of Sem_Disp.
27888         (Analyze_Subprogram_Renaming): Replace unclean uses of
27889         Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
27890         of Corresponding_Spec to Empty).
27891         (Attribute_Renaming): Replace use of Corresponding_Spec with
27892         Corresponding_ Formal_Spec and simplify condition.
27893         (Use_One_Package): Check that scope of homonym of identifier is defined,
27894         before checking whether it is a wrapper package.
27895         Add support for wide wide character type
27896
27897         * sem_eval.adb: Add support for wide wide character type.
27898         (Eval_Arithmetic_Op): Check for compile time known signed integer
27899         overflow in the non-static case.
27900         (Subtypes_Statically_Match): A formal scalar type and its base type do
27901         not statically match.
27902
27903         * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
27904         "not in" for test of N_Formal_Subprogram_Declaration (which is now a
27905         subtype).
27906         (Unit_Declaration_Node): Ditto.
27907         (Is_Variable_Prefix):  For the case of an indexed component whose prefix
27908         has a packed array type, the prefix has been rewritten into a type
27909         conversion. Determine variable-ness from the converted expression.
27910         Handle wide wide character cases.
27911
27912         * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
27913
27914         * stringt.ads, stringt.adb: Handle full UTF-32 range.
27915         Remove ["0A"] from comment, since it can look like a line terminator.
27916         Currently we don't permit this, but this is under discussion by the
27917         ARG, and it is easy enough to use a different example.
27918
27919         * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
27920         handling UTF-32 encoding for wide wide character.
27921         Implement new brackets coding ["hhhhhhhh"]
27922         Add UTF-8 encodings for full UTF-32 range
27923
27924         * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
27925
27926         * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
27927         bit range Add full UTF-32 support.
27928         (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
27929         notify that constraint error will be raised at run-time
27930         because a null value is assigned to a null-excluding object.
27931         Remove some obsolete declarations and make Char_Code
27932         unsigned.
27933
27934         * a-except.adb (Rcheck_30): New subprogram. Addition of the message
27935         corresponding to CE_Null_Not_Allowed, and adjust the output of all the
27936         Rcheck subprograms.
27937
27938         * checks.adb (Check_Null_Not_Allowed): Replace the error message on
27939         wrong null-exclusion value by a warning message.
27940         (Enable_Range_Check): Do range check if the prefix is an
27941         explicit dereference whose designated object is an unconstrained array.
27942         Current algorithm for removing duplicate checks is over-eager in this
27943         case.
27944
27945         * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
27946         null-exclusion value by a warning message
27947
27948         * atree.h, atree.ads, atree.adb: Remove Char_Code field support
27949         completely. Add support for Uint2 field
27950
27951         sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
27952         exp_prag.adb: Char_Literal_Value field is now a Uint.
27953
27954         * exp_util.adb (Insert_Actions): Replace
27955         N_Formal_Subprogram_Declaration by
27956         N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
27957         Char_Literal_Value field is now a Uint.
27958
27959         * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
27960         defined for subprogram renaming declarations. When set, the field
27961         indicates the defining entity of a corresponding formal subprogram
27962         when the renaming corresponds to a formal subprogram association in an
27963         instantiation.
27964         (Set_Corresponding_Formal_Spec): New procedure to return
27965         Corresponding_Formal_Spec field.
27966         Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
27967         (which is now a subtype).
27968         Char_Literal_Value field is now a Uint
27969
27970         * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
27971         pointer to the base of the dispatch table.
27972         Minor changes to comments.
27973         (Controlling_Type): New function for determining the tagged type
27974         associated with a tagged primitive subprogram.
27975         (Expand_Dispatching_Call): Add support for a controlling actual that is
27976         directly a value of type Ada.Tag rather than a tagged object.
27977
27978         * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
27979         describing the new layout.
27980         (Dispatch_Table): The expander computes the actual array size, allocates
27981         the Dispatch_Table record accordingly, and generates code that displaces
27982         the base of the record after the Typeinfo_Ptr component. The access to
27983         these components is done by means of local functions.
27984         (Offset_To_Top): New function.
27985         (Typeinfo_Ptr): New function.
27986         (Get_TSD): Modified to access the new position of the TSD.
27987         (Set_TSD): Modified to save the TSD in its new position.
27988
27989         * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
27990         case of formal abstract subprograms. Add check and message for -gnat05.
27991         Update comments.
27992
27993         * sem_ch12.adb: Add with and use for Sem_Disp.
27994         (Analyze_Associations): Minor change from "=" to "in" for use of
27995         N_Formal_Subtype_Declaration (which is now a subtype).
27996         (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
27997         N_Formal_Subtype_Declaration (which is now a subtype).
27998         (Analyze_Formal_Subprogram): Add handling for
27999         N_Formal_Abstract_Subprogram, marking the formal as abstract and
28000         dispatching, setting the controlling status of the formal parameters
28001         and result, and issuing an error if there is no controlling type for
28002         the formal subprogram.
28003         (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
28004         which is an unclean use of that field, we set the new field
28005         Corresponding_Formal_Spec to make the formal subprogram available to
28006         processing in Analyze_Subprogram_Declaration.
28007         (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
28008         Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
28009         Constrained, so that it is is does not statically match its anonymous
28010         base type.
28011
28012         * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
28013         abstract formal subprograms in error check for functions returning
28014         abstract types. Set scope of new designator for
28015         a parameterless subprogram, so that it is available when checking the
28016         body for nested subprograms, before full analysis of said body.
28017         (Analyze_Subprogram_Body): Warn on inlining bodies with nested
28018         subprogram only if inner one comes from source.
28019         (Analyze_Function_Call): If the call is given in object notation, the
28020         analysis of the name rewrites the node and analyzes it with the proper
28021         argument list. After analyzing the name, if the call has been rewritten
28022         and the result type is set, no further analysis is needed.
28023         (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
28024         mark in function specification, in a context where the formals are
28025         visible and hide outer homographs.
28026
28027         * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
28028         as the tagged type for the cases of abstract formal subprograms and
28029         renamings of those.  Clean up spec comments.
28030         (Check_Dispatching_Context): Add error message to indicate "abstract
28031         procedure", covering the case of a call to a formal abstract procedure
28032         that has statically tagged operands.
28033         (Check_Dispatching_Call): Check for the case of an actual given by
28034         a tag-indeterminate function call whose type is an ancestor of the
28035         containing call's associated tagged type. This situation can occur
28036         for inherited primitives with function defaults. In this case we
28037         use the tagged type's tag directly as the controlling argument for
28038         the calls.
28039         (Expand_Call): Name change on call to Expand_Dispatch_Call.
28040
28041         * sprint.adb (Sprint_Node_Actual): Split
28042         N_Formal_Subprogram_Declaration into two alternatives for the new
28043         cases N_Formal_Abstract_Subprogram_Declaration and
28044         N_Formal_Concrete_Subprogram_Declaration.
28045         Char_Literal_Value field is now a Uint.
28046
28047         * trans.c: Get rid of junk Uint2 reference.
28048         Char_Literal_Value field is now a Uint.
28049         (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
28050         (gigi): Correct third arg to gimplify_body.
28051
28052         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
28053         (TYPE_LANG_FLAG_0): Check for record or union.
28054
28055         * treepr.adb: Char_Literal_Value field is now a Uint
28056
28057         * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
28058         UI_From_CC.
28059
28060         * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
28061         Add full UTF-32 support
28062         Char_Code is now 32 bits
28063
28064         * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
28065         wide character UTF_32 line terminators.
28066         Initialize Main_Source_File to avoid error when no main
28067         source is loaded.
28068
28069         * errout.adb (Finalize): Do not check Num_SRef_Pragmas
28070         (Main_Source_File) when no main source has been loaded, to avoid
28071         potential crash.
28072
28073 2005-02-09  Robert Dewar  <dewar@adacore.com>
28074
28075         * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
28076         Fix name of Set routine
28077
28078         * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
28079         fixed packages.
28080
28081         * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
28082         a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
28083         fixed packages
28084
28085         * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
28086         forms of Get_Line subprograms for AI-301.
28087
28088         * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
28089         a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
28090         a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
28091         a-stwima.ads: Minor reformatting.
28092
28093 2005-02-09  Doug Rupp  <rupp@adacore.com>
28094             Thomas Quinot  <quinot@adacore.com>
28095
28096         * adaint.c, adaint.h
28097         [VMS] (to_ptr32): New function.
28098         (MAYBE_TO_PTR32): New macro.
28099         (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
28100         for pointer size.
28101         [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
28102         [VMS] (#define fork()): Remove since unneccessary.
28103         (__gnat_set_close_on_exec): New routine to support
28104         GNAT.OS_Lib.Set_Close_On_Exec.
28105
28106         * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
28107         the parent side as close-on-exec so that they are not inherited by the
28108         child.
28109
28110         * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
28111         set or clear the FD_CLOEXEC flag on a file descriptor.
28112
28113 2005-02-09  Eric Botcazou  <ebotcazou@adacore.com>
28114             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28115
28116         PR ada/19386
28117         * decl.c:
28118         (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
28119         on the field if Pragma Component_Alignment (Storage_Unit).
28120         (gnat_to_gnu_entity, case object): Do not treat a renaming that has
28121         side-effects as if it were a constant; also make SAVE_EXPR to protect
28122         side-effects.
28123         (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
28124         UNION_TYPE.
28125         (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
28126         (components_to_record): Test it.
28127         Fix improper usage of REFERENCE_CLASS_P.
28128
28129         * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
28130         RECORD_TYPE.
28131
28132         * utils2.c: Minor reformatting.
28133
28134         * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
28135         handle other cases like RECORD_TYPE.
28136
28137         * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
28138
28139 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
28140
28141         * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
28142         component of an array of arrays in an assignment context, and the
28143         aggregate has component associations that require sliding on
28144         assignment, force reanalysis of the aggregate to generate a temporary
28145         before the assignment.
28146         (Must_Slide): Make global to the package, for use in Gen_Assign.
28147
28148 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
28149
28150         * exp_ch4.adb (Expand_Composite_Equality): If a component is an
28151         unchecked union with no inferable discriminants, return a
28152         Raise_Program_Error node, rather than inserting it at the point the
28153         type is frozen.
28154         (Expand_Record_Equality, Component_Equality): Handle properly the case
28155         where some subcomponent is an unchecked union whose generated equality
28156         code raises program error.
28157
28158 2005-02-09  Doug Rupp  <rupp@adacore.com>
28159
28160         * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
28161         [VMS] (#define exit hack): Remove.
28162
28163 2005-02-09  Pascal Obry  <obry@adacore.com>
28164             Arnaud Charlet  <charlet@adacore.com>
28165
28166         * init.c (__gnat_initialize): Add a new parameter eh which contains the
28167         address of the exception registration. The Win32 version of this
28168         routine calls __gnat_install_SEH_handler() to initialize the SEH
28169         (Structured Exception Handling) handler.
28170         (__gnat_error_handler) [Win32]: Removed. Not needed as we use
28171         SEH (Structured Exception Handling) now.
28172         (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
28173         (__gnat_initialize for ppc-vxworks): Adjust comments and the
28174         preprocessor condition protecting the call to the extra eh setup
28175         subprogram, which is only available for the ppc target.
28176         (__gnat_clear_exception_count): replaced reference to
28177         variable taskIdCurrent by call to taskIdSelf(), cleaner.
28178
28179         * seh_init.c: New file.
28180
28181         * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
28182         (GNATBIND_OBJS): Idem.
28183
28184         * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
28185         routine takes a new parameter (a pointer to the exception registration
28186         for the SEH (Structured Exception Handling) support.
28187
28188         * raise.h: (__gnat_install_SEH_handler): New prototype.
28189         Update copyright notice.
28190
28191         * s-tassta.adb (Task_Wrapper): Declare the exception registration
28192         record and initialize it by calling __gnat_install_SEH_handler.
28193
28194 2005-02-09  Vincent Celier  <celier@adacore.com>
28195
28196         * make.adb (Gnatmake): Do not fail when the main project has no object
28197         directory.
28198
28199 2005-02-09  Doug Rupp  <rupp@adacore.com>
28200
28201         * Makefile.in [VMS] (LN,LN_S): Define as cp -p
28202         Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
28203         [VMS]: Add translations for g-enblsp.adb.
28204
28205         * s-asthan-vms.adb: Removed.
28206         * s-asthan-vms-alpha.adb: Added.
28207
28208 2005-02-09  Pascal Obry  <obry@adacore.com>
28209
28210         * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
28211         (LIBGNAT_OBJS): Add seh_init.o.
28212
28213 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28214
28215         PR ada/16592
28216         * Makefile.in: Link all gnat tools with -static-libgcc, since
28217         -shared-libgcc is now used by default on some systems (e.g. linux with
28218         recent binutils).
28219         Remove references to Makefile.prolog/generic, no longer used.
28220
28221 2005-02-09  Vincent Celier  <celier@adacore.com>
28222
28223         * prj-makr.adb (Process_Directory): Put file name in canonical case
28224         before matching against the patterns.
28225         If gnatname has been invoked as <prefix>-gnatname
28226         then invoke the compiler as <prefix>-gcc, not just "gcc".
28227
28228 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
28229
28230         * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
28231         with expansion disabled. The actual subtype is needed among other
28232         places when the selected component appears in the context of a loop
28233         bound, and denotes a packed array.
28234         (Operator_Check): Always use the first subtype in the
28235         error message, to avoid the appearance of internal base types.
28236         (Transform_Object_Operation): Copy each actual in full
28237         to the parameter associations of the constructed call, rather than
28238         using the shallow copy mechanism of New_Copy_List. This ensures that
28239         the chaining of named associations is done properly.
28240         (Complete_Object_Operation): Rewrite node, rather than
28241         replacing it, so that we can trace back to the original selected
28242         component.
28243
28244         * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
28245         and calls that use object notation, if the called function is not
28246         declared  in a withed unit, place the elaboration constraint on the
28247         unit in the context that makes the function accessible.
28248         (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
28249         imposes an elaboration constraint between two packages.
28250
28251 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
28252
28253         * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
28254         views of a private type after handling its private dependents, to
28255         maintain proper stack discipline between entry and exit from the
28256         package.
28257
28258 2005-02-09  Cyrille Comar  <comar@adacore.com>
28259
28260         * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
28261         Minor reformatting.
28262
28263 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28264
28265         * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
28266         fields for foreign threads.
28267
28268 2005-02-09  Doug Rupp  <rupp@adacore.com>
28269
28270         * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
28271         recursion warnings when compiled with -gnatdm.
28272
28273 2005-02-09  Robert Dewar  <dewar@adacore.com>
28274
28275         * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
28276         Slight fix to documentation of -gnaty with no parameters
28277
28278         * xr_tabls.ads: Add ??? comment for missing overall comment
28279
28280         * xsinfo.adb: Make default file name be sinfo.h, since this is what
28281         we now use by default.
28282
28283         * xsnames.adb: Adjust end of file test to look for five space followed
28284         by '#' instead of six spaces. The format of xsnames.adb was modified
28285         in the last update.
28286
28287         * a-numeri.ads: Add reference to AI-388 for greek letter pi
28288         identifier.
28289
28290         * clean.adb: Minor reformatting.
28291
28292         * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
28293         gnatname.adb: Minor reformatting
28294         Add 2005 to copyright output when utility is run
28295
28296         * csets.adb: Eliminate obsolete comment
28297
28298         * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
28299         Update comments.
28300
28301         * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
28302
28303 2005-02-09  Sergey Rybin  <rybin@adacore.com>
28304
28305         * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
28306         the difference between compact and incompact layout and add the record
28307         representation clause to the example illustrating different layouts.
28308         Add the description of '-A5' gnatpp option ("align 'AT' keywords in
28309         component clauses").
28310
28311 2005-02-09  Florian Villoing  <villoing@adacore.com>
28312
28313         * gnat_ugn.texi: Fix typos.
28314         Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
28315         @file.
28316         Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
28317         in the generated documentation.
28318
28319 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28320
28321         * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
28322         longer supported.
28323         Update linker wrapper when linking with non GNU C++.
28324
28325 2005-02-09  Pascal Obry  <obry@adacore.com>
28326
28327         * gnat_ugn.texi:
28328         Document the procedure to debug the DllMain routine on Windows.
28329         Add note about -funwind-tables and mixed Ada and C/C++ programming in
28330         ZCX mode.
28331         Document new BIND qualifer /RETURN_CODES=VMS.
28332
28333 2005-02-09  Ben Brosgol  <brosgol@adacore.com>
28334
28335         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
28336         Edited gnatmetric chapter
28337
28338 2005-02-09  Robert Dewar  <dewar@adacore.com>
28339
28340         * gnat_rm.texi:
28341         Changes to document new wide wide character support
28342         For AI-285
28343         Update documentation on Normalize_Scalars and Initialize_Scalars
28344
28345 2005-02-09  Pascal Obry  <obry@adacore.com>
28346
28347         * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
28348
28349 2005-02-09  Jose Ruiz  <ruiz@adacore.com>
28350
28351         * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
28352         from the VxWorks kernel) that is needed for getting the active
28353         priority of the different tasks.
28354
28355         * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
28356         Use a pragma Elaborate_Body in the spec file instead.
28357         Noticed by code reading.
28358
28359 2005-02-09  Thomas Quinot  <quinot@adacore.com>
28360
28361         * exp_util.ads: Minor correction in comment.
28362
28363 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28364
28365         * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
28366         since this procedure is now too complex to be worth inlining.
28367
28368 2005-02-09  Richard Henderson  <rth@redhat.com>
28369
28370         * utils.c (gnat_define_builtin): Remove.
28371         (gnat_install_builtins): Use build_common_builtin_nodes.
28372
28373 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
28374
28375         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
28376         a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
28377         a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
28378         a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
28379         a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
28380         a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
28381         a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
28382         a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
28383         a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
28384         a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
28385         a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
28386         a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
28387         a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
28388         a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
28389         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
28390         a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
28391         a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
28392         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
28393         a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
28394         a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
28395         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
28396         a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
28397         a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
28398         a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
28399         a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
28400         a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
28401         a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
28402         a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
28403         a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
28404         a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
28405         a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
28406         a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
28407         a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
28408         a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
28409         library.
28410
28411 2005-01-27  Laurent Guerby  <laurent@guerby.net>
28412
28413         * Makefile.in: Fix a-intnam.ads from previous commit,
28414         add 2005 to copyright.
28415         * a-intman-rtems.ads: Renamed to...
28416         * a-intnam-rtems.ads:
28417
28418 2005-01-27  Laurent Guerby  <laurent@guerby.net>
28419
28420         * Makefile.in: Rename GNAT RTEMS specific files.
28421         * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
28422         5rosinte.ads, 5rparame.adb: Replaced by files below.
28423         * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
28424         s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
28425
28426 2005-01-27  Joel Sherrill  <joel.sherrill@oarcorp.com>
28427             Laurent Guerby  <laurent@guerby.net>
28428
28429         PR ada/19488
28430         * 5rosinte.ads: Add No_Key constant.
28431         * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
28432         * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
28433
28434 2005-01-26  Laurent Guerby  <laurent@guerby.net>
28435
28436         PR ada/19414
28437         * i-cobol.adb (Valid_Numeric): Handle zero length case.
28438
28439 2005-01-20  Richard Henderson  <rth@redhat.com>
28440
28441         * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
28442         a-intnam-linux.ads and system-linux-alpha.ads.
28443         * a-intnam-linux-alpha.ads: Remove file.
28444         * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
28445         * system-linux-alpha.ads: New file.
28446
28447 2005-01-18  Jakub Jelinek  <jakub@redhat.com>
28448
28449         PR ada/13470
28450         * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
28451         set to the new string.
28452
28453 2005-01-18  Toon Moene  <toon@moene.indiv.nluug.nl>
28454
28455         * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
28456         to True.
28457
28458 2005-01-18  Richard Henderson  <rth@redhat.com>
28459
28460         * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
28461         THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
28462         for alpha-linux.
28463         * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
28464
28465 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
28466
28467         * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
28468         (GCC_ZCX_Support): Likewise.
28469
28470 2005-01-11  Bastian Blank  <waldi@debian.org>
28471
28472         * system-linux-s390.ads: Define Preallocated_Stacks.
28473         * system-linux-s390x.ads: Likewise.
28474
28475 2005-01-04  Arnaud Charlet  <charlet@adacore.com>
28476
28477         * gnat_ugn.texi: Fix texi errors with null variables.
28478
28479 2005-01-03  Thomas Quinot  <quinot@adacore.com>
28480
28481         * gen-soccon.c: New utility program to generate g-soccon.ads
28482         automatically.
28483
28484         * socket.c, gsocket.h: Split inclusion of system header files into a
28485         gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
28486
28487         * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
28488         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
28489         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
28490         g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
28491         should not be edited by hand anymore, but should be regenerated using
28492         gen-soccon.
28493
28494 2005-01-03  Robert Dewar  <dewar@adacore.com>
28495             Ed Schonberg  <schonberg@adacore.com>
28496             Vincent Celier  <celier@adacore.com>
28497
28498         * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
28499         on/off, since this is an obsolescent feature, for which we now generate
28500         a warning.
28501
28502         * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
28503         warning mode is set and obsolescent usage of this attribute occurs.
28504         (Resolve_Access, case 'Access): Note that GNAT uses the context type to
28505         disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
28506         predates, and partly motivates, the adoption of the AI.
28507         Implement new Ada 2005 attribute Mod
28508
28509         * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
28510         attribute Mod.
28511
28512         * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
28513
28514         * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
28515         pragma restrictions.
28516         New entry for Ada 2005 attribute Mod.
28517
28518         * par-prag.adb:
28519         Add recognition of new pragma Restrictions No_Dependence
28520         Recognize restriction No_Obsolescent_Features at parse time
28521
28522         * bcheck.adb: Add circuitry for checking for consistency of
28523         No_Dependence restrictions.
28524
28525         * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
28526         restrictions.
28527
28528         * restrict.ads, restrict.adb: Add subprograms to deal with
28529         No_Dependence restrictions.
28530
28531         * rtsfind.adb: Check that implicit with's do not violate No_Dependence
28532         restrictions.
28533
28534         * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
28535         sem_attr.adb: Add check for new restriction No_Obsolescent_Features
28536
28537         * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
28538         dummy parameter to scng instantiation.
28539         Needed for new restriction No_Obsolescent_Features
28540
28541         * scn.adb: (Obsolescent_Check): New procedure
28542         Needed for new restriction No_Obsolescent_Features
28543
28544         * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
28545         specified by AI-285, needed for implementation of AI-388 (adding greek
28546         pi to Ada.Numerics).
28547         Add new generic formal to scng, needed for new restriction
28548         No_Obsolescent_Features.
28549
28550         * s-rident.ads: Add new restriction No_Obsolescent_Features.
28551
28552         * ali.ads, ali.adb: Adjustments for reading new No_Dependence
28553         restrictions lines.
28554         (Scan_ALI): When finding an unexpected character on an R line, raise
28555         exception Bad_R_Line, instead of calling Fatal_Error, so that, when
28556         Ignore_Errors is True, default restrictions are set and scanning of the
28557         ALI file continues with the next line. Also, when Bad_R_Line is raised
28558         and Ignore_Errors is True, skip to the end of le line.
28559
28560         * sem_ch10.adb: Check that explicit with's do not violate
28561         No_Dependence restrictions.
28562         (Install_Withed_Unit): Add code to implement AI-377 and diagnose
28563         illegal context clauses containing child units of instance.
28564
28565         * sem_prag.adb: Processing and checking for new No_Dependence
28566         restrictions.
28567         (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
28568         analyze and check the External argument.
28569
28570         * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
28571
28572 2005-01-03  Robert Dewar  <dewar@adacore.com>
28573
28574         * atree.adb: Add a fifth component to entities
28575         This allows us to add 32 flags and four new fields
28576
28577         * atree.ads: Add a fifth component to entities
28578         This allows us to add 32 flags and four new fields
28579
28580         * einfo.ads, einfo.adb: Document new fields and new flags now available
28581         Add routines for printing new fields
28582
28583         * treepr.adb: Call routines to print out additional fields if present
28584
28585 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
28586
28587         * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
28588         gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
28589
28590         * Makefile.in: Add support to build shared Ada libraries on solaris x86
28591         Remove gpr2make, replaced by gprmake.
28592         Remove references to gnatmem and libaddr2line.
28593         Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
28594         (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
28595         Add support for specialized version of Ada.Numerics.Aux for Darwin: use
28596         a-numaux-darwin.ads and a-numaux-darwin.adb
28597         Enable mlib-tgt-lynxos.adb on lynxos.
28598
28599         * Make-lang.in: Remove rules for gpr2make.
28600         When generating sdefault.adb, do not call Relocate_Path
28601         on S3 for function Target_Name, as it is not a path.
28602         Remove references to gnatmem and libaddr2line.
28603
28604         * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
28605         files.
28606
28607 2005-01-03  Samuel Tardieu  <tardieu@adacore.com>
28608
28609         * checks.adb (Apply_Alignment_Check): Generate a warning if an object
28610         address is incompatible with its base type alignment constraints when
28611         this can be decided statically.
28612
28613 2005-01-03  Olivier Hainque  <hainque@adacore.com>
28614
28615         * decl.c (compatible_signatures_p): New function. The intended purpose
28616         is to check if two function signatures for a call-site and a callee are
28617         compatible enough for the call to be valid. The underlying purpose is
28618         to check if a call to a mapped builtin is using the right interface.
28619         The current code actually does not check antyhing - this a placeholder
28620         for future refinements.
28621         (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
28622         builtin calls for convention Intrinsic.
28623
28624         * gigi.h (builtin_decl_for): Declare (new function).
28625
28626         * utils.c (gnat_install_builtins): Install the target specific builtins.
28627         (builtin_decl_for): New function, provide a dummy body for now.
28628
28629 2005-01-03  Geert Bosch  <bosch@adacore.com>
28630
28631         * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
28632         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
28633         (Pred): Implement in terms of Succ.
28634
28635         * trans.c (convert_with_check): Reimplement conversion of float to
28636         integer.
28637
28638 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
28639             Vincent Celier  <celier@adacore.com>
28640
28641         * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
28642         bounds can be negative, and must be declared Int, not Nat.
28643
28644         * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
28645         array is checked after using the index in the array.
28646
28647         * makegpr.adb (Add_Switches): Check if there is a package for the
28648         processor. If there is no package, do not look for switches.
28649
28650 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
28651
28652         * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
28653         generation of predefined stream operations (specs and bodies) should
28654         proceed. Under various restrictions these subprograms must not be
28655         generated.
28656
28657 2005-01-03  Thomas Quinot  <quinot@adacore.com>
28658
28659         * exp_dist.adb:
28660         Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
28661         amount of PCS-specific code in RACW stubs generation.
28662         (Copy_Specification): Set Etype on copied formal parameter entities, as
28663         this information is needed for PolyORB stubs generation.
28664         (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
28665         variable Dynamic_Async.
28666         (Build_Subprogram_Receiving_Stubs): Make PCS-specific
28667         (Build_RPC_Receiver_Specification): Make generic again, as recent
28668         changes have allowed RPC receivers to have the same profile for both
28669         variants of the PCS.
28670         Reorganise RPC receiver generation to reduce differences between the
28671         structure of GARLIC and PolyORB RPC receivers.
28672         (Add_Receiving_Stubs_To_Declarations): Make this subprogram
28673         PCS-specific.
28674         Simplify elaboration code for RCI packages.
28675
28676         * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
28677         generation to reduce differences between the structure of GARLIC and
28678         PolyORB RPC receivers.
28679
28680         * s-stratt.adb: Fix typo in comment.
28681
28682 2005-01-03  Thomas Quinot  <quinot@adacore.com>
28683
28684         * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
28685         copied from Make_Init_Call).
28686
28687         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
28688         reads and assignments on a temporary variable declared with appropriate
28689         discriminants.
28690
28691 2005-01-03  Robert Dewar  <dewar@adacore.com>
28692
28693         * i-c.adb (To_C): Raise CE if string is null and Append_Null
28694
28695 2005-01-03  Robert Dewar  <dewar@adacore.com>
28696
28697         * i-cstrin.adb (Update): Do not append a null in form called with a
28698         String. This avoids unintended behavior.
28699
28700 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
28701
28702         PR ada/17527
28703         * init.c: Fix warnings on Free BSD section.
28704
28705 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
28706
28707         PR ada/16949
28708         * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
28709         xsinfo.adb).
28710
28711 2005-01-03  Vincent Celier  <celier@adacore.com>
28712
28713         * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
28714         libraries when Unique_Compile is True (-u switch).
28715         (Gnatmake): ditto.
28716
28717 2005-01-03  Robert Dewar  <dewar@adacore.com>
28718
28719         * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
28720         upper case letter or underscore after W, as allowed by spec.
28721
28722 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
28723
28724         * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
28725         darwin port by using proper type definitions from header files.
28726         Use SIGTERM instead of SIGABRT for SIGADAABORT.
28727
28728 2005-01-03  Robert Dewar  <dewar@adacore.com>
28729
28730         * par.adb: Enhance error message handling for configuration file
28731         pragmas.
28732
28733 2005-01-03  Robert Dewar  <dewar@adacore.com>
28734
28735         * s-arit64.adb (Double_Divide): Put back changes that got accidentally
28736         removed during the previous update (test properly for case of dividing
28737         largest negative number by -1, which generates overflow).
28738
28739 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
28740             Sergey Rybin  <rybin@adacore.com>
28741
28742         * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
28743         to use as the defining identifier for a formal package.
28744         (Remove_Parent): If the instance takes place within (an instance of)
28745         a sibling, preserve private declarations of common parent.
28746
28747 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
28748
28749         * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
28750         to determine whether one of the operands is a fixed-point type for
28751         which a user-defined multiplication or division operation might be
28752         defined.
28753
28754         * sem_res.adb (Valid_Conversion): The legality rules for conversions
28755         of access types are symmetric in Ada 2005: either designated type can
28756         be unconstrained.
28757
28758 2005-01-03  Vincent Celier  <celier@adacore.com>
28759
28760         * s-fileio.adb (Temp_File_Record): Change length of string component
28761         Name from L_tmpnam + 1 to max_path_len + 1.
28762
28763 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
28764
28765         * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
28766         Self_Id.Deferral_Level = 0.
28767         (Do_Pending_Action): Move this function to the spec.
28768
28769         * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
28770         Do_Pending_Action explicitely when needed, in case we're using
28771         No_Abort restrictions.
28772
28773         * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
28774         deferral level since it will not get changed by the generated code.
28775         Keeping a default value of 1 would prevent some operations (e.g.
28776         select or delay) to proceed successfully.
28777
28778 2005-01-03  Ben Brosgol  <brosgol@adacore.com>
28779             Robert Dewar  <dewar@adacore.com>
28780             Cyrille Comar  <comar@adacore.com>
28781
28782         * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
28783         porting guide chapter (vms version).
28784         Revised doc title (removed "for native platforms") and subtitle.
28785         Add discussion on warning flag for obsolescent features. First we
28786         note that it applies to obsolete GNAT features, which was previously
28787         omitted. Second we contrast the behavior with that of the new
28788         Ada 2005 AI-368 restriction No_Obsolescent_Features.
28789         Preliminary rewriting of GNAT & libraries chapter in order to take
28790         into account default project locations & new project manager
28791         capabilities.
28792
28793 2005-01-03  Robert Dewar  <dewar@adacore.com>
28794
28795         * cstand.adb (Create_Operators): Clean up format and documentation of
28796         unary and binary operator result tables. No change in code, just
28797         reformatting and addition of comments.
28798
28799         * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
28800         sem_ch2.adb: Minor reformatting
28801
28802         * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
28803         sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
28804         comments for Tree_Read and Tree_Write.
28805
28806 2005-01-03  Pascal Obry  <obry@adacore.com>
28807
28808         * exp_attr.ads: Minor reformatting.
28809
28810 2005-01-03  Romain Berrendonner  <berrendo@adacore.com>
28811
28812         * comperr.adb (Compiler_Abort): Add specialized message for GAP
28813         versions.
28814
28815 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
28816
28817         * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
28818         whether the ancestor type is private, as may be the case with nested
28819         instantiations.
28820
28821 2004-12-30  Sohail Somani  <sohail@sohailsomani.com>
28822
28823         PR ada/19128
28824         * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
28825
28826 2004-12-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
28827
28828         * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
28829         * utils2.c (build_unary_op): Likewise.
28830
28831 2004-12-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28832
28833         * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
28834
28835 2004-12-19  Richard Henderson  <rth@redhat.com>
28836
28837         * trans.c (gigi): Update gimplify_body call.
28838
28839 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
28840
28841         * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
28842
28843 2004-12-07  Ed Falis  <falis@adacore.com>
28844
28845         * s-intman-vxworks.adb (Notify_Exception): removed useless check for
28846         current task being suspended.
28847
28848         * init.c (__gnat_clear_exception): added to reset VxWorks exception
28849         count.
28850         (__gnat_map_signal): removed test for current task being suspended.
28851
28852 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
28853
28854         * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
28855         from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
28856         targets (such as AAMP).
28857
28858 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
28859
28860         * atree.adb (Visit_Itype): Create a new name for the generated itype,
28861         because the back-end may otherwise treat it as a redefinition of the
28862         old symbol.
28863
28864 2004-12-07  Eric Botcazou  <ebotcazou@adacore.com>
28865
28866         * back_end.adb (Scan_Back_End_Switches): Accept --param.
28867
28868         * lang-specs.h: Accept --param.
28869
28870 2004-12-07  Vincent Celier  <celier@adacore.com>
28871
28872         * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
28873         package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
28874         Current_Body_Suffix => Ada_Body_Suffix).
28875         Take into account Externally_Built attribute.
28876
28877         * clean.adb (In_Extension_Chain): Always return False when one of the
28878         parameter is No_Project.
28879         (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
28880         Ada_Language_Index).
28881         (Gnatclean): Adapt to change in package Prj.Pars (no parameter
28882         Process_Languages for procedure Parse).
28883
28884         * gnatcmd.adb (Carg_Switches): New table.
28885         (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
28886         Adapt to name changes in package Prj (Current_Spec_Suffix =>
28887         Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
28888
28889         * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
28890         Header_Num and function Hash are now declared in package Prj,
28891         not Prj.Com.
28892
28893         * prj.adb (Suffix_Of): New function.
28894         (Set (Suffix)): New procedure.
28895         (Hash): One function moved from Prj.Com
28896         (Is_Present, Language_Processing_Data_Of): New functions
28897         (Set): Two new procedures
28898         (Add_Language_Name, Display_Language_Name): New procedures
28899
28900         * prj.ads: (Suffix_Of): New function
28901         (Set (Suffix)): New procedure
28902         Add several types and tables for multi-language support.
28903         (Header_Num): Type moved from Prj.Com
28904         (Hash): Two functions moved from Prj.Com
28905         (Is_Present, Language_Processing_Data_Of): New functions
28906         (Set): Two new procedures
28907         (Add_Language_Name, Display_Language_Name): New procedures
28908         (Naming): Component name changes:
28909         Current_Spec_Suffix => Ada_Spec_Suffix,
28910         Current_Body_Suffix => Ada_Body_Suffix. Add new components:
28911         Impl_Suffixes, Supp_Suffixes.
28912         (Project_Data): New components: Externally_Built, Supp_Languages,
28913         First_Language_Processing, Supp_Language_Processing, Default_Linker,
28914         Default_Linker_Path.
28915
28916         * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
28917         new package Language_Processing with its attributes (Compiler_Driver,
28918         Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
28919         Binder_Driver, Default_Linker).
28920
28921         * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
28922         (Header_Num): Type moved to package Prj
28923
28924         * prj-env.adb: Adapt to name changes in package Prj
28925         (Current_Spec_Suffix => Ada_Spec_Suffix,
28926         Current_Body_Suffix => Ada_Body_Suffix).
28927
28928         * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
28929         default to the project path, except the "-" is one of the directories
28930         in env var ADA_PROJECT_PATH.
28931         (Current_Project_Path): Global variable, replacing Project_Path
28932         that was in the body of Prj.Part.
28933         (Project_Path): New function
28934         (Set_Project_Path): New procedure
28935         Initialize Current_Project_Path during elaboration of the package
28936         Remove dependency on Prj.Com, no longer needed
28937
28938         * prj-ext.ads (Project_Path): New function
28939         (Set_Project_Path): New procedure
28940
28941         * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
28942         suffix is defined for language <lang>.
28943         (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
28944         accessing directly the components of Naming.
28945         (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
28946         Reorganise of this package.
28947         Break procedure Check in several procedures.
28948
28949         * prj-nmsc.ads: Replace all procedures (Ada_Check,
28950         Other_Languages_Check and Language_Independent_Check) with a single
28951         procedure Check.
28952
28953         * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
28954         Process_Languages, no longer needed.
28955
28956         * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
28957         Current_Project_Path.
28958         Remove elaboration code, moved to the body of Prj.Ext
28959         Use new function Prj.Ext.Project_Path instead of old variable
28960         Project_Path.
28961         (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
28962         When comparing with project paths on the stack, first put the resolved
28963         path in canonical case.
28964         (Parse_Single_Project): Set the path name of the project file in the
28965         tree to the normalized path.
28966
28967         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
28968         parameter Process_Languages, no longer needed.
28969         (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
28970         Other_Languages_Check.
28971
28972         * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
28973         to store the resolved canonical path of the project file.
28974         Remove dependency to Prj.Com, no longer needed
28975
28976         * prj-util.adb: Adapt to name changes in package Prj
28977         (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
28978         Ada_Body_Suffix).
28979
28980         * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
28981         Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
28982         Externally_Built, Include_Option, Language_Processing.
28983
28984         * makegpr.adb: Numerous changes due to changes in packages
28985         Prj and Prj.Nmsc.
28986
28987         * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
28988         default to the project path, except whe "-" is one of the directories
28989         in env var ADA_PROJECT_PATH.
28990         (Gnatls): In verbose mode, add the new section "Project Search Path:"
28991
28992 2004-12-07  Robert Dewar  <dewar@adacore.com>
28993
28994         * debug.adb: Document that -gnatdA automatically sets -gnatR3m
28995
28996         * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
28997         set -gnatR3m mode.
28998
28999         * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
29000         flag. No longer needed now that we handle this in gnat1drv.adb.
29001
29002         * repinfo.ads: Minor reformatting
29003
29004 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29005             Olivier Hainque  <hainque@adacore.com>
29006             Eric Botcazou  <ebotcazou@adacore.com>
29007
29008         * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
29009         TYPE_SIZE_UNIT of result type if SIZE is not specified.
29010         (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
29011         of a bitfield, which we know is useless and causes trouble because of
29012         alignment implications.
29013
29014         * utils.c (create_var_decl): Set DECL_COMMON again on targets without
29015         BSS sections.
29016         (process_attributes): Clear DECL_COMMON again when a section attribute
29017         is present.
29018         (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
29019         SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
29020         (create_field_decl): Special case ADDRESSABLE negative to mean
29021         "no bitfield creation", to be used by make_aligning_type. Don't
29022         restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
29023         fields claimed addressable still have to be bitfields. Use
29024         value_factor_p instead of a raw binop construction to check for the
29025         position's alignment.
29026
29027 2004-12-07  Geert Bosch  <bosch@adacore.com>
29028
29029         * eval_fat.adb: Revert previous change.
29030
29031 2004-12-07  Thomas Quinot  <quinot@adacore.com>
29032             Ed Schonberg  <schonberg@adacore.com>
29033
29034         * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
29035         with an implicit dereference as its prefix, use
29036         Insert_Explicit_Dereference instead of merely rewriting the prefix into
29037         an explicit dereference. This ensures that a reference to the original
29038         prefix is generated, if appropriate.
29039
29040         * sem_util.adb (Insert_Explicit_Dereference): When an implicit
29041         dereference is rewritten to an explicit one, generate a reference to
29042         the entity denoted by its prefix using the original prefix node, so
29043         the dereference can be properly recorded as a read of the denoted
29044         access value, if appropriate.
29045
29046         * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
29047         emitting 'assigned but never read' warning on a variable on the basis
29048         that it has an access type.
29049         (Check_References): Emit unreferenced warning when the scope is a
29050         subprogram body.
29051
29052 2004-12-07  Robert Dewar  <dewar@adacore.com>
29053             Ed Schonberg  <schonberg@adacore.com>
29054
29055         * exp_ch6.adb (Expand_Call): Add comment on handling of back end
29056         intrinsic
29057
29058         * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
29059         leaving call unchanged.
29060         This deals with the case where the pragma Import specified
29061         an external name, to be handled by the back end.
29062
29063         * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
29064         subprogram which is Imported with convention Intrinsic if an
29065         External_Name argument is specified.
29066         (Process_Import_Or_Interface): Properly diagnose link name argument.
29067         (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
29068         with Sem_Ch6.Cannot_Inline.
29069         (Process_Inline): Provide separate warning for inapplicable inline
29070         pragma.
29071         (Cannot_Inline): Reject subprograms that have an at_end handler, so that
29072         treatment is uniform on different targets.
29073
29074 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
29075
29076         * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
29077         construct is rewritten, preserve end label to permit source navigation.
29078
29079 2004-12-07  Thomas Quinot  <quinot@adacore.com>
29080
29081         * exp_dist.adb (Specific_Build_General_Calling_Stubs,
29082         Specific_Build_Stub_Target): New subprograms.
29083         (Build_Subprogram_Calling_Stubs): Make this procedure independent from
29084         the PCS implementation used, using the above PCS-customized subprograms.
29085         Minor reformatting.
29086         (PolyORB_Support.Helpers): New subunit containing supporting subprograms
29087         for generation of DSA code targeted to the PolyORB PCS.
29088         (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
29089         implementation of the partition communication subsystem in ancillary
29090         subprograms.
29091         (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
29092         PolyORB_Support.Build_Stub_Type): New subrograms containing the
29093         PCS-specific part of Add_Stub_Type.
29094         (Insert_Partition_Check): Use runtime library function to perform
29095         E.4(19) check.
29096
29097         * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
29098         (RE_Same_Partition): New entity, from s-parint.
29099
29100         * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
29101
29102 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
29103
29104         * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
29105         Output the copyright message on a separate line from the version
29106         message.
29107
29108 2004-12-07  Joel Brobecker  <brobecker@adacore.com>
29109
29110         * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
29111         compile-time warning.
29112
29113 2004-12-07  Robert Dewar  <dewar@adacore.com>
29114
29115         * g-regpat.adb: (Match): Change a misuse of or to or else
29116
29117 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
29118
29119         * lib-xref.adb:
29120         (Generate_Reference): Handle properly a reference to an entry formal,
29121          when an accept statement has a pragma Unreferenced for it.
29122
29123         * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
29124         and the Has_Pragma_Unreferenced flag for each formal before analyzing
29125         the body, to ensure that warnings are properly emitted for each accept
29126         statement of a given task entry.
29127
29128 2004-12-07  Vasiliy Fofanov  <fofanov@adacore.com>
29129
29130         * Makefile.in: Add support for foreign threads on VMS.
29131
29132 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29133
29134         * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
29135         Remove.
29136         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
29137
29138         * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
29139
29140         * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
29141         exception.
29142         (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
29143
29144 2004-12-07  Robert Dewar  <dewar@adacore.com>
29145
29146         * nlists.adb (Prepend_Debug): Remove parameters and nest within
29147         Prepend.
29148         (Remove_Next_Debug): Same fix
29149
29150         * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
29151         maintain back pointers now, though we did not used to, and comments
29152         were out of date).
29153         (Prepend): Remove pragma Inline.
29154         (Remove_Next): Same cleanup
29155
29156 2004-12-07  Thomas Quinot  <quinot@adacore.com>
29157
29158         * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
29159         used to record an implicit dereference as a read operation on its
29160         prefix when operating under -gnatc. Necessary to avoid spurious
29161         'variable assigned but never read' warnings in that mode.
29162         (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
29163         is a non-overloaded implicit dereference, call the above subprogram to
29164         ensure proper recording of references.
29165
29166 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
29167
29168         * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
29169         to be resolved later as part of Analyze_Iteration_Scheme's call to
29170         Make_Index.
29171
29172 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
29173
29174         * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
29175         prefix is not a scalar type, place error message on prefix, not on
29176         type entity.
29177
29178 2004-12-07  Bernard Banner  <banner@adacore.com>
29179
29180         * vxaddr2line.adb: Add support for x86 vxworks
29181
29182 2004-12-07  Thomas Quinot  <quinot@adacore.com>
29183
29184         * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
29185         documentation of the behaviour of these functions when passed an IP
29186         address that has no record in the system hosts database and no reverse
29187         record in the DNS.
29188
29189         * cstand.adb, a-tags.ads: Fix typos in comment.
29190
29191 2004-12-07  Robert Dewar  <dewar@adacore.com>
29192
29193         * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
29194         exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
29195         sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
29196         s-poosiz.ads: Minor reformatting
29197
29198         * make.adb: Minor reformatting
29199         Add some ??? comments asking for more comments
29200
29201         * s-poosiz.adb: Minor reformatting
29202         Add comments on alignment requirement
29203
29204         * sinfo.ads: Remove obsolete comment and fix typo.
29205
29206 2004-12-07  Vincent Celier  <celier@adacore.com>
29207             Sergey Rybin  <rybin@adacore.com>
29208
29209         * gnat_ugn.texi: Update the section "The GNAT Driver and Project
29210         Files" with the new tool and package names.
29211         Reformatting to suppress most of the warnings for line too long
29212         Document the new section "Project Search Path:" in the output of
29213         gnatls -v.
29214         Add gnatmetric section
29215
29216 2004-12-07  Vincent Celier  <celier@adacore.com>
29217
29218         * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
29219         -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
29220         and -eit to -ept. Added qualifier
29221         /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
29222
29223 2004-11-27  Andreas Schwab  <schwab@suse.de>
29224
29225         * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
29226
29227 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
29228
29229         * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
29230         internal implementation unit GNAT.Sockets.Thin,
29231         as their usage for sockets is non-portable (using the read and write
29232         functions from the system runtime library is fine on UNIX but won't
29233         work under Windows).
29234
29235         * mingw32.h: Update copyright notice.
29236
29237 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
29238
29239         * ada-tree.h: Minor reformatting of previous change to avoid lines
29240         longer than 79 characters.
29241
29242 2004-11-25  Olivier Hainque  <hainque@adacore.com>
29243
29244         * tb-gcc.c: GCC infrastructure based implementation of
29245         __gnat_backtrace.
29246
29247 2004-11-24  Steven Bosscher  <stevenb@suse.de>
29248
29249         * misc.c (gnat_post_options): Don't clear
29250         flag_inline_functions.
29251
29252 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
29253
29254         PR ada/17986
29255         * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
29256         tree.
29257
29258 2004-11-21  Andreas Jaeger  <aj@suse.de>
29259
29260         * stylesw.adb: Change Style_Check_Subprogram_Order to
29261         Style_Check_Order_Subprograms.
29262
29263 2004-11-18  Arnaud Charlet  <charlet@adacore.com>
29264
29265         * adaint.h, adaint.c
29266         (__gnat_portable_spawn): Fix cast of spawnvp third parameter
29267         to avoid warnings.
29268         Add also a cast to kill another warning.
29269         (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
29270         parameter with the priority class of the parent process instead of
29271         always using the NORMAL_PRIORITY_CLASS.
29272         (__gnat_dup): New function.
29273         (__gnat_dup2): New function.
29274         (__gnat_is_symbolic_link): Enable the effective body of this
29275         function when __APPLE__ is defined.
29276
29277         * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
29278         Update comments.
29279
29280 2004-11-18  Olivier Hainque  <hainque@adacore.com>
29281
29282         * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
29283         address of which may be used to represent "others" and "all others"
29284         choices in exception tables, instead of the current harcoded
29285         (void *)0 and (void *)1.
29286         (Setup_Exception): Do nothing in the GNAT SJLJ case.
29287
29288         * gigi.h (others_decl, all_others_decl): New decls representing the
29289         new Others_Value and All_Others_Value objects.
29290         (struct attrib): Rename "arg" component as "args", since GCC expects a
29291         list of arguments in there.
29292
29293         * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
29294         corresponding objects exported by a-exexpr, instead of hardcoded dummy
29295         addresses.
29296
29297         * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
29298         others_decl and all_others_decl instead of hardcoded dummy addresses
29299         to represent "others" and "all others" choices, which is cleaner and
29300         more flexible with respect to the possible eh pointer encoding policies.
29301
29302         * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
29303         (process_attributes): Account for the naming change of the "args"
29304         attribute list entry component.
29305
29306         * decl.c (build_attr_list): Rename into prepend_attributes to allow
29307         cumulating attributes for different entities into a single list.
29308         (gnat_to_gnu_entity): Use prepend_attributes to build the list of
29309         attributes for the current entity and propagate first subtype
29310         attributes to other subtypes.
29311         <E_Procedure>: Attribute arguments are attr->args and not
29312         attr->arg any more.
29313         (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
29314         argument provided, as this is what GCC expects. Use NULL_TREE instead
29315         of 0 for trees.
29316
29317 2004-11-18  Robert Dewar  <dewar@adacore.com>
29318
29319         * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
29320         Minor reformatting througout (including new function specs)
29321         Add ??? comments asking for clarification.
29322
29323 2004-11-18  Thomas Quinot  <quinot@adacore.com>
29324
29325         * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
29326         incomplete duplicate implementation of this subprogram from butil.
29327
29328 2004-11-18  Thomas Quinot  <quinot@adacore.com>
29329
29330         * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
29331         procedures factors the common processing for building an RPC receiver
29332         for an RCI package or an RACW type.
29333         Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
29334         Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
29335         (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
29336         in use.
29337         (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
29338         Add_RACW_Features.
29339         (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
29340         Add_RAST_Features.
29341         (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
29342         distribution subprogram identifiers that are either subprogram numbers
29343         or strings.
29344         (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
29345         string distribution identifiers assigned to a given subprogram.
29346         (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
29347         (Add_RAS_Dereference_TSS): Add comments.
29348         (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
29349         is not referenced yet because it will be used by the PolyORB DSA
29350         implementation.
29351         (Insert_Partition_Check): Remove fossile code.
29352         (First_RCI_Subprogram_Id): Document this constant.
29353         (Add_RAS_Access_TSS): Correct the setting of the Etype of the
29354         RAS_Access TSS.
29355         (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
29356         replaced with calls to Get_Library_Unit_Name_String. Previously there
29357         were several instances of the same code in different locations in the
29358         compiler; this checkin completes the replacement of all of these
29359         instances with calls to a common subprogram.
29360         Minor reformatting.
29361
29362         * sem_dist.adb: Remove comment noting that RPC receiver generation
29363         should be disabled for RACWs that implement RASs.
29364         (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
29365
29366         * sem_util.ads, sem_util.adb (Has_Stream): New function
29367         (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
29368         qualified name of a library unit into the name buffer.
29369         (Note_Possible_Modification): Generate a reference only
29370         if the context comes from source.
29371
29372         * snames.ads (PCS_Names): New subtype corresponding to names of
29373         supported implementations of the Partition Communication Subsystem
29374         (PCS) (i.e. the runtime library support modules for the distributed
29375         systems annex).
29376
29377 2004-11-18  Robert Dewar  <dewar@adacore.com>
29378             Ed Schonberg  <schonberg@adacore.com>
29379
29380         * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
29381         (Has_Rep_Pragma): New function
29382         (Has_Attribute_Definition_Clause): New function
29383         (Record_Rep_Pragma): Moved here from sem_ch13.adb
29384         (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
29385
29386         * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
29387
29388         * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
29389         (Expand_Pragma_Psect_Object): New procedure
29390         These procedures contain the revised and cleaned up processing for
29391         these two pragmas. This processing was formerly in Sem_Prag, but
29392         is more appropriately moved here. The cleanup involves making sure
29393         that the pragmas are properly attached to the tree, and that no
29394         nodes are improperly shared.
29395
29396         * sem_prag.adb: Move expansion of Common_Object and Psect_Object
29397         pragmas to Exp_Prag, which is more appropriate.
29398         Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
29399         check for duplicates Remove use of Is_Psected flag, no longer needed.
29400         Use new Make_String_Literal function with string.
29401
29402         * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
29403         that are functions return universal values, that have to be converted
29404         to the context type.
29405         Use new Make_String_Literal function with string.
29406         (Get_Stream_Convert_Pragma): New function, replaces the use of
29407         Get_Rep_Pragma, which had to be kludged to work in this case.
29408
29409         * freeze.adb: Use new Has_Rep_Pragma function
29410
29411         * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
29412         function with string.
29413         Use new Has_Rep_Pragma function.
29414
29415         * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
29416         string argument.
29417
29418 2004-11-18  Robert Dewar  <dewar@adacore.com>
29419
29420         * errout.ads, errout.adb: (First_Sloc): New function
29421
29422         * par-ch5.adb (P_Condition): Check for redundant parens is now a style
29423         check (-gnatyx) instead of being included as a redundant construct
29424         warning.
29425
29426         * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
29427         Style_Check_Order_Subprograms.
29428
29429         * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
29430         stylesw.adb: Add Style_Check_Xtra_Parens
29431
29432         * usage.adb: Add line for -gnatyx (check extra parens)
29433
29434         * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
29435
29436 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
29437             Robert Dewar  <dewar@adacore.com>
29438
29439         * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
29440         discriminant of a constrained subtype, analyze the copy of the
29441         corresponding constraint, because in some cases it may be only
29442         partially analyzed.
29443         Removes long-lived ??? comments.
29444
29445         * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
29446         handled controlled or secondary-stack expressions within the
29447         iteration_scheme of a loop.
29448
29449         * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
29450         bounds that may contain functions calls, to prevent memory leaks when
29451         the bound contains a call to a function that uses the secondary stack.
29452         (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
29453         generate temporaries for loop bounds that might contain function calls
29454         that require secondary stack and/or finalization actions.
29455
29456         * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
29457         selected component and the selector is overloadable (not just a
29458         function) treat as function call, Analyze_Call will disambiguate if
29459         necessary.
29460         (Analyze_Selected_Component): Do not generate an actual subtype for the
29461         selected component if expansion is disabled. The actual subtype is only
29462         needed for constraint checks.
29463         (Analyze_Allocator): If restriction No_Streams is set, then do
29464         not permit objects to be declared of a stream type, or of a
29465         composite type containing a stream.
29466
29467         * restrict.ads: Remove the a-stream entry from Unit_Array, since
29468         No_Streams no longer prohibits with'ing this package.
29469
29470         * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
29471         discriminants, but the parent base has unknown discriminants, there is
29472         no discriminant constraint to inherit. Such a discrepancy can arise
29473         when the actual for a formal type with unknown discriminants is a
29474         similar private type whose full view has discriminants.
29475         (Analyze_Object_Declaration): If restriction No_Streams is set, then
29476         do not permit objects to be declared of a stream type, or of a
29477         composite type containing a stream.
29478
29479 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
29480
29481         * exp_dbug.ads: Update documentation to reflect simpler encoding for
29482         protected operations.
29483
29484         * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
29485         generated name, it complicates decoding in gdb and hinders debugging
29486         of protected operations.
29487         (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
29488         flag for the protected entry barrier function.
29489         (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
29490         flag for the protected entry function.
29491
29492 2004-11-18  Nicolas Setton  <setton@adacore.com>
29493
29494         * expect.c: Define __unix__ when __APPLE__ is defined.
29495
29496         * Makefile.in: Inform the value of the variable GMEM_LIB in the
29497         Darwin-specific section.
29498
29499         * lang-specs.h: Change the placement of the %1 marker.
29500         Works around the fact that gcc adds -fPIC by default under Darwin.
29501
29502 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
29503
29504         * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
29505         type of the object with the packed array type, set the Analyzed flag
29506         on the object if it is an entity or simple indexed component, to avoid
29507         spurious type errors.
29508
29509 2004-11-18  Gary Dismukes  <dismukes@adacore.com>
29510
29511         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
29512         gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
29513         separate line from the version message.
29514
29515 2004-11-18  Ed Falis  <falis@adacore.com>
29516
29517         * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
29518         vthreads.
29519         (init_float): Eliminate initialization of floating point status for
29520         AE653. The instructions have no effect for vThreads.
29521
29522 2004-11-18  Vincent Celier  <celier@adacore.com>
29523
29524         * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
29525         gnatbind is invoked with -shared.
29526
29527 2004-11-18  Jose Ruiz  <ruiz@adacore.com>
29528
29529         * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
29530         for Detect_Blocking which is redundant with the check done within the
29531         procedure Protected_Single_Entry_Call.
29532         (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
29533         Detect_Blocking which is redundant with the check done within the
29534         procedure Protected_Single_Entry_Call.
29535
29536 2004-11-18  Vincent Celier  <celier@adacore.com>
29537
29538         * makegpr.adb (Compile): Put the compiling switches (in package
29539         Compiler and on the command line) immediately after "-c", instead of
29540         at the end of the command line invocation of the compiler, when
29541         compiling a non-Ada file.
29542         (Build_Global_Archive): When there is no need to rebuild the archive,
29543         set Global_Archive_Exists, so that the archive is passed to the linker
29544         if one is needed.
29545
29546 2004-11-18  Robert Dewar  <dewar@adacore.com>
29547             Sergey Rybin  <rybin@adacore.com>
29548
29549         * gnat_ugn.texi:
29550         Remove extra paren check from list of checks for redundant constructs
29551         Add documentation of new -gnatyx style check (check extra parens)
29552         Remove paragraph about gnatelim debug options.
29553
29554         * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
29555         objects rather than forbidding dependencies on the package Ada.Streams.
29556
29557         * sinfo.ads: Add ??? note that we should document pragmas passed to
29558         back end.
29559
29560         * g-expect.ads: Fix a few typos in the comments.
29561
29562 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
29563
29564         * misc.c (gnat_handle_option): Use %< and %> for quoting in
29565         warning message.
29566
29567 2004-11-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
29568
29569         * a-numaux-x86.adb (Tan): Fix fdivp syntax.
29570
29571 2004-11-07  Andreas Schwab  <schwab@suse.de>
29572
29573         * Makefile.in (install-gnatlib): Remove spurious hyphen.
29574
29575 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
29576
29577         PR ada/18228
29578         * Makefile.in (darwin): Set soext to .dylib.
29579
29580 2004-10-26  Vincent Celier  <celier@gnat.com>
29581             Thomas Quinot   <quinot@act-europe.fr>
29582
29583         * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
29584         (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
29585         there is no use of GNAT.Sockets.Constants.
29586         Remove remaining pragma Import for C_Write
29587         Remove C_Read and C_Write from internal implementation unit
29588         GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
29589         the read and write functions from the system runtime library is fine
29590         on UNIX but won't work under Windows).
29591
29592         * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
29593         (Check_Selector): Use C_Recv instead of C_Read.
29594         Selectors are the GNAT.Sockets abstraction to perform a select()
29595         call on a set of descriptors. To allow abortion of an ongoing
29596         select operation, some data is written to a dedicated socket that
29597         is always monitored.
29598         Under Windows, the write and read library functions cannot operate
29599         on sockets, so we need to use send and recv instead, which is portable
29600         across all supported platforms.
29601
29602         * g-socthi.ads: Remove C_Read and C_Write from internal implementation
29603         unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
29604         (using the read and write functions from the system runtime library is
29605         fine on UNIX but won't work under Windows).
29606
29607 2004-10-26  Nicolas Setton  <setton@act-europe.fr>
29608
29609         * mlib-tgt-darwin.adb: New file.
29610
29611         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29612         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
29613         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
29614         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
29615         subprogram body.
29616
29617         * Makefile.in: Add support for building shared libraries under Darwin.
29618         (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
29619         the low level EH init subprogram to be called from __gnat_initialize.
29620
29621         * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
29622         indicates which options to pass to the archive indexer.
29623
29624         * mlib-utl.adb: Add support for calling ranlib with additional
29625         options. This is needed for instance under Mac OS X.
29626         (Ranlib_Options): New global variable, used to store the potential
29627         options to pass to ranlib.
29628         (Ar): Use Ranlib_Options when spawning ranlib.
29629         (Initialize): Set the value of ranlib option.
29630
29631 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
29632
29633         * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
29634         instead of 8K, to reflect the real potential needs for stack-checking
29635         in the ZCX case.
29636
29637 2004-10-26  Pascal Obry  <obry@gnat.com>
29638
29639         * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
29640
29641         * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
29642         Windows only the initial thread stack size can be set so it is good to
29643         start we a low stack size.
29644         The OS will adjust the size as needed.
29645
29646 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
29647             Nicolas Setton  <setton@act-europe.fr>
29648
29649         * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
29650         "__unix__" instead of "unix".
29651         The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
29652         sections were just mistakenly ignored. The former is
29653         implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
29654         Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
29655         of hpux. This prevents an unwanted definition of the symbol
29656         convert_addresses in adaint.o.
29657
29658 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
29659
29660         * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
29661         compatibility with type Unwind_Word on 16-bit targets such as AAMP.
29662
29663 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
29664
29665         * a-filico.ads, a-filico.adb: fix incorrect header.
29666
29667 2004-10-26  Javier Miranda  <miranda@gnat.com>
29668
29669         * a-ststio.ads: Fix typo in identifier
29670
29671 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
29672
29673         * sem_ch4.adb: Minor reformatting.
29674
29675 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29676
29677         * checks.adb (Expr_Known_Valid): If floating-point validity checks are
29678         enabled, check the result of unary and binary operations when the
29679         expression is the right-hand side of an assignment.
29680
29681 2004-10-26  Vincent Celier  <celier@gnat.com>
29682
29683         * clean.adb (Delete): Do not output warnings when in quiet output and
29684         not in verbose mode.
29685         (Force_Deletions): New Boolean flag, defaulted to False
29686         (Delete): Only delete a file if it is writable, and when
29687         Force_Deletions is True.
29688         (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
29689         (Usage): Line for new switch -f
29690         (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
29691         own.
29692
29693 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
29694
29695         * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
29696         JM type only if its size matches that of the wrapper.  When a size is
29697         prescribed and the field is not aliased, remove the wrapper of a JM
29698         type only if the size is not greater than that of the packed array.
29699         (gnat_to_gnu_entity): Change the extension of packed array wrappers
29700         from LJM to JM.
29701
29702 2004-10-26  Geert Bosch  <bosch@gnat.com>
29703
29704         * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
29705         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
29706         (Pred): Implement in terms of Succ.
29707
29708 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29709
29710         * exp_aggr.adb (Safe_Component): An aggregate component that is an
29711         unchecked conversion is safe for in-place use if the expression of the
29712         conversion is safe.
29713         (Expand_Array_Aggregate): An aggregate that initializes an allocator may
29714         be expandable in place even if the aggregate does not come from source.
29715         (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
29716         designated object of an allocator in place, rather than building it
29717         first on the stack. The previous scheme forces a full copy of the array,
29718         and may be altogether unsusable if the size of the array is too large
29719         for stack allocation.
29720
29721 2004-10-26  Robert Dewar  <dewar@gnat.com>
29722
29723         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
29724         compares if the component is atomic.
29725
29726         * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
29727         array assignment if the component type is atomic.
29728
29729 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29730             Eric Botcazou  <ebotcazou@act-europe.fr>
29731
29732         * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
29733         is aliased and is a by_reference type, do not pass by copy.
29734         (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
29735         detect whether the call is in the right side of an assignment or
29736         the expression of an object declaration.  Recurse on component
29737         association within aggregates.
29738         Call it in the condition that determines whether the temporary is
29739         necessary for correct stack-checking.
29740
29741 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
29742
29743         * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
29744         RACW_Type, used in the PolyORB version.
29745         Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
29746         version and the GARLIC version.
29747
29748         * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
29749         Rename RCI_Info to RCI_Locator for better consistency between the
29750         GARLIC and PolyORB versions of the distributed systems annex.
29751         (DSA_Implementation_Name): This enumeration lists the possible
29752         implementations of the Partition Communication Subsystem for the
29753         Distributed Systems Annex (DSA). The three available implementations
29754         are the dummy stub implementation (No_DSA), and two versions based on
29755         two different distribution runtime libraries: GARLIC and PolyORB. Both
29756         the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
29757         technology.
29758         Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
29759         that organization.
29760
29761         * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
29762         between the GARLIC and PolyORB versions of the distributed systems
29763         annex.
29764         Remove RE_Unbounded_Reclaim_Pool since it is unused.
29765
29766 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
29767
29768         * gnat1drv.adb: Suppress calling the back end when
29769         Frontend_Layout_On_Target is true.
29770
29771 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
29772
29773         * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
29774         Set_Read_Only): New subprograms.
29775         These new routines allow the user to set or unset the Owner execute
29776         and Owner write permission flags on a file.
29777
29778         * makegpr.adb, mlib.adb, mlib-prj.adb: Use
29779         GNAT.OS_Lib.Set_Executable instead of rolling our own.
29780
29781 2004-10-26  Matthew Gingell  <gingell@gnat.com>
29782
29783         * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
29784
29785 2004-10-26  Pascal Obry  <obry@gnat.com>
29786
29787         * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
29788         memory before the faulting page we properly test the process read
29789         access for this address using appropriate Win32 routine.
29790         (HPUX sections): guard with "__hpux__" instead of "hpux".
29791
29792 2004-10-26  Robert Dewar  <dewar@gnat.com>
29793
29794         * lib-xref.adb (Generate_Reference): Don't complain about reference to
29795         entry parameter if pragma Unreferenced set, since we do not properly
29796         handle the case of multiple parameters.
29797
29798 2004-10-26  Vincent Celier  <celier@gnat.com>
29799
29800         * prj-env.adb: (Contains_ALI_Files): New Boolean function
29801         (Ada_Objects_Path.Add): For a library project, add to the object path
29802         the library directory only if there is no object directory or if the
29803         library directory contains ALI files.
29804         (Set_Ada_Paths.Add.Recursive_Add): Ditto
29805
29806 2004-10-26  Vincent Celier  <celier@gnat.com>
29807
29808         * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
29809         extension of library projects.
29810
29811         * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
29812         path defaults to ".:<prefix>/lib/gnat".
29813         (Parse): For an extending all project, allow direct import of a project
29814         that is virtually extended.
29815
29816         * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
29817         the specified name is directly imported, return its ID. Otherwise, if
29818         an extension of this project is imported, return the ID of the
29819         extension.
29820
29821 2004-10-26  Robert Dewar  <dewar@gnat.com>
29822
29823         * s-arit64.adb: (Le3): New function, used by Scaled_Divide
29824         (Sub3): New procedure, used by Scaled_Divide
29825         (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
29826         correct more than one instance of failure to propagate carries
29827         correctly.
29828         (Double_Divide): Handle overflow case of largest negative number
29829         divided by minus one.
29830
29831         * s-arit64.ads (Double_Divide): Document that overflow can occur in
29832         the case of a quotient value out of range.
29833         Fix comments.
29834
29835 2004-10-26  Robert Dewar  <dewar@gnat.com>
29836
29837         * s-bitops.adb (Bit_Eq): Remove redundant check.
29838
29839         * s-bitops.ads: Minor comment updates
29840         Change some occurrences of Address to System.Address
29841
29842         * s-carsi8.ads: Fix minor cut-and-paste error in comments
29843
29844 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29845
29846         * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
29847         accessibility check to prefix that is a protected operation.
29848
29849 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29850
29851         * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
29852         empty, post message on stub.
29853
29854 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29855             Javier Miranda  <miranda@gnat.com>
29856
29857         * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
29858         current instance appears within a unit that is directly in the context
29859         of the main unit.
29860         Used to determine whether the body of the instance should be analyzed
29861         immediately after its spec, to make its subprogram bodies available
29862         for front-end inlining.
29863         (Analyze_Formal_Array_Type): Cleanup condition that checks that range
29864         constraint is not allowed on the component type (AARM 12.5.3(3))
29865
29866 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
29867
29868         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
29869         'Storage_Pool): enhance, document & limit detection of non-sharable
29870         internal pools.
29871
29872         * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
29873
29874         * s-pooglo.ads: Add more documentation now that this pool is properly
29875         documented.
29876
29877 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29878
29879         * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
29880         or protected type with discriminants, do not constrain the
29881         corresponding record type if the subtype declaration has no
29882         discriminant constraints. This can be the case in source code, or in
29883         the subtype declaration created to rename an actual type within an
29884         instantiation.
29885
29886 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29887
29888         * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
29889         different kind of stub (possibly wrong name for file), do not check
29890         for conformance.
29891         (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
29892         includes call to some function that returns an unconstrained type, do
29893         not inline.
29894
29895 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29896
29897         * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
29898         appear in the code for the main unit. Dependencies among units in the
29899         context of the main unit are established when those other units are
29900         compiled. Otherwise spurious elaboration constraints can generate
29901         incorrect elaboration circularities.
29902
29903 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
29904             Ed Schonberg   <schonberg@gnat.com>
29905
29906         * sem_util.adb (Is_Aliased_View): Defend against the case where this
29907         subprogram is called with a parameter that is not an object name. This
29908         situation arises for some cases of illegal code, which is diagnosed
29909         later, and in this case it is wrong to call Is_Aliased, as that might
29910         cause a compiler crash.
29911         (Explain_Limited_Type): Refine previous fix to include
29912         inherited components of derived types, to provide complete information.
29913
29914         * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
29915         is the prival for a protected object.
29916         It is necessary to mark this entity as a variable, in addition to
29917         flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
29918         modified to avoid checking the Aliased flag on entities that are not
29919         objects. (Checking that flag for non-objects is erroneous and could
29920         lead to a compiler crash).
29921
29922 2004-10-26  Robert Dewar  <dewar@gnat.com>
29923
29924         * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
29925         X_Frac = 0.5, then we know that the number X must be positive.
29926         (Succ): Remove the same redundant test, and also fix the primary test
29927         to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
29928         Minor reformatting
29929         (Decompose): Add fuller comments to spec
29930
29931 2004-10-26  Pascal Obry  <obry@gnat.com>
29932
29933         * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
29934         validity (process must have read access). Set to 0 in all other cases.
29935         (STOP_FRAME): Now check for ptr validity to avoid a segmentation
29936         violation on Win32.
29937         (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
29938         segmentation violation.
29939
29940 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
29941
29942         * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
29943         whose type is a constructed subtype of an aliased object with an
29944         unconstrained nominal subtype, convert the actual to the constructed
29945         subtype before taking its address.
29946
29947 2004-10-26  Vincent Celier  <celier@gnat.com>
29948
29949         * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
29950         (Is_Path_Name_Case_Sensitive): New function
29951
29952         * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
29953         (Base_Name, Simple_Name, Current_Directory, Compose,
29954         Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
29955         the result.
29956
29957 2004-10-26  Cyrille Comar    <comar@act-europe.fr>
29958             Vasiliy Fofanov  <fofanov@act-europe.fr>
29959             Vincent Celier   <celier@gnat.com>
29960
29961         * gnat_ugn.texi: Generalize "finding memory problems" section into a
29962         "memory management issues" section and document some of the useful
29963         memory pools provided as part of the GNAT library.
29964         Remove "virtual" from declaration of A::method2 in
29965         the simple example of Ada/C++ mixed system.
29966         Library Projects may be virtually extended: their virtual extensions
29967         are not Library Projects.
29968         Added section on extending project hierarchies.
29969
29970 2004-10-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
29971
29972         * adaint.c (__gnat_get_libraries_from_registry): Cast value
29973         to LPBYTE.
29974         (__gnat_portable_spawn): Remove const.
29975
29976         * mingw32.h (MAXPATHLEN): Check for previous definition.
29977
29978 2004-10-17  Matthias Klose  <doko@debian.org>
29979
29980         * gnatvsn.ads: Set gnat library version to 4.0.
29981
29982 2004-10-05  Vincent Celier  <celier@gnat.com>
29983
29984         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
29985
29986 2004-10-04  Laurent Guerby  <laurent@guerby.net>
29987
29988         PR ada/15156
29989         * Makefile.in: Define and use RANLIB_FLAGS.
29990
29991 2004-10-04  Pascal Obry  <obry@gnat.com>
29992
29993         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
29994         other x86 platforms).
29995
29996 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
29997
29998         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
29999         in general and triggers stack alignment adjustment for thread entry
30000         points on targets where this is necessary.
30001
30002 2004-10-04  Bernard Banner  <banner@gnat.com>
30003
30004         PR ada/13897
30005         * Makefile.in: Add section for powerpc linux
30006         Add variant i-vxwork-x86.ads
30007
30008         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
30009
30010 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
30011
30012         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
30013         table registration calls when need be. Ensures no reference to the crt
30014         ctors symbol are issued in the SJLJ case, which avoids possible
30015         undefined symbol errors in the case of modules to be statically linked
30016         with the kernel.
30017
30018 2004-10-04  Javier Miranda  <miranda@gnat.com>
30019
30020         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
30021         in-line the code corresponding to subprogram Analyze_Actuals. In
30022         addition, analyze the actuals only in case of subprogram call.
30023
30024 2004-10-04  Ed Falis  <falis@gnat.com>
30025
30026         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
30027
30028 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
30029
30030         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
30031         in the documentation.
30032
30033 2004-10-04  Robert Dewar  <dewar@gnat.com>
30034
30035         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
30036         IF and CASE.
30037         (Analyze_Block_Statement): Add circuitry to detect following dead code
30038         (Check_Unreachable_Code): Handle case of block exit
30039
30040 2004-10-04  Robert Dewar  <dewar@gnat.com>
30041
30042         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
30043         (XMatchD): Avoid warning for Logic_Error call
30044
30045 2004-10-04  Robert Dewar  <dewar@gnat.com>
30046
30047         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
30048         consider expressions buried within a procedure actual to be an actual.
30049         This caused some blowups with uses of packed slices within a procedure
30050         actual.
30051
30052 2004-10-04  Robert Dewar  <dewar@gnat.com>
30053
30054         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
30055         longer need to be initialized to zero.
30056         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
30057         initialized to zero.
30058
30059         * checks.adb (Expr_Known_Valid): Packed arrays are now always
30060         considered valid, even if the representation is modular. That's correct
30061         now that we no longer initialize packed modular arrays to zero.
30062
30063         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
30064         suffixes. These are now documented as the only cases in which the
30065         debugger ignores outer records.
30066         Previously, the spec allowed arbitrary suffixes for this purpose.
30067         Change name of LJM to JM for packed array pad records
30068         Create separate section on packed array handling, and add a whole new
30069         set of comments to this section describing the situation with packed
30070         modular types and justification requirements depending on endianness.
30071
30072 2004-10-04  Robert Dewar  <dewar@gnat.com>
30073
30074         * a-except.adb: Add a comment for last change
30075
30076         * einfo.ads: Minor spelling correction in comment
30077
30078         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
30079
30080         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
30081         messages.
30082
30083         * sem_util.ads: Minor comment update
30084
30085 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30086
30087         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
30088         Inline_Always when in Configurable_Run_Time mode.
30089
30090         * sem_prag.adb (Process_Convention): If entity is an inherited
30091         subprogram, apply convention to parent subprogram if in same scope.
30092         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
30093         when in Configurable_Run_Time mode.
30094
30095 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30096
30097         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
30098         class_wide type after component list has been inherited.
30099
30100 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30101
30102         * sem_ch12.adb (Check_Generic_Actuals): New predicate
30103         Denotes_Previous_Actual, to handle properly the case of a private
30104         actual that is also the component type of a subsequent array actual.
30105         The visibility status of the first actual is not affected when the
30106         second is installed.
30107         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
30108         make fully recursive the treatment of formals of packages declared
30109         with a box.
30110         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
30111         the above on exit from an instantiation.
30112         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
30113         current instantiation which is now complete.
30114         (Analyze_Package_Instantiation): No instantiated body is needed if the
30115         main unit is generic. Efficient, and avoid anomalies when a instance
30116         appears in a package accessed through rtsfind.
30117
30118 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30119
30120         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
30121         do not generate a declaration for a temporary if the call is part of a
30122         library-level instantiation.
30123
30124 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
30125
30126         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
30127         searching for a limited component to flag.
30128
30129         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
30130         expansion of Input, to account for the fact that the implicit call
30131         generated by the attribute reference must freeze the user-defined
30132         stream subprogram. This is only relevant to 'Input, because it can
30133         appear in an object declaration, prior to the body of the subprogram.
30134
30135         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
30136         expansion can proceed and further errors uncovered.
30137         (Minor clean up): Fix cases of using | instead of \ for continuation
30138         messages.
30139
30140 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30141
30142         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
30143
30144         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
30145         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
30146         Use gcc_assert and gcc_unreachable.
30147
30148         * decl.c (gnat_to_gnu_entity, case object): Check and process a
30149         specified alignment before validating size.
30150         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
30151         stripped-down declaration for the type of the inner field when making
30152         a JM type.
30153
30154         * utils.c (finish_record_type): Do not compute the size in units
30155         incrementally. Instead compute it once for the rep clause case.
30156         Use gcc_assert and gcc_unreachable.
30157
30158 2004-10-04  Vincent Celier  <celier@gnat.com>
30159
30160         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
30161         in file name.
30162         (Is_Valid_Path_Name): Take '/' as a directory separator.
30163
30164 2004-10-04  Vincent Celier  <celier@gnat.com>
30165
30166         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
30167         (Extended_Project) only if Extended_Project is defined, to avoid
30168         assertion error.
30169         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
30170         resolved path.
30171         (Parse_Single_Project): Ditto.
30172
30173         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
30174         Add_To_Project_Path for virtual projects.
30175
30176 2004-10-04  Vincent Celier  <celier@gnat.com>
30177
30178         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30179         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
30180         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
30181         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
30182         parameter Options_2.
30183
30184         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
30185         Build_Dynamic_Library with an empty Options_2.
30186
30187         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
30188         default anymore.
30189
30190         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
30191         directory separator, if any.
30192         (Gprmake): Do not allow mains on the command line for library projects.
30193         Do not attempt to link when the project is a library project.
30194         (Library_Opts): New table to store Library_Options.
30195         (Build_Library): If Library_Options is specified, pass these options
30196         when building a shared library.
30197
30198 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
30199
30200         * s-tposen.adb (Service_Entry): The object must be always unlocked at
30201         the end of this procedure now that the unlock operation was inserted
30202         by the expander.
30203
30204 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
30205
30206         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
30207         corresponding to the Preallocated_Stacks flags in System.
30208         (Get_Target_Parameters): Including the processing for
30209         Preallocated_Stacks.
30210
30211         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
30212         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
30213         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
30214         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
30215         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
30216         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
30217         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
30218         system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
30219         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
30220         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
30221         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
30222         used to signal whether the compiler creates the required stacks and
30223         descriptors for the different tasks (when True) or it is done by the
30224         underlying operating system at run time (when False).
30225         It is initially set to False in all targets.
30226
30227         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
30228         if it is supported by the target.
30229         (Make_Task_Create_Call): Pass the stack address if it has been
30230         previously created. Otherwise pass a Null_Address.
30231
30232         * snames.adb: Add _stack.
30233
30234         * snames.ads: Add Name_uStack. Required to allow the expander to
30235         statically allocated task stacks.
30236
30237         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
30238         Stack_Address argument.
30239         Check that its value is equal to Null_Address because this target does
30240         not support the static stack allocation.
30241
30242 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
30243
30244         * usage.adb: Change "pragma inline" to "pragma Inline" in information
30245         and error messages
30246
30247 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
30248
30249         * exp_dist.adb: Split declaration of asynchronous flag out of
30250         Add_RACW_Read_Attribute.
30251         Minor reformatting for better alignment with PolyORB version.
30252         Store the entity for the asynchronous flag of an RACW, rather than the
30253         expression, in the asynchronous flags table. This will allow this flag
30254         to be used in other subprograms beside Add_RACW_Read_Attribute.
30255
30256 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
30257
30258         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
30259         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
30260         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
30261         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
30262         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
30263         sockets constant MSG_NOSIGNAL (Linux-specific).
30264         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
30265         all Send operations.
30266         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
30267         from trigerring SIGPIPE.
30268         Rename components to avoid clash with Ada 2005 possible reserved
30269         word 'interface'.
30270         (Check_Selector): When the select system call returns with an error
30271         condition, propagate Socket_Error to the caller.
30272
30273 2004-10-01  Jan Hubicka  <jh@suse.cz>
30274
30275         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
30276
30277 2004-09-23  Robert Dewar  <dewar@gnat.com>
30278
30279         PR ada/17540
30280         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
30281         instead do this at freeze time (we won't do it if there is an address
30282         clause).
30283         Change "pragma inline" to "pragma Inline" in information and error
30284         messages.
30285         Minor reformatting.
30286
30287         * freeze.adb (Check_Address_Clause): Remove previous change, not the
30288         right way of doing things after all.
30289         (Freeze_Entity): For object, set Is_Public for imported entities
30290         unless there is an address clause present.
30291
30292 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
30293
30294         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
30295         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
30296         ensures proper handling of types with rep clauses, which might have
30297         their TYPE_SIZE set already.
30298
30299 2004-09-21  Robert Dewar  <dewar@gnat.com>
30300
30301         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
30302         packed array types in both little- and big-endian cases. This change
30303         ensures that we no longer count on the unused bits being initialized
30304         for such types (and in particular ensures that equality testing will
30305         only read the relevant bits).
30306         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
30307         These changes mean that we no longer need to initialize small packed
30308         arrays.
30309         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
30310         optimization to an LJM field as to its parent field.
30311
30312         * ada-tree.h, trans.c, utils.c, utils2.c:
30313         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
30314
30315 2004-09-20  Jan Hubicka  <jh@suse.cz>
30316
30317         * utils.c (gnat_finalize): Remove.
30318         (end_subprog_body): Directly call cgraph_finalize_function;
30319         do not lower the nested functions.
30320
30321 2004-09-20  Robert Dewar  <dewar@gnat.com>
30322
30323         PR ada/17540
30324         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
30325         if an address clause is present, since that means that the Import
30326         should be ignored.
30327
30328 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
30329
30330         * 5tsystem.ads: Removed, no longer used.
30331
30332 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
30333             Zack Weinberg  <zack@codesourcery.com>
30334
30335         * ada-tree.def: Use tree_code_class enumeration constants
30336         instead of code letters.
30337         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
30338         Update for new tree-class enumeration constants.
30339
30340 2004-09-17  Vincent Celier  <celier@gnat.com>
30341
30342         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
30343         capabilities of the general project manager.
30344
30345 2004-09-09  Vincent Celier  <celier@gnat.com>
30346
30347         * a-direct.ads: Add pragma Ada_05
30348         (Directory_Entry_Type): Give default value to component Kind to avoid
30349         not initialized warnings.
30350
30351         * a-direct.adb (Current_Directory): Remove directory separator at the
30352         end.
30353         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
30354         an existing directory.
30355         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
30356         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
30357         Convert the result to File_Size.
30358
30359         * prj.ads: (Project_Error): New exception
30360
30361         * prj-attr.adb: Except in procedure Initialize, Fail comes from
30362         Prj.Com, not from Osint.
30363         (Attrs, Package_Attributes): Tables moved to private part of spec
30364         (Add_Attribute, Add_Unknown_Package): Moved to new child package
30365         Prj.Attr.PM.
30366         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
30367         Prj.Project_Error after call to Fail.
30368         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
30369         Fail. Check that package name is not already in use.
30370
30371         * prj-attr.ads: Comment updates to indicate that all subprograms may be
30372         used by tools, not only by the project manager, and to indicate that
30373         exception Prj.Prj_Error may be raised in case of problem.
30374         (Add_Unknown_Package, Add_Attribute): Moved to new child package
30375         Prj.Attr.PM.
30376         (Attrs, Package_Attributes): Table instantiations moved from the body to
30377         the private part to be accessible from Prj.Attr.PM body.
30378
30379         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
30380         from new package Prj.Attr.PM.
30381         (Parse_Attribute_Declaration): Call Add_Attribute from new package
30382         Prj.Attr.PM.
30383
30384         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
30385
30386         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
30387         instead of Elaboration_Checks).
30388
30389         * a-calend.adb: Minor reformatting
30390
30391 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30392
30393         * gigi.h (maybe_pad_type): New declaration.
30394         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
30395
30396         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
30397
30398         * cuintp.c: Convert to use buildN.
30399
30400         * decl.c (maybe_pad_type): No longer static.
30401         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
30402         target pointer.
30403         Convert to use buildN.
30404
30405         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
30406         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
30407         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
30408         RHS.
30409         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
30410         (gnat_gimplify_expr, case ADDR_EXPR): New case.
30411         Convert to use buildN.
30412
30413         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
30414         TREE_READONLY for const.
30415         Convert to use buildN.
30416
30417         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
30418         (create_var_decl): Refine when TREE_STATIC is set.
30419         Convert to use buildN.
30420
30421 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
30422
30423         * gnat_ugn.texi: Delete text relating to checking of ali and object
30424         consistency.
30425
30426         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
30427         routines.
30428
30429 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
30430
30431         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
30432         pragmas recognized by GNAT.
30433
30434         * gnat_rm.texi: Document pragma Detect_Blocking.
30435
30436         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
30437         raise Program_Error if called from a protected operation.
30438
30439         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
30440         the protected action nesting level.
30441         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
30442         protected action nesting level.
30443         (Unlock): When pragma Detect_Blocking is active decrease the protected
30444         action nesting level.
30445
30446         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
30447         Protected_Action_Nesting.
30448
30449         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
30450         Common_ATCB record. It contains the dynamic level of protected action
30451         nesting for each task. It is needed for checking whether potentially
30452         blocking operations are called from protected operations.
30453         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
30454         Detect_Blocking is active or not in the partition.
30455
30456         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
30457         raise Program_Error if called from a protected operation.
30458         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
30459         Program_Error if called from a protected operation.
30460         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
30461         Program_Error if called from a protected operation.
30462
30463         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
30464         raise Program_Error if called from a protected operation.
30465
30466         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
30467         raise Program_Error if called from a protected operation, and increase
30468         the protected action nesting level.
30469         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
30470         Program_Error if called from a protected operation, and increase the
30471         protected action nesting level.
30472         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
30473         protected action nesting level.
30474
30475         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
30476         raise Program_Error if called from a protected operation, and increase
30477         the protected action nesting level.
30478         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
30479         Program_Error if called from a protected operation, and increase the
30480         protected action nesting level.
30481         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
30482         raise Program_Error if called from a protected operation.
30483         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
30484         active, raise Program_Error if called from a protected operation.
30485         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
30486         protected action nesting level.
30487
30488         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
30489         insertion of the statement raising Program_Error. The run time
30490         contains the required machinery for handling that.
30491
30492         * sem_util.ads: Change comment associated to procedure
30493         Check_Potentially_Blocking_Operation.
30494         This procedure does not insert a call for raising the exception because
30495         that is currently done by the run time.
30496
30497         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
30498
30499         * init.c: Add the global variable __gl_detect_blocking that indicates
30500         whether pragma Detect_Blocking is active (1) or not (0). Needed for
30501         making the pragma available at run time.
30502         (__gnat_set_globals): Pass and update the detect_blocking parameter.
30503
30504         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
30505         pragma Detect_Blocking is active.
30506
30507         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
30508
30509         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
30510         DB is found in the ali file. Any unit compiled with pragma
30511         Detect_Blocking active forces its effect in the whole partition.
30512
30513         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
30514         Detect_Blocking is active and delay is called from a protected
30515         operation.
30516
30517         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
30518         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
30519         Detect_Blocking is active (0 otherwise).
30520         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
30521         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
30522         otherwise).
30523
30524 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
30525
30526         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
30527         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
30528         package.
30529
30530         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
30531         (Register_Receiving_Stub): Add Subp_Info formal parameter.
30532         Update API in placeholder implemetation of s-parint to reflect changes
30533         in distribution runtime library.
30534
30535         * sem_ch3.adb (Expand_Derived_Record): Rename to
30536         Expand_Record_Extension.
30537
30538         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
30539         primitive operations of potentially distributed object types that have
30540         non-controlling anonymous access formals.
30541
30542         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
30543         subprogram.
30544         New implementation of expansion for remote access-to-subprogram types,
30545         based on the RACW infrastructure.
30546         This version of sem_dist is compatible with PolyORB/DSA as well as
30547         GLADE.
30548
30549         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
30550         Asynchrronous that applies to a remote access-to-subprogram type, mark
30551         the underlying RACW type as asynchronous.
30552
30553         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
30554          __gnat_using_gnu_linker to 1.
30555
30556         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
30557         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
30558         GNAT.Perfect_Hash_Generators, and remove the empty
30559         GNAT.Perfect_Hash package.
30560
30561         * atree.adb: Minor reformatting
30562
30563         * exp_ch3.adb (Expand_Derived_Record): Rename to
30564         Expand_Record_Extension.
30565         (Build_Record_Init_Proc.Build_Assignment): The default expression in
30566         a component declaration must remain attached at that point in the
30567         tree so New_Copy_Tree copies it if the enclosing record type is derived.
30568         It is therefore necessary to take a copy of the expression when building
30569         the corresponding assignment statement in the init proc.
30570         As a side effect, in the case of a derived record type, we now see the
30571         original expression, without any rewriting that could have occurred
30572         during expansion of the ancestor type's init proc, and we do not need
30573         to go back to Original_Node.
30574
30575         * exp_ch3.ads (Expand_Derived_Record): Rename to
30576         Expand_Record_Extension.
30577
30578         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
30579         Returns the RACW type used to implement a remote access-to-subprogram
30580         type.
30581         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
30582         New subprograms. Used to create a proxy tagged object for a remote
30583         subprogram. The proxy object is used as the designated object
30584         for RAS values on the same partition (unless All_Calls_Remote applies).
30585         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
30586         System.Partition_Interface.Get_Unique_Remote_Pointer.
30587         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
30588         Renamed from Add_RAS_*_Attribute.
30589         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
30590         subprograms.
30591         New implementation of expansion for remote access-to-subprogram types,
30592         based on the RACW infrastructure.
30593
30594         * exp_dist.ads (Copy_Specification): Update comment to note that this
30595         function can copy the specification from either a subprogram
30596         specification or an access-to-subprogram type definition.
30597
30598 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
30599
30600         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
30601         in an instance, between an explicit subprogram an one inherited from a
30602         type derived from an actual.
30603
30604         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
30605         add a polling call if the subprogram is to be inlined by the back-end,
30606         to avoid repeated calls with multiple inlinings.
30607
30608         * checks.adb (Apply_Alignment_Check): If the expression in the address
30609         clause is a call whose name is not a static entity (e.g. a dispatching
30610         call), treat as dynamic.
30611
30612 2004-09-09  Robert Dewar  <dewar@gnat.com>
30613
30614         * g-trasym.ads: Minor reformatting
30615
30616         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
30617         packed arrays, since unused bits are expected to be zero for a
30618         comparison.
30619
30620 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
30621
30622         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
30623         comment.
30624
30625 2004-09-09  Pascal Obry  <obry@gnat.com>
30626
30627         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
30628         enable map file generation. Add the right option to generate the map
30629         file if Map_File is set to True.
30630
30631         * gnatdll.adb (Gen_Map_File): New variable.
30632         (Syntax): Add info about new -m (Map_File) option.
30633         (Parse_Command_Line): Add support for -m option.
30634         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
30635         Minor reformatting.
30636
30637 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
30638
30639         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
30640         new gnatdist implementation.
30641         Define a subpackage isolating the output routines specific to this
30642         verbose mode.
30643
30644 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
30645
30646         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
30647
30648         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
30649
30650 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
30651
30652         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
30653         internal unit.
30654
30655         * opt.ads: Add Ada_Version_Runtime constant used to decide which
30656         version of the language is used to compile the run time.
30657
30658 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
30659
30660         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
30661         of variable length temporaries for function return now that the
30662         back-end and gigi support it.
30663
30664 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30665
30666         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
30667
30668         * trans.c (struct stmt_group): Delete field GLOBAL.
30669         (gnat_init_stmt_group): Do not initialize it.
30670         (call_to_gnu): Use save_expr, not protect_multiple_eval.
30671         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
30672         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
30673         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
30674         (start_stmt_group): Likewise.
30675         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
30676
30677         * utils2.c (ggc.h): Include.
30678         (build_call_raise): Call build_int_cst, not build_int_2.
30679
30680         * utils.c (gnat_init_decl_processing): Fix arg to
30681         build_common_tree_nodes.
30682         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
30683         (gnat_define_builtin): Set built_in_decls.
30684         (init_gigi_decls): Call build_int_cst, not build_int_2.
30685
30686         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
30687         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
30688         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
30689         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
30690         SET_TYPE_MODULE): Use them.
30691         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
30692         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
30693         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
30694         SET_TYPE_ADA_SIZE): Likewise.
30695         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
30696         (DECL_CONST_CORRESPONDING_VAR,
30697         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
30698         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
30699         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
30700         (TYPE_RM_SIZE_NUM): New macro.
30701         (TYPE_RM_SIZE): Modified to use above.
30702
30703         * cuintp.c: (build_cst_from_int): New function.
30704         (UI_To_gnu): Use it.
30705
30706         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
30707         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
30708         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
30709         MIN_EXPR for the size, copy it into new.
30710
30711 2004-09-01  Robert Dewar  <dewar@gnat.com>
30712
30713         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
30714         packed indexed component where array is an IN OUT formal. This
30715         generated garbage code previously.
30716
30717         * gnat_ugn.texi: Document -fverbose-asm
30718
30719         * gnat-style.texi: Minor updates (note that boolean constants and
30720         variables are joined with AND/OR rather than short circuit forms).
30721
30722 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
30723
30724         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
30725         it is an upward conversion of an untagged type with no representation
30726         change.
30727
30728 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
30729
30730         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
30731         System.Partition_Interface.
30732
30733         * checks.adb (Apply_Access_Checks): Do not generate checks when
30734         expander is not active (but check for unset reference to prefix of
30735         dereference).
30736
30737         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
30738         pragma Debug as an if statement with a constant condition, for
30739         consistent treatment of entity references contained within the
30740         enclosed procedure call.
30741
30742 2004-09-01  Vincent Celier  <celier@gnat.com>
30743
30744         * bindgen.adb: (Set_EA_Last): New procedure
30745         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
30746         Set_EA_Last.
30747         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
30748         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
30749         linked without errors.
30750         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
30751         ST and EA.
30752         (Gen_Exception_Table_C): Correct same bugs
30753
30754         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
30755
30756         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
30757         on Windows, make sure that the drive letter is in upper case.
30758
30759         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
30760         Windows, when the drive letter is added and Case_Sensitive is True, the
30761         drive letter is forced to upper case.
30762
30763         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
30764         to Options_2 for the call to MLib.Utl.Gcc.
30765
30766         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
30767         directory separator when defining BASE_DIR.
30768
30769 2004-09-01  Pascal Obry  <obry@gnat.com>
30770
30771         * gprcmd.adb (Extend): Do not output trailing directory separator. This
30772         is not needed and it confuses Windows GNU/make which does not report
30773         directory terminated by a slash as a directory.
30774         (gprcmd): Idem for "pwd" internal command.
30775
30776         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
30777         target names rewrite to fix regressions with recent version of
30778         GNU/make. Starting with GNU/make 3.80 the pipe character was not
30779         handled properly anymore.
30780
30781 2004-09-01  Andreas Schwab  <schwab@suse.de>
30782
30783         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
30784         * raise.c [!IN_RTS]: Undef abort.
30785
30786 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
30787
30788         * utils2.c (build_allocator): Use ssize_int.
30789
30790         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
30791
30792 2004-08-27  Andreas Schwab  <schwab@suse.de>
30793
30794         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
30795
30796 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
30797             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30798
30799         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
30800
30801 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
30802
30803         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
30804         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
30805         * utils.c (init_gigi_decls): Likewise.
30806         * utils2.c (build_call_raise, build_allocator): Likewise.
30807
30808 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
30809
30810         * utils.c (gnat_init_decl_processing): Adjust
30811         build_common_tree_nodes call.
30812
30813 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
30814
30815         * utils2.c (build_allocator): Use build_int_cst for negative
30816         size types.
30817
30818 2004-08-18  Richard Henderson  <rth@redhat.com>
30819
30820         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
30821
30822 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
30823
30824         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
30825         call.s
30826         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
30827         (gnat_to_gnu): Likewise.
30828
30829 2004-08-16  Pascal Obry  <obry@gnat.com>
30830
30831         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
30832         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
30833         option and not mdll anymore. Update comment.
30834
30835 2004-08-16  Pascal Obry  <obry@gnat.com>
30836
30837         * bld.adb (Put_Include_Project): Properly handle directory separators
30838         on Windows.
30839
30840 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
30841
30842         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
30843         decreasing the number of allocated junk nodes while searching for the
30844         appropriate subprogram.
30845
30846 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
30847
30848         * cuintp.c (UI_To_gnu): Use build_int_cst..
30849         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
30850         * utils.c (init_gigi_decls): Likewise.
30851         * utils2.c (build_call_raise): Likewise.
30852
30853 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
30854
30855         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
30856         for a global aliased object with a variable size and an unconstrained
30857         nominal subtype, pretend there is no initializer if the one we have is
30858         incomplete, and avoid referencing an inexistant component in there. The
30859         part we have will be rebuilt anyway and the reference may confuse
30860         further operations.
30861
30862 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
30863
30864         * einfo.ads: Minor reformatting
30865
30866         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
30867         restrictions in the ALI if we only want to warn about violations.
30868
30869 2004-08-13  Vincent Celier  <celier@gnat.com>
30870
30871         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
30872         when creating a new Unit_Record in table Units.
30873
30874         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
30875         that are violated, if any.
30876
30877         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
30878         add directory separator if path already ends with a directory separator.
30879
30880 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
30881
30882         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
30883         unit, this is an attempt to inline a construct that is not available in
30884         the current restricted mode, so abort rather than trying to continue.
30885
30886         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
30887         discriminants that rename those of the parent, recover names of
30888         original discriminants for the constraint on the full view of the
30889         parent.
30890         (Complete_Private_Subtype): Do not create a subtype declaration if the
30891         subtype is an itype.
30892
30893         * gnat_rm.texi: Added section on implementation of discriminated
30894         records with default values for discriminants.
30895
30896 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
30897
30898         PR ada/15601
30899         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
30900         the second operand is overloaded.
30901
30902 2004-08-10  Richard Henderson  <rth@redhat.com>
30903
30904         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
30905         add __builtin_alloca.
30906
30907 2004-08-10  Richard Henderson  <rth@redhat.com>
30908
30909         * config-lang.in (boot_language): Yes.
30910
30911 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
30912
30913         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
30914         from complaining on potential uninitialized reference.
30915         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
30916         new specification and test explicitly for non-zero return value.
30917
30918         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
30919         returning C.int, to avoid using a derived boolean type.
30920
30921         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
30922         Duplicate_Subexpr_No_Checks in preference to direct use of
30923         Remove_Side_Effects and New_Copy_Tree.
30924         Clear Comes_From_Source on prefix of 'Size attribute reference.
30925
30926         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
30927         g-socthi-vxworks.adb: Change calls to
30928         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
30929         and test explicitly for non-zero return value.
30930
30931         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
30932         (Is_Socket_In_Set): Declare imported function as returning C.int, to
30933         avoid using a derived boolean type.
30934
30935 2004-08-09  Albert Lee  <lee@gnat.com>
30936
30937         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
30938
30939 2004-08-09  Pascal Obry  <obry@gnat.com>
30940
30941         * gnat_ugn.texi: Document new way to build DLLs on Windows using
30942         GCC's -shared option.
30943
30944         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
30945         Options_2 parameter (options put after object files).
30946
30947 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
30948
30949         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
30950         ignore overflows on low and high bounds of an index to also account for
30951         differences in signedness between sizetype and gnu_index_subtype.
30952         These are as legitimate as the ones caused by a lower TYPE_PRECISION
30953         on sizetype.
30954
30955 2004-08-09  Robert Dewar  <dewar@gnat.com>
30956
30957         * s-solita.ads, s-solita.adb: Minor reformatting
30958
30959         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
30960         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
30961         obsolescent section
30962         Add note that No_Implicit_Conditionals does not suppress
30963         run time constraint checks.
30964
30965         * vms_conv.ads: Minor reformatting
30966
30967         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
30968         and necessary for following change).
30969         (Mark): Return new format Mark_Id containing sec stack address
30970         (Release): Use sec stack address from Mark_Id avoiding Self call
30971
30972         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
30973         pointer (cleanup and necessary for following change).
30974         Define Mark_Id as record containing address of secondary stack, that way
30975         Release does not need to find the stack again, decreasing the number of
30976         calls to Self and improving efficiency.
30977
30978         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
30979
30980         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
30981         case variable into the individual case branches when possible.
30982
30983         * sem_ch11.adb: Minor reformatting
30984
30985         * prj.ads: Correct spelling of suffixs
30986
30987         * prj-nmsc.adb: Minor reformatting
30988         Correct spelling suffixs throughout (also in identifiers)
30989
30990         * freeze.adb: Minor spelling correction
30991
30992         * exp_ch2.adb: Cleanups to handling of Current_Value
30993         (no functional effect).
30994
30995         * bld.adb: Correct spelling of suffixs
30996
30997         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
30998
30999 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
31000
31001         PR ada/15408
31002         * sem_ch7.adb (Install_Private_Declarations): In the body of the
31003         package or of a child, private entities are both immediately_visible
31004         and not hidden.
31005
31006 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
31007
31008         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
31009         there are no range checks on the value of the literal.
31010
31011         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
31012         wrapped is the triggering alternative of an asynchronous select, action
31013         statements mustbe inserted before the select itself.
31014
31015         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
31016         case where the prefix is a protected function call.
31017         (Resolve_Attribute, case 'Access): The attribute reference on a
31018         subprogram is legal in a generic body if the subprogram is declared
31019         elsewhere.
31020
31021 2004-08-09  Vincent Celier  <celier@gnat.com>
31022
31023         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
31024         languages, otherwise building the library may fail with unresolved
31025         symbols.
31026         (Compile_Sources): Do not build libraries if -c switch is used
31027
31028         * gnatlink.adb (Process_Args): New switches -M and -Mmap
31029         (Write_Usage): If map file creation is supported, output new switches
31030         -M and -Mmap.
31031         (Gnatlink): When -M is specified, add the necessary switch(es) to the
31032         gcc call, when supported.
31033
31034         * Makefile.in: Added indepsw.o to the object list for gnatlink
31035         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
31036
31037         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
31038         indepsw.adb, indepsw.ads: New files.
31039
31040 2004-08-09  Bernard Banner  <banner@gnat.com>
31041
31042         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
31043
31044         * Makefile.in: add section for vxworks x86
31045
31046 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
31047
31048         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
31049         per-object constrained components where the discriminant is of an
31050         Access type.
31051         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
31052         the parent initialization procedure for derived Unchecked_Unions.
31053         Instead, derived Unchecked_Unions build their own initialization
31054         procedure.
31055         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
31056         Check the body of the subprogram for details.
31057         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
31058         functions for derived Unchecked_Union types by introducing a condition.
31059         Allow the creation of TSS equality functions for Unchecked_Unions.
31060         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
31061         Add formal parameter Discr to function signature. Discr is used to
31062         control the generated case statement for Unchecked_Union types.
31063         (Make_Eq_If): Rename formal parameter Node to E in function signature.
31064
31065         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
31066         Unchecked_Unions.
31067         Check the body of the subprogram for details.
31068         (Expand_Composite_Equality): Augment composite type equality to include
31069         correct handling of Unchecked_Union components.
31070         (Expand_N_In): Add condition to detect illegal membership tests when the
31071         subtype mark is a constrained Unchecked_Union and the expression lacks
31072         inferable discriminants, and build a Raise_Program_Error node.
31073         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
31074         to detect types that contain components of unconstrained Unchecked_Union
31075         subtype. Add condition to detect equality between types that have an
31076         unconstrained Unchecked_Union component, and build a Raise_Program_Error
31077         node. Add condition to detect equality between Unchecked_Union types
31078         that lack inferable discriminants, and build a Raise_Program_Error node.
31079         Otherwise build a TSS equality function call.
31080         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
31081         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
31082         with the operand lacking inferable discriminants, and build a Raise_
31083         Program_Error node.
31084         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
31085         composite equality.
31086         (Has_Inferable_Discriminants): Implement new predicate for objects and
31087         expressions of Unchecked_Union type. Check the body of subprogram for
31088         details.
31089         (Has_Unconstrained_UU_Components): Add function
31090         Component_Is_Unconstrained_UU. It is used to detect whether a single
31091         component is of an unconstrained Unchecked_Union subtype. Add function
31092         Variant_Is_Unconstrained_UU. It is used to detect whether a single
31093         component inside a variant is of an unconstrained Unchecked_Union type.
31094
31095         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
31096         inferred discriminant values. Add condition to generate a case
31097         statement with an inferred discriminant as the switch.
31098         (Make_Component_List_Assign): Introduce a Boolean flag that determines
31099         the behaviour of the subprogram in the presence of an Unchecked_Union.
31100         Add condition to trigger the usage of the inferred discriminant value
31101         as the generated case statement switch.
31102         (Make_Field_Assign): Introduce a Boolean flag that determines the
31103         behaviour of the subprogram in the presence of an Unchecked_Union. Add
31104         condition to trigger the usage of the inferred discriminant value as
31105         the right-hand side of the generated assignment.
31106
31107         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
31108         parameter generation when dealing with Unchecked_Unions.
31109
31110         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
31111         checks for Unchecked_Unions.
31112
31113         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
31114
31115         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
31116         Raise_Program_Error nodes for the execution of Read and Write
31117         attributes of Unchecked_Union types and the execution of Input and
31118         Output attributes of Unchecked_Union types that lack default
31119         discriminant values.
31120
31121         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
31122         Unchecked_Union. Add procedure Check_Component. It is used to inspect
31123         per-object constrained components of Unchecked_Unions for being
31124         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
31125         check individual components withing a variant.
31126
31127         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
31128         comparison of Unchecked_Unions.
31129         (Resolve_Equality_OP): Remove guard that prevents equality between
31130         Unchecked_Unions.
31131
31132         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
31133         of component subtypes for Unchecked_Union components.
31134         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
31135         since it is the actual subtype.
31136
31137         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
31138         pass of Unchecked_Union subtypes as generic actuals to formal types
31139         that lack known_discriminant_parts or that are derived Unchecked_Union
31140         types, and do nothing. In any other case, produce an error message.
31141
31142         * sem_ch3.adb (Analyze_Component_Declaration): Add function
31143         Contains_POC. It determines whether a constraint uses the discriminant
31144         of an enclosing record type.
31145         Add condition to detect per-object constrained component and set the
31146         appropriate flag.
31147         (Derived_Type_Declaration): Remove guard that prevents derivation from
31148         Unchecked_Union types.
31149         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
31150         Union subtypes.
31151
31152         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
31153         references to Unchecked_Union discriminants.
31154
31155         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
31156         formal generation when dealing with Unchecked_Unions.
31157         (Set_Actual_Subtypes): Add condition to prevent generation of actual
31158         subtypes for Unchecked_Unions.
31159
31160         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
31161         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
31162         completions of discriminated partial views by Unchecked_Unions and
31163         produce an error message.
31164
31165 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31166
31167         * trans.c (struct stmt_group): New field, GLOBAL.
31168         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
31169         (struct elab_info): New struct.
31170         (elab_info_list, gnu_elab_proc_stack): New variables.
31171         (Compilation_Unit_to_gnu): New procedure.
31172         (gigi): Call it and also handle elaboration procs we've saved.
31173         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
31174         global field from parent.
31175         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
31176         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
31177         (start_stmt_group): Initialize global field from parent.
31178         (add_decl_expr): Set to global for current statement group.
31179         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
31180         post.
31181
31182         * utils.c (global_bindings_p): True when no current_function_decl; no
31183         longer check current_binding_level.
31184
31185 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
31186
31187         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
31188         choice.
31189
31190         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
31191
31192 2004-08-06  Andreas Schwab  <schwab@suse.de>
31193
31194         * utils.c (gnat_define_builtin): Remove second parameter of
31195         make_decl_rtl.
31196         (begin_subprog_body): Likewise.
31197
31198 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
31199
31200         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
31201         optimization, not supported by the tree-ssa back-end.
31202
31203 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
31204
31205         * s-mastop-irix.adb: Update comments.
31206
31207         * a-except.adb (Exception_Information): Raise Constraint_Error if
31208         exception Id is Null_Id.
31209         This is required behavior, which is more reliably and clearly checked
31210         at the top level interface level.
31211
31212 2004-07-26  Javier Miranda  <miranda@gnat.com>
31213
31214         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
31215         call if a component has no default_expression and the box is used.
31216
31217         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
31218         default_expression and you use box, it behaves as if you had declared a
31219         stand-alone object.
31220         (Resolve_Record_Aggregate): If a component has no default_expression and
31221         you use box, it behaves as if you had declared a stand-alone object.
31222
31223         * sem_ch10.adb (Install_Siblings): Do not make visible the private
31224         entities of private-with siblings.
31225
31226 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
31227
31228         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
31229         for a component of an itype, set the parent pointer for analysis,
31230         there is no list in which to insert it.
31231
31232         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
31233         bona-fide renamings, not for inherited operations.
31234
31235         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
31236         actual for a formal that is an access parameter, create local
31237         finalization list even if the expression is not an aggregate.
31238
31239 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
31240
31241         PR ada/16213
31242         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
31243         Diagnose properly illegal subprogram renamings that are library units.
31244
31245 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
31246
31247         PR ada/15588
31248         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
31249         conversion rewritten as an unchecked conversion, check that original
31250         expression is a variable.
31251
31252         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
31253         unchecked_conversion, create new node rather than rewriting in place,
31254         to preserve original construct.
31255
31256 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31257
31258         * gigi.h (gnat_expand_body): Deleted.
31259
31260         * Make-lang.in: (trans.o): Depends on function.h.
31261
31262         * misc.c: (gnat_expand_body): Moved to here.
31263
31264         * trans.c (gnat_expand_body_1): Deleted.
31265         (gnat_expand_body): Moved from here.
31266         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
31267         (add_stmt): Check for marked visited with global_bindings_p.
31268         (gnat_gimplify_expr, case COMPONENT_REF): New case.
31269         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
31270
31271         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
31272         VIEW_CONVERT_EXPR if not operation type.
31273
31274         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
31275         fat pointer.
31276
31277         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
31278         changes: reformatting of negation operators, removing unneeded
31279         inequality comparison with zero, converting equality comparisons with
31280         zero to negations, changing int/0/1 to bool/false/true, replace calls
31281         to gigi_abort with abort, and various other similar changes.
31282
31283 2004-07-26  Vincent Celier  <celier@gnat.com>
31284
31285         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
31286         "setup".
31287
31288         * make.adb (Gnatmake): Fail when a library is not present and there is
31289         no object directory.
31290
31291         * mlib-prj.adb (Check_Library): No need to check if the library needs
31292         to be rebuilt if there is no object directory, hence no object files
31293         to build the library.
31294
31295         * opt.ads (Setup_Projects): New Boolean flag.
31296
31297         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
31298         Location.
31299         Create directory when Kind /= "" and in "gnat setup". Report error if
31300         directory cannot be created.
31301         (Ada_Check): Create library interface copy dir if it does not exist
31302         and we are in "gnat setup".
31303         (Find_Sources): No error if in "gnat setup" and no Ada sources were
31304         found.
31305         (Language_Independent_Check): Create object directory, exec directory
31306         and/or library directory if they do not exist and we are in
31307         "gnat setup".
31308
31309         * vms_conv.ads: (Command_Type): New command Setup.
31310
31311         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
31312
31313         * vms_data.ads: Add qualifiers/switches for new built-in command
31314         "setup".
31315
31316 2004-07-25  Richard Henderson  <rth@redhat.com>
31317
31318         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
31319         DECL_IGNORED_P on RESULT_DECL.
31320
31321 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
31322
31323         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
31324         allocation and potentially overflowing update with
31325         Tailored_Exception_Information. Use the sec-stack free procedural
31326         interface to output Exception_Information instead.
31327
31328         * a-except.adb (To_Stderr): New subprogram for character, and string
31329         version moved from a-exextr to be visible from other separate units.
31330         (Tailored_Exception_Information): Remove the procedural version,
31331         previously used by the default Last_Chance_Handler and not any more.
31332         Adjust various comments.
31333
31334         * a-exexda.adb: Generalize the exception information procedural
31335         interface, to minimize the use of secondary stack and the need for
31336         local buffers when the info is to be output to stderr:
31337         (Address_Image): Removed.
31338         (Append_Info_Character): New subprogram, checking for overflows and
31339         outputing to stderr if buffer to fill is of length 0.
31340         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
31341         (Append_Info_Address, Append_Info_Exception_Name,
31342         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
31343         Append_Info_Basic_Exception_Traceback,
31344         Append_Info_Exception_Information): New subprograms.
31345         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
31346         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
31347         Exception_Info_Maxlength, Exception_Name_Length,
31348         Exception_Message_Length): New subprograms.
31349         (Exception_Information): Use Append_Info_Exception_Information.
31350         (Tailored_Exception_Information): Use
31351         Append_Info_Basic_Exception_Information.
31352         Export services for the default Last_Chance_Handler.
31353
31354         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
31355         other separate units.
31356
31357 2004-07-20  Vincent Celier  <celier@gnat.com>
31358
31359         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
31360
31361 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
31362
31363         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
31364         emit itype references for the designated types of component types that
31365         are declared outside of the full record declaration, and that may
31366         denote a partial view of that record type.
31367
31368 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
31369
31370         PR ada/15607
31371         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
31372         which is the designated type in an access component declaration, to the
31373         list of incomplete dependents of the parent type, to avoid elaboration
31374         issues with out-of-scope subtypes.
31375         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
31376         full view of the parent.
31377
31378 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
31379
31380         PR ada/15610
31381         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
31382         entities that are hidden, such as references to generic actuals
31383         outside an instance.
31384
31385 2004-07-20  Javier Miranda  <miranda@gnat.com>
31386
31387         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
31388         support to the new notation.
31389         (Analyze_Selected_Component): Add call to Try_Object_Operation.
31390
31391 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
31392
31393         * s-taprob.adb: Adding the elaboration code required for initializing
31394         the tasking soft links that are common to the full and the restricted
31395         run times.
31396
31397         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
31398         restricted run time has been moved to the package
31399         System.Soft_Links.Tasking.
31400
31401         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
31402         restricted run time has been moved to the package
31403         System.Soft_Links.Tasking.
31404
31405         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
31406
31407         * s-solita.ads, s-solita.adb: New files.
31408
31409 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31410
31411         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
31412         Case_Statement_to_gnu): Split off from gnat_to_gnu.
31413         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
31414         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
31415         Exception_Handler_to_gnu_zcx): Likewise.
31416
31417 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
31418
31419         * gigi.h (builtin_function): Declare.
31420
31421 2004-07-15  Robert Dewar  <dewar@gnat.com>
31422
31423         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
31424         reformatting
31425
31426         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
31427         access values as an example of a warning.
31428
31429         * gnat_rm.texi: Document new attribute Has_Access_Values
31430
31431         * gnat-style.texi: Document that box comments belong on nested
31432         subprograms
31433
31434         * sem_util.ads (Has_Access_Values): Improved documentation
31435
31436         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
31437
31438         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
31439         (Process_Interface_Name): Call to this new procedure
31440         (Set_Extended_Import_Export_External_Name): Call to this new procedure
31441
31442         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
31443
31444         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
31445
31446         * einfo.ads: Minor comment typo fixed
31447
31448 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
31449
31450         * snames.adb: Add _atcb.
31451
31452         * snames.ads: Add Name_uATCB.
31453
31454         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
31455         (in the expanded code) when using the restricted run time.
31456
31457         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
31458         a in parameter in order to allow ATCBs to be preallocated (in the
31459         expanded code).
31460
31461         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
31462         order to allow ATCBs to be preallocated. In case of error, the ATCB is
31463         deallocated in System.Tasking.Stages.
31464
31465         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
31466         order to allow ATCBs to be preallocated.
31467
31468         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
31469         here. It was previously done in Initialize_ATCB.
31470
31471         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
31472
31473         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
31474         Restricted run time.
31475
31476         * exp_ch3.adb: When using the Restricted run time, pass the
31477         preallocated Ada_Task_Control_Block when creating a task.
31478
31479 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
31480
31481         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
31482         function call that is itself an actual in an enclosing call, diagnose
31483         problem here rather than assuming that resolution will catch it.
31484
31485         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
31486         the local copy of a generic unit for a formal package, and the generic
31487         is a child unit, install private part of ancestors before compiling
31488         private part of spec.
31489
31490         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
31491         use scope entities rather than tree structures, to handle properly
31492         parent units that are instances rewritten as bodies for inlining
31493         purposes.
31494
31495         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
31496         Remove_Parents): Handle properly a parent unit that is an
31497         instantiation, when the unit has been rewritten as a body for inlining
31498         purposes.
31499
31500         * par.adb (Goto_List): Global variable to collect goto statements in a
31501         given unit, for use in detecting natural loops.
31502
31503         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
31504         use in detecting natural loops.
31505
31506         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
31507         backwards goto's, and rewrite as a infinite loop, to improve locality
31508         of temporaries.
31509
31510         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
31511         subcomponent that includes an indexed reference, to prevent the
31512         generation of copies that would miscompile the desired assignment
31513         statement.
31514         (Build_Task_Image_Decls): Add a numeric suffix to
31515         generated name for string variable, to avoid spurious conflicts with
31516         the name of the type of a single protected object.
31517
31518         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
31519         loop with an explicit exit statement, to avoid generating an
31520         out-of-range value with 'Succ leading to spurious constraint_errors
31521         when compiling with -gnatVo.
31522
31523 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
31524
31525         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
31526         might not be analyzed yet, even if its Etype is already set (case of an
31527         unchecked conversion built using Unchecked_Convert_To, for example).
31528         If the prefix has already been analyzed, this will be a nop anyway.
31529
31530         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
31531         controller type, or an assignment of a record type with controlled
31532         components, copy only user data, and leave the finalization chain
31533         pointers untouched.
31534
31535 2004-07-15  Vincent Celier  <celier@gnat.com>
31536
31537         * make.adb (Collect_Arguments): Improve error message when attempting
31538         to compile a source not part of any project, when -x is not used.
31539
31540         * prj.ads: (Defined_Variable_Kind): New subtype
31541
31542         * prj-attr.adb (Register_New_Package): Two new procedures to register
31543         a package with or without its attributes.
31544         (Register_New_Attribute): Mew procedure to register a new attribute in a
31545         package.
31546         New attribute oriented subprograms: Attribute_Node_Id_Of,
31547         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
31548         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
31549         Next_Attribute.
31550         New package oriented subprograms: Package_Node_Id_Of,
31551         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
31552
31553         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
31554         type.
31555         (Package_Node_Id): Now a private, self initialized type
31556         (Register_New_Package): New procedure to register a package with its
31557         attributes.
31558         New attribute oriented subprograms: Attribute_Node_Id_Of,
31559         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
31560         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
31561         Next_Attribute.
31562         New package oriented subprograms: Package_Node_Id_Of,
31563         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
31564
31565         * prj-dect.adb (Parse_Attribute_Declaration,
31566         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
31567
31568         * prj-makr.adb (Make): Parse existing project file before creating
31569         other files. Fail if there was an error during parsing.
31570
31571         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
31572         new spec of Prj.Attr.
31573
31574         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
31575         to new spec of Prj.Attr.
31576
31577 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31578
31579         * utils2.c: Fix typo in comment.
31580
31581 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31582
31583         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
31584         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
31585
31586 2004-07-14  Andreas Schwab  <schwab@suse.de>
31587
31588         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
31589
31590 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31591
31592         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
31593         object type.
31594         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
31595         TYPE_STUB_DECL.
31596
31597         * misc.c (gnat_types_compatible_p): New function.
31598         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
31599         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
31600
31601         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
31602         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
31603         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
31604         (mark_visited): Don't mark dummy type.
31605         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
31606         parameter, we must remove any LJM building from GNU_NAME.
31607         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
31608         (pos_to_constructor): Use int_const_binop.
31609         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
31610         PARM_DECL.
31611
31612         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
31613         (gnat_pushlevel): Set TREE_USE on BLOCK node.
31614         (gnat_install_builtins): Add __builtin_memset.
31615
31616 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
31617
31618         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
31619         for a renaming, stabilize the initialization expression if we are at a
31620         local level.  At the local level, uses of the renaming may be performed
31621         by a direct dereference of the initializing expression, and we don't
31622         want possible variables there to be evaluated for every use.
31623
31624         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
31625         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
31626         them on the way.  Account for the fact that we may introduce side
31627         effects in the process.
31628
31629 2004-07-13  Richard Henderson  <rth@redhat.com>
31630
31631         * misc.c (default_pass_by_ref): Use pass_by_reference.
31632
31633 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
31634
31635         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
31636         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
31637
31638 2004-07-08  Richard Henderson  <rth@redhat.com>
31639
31640         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
31641         commentary.
31642
31643 2004-07-06  Vincent Celier  <celier@gnat.com>
31644
31645         * vms_conv.ads: Minor reformatting.
31646         Alphabetical order for enumerated values of type Command_Type, to have
31647         the command in alphabetical order for the usage.
31648
31649         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
31650         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
31651
31652         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
31653
31654         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
31655         (Add_Archive_Path): Only add the global archive if there is one.
31656         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
31657         or not any object file to put in the global archive, and don't build
31658         a global archive if there is none.
31659         (X_Switches): New table
31660         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
31661         in the X_Switches table, if any.
31662         (Initialize): Make sure the X_Switches table is empty
31663         (Scan_Arg): Record -X switches in table X_Switches
31664
31665         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
31666
31667         * make.adb: Minor comment fix
31668
31669         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
31670         invoked with directory information, add the directory in front of the
31671         path.
31672
31673         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
31674         invoked with directory information, add the directory in front of the
31675         path.
31676
31677         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
31678         when Keep_Temporary_Files is False.
31679         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
31680         directory information, add the directory in front of the path.
31681         When not on VMS, handle new switch -dn before the command to set
31682         Keep_Temporary_Files to True.
31683         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
31684         everywhere.
31685
31686         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
31687         invoked with directory information, add the directory in front of the
31688         path.
31689
31690 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
31691
31692         * snames.ads, snames.adb (Name_Stub): New name for the distributed
31693         systems annex.
31694
31695         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
31696         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
31697
31698         * g-socket.adb (To_Timeval): Fix incorrect conversion of
31699         Selector_Duration to Timeval for the case of 0.0.
31700
31701         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
31702         documentation from Evolve_And_Then.
31703
31704 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
31705
31706         * s-taprop-tru64.adb, s-taprop-os2.adb,
31707         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
31708
31709 2004-07-06  Robert Dewar  <dewar@gnat.com>
31710
31711         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
31712         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
31713         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
31714         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
31715         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
31716         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
31717         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
31718         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
31719         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
31720         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
31721         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
31722         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
31723         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
31724         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
31725         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
31726         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
31727         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
31728         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
31729         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
31730         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
31731         vms_data.ads: Minor reformatting,
31732         Fix bad box comment format.
31733
31734         * gnat_rm.texi: Fix minor grammatical error
31735
31736         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
31737
31738         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
31739         more cases of discriminated records to be recognized as not needing a
31740         secondary stack.
31741         (Has_Access_Values): New function.
31742
31743         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
31744
31745         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
31746         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
31747         with LRM terminology).
31748         Change terminology in comments primitive type => elementary type.
31749
31750 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
31751
31752         PR ada/15602
31753         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
31754         parameters do not impose any requirements on the presence of a body.
31755
31756 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
31757
31758         PR ada/15593
31759         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
31760         compilation unit and is in an open scope at the point of instantiation,
31761         assume that a body may be present later.
31762
31763 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
31764
31765         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
31766         Improve error message when specified size is not supported.
31767
31768         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
31769         is never a primitive operation.
31770
31771 2004-07-05  Andreas Schwab  <schwab@suse.de>
31772
31773         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
31774         RECORD_OR_UNION_CHECK.
31775         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
31776
31777 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
31778
31779         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
31780         dependency on xgnatugn, instead build it via a submake.
31781         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
31782
31783 2004-07-04  Richard Henderson  <rth@redhat.com>
31784
31785         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
31786
31787 2004-07-01  Richard Henderson  <rth@redhat.com>
31788
31789         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
31790         * utils.c (max_size): Likewise.
31791
31792 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31793
31794         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
31795         and rest_of_type_compilation; add arg to create_*_decl.
31796         (annotate_decl_with_node): Deleted.
31797         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
31798         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
31799         (get_current_block_context, gnat_pushdecl): New declarations.
31800         (gnat_init_stmt_group): Likewise.
31801         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
31802         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
31803         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
31804         (gnat_init): Call gnat_init_stmt_group.
31805         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
31806         (gnu_pending_elaboration_list): Deleted.
31807         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
31808         (gigi): Rearrange initialization calls and move some to last above.
31809         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
31810         Delete calls to add_decl_expr; add arg to create_*_decl.
31811         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
31812         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
31813         begin_subprog_body and call it.
31814         Don't push and pop ggc context.
31815         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
31816         (add_stmt): Remove handling of DECL_EXPR from here.
31817         If not in function, mark visited.
31818         (add_decl_expr): Put global at top level.
31819         Check for cases of DECL_INITIAL we have to handle here.
31820         (process_type): Add extra arg to create_type_decl.
31821         (build_unit_elab): Rework to just gimplify.
31822         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
31823         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
31824         (get_pending_elaborations, pending_elaborations_p): Likewise.
31825         (push_pending_elaborations, pop_pending_elaborations): Likewise.
31826         (get_elaboration_location, insert_elaboration_list): Likewise.
31827         (gnat_binding_level): Renamed from ada_binding_level.
31828         (init_gnat_to_gnu): Don't clear pending_elaborations.
31829         (global_bindings_p): Treat as global if no current_binding_level.
31830         (set_current_block_context): New function.
31831         (gnat_pushdecl): Renamed from pushdecl; major rework.
31832         All callers changed.
31833         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
31834         (finish_record_type): Call call pushdecl for stub decl.
31835         (function_nesting_depth): Deleted.
31836         (begin_subprog_body): Delete obsolete code.
31837         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
31838
31839 2004-06-28  Robert Dewar  <dewar@gnat.com>
31840
31841         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
31842         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
31843         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
31844         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
31845         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
31846
31847         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
31848         deal with problem of inefficient slices on machines with strict
31849         alignment, when the slice is a component of a composite.
31850
31851         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
31852         machines, we need the check there as well.
31853
31854 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
31855
31856         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
31857         determine safe copying direction for overlapping slice assignments
31858         when component is controlled.
31859
31860         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
31861         formal derived type in the actual for a formal package are visible in
31862         the enclosing instance.
31863
31864 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
31865
31866         PR ada/15600
31867         * sem_util.adb (Trace_Components): Diagnose properly an illegal
31868         circularity involving a private type whose completion includes a
31869         self-referential component.
31870         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
31871         renaming or an instantiation from an implicit derived operation.
31872
31873 2004-06-28  Pascal Obry  <obry@gnat.com>
31874
31875         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
31876         DLL.
31877         (Library_File_Name_For): Idem.
31878
31879 2004-06-28  Matthew Gingell  <gingell@gnat.com>
31880
31881         * g-traceb.ads: Add explanatory note on the format of addresses
31882         expected by addr2line.
31883
31884 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
31885
31886         * Makefile.in: Force debugging information on s-tasdeb.adb,
31887         a-except.adb and s-assert.adb needed by the debugger.
31888
31889 2004-06-28  Vincent Celier  <celier@gnat.com>
31890
31891         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
31892         Need_To_Build_Lib.
31893         (Gnatmake): Ditto.
31894
31895         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
31896
31897         * prj.adb: Minor reformatting
31898         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
31899
31900         * prj.ads: Comment updates
31901         Minor reformatting
31902         (Project_Data): Change Flag1 to Need_To_Build_Lib.
31903         Remove Flag2: not used.
31904
31905         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
31906         declaration.
31907
31908         * gnat_ugn.texi: Put a "null;" declaration in one project file example
31909
31910         * gnat_rm.texi: Document Empty declarations "null;".
31911
31912         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
31913         front of the linker options.
31914         (Link_Foreign): Put the global archives and the libraries in front of
31915         the linker options.
31916
31917 2004-06-28  Javier Miranda  <miranda@gnat.com>
31918
31919         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
31920         (RTU_Loaded): Code cleanup
31921         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
31922         withed predefined units.
31923
31924         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
31925         explicitly withed predefined units.
31926         Fix typo in comment
31927
31928         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
31929         explicitly withed predefined units.
31930
31931 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31932
31933         * ada-tree.def (DECL_STMT): Deleted.
31934         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
31935         (DECL_STMT_VAR): Deleted.
31936         * decl.c: add_decl_stmt now add_decl_expr.
31937         * gigi.h: Likewise.
31938         * trans.c: Likewise.
31939         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
31940         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
31941         (add_stmt): Only handle padded type here.
31942         (add_stmt_with_node): Allow gnat_node to not be present.
31943         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
31944         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
31945         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
31946         make a SAVE_EXPR for the entire fat pointer.
31947         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
31948         (create_index_type): Make a DECL_EXPR.
31949         (end_subprog_body): Don't call allocate_struct_function here but
31950         do clear cfun.
31951
31952 2004-06-25  Pascal Obry  <obry@gnat.com>
31953
31954         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
31955         Relocatable from Build_Dynamic_Library call.
31956
31957         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
31958         Relocatable are now synonym.
31959
31960         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
31961
31962         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
31963         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
31964         call.
31965
31966         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
31967         Lib_Address and Relocatable.
31968         (Default_DLL_Address): Removed.
31969
31970         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
31971         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
31972         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
31973         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
31974         (Default_DLL_Address): Removed.
31975
31976         * mlib-tgt-mingw.adb: Ditto.
31977         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
31978
31979         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
31980         the initial thread stack size.
31981
31982         * a-strmap.ads: Move package L to private part as it is not used in
31983         the spec. Found while reading code.
31984
31985 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
31986
31987         * tracebak.c: Introduce support for a GCC infrastructure based
31988         implementation of __gnat_backtrace.
31989
31990         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
31991         any more. Use accessors instead. This eases maintenance and relaxes
31992         some alignment constraints.
31993         (_GNAT_Exception structure): Remove the Ada specific fields
31994         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
31995         a-exexpr.adb.
31996         (is_handled_by, __gnat_eh_personality): Replace component references to
31997         exception structure by use of the new accessors.
31998
31999         * init.c (__gnat_initialize): Adjust comments to match the just
32000         reverted meaning of the -static link-time option.
32001
32002         * adaint.c (convert_addresses): Arrange not to define a stub for
32003         mips-irix any more, as we now want to rely on a real version from a
32004         recent libaddr2line.
32005
32006         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
32007         the personality routine can use them and not have to rely on a C
32008         counterpart of the record anymore. This simplifies maintenance and
32009         relaxes the constraint of having Standard'Maximum_Alignment match
32010         BIGGEST_ALIGNMENT.
32011         Update comments, and add a section on the common header alignment issue.
32012
32013 2004-06-25  Geert Bosch  <bosch@gnat.com>
32014
32015         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
32016         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
32017
32018 2004-06-25  Robert Dewar  <dewar@gnat.com>
32019
32020         * gnat_rm.texi: Fix section on component clauses to indicate that the
32021         restriction on byte boundary placement still applies for bit packed
32022         arrays.
32023         Add comment on stack usage from Initialize_Scalars
32024
32025         * gnat_ugn.texi: Add documentation for -gnatyLnnn
32026
32027         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
32028         limiting nesting level.
32029
32030         * usage.adb: Add line for -gnatyLnnn switch
32031
32032         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
32033         sem_ch13.adb, exp_aggr.adb: Minor reformatting
32034
32035         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
32036         type as well as on the subtype. This corrects a problem in freeze in
32037         setting alignments of atomic types.
32038
32039         * sem_eval.ads: Minor comment typo fixed
32040
32041         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
32042         level.  Minor reformatting.
32043
32044         * fname.adb (Is_Predefined_File_Name): Require a letter after the
32045         minus sign. This means that file names like a--b.adb will not be
32046         considered predefined.
32047
32048         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
32049         record Test new flag and give diagnostic for bad component clause.
32050         (Freeze_Entity): Set alignment of array from component alignment in
32051         cases where this is safe to do.
32052
32053         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
32054         arrays.
32055
32056         * cstand.adb: (Create_Standard): Set alignment of String to 1
32057
32058         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
32059
32060         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
32061         code in the common constrained array cases.
32062
32063         * a-storio.adb: Change implementation to avoid possible alignment
32064         problems on machines requiring strict alignment (data should be moved
32065         as type Buffer, not type Elmt).
32066
32067         * checks.adb (Apply_Array_Size_Check): Improve these checks by
32068         killing the overflow checks which we really do not need (64-bits is
32069         enough).
32070
32071 2004-06-25  Vincent Celier  <celier@gnat.com>
32072
32073         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
32074         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
32075         inconditionally for the main project.
32076         (Recursive_Add_Archives.Add_Archive_Path): New procedure
32077         (Link_Executables.Check_Time_Stamps): New procedure
32078         (Link_Executables.Link_Foreign): New procedure
32079         Changes made to reduce nesting level of this package
32080         (Check): New procedure
32081         (Add_Switches): When not in quiet output, check that a switch is not
32082         the concatenation of several valid switches. If it is, issue a warning.
32083         (Build_Global_Archive): If the global archive is rebuilt, linking need
32084         to be done.
32085         (Compile_Sources): Rebuilding a library archive does not imply
32086         rebuilding the global archive.
32087         (Build_Global_Archive): New procedure
32088         (Build_Library): New name for Build_Archive, now only for library
32089         project
32090         (Check_Archive_Builder): New procedure
32091         (Create_Global_Archive_Dependency_File): New procedure
32092         (Gprmake): Call Build_Global_Archive before linking
32093         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
32094         throughout.
32095         (Scan_Arg): Display the Copyright notice when -v is used
32096
32097         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
32098         for gnatls.
32099
32100         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
32101         COMPILE.
32102         Add new GNAT LIST qualifier /FILES=
32103         Added qualifier /DIRECTORY= to GNAT METRIC
32104         Added qualifier /FILES= to GNAT METRIC
32105         Added qualifier /FILES to GNAT PRETTY
32106
32107         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
32108         to take into account both versions of the switch.
32109
32110         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
32111         always be the last switch to the gcc driver. Disable switch storing so
32112         that switches automatically added by the gcc driver are not put in the
32113         ALI file.
32114
32115         * prj.adb (Project_Empty): Take into account changes in components of
32116         Project_Data.
32117
32118         * prj.ads (Languages_Processed): New enumaration value All_Languages.
32119
32120         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
32121         used. Split Boolean component Ada_Sources_Present in two Boolean
32122         components Ada_Sources_Present and Other_Sources_Present.
32123         Minor reformatting
32124
32125         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
32126         instead of Sources_Present.
32127         (Set_Ada_Paths.Add.Recursive_Add): Ditto
32128
32129         * prj-nmsc.adb: Minor reformatting
32130         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
32131         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
32132         Check_Ada_Naming_Scheme.
32133         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
32134         throughout.
32135
32136         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
32137         In_Limited.
32138         Make sure that all cycles where there is at least one "limited with"
32139         are detected.
32140         (Parse_Single_Project): New Boolean parameter In_Limited
32141
32142         * prj-proc.adb (Recursive_Check): When Process_Languages is
32143         All_Languages, call first Prj.Nmsc.Ada_Check, then
32144         Prj.Nmsc.Other_Languages_Check.
32145
32146         * prj-proc.adb (Process): Use Ada_Sources_Present or
32147         Other_Sources_Present (instead of Sources_Present) depending on
32148         Process_Languages.
32149
32150         * lang-specs.h: Keep -g and -m switches in the same order, and as the
32151         last switches.
32152
32153         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
32154         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
32155         False.
32156         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
32157         False.
32158
32159         * lib.ads (Disable_Switch_Storing): New procedure.
32160
32161         * make.adb: Modifications to reduce nesting level of this package.
32162         (Check_Standard_Library): New procedure
32163         (Gnatmake.Check_Mains): New procedure
32164         (Gnatmake.Create_Binder_Mapping_File): New procedure
32165         (Compile_Sources.Compile): Add switch -gnatez as the last option
32166         (Display): Never display -gnatez
32167
32168         * Makefile.generic:
32169         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
32170
32171         * gnatcmd.adb (Check_Project): New function
32172         (Process_Link): New procedure to reduce nesting depth
32173         (Check_Files): New procedure to reduce the nesting depth.
32174         For GNAT METRIC, include the inherited sources in extending projects.
32175         (GNATCmd): When GNAT LS is invoked with a project file and no files,
32176         add the list of files from the sources of the project file. If this list
32177         is too long, put it in a temp text files and use switch -files=
32178         (Delete_Temp_Config_Files): Delete the temp text file that contains
32179         a list of source for gnatpp or gnatmetric, if one has been created.
32180         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
32181         in the project file is too large, create a temporary text file that
32182         list them and pass it to the tool with "-files=<temp text file>".
32183         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
32184
32185         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
32186         generated file is in not in Ada.
32187
32188         * gnatls.adb: Remove all parameters And_Save that are no longer used.
32189         (Scan_Ls_Arg): Add processing for -files=
32190         (Usage): Add line for -files=
32191
32192         * g-os_lib.adb (On_Windows): New global constant Boolean flag
32193         (Normalize_Pathname): When on Windows and the path starts with a
32194         directory separator, make sure that the resulting path will start with
32195         a drive letter.
32196
32197         * clean.adb (Clean_Archive): New procedure
32198         (Clean_Project): When there is non-Ada code, delete the global archive,
32199         the archive dependency files, the object files and their dependency
32200         files, if they exist.
32201         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
32202
32203 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
32204
32205         * sinfo.ads: Fix typo in comment.
32206
32207         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
32208         the TSS for remote access-to-subprogram types, since these TSS are
32209         always present once the type has been analyzed.
32210         (RAS_E_Dereference): Same.
32211
32212         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
32213         reference raises Bad_Attribute, mark the reference as analyzed so the
32214         node (and any children resulting from rewrites that could have occurred
32215         during the analysis that ultimately failed) is not analyzed again.
32216
32217         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
32218
32219         * exp_dist.adb: Minor comment fix.
32220
32221         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
32222         type is an anonymous access type, no unchecked deallocation of the
32223         allocated object can occur. If the object is controlled, attach it with
32224         a count of 1. This allows attachment to the Global_Final_List, if
32225         no other relevant list is available.
32226         (Get_Allocator_Final_List): For an anonymous access type that is
32227         the type of a discriminant or record component, the corresponding
32228         finalisation list is the one of the scope of the type.
32229
32230 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
32231
32232         * sem_ch3.adb (Replace_Type): When computing the signature of an
32233         inherited subprogram, use the first subtype if the derived type
32234         declaration has no constraint.
32235
32236         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
32237         before applying previous optimization. Minor code cleanup.
32238
32239         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
32240         placed at the beginning of an unpacked record without explicit
32241         alignment, a slice of it will be aligned and does not need a copy when
32242         used as an actual.
32243
32244 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
32245
32246         PR ada/15591
32247         PR ada/15592
32248         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
32249         reference is written with expressions mimicking parameters.
32250
32251 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
32252
32253         PR ada/15589
32254         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
32255         STEP 2a. The constraints of a full type declaration of a derived record
32256         type are checked for conformance with those declared in the
32257         corresponding private extension declaration. The message
32258         "not conformant with previous declaration" is emitted if an error is
32259         detected.
32260
32261 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
32262
32263         * g-traceb.ads: Document the need for -E binder switch in the spec.
32264
32265         * g-trasym.ads: Document the need for -E binder switch in the spec.
32266
32267 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
32268
32269         * sem_prag.adb: Add handling of pragma Detect_Blocking.
32270
32271         * snames.h, snames.ads, snames.adb: Add entry for pragma
32272         Detect_Blocking.
32273
32274         * s-rident.ads: Change reference to pragma Detect_Blocking.
32275
32276         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
32277         system.ads.
32278
32279         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
32280         to indicate whether pragma Detect_Blocking is active.
32281
32282         * par-prag.adb: Add entry for pragma Detect_Blocking.
32283
32284         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
32285         of not handling WITH.
32286         Note that this replaces the previous update which was incorrect.
32287
32288 2004-06-25  Javier Miranda  <miranda@gnat.com>
32289
32290         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
32291         use-clauses to have a clean environment.
32292
32293         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
32294         the installation of the use-clauses to stablish a clean environment in
32295         case of compilation of a separate unit; otherwise the call to
32296         use_one_package is protected by the barrier Applicable_Use.
32297
32298         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
32299         the installation of the use-clauses to stablish a clean environment in
32300         case of compilation of a separate unit.
32301         (End_Use_Clauses): Minor comment cleanup.
32302
32303 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
32304
32305         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
32306
32307 2004-06-23  Richard Henderson  <rth@redhat.com>
32308
32309         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
32310
32311 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32312
32313         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
32314         now bool instead of int.
32315         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
32316         * trans.c (gnu_switch_label_stack): New function.
32317         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
32318         elaboration of renamed entity returns.
32319         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
32320         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
32321         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
32322         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
32323         DECL_SIZE_UNIT and simplify variable-sized case.
32324         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
32325         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
32326         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
32327         (build_unit_elab): Disable for now.
32328         * utils.c (mark_visited): New function.
32329         (pushdecl): Walk tree to call it for global decl.
32330         (update_pointer_to): Update all variants of pointer and ref types.
32331         Add arg to COMPONENT_REF.
32332         (convert): Likewise.
32333         Move check for converting between variants lower down.
32334         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
32335         (build_allocator): Don't force type of MODIFY_EXPR.
32336         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
32337         put_var_into_stack.
32338
32339 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32340
32341         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
32342         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
32343         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
32344         subprograms.
32345         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
32346         all callers changed.
32347         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
32348         the way that EXIT_STMT finds the loop label.
32349         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
32350         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
32351         (add_stmt): Use annotate_with_locus insted of setting directly.
32352         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
32353         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
32354         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
32355         (build_vms_descriptor): Add extra args to ARRAY_REF.
32356         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
32357         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
32358         New cases.
32359         (build_binary_op): Don't make explicit CONVERT_EXPR.
32360         Add extra rgs to ARRAY_REF.
32361
32362 2004-06-14  Pascal Obry  <obry@gnat.com>
32363
32364         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
32365         Windows.  Fix minor typo.
32366
32367         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
32368         which is now supported on Windows. With this implementation using the
32369         Library Project feature is no different on Windows than on UNIX.
32370
32371 2004-06-14  Vincent Celier  <celier@gnat.com>
32372
32373         * makegpr.adb (Compile_Sources): Nothing to do when there are no
32374         non-Ada sources.
32375
32376         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
32377
32378         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
32379         found, show the project name and the path of the previously parsed
32380         project file.
32381
32382 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
32383
32384         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
32385         array, avoid copying the actual before the call.
32386
32387 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
32388
32389         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
32390         Instead, allocate memory on worst-case alignment assumptions, and then
32391         return an aligned address within the allocated zone.
32392
32393 2004-06-14  Robert Dewar  <dewar@gnat.com>
32394
32395         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
32396         elab entities in predefined units in No_Run_Time_Mode.
32397         (Gen_Adainit_C): Same fix
32398         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
32399         units in No_Run_Time_Mode
32400         (Gen_Elab_Calls_C): Same fix
32401
32402         * symbols-vms-alpha.adb: Minor reformatting
32403
32404         * g-debpoo.ads: Minor reformatting
32405
32406         * lib.adb (In_Same_Extended_Unit): Version working on node id's
32407
32408         * lib.ads (In_Same_Extended_Unit): Version working on node id's
32409
32410         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
32411         working on nodes.
32412
32413         * make.adb: Minor reformatting
32414
32415         * par-ch12.adb: Minor reformatting
32416
32417         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
32418
32419         * prj-strt.adb: Minor reformatting
32420
32421         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
32422         be more general.
32423
32424         * sem_attr.adb: Minor reformatting
32425
32426         * sem_ch7.adb: Minor reformatting
32427
32428         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
32429         for type in the same unit as the object declaration.
32430
32431         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
32432         static string expressions and not just string literals.
32433         Minor reformatting
32434         (Set_Warning): Reset restriction warning flag for restriction pragma
32435         Implement pragma Profile_Warnings
32436         Implement pragma Profile (Restricted)
32437         Give obolescent messages for old restrictions and pragmas
32438
32439         * snames.h, snames.ads, snames.adb: Add new entry for pragma
32440         Profile_Warnings.
32441
32442         * s-rident.ads: Add declarations for restrictions required by profile
32443         Restricted and profile Ravenscar.
32444
32445         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
32446
32447         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
32448         configuration pragmas.
32449
32450 2004-06-11  Vincent Celier  <celier@gnat.com>
32451
32452         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
32453         gnatsym, when symbol policy is Restricted.
32454
32455         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
32456         gnatsym, when symbol policy is Restricted.
32457
32458         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
32459         read the symbol file.
32460         (Finalize): Fail in symbol policy Restricted if a symbol in the original
32461         symbol file is not in the object files. Do not create a new symbol file
32462         when symbol policy is Restricted.
32463
32464         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
32465         in Scng.
32466
32467         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
32468         Restricted.
32469         (Usage): Line for new switch -R
32470
32471         * make.adb (Initialize): When the platform is not VMS, add the
32472         directory where gnatmake is invoked in the front of the path, if
32473         gnatmake is invoked with directory information.  Change the Scan_Args
32474         while loop to a for loop.
32475         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
32476         if Depth is equal or greater than the proposed depth, there is nothing
32477         to do.
32478         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
32479         instead of 0.
32480
32481         * prj.ads: Add new symbol policy Restricted.
32482
32483         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
32484         with the new parameters Check_All_Labels and Case_Location.
32485
32486         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
32487         (Library_Symbol_File needs to be defined).
32488
32489         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
32490         and Case_Location If Check_All_Labels is True, check that all values of
32491         the string type are used, and output warning(s) if they are not.
32492
32493         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
32494         and Case_Location.
32495
32496         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
32497
32498         * gnat_ugn.texi: Update documentation about the library directory in
32499         Library Projects.
32500
32501         * makegpr.adb (Display_Command): In verbose mode, also display the
32502         value of the CPATH env var, when the compiler is gcc.
32503         (Initialize): Change the Scan_Args while loop to a for loop
32504         (Compile_Individual_Sources): Change directory to object directory
32505         before compilations.
32506
32507         * symbols.ads: New symbol policy Restricted.
32508
32509 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
32510
32511         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
32512         is now taken care of internally in the Exception_Propagation package
32513         and does not require clients assistance any more.
32514
32515         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
32516         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
32517         functions. Helpers to maintain a predicate required in the handling of
32518         occurrence transfer between tasks.
32519         This is now handled internally and does not require clients assistance
32520         for the setup/propagate separation anymore.
32521         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
32522         allocation strategy, handle the Setup_And_Not_Propagated predicate and
32523         document.
32524
32525         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
32526         raise_after_setup, now that everything is handled internally within the
32527         setup/propagation engine.
32528
32529 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
32530
32531         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
32532         Add additional conditions for the case of an actual being a simple
32533         name or literal. Improve inlining by preventing the generation
32534         of temporaries with a short lifetime (one use).
32535
32536 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
32537
32538         PR ada/15587
32539         * einfo.ads: Minor comment updates for Has_Completion and
32540         E_Constant list of flags.
32541
32542         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
32543         and constant redeclarations now set the Has_Completion flag of their
32544         defining identifiers.
32545
32546         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
32547         Inspect_Deferred_Constant_Completion.
32548         Used to detect private deferred constants that have not been completed
32549         either by a constant redeclaration or pragma Import. Emits error message
32550         "constant declaration requires initialization expression".
32551
32552         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
32553         completes a deferred constant.
32554
32555 2004-06-11  Geert Bosch  <bosch@gnat.com>
32556
32557         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
32558
32559         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
32560         calculating exponent for scaling denormal numbers.
32561         (Leading_Part): Properly raise Constraint_Error for zero or negative
32562         Adjustment.
32563         (Remainder): Properly raise Constraint_Error for zero divisor.
32564
32565 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
32566
32567         * sem_util.adb: Minor reformatting.
32568
32569         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
32570         dereference when accessing the entry parameter record.
32571         (Check_Array_Type): Always check for possible implicit dereference.
32572         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
32573         Abort if a pointer is still present (denoting that an implicit
32574         dereference was left in the tree by the front-end).
32575
32576         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
32577         dereference when accessing the entry parameter record.
32578         (Check_Array_Type): Always check for possible implicit dereference.
32579         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
32580         Abort if a pointer is still present (denoting that an implicit
32581         dereference was left in the tree by the front-end).
32582
32583 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
32584
32585         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
32586         message, like the compiler itself does. Easier to parse the output.
32587
32588         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
32589
32590         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
32591         be base names, and not includes directories.
32592
32593 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
32594
32595         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
32596         so that dependencies are properly taken into account by make.
32597
32598 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
32599
32600         PR ada/15622
32601         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
32602         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
32603
32604 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
32605
32606         * Makefile.in (install-gnatlib): install target-specific run-time files.
32607
32608         * Make-lang.in: Remove obsolete targets.
32609
32610 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
32611
32612         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
32613         specification, to catch misuses of program unit names.
32614
32615         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
32616         superfluous conversions in an instance.
32617
32618 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
32619
32620         PR ada/15403
32621         * sem_ch12.adb (Save_References): If operator node has been folded to
32622         enumeration literal, associated_node must be discarded.
32623
32624 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
32625
32626         * s-stchop-vxworks.adb: Add required pragma Convention to
32627         Task_Descriptor because it is updated by a C function.
32628
32629 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
32630
32631         PR ada/15568
32632         * Makefile.in: Remove target specific SO_OPT on IRIX
32633
32634 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32635
32636         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
32637         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
32638         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
32639         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
32640         (STMT_STMT, USE_STMT): New statement codes.
32641         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
32642         * ada-tree.h: Reflect above changes.
32643         (struct tree_loop_id): Deleted.
32644         (union lang_tree_node, struct lang_decl, struct lang_type):
32645         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
32646         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
32647         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
32648         (IS_ADA_STMT): New macro.
32649         * decl.c (annotate_decl_with_node): New function.
32650         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
32651         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
32652         Call add_stmt_with_node to do needed assignments.
32653         Add call to update setjmp buffer directly, not via EXPR_STMT.
32654         (maybe_variable): Argment GNAT_NODE deleted.
32655         * gigi.h (maybe_variable): Likewise.
32656         (make_transform, add_stmt_with_node, set_block_for_group): New.
32657         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
32658         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
32659         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
32660         (set_lineno, set_lineno_from_sloc): Likewise.
32661         (record_code_position, insert_code_for): Likewise.
32662         (gnat_poplevel): Now returns void.
32663         (end_subprog_body): Now takes argument.
32664         * misc.c (cgraph.h, tree-inline.h): New includes.
32665         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
32666         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
32667         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
32668         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
32669         (gnat_parse_file): Don't set immediate_size_expand.
32670         Call cgraph functions.
32671         (gnat_expand_expr): Remove most cases.
32672         (record_code_position, insert_code_for): Remove from here.
32673         * trans.c (toplev.h, tree-gimple.h): Now included.
32674         (discard_file_names): Deleted.
32675         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
32676         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
32677         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
32678         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
32679         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
32680         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
32681         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
32682         (set_block_for_group, add_stmt_list): Likewise.
32683         (start_stmt_group): Renamed from start_block_stmt.
32684         (end_stmt_group): Likewise, from end_block_stmt.
32685         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
32686         (gigi): Don't set discard_file_names or call set_lineno.
32687         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
32688         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
32689         Numerous changes throughout to reflect new names and complete
32690         function-at-a-time implementation.
32691         (gnat_expand_stmt): Delete or comment out all cases.
32692         (process_inlined_subprograms): Use add_stmt.
32693         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
32694         call set_lineno; also remove unneeded block handling.
32695         (process_type): Remove unneeded block handling.
32696         (build_unit_elab): Remove calls to deleted functions.
32697         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
32698         (tree-dump.h): Likewise.
32699         (struct ada_binding_level): Add field jmpbuf_decl.
32700         (gnat_define_builtin, gnat_install_builtins): New.
32701         (gnat_gimplify_function, gnat_finalize): Likewise.
32702         (gnat_poplevel): No longer return BLOCK, set it instead.
32703         Remove code dealing with nested functions.
32704         (gnat_init_decl_processing): Also set size_type_node.
32705         Call gnat_install_builtins.
32706         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
32707         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
32708         Remove special-case for "main".
32709         (end_subprog_body): Add arg and rework for tree-ssa.
32710         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
32711         Add case for BOOLEAN_TYPE.
32712         * utils2.c (rtl.h): Now include.
32713         (build_call_raise): Test Debug_Flag_NN directly.
32714         (build_call_alloc_dealloc): Don't use local stack allocation for now.
32715         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
32716         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
32717
32718 2004-06-07  Robert Dewar  <dewar@gnat.com>
32719
32720         * a-direct.ads, einfo.ads: Minor comment updates
32721
32722         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
32723         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
32724         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
32725         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
32726         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
32727
32728         * s-interr-sigaction.adb: Remove unreferenced variable
32729         (Attached_Interrupts).  Minor reformatting.
32730         Avoid use of variable I (replace by J).
32731
32732         * par-ch10.adb: Fix text of one error message
32733
32734         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
32735         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
32736         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
32737         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
32738         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
32739         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
32740         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
32741         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
32742         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
32743         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
32744         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
32745         2005 support.
32746
32747 2004-06-07  Doug Rupp  <rupp@gnat.com>
32748
32749         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
32750
32751         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
32752
32753         * mlib-tgt-vms-ia64.adb: New file.
32754
32755         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
32756         Add mlib-tgt-vms-ia64.adb
32757         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
32758         Move to alpha specific ifeq section.
32759         Add VMS specific versions of symbols.adb
32760         Renaming of 5q vms files.
32761
32762         * 5qsystem.ads renamed to system-vms_64.ads.
32763
32764 2004-06-07  Vincent Celier  <celier@gnat.com>
32765
32766         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
32767         explain that when a time of day corresponding to the non existing hour
32768         on the day switching to DST is specified, Split may return a different
32769         value for Seconds.
32770
32771         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
32772         to GNAT PRETTY.
32773
32774         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
32775         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
32776
32777         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
32778         to False.
32779         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
32780         the linking options.
32781         (Build_Library.Check_Libs): On VMS, if there is a dependency on
32782         g-trasym.ads, set Gtrasymobj_Needed to True.
32783
32784         * prj-attr.adb: Add new package Metrics for gnatmetric
32785
32786         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
32787         canonical case to take into account files with upper case characters on
32788         Windows.
32789         (Ada_Check): Load the reference symbol file name in the name buffer to
32790         check it, not the symbol file name.
32791
32792         * snames.ads, snames.adb: Add standard name Metrics (name of project
32793         file package for gnatmetric).
32794
32795         * vms_conv.ads: Add Metric to Comment_Type
32796
32797         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
32798
32799         * vms_data.ads: Add qualifiers for GNAT METRIC
32800
32801         * makegpr.adb (Link_Executables): Take into account the switches
32802         specified in package Linker of the main project.
32803
32804 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
32805
32806         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
32807         the index of the last element is Units.Last, not Units.Table'Last
32808         (which is usually not a valid index within the actually allocated
32809         storage for the table).
32810
32811         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
32812         determines whether to generate a call to a checked storage pool
32813         Dereference action.
32814         Generate such a call only for a dereference that either comes from
32815         source, or is the result of rewriting a dereference that comes from
32816         source.
32817
32818 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
32819
32820         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
32821
32822 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
32823
32824         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
32825         file level, elaborate the stride for inner dimensions in alignment
32826         units, not bytes.
32827
32828         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
32829         in a comment.
32830
32831 2004-06-07  Javier Miranda  <miranda@gnat.com>
32832
32833         * exp_ch6.adb: Correct wrong modification in previous patch
32834
32835 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
32836
32837         * g-trasym.ads: Corrected comment to properly reflect level of support
32838         on VMS.
32839
32840 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
32841
32842         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
32843         includes case of a variable referenced on the left hand side of an
32844         assignment, therefore remove redundant code. Variables and prefixes of
32845         indexed or selected components are now marked as referenced on left
32846         hand side. Warnings are now properly emitted when variables or prefixes
32847         are assigned but not read.
32848
32849         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
32850         left hand side referenced variables. Private access types do not
32851         produce the warning "variable ... is assigned but never read".
32852         Add also additional checks to left hand side referenced variables.
32853         Aliased, renamed objects and access types do not produce the warning
32854         "variable ... is assigned but never read" since other entities may read
32855         the memory location.
32856
32857 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
32858
32859         * Makefile.in: In the powerpc/vxworks-specific section, restore
32860         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
32861         by mistake).
32862
32863 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
32864
32865         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
32866         predefined operators.
32867         Removes spurious type errors from g-trasym-vms.adb.
32868
32869         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
32870         distinct from the operator appearing in the source, call appropriate
32871         routine to insert conversions when needed, and complete resolution of
32872         node.
32873         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
32874         interpretations for rewritten right operand.
32875         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
32876         the other operand is overloaded and the context is a type conversion.
32877
32878 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32879
32880         * ada-tree.def (BLOCK_STMT): Now has two operands.
32881         (BREAK_STMT): New.
32882
32883         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
32884
32885         * gigi.h: (gnat_poplevel): Now returns a tree.
32886
32887         * trans.c (end_block_stmt): Add arg; all callers changed.
32888         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
32889         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
32890         (add_stmt): Set TREE_TYPE.
32891         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
32892         (gnat_expand_stmt, case BREAK_STMT): New case.
32893
32894         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
32895
32896 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
32897
32898         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
32899         procedure Set_Stack_Size that is not needed.
32900
32901 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
32902
32903         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
32904         used for gnatpp input file and for the files upon which it depends
32905
32906 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
32907
32908         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
32909
32910 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
32911
32912         * gnatvsn.ads: Bump version numbers appropriately.
32913         Add new build type.
32914
32915 2004-06-07  Pascal Obry  <obry@gnat.com>
32916
32917         * gnat_ugn.texi: Improve comments about imported names and link names
32918         on Windows. Add a note about the requirement to use -k gnatdll's option
32919         when working with a DLL which has stripped stdcall symbols (no @nn
32920         suffix).
32921
32922 2004-05-27  Vincent Celier  <celier@gnat.com>
32923
32924         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
32925         COMMENTS_LAYOUT=UNTOUCHED
32926
32927         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
32928         symbols-vms-alpha.adb
32929
32930 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
32931
32932         * sem.ads: Clarify documentation on checks suppression.
32933
32934         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
32935
32936 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
32937
32938         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
32939         the case of multiple derivations.
32940         (Is_Object_Reference): For a selected component, verify that the prefix
32941         is itself an object and not a value.
32942
32943         * sem_ch12.adb (Same_Instantiated_Constant): New name for
32944         Same_Instantiated_Entity.
32945         (Same_Instantiated_Variable): Subsidiary to
32946         Check_Formal_Package_Instance, to recognize actuals for in-out generic
32947         formals that are obtained from a previous formal package.
32948         (Instantiate_Subprogram_Body): Emit proper error when
32949         generating code and the proper body of a stub is missing.
32950
32951         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
32952         has a universal interpretation, do the disambiguation here.
32953
32954         * exp_ch4.adb (Expand_N_Type_Conversion,
32955         Expand_N_Unchecked_Type_Conversion): Special handling when target type
32956         is Address, to avoid typing anomalies when Address is a visible integer
32957         type.
32958
32959         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
32960         to determine whether a subprogram should not be marked Pure, even when
32961         declared in a pure package.
32962
32963 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
32964
32965         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
32966
32967         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
32968         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
32969         Update the documentation about the Ravenscar profile, following the
32970         definition found in AI-249.
32971
32972         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
32973         setting the Profile (Ravenscar). This must be done in addition to
32974         setting the required restrictions.
32975
32976         * rtsfind.ads: Add the set of operations defined in package
32977         Ada.Interrupts.
32978
32979         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
32980         restriction.
32981
32982 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
32983
32984         lang-specs.h: Always require -c or -S and always redirect to /dev/null
32985         if -gnatc or -gnats is passed.
32986
32987 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
32988
32989         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
32990         a significant reference. Warnings are now properly emitted when a
32991         discriminated type is not referenced.
32992
32993         * lib-xref.adb (Generate_Reference): A deferred constant completion,
32994         record representation clause or record type discriminant does not
32995         produce a reference to its corresponding entity. Warnings are now
32996         properly emitted when deferred constants and record types are not
32997         referenced.
32998
32999 2004-05-27  Geert Bosch  <bosch@gnat.com>
33000
33001         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
33002         Fixes ACATS Annex G tests.
33003
33004 2004-05-27  Robert Dewar  <dewar@gnat.com>
33005
33006         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
33007         handling WITH
33008
33009 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
33010
33011         * s-interr.adb (Server_Task): Take into account case of early return
33012         from sigwait under e.g. linux.
33013
33014 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
33015
33016         * gnat_ugn.texi: Add description for the new gnatpp options:
33017          -rnb - replace the original source without creating its backup copy
33018          -c0 - do not format comments
33019
33020 2004-05-24  Geert Bosch  <bosch@gnat.com>
33021
33022         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
33023         with 192 bits of precision, sufficient to reduce a double-extended
33024         arguments X with a maximum relative error of T'Machine_Epsilon, for X
33025         in -2.0**32 .. 2.0**32.
33026         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
33027         reduction by the processor, which only uses a 68-bit approximation of
33028         Pi.
33029         (Tan): Always reduce arguments and compute function either using
33030         the processor's fptan instruction, or by dividing sin and cos as needed.
33031
33032 2004-05-24  Doug Rupp  <rupp@gnat.com>
33033
33034         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
33035         gcc error on 32/64 bit VMS.
33036
33037 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
33038
33039         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
33040         since this is what we get for stack overflows although not documented
33041         as such.
33042         Document the issues which may require adjustments to our signal
33043         handlers.
33044
33045 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
33046
33047         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
33048         enclosing dynamic scope if the instantiation is within a generic unit.
33049
33050 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
33051
33052         * exp_dbug.ads: Fix typo.
33053
33054         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
33055         Rename it to its proper name: system-linux-ia64.ads
33056         (stamp-gnatlib1): Remove extra target specific run time files when
33057         setting up the rts directory.
33058
33059 2004-05-24  Javier Miranda  <miranda@gnat.com>
33060
33061         * einfo.ads, einfo.adb (Limited_Views): Removed.
33062         (Limited_View): New attribute that replaces the previous one. It is
33063         now a bona fide package with the limited-view list through the
33064         first_entity and first_private attributes.
33065
33066         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
33067         limited-private-with clause.
33068         (Install_Limited_Withed_Unit): Install the private declarations of a
33069         limited-private-withed package. Update the installation of the shadow
33070         entities according to the new structure (see Build_Limited_Views)
33071         (Build_Limited_Views): Replace the previous implementation of the
33072         limited view by a package entity that references the first shadow
33073         entity plus the first shadow private entity (required for limited-
33074         private-with clause)
33075         (New_Internal_Shadow_Entity): Code cleanup.
33076         (Remove_Limited_With_Clause): Update the implementation to undo the
33077         new work carried out by Build_Limited_Views.
33078         (Build_Chain): Complete documentation.
33079         Replace Ada0Y by Ada 0Y in comments
33080         Minor reformating
33081
33082         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
33083         types the level of accessibility depends on the enclosing type
33084         declaration.
33085
33086         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
33087         entities. Complete documentation of previous change.
33088
33089 2004-05-24  Robert Dewar  <dewar@gnat.com>
33090
33091         * namet.adb: Minor reformatting
33092         Avoid use of name I (replace by J)
33093         Minor code restructuring
33094
33095         * sem_ch6.adb: Minor reformatting
33096
33097         * lib-writ.adb: Do not set restriction as active if this is a
33098         Restriction_Warning case.
33099
33100         * sem_prag.adb: Reset restriction warning flag if real pragma
33101         restriction encountered.
33102
33103         * s-htable.adb: Minor reformatting
33104         Change rotate count to 3 in Hash (improves hash for small strings)
33105
33106         * 5qsystem.ads: Add comments for type Address (no literals allowed).
33107
33108         * gnat_ugn.texi: Add new section of documentation "Code Generation
33109         Control", which describes the use of -m switches.
33110
33111 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
33112
33113         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
33114         through the DECL_INITIAL for renamed variables.
33115
33116 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
33117
33118         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
33119
33120 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
33121
33122         * exp_dbug.ads: Correct comments concerning handling of overloading,
33123         since we no longer use $ anymore.
33124
33125 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
33126
33127         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
33128         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
33129         with illegal subunits.
33130
33131 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
33132
33133         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
33134         body with front-end inlining enabled, check whether an inline pragma
33135         appears immediately after the body and applies to it.
33136
33137         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
33138         enabled and the pragma appears after the body of the subprogram.
33139
33140 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33141
33142         Part of function-at-a-time conversion
33143
33144         * misc.c (adjust_decl_rtl): Deleted.
33145         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
33146         Define.
33147
33148         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
33149         (add_decl_stmt, add_stmt, block_has_vars): New functions.
33150         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
33151
33152         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
33153         when making a decl.
33154         (gnat_to_gnu_entity): Likewise.
33155         Use add_stmt to update setjmp buffer.
33156         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
33157         flush_addressof.
33158         No longer call adjust_decl_rtl.
33159         (DECL_INIT_BY_ASSIGN_P): New macro.
33160         (DECL_STMT_VAR): Likewise.
33161
33162         * trans.c (gigi): Call start_block_stmt to make the outermost
33163         BLOCK_STMT.
33164         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
33165         Call start_block_stmt and end_block_stmt temporarily.
33166         Use gnat_expand_stmt instead of expand_expr_stmt.
33167         (add_decl_stmt): New function.
33168         (tree_transform): Call it.
33169         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
33170         (end_block_stmt): Set type and NULL_STMT.
33171         (gnat_expand_stmt): Make recursize call instead of calling
33172         expand_expr_stmt.
33173         (gnat_expand_stmt, case DECL_STMT): New case.
33174         (set_lineno_from_sloc): Do nothing if global.
33175         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
33176         (start_block_stmt, add_stmt, end_block_stmt): New functions.
33177         (build_block_stmt): Call them.
33178         (gnat_to_code): Don't expand NULL_STMT.
33179         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
33180         args.
33181         (tree_transform): Likewise.
33182         (tree_transform, case N_Null_Statement): Return NULL_STMT.
33183         (gnat_expand_stmt, case NULL_STMT): New case.
33184         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
33185         IF_STMT_TRUE.
33186
33187         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
33188         TREE_ADDRESSABLE.
33189
33190         * utils.c (create_var_decl): Do not call expand_decl or
33191         expand_decl_init.
33192         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
33193         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
33194         here.
33195         (struct e_stack): Add chain_next to GTY.
33196         (struct binding_level): Deleted.
33197         (struct ada_binding_level): New struct.
33198         (free_block_chain): New.
33199         (global_binding_level, clear_binding_level): Deleted.
33200         (global_bindings_p): Rework to see if no chain.
33201         (kept_level_p, set_block): Deleted.
33202         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
33203         new data structure and work directly on BLOCK node.
33204         (gnat_poplevel): Similarly.
33205         (get_decls): Look at BLOCK_VARS.
33206         (insert_block): Work directly on BLOCK node.
33207         (block_has_var): New function.
33208         (pushdecl): Rework for new binding structures.
33209         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
33210         poplevel.
33211         (build_subprog_body): Likewise.
33212         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
33213
33214         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
33215
33216         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
33217         (DECL_STMT_VAR): Likewise.
33218
33219 2004-05-17  Robert Dewar  <dewar@gnat.com>
33220
33221         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
33222         procedure
33223
33224         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
33225         of restriction synonyums by using
33226         Restrict.Process_Restriction_Synonyms.
33227
33228         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
33229
33230         * s-restri.ads (Tasking_Allowed): Correct missing comment
33231
33232         * s-rident.ads: Add entries for restriction synonyms
33233
33234         * ali.adb: Fix some problems with badly formatted ALI files that can
33235         result in infinite loops.
33236
33237         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
33238         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
33239         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
33240         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
33241         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
33242         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
33243         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
33244         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
33245         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
33246         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
33247         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
33248         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
33249         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
33250         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
33251         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
33252         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
33253         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
33254         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
33255         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
33256         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
33257         to Task_Id (minor cleanup).
33258
33259 2004-05-17  Vincent Celier  <celier@gnat.com>
33260
33261         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
33262         directory separator.
33263
33264         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
33265         project being extended, if Languages is not declared in extending
33266         project.
33267
33268 2004-05-17  Javier Miranda  <miranda@gnat.com>
33269
33270         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
33271         limited view of a visible sibling.
33272
33273 2004-05-14  Robert Dewar  <dewar@gnat.com>
33274
33275         * gnat_ugn.texi: Minor change to -gnatS documentation
33276
33277         * sprint.adb: Remove some instances of Assert (False) and for this
33278         purpose replace them by output of a ??? string.
33279
33280         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
33281         Assert (False).
33282
33283         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
33284         flag processing. This was suppressing required dependencies in
33285         No_Run_Time mode and is not needed since the binder does not generate
33286         references for things in libgnat anyway.
33287
33288         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
33289         warning.
33290
33291 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
33292
33293         * gnat_ugn.texi: Document AIX-specific issue with initialization of
33294         resolver library.
33295
33296         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
33297         action for the case of an actual parameter in an init proc call.
33298
33299 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
33300
33301         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
33302         subtype, check visible entities in base type.
33303
33304         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
33305         actions if the object is a renaming.
33306
33307         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
33308         Check_Formal_Package_Instance, to determine more precisely when the
33309         formal and the actual denote the same entity.
33310
33311 2004-05-14  Javier Miranda  <miranda@gnat.com>
33312
33313         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
33314
33315         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
33316         corresponding to a private_with must be removed from visibility; it
33317         will be made visible later, just before we analyze the private part of
33318         the package.
33319         (Check_Private_Child_Unit): Allow private_with clauses in public
33320         siblings.
33321         (Install_Siblings): Make visible the private entities of private-withed
33322         siblings.
33323         (Install_Withed_Unit): Do not install the private withed unit if we
33324         are compiling a package declaration and the Private_With_OK flag was
33325         not set by the caller. These declarations will be installed later,
33326         just before we analyze the private part of the package.
33327
33328         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
33329         during the evaluation of the expression that initializes the object,
33330         decorate it with the expected type to avoid cascade errors.
33331         Code cleanup.
33332
33333         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
33334         subprogram we have to install the private_with clauses after its
33335         specification has been analyzed (as documented in AI-262.TXT).
33336
33337         * sem_ch8.adb (Has_Private_With): New function. Determines if the
33338         current compilation unit has a private with on a given entity.
33339         (Find_Direct_Name): Detect the Beaujolais problem described in
33340         AI-262.TXT
33341
33342         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
33343         provides the functionality of the function Is_Ancestor that was
33344         previously available in sem_ch10. It has been renamed to avoid
33345         overloading.
33346
33347         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
33348
33349 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33350
33351         * utils.c (build_vms_descriptor): Use SImode pointers.
33352
33353 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
33354
33355         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
33356
33357 2004-05-14  GNAT Script  <nobody@gnat.com>
33358
33359         * Make-lang.in: Makefile automatically updated
33360
33361 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
33362
33363         Renaming of target specific files for clarity
33364
33365         * Makefile.in: Rename GNAT target specific files.
33366
33367         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
33368         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
33369         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
33370         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
33371         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
33372         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
33373         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
33374         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
33375         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
33376         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
33377         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
33378         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
33379         51osinte.adb, 51osinte.ads, 51system.ads,
33380         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
33381         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
33382         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
33383         56tpopsp.adb, 57system.ads, 58system.ads,
33384         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
33385         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
33386         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
33387         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
33388         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
33389         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
33390         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
33391         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
33392         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
33393         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
33394         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
33395         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
33396         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
33397         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
33398         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
33399         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
33400         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
33401         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
33402         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
33403         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
33404         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
33405         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
33406         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
33407         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
33408         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
33409         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
33410         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
33411         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
33412         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
33413         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
33414         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
33415         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
33416         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
33417         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
33418         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
33419         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
33420         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
33421         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
33422         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
33423         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
33424
33425         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
33426         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
33427         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
33428         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
33429         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
33430         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
33431         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
33432         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
33433         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
33434         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
33435         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
33436         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
33437         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
33438         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
33439         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
33440         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
33441         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
33442         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
33443         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
33444         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
33445         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
33446         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
33447         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
33448         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
33449         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
33450         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
33451         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
33452         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
33453         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
33454         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
33455         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
33456         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
33457         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
33458         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
33459         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
33460         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
33461         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
33462         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
33463         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
33464         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
33465         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
33466         s-osinte-vms.ads, s-osinte-vxworks.adb,
33467         s-osinte-vxworks.ads, s-osprim-mingw.adb,
33468         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
33469         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
33470         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
33471         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
33472         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
33473         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
33474         s-stchop-vxworks.adb, s-taprop-dummy.adb,
33475         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
33476         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
33477         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
33478         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
33479         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
33480         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
33481         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
33482         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
33483         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
33484         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
33485         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
33486         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
33487         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
33488         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
33489         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
33490         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
33491         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
33492         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
33493         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
33494         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
33495         system-irix-o32.ads, system-linux-x86_64.ads,
33496         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
33497         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
33498         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
33499         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
33500         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
33501         system-vxworks-mips.ads, system-vxworks-ppc.ads,
33502         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
33503         above.
33504
33505 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
33506
33507         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
33508
33509 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
33510
33511         Merge from tree-ssa-20020619-branch.
33512
33513         * config-lang.in (boot_language, build_by_default): Set
33514         to no.
33515         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
33516         (max_size): Add static chain op for call_expr.
33517
33518 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
33519
33520         PR target/15331
33521         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
33522
33523 2004-05-11  Roger Sayle  <roger@eyesopen.com>
33524
33525         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
33526         COND_EXPR.
33527
33528 2004-05-10  Doug Rupp  <rupp@gnat.com>
33529
33530         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
33531         system.aux_dec.
33532
33533         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
33534
33535         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
33536
33537         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
33538         Fixes undefined symbols in IA64 gnatlib.
33539
33540         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
33541
33542         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
33543         Short_Address). This will be moved to system.auxdec.
33544
33545 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
33546
33547         * sem_util.adb: Replace test for presence of a node that is always
33548         present with a call to Discard_Node.
33549
33550         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
33551         Analyze on the library unit node after generation of distribution stub
33552         constructs.  The call was a no-op because Unit_Node has already been
33553         Analyzed, and the tree fragments for the distribution stubs are
33554         analyzed as they are inserted in Exp_Dist.
33555         Update comment regarding to distribution stubs to reflect that we
33556         do not generate stub in separate files anymore.
33557
33558         * einfo.ads: Clarify the fact that a tagged private type has the
33559         E_Record_Type_With_Private Ekind.
33560
33561         * erroutc.adb: Minor reformatting
33562
33563         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
33564         values if line length is increased using -gnatyM (noticed during code
33565         reading).
33566
33567         * eval_fat.adb: Minor reformatting
33568         Put spaces around exponentiation operator
33569
33570 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
33571
33572         PR ada/15005
33573         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
33574         has been rewritten as an explicit dereference, retrieve type of
33575         original node to check for possibly unconstrained record type.
33576
33577 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
33578
33579         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
33580         overriding, use the operation of the parent unconditionally.
33581
33582         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
33583         operation when either operand is a literal, to avoid further
33584         ambiguities.
33585
33586         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
33587         overridden by a previous explicit declaration, mark the previous entity
33588         as overriding.
33589
33590         * sem_disp.adb (Check_Dispatching_Operation): New predicate
33591         Is_Visibly_Controlled, to determine whether a declaration of a
33592         primitive control operation for a derived type overrides an inherited
33593         one. Add warning if the explicit declaration does not override.
33594
33595 2004-05-10  Vincent Celier  <celier@gnat.com>
33596
33597         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
33598         some cases when the sources are no longer present.
33599
33600         * make.adb (Collect_Arguments): Fail if an external source, not part
33601         of any project need to be compiled, when switch -x has not been
33602         specified.
33603
33604         * makeusg.adb: Document new switch -x
33605
33606         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
33607         defaulted to False.
33608
33609         * switch-m.adb (Scan_Make_Switches): New switch -x
33610
33611         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
33612         gnatmake switch -x.
33613
33614         * gnat_ugn.texi: Document new gnatmake switch -x
33615
33616 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
33617
33618         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
33619
33620         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
33621         (process_attributes): Likewise.
33622
33623 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
33624
33625         * s-inmaop.ads: Fix spelling mistake in one of the comments.
33626
33627 2004-05-10  Robert Dewar  <dewar@gnat.com>
33628
33629         * gnat_ugn.texi: Document that for config pragma files, the maximum
33630         line length is always 32767.
33631
33632         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
33633         literals is now allowed.
33634
33635         * gnat-style.texi: Remove statement about splitting long lines before
33636         an operator rather than after, since we do not follow this rule at all.
33637         Clarify rule (really lack of rule) for spaces around exponentiation
33638
33639         * sem_elim.adb: Allow concatenation of string literals as well as a
33640         single string literal for pragma arguments.
33641
33642         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
33643
33644         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
33645         written for append case.
33646
33647         * frontend.adb: Changes to avoid checking max line length in config
33648         pragma files.
33649
33650         * g-os_lib.ads: Minor reformatting
33651
33652         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
33653         wrong in any case. Instead use standard value. Noticed during code
33654         reading.
33655
33656         * opt.ads (Max_Line_Length): New field, used to implement removal of
33657         limitation on length of lines when scanning config pragma files.
33658
33659         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
33660         makeutl.ads, makeutl.adb: Minor reformatting
33661
33662         * scn.adb: Do not check line length while scanning config pragma files
33663         Do not check line length while scanning out license information
33664
33665         * scng.adb: Changes to avoid line length checks while parsing config
33666         pragma files.
33667
33668 2004-05-10  GNAT Script  <nobody@gnat.com>
33669
33670         * Make-lang.in: Makefile automatically updated
33671
33672 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
33673
33674         * osint.adb (Find_Program_Name): Fix handling of VMS version
33675         number.
33676
33677 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
33678
33679         * g-os_lib.ads (Invalid_Time): New constant
33680
33681         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
33682         return OS_Time instead of time_t to match what is imported by Ada.
33683         Now return -1 if the file doesn't exist, instead of a random value
33684
33685 2004-05-05  Robert Dewar  <dewar@gnat.com>
33686
33687         * usage.adb: Add line for -gnatR?s switch
33688
33689         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
33690
33691         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
33692         and for Match (Data_First, Data_last)
33693
33694         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
33695         written when we are dealing with multi-unit files.
33696
33697 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
33698
33699         * Makefile.in: Remove unused targets and variables.
33700
33701 2004-05-05  Vincent Celier  <celier@gnat.com>
33702
33703         * switch-m.adb: New gnatmake switch -eI
33704
33705         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
33706         of new gnatmake switch -eInnn.
33707
33708         * makegpr.adb: Take into account new parameters Index and Src_Index in
33709         Prj.Util.
33710
33711         * clean.adb: Implement support for multi-unit sources, including new
33712         switch -i.
33713
33714         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
33715         Src_Index.
33716
33717         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
33718         (Extract_From_Q): New out parameter Index
33719         (Mark, Is_Marked): Subprograms moved to Makeutl
33720         (Switches_Of): New parameter Source_Index
33721         (Add_Switch): New parameter Index
33722         (Check): New parameter Source_Index
33723         (Collect_Arguments): New parameter Source_Index
33724         (Collect_Arguments_And_Compile): New parameter Source_Index
33725         (Compile): New parameter Source_Index
33726         Put subprograms in alphabetical order
33727         Add support for multi-source sources, including in project files.
33728
33729         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
33730         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
33731         Make.
33732
33733         * makeusg.adb: New gnatmake switch -eInnn
33734
33735         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
33736         Prj.Util.Value_Of.
33737
33738         * opt.ads (Main_Index): New variable, defaulted to 0.
33739
33740         * osint.ads, osinte.adb (Add_File): New parameter Index
33741         (Current_Source_Index): New function
33742
33743         * prj.adb: Take into account new components Index and Src_Index
33744
33745         * prj.ads (String_Element): New component Index
33746         (Variable_Value): New component Index
33747         (Array_Element): New component Src_Index
33748
33749         * prj-attr.adb: Indicate that optional index may be specified for
33750         attributes Main, Executable, Spec, Body and some of Switches.
33751
33752         * prj-attr.ads (Attribute_Kind): New values for optional indexes
33753         (Attribute_Record): New component Optional_Index
33754
33755         * prj-com.ads (File_Name_Data): New component Index
33756
33757         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
33758
33759         * prj-env.adb (Put): Output optional index
33760
33761         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
33762         attributes Spec and Body.
33763
33764         * prj-nmsc.adb: Process optional indexes
33765
33766         * prj-pp.adb: Ouput "at" for optional indexes
33767
33768         * prj-proc.adb: Take into account optional indexes
33769
33770         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
33771         Optional_Index. For string literal,
33772         process optional index when Optional_Index is True.
33773         (Parse_Expresion): New Boolean parameter Optional_Index
33774
33775         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
33776         (Set_Source_Index_Of): New procedure
33777
33778         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
33779         index.
33780
33781         * prj-util.ads (Executable_Of): New parameter Index
33782         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
33783         New parameter Src_Index, defaulted to 0.
33784
33785 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
33786
33787         PR ada/15257
33788         * sem_ch3.adb (Access_Definition): If this is an access parameter
33789         whose designated type is imported through a limited_with clause, do
33790         not add the enclosing subprogram to the list of private dependents of
33791         the type.
33792
33793 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
33794
33795         PR ada/15258
33796         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
33797         a limited_with clause, and the other is its non-limited view.
33798
33799 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
33800
33801         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
33802
33803         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
33804         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
33805         Stand.Boolean_Literals to produce references to entities
33806         Standard_False and Standard_True from compile-time computed boolean
33807         values.
33808
33809         * stand.ads (Boolean_Literals): New variable, provides the entity
33810         values for False and True, for use by the expander.
33811
33812 2004-05-05  Doug Rupp  <rupp@gnat.com>
33813
33814         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
33815         5vinmaop.adb: Unchecked convert Short_Address vice Address
33816
33817         * adaint.c, raise.c: Caste CRTL function return value
33818         to avoid gcc error on 32/64 bit IVMS.
33819
33820         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
33821         target = IA64/VMS.
33822
33823         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
33824
33825         * 5qsystem.ads (Address): Declare as Long_Integer
33826         (Short_Address): Declare as 32 bit subtype of Address
33827         Declare  abstract address operations to avoid gratuitous ambiguities.
33828
33829 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
33830
33831         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
33832         instead of the old Boolean_Entry_Barriers.
33833         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
33834
33835 2004-05-05  GNAT Script  <nobody@gnat.com>
33836
33837         * Make-lang.in: Makefile automatically updated
33838
33839 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
33840
33841         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
33842
33843 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
33844
33845         PR ada/15152
33846         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
33847         alone. Replacing object references by literals is inappropriate in a
33848         so low level context.
33849
33850 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
33851
33852         * a-exexpr.adb: Add comments
33853
33854 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
33855
33856         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
33857         declare the Ancestor_Tags array in Type_Specific_Data with a small size
33858         without risking a bounds check error when accessing one of its
33859         components.
33860         (Type_Specific_Data): Define Ancestor_Tags as a small array.
33861         This prevents us from hitting a limitation during the debug info
33862         generation when using stabs.
33863
33864         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
33865         small array.
33866         This prevents us from hitting a limitation during the debug info
33867         generation when using stabs.
33868
33869 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
33870
33871         lang-specs.h: Remove -gnatz* from specs.
33872
33873 2004-05-03  Vincent Celier  <celier@gnat.com>
33874
33875         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
33876
33877         * Make-lang.in, Makefile.in: Add gprmake
33878
33879 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
33880
33881         * sem_aggr.adb: Fix typo in comment.
33882
33883 2004-05-03  Robert Dewar  <dewar@gnat.com>
33884
33885         * make.adb: Minor reformatting
33886
33887         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
33888
33889         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
33890         so that it works when address is not a private type.
33891
33892         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
33893         properly with rewritten unchecked conversions. This prevents
33894         order-of-elaboration issues that can otherwise arise.
33895         (Minimum_Size): Don't check size of access types under VMS
33896
33897         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
33898         interpretations of integer literals as type System.Address.
33899
33900         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
33901         (Is_Descendent_Of): New function
33902
33903 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
33904
33905         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
33906         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
33907         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
33908
33909         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
33910         of the old Max_Entry_Queue_Depth.
33911
33912         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
33913         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
33914         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
33915
33916         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
33917         New entry for proper handling of Max_Entry_Queue_Depth.
33918         New entry for proper handling of No_Dynamic_Interrupts.
33919
33920         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
33921         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
33922         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
33923         the GNAT specific restriction Max_Entry_Queue_Depth.
33924         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
33925         the GNAT specific restriction No_Dynamic_Interrupts.
33926
33927         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
33928         instead of the old Boolean_Entry_Barriers.
33929         Use the new restriction No_Dynamic_Attachment instead of the old
33930         No_Dynamic_Interrupts.
33931
33932         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
33933         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
33934
33935         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
33936         of the old Max_Entry_Queue_Depth.
33937
33938 2004-05-03  GNAT Script  <nobody@gnat.com>
33939
33940         * Make-lang.in: Makefile automatically updated
33941
33942 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
33943
33944         * checks.adb (Enable_Range_Check): If the prefix of an index component
33945         is an access to an unconstrained array, perform check unconditionally.
33946
33947 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33948
33949         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
33950         Component_Clause.
33951
33952 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
33953
33954         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
33955         alternate stack setting. There was no support for the tasking cases
33956         and the changes eventually caused a number of side-effect failures in
33957         the non-tasking case too.
33958
33959 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
33960
33961         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
33962         -gnats is passed.
33963
33964 2004-04-29  Vincent Celier  <celier@gnat.com>
33965
33966         * make.adb (Gnatmake): Increase max size of argument array for
33967         gnatbind for the potential addition of -F.
33968         If there are Stand-Alone Library projects, invoke gnatbind with -F to
33969         be sure that elaboration flags will be checked.
33970
33971         * switch-c.adb: Correct call to Scan_Pos for -gnateI
33972
33973 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
33974
33975         * sem_warn.adb (Check_References): Move '<access-variable> may be
33976         null' warning out of under Warn_On_No_Value_Assigned.
33977
33978 2004-04-29  Ed Falis  <falis@gnat.com>
33979
33980         * gnat_ugn.texi: Fixed texi error
33981
33982 2004-04-29  Robert Dewar  <dewar@gnat.com>
33983
33984         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
33985         abstract operations if they come from predefined files.
33986
33987         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
33988         Dynamic, not RM).
33989
33990         * s-addope.adb: Correct obvious error in mod function
33991
33992 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
33993
33994         * Makefile.in: Add target pairs for powerpc darwin*
33995         tasking support.
33996
33997         * a-intnam-darwin.ads, s-osinte-darwin.adb,
33998         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
33999
34000 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
34001
34002         * Makefile.in: Add target macro definitions for s390*-linux*.
34003         * system-linux-s390.ads: New file.
34004         * system-linux-s390x.ads: New file.
34005
34006 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
34007
34008         * gnat_ugn.texi: Correct argument to @setfilename.
34009
34010 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
34011
34012         * a-exexpr.adb (Unwind_Word): New data type.
34013         (Unwind_Exception): Use it as type of Private1 and Private2.
34014
34015         * raise.c (db_action_for): Fix debug printf.
34016
34017 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
34018
34019         * a-wtmoio.ads: Formal type must be a modular type, not a signed
34020         integer type.
34021
34022 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34023
34024         * decl.c (gnat_to_gnu_entity, case object): Call
34025         __builtin_update_setjmp_buf.
34026
34027         * gigi.h (update_setjmp_buf): Deleted.
34028         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
34029
34030         * misc.c: (update_setjmp_buf): Deleted.
34031
34032         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
34033         around block of RTL.
34034
34035         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
34036
34037 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
34038
34039         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
34040         subprogram for which no pragma All_Calls_Remote applies, store the
34041         address of the real subprogram in the underlying record type, so local
34042         dereferences do not go through the PCS.
34043
34044 2004-04-26  Robert Dewar  <dewar@gnat.com>
34045
34046         * i-c.ads: Add some type qualifications to avoid ambiguities when
34047         compiling with s-auxdec.ads and a non-private address type.
34048
34049 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
34050
34051         * Makefile.rtl: Fix error in previous check-in:
34052         Add s-addope.o to non tasking object list (rather than tasking object
34053         list).
34054
34055 2004-04-26  Javier Miranda  <miranda@gnat.com>
34056
34057         * sem_aggr.adb: Fix typo in comments
34058         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
34059         Required to check the null-exclusion attribute.
34060
34061         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
34062         case of anonymous access types in record and array components. For a
34063         component definition the level is the same of the enclosing composite
34064         type.
34065
34066         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
34067         that are anonymous access types the level of accessibility depends on
34068         the enclosing type declaration. In order to have this information, set
34069         the scope of the anonymous access type to the enclosing record type
34070         declaration.
34071         (Array_Type_Declaration): In case of components that are anonymous
34072         access types the level of accessibility depends on the enclosing type
34073         declaration. In order to have this information, set the scope of the
34074         anonymous access type to the enclosing array type declaration.
34075
34076         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
34077         access type.
34078
34079         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
34080         renaming of anonymous access-to-constant types allowed if and only if
34081         the renamed object is access-to-constant.
34082
34083         * sem_util.adb (Type_Access_Level): In case of anonymous access types
34084         that are component_definition or discriminants of a nonlimited type,
34085         the level is the same as that of the enclosing component type.
34086
34087 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
34088
34089         * sem_elim.adb: Some minor code reorganization from code reading. Fix
34090         misprint in the function name (File_Name_Match).
34091
34092 2004-04-23  Laurent Guerby  <laurent@guerby.net>
34093
34094         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
34095         install.
34096
34097 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
34098
34099         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
34100
34101 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
34102
34103         * adaint.c (__gnat_try_lock): No longer requires that the parent
34104         directory be writable, the directory itself is enough.
34105         (gnat_is_absolute_path): Change profile, so that the call from
34106         GNAT.OS_Lib can be made more efficient.
34107
34108         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
34109         from GNAT.OS_Lib can be made more efficient.
34110
34111         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
34112         one copy of the file name. Found by code reading.
34113
34114 2004-04-23  Vincent Celier  <celier@gnat.com>
34115
34116         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
34117         Correct documentation on gnatmake switches transmitted to the compiler
34118
34119         * ali.ads: Minor comment fix
34120
34121 2004-04-23  Javier Miranda  <miranda@gnat.com>
34122
34123         * sem_ch6.adb: (Confirming Types): Code cleanup
34124
34125         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
34126         subprogram types: E_Anonymous_Access_Subprogram_Type and
34127         E_Anonymous_Access_Protected_Subprogram_Type.
34128
34129 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
34130
34131         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
34132         whether a pragma All_Calls_Remote applies to the subprogram on which
34133         'Access is taken.
34134         No functional change is introduced by this revision; the new parameter
34135         will be used to allow calls to local RCI subprograms to be optimized
34136         to not use the PCS in the case where no pragma All_Calls_Remote applies,
34137         as is already done in the PolyORB implementation of the DSA.
34138
34139         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
34140         whether a pragma All_Calls_Remote applies to the subprogram on which
34141         'Access is taken.
34142         No functional change is introduced by this revision; the new parameter
34143         will be used to allow calls to local RCI subprograms to be optimized
34144         to not use the PCS in the case where no pragma All_Calls_Remote applies,
34145         as is already done in the PolyORB implementation of the DSA.
34146
34147 2004-04-23  Robert Dewar  <dewar@gnat.com>
34148
34149         * Makefile.rtl: Add entry for s-addope.o in run time library list
34150         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
34151         * s-addope.ads, s-addope.adb: New files.
34152
34153         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
34154         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
34155         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
34156         System.Address to be non-private and signed.
34157
34158         * sem_elim.adb: Minor reformatting (fairly extensive)
34159         Some minor code reorganization from code reading
34160         Add a couple of ??? comments
34161
34162 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34163
34164         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
34165         (tree_transform, case N_If_Statement): Remove non-determinism.
34166
34167         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
34168
34169 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
34170
34171         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
34172         Eliminate' section.
34173
34174         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
34175         no longer used as a parameter name for Eliminate pragma).
34176
34177 2004-04-22  Laurent Guerby  <laurent@guerby.net>
34178
34179         PR optimization/14984
34180         PR optimization/14985
34181         * trans.c (gigi): Fix non determinism leading to bootstrap
34182         comparison failures.
34183
34184 2004-04-21  Pascal Obry  <obry@gnat.com>
34185
34186         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
34187         passed to spawnvp() to properly handle program pathname with spaces on
34188         Win32.
34189
34190 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
34191
34192         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
34193         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
34194         unlocked in case of exceptions.
34195
34196 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
34197
34198         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
34199         This function does not exist anymore.
34200
34201 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
34202
34203         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
34204
34205         * link.c: Move variables to the __gnat name space.
34206
34207         * Makefile.in: list link.o explicitly when needed.
34208
34209         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
34210
34211 2004-04-21  Javier Miranda  <miranda@gnat.com>
34212
34213         * einfo.adb (Original_Access_Type): New subprogram
34214         (Set_Original_Access_Type): New subprogram
34215         (Write_Field21_Name): Write the name of the new field
34216
34217         * einfo.ads (Original_Access_Type): New field present in access to
34218         subprogram types.
34219         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
34220         E_Anonymous_Access_Protected_Subprogram_Type.
34221
34222         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
34223         subprogram types.
34224
34225         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
34226         to anonymous access to subprogram types.
34227
34228         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
34229         to subprogram types.
34230
34231         * sem_ch3.adb (Access_Definition): Complete decoration of entities
34232         corresponding to anonymous access to subprogram types.
34233         (Analyze_Component_Declaration): Add new actual to the call to
34234         subprogram replace_anonymous_access_to_protected_subprogram.
34235         (Array_Type_Declaration): Add new actual to the call to subprogram
34236         replace_anonymous_access_to_protected_subprogram.
34237         (Process_Discriminants): Add new actual to the call to subprogram
34238         replace_anonymous_access_to_protected_subprogram.
34239         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
34240
34241         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
34242         formal.
34243
34244         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
34245         access to subprogram types.
34246
34247         * sem_util.adb (Has_Declarations): Addition of package_specification
34248         nodes.
34249
34250 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
34251
34252         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
34253         inlined flags to renamed entity only if in current unit.
34254
34255 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
34256
34257         * s-parint.ads: Add DSA implementation marker.
34258
34259         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
34260         value of System.Partition_Interface.DSA_Implementation to determine
34261         what version of the distributed systems annex is available (no
34262         implementation, GLADE, or PolyORB).
34263
34264 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
34265
34266         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
34267
34268 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34269
34270         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
34271         with new type if alias sets differ.
34272         Fixes ACATS c41103b.
34273
34274 2004-04-21  Vincent Celier  <celier@gnat.com>
34275
34276         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
34277         Add array Lang_Args for the language specific compiling argument
34278         switches.
34279
34280         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
34281
34282 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
34283
34284         * gnat_rm.texi: Update the descripton of the Eliminate pragma
34285         according to the recent changes in the format of the parameters of the
34286         pragma (replacing Homonym_Number with Source_Location).
34287
34288 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
34289
34290         * 5isystem.ads: Removed, unused.
34291
34292         * gnat_rm.texi: Redo 1.13 change.
34293
34294 2004-04-19  Robert Dewar  <dewar@gnat.com>
34295
34296         * s-stoele.ads: Clean up definition of Storage_Offset (the new
34297         definition is cleaner, avoids the kludge of explicit Standard operator
34298         references, and also is consistent with a visible System.Address with
34299         no visible operations.
34300
34301         * s-geveop.adb: Add declarations to avoid assumption of visible
34302         operations on type System.Address (since these might not be available
34303         if Address is a non-private type for which the operations
34304         are made abstract).
34305
34306         * sem_eval.adb: Minor reformatting
34307
34308         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
34309         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
34310         reformatting (new function spec format).
34311
34312         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
34313         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
34314         s-caun64.adb: Add declarations to avoid assumption of visible
34315         operations on type System.Address (since these might not be available
34316         if Address is a non-private type for which the operations are made
34317         abstract).
34318
34319         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
34320
34321         * exp_intr.adb: Minor comment update
34322
34323         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
34324
34325         * 5omastop.adb: Add declarations to avoid assumption of visible
34326         operations on type System.Address (since these might not be available
34327         if Address is a non-private type for which the operations
34328         are made abstract).
34329
34330 2004-04-19  Vincent Celier  <celier@gnat.com>
34331
34332         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
34333
34334         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
34335         defaulted to Ada.
34336
34337         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
34338         defaulted to Ada.
34339         Call Check with Process_Languages.
34340         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
34341         with Process_Languages.
34342         (Recursive_Check): New Boolean parameter Process_Languages. Call
34343         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
34344         Process_Languages.
34345
34346         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
34347
34348         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
34349         parameter Ada_Main, defaulted to True.
34350         Check for Ada specific characteristics only when Ada_Main is True.
34351
34352         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
34353
34354         * prj.adb: (Project_Empty): Add new Project_Data components.
34355
34356         * prj.ads: New types and tables for non Ada languages.
34357         (Project_Data): New components Languages, Impl_Suffixes,
34358         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
34359         Include_Path, Include_Data_Set.
34360
34361         * prj-env.ads, prj-env.adb: Minor reformatting
34362
34363         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
34364         Put subprograms in alphabetical order
34365
34366         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
34367         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
34368         Opt.Follow_Links.
34369
34370         * mlib-prj.adb: Back out modification in last version, as they are
34371         incorrect.
34372         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
34373
34374         * make.adb: (Mains): Moved to package Makeutl
34375         (Linker_Opts): Moved to package Makeutl
34376         (Is_External_Assignment): Moved to package Makeutl
34377         (Test_If_Relative_Path): Moved to package Makeutl
34378         (Gnatmake): Move sorting of linker options to function
34379         Makeutl.Linker_Options_Switches.
34380
34381         * makeutl.ads, makeutl.adb: New files.
34382
34383         * Makefile.in: Add makeutl.o to the object files for gnatmake
34384
34385         * makeusg.adb: Add line for new switch -eL.
34386
34387         * gnatls.adb (Image): New function.
34388         (Output_Unit): If in verbose mode, output the list of restrictions
34389         specified by pragmas Restrictions.
34390
34391         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
34392         Text_IO.
34393
34394         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
34395         needed, to put it in the range 1970 (included) - 2026 (excluded).
34396         (Time_Of): Do not shift Unix_Min_Year (1970).
34397         Shift the date by multiple of 56 years, if needed, to put it in the
34398         range 1970 (included) - 2026 (excluded).
34399
34400         * adaint.h, adaint.c (__gnat_set_executable): New function.
34401
34402 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34403
34404         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
34405         and pop GC context.
34406         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
34407         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
34408         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
34409         (tree_transform, case N_Code_Statement): Likewise.
34410         (gnat_expand_stmt, case LABEL_STMT): Don't look at
34411         LABEL_STMT_FIRST_IN_EH.
34412         (gnat_expand_stmt, case ASM_STMT): New case.
34413
34414         * utils2.c (build_unary_op): Properly set TREE_READONLY of
34415         UNCONSTRAINED_ARRAY_REF.
34416
34417         * utils.c (poplevel): Temporarily push/pop GC context around inline
34418         function expansion.
34419
34420         * decl.c (maybe_variable): Properly set TREE_READONLY of
34421         UNCONSTRAINED_ARRAY_REF.
34422         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
34423
34424         * ada-tree.def: (ASM_STMT): New.
34425
34426         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
34427         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
34428         ASM_STMT_INPUT): New.
34429         (ASM_STMT_CLOBBER): Likewise.
34430
34431 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
34432
34433         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
34434         general rcheck mechanism to raise Program_Error for E.4(18), instead
34435         of a custom raiser in System.Partition_Interface.
34436         Part of general cleanup work before PolyORB integration.
34437
34438         * snames.ads, snames.adb: Add new runtime library entities and names
34439         for PolyORB DSA.
34440
34441         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
34442         exp_dist.
34443         (Build_Subprogram_Id): New subprogram provided by exp_dist
34444         Code reorganisation in preparation for PolyORB integration.
34445
34446         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
34447         exp_dist.
34448         (Build_Subprogram_Id): New subprogram provided by exp_dist
34449
34450         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
34451         actual parameter types for call to dereference of an
34452         access-to-subprogram type.
34453
34454         * rtsfind.ads: Add new runtime library entities and names for PolyORB
34455         DSA.
34456
34457         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
34458         instead, which has the same behaviour here since we never pass it a
34459         NULL pointer.
34460
34461         * link.c (run_path_option, Solaris case): Use -Wl, as for other
34462         platforms.
34463
34464         * Makefile.in: adjust object file lists for gnatlink and gnatmake
34465         to account for new dependency upon Interfaces.C.Strings + link.o
34466         For x86 FreeBSD, use 86numaux.
34467
34468         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
34469         from Mlib.Tgt to Mlib.
34470
34471         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
34472         target-independent.
34473
34474         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
34475         target-specific versions of this subprogram, now implemented as a
34476         target-independent function in Mlib.
34477
34478         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
34479         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
34480         (Linker_Library_Path_Option): Remove target-specific versions of this
34481         subprogram, now implemented as a target-independent function in Mlib.
34482
34483         * atree.adb: (Allocate_Initialize_Node): New subprogram.
34484         Factors out node table slots allocation.
34485         (Fix_Parents): New subprogram.
34486         Encapsulate the pattern of fixing up parent pointers for syntactic
34487         children of a rewritten node.
34488         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
34489         (Rewrite): Use New_Copy when creating saved copy of original node.
34490         (Replace): Use Copy_Node to copy nodes.
34491
34492 2004-04-19  Javier Miranda  <miranda@gnat.com>
34493
34494         * sprint.adb (Sprint_Node_Actual): Give support to the new
34495         Access_To_Subprogram node available in Access_Definition nodes. In
34496         addition, give support to the AI-231 node fields: null-exclusion,
34497         all-present, constant-present.
34498
34499         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
34500
34501         * sinfo.ads, sinfo.adb:
34502         New field Access_To_Subprogram_Definition in Access_Definition nodes
34503
34504         * sem_ch6.adb (Process_Formals): Move here the code that creates and
34505         decorates internal subtype declaration corresponding to the
34506         null-excluding formal. This code was previously in Set_Actual_Subtypes.
34507         In addition, carry out some code cleanup on this code. In case of
34508         access to protected subprogram call
34509         Replace_Anonymous_Access_To_Protected_Subprogram.
34510         (Set_Actual_Subtypes): Code cleanup.
34511
34512         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
34513         Find_Type in case of anonymous access renamings. Add warning in case of
34514         null-excluding attribute used in anonymous access renaming.
34515
34516         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
34517         subprogram
34518
34519         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
34520         subprogram.
34521         (Access_Definition): In case of anonymous access to subprograms call
34522         the corresponding semantic routine to decorate the node.
34523         (Access_Subprogram_Declaration): Addition of some comments indicating
34524         some code that probably should be added here. Detected by comparison
34525         with the access_definition subprogram.
34526         (Analyze_Component_Declaration): In case of access to protected
34527         subprogram call Replace_Anonymous_Access_To_Protected.
34528         (Array_Type_Declaration): In case of access to protected subprogram call
34529         Replace_Anonymous_Access_To_Protected_Subprogram.
34530         (Process_Discriminants): In case of access to protected subprogram call
34531         Replace_Anonymous_Access_To_Protected_Subprogram.
34532
34533         * par.adb (P_Access_Definition): New formal that indicates if the
34534         null-exclusion part was present.
34535         (P_Access_Type_Definition): New formal that indicates if the caller has
34536         already parsed the null-excluding part.
34537
34538         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
34539         (P_Identifier_Declarations): Code cleanup and give support to renamings
34540         of anonymous access to subprogram types.
34541         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
34542         (P_Array_Type_Definition): Give support to AI-254.
34543         (P_Component_Items): Give support to AI-254.
34544         (P_Access_Definition): New formal that indicates if the header was
34545         already parsed by the caller.
34546         (P_Access_Type_Definition): New formal that indicates if the caller has
34547         already parsed the null-excluding part.
34548
34549         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
34550         call to P_Access_Definition.
34551
34552 2004-04-19  Geert Bosch  <bosch@gnat.com>
34553
34554         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
34555         the delicate semantics of floating-point to integer conversion.
34556         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
34557
34558         * eval_fat.adb (Machine_Mantissa): Moved to spec.
34559         (Machine_Radix): New function.
34560
34561         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
34562         conversion checks.
34563         (Machine_Radix): New function also for use in conversion checks.
34564
34565 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
34566
34567         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
34568
34569         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
34570         to decorate the access-to-protected subprogram and the equivalent type.
34571
34572         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
34573         to anonymous access to subprogram types.
34574
34575         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
34576         constant-folding, for legality checks in contexts that require an RM
34577         static expression.
34578
34579         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
34580         temporary but stack checking is not enabled, increment serial number
34581         to so that symbol generation is consistent with and without stack
34582         checking.
34583
34584         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
34585         independent on whether stack checking is enabled, caller must check
34586         the corresponding flag.
34587
34588         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
34589         range checks.
34590         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
34591         parent if it has discriminants.
34592         (Build_Derived_Private_Type): Constructed full view does
34593         not come from source.
34594         (Process_Discriminants): Default discriminants on a tagged type are
34595         legal if this is the internal completion of a private untagged
34596         derivation.
34597
34598         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
34599         no constraint checks, because it corresponds to an existing object.
34600
34601         * sem_prag.adb (Process_Convention): Pragma applies
34602         only to subprograms in the same declarative part, i.e. the same unit,
34603         not the same scope.
34604
34605         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
34606         ignore type mismatch on a numeric conversion if expression comes from
34607         expansion.
34608
34609 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
34610
34611         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
34612         Homonym_Number parameter, add processing for Source_Location parameter
34613         corresponding.
34614         (Check_Eliminated): Remove the check for homonym numbers, add the check
34615         for source location traces.
34616
34617         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
34618         with Arg_Source_Location corresponding to the changes in the format of
34619         the pragma.
34620
34621         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
34622         Eliminate pragma corresponding to the changes in the format of the
34623         pragma: Homonym_Number is replaced with Source_Location, two ways of
34624         distinguishing homonyms are mutially-exclusive.
34625
34626 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
34627
34628         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
34629
34630         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
34631         No_Dollar_In_Label, no longer necessary, as it is always True.
34632         (Strip_Suffixes): Likewise.
34633
34634 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
34635
34636         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
34637         modulus for compatibility with size clause on targets with 16-bit
34638         Integer.
34639
34640         * layout.adb (Discrimify): In the case of private types, set Vtyp to
34641         full type to fix type mismatches on calls to size functions for
34642         discriminant-dependent array components.
34643
34644 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
34645
34646         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
34647         lib.
34648
34649 2004-04-19  Pascal Obry  <obry@gnat.com>
34650
34651         * mdll-utl.adb (Locate): New version is idempotent.
34652
34653 2004-04-17  Laurent Guerby  <laurent@guerby.net>
34654
34655         PR ada/14988 (partial)
34656         * impunit.adb: Fix typo.
34657
34658 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
34659
34660         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
34661         and install-rts-cert targets.  Remove all gnatlib and gnattools
34662         targets and all other rts-* targets (moved to libada).  Remove (now)
34663         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
34664         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
34665
34666 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34667
34668         * trans.c (tree_transform): Shortcut returning error_mark_node for
34669         statements in annotate_only_mode.
34670         (tree_transform, case N_Label, case N_Return_Statement,
34671         N_Goto_Statement): Make statement tree instead of generating code.
34672         (tree_transform, case N_Assignment_Statement): No longer check
34673         type_annotate_only.
34674         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
34675         RETURN_STMT): New.
34676         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
34677         New fcns.
34678         (gnat_to_gnu): Collect any RTL generated and deal with it.
34679         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
34680         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
34681         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
34682
34683         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
34684
34685         * ada-tree.def (EXPR_STMT): Fix typo in name.
34686         (BLOCK_STMT, IF_STMT): New nodes.
34687
34688         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
34689         LABEL_STMT_FIRST_IN_EH): New macros.
34690         (RETURN_STMT_EXPR): Likewise.
34691
34692         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
34693         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
34694
34695 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
34696
34697         * atree.ads: Correct documentation on extended nodes.
34698
34699         * link.c: Set run_path_option for FreeBSD.
34700
34701 2004-04-08  Vincent Celier  <celier@gnat.com>
34702
34703         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
34704         one of the ALI file, do not link with DEC lib.
34705
34706         * par.adb Remove the last two characters ("%s" or "%b") when checking
34707         if a language defined unit may be recompiled.
34708
34709 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
34710
34711         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
34712         removal of abstract operation leaves no possible interpretation for
34713         expression.
34714
34715         * sem_eval.adb (Eval_Qualified_Expression): Use
34716         Set_Raises_Constraint_Error on node when needed, so that it does not
34717         get optimized away by subsequent optimizations.
34718
34719         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
34720         operands even when they are not wrapped in a type conversion.
34721
34722 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
34723
34724         * sem_prag.adb (Set_Exported): Warn about making static as result of
34725         export only when the export is coming from source. This may be not
34726         be true e.g. on VMS where we expand export pragmas for exception codes
34727         together with imported or exported exceptions, and we don't want the
34728         user to be warned about something he didn't write.
34729
34730 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
34731
34732         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
34733         duplication between normal entities and those declared as renamings.
34734         No functional change.
34735
34736         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
34737         inline functions returning an unconstrained result.
34738
34739 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
34740
34741         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
34742         conform to what other front-ends do.
34743
34744 2004-04-08  Doug Rupp  <rupp@gnat.com>
34745
34746         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
34747         libraries.
34748
34749 2004-04-06  Pascal Obry  <obry@gnat.com>
34750
34751         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
34752
34753         * osint.adb (Program_Name): Do not look past a directory separator.
34754
34755 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
34756
34757         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
34758
34759         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
34760         requirement for preserving a copy of the original assignment node.
34761
34762         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
34763
34764 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
34765
34766         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
34767         when supported.
34768
34769 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
34770
34771         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
34772         operator calls in functional notation, and apply
34773         Universal_Interpretation to operands, not to their type.
34774
34775 2004-04-06  Robert Dewar  <dewar@gnat.com>
34776
34777         * 5wdirval.adb: Minor reformatting
34778
34779 2004-04-06  Ed Falis  <falis@gnat.com>
34780
34781         * gnat_rm.texi: Improve a reference to the GCC manual
34782
34783 2004-04-05  Vincent Celier  <celier@gnat.com>
34784
34785         * adaint.h, adaint.c: Add function __gnat_named_file_length
34786
34787         * impunit.adb: Add Ada.Directories to the list
34788
34789         * Makefile.in: Add VMS and Windows versions of
34790         Ada.Directories.Validity package body.
34791
34792         * Makefile.rtl: Add a-direct and a-dirval
34793
34794         * mlib-tgt.ads: Minor comment update.
34795
34796         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
34797         a-direct.ads, a-direct.adb: New files.
34798
34799 2004-04-05  Vincent Celier  <celier@gnat.com>
34800
34801         PR ada/13620
34802         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
34803         just to the compiler.
34804
34805 2004-04-05  Robert Dewar  <dewar@gnat.com>
34806
34807         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
34808         returned string is 1.
34809
34810         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
34811
34812         * eval_fat.ads: Minor reformatting
34813
34814         * g-curexc.ads: Document that lower bound of returned string values
34815         is always one.
34816
34817         * gnatlink.adb: Add ??? comment for previous change
34818         (need to document why this is VMS specific)
34819
34820         * s-stoele.ads: Minor reformatting
34821
34822         * tbuild.ads: Minor reformatting throughout (new function specs)
34823
34824         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
34825         after WITH.
34826
34827         * scng.adb: Minor reformatting
34828
34829 2004-04-05  Geert Bosch  <bosch@gnat.com>
34830
34831         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
34832         (Leading_Part): Still perform truncation to machine number if the
34833         specified radix_digits is greater or equal to machine_mantissa.
34834
34835 2004-04-05  Javier Miranda  <miranda@gnat.com>
34836
34837         * par-ch3.adb: Complete documentation of previous change
34838         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
34839         (aliased must appear before constant).
34840
34841         * par-ch4.adb: Complete documentation of previous change.
34842
34843         * par-ch6.adb: Complete documentation of previous change.
34844
34845         * sinfo.ads: Fix typo in commment.
34846
34847 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
34848
34849         * sem_ch3.adb (Inherit_Components): If derived type is private and has
34850         stored discriminants, use its discriminants to constrain parent type,
34851         as is done for non-private derived record types.
34852
34853         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
34854         Ada 2005 AI-310: an abstract non-dispatching operation is not a
34855         candidate interpretation in an overloaded call.
34856
34857         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
34858         expression is Null and target type is not an access type (e.g. a
34859         non-private address type).
34860
34861 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
34862
34863         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
34864         statement whose right-hand side is an inlined call, save a copy of the
34865         original assignment subtree to preserve enough consistency for
34866         Analyze_Assignment to proceed.
34867
34868         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
34869         complete assignment subtree which is now unnecessary, as the expansion
34870         of inlined call has been improved to preserve a consistent assignment
34871         tree.  Note_Possible_Modification must be called only
34872         after checks have been applied, or else unnecessary checks will
34873         be generated.
34874
34875         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
34876         of explicit dereferences that do not Come_From_Source:
34877          - be selective on cases where we must go back to the dereferenced
34878            pointer (an assignment to an implicit dereference must not be
34879            recorded as modifying the pointer);
34880          - do not rely on Original_Node being present (Analyze_Assignment
34881            calls Note_Possible_Modification on a copied tree).
34882
34883         * sem_warn.adb (Check_References): When an unset reference to a pointer
34884         that is never assigned is encountered, prefer '<pointer> may be null'
34885         warning over '<pointer> is never assigned a value'.
34886
34887 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
34888
34889         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
34890         the ABI.
34891
34892 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
34893
34894         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
34895         libexc. We currently don't reference anything in this library and
34896         linking it in triggers linker warnings we don't want to see.
34897
34898         * init.c: Update comments.
34899
34900 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34901
34902         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
34903         * utils.c (create_field_decl): Likewise.
34904         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
34905
34906 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
34907
34908         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
34909         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
34910         Add info directory entry and category.
34911
34912 2004-04-02  Jan Hubicka  <jh@suse.cz>
34913
34914         * utils.c: Include function.h
34915         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
34916
34917 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
34918
34919         PR ada/14150
34920         * Make-lang.in: Clean up generation of documentation
34921
34922         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
34923
34924         * xgnatug.adb: Removed, replaced by xgnatugn.adb
34925
34926         * xgnatugn.adb: Replaces xgnatug.adb
34927
34928         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
34929
34930         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
34931
34932         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
34933         gnat_ug_wnt.texi: Removed.
34934
34935 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
34936
34937         * utils2.c: Update copyright notice.
34938
34939 2004-04-01  Robert Dewar  <dewar@gnat.com>
34940
34941         * checks.adb: Minor reformatting throughout
34942         Note that prev checkin added RM reference to alignment warning
34943
34944 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
34945
34946         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
34947         non-static when building aggregate for bit-packed array.
34948
34949         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
34950         function call that is itself the actual in a procedure call, build
34951         temporary for it.
34952
34953         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
34954         a string literal, create a temporary for it, constant folding only
34955         handles scalars here.
34956
34957 2004-04-01  Vincent Celier  <celier@gnat.com>
34958
34959         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
34960         Error_Msg_SP): New empty procedures to instantiate the Scanner.
34961         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
34962         tokens.
34963         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
34964         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
34965         and get the checksum.
34966
34967         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
34968         already in the Q.
34969         Increase the Marking_Label at the end of the Multiple_Main_Loop,
34970         instead of at the beginning.
34971
34972         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
34973         directly.
34974         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
34975         on VMS.
34976
34977         * osint.ads (Multi_Unit_Index_Character): New Character global variable
34978
34979         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
34980         not '~' directly.
34981
34982         * par.adb: Remove test on file name to detect language defined units.
34983         Add test on unit name, after parsing, to detect language defined units
34984         that are not compiled with -gnatg (except System.RPC and its children)
34985
34986         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
34987         following units without style checking.
34988
34989         * switch-c.adb: Change -gnatC to -gnateI
34990
34991         * usage.adb: Document new switch -gnateInnn
34992
34993         * scng.adb (Accumulate_Token_Checksum): New procedure
34994         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
34995         word or literal number.
34996         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
34997         numbers.
34998
34999 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
35000
35001         * a-tasatt.adb,
35002         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
35003         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
35004         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
35005         5vtpopde.adb: Add missing 'constant' keywords.
35006
35007 2004-04-01  Javier Miranda  <miranda@gnat.com>
35008
35009         * par-ch4.adb: (P_Allocator): Code cleanup
35010
35011         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
35012         attribute.
35013
35014         * sinfo.ads: Complete documentation of previous change
35015
35016 2004-04-01  Pascal Obry  <obry@gnat.com>
35017
35018         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
35019         only on VMS.  This special handling was done because an old GNU/ld bug
35020         on Windows which has been fixed.
35021
35022 2004-04-01  GNAT Script  <nobody@gnat.com>
35023
35024         * Make-lang.in: Makefile automatically updated
35025
35026 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35027
35028         * decl.c (gnat_to_gnu_entity, make_type_from_size):
35029         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
35030         * trans.c (tree_transform, convert_with_check): Likewise.
35031         * utils.c (gnat_signed_or_unsigned_type): Likewise.
35032         (build_vms_descriptor, unchecked_convert): Likewise.
35033         * utils2.c (nonbinary_modular_operation): Likewise.
35034
35035 2004-03-29  Javier Miranda  <miranda@gnat.com>
35036
35037         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
35038         (Install_Null_Excluding_Check): Local subprogram that determines whether
35039         an access node requires a runtime access check and if so inserts the
35040         appropriate run-time check.
35041         (Apply_Access_Check): Call Install_Null_Excluding check if required
35042         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
35043
35044         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
35045
35046         * einfo.ads: Fix typo in comment
35047
35048         * exp_ch3.adb (Build_Assignment): Generate conversion to the
35049         null-excluding type to force the corresponding run-time check.
35050         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
35051         type to force the corresponding run-time check.
35052
35053         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
35054         the null-excluding type to force the corresponding run-time check.
35055
35056         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
35057         case of access types unless they have the null-excluding attribute.
35058
35059         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
35060         part.
35061
35062         * exp_util.ads: Fix typo in comment
35063
35064         * par.adb (P_Null_Exclusion): New subprogram
35065         (P_Subtype_Indication): New formal that indicates if the null-excluding
35066         part has been scanned-out and it was present
35067
35068         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
35069
35070         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
35071         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
35072         type to force the corresponding run-time check
35073         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
35074         components
35075         (Resolve_Array_Aggregate): Carry out some static checks
35076         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
35077
35078         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
35079         attribute must be set only if specified by means of the null-excluding
35080         part. In addition, we must also propagate the access-constant attribute
35081         if present.
35082         (Access_Subprogram_Declaration, Access_Type_Declaration,
35083         Analyze_Component_Declaration, Analyze_Object_Declaration,
35084         Array_Type_Declaration, Process_Discriminants,
35085         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
35086         and carry out some static checks.
35087         (Build_Derived_Access_Type): Set the null-excluding attribute
35088         (Derived_Type_Declaration, Process_Subtype): Carry out some static
35089         checks.
35090
35091         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
35092
35093         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
35094
35095         * sem_ch6.adb (Process_Formals): Carry out some static checks.
35096         (Set_Actual_Subtypes): Generate null-excluding subtype if the
35097         null-excluding part was present; it is not required to be done here in
35098         case of anonymous access types.
35099         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
35100         value.
35101
35102         * sem_res.adb (Resolve_Actuals): Carry out some static check
35103         (Resolve_Null): Allow null in anonymous access
35104
35105         * sinfo.adb: New subprogram Null_Exclusion_Present
35106         All_Present and Constant_Present available on access_definition nodes
35107
35108         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
35109         object_declaration, derived_type_definition, component_definition,
35110         discriminant_specification, access_to_object_definition,
35111         access_function_definition, allocator, access_procedure_definition,
35112         access_definition, parameter_specification, All_Present and
35113         Constant_Present flags available on access_definition nodes.
35114
35115 2004-03-29  Robert Dewar  <dewar@gnat.com>
35116
35117         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
35118         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
35119         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
35120         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
35121         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
35122         sem_prag.adb: Updates to handle multiple units/file
35123
35124         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
35125
35126         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
35127         sem_util.adb: Minor reformatting
35128
35129         * sem_ch12.adb: Add comment for previous change
35130
35131 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
35132
35133         * osint.adb (Executable_Prefix): Set Exec_Name to the current
35134         executable name when not initialized. Otherwise, use its current value.
35135
35136         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
35137         initialize it to another executable name than the current one. This
35138         allows to configure paths for an executable name (gnatmake) different
35139         from the current one (gnatdist).
35140
35141 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
35142
35143         * exp_ch6.adb (Expand_Call): A call to a function declared in the
35144         current unit cannot be inlined if it appears in the body of a withed
35145         unit, to avoid order of elaboration problems in gigi.
35146
35147         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
35148         information for protected (wrapper) operation as well, to simplify gdb
35149         use.
35150
35151         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
35152         protected body, indicate that the entity for the generated spec comes
35153         from source, to ensure that references are properly generated for it.
35154         (Build_Body_To_Inline): Do not inline a function that returns a
35155         controlled type.
35156
35157         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
35158         apply convention to homonyms that are declared explicitly.
35159
35160         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
35161         that renames an equality operator and the operands are overloaded,
35162         resolve them with the declared formal types, before rewriting as an
35163         operator.
35164
35165 2004-03-29  GNAT Script  <nobody@gnat.com>
35166
35167         * Make-lang.in: Makefile automatically updated
35168
35169 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
35170
35171         * memtrack.adb: Log realloc calls, which are treated as free followed
35172         by alloc.
35173
35174 2004-03-25  Vincent Celier  <celier@gnat.com>
35175
35176         * prj-makr.adb (Process_Directories): Detect when a file contains
35177         several units. Do not include such files in the config pragmas or
35178         in the naming scheme.
35179
35180         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
35181         Resolve links only when not in Trusted_Mode.
35182         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
35183         Do not resolve links for the display names.
35184
35185         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
35186         resolve links when computing the display names.
35187
35188 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
35189
35190         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
35191         attribute reference does not denote a subtype, it can be any
35192         expression that has a classwide type, potentially after an implicit
35193         dereference.  In particular, the prefix can be a view conversion for
35194         a classwide type (for which Is_Object_Reference holds), but it can
35195         also be a value conversion for an access-to-classwide type. In the
35196         latter case, there is an implicit dereference, and the original node
35197         for the prefix does not verify Is_Object_Reference.
35198
35199         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
35200         conversion of a discriminant-dependent component of a mutable object
35201         is one itself.
35202
35203 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
35204
35205         * freeze.adb (Freeze_Entity): When an inherited subprogram is
35206         inherited, has convention C, and has unconstrained array parameters,
35207         place the corresponding warning on the derived type declaration rather
35208         than the original subprogram.
35209
35210         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
35211         indication on renaming declaration, if formal has a box and actual
35212         is absent.
35213
35214         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
35215         determine whether to generate an implicit or explicit reference to
35216         the renamed entity.
35217
35218         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
35219         subprogram renaming comes from a defaulted formal subprogram in an
35220         instance.
35221
35222 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
35223
35224         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
35225         value expressions to ensure that calls within a component definition
35226         will be checked (since those are evaluated during the record type's
35227         elaboration).
35228
35229 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
35230
35231         * s-tpobop.adb: Code clean up:
35232         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
35233         code.
35234         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
35235
35236 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
35237
35238         * Makefile.in: Clean up in the ravenscar run time.
35239
35240 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35241
35242         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
35243         of No_Strict_Aliasing to build_pointer_type_for_mode.
35244         * utils.c (update_pointer_to): Walk pointer and ref chains.
35245
35246 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
35247
35248         * ali.ads: Fix Comment about Dynamic_Elab.
35249
35250         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
35251         Has_RACW, Is_Generic, etc.)
35252         (Output_Object, Gnatls): Take into account ALI files not attached to
35253         an object.
35254
35255 2004-03-22  Vincent Celier  <celier@gnat.com>
35256
35257         * gprep.adb: Change all String_Access to Name_Id
35258         (Is_ASCII_Letter): new function
35259         (Double_File_Name_Buffer): New procedure
35260         (Preprocess_Infile_Name): New procedure
35261         (Process_Files): New procedure
35262         (Gnatprep): Check if output and input are existing directories.
35263         Call Process_Files to do the real job.
35264
35265 2004-03-22  Robert Dewar  <dewar@gnat.com>
35266
35267         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
35268         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
35269
35270 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
35271
35272         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
35273         case when the source contains only comments.
35274
35275 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
35276
35277         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
35278         declaration for a child subprogram body that acts as a spec, indicate
35279         that the entity in the declaration needs debugging information.
35280
35281         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
35282         full view if the subtype is created for a constrained record component;
35283         gigi has enough information to construct the record, and there is no
35284         place in the tree for the declaration.
35285
35286         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
35287         serial number for the dummy body that is built for analysis, to avoid
35288         inconsistencies in the generation of internal names when compiling
35289         with -gnatN.
35290
35291 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
35292
35293         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
35294         object.
35295
35296 2004-03-22  GNAT Script  <nobody@gnat.com>
35297
35298         * Make-lang.in: Makefile automatically updated
35299
35300 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35301
35302         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
35303         * trans.c (tree_transform, emit_index_check): Likewise.
35304         * utils.c (build_template): Likewise.
35305         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
35306         (maybe_unconstrained_array, unchecked_convert): Likewise.
35307         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
35308         (build_unary_op): Likewise.
35309         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
35310         (fill_vms_descriptor): Likewise.
35311         (build_call_alloc_dealloc): Likewise.
35312         ALIGN is unsigned.
35313         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
35314
35315 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
35316
35317         PR other/14630
35318         * gnat_ug.texi: Add info directory category and entry.
35319         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35320         gnat_ug_wnt.texi: Regenerate.
35321
35322 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
35323
35324         * ada-tree.h: Update copyright notice.
35325         Minor reformatting.
35326
35327 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
35328
35329         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
35330         as regular exception objects and not as mere integers representing the
35331         condition code.  The latter approach required some dynamics to mask off
35332         severity bits, which did not fit well into the GCC table based model.
35333         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
35334         exception data objects. We don't it and it would conflict with the other
35335         external symbol we have to generate for such exceptions.
35336
35337         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
35338         the special code for VMS exceptions, since these are now represented
35339         as regular exceptions objects.
35340
35341 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35342
35343         * decl.c (debug_no_type_hash): Remove.
35344         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
35345         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
35346
35347 2004-03-19  Laurent Guerby  <laurent@guerby.net>
35348
35349         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
35350         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
35351
35352 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35353
35354         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
35355         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
35356         (TYPE_RM_SIZE_INT): Directly use type.values.
35357         (TREE_LOOP_ID): Clean up check.
35358         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
35359         TYPE_VALUES, not TYPE_FIELDS.
35360         * trans.c (convert_with_check): Delay access of bounds of basetype
35361         until sure is numeric.
35362
35363 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
35364
35365         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
35366
35367         Code clean up:
35368         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
35369         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
35370         Specific.Set instead of direct call to e.g pthread_setspecific.
35371
35372 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
35373
35374         * adaint.c: Update comments.
35375
35376         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
35377         GNATLIB_SHARED for FreeBSD.
35378
35379 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
35380
35381         * init.c [VxWorks]: Do not fix the stack size for the environment task.
35382         When needed (stack checking) the stack size is retrieved
35383         from the VxWorks kernel.
35384
35385         * Makefile.in: Flag -nostdinc is required when building the run time
35386         for avoiding looking for files in the base compiler.
35387         Add the VxWorks specific version of the package body for
35388         System.Stack_checking.Operations (5zstchop.adb).
35389
35390         * Make-lang.in: Add the object file for
35391         System.Stack_Checking.Operations.
35392
35393         * Makefile.rtl: Add object file for the package
35394         System.Stack_Checking.Operations.
35395
35396         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
35397
35398         * s-stache.ads, s-stache.adb: Move the operations related to stack
35399         checking from this package to package System.Stack_Checking.Operations.
35400         This way, stack checking operations are only linked in the final
35401         executable when using the -fstack-check flag.
35402
35403 2004-03-18  Doug Rupp  <rupp@gnat.com>
35404
35405         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
35406         Reorganize ifeq's.
35407
35408         * 5qsystem.ads, 5xcrtl.ads: New files.
35409
35410 2004-03-18  Vincent Celier  <celier@gnat.com>
35411
35412         * prj.adb (Reset): Reset hash table Files_Htable
35413
35414         * prj-env.adb (Source_Paths, Object_Paths): New tables.
35415         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
35416         the procedures Add_To_Path_File.
35417         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
35418         making sure that each directory is present only once and, for object
35419         dirs, when a directory already present is added, the duplicate is
35420         removed and the directory is always put as the last in the table.
35421         Write the path files at the end of these accumulations.
35422
35423         * prj-nmsc.adb (Record_Source): Add source file name in hash table
35424         Files_Htable for all sources.
35425
35426         * prj-proc.adb (Process): Remove restrictions between not directly
35427         related extending projects.
35428
35429 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
35430
35431         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
35432         (Find_Sources): Minor speed optimization.
35433
35434         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
35435         parameter Trusted_Mode.
35436
35437 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
35438
35439         * scn.adb (Determine_License): Take into account a degenerated case
35440         when the source contains only comments.
35441
35442 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
35443
35444         * sem_warn.adb (Check_References): For a warning on a selected
35445         component that does not come from source, locate an uninitialized
35446         component of the record type to produce a more precise error message.
35447
35448 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
35449
35450         * 3zsoccon.ads: Fix multicast options.
35451
35452         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
35453         in the spec.
35454
35455 2004-03-15  Robert Dewar  <dewar@gnat.com>
35456
35457         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
35458         pragma used for a private type.
35459
35460         * lib-xref.adb (Generate_Reference): Do not generate warning if
35461         reference is in a different unit from the pragma Unreferenced.
35462
35463         * 5vtpopde.adb: Minor reformatting
35464         Fix casing of To_Task_ID
35465
35466         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
35467         flag if we have an unchecked conversion to an access type in the same
35468         unit.
35469
35470 2004-03-15  Geert Bosch  <bosch@gnat.com>
35471
35472         * a-ngcoty.adb (Modulus): In alternate formula for large real or
35473         imaginary parts, use Double precision throughout.
35474
35475         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
35476         we want to be able to compile run-time with -gnata for testing, but
35477         this may also be instantiated in user code that is compiled with -gnata.
35478
35479 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
35480
35481         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
35482         codes. Having a separate type for this is useful to enforce consistency
35483         throughout the various run-time units.
35484         (Exception_Data): Use Exception_Code for Import_Code.
35485
35486         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
35487         Natural and Integer in various places.
35488         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
35489         with the severity bits masked off.
35490         (Register_VMS_Exception): Handle the additional exception data pointer
35491         argument.
35492
35493         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
35494         component, now reflected by an exported accessor.
35495         (is_handled_by): New routine to compute whether the propagated
35496         occurrence matches some handler choice specification. Extracted out of
35497         get_action_description_for, and expanded to take care of the VMS
35498         specifities.
35499         (get_action_description_for): Use is_handled_by instead of an explicit
35500         complex condition to decide if the current choice at hand catches the
35501         propagated occurrence.
35502
35503         * raise.h (Exception_Code): New type for C.
35504
35505         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
35506         System.Standard_Library.Exception_Code, to allow references from the
35507         pragma import/export expander.
35508
35509         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
35510         New accessors to allow easy access to GNAT exception data
35511         characteristics.
35512         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
35513         redundant Handled_By_Others component, helper for the personality
35514         routine which will now be able to call the appropriate exception data
35515         accessor instead.
35516
35517         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
35518         component of Standard_Exception_Type to be the closest possible to
35519         Exception_Code in System.Standard_Library, that we cannot get at this
35520         point. Expand a ??? comment to notify that this type node should
35521         probably be rewritten later on.
35522
35523         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
35524         registration call to include a pointer to the exception object in the
35525         arguments.
35526
35527         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
35528         instead of int and explicit bitmasks.
35529
35530 2004-03-15  Vincent Celier  <celier@gnat.com>
35531
35532         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
35533         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
35534
35535         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
35536         longer needed now that it is in the spec of
35537         System.Tasking.Task_Attributes.
35538
35539         * adaint.h, adaint.c: (__gnat_create_output_file): New function
35540
35541         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
35542
35543         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
35544
35545         * make.adb (Gnatmake): Do not check the executable suffix; it is being
35546         taken care of in Scan_Make_Arg.
35547         (Scan_Make_Arg): Add the executable suffix only if the argument
35548         following -o, in canonical case, does not end with the executable
35549         suffix.  When in verbose mode and executable file name does not end
35550         with executable suffix, output the executable name, in canonical case.
35551
35552         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
35553         to avoid warnings when instantiating Ada.Task_Attributes.
35554         Minor reformating.
35555
35556         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
35557         in the correct order.
35558
35559         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
35560         redirect standard output and error to a file for the invocation of the
35561         compiler, then read the file.
35562
35563         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
35564         directory, instead of the Value.
35565         (Find_Source_Dirs): Remove useless code & comments.
35566
35567 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
35568
35569         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
35570         tagged type is inherited, and the parent operation is not frozen yet,
35571         force generation of a freeze node for the inherited operation, so the
35572         corresponding dispatch entry is properly initialized.
35573         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
35574         when looking for user-defined equality operation.
35575
35576         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
35577         boolean when locating primitive equality of tagged component.
35578
35579         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
35580         bit-aligned field and the right-hand side a string literal, introduce
35581         a temporary before expanding assignment into a loop.
35582
35583         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
35584         priority in full, to ensure that any expanded subepxressions of it are
35585         elaborated in the scope of the init_proc.
35586
35587         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
35588         after object declaration, skipping over code that may have been
35589         generated for validity checks.
35590
35591         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
35592         discriminants, ignore the known discriminants of its full view, if
35593         any, to check legality.
35594
35595         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
35596         component if type has unknown discriminants.
35597         (Analyze_Private_Extension_Declaration): Discriminant constraint is
35598         null if type has unknown discriminants.
35599
35600         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
35601         for end label when present.
35602
35603         * s-fileio.adb (Open): When called with a C_Stream, use given name for
35604         temporary file, rather than an empty string.
35605
35606 2004-03-15  Ed Falis  <falis@gnat.com>
35607
35608         * s-thread.adb: Removed, no longer used.
35609
35610 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35611
35612         * decl.c (target.h): Now include.
35613         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
35614         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
35615         (validate_size): For POINTER_TYPE, get smallest size permitted on
35616         machine.
35617
35618         * fe.h: Sort Einfo decls and add Set_Mechanism.
35619
35620         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
35621         (ada/decl.o): Depends on target.h.
35622
35623         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
35624         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
35625
35626 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
35627
35628         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
35629
35630         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
35631         Insert_Dereference_Action when rewriting an implicit dereference into
35632         an explicit one, this will be taken care of during expansion of the
35633         explicit dereference.
35634         (Expand_N_Slice): Same. Always do the rewriting, even for the case
35635         of non-packed slices, since the dereference action generated by
35636         expansion of the explicit dereference is needed in any case.
35637         (Expand_N_Selected_Component): When rewriting an implicit dereference,
35638         analyze and resolve the rewritten explicit dereference so it is seen
35639         by the expander.
35640         (Insert_Dereference_Action): This procedure is now called only for the
35641         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
35642         dereferences that do not come from source (including explicit
35643         dereferences resulting from rewriting implicit ones), but do not
35644         recursively insert a check for the dereference nodes contained within
35645         the check.
35646         (Insert_Dereference_Action): Clarify and correct comment.
35647
35648 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
35649
35650         PR ada/14131
35651         Move language detection to the top level.
35652         * config-lang.in: Build by default.
35653
35654 2004-03-05  Robert Dewar  <dewar@gnat.com>
35655
35656         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
35657
35658         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
35659         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
35660         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
35661         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
35662         unchecked conversion to spec to avoid warnings.
35663
35664         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
35665         to Task_ID
35666
35667         * 7stpopsp.adb: Correct casing in To_Task_ID call
35668
35669         * a-strsea.ads, a-strsea.adb: Minor reformatting
35670
35671         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
35672
35673         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
35674         Adjust Max_Msg_Length to be clearly large enough.
35675
35676         * fe.h: Define In_Same_Source_Unit
35677
35678         * osint.adb: Add pragma Warnings Off to suppress warnings
35679         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
35680         aliasing warnings.
35681
35682         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
35683
35684         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
35685
35686         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
35687
35688         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
35689
35690         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
35691
35692         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
35693         node. We now do generate them for gcc back end.
35694
35695         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
35696         warning.
35697
35698         * sinput-c.adb: Fix bad name in header.
35699         Add pragma Warnings Off to suppress aliasing warning.
35700
35701         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
35702
35703         * snames.h, snames.ads, snames.adb: Add entry for pragma
35704         No_Strict_Aliasing.
35705
35706 2004-03-05  Vincent Celier  <celier@gnat.com>
35707
35708         * prj-com.ads: Add hash table Files_Htable to check when a file name
35709         is already a source of another project.
35710
35711         * prj-nmsc.adb (Record_Source): Before recording a new source, check
35712         if its file name is not already a source of another project. Report an
35713         error if it is.
35714
35715         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
35716         source file name, call gnatpp with all the sources of the main project.
35717
35718         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
35719         of file names.
35720
35721         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
35722         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
35723         /RUNTIME_SYSTEM=, converted to --RTS=
35724         /NOTABS, converted to -notabs
35725
35726 2004-03-05  Pascal Obry  <obry@gnat.com>
35727
35728         * make.adb: Minor reformatting.
35729
35730 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
35731
35732         Part of implemention of AI-262.
35733         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
35734
35735         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
35736         procedure.
35737
35738         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
35739         when component type is a partially constrained class-wide subtype.
35740         (Constrain_Discriminated_Type): If parent type has unknown
35741         discriminants, a constraint is illegal, even if full view has
35742         discriminants.
35743         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
35744         with unknown discriminants whose full view is a discriminated record.
35745
35746         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
35747         flag, to handle properly derivations of tagged types with unknown
35748         discriminants.
35749         (Analyze_Package_Spec, Analyze_Package_Body): Install
35750         Private_With_Clauses before analyzing private part or body.
35751
35752         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
35753         Has_Discriminants can be true for a given type (documentation).
35754
35755 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
35756
35757         * s-restri.ads: Fix license (GPL->GMGPL).
35758
35759         * s-tassta.adb: Minor reformatting.
35760
35761         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
35762         by calls to Exit_One_ATC_Level, since additional clean up is performed
35763         by this function.
35764
35765         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
35766         by calls to Exit_One_ATC_Level, since additional clean up is performed
35767         by this function.
35768
35769 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35770
35771         * trans.c: Reflect GCC changes to fix bootstrap problem.
35772         Add warning for suspicious aliasing unchecked conversion.
35773
35774 2004-03-05  GNAT Script  <nobody@gnat.com>
35775
35776         * Make-lang.in: Makefile automatically updated
35777
35778 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
35779
35780         * ali.adb (Read_Instantiation_Instance): Do not modify the
35781         current_file_num when reading information about instantiations, since
35782         this corrupts files in later references.
35783
35784 2004-03-02  Vincent Celier  <celier@gnat.com>
35785
35786         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
35787         before checking if it is read-only.
35788
35789         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
35790         of SRC_DIRS and eliminate duplicates.
35791
35792         * gprcmd.adb: Replace command "path" with command "path_sep" to return
35793         the path separator.
35794         (Usage): Document path_sep
35795
35796         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
35797         C++ compiler. No need for a script.
35798         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
35799         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
35800         subst.
35801
35802         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
35803         where there are Ada sources.
35804         (Set_Ada_Paths): Only add to the include path the source dirs of project
35805         with Ada sources.
35806         (Add_To_Path): Add the Display_Values of the directories, not their
35807         Values.
35808
35809         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
35810         data.
35811
35812         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
35813         is not No_Name.
35814         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
35815         Value is canonicalized.
35816         (Language_Independent_Check): Do not copy Value to Display_Value when
35817         canonicalizing Value.
35818
35819         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
35820         path to find limited with cycles.
35821         (Parse_Single_Project): Use canonical cased path to find the end of a
35822         with cycle.
35823
35824 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
35825
35826         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
35827         and not a child unit.
35828
35829         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
35830         appear in a with_clause.
35831
35832         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
35833         only happen in type_annotate mode, do not try to elaborate it.
35834
35835         * exp_util.adb (Force_Evaluation): If expression is a selected
35836         component on the left of an assignment, use a renaming rather than a
35837         temporary to remove side effects.
35838
35839         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
35840         inlined instance body, which is analyzed before the end of the
35841         enclosing scope.
35842
35843 2004-03-02  Robert Dewar  <dewar@gnat.com>
35844
35845         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
35846         sem_ch4.adb: Use new feature for substitution of keywords in VMS
35847
35848         * errout.ads, errout.adb: Implement new circuit for substitution of
35849         keywords in VMS.
35850
35851         * sem_case.adb (Analyze_Choices): Place message properly when case is
35852         a subtype reference rather than an explicit range.
35853
35854         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
35855
35856 2004-03-02  Doug Rupp  <rupp@gnat.com>
35857
35858         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
35859
35860 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
35861
35862         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
35863
35864 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35865
35866         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
35867         BLKmode bitfield.
35868
35869 2004-02-25  Robert Dewar  <dewar@gnat.com>
35870
35871         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
35872         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
35873         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
35874         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
35875         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
35876         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
35877         the defining instance of the type to avoid aliasing problems.
35878         Fix copyright header.  Fix bad comments in package header.
35879
35880         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
35881
35882 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
35883
35884         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
35885         rewritten as references when aliased through an address clause.
35886
35887         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
35888         whether call can be interpreted as an indirect call to the result of a
35889         parameterless function call returning an access subprogram.
35890
35891 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
35892
35893         Code clean up:
35894         * exp_ch7.adb (Make_Clean): Remove generation of calls to
35895         Unlock[_Entries], since this is now done by Service_Entries directly.
35896
35897         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
35898
35899         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
35900         Requeue_Call for better code readability. Change spec and update calls:
35901         PO_Service_Entries now unlock the PO on exit.
35902         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
35903         PO_Service_Entries.
35904
35905         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
35906
35907         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
35908
35909 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
35910
35911         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
35912         protected subprogram call and analyzing the result of such expanding
35913         in case when the called protected subprogram is eliminated.
35914
35915         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
35916         names.
35917
35918 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
35919
35920         * Makefile.in: Clean ups.
35921
35922 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
35923
35924         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
35925         protected operations if original subprogram is flagged as eliminated.
35926         (Expand_N_Subprogram_Body): For a protected operation, create
35927         discriminals for next operation before checking whether the operation
35928         is eliminated.
35929
35930         * exp_ch9.adb (Expand_N_Protected_Body,
35931         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
35932         for internal protected operations if the original subprogram is
35933         eliminated.
35934
35935         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
35936         declared in a single protected object.
35937
35938 2004-02-23  Vincent Celier  <celier@gnat.com>
35939
35940         * prj-attr.adb: Make attribute Builder'Executable an associative array,
35941         case insensitive if file names are case insensitive, instead of a
35942         standard associative array.
35943
35944         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
35945         them as case insensitive on platforms where the file names are case
35946         sensitive.
35947
35948         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
35949         project file has already been parsed that canonical path are compared.
35950
35951 2004-02-23  Robert Dewar  <dewar@gnat.com>
35952
35953         * sinput-c.ads: Correct bad unit title in header
35954
35955         * freeze.adb: Minor reformatting
35956
35957 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35958
35959         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
35960         nonaddressable COMPONENT_REF that is removing padding that we are
35961         taking the address of, take the address of the padded record instead
35962         if item is variable size.
35963
35964 2004-02-20  Robert Dewar  <dewar@gnat.com>
35965
35966         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
35967
35968 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
35969
35970         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
35971         itype references for the constrained designated type of a component
35972         whose base type is already frozen.
35973
35974 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
35975
35976         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
35977         avoid GCC warnings.
35978
35979 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
35980
35981         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
35982         identifier for a phantom package that rewrites the formal package
35983         declaration with a box. The Add semantic decorations for the defining
35984         identifier from the original node (that represents the formal package).
35985
35986 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
35987
35988         * Make-lang.in (ada/stamp-sdefault): Use the top level
35989         move-if-change.
35990
35991 2004-02-19  Richard Henderson  <rth@redhat.com>
35992
35993         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
35994
35995 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
35996
35997         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
35998         Scan_ALI can be used for multiple ALI files without reinitializing
35999         between calls.
36000
36001 2004-02-18  Robert Dewar  <dewar@gnat.com>
36002
36003         * debug.adb: Minor reformatting.
36004
36005 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36006
36007         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
36008         to zero if there is an address clause.
36009
36010 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
36011
36012         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
36013
36014 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
36015
36016         * layout.adb (Layout_Component_List): Revise generation of call to
36017         discriminant-checking function to pass selections of all of the type's
36018         discriminants rather than just the variant-controlling discriminant.
36019
36020 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
36021
36022         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
36023         fail in the current setup and triggers spurious system error messages.
36024         Pretend it occurred and failed instead.
36025
36026 2004-02-18  Vincent Celier  <celier@gnat.com>
36027
36028         * bld.adb: Mark FLDFLAGS as saved
36029         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
36030         it is not the root project.  Put each directory to be
36031         extended between double quotes to prevent it to be expanded on Windows.
36032         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
36033         the project file. Set them back to their initial values if they have not
36034         been set in the project file.
36035
36036         * gprcmd.adb: (Gprdebug, Debug): New global variables
36037         (Display_Command): New procedure
36038         (Usage): Document new command "linkopts"
36039         Call Display_Command when env var GPRDEBUG has the value "TRUE"
36040         Implement new command "linkopts"
36041         Remove quotes that may be around arguments for "extend"
36042         Always call Normalize_Pathname with arguments formatted for the platform
36043
36044         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
36045         Change @echo to @$(display) in target clean to be able to clean silently
36046
36047         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
36048
36049         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
36050         canonical case.
36051
36052         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
36053         = Extending_All when current project is an extending all project.
36054
36055         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
36056         set to True only for LINK command, after Unix switch -o.
36057         (Process_Arguments): Set Output_File_Expected to True for LINK command
36058         after Unix switch -o. When Output_File_Expected is True, never add an
36059         extension to a file name.
36060
36061         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
36062         option file name, only to the --for-linker= switch.
36063         (Option_File_Name): If option file name do not end with ".opt", append
36064         "/OPTIONS".
36065
36066 2004-02-18  GNAT Script  <nobody@gnat.com>
36067
36068         * Make-lang.in: Makefile automatically updated
36069
36070 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
36071
36072         * Make-lang.in (stamp-sdefault): Do not depend on
36073         move-if-change.
36074
36075 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
36076
36077         * config-lang.in: Disable Ada by default until probe logic for
36078         a bootstrap Ada compiler can be moved to the top level configure
36079         script.
36080
36081 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
36082
36083         * decl.c (components_to_record): Don't claim that the internal fields
36084         we make to hold the variant parts are semantically addressable, because
36085         they are not.
36086
36087         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
36088         adjust the comment describing the modular type form when we can use it.
36089         (Install_PAT): Account for the Esiz renaming.
36090
36091         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
36092         sc_onstack context indication before raising the exception to which
36093         the signal is mapped. Allows better handling of later signals possibly
36094         triggered by the resumed user code if the exception is handled.
36095
36096 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
36097
36098         * 5zinit.adb: Removed, no longer used.
36099
36100 2004-02-12  Robert Dewar  <dewar@gnat.com>
36101
36102         * ali.adb: Remove separating space between parameters on R line. Makes
36103         format consistent with format used by the binder for Set_Globals call.
36104
36105         * atree.ads, atree.adb: Minor reformatting (new function header format)
36106
36107         * bindgen.adb: Add Run-Time Globals documentation section containing
36108         detailed documentation of the globals passed from the binder file to
36109         the run time.
36110
36111         * gnatls.adb: Minor reformatting
36112
36113         * init.c (__gnat_set_globals): Add note pointing to documentation in
36114         bindgen.
36115
36116         * lib-writ.ads, lib-writ.adb: Remove separating space between
36117         parameters on R line.
36118         Makes format consistent with format used by the binder for Set_Globals
36119         call.
36120
36121         * osint.ads: Add 2004 to copyright notice
36122         Minor reformatting
36123
36124         * snames.ads: Correct capitalization of FIFO_Within_Priorities
36125         Noticed during code reading, documentation issue only
36126
36127         * usage.adb: Remove junk line for obsolete C switch
36128         Noticed during code reading
36129
36130 2004-02-12  Vincent Celier  <celier@gnat.com>
36131
36132         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
36133         extend for each directory, so that multiple /** directories are
36134         extended individually.
36135         (Recursive_Process): Set the default for LANGUAGES to ada
36136
36137         * gprcmd.adb: Define new command "ignore", to do nothing.
36138         Implement new comment "path".
36139
36140         * Makefile.generic: Suppress output when SILENT is set
36141         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
36142         used, so that the correct compiler is invoked.
36143         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
36144         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
36145
36146 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
36147
36148         * Makefile.in: Clean ups and remove obsolete targets.
36149
36150 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
36151
36152         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
36153         predicate declared in exp_util.
36154
36155         * exp_util.adb: Add comments.
36156
36157         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
36158         visibility before compiling context of the subunit.
36159
36160         * sem_res.adb (Check_Parameterless_Call): If the context expects a
36161         value but the name is a procedure, do not attempt to analyze as a call,
36162         in order to obtain more telling diagnostics.
36163
36164         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
36165         'Access on parameterless function calls.
36166         (Normalize_Actuals): For a parameterless function call with missing
36167         actuals, defer diagnostic until resolution of enclosing call.
36168
36169         * sem_util.adb (Wrong_Type): If the context type is an access to
36170         subprogram and the expression is a procedure name, suggest a missing
36171         'attribute.
36172
36173 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
36174             Nathanael Nerode  <neroden@gcc.gnu.org>
36175
36176         PR ada/6637
36177         PR ada/5911
36178         Merge with libada-branch:
36179         * config-lang.in: Build libada only when ada is built.
36180
36181 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
36182
36183         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
36184         for a tagged type, verify that both formals have the same type.
36185
36186         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
36187         temporary when the formal is an in-parameter and the actual a possibly
36188         unaligned slice.
36189
36190         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
36191         when expansion is disabled, to ensure proper name capture with
36192         overloaded literals.  Condition can be of any boolean type, resolve
36193         accordingly.
36194
36195         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
36196         renaming is for a formal subprogram with a default operator name, and
36197         there is a usable operator that is visible at the point of
36198         instantiation.
36199
36200 2004-02-09  Robert Dewar  <dewar@gnat.com>
36201
36202         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
36203         rewrite to ignore errors in ali files, intended to allow tools downward
36204         compatibility with new versions of ali files.
36205
36206         * ali.ads: Add new parameter Ignore_Errors
36207
36208         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
36209         duplicating the error message giving the file with restrictions.
36210
36211         * debug.adb: Add debug flag I for gnatbind
36212
36213         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
36214         operators for the case where the operator is a defining operator.
36215
36216         * exp_ch3.adb: Minor reformatting (new function spec format).
36217
36218         * exp_ch4.adb: Add comment for previous change, and make minor
36219         adjustment to loop to always check for improper loop termination.
36220         Minor reformatting throughout (new function spec format).
36221
36222         * gnatbind.adb: Implement -di debug flag for gnatbind
36223
36224         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
36225
36226         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
36227
36228         * lib-load.adb: Fix bad assertion.
36229         Found by testing and code reading.
36230         Minor reformatting.
36231
36232         * lib-load.ads: Minor reformatting.
36233
36234         * lib-writ.adb: There is only one R line now.
36235
36236         * lib-writ.ads: Add documentation on making downward compatible changes
36237         to ali files so old tools work with new ali files.
36238         There is only one R line now.
36239         Add documentation on format incompatibilities (with special GPS note)
36240
36241         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
36242
36243         * par-load.adb: Minor reformatting
36244
36245         * sem_ch8.adb: Fix to error message from last update
36246         Minor reformatting and restructuring of code from last update
36247
36248         * par-prag.adb, snames.adb, snames.ads, snames.h,
36249         sem_prag.adb: Implement pragma Profile.
36250
36251         * stylesw.adb: Implement -gnatyN switch to turn off all style check
36252         options.
36253
36254         * usage.adb: Add line for -gnatyN switch
36255
36256         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
36257
36258 2004-02-09  Albert Lee  <lee@gnat.com>
36259
36260         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
36261
36262 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
36263
36264         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
36265         slices.
36266
36267         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
36268         is nested in an instance that is not frozen yet, to avoid
36269         order-of-elaboration problems in gigi.
36270
36271         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
36272         body the attribute is legal.
36273
36274 2004-02-09  Robert Dewar  <dewar@gnat.com>
36275
36276         * s-rident.ads: Minor comment correction
36277
36278         * targparm.adb: Remove dependence on uintp completely. There was
36279         always a bug in Make in that it called Targparm before initializing
36280         the Uint package. The old code appeared to get away with this, but
36281         the new code did not! This caused an assertion error in gnatmake.
36282
36283         * targparm.ads: Fix bad comment, restriction pragmas with parameters
36284         are indeed fully supported.
36285
36286 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
36287
36288         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
36289
36290 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
36291
36292         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
36293         with targetm.calls.promote_prototypes.
36294
36295 2004-02-04  Robert Dewar  <dewar@gnat.com>
36296
36297         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
36298         ali.ads, gprcmd.adb: Minor reformatting
36299
36300         * bindgen.adb: Output restrictions string for new style restrictions
36301         handling
36302
36303         * impunit.adb: Add s-rident.ads (System.Rident) and
36304         s-restri (System.Restrictions)
36305
36306         * lib-writ.adb: Fix bug in writing restrictions string (last few
36307         entries wrong)
36308
36309         * s-restri.ads, s-restri.adb: Change name Restrictions to
36310         Run_Time_Restrictions to avoid conflict with package name.
36311         Add circuit to read and acquire run time restrictions.
36312
36313 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
36314
36315         * restrict.ads, restrict.adb: Use the new restriction
36316         No_Task_Attributes_Package instead of the old No_Task_Attributes.
36317
36318         * sem_prag.adb: No_Task_Attributes is a synonym of
36319         No_Task_Attributes_Package.
36320
36321         * snames.ads, snames.adb: New entry for proper handling of
36322         No_Task_Attributes.
36323
36324         * s-rident.ads: Adding restriction No_Task_Attributes_Package
36325         (AI-00249) that supersedes the GNAT specific restriction
36326         No_Task_Attributes.
36327
36328 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
36329
36330         * sem_prag.adb:
36331         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
36332          body, an identifier may be wrapped in an unchecked conversion.
36333
36334 2004-02-04  Vincent Celier  <celier@gnat.com>
36335
36336         * lib-writ.ads: Comment update for the W lines
36337
36338         * bld.adb: (Expression): An empty string list is static
36339
36340         * fname-uf.adb: Minor comment update
36341
36342         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
36343
36344         * gnatbind.adb: Initialize Cumulative_Restrictions with the
36345         restrictions on the target.
36346
36347 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
36348
36349         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
36350         gen_rtx.
36351
36352 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
36353
36354         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
36355
36356 2004-02-02  Vincent Celier  <celier@gnat.com>
36357
36358         * gprcmd.adb (Check_Args): If condition is false, print the invoked
36359         comment before the usage.
36360         Gprcmd: Fail when command is not recognized.
36361         (Usage): Document command "prefix"
36362
36363         * g-md5.adb (Digest): Process last block.
36364         (Update): Do not process last block. Store remaining characters and
36365         length in Context.
36366
36367         * g-md5.ads (Update): Document that several call to update are
36368         equivalent to one call with the concatenated string.
36369         (Context): Add fields to allow new Update behaviour.
36370
36371         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
36372         defaulted to False.
36373         When May_Fail is True and no existing file can be found, return No_File.
36374
36375         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
36376         functions.
36377
36378         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
36379         spec file name instead on the W line.
36380
36381 2004-02-02  Robert Dewar  <dewar@gnat.com>
36382
36383         * ali.adb: Read and acquire info from new format restrictions lines
36384
36385         * bcheck.adb: Add circuits for checking restrictions with parameters
36386
36387         * bindgen.adb: Output dummy restrictions data
36388         To be changed later
36389
36390         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
36391         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
36392         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
36393         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
36394         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
36395
36396         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
36397         the warning message on access to possibly uninitialized variable S)
36398         Minor changes for new restrictions handling.
36399
36400         * gnatbind.adb: Minor reformatting
36401         Minor changes for new restrictions handling
36402         Move circuit for -r processing here from bcheck (cleaner)
36403
36404         * gnatcmd.adb, gnatlink.adb: Minor reformatting
36405
36406         * lib-writ.adb: Output new format restrictions lines
36407
36408         * lib-writ.ads: Document new R format lines for new restrictions
36409         handling.
36410
36411         * s-restri.ads/adb: New files
36412
36413         * Makefile.rtl: Add entry for s-restri.ads/adb
36414
36415         * par-ch3.adb: Fix bad error messages starting with upper case letter
36416         Minor reformatting
36417
36418         * restrict.adb: Major rewrite throughout for new restrictions handling
36419         Major point is to handle restrictions with parameters
36420
36421         * restrict.ads: Major changes in interface to handle restrictions with
36422         parameters. Also generally simplifies setting of restrictions.
36423
36424         * snames.ads/adb: New entry for proper handling of No_Requeue
36425
36426         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
36427         restriction counting.
36428         Other minor changes for new restrictions handling
36429
36430         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
36431         Restriction_Warnings now allows full parameter notation
36432         Major rewrite of Restrictions for new restrictions handling
36433
36434 2004-02-02  Javier Miranda  <miranda@gnat.com>
36435
36436         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
36437         syntax rule for object renaming declarations.
36438         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
36439         component definitions.
36440
36441         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
36442         components.
36443         (Array_Type_Declaration): Give support to access components. In addition
36444         it was also modified to reflect the name of the object in anonymous
36445         array types. The old code did not take into account that it is possible
36446         to have an unconstrained anonymous array with an initial value.
36447         (Check_Or_Process_Discriminants): Allow access discriminant in
36448         non-limited types.
36449         (Process_Discriminants): Allow access discriminant in non-limited types
36450         Initialize the new Access_Definition field in N_Object_Renaming_Decl
36451         node.  Change Ada0Y to Ada 0Y in comments
36452
36453         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
36454         equality operators.
36455         Change Ada0Y to Ada 0Y in comments
36456
36457         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
36458         renamings Change Ada0Y to Ada 0Y in comments
36459
36460         * sem_type.adb (Find_Unique_Type): Give support to the equality
36461         operators for universal access types
36462         Change Ada0Y to Ada 0Y in comments
36463
36464         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
36465
36466         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
36467         field.
36468         (N_Object_Renaming_Declaration): Addition of Access_Definition field
36469         Change Ada0Y to Ada 0Y in comments
36470
36471         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
36472         component definition and object renaming nodes
36473         Change Ada0Y to Ada 0Y in comments
36474
36475 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
36476
36477         * restrict.adb: Use the new restriction identifier
36478         No_Requeue_Statements instead of the old No_Requeue for defining the
36479         restricted profile.
36480
36481         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
36482         No_Requeue_Statements.
36483
36484         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
36485         that supersedes the GNAT specific restriction No_Requeue. The later is
36486         kept for backward compatibility.
36487
36488 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
36489
36490         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
36491         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
36492         pragma and fix incorrect ones.
36493
36494         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
36495         warning if the pragma is redundant.
36496
36497 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
36498
36499         * 5staprop.adb: Add missing 'constant' keywords.
36500
36501         * Makefile.in: use consistent value for SYMLIB on
36502         platforms where libaddr2line is supported.
36503
36504 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36505
36506         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
36507         annotating types.
36508
36509 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
36510
36511         * init.c (__gnat_install_handler): Setup an alternate stack for signal
36512         handlers in the environment thread. This allows proper propagation of
36513         an exception on stack overflows in this thread even when the builtin
36514         ABI stack-checking scheme is used without support for a stack reserve
36515         region.
36516
36517         * utils.c (create_field_decl): Augment the head comment about bitfield
36518         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
36519         here, because the former is not accurate enough at this point.
36520         Let finish_record_type decide instead.
36521         Don't make a bitfield if the field is to be addressable.
36522         Always set a size for the field if the record is packed, to ensure the
36523         checks for bitfield creation are triggered.
36524         (finish_record_type): During last pass over the fields, clear
36525         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
36526         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
36527         from DECL_BIT_FIELD.
36528
36529 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
36530
36531         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
36532         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
36533         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
36534
36535 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
36536
36537         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
36538
36539         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
36540         (ZCX_By_Default): Likewise.
36541         (Front_End_ZCX_Support): Likewise.
36542
36543         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
36544         (Initialize_Lock): Mark Level unreferenced.
36545         (Sleep): Mark Reason unreferenced.
36546         (Timed_Sleep): Likewise.
36547         (Wakeup): Likewise.
36548         (Exit_Task): Use Result.
36549         (Check_No_Locks): Mark Self_ID unreferenced.
36550
36551         * 5gtasinf.adb (New_Sproc): Make Attr constant.
36552         (Bound_Thread_Attributes): Make Sproc constant.
36553         (New_Bound_Thread_Attributes): Likewise.
36554
36555 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
36556
36557         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
36558         one-dimensional array an slice assignments, when component type is
36559         controlled.
36560
36561         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
36562         component type is controlled, and control_actions are in effect, use
36563         TSS procedure rather than generating inline code.
36564
36565         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
36566         arrays with controlled components.
36567
36568 2004-01-26  Vincent Celier  <celier@gnat.com>
36569
36570         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
36571         command line for the non VMS case.
36572
36573         * gnatlink.adb (Process_Binder_File): When building object file, if
36574         GNU linker is used, put all object paths between quotes, to prevent ld
36575         error when there are unusual characters (such as '!') in the paths.
36576
36577         * Makefile.generic: When there are sources in Ada and the main is in
36578         C/C++, invoke gnatmake with -B, instead of -z.
36579
36580         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
36581         from VMS_Conversion.
36582         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
36583         specification of argument file on the command line.
36584
36585 2004-01-26  Bernard Banner  <banner@gnat.com>
36586
36587         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
36588
36589 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
36590
36591         * snames.adb: Update copyright notice.
36592         Add info on slice assignment for controlled arrays.
36593
36594 2004-01-23  Robert Dewar  <dewar@gnat.com>
36595
36596         * exp_aggr.adb: Minor reformatting
36597
36598         * exp_ch9.adb: Minor code clean up
36599         Minor reformatting
36600         Fix bad character in comment
36601
36602         PR ada/13471
36603         * targparm.adb (Get_Target_Parameters): Give clean abort error on
36604         unexpected end of file, along with more detailed message.
36605
36606 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36607
36608         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
36609         PAT.
36610
36611         * decl.c (copy_alias_set): New function.
36612         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
36613
36614 2004-01-23  Doug Rupp  <rupp@gnat.com>
36615
36616         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
36617         lib$${file} in case subsequent character is not a separator.
36618
36619 2004-01-23  Vincent Celier  <celier@gnat.com>
36620
36621         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
36622         when the GCC version is at least 3.
36623
36624         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
36625         Remove all "Opt.", to prepare for opt split
36626
36627         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
36628         Extends_All. Set to True when the project parsed is an extending all
36629         project. Fails for importing an extending all project only when the
36630         imported project is an extending all project.
36631         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
36632         depending on the value of Extends_All returned.
36633
36634         * prj-proc.adb (Process): Check that no project shares its object
36635         directory with a project that extends it, directly or indirectly,
36636         including a virtual project.
36637         Check that no project extended by another project shares its object
36638         directory with another also extended project.
36639
36640         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
36641         Kind = N_With_Clause
36642
36643         * prj-tree.ads: Minor reformatting
36644         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
36645
36646 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
36647
36648         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
36649         applies to a type with an incomplete view, use full view in Name of
36650         clause, for consistency with uses of Get_Attribute_Definition_Clause.
36651
36652 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
36653
36654         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
36655         SCHED_RR, since other values are not supported by this policy.
36656         (Initialize): Move initialization of mutex attribute to package
36657         elaboration, to prevent early access to this variable.
36658
36659         * Makefile.in: Remove mention of Makefile.adalib, unused.
36660
36661         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
36662         1ssecsta.ads: Removed, unused.
36663
36664 2004-01-21  Javier Miranda  <miranda@gnat.com>
36665
36666         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
36667         entity if already built in the current scope.
36668
36669         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
36670         reminder in internal scopes. Required for nested limited aggregates.
36671
36672 2004-01-21  Doug Rupp  <rupp@gnat.com>
36673
36674         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
36675         VMS. Replace all occurences of libgnat- and libgnarl- with
36676         libgnat$(hyphen) and libgnarl$(hyphen).
36677         Fixed shared library build problem on VMS.
36678
36679 2004-01-21  Robert Dewar  <dewar@gnat.com>
36680
36681         * mlib-prj.adb: Minor reformatting
36682
36683 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
36684
36685         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
36686         'constant' keywords for declaration of pointers that are not modified.
36687
36688         * exp_pakd.adb: Fix English in comment.
36689
36690 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
36691
36692         PR ada/10889
36693         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
36694         copy all attributes of the parent, including the foreign language
36695         convention.
36696
36697 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
36698
36699         PR ada/10565
36700         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
36701         for 'delay until' statement.
36702
36703 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
36704
36705         * Make-lang.in: Replace $(docdir) with doc.
36706         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
36707         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
36708         to use consistent MAKEINFO rule.
36709         (ada.man, ada.srcman): Dummy entry.
36710         (ADA_INFOFILES): Define.
36711         (ada.info, ada.srcinfo): New rules.
36712
36713 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
36714
36715         * utils.c: Update copyright notice, missed in previous change.
36716
36717 2004-01-19  Vincent Celier  <celier@gnat.com>
36718
36719         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
36720         args if Bind is True. Set First_ALI, if not already done.
36721         (Build_Library): For Stand Alone Libraries, extract from one ALI file
36722         an eventual --RTS switch, for gnatbind, and all backend switches +
36723         --RTS, for linking.
36724
36725 2004-01-19  Robert Dewar  <dewar@gnat.com>
36726
36727         * sem_attr.adb, memtrack.adb: Minor reformatting
36728
36729 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
36730
36731         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
36732         that rename enumeration literals. This is properly done in sem_eval.
36733
36734         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
36735         to functions that rename enumeration literals.
36736
36737         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
36738         functions that rename enumeration literals.
36739
36740 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
36741
36742         * Make-lang.in (utils.o): Depend on target.h.
36743         * utils.c: Include target.h.
36744         (process_attributes): Use targetm.have_named_sections instead
36745         of ASM_OUTPUT_SECTION_NAME.
36746
36747 2004-01-16  Andreas Jaeger  <aj@suse.de>
36748
36749         * Makefile.in: Add $(DESTDIR).
36750
36751 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
36752
36753         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
36754         also when not defining if a Size clause applies. That information is
36755         not to be ignored.
36756
36757 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
36758
36759         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
36760         symbolic links for the shared gnat run time when needed.
36761
36762 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
36763
36764         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
36765         for writing, and terminate with an error message if not.
36766
36767 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
36768
36769         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
36770         warning on an access to subprogram in an instance, when the target
36771         type is declared in the same generic unit.
36772         (Eval_Attribute): If 'access is known to fail accessibility check,
36773         rewrite as a raise statement.
36774
36775 2004-01-15  GNAT Script  <nobody@gnat.com>
36776
36777         * Make-lang.in: Makefile automatically updated
36778
36779 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
36780
36781         * Make-lang.in (ada.srcextra): Dummy entry.
36782
36783 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
36784
36785         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
36786
36787 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
36788
36789         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
36790         components that are initialized with aggregates.
36791
36792 2004-01-13  Vincent Celier  <celier@gnat.com>
36793
36794         * gnatlink.adb (Process_Binder_File): To find directory of shared
36795         libgcc, if "gcc-lib" is not a subdirectory, look for the last
36796         subdirectory "lib" in the path of the shared libgnat or libgnarl.
36797
36798         * make.adb (Gnatmake): If GCC version is at least 3, link with
36799         -shared-libgcc, when there is at least one shared library project.
36800
36801         * opt.ads (GCC_Version): New integer constant.
36802
36803         * adaint.c (get_gcc_version): New function.
36804
36805 2004-01-13  Robert Dewar  <dewar@gnat.com>
36806
36807         * sem_dist.adb, sem_res.adb, sem_util.adb,
36808         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
36809         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
36810
36811 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
36812
36813         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
36814         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
36815         declarations.
36816
36817 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
36818
36819         * misc.c: Remove trailing spaces.
36820         Update copyright notice missed in previous change.
36821
36822         PR ada/13572
36823         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
36824         prefix/share/make
36825
36826         * Makefile.generic: Update copyright.
36827         Add license notice.
36828
36829         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
36830         of prefix/share/make.
36831
36832         * Makefile.prolog: Update copyright.
36833         Add license notice.
36834
36835 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
36836
36837         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
36838         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
36839         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
36840         instead of String.
36841
36842         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
36843         signature.
36844
36845 2004-01-12  Javier Miranda  <miranda@gnat.com>
36846
36847         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
36848         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
36849         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
36850         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
36851         Component_Definition node.
36852
36853 2004-01-12  Ed Falis  <falis@gnat.com>
36854
36855         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
36856
36857 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
36858
36859         * link.c: Change default libgnat kind to STATIC for FreeBSD.
36860
36861 2004-01-12  Bernard Banner  <banner@gnat.com>
36862
36863         * Makefile.in: map 86numaux to a-numaux for x86_64
36864
36865 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
36866
36867         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
36868         generated to rename a generic actual, go to the actual itself, the
36869         subtype is not a user-visible entity.
36870
36871         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
36872         part is a private subtype, reset the visibility of its full view, if
36873         any, to be consistent.
36874
36875         PR ada/13417
36876         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
36877         to use a generic package G as a formal package for another generic
36878         declared within G.
36879
36880 2004-01-12  Robert Dewar  <dewar@gnat.com>
36881
36882         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
36883
36884         * usage.adb: Remove mention of obsolete -gnatwb switch
36885         Noticed during code reading
36886
36887 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
36888
36889         * 1ssecsta.adb: Minor changes for -gnatwa warnings
36890
36891 2004-01-12  GNAT Script  <nobody@gnat.com>
36892
36893         * Make-lang.in: Makefile automatically updated
36894
36895 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
36896
36897         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
36898
36899 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
36900
36901         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
36902
36903 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
36904
36905         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
36906         Update comment and copyright date.
36907         * stamp-xgnatug: Delete.
36908
36909 2004-01-05  Robert Dewar  <dewar@gnat.com>
36910
36911         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
36912         be modified by the binder generated main program if the -D switch is
36913         used.
36914
36915         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
36916         imported functions (since now we expect this to be done for imported
36917         functions)
36918
36919         * 5vtaprop.adb: Add several ??? for sections requiring more comments
36920         Minor reformatting throughout
36921
36922         * 5zinit.adb: Minor reformatting
36923         Add 2004 to copyright date
36924         Minor changes to avoid -gnatwa warnings
36925         Correct some instances of using OR instead of OR ELSE (noted while
36926         doing reformatting)
36927
36928         * sprint.adb: Minor updates to avoid -gnatwa warnings
36929
36930         * s-secsta.ads, s-secsta.adb:
36931         (SS_Get_Max): New function to obtain high water mark for ss stack
36932         Default_Secondary_Stack is not a constant since it may be modified by
36933         the binder generated main program if the -D switch is used.
36934
36935         * switch-b.adb: New -Dnnn switch for binder
36936
36937         * switch-c.adb:
36938         Make -gnatg imply all warnings currently in -gnatwa
36939
36940         * vms_conv.adb: Minor reformatting
36941         Add 2004 to copyright notice
36942         Add 2004 to printed copyright notice
36943
36944         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
36945         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
36946         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
36947         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
36948         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
36949         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
36950         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
36951         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
36952         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
36953         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
36954         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
36955         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
36956         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
36957         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
36958         checks.adb, clean.adb, cstand.adb, einfo.ads,
36959         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
36960         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
36961         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
36962         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
36963         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
36964         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
36965         Minor reformatting and code clean ups.
36966         Minor changes to prevent -gnatwa warnings
36967
36968         * ali.adb: Minor reformatting and cleanup of code
36969         Acquire new SS indication of secondary stack use from ali files
36970
36971         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
36972         (since now we expect this to be done for imported functions)
36973
36974         * bindgen.adb: Generate call to modify default secondary stack size if
36975         -Dnnn switch given
36976
36977         * bindusg.adb: Add line for new -D switch
36978
36979         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
36980         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
36981         Add circuitry for both records and arrays to avoid gigi
36982         processing if the type involved has non-bit-aligned components
36983
36984         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
36985         N_String_Literal node always references an E_String_Literal_Subtype
36986         entity. This may not be true in the future.
36987         (Possible_Bit_Aligned_Component): Move processing of
36988         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
36989
36990         * exp_ch6.adb (Expand_Thread_Body): Pick up
36991         Default_Secondary_Stack_Size as variable so that we get value modified
36992         by possible -Dnnn binder parameter.
36993
36994         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
36995         (Type_May_Have_Bit_Aligned_Components): New function.
36996
36997         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
36998         (Type_May_Have_Bit_Aligned_Components): New function.
36999
37000         * fe.h: (Set_Identifier_Casing): Fix prototype.
37001         Add declaration for Sem_Elim.Eliminate_Error_Msg.
37002         Minor reformatting.
37003
37004         * freeze.adb (Freeze_Entity): Add RM reference to error message about
37005         importing constant atomic/volatile objects.
37006         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
37007         unless explicit Pure_Function pragma given, to avoid insidious bug of
37008         call to non-pure imported function getting eliminated.
37009
37010         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
37011         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
37012         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
37013         Add 2004 to printed copyright notice
37014
37015         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
37016         stack used.
37017
37018         * Makefile.rtl: Add entry for g-sestin.o
37019         g-sestin.ads: New file.
37020
37021         * mdll.adb: Minor changes to avoid -gnatwa warnings
37022
37023         * mlib-tgt.adb: Minor reformatting
37024
37025         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
37026         New switch Sec_Stack_Used (GNAT, GNATBIND)
37027         Make Default_Secondary_Stack_Size a variable instead of a constant,
37028         so that it can be modified by the new -Dnnn bind switch.
37029
37030         * rtsfind.adb (Load_Fail): Give full error message in configurable
37031         run-time mode if all_errors mode is set. This was not done in the case
37032         of a file not found, which was an oversight.
37033         Note if secondary stack unit is used by compiler.
37034
37035         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
37036         ineffective elaborate all pragmas on non-visible packages (this
37037         happened when a renamed subprogram was called). Now the elaborate all
37038         always goes on the package containing the renaming rather than the one
37039         containing the renamed subprogram.
37040
37041         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
37042         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
37043
37044         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
37045         has an Etype that references an E_String_Literal.
37046         (Eval_String_Literal): Avoid assumption that N_String_Literal node
37047         always references an E_String_Literal_Subtype entity. This may not
37048         be true in the future.
37049
37050         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
37051         pragma location.
37052
37053         * sem_res.adb (Resolve): Specialize msg for function name used in proc
37054         call.
37055
37056 2004-01-05  Ed Falis  <falis@gnat.com>
37057
37058         * g-debuti.adb: Replaced direct boolean operator with short-circuit
37059         form.
37060
37061 2004-01-05  Vincent Celier  <celier@gnat.com>
37062
37063         * bld.adb: Minor comment updates
37064         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
37065         of Item_Name).
37066
37067         * make.adb (Gnatmake): Special process for files to compile/check when
37068         -B is specified. Fail when there are only foreign mains in attribute
37069         Main of the project file and -B is not specified. Do not skip bind/link
37070         steps when -B is specified.
37071
37072         * makeusg.adb: Document new switch -B
37073
37074         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
37075
37076         * switch-m.adb: (Scan_Make_Switches): Process -B switch
37077
37078         * vms_data.ads: Add new GNAT PRETTY qualifier
37079         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
37080
37081 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37082
37083         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
37084         case.
37085
37086         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
37087         Set_Identifier_Casing.
37088
37089         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
37090         has size that overflows.
37091
37092 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
37093
37094         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
37095         -gnatwa warning on static condition.
37096
37097 2004-01-05  Doug Rupp  <rupp@gnat.com>
37098
37099         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
37100
37101 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
37102
37103         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
37104         all attributes, including read-only attribute.
37105
37106 2004-01-05  Pascal Obry  <obry@gnat.com>
37107
37108         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
37109         library naming scheme.
37110
37111         * mlib-prj.adb (Build_Library): Generate different names for the static
37112         or dynamic version of the GNAT runtime. This is needed to support the
37113         new shared library naming scheme.
37114         (Process_Binder_File): Add detection of shared library in binder file
37115         based on the new naming scheme.
37116
37117         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
37118         scheme for the shared runtime libraries.
37119
37120         * Makefile.in:
37121         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
37122         scheme.
37123         (install-gnatlib): Do not create symlinks for shared libraries.
37124         (gnatlib-shared-default): Idem.
37125         (gnatlib-shared-dual-win32): New target. Not used for now as the
37126         auto-import feature does not support arrays/records.
37127         (gnatlib-shared-win32): Do not create copy for the shared libraries.
37128         (gnatlib-shared-vms): Fix shared runtime libraries names.
37129
37130         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
37131         dependent runtime shared library name.
37132
37133 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
37134
37135         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
37136         than the object.
37137
37138 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
37139
37140         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
37141         protected objects when allocator has a subtype indication, not a
37142         qualified expression. Note that qualified expressions may have to be
37143         checked when limited aggregates are implemented.
37144
37145         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
37146         pure, emit warning.
37147         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
37148         subprogram is imported, remove warning.
37149
37150 2004-01-05  Geert Bosch  <bosch@gnat.com>
37151
37152         * s-poosiz.adb: Update copyright notice.
37153         (Allocate): Use Task_Lock to protect against concurrent access.
37154         (Deallocate): Likewise.
37155
37156 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
37157
37158         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
37159         comment.
37160
37161 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
37162
37163         * gnat_ug.texi: Force a CVS commit by updating copyright.
37164         * gnat_ug_vxw.texi: Regenerate.
37165         * gnat_ug_wnt.texi: Regenerate.
37166         * gnat_ug_vms.texi: Regenerate.
37167         * gnat_ug_unx.texi: Regenerate.
37168
37169 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
37170
37171         * trans.c: Remove uses of "register" specifier in
37172         declarations of local variables.
37173
37174 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
37175
37176         * stamp-xgnatug: New stamp file.
37177         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
37178         (ada/doctools/xgnatug): Add $(build_exeext).
37179         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
37180         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
37181
37182 2003-12-17  Ed Falis  <falis@gnat.com>
37183
37184         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
37185         eliminate warning.
37186
37187         * a-exextr.adb: Add context clause for
37188         Ada.Exceptions.Last_Chance_Handler.
37189
37190 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
37191
37192         * cstand.adb (Create_Standard): Change the way how the declaration of
37193         the Duration type is created (making it the same way as it is for all
37194         the other standard types).
37195
37196 2003-12-17  Robert Dewar  <dewar@gnat.com>
37197
37198         * s-crtl.ads: Fix header format
37199         Change Pure to Preelaborate
37200
37201 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
37202
37203         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
37204         the expression type only if it is declared in the current unit.
37205
37206         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
37207         are universal and already analyzed, as can occur in constrained
37208         subcomponents that depend on discriminants, when one constraint is a
37209         subtype mark.
37210
37211         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
37212         type Any_Fixed is legal as the argument of a conversion, if only one
37213         fixed-point type is in context.
37214
37215 2003-12-17  GNAT Script  <nobody@gnat.com>
37216
37217         * Make-lang.in: Makefile automatically updated
37218
37219 2003-12-15  Robert Dewar  <dewar@gnat.com>
37220
37221         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
37222         sec stack size.
37223
37224 2003-12-15  Vincent Celier  <celier@gnat.com>
37225
37226         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
37227         (Gnatchop): Do not set failure status when reporting the number of
37228         warnings.
37229
37230 2003-12-15  Doug Rupp  <rupp@gnat.com>
37231
37232         * s-ctrl.ads: New file.
37233
37234         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
37235
37236         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
37237         (GNATBIND_OBJS): Add ada/s-crtl.o.
37238
37239         * Makefile.in [VMS]: Clean up ifeq rules.
37240
37241         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
37242         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
37243         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
37244         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
37245         s-tasdeb.adb: Update copyright.
37246         Import System.CRTL.
37247         Make minor modifications to use System.CRTL declared functions instead
37248         of importing locally.
37249
37250 2003-12-15  GNAT Script  <nobody@gnat.com>
37251
37252         * Make-lang.in: Makefile automatically updated
37253
37254 2003-12-11  Ed Falis  <falis@gnat.com>
37255
37256         * 5zinit.adb: Clean up.
37257
37258         * 5zintman.adb (Notify_Exception): replaced case statement with a call
37259         to __gnat_map_signal, imported from init.c to support
37260         signal -> exception mappings that depend on the vxWorks version.
37261
37262         * init.c:
37263         Created and exported __gnat_map_signal to support signal -> exception
37264         mapping that is dependent on the VxWorks version.
37265         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
37266
37267 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
37268
37269         * 5wosinte.ads: Link with -mthreads switch.
37270
37271 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
37272
37273         * init.c (__gnat_install_handler [NetBSD]): Set
37274         __gnat_handler_installed, as done on all other platforms.
37275         Remove duplicated code.
37276
37277 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
37278
37279         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
37280
37281 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
37282
37283         * sinfo.ads: Fix inconsistent example code in comment.
37284
37285 2003-12-11  Robert Dewar  <dewar@gnat.com>
37286
37287         * a-tiinau.adb: Add a couple of comments
37288
37289         * sem_ch3.adb: Minor reformatting
37290
37291         * sem_prag.adb:
37292         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
37293         Minor reformatting throughout
37294
37295 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
37296
37297         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
37298         bounds of a loop, create a separate block in order to generate proper
37299         cleanup actions to prevent memory leaks.
37300
37301         * sem_res.adb (Resolve_Call): After a call to
37302         Establish_Transient_Scope, the call may be rewritten and relocated, in
37303         which case no further processing is needed.
37304
37305         * sem_util.adb: (Wrong_Type): Refine previous fix.
37306          Fixes ACATS regressions.
37307
37308         PR ada/13353
37309         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
37310         be inlined.
37311
37312 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
37313
37314         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
37315         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
37316         obsolete files.
37317
37318         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
37319         (rts-zfp): Ditto.
37320
37321 2003-12-08  Robert Dewar  <dewar@gnat.com>
37322
37323         * 7sintman.adb: Minor reformatting
37324
37325         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
37326         standard linker options to get standard libraries linked. We now plan
37327         to provide dummy versions of these libraries to match the appropriate
37328         configurable run-time (e.g. if a library is not needed at all, provide
37329         a dummy empty library).
37330
37331         * targparm.ads: Configurable_Run_Time mode no longer affects linker
37332         options (-L parameters and standard libraries). What we plan to do is
37333         to provide dummy libraries where the libraries are not required.
37334
37335         * gnatbind.adb: Minor comment improvement
37336
37337 2003-12-08  Javier Miranda  <miranda@gnat.com>
37338
37339         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
37340         aggregate in the parent. Otherwise constants with limited aggregates
37341         are not supported. Add new formal to pass the component type (Ctype).
37342         It is required to call the corresponding IP subprogram in case of
37343         default initialized components.
37344         (Gen_Assign): In case of default-initialized component, generate a
37345         call to the IP subprogram associated with the component.
37346         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
37347         of aggregate with default initialized components.
37348         (Has_Default_Init_Comps): Improve implementation to recursively check
37349         all the present expressions.
37350
37351         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
37352         to indicate that the initialization call corresponds to a
37353         default-initialized component of an aggregate.
37354         In case of default initialized aggregate with tasks this parameter is
37355         used to generate a null string (this is just a workaround that must be
37356         improved later). In case of discriminants, this parameter is used to
37357         generate a selected component node that gives access to the discriminant
37358         value.
37359
37360         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
37361         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
37362         allocated aggregates with default-initialized components.
37363
37364         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
37365         the box notation is used in positional aggregates.
37366
37367 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
37368
37369         * lib.ads: Fix typo in comment
37370
37371 2003-12-08  Vincent Celier  <celier@gnat.com>
37372
37373         * prj.adb (Project_Empty): New component Unkept_Comments
37374         (Scan): Remove procedure; moved to Prj.Err.
37375
37376         * prj.ads (Project_Data): New Boolean component Unkept_Comments
37377         (Scan): Remove procedure; moved to Prj.Err.
37378
37379         * prj-dect.adb: Manage comments for the different declarations.
37380
37381         * prj-part.adb (With_Record): New component Node
37382         (Parse): New Boolean parameter Store_Comments, defaulted to False.
37383         Set the scanner to return ends of line and comments as tokens, if
37384         Store_Comments is True.
37385         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
37386         comments are associated with these nodes. Store the node IDs in the
37387         With_Records.
37388         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
37389         With_Records.
37390         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
37391         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
37392         current project. Call Tree.Restore afterwards. Set the various nodes
37393         for comment storage (Next_End, End_Of_Line, Previous_Line,
37394         Previous_End).
37395
37396         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
37397         defaulted to False.
37398
37399         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
37400         to False. When Truncated is True, truncate the string, never go to the
37401         next line.
37402         (Write_End_Of_Line_Comment): New procedure
37403         (Print): Process comments for nodes N_With_Clause,
37404         N_Package_Declaration, N_String_Type_Declaration,
37405         N_Attribute_Declaration, N_Typed_Variable_Declaration,
37406         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
37407         Process nodes N_Comment.
37408
37409         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
37410         without comments and there are some comments, set the flag
37411         Unkept_Comments to True.
37412         (Scan): If there are comments, set the flag Unkept_Comments to True and
37413         clear the comments.
37414         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
37415         (Next_End_Nodes: New table
37416         (Comment_Zones_Of): New function
37417         (Scan): New procedure; moved from Prj. Accumulate comments in the
37418         Comments table and set end of line comments, comments after, after end
37419         and before end.
37420         (Add_Comments): New procedure
37421         (Save, Restore, Seset_State): New procedures
37422         (There_Are_Unkept_Comments): New function
37423         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
37424         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
37425         procedures.
37426         (First_Comment_After, First_Comment_After_End): New functions
37427         (First_Comment_Before, First_Comment_Before_End): New functions
37428         (Next_Comment): New function
37429         (End_Of_Line_Comment, Follows_Empty_Line,
37430         Is_Followed_By_Empty_Line): New functions
37431         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
37432         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
37433         (Set_Next_Comment): New procedure
37434         (Default_Project_Node): Associate comment before if the node can store
37435         comments.
37436
37437         * scans.ads (Token_Type): New enumeration value Tok_Comment
37438         (Comment_Id): New global variable
37439
37440         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
37441         defaulted to False.
37442         (Scan): Store position of start of comment. If comments are tokens, set
37443         Comment_Id and set Token to Tok_Comment when scanning a comment.
37444         (Set_Comment_As_Token): New procedure
37445
37446         * sinput-p.adb: Update Copyright notice
37447         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
37448         that no longer exists.
37449
37450 2003-12-08  Javier Miranda  <miranda@gnat.com>
37451
37452         * sem_aggr.adb: Add dependence on Exp_Tss package
37453         Correct typo in comment
37454         (Resolve_Aggregate): In case of array aggregates set the estimated
37455         type of the aggregate before calling resolve. This is needed to know
37456         the name of the corresponding IP in case of limited array aggregates.
37457         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
37458         in case of default initialized array components.
37459
37460         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
37461         types. Required to give support to limited aggregates in generic
37462         formals.
37463
37464 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
37465
37466         * sem_ch3.adb (Check_Initialization): For legality purposes, an
37467         inlined body functions like an instantiation.
37468         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
37469         until bounds are analyzed, to diagnose premature use of type.
37470
37471         * sem_util.adb (Wrong_Type): Improve error message when the type of
37472         the expression is used prematurely.
37473
37474 2003-12-08  GNAT Script  <nobody@gnat.com>
37475
37476         * Make-lang.in: Makefile automatically updated
37477
37478 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
37479
37480         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
37481         they are automatically generated by Make-lang.in and cause nothing but
37482         maintenance troubles.
37483
37484 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
37485
37486         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
37487         version of this unit).
37488
37489 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
37490
37491         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
37492         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
37493         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
37494         the body of System.Interrupt_Management common to several targets.
37495         Update copyright notice when appropriate.
37496
37497         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
37498         constant.
37499
37500         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
37501         to ensure that the kernel fills in the interrupted context structure
37502         before calling a signal handler, which is necessary to be able to
37503         unwind past it. Update the copyright notice.
37504
37505 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
37506
37507         * a-elchha.ads: New file.
37508
37509         * a-elchha.adb: New default last chance handler. Contents taken from
37510         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
37511
37512         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
37513         is moved to a-elchha.adb to provide a target-independent default last
37514         chance handler.
37515
37516         * Makefile.rtl: Add a-elchha.o
37517
37518         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
37519
37520 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
37521
37522         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
37523         declared in an instance, do not inline the call if the instance is not
37524         frozen yet, to prevent order of elaboration problems.
37525
37526         * sem_prag.adb: Add comments for previous fix.
37527
37528 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
37529
37530         * g-table.adb: Use the right variable in Set_Item.
37531         Update copyright notice.
37532
37533 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
37534
37535         * Makefile.in: Remove unused rules.
37536
37537 2003-12-05  Vincent Celier  <celier@gnat.com>
37538
37539         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
37540         -nostdlib. Not needed here after all.
37541
37542 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
37543
37544         PR ada/11724
37545         * adaint.h, adaint.c, g-os_lib.ads:
37546         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
37547         on some platforms (including FreeBSD), it is a 64 bit value.
37548         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
37549
37550 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
37551
37552         * gnatvsn.ads (Library_Version): Now contain only the relevant
37553         version info.
37554         (Verbose_Library_Version): New constant.
37555
37556         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
37557         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
37558         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
37559
37560         * gnatlbr.adb: Clean up: replace Library_Version by
37561         Verbose_Library_Version.
37562
37563         * make.adb, lib-writ.adb, exp_attr.adb:
37564         Clean up: replace Library_Version by Verbose_Library_Version.
37565
37566         * 5lintman.adb: Removed.
37567
37568         * Makefile.in:
37569         Update and simplify computation of LIBRARY_VERSION.
37570         Fix computation of GSMATCH_VERSION.
37571         5lintman.adb is no longer used: replaced by 7sintman.adb.
37572
37573 2003-12-03  Robert Dewar  <dewar@gnat.com>
37574
37575         * exp_ch5.adb:
37576         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
37577         name. Modified to consider small non-bit-packed arrays as troublesome
37578         and in need of component-by-component assigment expansion.
37579
37580 2003-12-03  Vincent Celier  <celier@gnat.com>
37581
37582         * lang-specs.h: Process nostdlib as nostdinc
37583
37584         * back_end.adb: Update Copyright notice
37585         (Scan_Compiler_Arguments): Process -nostdlib directly.
37586
37587 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
37588
37589         * Makefile.in:
37590         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
37591         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
37592         included in HIE_NONE_TARGET_PAIRS.
37593
37594 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
37595
37596         * sem_attr.adb:
37597         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
37598         is legal in an instance, because legality is cheched in the template.
37599
37600         * sem_prag.adb:
37601         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
37602         appplied to an unchecked conversion of a formal parameter.
37603
37604         * sem_warn.adb:
37605         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
37606         variables.
37607
37608 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
37609
37610         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
37611         routines. The second one is new functionality to deal with backtracing
37612         through signal handlers.
37613         (unwind): Split into the two separate subroutines above.
37614         Update the documentation, and deal properly with sizeof (REG) different
37615         from sizeof (void*).
37616
37617 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
37618
37619         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
37620         so that the debugger can reliably access the value of the parameter,
37621         and therefore is able to display the exception name when an exception
37622         breakpoint is reached.
37623
37624 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
37625
37626         * fmap.adb: Fix typo in warning message.
37627
37628         * g-socket.ads, g-socket.adb: Make Free a visible instance of
37629         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
37630
37631 2003-12-01  Vincent Celier  <celier@gnat.com>
37632
37633         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
37634         ther is no Afile.
37635         (Build_Library): Get the switches only if Default_Switches is declared
37636         in package Binder.
37637
37638 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
37639
37640         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
37641         actuals that are indexed components, reanalyze actual to ensure that
37642         packed array references are properly expanded.
37643
37644         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
37645         attempted assignment to a discriminant.
37646
37647 2003-12-01  Robert Dewar  <dewar@gnat.com>
37648
37649         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
37650         reformatting.
37651
37652         * switch-c.adb: Minor reformatting of comments
37653
37654 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
37655
37656         * Makefile.in: Clean ups.
37657
37658 2003-12-01  GNAT Script  <nobody@gnat.com>
37659
37660         * Make-lang.in: Makefile automatically updated
37661
37662 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
37663
37664         * 5wsystem.ads: Disable zero cost exception, not ready yet.
37665
37666 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
37667
37668         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
37669         to force serialization.
37670
37671 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
37672
37673         * g-socket.ads, g-socket.adb:
37674         Clarify documentation of function Stream. Introduce a Free procedure
37675         to release the returned Stream once it becomes unused.
37676
37677         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
37678
37679 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
37680
37681         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
37682         since NT 4 cannot handle timeout values that are too large,
37683         e.g. DWORD'Last - 1.
37684
37685 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
37686
37687         * exp_ch4.adb:
37688         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
37689         in procedure calls and whose expansion must be deferred.
37690
37691         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
37692         is in exp_ch4.
37693
37694         * sem_ch3.adb:
37695         (Build_Derived_Array_Type): Create operator for unconstrained type
37696         if ancestor is unconstrained.
37697
37698 2003-11-26  Vincent Celier  <celier@gnat.com>
37699
37700         * make.adb (Project_Object_Directory): New global variable
37701         (Change_To_Object_Directory): New procedure
37702         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
37703         of Change_Dir directly. Do not change working directory to object
37704         directory of main project after each compilation.
37705         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
37706         directly.
37707         Change to object directory of main project before binding step.
37708         (Initialize): Initialize Project_Object_Directory to No_Project
37709
37710         * mlib-prj.adb:
37711         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
37712         binding a Stand-Alone Library.
37713
37714         * output.adb: Update Copyright notice
37715         (Write_Char): Output buffer when full
37716
37717 2003-11-26  Robert Dewar  <dewar@gnat.com>
37718
37719         * sem_ch13.adb: (Check_Size): Reset size if size is too small
37720
37721         * sem_ch13.ads:
37722         (Check_Size): Fix documentation to include bit-packed array case
37723
37724         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
37725
37726         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
37727
37728         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
37729
37730 2003-11-24  Arnaud Charlet  <charlet@act-europe.fr>
37731
37732         PR ada/13142
37733         * utils.c (init_gigi_decls): Change name of built-in setjmp to
37734         __builtin_setjmp, since this is apparently needed by recent
37735         non Ada changes.
37736
37737 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
37738
37739         * adadecode.c: Only include ctype.h if not IN_GCC.
37740         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
37741
37742 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
37743
37744         * Makefile.in:
37745         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
37746         signals and interrupts.
37747
37748         * 5zintman.ads: New File.
37749
37750         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
37751         add exception signals to the set of unmasked signals.
37752
37753         * 5ztaprop.adb:
37754         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
37755         between signals and interrupts.
37756         Add to Unblocked_Signal_Mask the set of signals that are in
37757         Keep_Unmasked.
37758
37759         * 7sinmaop.adb:
37760         Adding a check to see whether the Interrupt_ID we want to unmask is in
37761         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
37762         reason is that the index type of the Keep_Unmasked array is not always
37763         Interrupt_ID; it may be a subtype of Interrupt_ID.
37764
37765 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
37766
37767         * exp_util.adb:
37768         (Remove_Side_Effects): Condition constantness of object created for a
37769          an unchecked type conversion on the constantness of the expression
37770          to ensure the correct value for 'Constrained when passing components
37771          of view-converted class-wide objects.
37772
37773 2003-11-24  Robert Dewar  <dewar@gnat.com>
37774
37775         * par-load.adb (Load): Improve handling of misspelled and missing units
37776         Removes several cases of compilation abandoned messages
37777
37778         * lib.adb: (Remove_Unit): New procedure
37779
37780         * lib.ads: (Remove_Unit): New procedure
37781
37782         * lib-load.adb: Minor reformatting
37783
37784 2003-11-24  Vincent Celier  <celier@gnat.com>
37785
37786         * make.adb:
37787         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
37788         (Marking_Label): Label to mark processed source files. Incremented for
37789         each executable.
37790         (Gnatmake): Increase Marking_Labet for each executable
37791         (Is_Marked): Compare against marking label
37792         (Mark): Mark with marking label
37793
37794 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
37795
37796         * s-thread.ads:
37797         Move the declaration of the TSD for System.Threads to System.Soft_Links.
37798         Add some comments.
37799
37800         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
37801         (rts-cert): build a single relocatable object for the run-time lib.
37802         Fix perms.
37803
37804 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
37805
37806         * Make-lang.in:
37807         Use gnatls rather than gcc to obtain the location of GNAT RTL for
37808         crosstools build.
37809
37810 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
37811
37812         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
37813         can not use it as before (that is, as a variable) when dumping it into
37814         the tree file. Add a local variable to store the result of this
37815         function and to be used as the string to be written into the tree.
37816
37817         * scn.adb (Initialize_Scanner): Add comments explaining the recent
37818         changes.
37819
37820         * sinput.adb (Source_First, Source_Last): In case of
37821         Internal_Source_File, replace returning attributes of
37822         Internal_Source_Ptr (which is wrong) with returning attributes of
37823         Internal_Source.
37824
37825 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
37826
37827         * sem_ch3.adb:
37828         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
37829         used for implicit concatenation operators.
37830         Code cleanup.
37831
37832         * sem_elab.adb:
37833         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
37834         task bodies that are in the scope of a Suppress pragma.
37835         (Check_A Call): Use the flag to prevent spurious elaboration checks.
37836
37837         * sinfo.ads, sinfo.adb:
37838         New flag No_Elaboration_Check on function/procedure calls, to properly
37839         suppress checks on calls in task bodies that are within a local suppress
37840         pragma.
37841
37842         * exp_ch4.adb:
37843         (Expand_Concatenate_Other): Use the proper integer type for the
37844         expression for the upper bound, to avoid universal_integer computations
37845         when possible.
37846
37847 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
37848
37849         * .cvsignore: Delete.
37850
37851 2003-11-21  Andreas Schwab  <schwab@suse.de>
37852
37853         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
37854
37855 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
37856
37857         * 5wsystem.ads: Enable zero cost exception.
37858
37859 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
37860
37861         * 5ztiitho.adb: Remove an unreferenced variable.
37862
37863 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
37864
37865         * adaint.c: For FreeBSD, use mkstemp.
37866
37867 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
37868
37869         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
37870
37871 2003-11-21  Robert Dewar  <dewar@gnat.com>
37872
37873         * bld.adb: Remove useless USE of gnatvsn
37874
37875         * gnatchop.adb: Minor reformatting
37876         Clean up version handling to be more consistent
37877
37878         * gnatxref.adb: Minor reformatting
37879
37880         * gprcmd.adb: Minor reformatting
37881         Fix output of copyright to be more consistent with other tools
37882
37883 2003-11-21  Vincent Celier  <celier@gnat.com>
37884
37885         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
37886
37887 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
37888
37889         * atree.adb (Initialize): Add initializations for global variables
37890         used in New_Copy_Tree.
37891
37892         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
37893         Internal_Source_File as the actual).
37894         Put the set of statements creating Any_Character before the set of
37895         statements creating Any_Array to have Any_Character fully initialized
37896         when it is used in creating Any_Array.
37897
37898         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
37899         not call Scan in case if the actual is Internal_Source_File
37900         Add 2003 to copyright note.
37901
37902         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
37903         processing Internal_Source_File.
37904
37905         * types.ads: Add the constant Internal_Source_File representing the
37906         source buffer for artificial source-code-like strings created within
37907         the compiler (the definition of Source_File_Index is changed).
37908
37909 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
37910
37911         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
37912         56system.ads: New file, FreeBSD version.
37913
37914 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
37915
37916         * Make-lang.in (ada.extraclean): Delete.
37917
37918 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
37919
37920         * gnatmem.adb: Clean up verbose output.
37921
37922         * gprcmd.adb: Change copyright to FSF.
37923
37924 2003-11-19  Vincent Celier  <celier@gnat.com>
37925
37926         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
37927         and Version (ignored).
37928
37929         * symbols.ads: (Policy): New type
37930         (Initialize): New parameter Reference, Symbol_Policy and
37931         Library_Version.
37932         Remove parameter Force.
37933         Minor reformatting.
37934
37935         * snames.ads, snames.adbadb: New standard names
37936         Library_Reference_Symbol_File and Library_Symbol_Policy
37937
37938         * mlib-prj.adb:
37939         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
37940         project.
37941
37942         * mlib-tgt.adb:
37943         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
37944
37945         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
37946
37947         * prj.adb: (Project_Empty): New component Symbol_Data
37948
37949         * prj.ads: (Policy, Symbol_Record): New types
37950         (Project_Data): New component Symbol_Data
37951
37952         * prj-attr.adb:
37953         New attributes Library_Symbol_File, Library_Symbol_Policy and
37954         Library_Reference_Symbol_File.
37955
37956         * prj-nmsc.adb:
37957         (Ada_Check): When project is a Stand-Alone library project, process
37958         attribute Library_Symbol_File, Library_Symbol_Policy and
37959         Library_Reference_Symbol_File.
37960
37961         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
37962         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
37963         5sml-tgt.adb (Build_Dynamic_Library): New parameter
37964         Symbol_Data (ignored).
37965
37966         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
37967         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
37968         functions Option_File_Name and Version_String. Set new options of
37969         gnatsym related to symbol file, symbol policy and reference symbol
37970         file.
37971
37972         * 5vsymbol.adb:
37973         Extensive modifications to take into account the reference symbol file,
37974         the symbol policy, the library version and to put in the symbol file the
37975         minor and major IDs.
37976
37977         * bld.adb (Process_Declarative_Items): Put second argument of
37978         gprcmd to_absolute between single quotes, to avoid problems with
37979         Windows.
37980
37981         * bld-io.adb: Update Copyright notice.
37982         (Flush): Remove last character of a line, if it is a back slash, to
37983         avoid make problems.
37984
37985         * gnatsym.adb:
37986         Implement new scheme with reference symbol file and symbol policy.
37987
37988         * g-os_lib.ads: (Is_Directory): Clarify comment
37989
37990 2003-11-19  Robert Dewar  <dewar@gnat.com>
37991
37992         * atree.adb: Move New_Copy_Tree global variables to head of package
37993
37994         * errout.adb: Minor reformatting
37995
37996 2003-11-19  Javier Miranda  <miranda@gnat.com>
37997
37998         * sem_ch4.adb: (Diagnose_Call): Improve error message.
37999         Add reference to Ada0Y (AI-50217)
38000
38001         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
38002         sem_util.adb: Add reference to AI-50217
38003
38004         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
38005
38006         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
38007
38008         * sem_aggr.adb: Complete documentation of AI-287 changes
38009
38010         * par-ch4.adb: Document previous changes.
38011
38012         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
38013         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
38014         Ada0Y (AI-50217)
38015
38016         * exp_aggr.adb: Add references to AI-287 in previous changes
38017
38018 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
38019
38020         * exp_ch6.adb:
38021         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
38022         in the rewriting is the result of an inlined call.
38023
38024         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
38025         parameter is a type conversion, use original node to construct the
38026         post-call assignment, because expression may have been rewritten, e.g.
38027         if it is a packed array.
38028
38029         * sem_attr.adb:
38030         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
38031         body, just as it is in an instance.
38032         Categorization routines
38033
38034         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
38035         Instantiate_Object): Set proper sloc reference for message on missing
38036         actual.
38037
38038 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
38039
38040         * Makefile.in: Add FreeBSD libgnat pairs.
38041
38042         * usage.adb: Fix typo in usage message.
38043
38044 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
38045
38046         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
38047         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
38048         pragma Thread_Body.
38049         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
38050
38051         * s-thread.adb: This file is now a dummy implementation of
38052         System.Thread.
38053
38054 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
38055
38056         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
38057
38058 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
38059
38060         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
38061         instanciation references in the parent type description.
38062
38063 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38064
38065         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
38066
38067         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
38068         TYPE_PRECISION directly from esize.
38069
38070 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
38071
38072         * cstreams.c:
38073         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
38074
38075         * init.c: Initialization routines for FreeBSD
38076
38077         * link.c: Link info for FreeBSD
38078
38079         * sysdep.c: Add the case of FreeBSD
38080
38081 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
38082
38083         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
38084         already called in System.Threads.
38085
38086         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
38087         environment task, as it has been moved to System.Threads.Initialization.
38088
38089 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
38090
38091         * adaint.c (__gnatlib_install_locks): Only reference
38092         __gnat_install_locks on VMS, since other platforms can avoid using
38093         --enable-threads=gnat
38094
38095 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38096
38097         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
38098
38099         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
38100         TYPE_PACKED_ARRAY_TYPE_P.
38101         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
38102
38103         Part of PR ada/12806
38104         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
38105         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
38106
38107 2003-11-17  Vincent Celier  <celier@gnat.com>
38108
38109         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
38110         to False.
38111         Do not set exit status to Failure when Warning is True.
38112         (Gnatchop): Make errors "no compilation units found" and
38113         "no source files written" warnings only.
38114
38115         * make.adb (Gnatmake): When using a project file, set
38116         Look_In_Primary_Dir to False.
38117         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
38118         and Local_Configuration_Pragmas in the project where they are declared
38119         not an extending project which might have inherited them.
38120
38121         * osint.adb (Locate_File): If Name is already an absolute path, do not
38122         look for a directory.
38123
38124         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
38125         -gnats (Check_Syntax) is used, issue only a warning, not an error.
38126
38127         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
38128         in objects of type Variable_Value.
38129
38130         * prj.ads: (Variable_Value): New component Project
38131
38132         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
38133         is in a project extended by Project.
38134
38135         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
38136         Project of Variable_Values to this new parameter value.
38137         (Expression): Set component Project of Variable_Values.
38138         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
38139         Set the component Project in array elements.
38140
38141 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
38142
38143         * errout.adb: (Initialize): Add initialization for error nodes.
38144
38145         * sem_ch12.adb (Initialize): Add missing initializations for
38146         Exchanged_Views and Hidden_Entities.
38147
38148 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
38149
38150         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
38151         already instantiated tree for use in subsequent inlining.
38152         (Analyze_Associations, Instantiate_Formal_Subprogram,
38153         Instantiate_Object): improve error message for mismatch in
38154         instantiations.
38155
38156         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
38157         instantiations of subprograms declared in instances.
38158
38159 2003-11-17  Javier Miranda  <miranda@gnat.com>
38160
38161         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
38162         executed only under the Extensions_Allowed flag.
38163
38164 2003-11-17  Robert Dewar  <dewar@gnat.com>
38165
38166         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
38167         zeroes suppressed.
38168         (Address_Image): Fix bug of returning 0x instead of 0x0
38169         Minor reformatting (function specs).
38170
38171         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
38172         (missed case of 33-63)
38173
38174         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
38175
38176         * s-thread.adb: Add comments for pragma Restriction
38177
38178         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
38179         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
38180
38181 2003-11-17  Ed Falis  <falis@gnat.com>
38182
38183         * s-thread.adb: Added No_Tasking restriction for this implementation.
38184
38185 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
38186
38187         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
38188         instanciation references in the parent type description.
38189
38190 2003-11-17  GNAT Script  <nobody@gnat.com>
38191
38192         * Make-lang.in: Makefile automatically updated
38193
38194 2003-11-16  Jason Merrill  <jason@redhat.com>
38195
38196         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
38197         and TAGS files that include them for each front end.
38198
38199 2003-11-14  Andreas Jaeger  <aj@suse.de>
38200
38201         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
38202         is the canonical version.
38203         * misc.c (gnat_handle_option): Likewise.
38204
38205         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
38206
38207         * 5nsystem.ads: New file for x86_64-linux-gnu.
38208
38209 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
38210
38211         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
38212
38213         * comperr.adb: Fix logic in previous change.
38214
38215 2003-11-13  Vincent Celier  <celier@gnat.com>
38216
38217         * 5bml-tgt.adb (Build_Dynamic_Library): Use
38218         Osint.Include_Dir_Default_Prefix instead of
38219         Sdefault.Include_Dir_Default_Name.
38220
38221         * gnatlbr.adb: Update Copyright notice
38222         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
38223         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
38224         instead of Sdefault.Object_Dir_Default_Name
38225
38226         * gnatlink.adb:
38227         (Process_Binder_File): Never suppress the option following -Xlinker
38228
38229         * mdll-utl.adb:
38230         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
38231         Sdefault.Object_Dir_Default_Name.
38232
38233         * osint.ads, osint.adb:
38234         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
38235         Minor reformatting.
38236
38237         * vms_conv.ads: Minor reformating
38238         Remove GNAT STANDARD and GNAT PSTA
38239
38240         * vms_conv.adb:
38241         Allow GNAT MAKE to have several files on the command line.
38242         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
38243         Sdefault.Object_Dir_Default_Name.
38244         Minor Reformating
38245         Remove data for GNAT STANDARD
38246
38247         * vms_data.ads:
38248         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
38249         Remove data for GNAT STANDARD
38250         Remove options and documentation for -gnatwb/-gnatwB: these warning
38251         options no longer exist.
38252
38253 2003-11-13  Ed Falis  <falis@gnat.com>
38254
38255         * 5zthrini.adb: (Init_RTS): Made visible
38256
38257         * 5zthrini.adb:
38258         (Register): Removed unnecessary call to taskVarGet that checked whether
38259          an ATSD was already set as a task var for the argument thread.
38260
38261         * s-thread.adb:
38262         Updated comment to reflect that this is a VxWorks version
38263         Added context clause for System.Threads.Initialization
38264         Added call to System.Threads.Initialization.Init_RTS
38265
38266 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
38267
38268         * 5zthrini.adb:
38269         (Init_RTS): New procedure, for the initialization of the run-time lib.
38270
38271         * s-thread.adb:
38272         Remove dependancy on System.Init, so that this file can be used in the
38273         AE653 sequential run-time lib.
38274
38275 2003-11-13  Robert Dewar  <dewar@gnat.com>
38276
38277         * bindgen.adb: Minor reformatting
38278
38279 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
38280
38281         * checks.adb:
38282         (Apply_Discriminant_Check): Do no apply check if target type is derived
38283         from source type with no applicable constraint.
38284
38285         * lib-writ.adb:
38286         (Ensure_System_Dependency): Do not apply the style checks that may have
38287         been specified for the main unit.
38288
38289         * sem_ch8.adb:
38290         (Find_Selected_Component): Further improvement in error message, with
38291         RM reference.
38292
38293         * sem_res.adb:
38294         (Resolve): Handle properly the case of an illegal overloaded protected
38295         procedure.
38296
38297 2003-11-13  Javier Miranda  <miranda@gnat.com>
38298
38299         * exp_aggr.adb:
38300         (Has_Default_Init_Comps): New function to check the presence of
38301         default initialization in an aggregate.
38302         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
38303         extension aggregate of a limited record. In addition, a new formal
38304         was added to do not initialize the record controller (if any) during
38305         this recursive expansion of ancestors.
38306         (Init_Controller): Add support for limited record components.
38307         (Expand_Record_Aggregate): In case of default initialized components
38308         convert the aggregate into a set of assignments.
38309
38310         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
38311         describing the new syntax.
38312         Nothing else needed to be done because this subprogram delegates part of
38313         its work to P_Precord_Or_Array_Component_Association.
38314         (P_Record_Or_Array_Component_Association): Give support to the new
38315         syntax for default initialization of components.
38316
38317         * sem_aggr.adb:
38318         (Resolve_Aggregate): Relax the strictness of the frontend in case of
38319         limited aggregates.
38320         (Resolve_Record_Aggregate): Give support to default initialized
38321         components.
38322         (Get_Value): In case of default initialized components, duplicate
38323         the corresponding default expression (from the record type
38324         declaration). In case of default initialization in the *others*
38325         choice, do not check that all components have the same type.
38326         (Resolve_Extension_Aggregate): Give support to limited extension
38327         aggregates.
38328
38329         * sem_ch3.adb:
38330         (Check_Initialization): Relax the strictness of the front-end in case
38331         of aggregate and extension aggregates. This test is now done in
38332         Get_Value in a per-component manner.
38333
38334         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
38335         expression corresponds to a limited aggregate. This test is now done
38336         in Get_Value.
38337
38338         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
38339         Box_Present flag.
38340
38341         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
38342         present in an N_Component_Association node
38343
38344 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
38345
38346         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
38347         type-conformant entry only if they are homographs.
38348
38349 2003-11-13  GNAT Script  <nobody@gnat.com>
38350
38351         * Make-lang.in: Makefile automatically updated
38352
38353 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38354
38355         * adadecode.c: Use <> form of include for ctype.h.
38356         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
38357
38358 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38359
38360         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
38361         Works around PR middle-end/6552.
38362
38363 2003-11-10  Ed Falis  <falis@gnat.com>
38364
38365         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
38366
38367         * 5zinit.adb: (Install_Handler): Moved back to spec
38368         (Install_Signal_Handlers): Deleted
38369
38370         * 5zthrini.adb: Added context clause for System.Storage_Elements
38371         (Register): Only handles creation of taskVar; initialization moved to
38372         Thread_Body_Enter.
38373         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
38374         Added declaration of environment task secondary stack and
38375         initialization.
38376
38377         * s-thread.adb: Implement bodies for thread body processing
38378
38379         * s-thread.ads:
38380         Added comment identifying supported targets for pragma Thread_Body.
38381
38382 2003-11-10  Pascal Obry  <obry@gnat.com>
38383
38384         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
38385         GNAT_MAX_PATH_LEN.
38386
38387         * s-fileio.adb:
38388         (Open): Properly check for string length before copying into the buffer.
38389         Raises Name_Error if buffer is too small. Note that this was a potential
38390         buffer overflow.
38391
38392 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
38393
38394         * bindgen.adb, comperr.adb: Code clean ups.
38395         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
38396
38397 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
38398
38399         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
38400
38401 2003-11-10  Vincent Celier  <celier@gnat.com>
38402
38403         * gprcmd.adb:
38404         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
38405         installation.
38406
38407         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
38408
38409         * prj.adb: (Project_Empty): Add new boolean component Virtual
38410
38411         * prj.ads: (Virtual_Prefix): New constant string
38412         (Project_Data): New boolean component Virtual
38413
38414         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
38415         a library project is extended by a virtual extending project.
38416
38417         * prj-part.adb:
38418         Modifications throughout to implement extending-all project, including:
38419         (Virtual_Hash, Processed_Hash): New hash tables
38420         (Create_Virtual_Extending_Project): New procedure
38421         (Look_For_Virtual_Projects_For): New procedure
38422
38423         * prj-proc.adb:
38424         (Process): After checking the projects, if main project is an
38425         extending-all project, set the object directory of all virtual extending
38426         project to the object directory of the main project.
38427         Adjust error message when a virtual extending project has the same
38428         object directory as an project being extended.
38429         (Recursive_Process): If name starts with the virtual prefix, set Virtual
38430         to True in the project data.
38431
38432         * prj-tree.adb:
38433         (Default_Project_Node): Add new boolean component Extending_All
38434         (Is_Extending_All): New function
38435         (Set_Is_Extending_All): New procedure
38436
38437         * prj-tree.ads: (Is_Extending_All): New function
38438         (Set_Is_Extending_All): New procedure
38439         (Project_Node_Record): New boolean component Extending_All
38440
38441         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
38442
38443         * vms_data.ads:
38444         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
38445
38446         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
38447         "gprcmd prefix" to define it.
38448
38449 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
38450
38451         * einfo.ads: Fix a typo and remove an extraneous word in comments.
38452
38453         * lib-load.adb:
38454         (Create_Dummy_Package_Unit): Set the scope of the entity for the
38455         created dummy package to Standard_Standard, not to itself, to
38456         defend other parts of the front-end against encoutering a cycle in
38457         the scope chain.
38458
38459         * sem_ch10.adb:
38460         (Analyze_With_Clause): When setting the entities for the successive
38461         N_Expanded_Names that constitute the name of a child unit, do not
38462         attempt to go further than Standard_Standard in the chain of scopes.
38463         This case arises from the placeholder units created by
38464         Create_Dummy_Package_Unit in the case of a with_clause for a
38465         nonexistent child unit.
38466
38467 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
38468
38469         * exp_ch6.adb:
38470         (Expand_Thread_Body): Place subprogram on scope stack, so that new
38471         declarations are given the proper scope.
38472
38473         * sem_ch13.adb:
38474         (Check_Expr_Constants): Reject an expression that contains a constant
38475         created during expansion, and that appears after the object to which
38476         the address clause applies.
38477
38478         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
38479         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
38480         that uses 'Range of a function call with controlled components, so
38481         that the function result can be finalized before starting the loop.
38482
38483         * sem_ch8.adb:
38484         (Find_Selected_Component): Improve error message when prefix is
38485         an implicit dereference of an incomplete type.
38486
38487 2003-11-10  Robert Dewar  <dewar@gnat.com>
38488
38489         * opt.ads: New Print_Standard flag for -gnatS switch
38490
38491         * sem_ch13.adb: Remove some additional checks for unaligned arrays
38492
38493         * cstand.adb (Create_Standard): Print out package standard if -gnatS
38494         switch set
38495
38496         * debug.adb: Update doc for -gnatds to discuss relationship with new
38497         -gnatS flag
38498
38499         * sinfo.adb: Add new field Entity_Or_Associated_Node
38500
38501         * sinfo.ads: Add new field Entity_Or_Associated_Node
38502         Update documentation for Associated_Node and Entity fields to clarify
38503         relationship and usage.
38504
38505         * sprint.adb:
38506         (Write_Id): Properly process Associated_Node field in generic template
38507
38508         * switch-c.adb:
38509         Recognize new -gnatS switch for printing package Standard
38510         This replaces gnatpsta
38511
38512         * usage.adb:
38513         Add line for  new -gnatS switch for printing package Standard
38514         This replaces gnatpsta
38515
38516 2003-11-10  Andreas Jaeger  <aj@suse.de>
38517
38518         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
38519         integer.
38520
38521 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
38522
38523         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
38524         by gnat1.
38525
38526 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
38527
38528         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
38529         no longer needed.
38530
38531         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
38532
38533         * sysdep.c: Add handling of cygwin.
38534
38535 2003-11-10  GNAT Script  <nobody@gnat.com>
38536
38537         * Make-lang.in: Makefile automatically updated
38538
38539 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
38540
38541         PR 12950
38542         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
38543         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
38544         Replace GNAT_ROOT by GCC_ROOT.
38545
38546         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
38547
38548 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
38549
38550         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
38551         and update for changed meaning of GET_MODE_BITSIZE.
38552
38553 2003-11-04  Doug Rupp  <rupp@gnat.com>
38554
38555         * sysdep.c: Problem discovered during IA64 VMS port.
38556         [VMS] #include <unixio.h> to get proper prototypes.
38557
38558         * adaint.c:
38559         Issues discovered/problems fixed during IA64 VMS port.
38560         [VMS] #define _POSIX_EXIT for proper semantics.
38561         [VMS] #include <unixio.h> for proper prototypes.
38562         [VMS] (fork): #define IA64 version.
38563         (__gnat_os_exit): Remove unnecessary VMS specific code.
38564
38565 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38566
38567         Part of PR ada/12806
38568         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
38569         tree, not integer.
38570
38571         * decl.c:
38572         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
38573         not integer.
38574
38575         * targtyps.c, decl.c, misc.c,
38576         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
38577         routines to work around change in FP sizing semantics in GCC.
38578
38579         * utils.c:
38580         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
38581
38582         * gigi.h: (enumerate_modes): New function.
38583
38584         * Make-lang.in: (ada/misc.o): Add real.h.
38585
38586         * misc.c: (enumerate_modes): New function.
38587
38588 2003-11-04  Robert Dewar  <dewar@gnat.com>
38589
38590         * 3vtrasym.adb: Minor reformatting
38591         Use terminology encoded/decoded name, rather than C++ specific notion
38592         of mangling (this is the terminology used throughout GNAT).
38593
38594         * einfo.h: Regenerated
38595
38596         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
38597
38598         * exp_ch6.adb:
38599         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
38600
38601         * par-prag.adb: Add dummy entry for Thread_Body pragma
38602
38603         * rtsfind.ads:
38604         Add entries for System.Threads entities for thread body processing
38605
38606         * sem_attr.adb:
38607         (Analyze_Pragma, Access attributes): Check these are not applied to a
38608         thread body, since this is not permitted
38609
38610         * sem_prag.adb: Add processing for Thread_Body pragma.
38611         Minor comment fix.
38612
38613         * sem_res.adb:
38614         (Resolve_Call): Check for incorrect attempt to call a thread body
38615          procedure with a direct call.
38616
38617         * snames.ads, snames.adb: Add entry for Thread_Body pragma
38618         Add names associated with thread body expansion
38619
38620         * snames.h: Add entry for Thread_Body pragma
38621
38622         * s-thread.adb: Add entries for thread body processing
38623         These are dummy bodies so far
38624
38625         * s-thread.ads: Add documentation on thread body handling.
38626         Add entries for thread body processing.
38627
38628 2003-11-04  Javier Miranda  <miranda@gnat.com>
38629
38630         * sem_ch10.adb:
38631         (Build_Limited_Views): Return after posting an error in case of limited
38632         with_clause on subprograms, generics, instances or generic renamings
38633         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
38634         on subprograms, generics, instances or generic renamings
38635
38636 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
38637
38638         * raise.c (setup_to_install): Correct mistake in last revision; two
38639         arguments out of order.
38640
38641         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
38642         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
38643         notice, missed in previous change.
38644         Remove trailing blanks and other style errors introduced in previous
38645         change.
38646
38647 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
38648
38649         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
38650         rid of the wrapper for a LJM type, ensuring we don't do that if the
38651         field is addressable.  This avoids potential low level type view
38652         mismatches later on, for instance in a by-reference argument passing
38653         process.
38654
38655 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38656
38657         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
38658         aligned at byte boundary.
38659
38660 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
38661
38662         * decl.c (components_to_record): Do not delete the empty variants from
38663         the end of the union type.
38664
38665 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
38666
38667         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
38668         operation for a derived type, an explicit declaration may use a local
38669         subtype of Boolean.
38670
38671 2003-11-04  Vincent Celier  <celier@gnat.com>
38672
38673         * make.adb (Gnatmake): Allow main sources on the command line with a
38674         library project when it is only for compilation (no binding or
38675         linking).
38676
38677 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38678
38679         * Makefile.in: Remove many duplicate variables.
38680
38681 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
38682
38683         * Make-lang.in (dvi): Move targets to $(docobjdir).
38684         (gnat_ug_vms.dvi): Simplify rule and adjust target.
38685         (gnat_ug_wnt.dvi): Likewise.
38686         (gnat_ug_unx.dvi): Likewise.
38687         (gnat_ug_vxw.dvi): Likewise.
38688         (gnat_rm.dvi): Likewise.
38689         (gnat-style.dvi): Likewise.
38690
38691 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
38692
38693         * gigi.h: Missed commit from update for C90.
38694
38695 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
38696
38697         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
38698
38699 2003-10-31  Andreas Schwab  <schwab@suse.de>
38700
38701         * raise.c (get_action_description_for): Fix typo in last change.
38702
38703 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
38704
38705         PR ada/12761
38706         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
38707         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
38708
38709 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
38710
38711         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
38712         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
38713         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
38714         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
38715         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
38716
38717 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
38718
38719         * 3vtrasym.adb:
38720         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
38721         numbers when symbol name is too long.
38722
38723 2003-10-30  Ed Falis  <falis@gnat.com>
38724
38725         * g-signal.ads, g-signal.adb: New files
38726
38727         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
38728
38729         * Makefile.rtl: Introduce GNAT.Signals
38730
38731 2003-10-30  Robert Dewar  <dewar@gnat.com>
38732
38733         * freeze.adb: Minor reformatting
38734
38735         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
38736
38737         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
38738         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
38739         New handling of Id_Check parameter to improve recognition of keywords
38740         used as identifiers.
38741         Update copyright notice to include 2003
38742
38743 2003-10-29  Robert Dewar  <dewar@gnat.com>
38744
38745         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
38746         sem_ch10.adb: Minor reformatting
38747
38748         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
38749         (Expand_Assign_Record): Test right hand side for bit unaligned as well
38750
38751 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
38752
38753         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
38754         Support for TBK$SYMBOLIZE-based symbolic traceback.
38755
38756 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
38757
38758         * exp_disp.adb:
38759         Revert previous change, that did not work well when pragma No_Run_Time
38760         was used in conjunction with a run-time other than ZFP.
38761
38762 2003-10-29  Vincent Celier  <celier@gnat.com>
38763
38764         * make.adb:
38765         (Gnatmake): When there are no Ada mains in attribute Main, disable the
38766          bind and link steps only is switch -z is not used.
38767
38768 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
38769
38770         * Makefile.generic: Remove duplicated setting of CC.
38771
38772         * Makefile.prolog: Set CC to gcc by default, to override make's
38773         default (cc).
38774
38775         * einfo.h: Regenerated.
38776
38777 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
38778
38779         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
38780         current body, after compiling subunit.
38781
38782         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
38783         when in deleted code, because gigi needs properly ordered freeze
38784         actions to annotate types.
38785
38786         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
38787         prevent the premature freezing of record type that contains
38788         subcomponents with a private type that does not yet have a completion.
38789
38790 2003-10-29  Javier Miranda  <miranda@gnat.com>
38791
38792         * sem_ch12.adb:
38793         (Analyze_Package_Instantiation): Check that instances can not be used in
38794         limited with_clauses.
38795
38796         * sem_ch8.adb:
38797         (Analyze_Package_Renaming): Check that limited withed packages cannot
38798         be renamed. Improve text on error messages related to limited
38799         with_clauses.
38800
38801         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
38802
38803         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
38804         Update copyright notice.
38805
38806         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
38807         (Install_Limited_Context_Clauses): New subprogram that isolates all the
38808         checks required for limited context_clauses and installs the limited
38809         view.
38810         (Install_Limited_Withed_Unit): Complete its documentation.
38811         (Analyze_Context): Check that limited with_clauses are only allowed in
38812         package specs.
38813         (Install_Context): Call Install_Limited_Context_Clauses after the
38814         parents have been installed.
38815         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
38816         package as 'From_With_Type'; this mark indicates that the limited view
38817         is installed. Used to check bad usages of limited with_clauses.
38818         (Build_Limited_Views): Do not add shadow entities to the scope's list
38819         of entities. Do not add real entities to the Non_Limited_Views chain.
38820         Improve error notification.
38821         (Remove_Context_Clauses): Remove context clauses in two phases:
38822         limited views first and regular views later (to maintain the
38823         stack model).
38824         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
38825         its visible entities.
38826
38827 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
38828
38829         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
38830         with any type that Is_Fixed_Point_Type.
38831
38832         * sinfo.ads: Fix documentation for Associated_Node attribute.
38833
38834 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
38835
38836         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
38837         both '-gnatc' and '-gnatt' are specified.
38838
38839         * atree.adb (Initialize): Add initialization for Node_Count (set to
38840         zero).
38841
38842 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38843
38844         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
38845         do not consider as Pure.
38846
38847         Part of implementation of function-at-a-time:
38848
38849         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
38850         (tree_transform): Add new argument to build_component_ref.
38851         (tree_transform, case N_Assignment_Statement): Make and return an
38852         EXPR_STMT.
38853         (tree_transform): If result IS_STMT, set flags and return it.
38854         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
38855
38856         * utils2.c (build_simple_component_ref, build_component_ref): Add new
38857         arg, NO_FOLD_P.
38858         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
38859         (build_allocator): Likewise.
38860
38861         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
38862         Add new arg to build_component_ref.
38863         (maybe_unconstrained_array, unchecked_convert): Likewise.
38864
38865         * ada-tree.def (EXPR_STMT): New code.
38866
38867         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
38868
38869         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
38870         build_component_ref calls.
38871
38872         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
38873
38874         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
38875         (build_component_ref): Add new argument, NO_FOLD_P.
38876
38877 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
38878
38879         * Makefile.generic: Add missing substitution on object_deps handling.
38880
38881         PR ada/5909
38882         * Make-lang.in (check-ada): Enable ACATS test suite.
38883
38884 2003-10-27  Robert Dewar  <dewar@gnat.com>
38885
38886         * exp_ch3.adb:
38887         (Freeze_Array_Type): We do not need an initialization routine for types
38888         derived from String or Wide_String. They should be treated the same
38889         as String and Wide_String themselves. This caused problems with the
38890         use of Initialize_Scalars.
38891
38892         * exp_ch5.adb:
38893         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
38894         composites. This allows use of component clauses that are not byte
38895         aligned.
38896
38897         * sem_prag.adb:
38898         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
38899         is an attempt to pack an array of atomic objects.
38900
38901         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
38902
38903 2003-10-27  Pascal Obry  <obry@gnat.com>
38904
38905         * g-dirope.adb:
38906         (Basename): Check for drive letters in a pathname only on DOS based OS.
38907
38908 2003-10-27  Vincent Celier  <celier@gnat.com>
38909
38910         * make.adb:
38911         (Gnatmake): When unable to change dir to the object dir, display the
38912         content of the parent dir of the obj dir, to try to understand why this
38913         happens.
38914
38915 2003-10-27  GNAT Script  <nobody@gnat.com>
38916
38917         * Make-lang.in: Makefile automatically updated
38918
38919 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
38920
38921         * sem_ch12.adb:
38922         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
38923         should not be done in Save/Restore_Scope_Stack, because it is performed
38924         locally.
38925
38926         * sem_ch8.adb:
38927         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
38928         whether use clauses should be removed/restored.
38929
38930         * sem_ch8.ads:
38931         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
38932         whether use clauses should be removed/restored.
38933
38934 2003-10-26  Andreas Jaeger  <aj@suse.de>
38935
38936         * Makefile.in: Remove duplicated lines.
38937
38938 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
38939
38940         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
38941         minimize the differences with ACT tree.
38942
38943         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
38944         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
38945         Gnatvsn.Gnat_Static_Version_String to reduce differences between
38946         ACT and FSF trees.
38947
38948 2003-10-24  Pascal Obry  <obry@gnat.com>
38949
38950         PR ada/12014
38951         * adadecode.c (ostrcpy): New function.
38952         (__gnat_decode): Use ostrcpy of strcpy.
38953         (has_prefix): Set first parameter a const.
38954         (has_suffix): Set first parameter a const.
38955         Update copyright notice. Fix source name in header.
38956         Removes a trailing space.
38957
38958 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
38959
38960         * exp_disp.adb:
38961         Remove the test against being in No_Run_Time_Mode before generating a
38962         call to Register_Tag. It is redundant with the test against the
38963         availability of the function Register_Tag.
38964
38965 2003-10-24  Vincent Celier  <celier@gnat.com>
38966
38967         * g-catiio.adb: (Month_Name): Correct spelling of February
38968
38969         * make.adb: (Mains): New package
38970         (Initialize): Call Mains.Delete
38971         (Gnatmake): Check that each main on the command line is a source of a
38972         project file and, if there are several mains, each of them is a source
38973         of the same project file.
38974         (Gnatmake): When a foreign language is specified in attribute Languages,
38975         no main is specified on the command line and attribute Mains is not
38976         empty, only build the Ada main. If there is no Ada main, just compile
38977         the Ada sources and their closure.
38978         (Gnatmake): If a main is specified on the command line with directory
38979         information, check that the source exists and, if it does, that the path
38980         is the actual path of a source of a project.
38981
38982         * prj-env.adb:
38983         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
38984         Full_Path is True, return the full path instead of the simple file name.
38985         (Project_Of): New function
38986
38987         * prj-env.ads:
38988         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
38989         defaulted to False.
38990         (Project_Of): New function
38991
38992 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
38993
38994         * Makefile.generic:
38995         Ensure objects of main project are always checked and rebuilt if needed.
38996         Set CC to gcc by default.
38997         Prepare new handling of link by creating a global archive (not activated
38998         yet).
38999
39000         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
39001         stringt.h: Update copyright notice. Remove trailing blanks.
39002         Fix source name in header.
39003
39004 2003-10-24  Robert Dewar  <dewar@gnat.com>
39005
39006         * sem_ch12.adb: Minor reformatting
39007
39008         * sem_ch3.adb:
39009         Minor reformatting (including new function return style throughout)
39010
39011         * sem_ch3.ads:
39012         Minor reformatting (including new function return style throughout)
39013
39014 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
39015
39016         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
39017         stringt.h: Update copyright notice. Remove trailing blanks.
39018         Fix source name in header.
39019
39020 2003-10-24  GNAT Script  <nobody@gnat.com>
39021
39022         * Make-lang.in: Makefile automatically updated
39023
39024 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
39025
39026         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
39027         stringt.h: Convert to ISO C90 declarations and definitions.
39028
39029 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
39030
39031         PR ada/11978
39032         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
39033         External_Tag attribute definition clauses.
39034
39035 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
39036
39037         PR ada/7613
39038         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
39039         child unit, generate a fully qualified name to avoid spurious errors
39040         when the context contains renamings of different child units with
39041         the same simple name.
39042
39043         * exp_dbug.ads: Add documentation on name qualification for renamings
39044         of child units.
39045
39046 2003-10-23  Robert Dewar  <dewar@gnat.com>
39047
39048         * g-regpat.ads, g-regpat.adb: Minor reformatting
39049
39050 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
39051
39052         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
39053
39054 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
39055
39056         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
39057         Machine call.
39058
39059         * urealp.h: (Machine): Update to proper definition.
39060
39061 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
39062
39063         * init.c, adaint.c: Minor reformatting.
39064
39065 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
39066
39067         * adaint.c (w32_epoch_offset): Define static const at file level.
39068         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
39069         rather than t_create, t_access in call to GetFileTime. Use union
39070         to convert between FILETIME and  unsigned long long.
39071         (__gnat_file_time_name): Test for invalid file handle.
39072         (__gnat_set_filetime_name): Support win32 targets using
39073         w32api SetFileTime.
39074
39075 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
39076
39077         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
39078
39079         * ctrl_c.c (__gnat_int_handler): Remove declaration.
39080
39081         * decl.c (creat_concat_name):  Const-ify prefix.
39082
39083         * adaint.c: Include ctype.h if __MINGW32__.
39084         (__gnat_readlink): Mark arguments as possibly unused.
39085         (__gnat_symlink): Likewise.
39086         (__gnat_is_symbolic_link): Likewise.
39087         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
39088         declaration
39089         (__gnat_file_time_name): Don't declare struct stat statbuf when
39090         not needed.
39091         (__gnat_is_absolute_path): Add parenthesis around condition of
39092         'if' statement to avoid warning.
39093         (__gnat_plist_init): Specify void as parameter.
39094         (plist_enter): Likewise.
39095         (plist_leave): Likewise.
39096         (remove_handle): Make static. Initialize prev.
39097
39098 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
39099
39100         PR ada/10110
39101         * Makefile.in: Disable build of gnatpsta.
39102         * cstreams.c (__gnat_full_name): Minor improvements and clean up
39103         of previous change.
39104
39105 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
39106
39107         * tracebak.c (MAX): Avoid redefinition warning.
39108
39109         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
39110         Change msg to const char *.
39111         (__gnat_install_handler): Remove ss, unused.
39112         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
39113         to const char *.
39114         * cstreams.c (__gnat_full_name): Declare p only when used.
39115         (__gnat_full_name) [sgi] Return buffer.
39116
39117 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
39118
39119         * mingw32.h: New file.
39120         * gnat_wrapper.adb: New file.
39121
39122 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
39123
39124         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
39125         string match a pre compiled regular expression (the corresponding
39126         version of the function working on a raw regular expression)
39127         Fix typos in various comments
39128         Update copyright notice in spec
39129
39130 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
39131
39132         * exp_ch3.adb:
39133         (Component_Needs_Simple_Initialization): Return False when the type is a
39134         packed bit array. Revise spec comments to document this case.
39135
39136         * exp_prag.adb:
39137         (Expand_Pragma_Import): Set any expression on the imported object to
39138         empty to avoid initializing imported objects (in particular this
39139         covers the case of zero-initialization of bit arrays).
39140         Update copyright notice.
39141
39142 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
39143
39144         * sem_ch12.adb:
39145         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
39146         a subunit is missing.
39147         (Instantiate_Subprogram_Body): If body of function is missing, set type
39148         of return expression explicitly in dummy body, to prevent cascaded
39149         errors when a subunit is missing.
39150         Fixes PR 5677.
39151
39152         * sem_ch3.adb:
39153         (Access_Subprogram_Declaration): Verify that return type is valid.
39154         Fixes PR 8693.
39155
39156         * sem_elab.adb:
39157         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
39158         generic.
39159         Fixes PR 12318.
39160
39161         * sem_util.adb:
39162         (Corresponding_Discriminant): If the scope of the discriminant is a
39163         private type without discriminant, use its full view.
39164         Fixes PR 8247.
39165
39166 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
39167
39168         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
39169         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
39170         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
39171         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
39172         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
39173         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
39174         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
39175         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
39176         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
39177         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
39178         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
39179         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
39180         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
39181         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
39182         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
39183         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
39184         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
39185         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
39186         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
39187         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
39188         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
39189         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
39190         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
39191         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
39192         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
39193         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
39194         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
39195         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
39196         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
39197         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
39198         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
39199         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
39200         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
39201         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
39202         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
39203         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
39204         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
39205         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
39206         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
39207         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
39208         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
39209         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
39210         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
39211         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
39212         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
39213         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
39214         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
39215         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
39216         vms_conv.ads, vms_conv.adb, vms_data.ads,
39217         vxaddr2line.adb: Files added. Merge with ACT tree.
39218
39219         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
39220         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
39221         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
39222         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
39223         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
39224         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
39225         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
39226         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
39227         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
39228         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
39229
39230         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
39231         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
39232         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
39233         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
39234         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
39235         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
39236         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
39237         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
39238         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
39239         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
39240         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
39241         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
39242         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
39243         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
39244         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
39245         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
39246         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
39247         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
39248         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
39249         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
39250         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
39251         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
39252         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
39253         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
39254         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
39255         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
39256         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
39257         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
39258         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
39259         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
39260         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
39261         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
39262         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
39263         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
39264         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
39265         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
39266         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
39267         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
39268         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
39269         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
39270         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
39271         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
39272         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
39273         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
39274         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
39275         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
39276         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
39277         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
39278         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
39279         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
39280         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
39281         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
39282         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
39283         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
39284         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
39285         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
39286         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
39287         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
39288         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
39289         checks.adb, checks.ads, cio.c, comperr.adb,
39290         comperr.ads, csets.adb, cstand.adb, cstreams.c,
39291         debug_a.adb, debug_a.ads, debug.adb, decl.c,
39292         einfo.adb, einfo.ads, errout.adb, errout.ads,
39293         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
39294         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
39295         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
39296         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
39297         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
39298         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
39299         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
39300         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
39301         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
39302         fe.h, fmap.adb, fmap.ads, fname.adb,
39303         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
39304         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
39305         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
39306         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
39307         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
39308         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
39309         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
39310         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
39311         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
39312         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
39313         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
39314         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
39315         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
39316         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
39317         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
39318         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
39319         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
39320         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
39321         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
39322         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
39323         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
39324         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
39325         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
39326         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
39327         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
39328         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
39329         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
39330         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
39331         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
39332         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
39333         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
39334         layout.adb, lib.adb, lib.ads, lib-list.adb,
39335         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
39336         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
39337         link.c, live.adb, make.adb, make.ads,
39338         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
39339         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
39340         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
39341         misc.c, mkdir.c, mlib.adb, mlib.ads,
39342         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
39343         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
39344         namet.adb, namet.ads, namet.h, nlists.ads,
39345         nlists.h, nmake.adt, opt.adb, opt.ads,
39346         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
39347         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
39348         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
39349         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
39350         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
39351         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
39352         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
39353         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
39354         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
39355         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
39356         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
39357         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
39358         prj-util.adb, prj-util.ads, raise.c, raise.h,
39359         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
39360         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
39361         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
39362         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
39363         scans.ads, scn.adb, scn.ads, s-crc32.adb,
39364         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
39365         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
39366         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
39367         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
39368         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
39369         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
39370         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
39371         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
39372         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
39373         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
39374         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
39375         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
39376         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
39377         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
39378         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
39379         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
39380         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
39381         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
39382         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
39383         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
39384         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
39385         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
39386         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
39387         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
39388         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
39389         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
39390         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
39391         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
39392         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
39393         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
39394         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
39395         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
39396         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
39397         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
39398         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
39399         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
39400         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
39401         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
39402         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
39403         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
39404         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
39405         stringt.adb, stringt.ads, stringt.h, style.ads,
39406         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
39407         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
39408         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
39409         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
39410         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
39411         table.adb, table.ads, targparm.adb, targparm.ads,
39412         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
39413         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
39414         ttypes.ads, types.ads, types.h, uintp.adb,
39415         uintp.ads, uintp.h, uname.adb, urealp.adb,
39416         urealp.ads, urealp.h, usage.adb, utils2.c,
39417         utils.c, validsw.adb, validsw.ads, widechar.adb,
39418         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
39419         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
39420         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
39421         gnatvsn.ads: Merge with ACT tree.
39422
39423         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
39424
39425 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
39426
39427         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
39428         (gnat_ug_vmx.info): Likewise.
39429         (gnat_ug_vxw.info): Likewise.
39430         (gnat_ug_wnt.info): Likewise.
39431         (gnat_rm.info): Likewise.
39432         (gnat-style.info): Likewise.
39433
39434         * Make-lang.in (ada.install-info): Remove target.
39435         (info): New target.
39436         (install-info): Likewise.
39437         (gnat_ug_unx.info): Simplify rule.
39438         (gnat_ug_vmx.info): Likewise.
39439         (gnat_ug_vxw.info): Likewise.
39440         (gnat_ug_wnt.info): Likewise.
39441         (gnat_rm.info): Likewise.
39442         (gnat-style.info): Likewise.
39443
39444 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
39445
39446         * Make-lang.in: Replace uses of $(target_alias) with
39447         $(target_noncanonical).
39448         * ada/Makefile.in: Remove unused mention of $(target_alias).
39449
39450 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
39451
39452         * Make-lang.in (ada.info): Replace with ...
39453         (info): ... this.
39454         (ada.dvi): Replace with ...
39455         (dvi): ... this.
39456
39457 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
39458
39459         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
39460         initialize dconstp5 and dconstmp5.
39461
39462 2003-09-28  Richard Henderson  <rth@redhat.com>
39463
39464         * trans.c (tree_transform): Update call to expand_asm_operands.
39465
39466 2003-09-21  Richard Henderson  <rth@redhat.com>
39467
39468         * trans.c, utils.c: Revert.
39469
39470 2003-09-21  Richard Henderson  <rth@redhat.com>
39471
39472         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
39473         change to const.
39474
39475 2003-09-04  Michael Matz  <matz@suse.de>
39476
39477         * misc.c: Include "target.h".
39478         * Make-lang.in (misc.o): Add dependency on target.h.
39479
39480 2003-09-03  DJ Delorie  <dj@redhat.com>
39481
39482         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
39483         hook.
39484
39485 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
39486
39487         * Makefile.in: Update substitutions to match changes to
39488         configure.  Use include directives instead of @-insertions
39489         to read in host and target fragments.  Add a rule to
39490         regenerate ada/Makefile.
39491
39492 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
39493
39494         * lang-options.h: Remove.
39495         * lang.opt: Add help text.
39496
39497 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
39498
39499         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
39500         calls.
39501
39502 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
39503
39504         * misc.c (gnat_handle_option): Don't handle filenames.
39505
39506 2003-07-04  H.J. Lu  <hongjiu.lu@intel.com>
39507
39508         * Make-lang.in: Replace PWD with PWD_COMMAND.
39509         * Makefile.adalib: Likewise.
39510         * Makefile.in: Likewise.
39511
39512 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
39513
39514         * misc.c (gnat_argv): Revert last change.
39515         (gnat_handle_option, gnat_init_options): Copy arguments.
39516
39517 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
39518
39519         * misc.c (gnat_argv): Make const.
39520
39521 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
39522
39523         * misc.c (save_argc, save_argv): Keep non-static!
39524
39525 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
39526
39527         * misc.c (save_argc, save_argv): Make static.
39528         (gnat_init_options): New prototype.
39529         (gnat_init_options): Update.
39530
39531 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
39532
39533         * gnat_ug.texi: Remove unlikely characters from @vars.
39534         * gnat_ug_vms.texi: Regenerate.
39535
39536 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
39537
39538         * misc.c (record_code_position): Adjust emit_note call.
39539
39540 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
39541
39542         * misc.c (gnat_handle_option): Don't check for missing arguments.
39543
39544 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
39545
39546         * utils.c (end_subprog_body): Adjust expand_function_end call.
39547
39548 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
39549
39550         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
39551         Bind_Main_Program.
39552
39553 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
39554
39555         * lang.opt: Declare Ada.
39556         * misc.c (gnat_init_options): Update.
39557
39558 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
39559
39560         * utils.c (begin_subprog_body): Adjust init_function_start call.
39561
39562 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
39563
39564         * Make-lang.in: Update to use options.c and options.h.
39565         * misc.c: Include options.h not aoptions.h.
39566         (gnat_handle_option): Abort on unrecognized switch.
39567         (gnat_init_options): Request Ada switches.
39568
39569 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
39570
39571         * lang.opt: Add -Wall.
39572         * misc.c (gnat_handle_option): Handle it.
39573
39574 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
39575
39576         * misc.c (gnat_handle_option): Fix warnings.
39577
39578 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
39579
39580         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
39581
39582 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
39583
39584         * Make-lang.in: Update to handle command-line options.
39585         * lang.opt: New file.
39586         * misc.c: Include aoptions.h.
39587         (cl_options_count, cl_options): Remove.
39588         (gnat_handle_option): New.
39589         (gnat_decode_option): Remove.
39590         (LANG_HOOKS_DECODE_OPTION): Remove.
39591         (LANG_HOOKS_HANDLE_OPTION): Override.
39592
39593 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
39594
39595         * init.c, misc.c, trans.c, utils.c: Remove dead code.
39596
39597 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
39598
39599         * Makefile.in: Replace "host_canonical" with "host" for autoconf
39600         substitution.
39601
39602 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
39603
39604         * Make-lang.in: Update.
39605         * misc.c: Include opts.h. Define cl_options_count and cl_options.
39606
39607 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
39608
39609         * misc.c (gnat_init_options): Update.
39610
39611 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
39612
39613         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
39614         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
39615         __attribute__ ((__unused__)).
39616
39617 2003-06-05  Jan Hubicka  <jh@suse.cz>
39618
39619         * Make-lang.in:  Add support for stageprofile and stagefeedback
39620
39621 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
39622
39623         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
39624         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
39625
39626 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
39627
39628         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
39629         Remove non-VMS directive.
39630         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
39631         alternatives.
39632         (Examples of gnatls Usage): Remove VMS alternative.
39633
39634 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
39635
39636         PR ada/9953
39637         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
39638         and turn ZCX_By_Default back to False since the underlying support
39639         is not quite there yet.
39640
39641 2003-06-01  Andreas Jaeger  <aj@suse.de>
39642
39643         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
39644         and ROUND_TYPE_SIZE_UNIT.
39645
39646 2003-05-22   Geert Bosch  <bosch@gnat.com>
39647
39648         * gnat_rm.texi : Remove reference to Ada Core Technologies.
39649
39650 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
39651
39652         * trans.c (tree_transform): Use location_t and input_location
39653         directly.
39654         (build_unit_elab): Likewise.
39655         * utils.c (create_label_decl): Likewise.
39656
39657 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
39658
39659         * trans.c (tree_transform, build_unit_elab,
39660         set_lineno): Rename lineno to input_line.
39661         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
39662         end_subprog_body): Likewise.
39663         * utils2.c (build_call_raise): Likewise.
39664
39665 2003-05-01  Laurent Guerby  <guerby@acm.org>
39666
39667         PR ada/10546
39668         * 5iosinte.ads: Increase pthread_cond_t size to match recent
39669         LinuxThread and NPTL version, merge from ACT.
39670
39671 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
39672
39673         * utils.c (convert): No need to clear TREE_CST_RTL.
39674
39675 2003-04-23   Geert Bosch  <bosch@gnat.com>
39676
39677         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
39678         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
39679         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
39680         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
39681         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
39682         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
39683         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
39684         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
39685         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
39686         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
39687         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
39688         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
39689         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
39690         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
39691         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
39692         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
39693         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
39694         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
39695         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
39696         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
39697         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
39698         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
39699         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
39700         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
39701         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
39702         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
39703         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
39704         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
39705         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
39706         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
39707         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
39708         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
39709         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
39710         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
39711         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
39712         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
39713         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
39714         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
39715         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
39716         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
39717         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
39718         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
39719         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
39720         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
39721         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
39722         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
39723         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
39724         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
39725         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
39726         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
39727         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
39728         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
39729         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
39730         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
39731         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
39732         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
39733         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
39734         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
39735         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
39736         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
39737         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
39738         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
39739         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
39740         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
39741         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
39742         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
39743         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
39744         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
39745         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
39746         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
39747         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
39748         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
39749         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
39750         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
39751         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
39752         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
39753         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
39754         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
39755         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
39756         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
39757         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
39758         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
39759         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
39760         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
39761         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
39762         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
39763         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
39764         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
39765         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
39766         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
39767         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
39768         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
39769         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
39770         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
39771         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
39772         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
39773         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
39774         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
39775         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
39776         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
39777         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
39778         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
39779         ali.adb, ali.ads, alloc.ads, argv.c,
39780         atree.adb, atree.ads, atree.h, aux-io.c,
39781         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
39782         binde.adb, binde.ads, binderr.adb, binderr.ads,
39783         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
39784         butil.adb, butil.ads, cal.c, calendar.ads,
39785         casing.adb, casing.ads, ceinfo.adb, checks.adb,
39786         checks.ads, cio.c, comperr.adb, comperr.ads,
39787         config-lang.in, csets.adb, csets.ads, csinfo.adb,
39788         cstand.adb, cstand.ads, cuintp.c, debug.adb,
39789         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
39790         dec-io.ads, dec.ads, deftarg.c, directio.ads,
39791         einfo.adb, einfo.ads, elists.adb, elists.ads,
39792         elists.h, errno.c, errout.adb, errout.ads,
39793         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
39794         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
39795         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
39796         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
39797         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
39798         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
39799         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
39800         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
39801         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
39802         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
39803         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
39804         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
39805         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
39806         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
39807         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
39808         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
39809         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
39810         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
39811         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
39812         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
39813         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
39814         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
39815         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
39816         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
39817         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
39818         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
39819         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
39820         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
39821         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
39822         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
39823         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
39824         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
39825         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
39826         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
39827         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
39828         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
39829         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
39830         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
39831         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
39832         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
39833         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
39834         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
39835         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
39836         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
39837         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
39838         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
39839         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
39840         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
39841         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
39842         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
39843         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
39844         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
39845         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
39846         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
39847         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
39848         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
39849         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
39850         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
39851         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
39852         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
39853         lib.adb, lib.ads, live.adb, live.ads,
39854         machcode.ads, make.adb, make.ads, makeusg.adb,
39855         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
39856         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
39857         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
39858         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
39859         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
39860         mlib.ads, namet.adb, namet.ads, nlists.adb,
39861         nlists.ads, opt.adb, opt.ads, osint-b.adb,
39862         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
39863         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
39864         osint.ads, output.adb, output.ads, par-ch10.adb,
39865         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
39866         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
39867         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
39868         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
39869         par-tchk.adb, par-util.adb, par.adb, par.ads,
39870         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
39871         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
39872         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
39873         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
39874         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
39875         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
39876         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
39877         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
39878         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
39879         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
39880         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
39881         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
39882         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
39883         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
39884         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
39885         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
39886         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
39887         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
39888         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
39889         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
39890         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
39891         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
39892         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
39893         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
39894         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
39895         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
39896         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
39897         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
39898         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
39899         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
39900         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
39901         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
39902         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
39903         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
39904         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
39905         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
39906         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
39907         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
39908         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
39909         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
39910         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
39911         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
39912         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
39913         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
39914         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
39915         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
39916         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
39917         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
39918         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
39919         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
39920         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
39921         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
39922         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
39923         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
39924         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
39925         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
39926         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
39927         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
39928         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
39929         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
39930         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
39931         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
39932         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
39933         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
39934         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
39935         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
39936         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
39937         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
39938         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
39939         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
39940         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
39941         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
39942         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
39943         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
39944         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
39945         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
39946         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
39947         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
39948         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
39949         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
39950         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
39951         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
39952         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
39953         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
39954         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
39955         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
39956         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
39957         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
39958         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
39959         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
39960         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
39961         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
39962         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
39963         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
39964         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
39965         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
39966         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
39967         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
39968         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
39969         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
39970         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
39971         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
39972         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
39973         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
39974         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
39975         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
39976         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
39977         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
39978         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
39979         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
39980         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
39981         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
39982         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
39983         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
39984         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
39985         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
39986         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
39987         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
39988         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
39989         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
39990         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
39991         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
39992         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
39993         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
39994         snames.ads, sprint.adb, sprint.ads, stand.adb,
39995         stand.ads, stringt.adb, stringt.ads, style.adb,
39996         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
39997         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
39998         switch-m.ads, switch.adb, switch.ads, system.ads,
39999         table.adb, table.ads, targparm.adb, targparm.ads,
40000         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
40001         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
40002         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
40003         ttypef.ads, ttypes.ads, types.adb, types.ads,
40004         uintp.adb, uintp.ads, uname.adb, uname.ads,
40005         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
40006         usage.adb, usage.ads, validsw.adb, validsw.ads,
40007         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
40008         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
40009         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
40010         formatting and other trivial changes from ACT.
40011
40012 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
40013
40014         * gigi.h, utils2.c (build_constructor):
40015         Rename gnat_build_constructor. Use build_constructor.
40016         * decl.c (gnat_to_gnu_entity)
40017         * trans.c (tree_transform, pos_to_constructor, extract_values)
40018         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
40019         (unchecked_convert)
40020         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
40021         (fill_vms_descriptor):
40022         Update to match.
40023
40024 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
40025
40026         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
40027         * misc.c (gnat_tree_size): New function.
40028         (LANG_HOOKS_TREE_SIZE): Override.
40029
40030 2003-04-03  Jason Merrill  <jason@redhat.com>
40031
40032         * misc.c (gnat_adjust_rli): #if 0.
40033
40034 2003-03-31   Geert Bosch  <bosch@gnat.com>
40035
40036         PR ada/10020
40037         * link.c : Fix misspelled "const" keyword
40038
40039 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
40040
40041         PR c++/7086
40042         * utils2.c: Adjust calls to put_var_into_stack.
40043
40044 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
40045
40046         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
40047
40048 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
40049
40050         * misc.c (gnat_init): Update for new prototype.
40051
40052 2003-03-05  Olivier Hainque  <hainque@gnat.com>
40053
40054         ada/9961
40055         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
40056         warning, and fix return type for the IN_RTS && !SJLJ case.
40057
40058 2003-03-04  Tom Tromey  <tromey@redhat.com>
40059
40060         * Make-lang.in (ada.tags): New target.
40061
40062 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
40063
40064         ada/9911
40065         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
40066         wrapper, which name remains constant whatever underlying GCC
40067         scheme.
40068
40069         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
40070         the stable interface needed for a-except.
40071
40072 2003-03-02  Andreas Jaeger  <aj@suse.de>
40073
40074         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40075         gnat_ug_wnt.texi: Regenerate.
40076
40077 2003-03-02  Laurent Guerby  <guerby@acm.org>
40078
40079         * Makefile.in (install-gnatlib): Match previous change there
40080         so it works.
40081
40082 2003-02-28  Andreas Schwab  <schwab@suse.de>
40083
40084         * Make-lang.in (install-gnatlib): Change to ada directory before
40085         running make instead of using ada/Makefile directly.
40086
40087 2003-02-18  Ben Elliston  <bje@redhat.com>
40088
40089         Part of PR ada/9406
40090         * gnat_ug.texi (Binder output file): Grammar fix.
40091
40092 2003-02-18  Ben Elliston  <bje@redhat.com>
40093
40094         PR other/7350
40095         * 5qtaprop.adb (Sleep): Fix typo in comment.
40096
40097 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
40098
40099         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
40100         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40101         gnat_ug_wnt.texi: Regenerate.
40102
40103 2003-02-03  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
40104
40105         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
40106         be created if necessary.
40107         (ada.install-common): Let $(DESTDIR)$(bindir) be created
40108         if necessary.  Remove erroneous and redundant gnatchop
40109         installation commands.  Test for gnatdll before attempting
40110         to install it.
40111         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
40112         and gnatdll from all plausible locations.
40113
40114 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
40115
40116         * utils2.c (build_unary_op): Don't check flag_volatile.
40117         * gnat_ug.texi: Remove -fvolatile from example.
40118         * gnat_ug_vxw.texi: Likewise.
40119
40120 2003-01-29  Laurent Guerby  <guerby@acm.org>
40121
40122         PR ada/8344
40123         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
40124         * Makefile.in: match previous change.
40125         * Make-lang.in: match previous change.
40126
40127 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
40128
40129         * 5rosinte.ads: Add SIGXCPU.
40130         * 5rtpopsp.adb: New file.
40131         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
40132         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
40133         specific file 5rtpopsp.adb.
40134         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
40135         is likely needed for all newlib targets.
40136         * init.c: Add RTEMS specific version of __gnat_initialize().
40137
40138 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40139
40140         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
40141
40142 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40143
40144         * init.c (__gnat_error_handler): Make msg const.
40145
40146         * gmem.c (convert_addresses): Move declaration ...
40147         * adaint.h: ... here.
40148         * adaint.c (convert_addresses): Adapt addrs type to match
40149         prototype.
40150
40151         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
40152
40153 2003-01-24  Andreas Schwab  <schwab@suse.de>
40154
40155         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
40156         size_t to avoid warning.
40157
40158 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
40159
40160         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
40161
40162 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
40163
40164         * gnat_rm.texi: Remove RCS version number.
40165
40166         * ada-tree.h (union lang_tree_node): Add chain_next option.
40167
40168 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
40169
40170         * Make-lang.in (ada.install-info, ada.install-common,
40171         ada.uninstall): Prepend $(DESTDIR) to the destination
40172         directory in all (un)installation commands.
40173         * Makefile.in (install-gnatlib, install-rts): Ditto.
40174
40175 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
40176
40177         * gnat_rm.texi, gnat_ug.texi: Use @copying.
40178         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40179         gnat_ug_wnt.texi: Regenerate.
40180
40181 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
40182
40183         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
40184         only.
40185         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
40186         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
40187         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
40188         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
40189         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
40190         $(srcdir)/doc/include/gcc-common.texi.
40191
40192 2002-12-15   Geert Bosch  <bosch@gnat.com>
40193
40194         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
40195
40196 2002-12-14   Geert Bosch  <bosch@gnat.com>
40197
40198         PR ada/5690
40199         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
40200         case of a body created for a Renaming_As_Body, on which
40201         conformance checks are not performed.
40202
40203 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
40204
40205         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
40206         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
40207         not already included.
40208         * Make-lang.in: Update dependencies.
40209
40210 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
40211         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
40212         solution to buffer overflow bug on GNU/Linux.
40213
40214 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
40215
40216         PR ada/5856
40217         PR ada/6919
40218         * bindgen.adb: Remove all references to Public_Version.
40219         * comperr.adb: Remove all references to Public_Version and
40220         GNATPRO_Version; correct bug reporting instructions.
40221         * comperr.ads: Change to match bug box.
40222         * gnatvsn.ads: Remove all references to Public version and
40223         GNATPRO version.
40224
40225 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
40226
40227         PR ada/6919
40228         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
40229         GNU/Linux.
40230
40231         PR ada/6558
40232         * config-lang.in: Remove diff_excludes.
40233
40234 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
40235
40236         PR ada/8358
40237         * trans.c (gnu_pending_elaboration_lists): New GC root.
40238         (build_unit_elab): Use..
40239
40240 2002-10-30   Geert Bosch  <bosch@gnat.com>
40241
40242         PR ada/6558
40243         * misc.c : Include optabs.h
40244
40245         * Make-lang.in (misc.o): Add dependency on optabs.h
40246
40247 2002-10-29   Geert Bosch  <bosch@gnat.com>
40248
40249         PR ada/6558
40250         * Make-lang.in (gnatbind): Depend on CONFIG_H
40251
40252 2002-10-29  Geert bosch  <bosch@gnat.com>
40253
40254         PR ada/6558
40255         * misc.c: Unrevert misc.c (1.13)
40256
40257 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
40258
40259         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
40260         maintainership comments.
40261
40262 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
40263
40264         PR ada/5904
40265         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
40266         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
40267         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
40268         7staprop.adb: Correct statements in comments about
40269         maintainership of GNAT.
40270
40271         PR ada/5904
40272         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
40273         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
40274         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
40275         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
40276         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
40277         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
40278         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
40279         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
40280         comments about maintainership of GNAT.
40281
40282         PR ada/6919 (forward port of patch for PR ada/5904)
40283         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
40284         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
40285         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
40286         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
40287         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
40288         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
40289         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
40290         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
40291         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
40292         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
40293         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
40294         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
40295         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
40296         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
40297         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
40298         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
40299         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
40300         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
40301         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
40302         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
40303         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
40304         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
40305         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
40306         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
40307         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
40308         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
40309         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
40310         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
40311         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
40312         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
40313         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
40314         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
40315         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
40316         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
40317         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
40318         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
40319         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
40320         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
40321         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
40322         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
40323         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
40324         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
40325         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
40326         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
40327         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
40328         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
40329         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
40330         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
40331         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
40332         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
40333         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
40334         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
40335         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
40336         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
40337         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
40338         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
40339         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
40340         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
40341         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
40342         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
40343         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
40344         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
40345         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
40346         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
40347         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
40348         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
40349         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
40350         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
40351         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
40352         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
40353         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
40354         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
40355         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
40356         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
40357         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
40358         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
40359         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
40360         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
40361         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
40362         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
40363         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
40364         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
40365         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
40366         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
40367         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
40368         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
40369         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
40370         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
40371         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
40372         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
40373         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
40374         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
40375         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
40376         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
40377         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
40378         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
40379         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
40380         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
40381         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
40382         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
40383         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
40384         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
40385         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
40386         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
40387         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
40388         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
40389         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
40390         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
40391         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
40392         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
40393         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
40394         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
40395         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
40396         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
40397         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
40398         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
40399         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
40400         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
40401         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
40402         par-endh.adb par-labl.adb par-load.adb par-prag.adb
40403         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
40404         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
40405         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
40406         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
40407         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
40408         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
40409         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
40410         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
40411         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
40412         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
40413         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
40414         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
40415         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
40416         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
40417         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
40418         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
40419         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
40420         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
40421         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
40422         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
40423         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
40424         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
40425         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
40426         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
40427         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
40428         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
40429         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
40430         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
40431         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
40432         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
40433         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
40434         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
40435         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
40436         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
40437         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
40438         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
40439         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
40440         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
40441         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
40442         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
40443         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
40444         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
40445         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
40446         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
40447         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
40448         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
40449         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
40450         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
40451         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
40452         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
40453         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
40454         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
40455         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
40456         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
40457         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
40458         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
40459         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
40460         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
40461         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
40462         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
40463         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
40464         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
40465         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
40466         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
40467         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
40468         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
40469         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
40470         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
40471         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
40472         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
40473         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
40474         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
40475         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
40476         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
40477         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
40478         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
40479         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
40480         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
40481         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
40482         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
40483         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
40484         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
40485         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
40486         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
40487         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
40488         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
40489         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
40490         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
40491         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
40492         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
40493         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
40494         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
40495         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
40496         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
40497         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
40498         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
40499         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
40500         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
40501         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
40502         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
40503         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
40504         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
40505         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
40506         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
40507         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
40508         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
40509         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
40510         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
40511         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
40512         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
40513         stringt.ads stringt.h style.adb style.ads stylesw.adb
40514         stylesw.ads switch.adb switch.ads sysdep.c system.ads
40515         table.adb table.ads targparm.adb targparm.ads targtyps.c
40516         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
40517         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
40518         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
40519         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
40520         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
40521         usage.ads utils.c utils2.c validsw.adb validsw.ads
40522         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
40523         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
40524         xtreeprs.adb: Correct statements in comments about maintainership
40525         of GNAT.
40526
40527 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
40528
40529         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
40530         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
40531         * gnatvsn.ads: Gnat_Version_String is now a function.
40532         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
40533         copy the C version_string into a String and return it.
40534         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
40535         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
40536         Remove pragma Ident (Gnat_Version_String).  If this was the
40537         sole use of package Gnatvsn, remove the with statement too.
40538         * gnat1drv.adb: Tweak -gnatv output.
40539
40540 2002-09-17  Richard Henderson  <rth@redhat.com>
40541
40542         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
40543         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
40544         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
40545         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
40546         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
40547         and real_2expN instead of a loop.
40548         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
40549         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
40550
40551 2002-08-25  Andre Leis  <a.leis@gmx.net>
40552             David Billinghurst  <David.Billinghurst@riotinto.com>
40553
40554         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
40555
40556 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40557
40558         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
40559         Remove $(CONFIG_H) dependency.
40560
40561 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
40562
40563         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
40564
40565 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
40566
40567         * adadecode.c (ada_demangle): Use xstrdup in lieu of
40568         xmalloc/strcpy.
40569         * misc.c (gnat_decode_option): Likewise.
40570
40571 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
40572
40573         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
40574         function approach did not work well because of a side effect (the
40575         function call could reallocate the table which was being indexed
40576         using its result). Fixes ada/4851. [RESURRECTED]
40577
40578 2002-07-01  Roger Sayle  <roger@eyesopen.com>
40579
40580         * ada/utils.c (builtin_function): Accept an additional parameter.
40581
40582 2002-06-28  Andreas Jaeger  <aj@suse.de>
40583
40584         PR ada/7144
40585         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
40586         <adi@thur.de>.
40587
40588 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
40589
40590         * Makefile.in (SHELL): Set to @SHELL@.
40591
40592 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
40593
40594         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
40595         array size calculation.
40596
40597 2002-06-04  Andreas Jaeger  <aj@suse.de>
40598
40599         * Make-lang.in (gnatbind): Readd rule that has been lost in last
40600         patch.
40601
40602 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
40603
40604         Merge from pch-branch:
40605
40606         * config-lang.in (gtfiles): Add ada-tree.h.
40607         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
40608         (SET_TYPE_MODULUS): New.
40609         (SET_TYPE_INDEX): New.
40610         (SET_TYPE_DIGITS_VALUE): New.
40611         (SET_TYPE_RM_SIZE): New.
40612         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
40613         (SET_TYPE_ADA_SIZE): New.
40614         (SET_TYPE_ACTUAL_BOUNDS): New.
40615         (SET_DECL_CONST_CORRESPONDING_VAR): New.
40616         (SET_DECL_ORIGINAL_FIELD): New.
40617         (TREE_LOOP_ID): Correct typo.
40618         * decl.c: Use new macros.
40619         * utils.c: Include debug.h, use new macros.
40620         * utils2.c: Use new macros.
40621
40622         * ada-tree.h: Update all macros for new tree description.
40623         (struct tree_loop_id): New.
40624         (union lang_tree_node): New.
40625         (struct lang_decl): New.
40626         (struct lang_type): New.
40627         * misc.c (gnat_mark_tree): Delete.
40628         (LANG_HOOKS_MARK_TREE): Delete.
40629         * trans.c (tree_transform): No longer any need to cast
40630         for TREE_LOOP_ID.
40631
40632         * utils.c (struct language_function): New dummy structure.
40633
40634         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
40635         (misc.o): Likewise.
40636         (utils.o): Likewise; also gtype-ada.h.
40637         * Make-lang.in (gnat1): Add dependency on s-gtype.
40638         (gnatbind): Add dependency on $(CONFIG_H).
40639         * utils.c: Correct last #include.
40640         (stuct e_stack): Remove unnecessary 'static'.
40641         (mark_e_stack): Remove unused prototype.
40642
40643         * scn-nlit.adb: Remove whitespace after version number to
40644         keep lines under 80 chars.
40645         * snames.adb: Likewise.
40646         * treepr.ads: Likewise.
40647
40648         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
40649         (misc.o): Likewise.
40650         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
40651         * config-lang.in (gtfiles): New.
40652         * decl.c: Use gengtype for roots.
40653         * gigi.h: Use gengtype for roots.
40654         * trans.c: Use gengtype for roots.
40655         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
40656
40657 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
40658
40659         * misc.c (gnat_init): Adjust setting of internal_error_function.
40660
40661 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
40662
40663         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
40664         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40665         gnat_ug_wnt.texi: Regenerate.
40666
40667 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
40668
40669         * 5ntaprop.adb (with System.OS_Primitives): Remove.
40670
40671         * cstreams.c (max_path_len): Move from here ...
40672         * adaint.c (__gnat_max_path_len): ... to here.
40673         * adaint.c (__gnat_max_path_len): Declare.
40674         * g-dirope.adb (Max_Path): Adjust.
40675         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
40676         * i-cstrea.ads (max_path_len): Adjust.
40677         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
40678         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
40679
40680         * Makefile.in, Make-lang.in: Documentation is now built in
40681         Make-lang.in.  Store Info and generated Texinfo files in the
40682         source directory.
40683         * gnat_ug.texi: Remove CVS keywords, correct version number.
40684         Set file name correctly.
40685
40686         * gnat_ug_*.texi: Add.
40687         * .cvsignore: Ignore generated Texinfo files.
40688
40689 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
40690
40691         * ada.h: Add MI guard macro.
40692         (SUBTYPE): Define constants with an anonymous enum, not static
40693         const variables.
40694         (IN): Cast constants to appropriate type before use.
40695
40696 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
40697
40698         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
40699         (experimental)".
40700
40701 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40702
40703         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
40704         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
40705         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
40706         (ALL_ADA_CFLAGS): Likewise.
40707         (ADA_INCLUDES): Likewise.
40708         Adapt for new working dir.
40709         (GNATBIND): Use Makefile.in version.
40710         (.SUFFIXES): Copy from Makefile.in.
40711         (ada-warn): Define.
40712         (.adb.o, .ads.o): Copy from Makefile.in.
40713         Added $(OUTPUT_OPTION).
40714         (GNAT1_C_OBJS): Moved from Makefile.in.
40715         Prefix with ada subdir.
40716         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
40717         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
40718         Adapt for new working dir.
40719         (EXTRA_GNATBIND_OBJS): Likewise.
40720         (ADA_BACKEND): Moved from Makefile.in.
40721         Renamed to avoid conflict with global BACKEND.
40722         Use that one.
40723         (TARGET_ADA_SRCS): Moved from Makefile.in.
40724         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
40725         Use ADA_BACKEND.
40726         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
40727         (ada_extra_files): Moved from Makefile.in.
40728         Prefix with ada subdir.
40729         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
40730         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
40731         (ada/nmake.ads): Likewise.
40732         (update-sources): Moved from Makefile.in.
40733         Prefix with ada subdir.
40734         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
40735         (ADA_TREE_H): Likewise.
40736         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
40737         (ada/memtrack.o): Likewise.
40738         (ada/adadecode.o): Likewise.
40739         Update dependencies.
40740         (ada/adaint.o): New.
40741         (ada/argv.o): Moved from Makefile.in.
40742         Prefix with ada subdir.
40743         Update dependencies.
40744         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
40745         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
40746         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
40747         Prefix with ada subdir.
40748         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
40749         (GNAT DEPENDENCIES): Regenerate.
40750         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
40751         toplevel Makefile.in.
40752         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
40753         (TARGET_ADA_SRCS): Removed.
40754         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
40755         (GNATBIND_OBJS): Likewise.
40756         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
40757         (BACKEND): Removed.
40758         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
40759         (TREE_H): Likewise.
40760         (ada_extra_files): Likewise.
40761         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
40762         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
40763         (update-sources): Likewise.
40764         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
40765         (ADA_TREE_H): Likewise.
40766         (adadecoce.o): Likewise.
40767         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
40768         (GNAT DEPENDENCIES): Likewise.
40769
40770 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40771
40772         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
40773         * Makefile.in: Likewise.
40774
40775 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40776
40777         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
40778         Restore $(CONFIG_H) and prefix.o dependencies.
40779         (ada.stage[1-4]): Depend on stage?-start.
40780
40781         * Makefile.in (b_gnatb.c): Depend on interfac.o.
40782
40783 2002-05-02  Jim Wilson  <wilson@redhat.com>
40784
40785         * utils.c (finish_record_type): Change record_size to record_type.
40786
40787 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
40788
40789         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
40790         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
40791         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
40792
40793 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
40794
40795         * misc.c (gnat_parse_file): Update.
40796
40797 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
40798
40799         * misc.c (gnat_init): Don't set lang_attribute_common.
40800
40801 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
40802
40803         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
40804
40805 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
40806
40807         * gnat_ug.texi: New file.
40808
40809         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
40810         instead of gfdl.texi
40811
40812         * xgnatug.adb, ug_words: New files.
40813
40814         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
40815         gnat_rm and gnat-style manuals.
40816
40817 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
40818
40819         * gigi.h (incomplete_type_error): Remove.
40820         * utils.c (incomplete_type_error): Remove.
40821
40822 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
40823
40824         * trans.c (tree_transform): Add has_scope argument to
40825         expand_start_stmt_expr.
40826
40827 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
40828
40829         * gigi.h (truthvalue_conversion): Rename.
40830         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
40831         * trans.c (tree_transform): Update.
40832         * utils2.c (truthvalue_conversion): Rename, update.
40833         (build_binary_op, build_unary_op): Update.
40834
40835 2002-04-04  Laurent Guerby  <guerby@acm.org>
40836
40837         * make.adb: Implement -margs, remove restriction about file name placement.
40838         * makeusg.adb: Documentation update.
40839         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
40840         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
40841
40842 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
40843
40844         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
40845         (builtin_function): Similarly.
40846
40847 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
40848
40849         * decl.c (gnat_to_gnu_entity): Update.
40850         * gigi.h (mark_addressable): Rename.
40851         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
40852         * trans.c (tree_transform): Update.
40853         * utils.c (create_var_decl): Update.
40854         * util2.c (build_binary_op, build_unary_op,
40855         fill_vms_descriptor): Update.
40856         (mark_addressable): Rename, update.
40857
40858 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
40859
40860         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
40861         Rename.
40862         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
40863         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
40864         * trans.c (tree_transform, convert_with_check): Update.
40865         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
40866         Rename.
40867
40868 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
40869
40870         * gigi.h (finish_incomplete_decl): Rename.
40871         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
40872         * utils.c (gnat_init_decl_processing): Don't set hook.
40873         (finish_incomplete_decl): Rename.
40874
40875 2002-03-29  Andreas Schwab  <schwab@suse.de>
40876
40877         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
40878         directory.
40879
40880 2001-03-28  Robert Dewar  <dewar@gnat.com>
40881
40882         * checks.ads:
40883         (Remove_Checks): New procedure
40884
40885         * checks.adb:
40886         (Remove_Checks): New procedure
40887
40888         * exp_util.adb:
40889         Use new Duplicate_Subexpr functions
40890         (Duplicate_Subexpr_No_Checks): New procedure
40891         (Duplicate_Subexpr_No_Checks_Orig): New procedure
40892         (Duplicate_Subexpr): Restore original form (checks duplicated)
40893         (Duplicate_Subexpr): Call Remove_Checks
40894
40895         * exp_util.ads:
40896         (Duplicate_Subexpr_No_Checks): New procedure
40897         (Duplicate_Subexpr_No_Checks_Orig): New procedure
40898         Add 2002 to copyright notice
40899
40900         * sem_util.adb: Use new Duplicate_Subexpr functions
40901
40902         * sem_eval.adb:
40903         (Eval_Indexed_Component): This is the place to call
40904         Constant_Array_Ref and to replace the value. We simply merge
40905         the code of this function in here, since it is now no longer
40906         used elsewhere. This fixes the problem of the back end not
40907         realizing we were clever enough to see that this was
40908         constant.
40909         (Expr_Val): Remove call to Constant_Array_Ref
40910         (Expr_Rep_Val): Remove call to Constant_Array_Ref
40911         Minor reformatting
40912         (Constant_Array_Ref): Deal with string literals (patch
40913         suggested by Zack Weinberg on the gcc list)
40914
40915 2001-03-28  Ed Schonberg  <schonber@gnat.com>
40916
40917         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
40918         Duplicate_Subexpr_Move_Checks.
40919
40920         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
40921         Duplicate_Subexpr_Move_Checks.
40922
40923         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
40924         value of array exists before retrieving it (it may a private
40925         protected component in a function).
40926
40927 2002-03-28   Geert Bosch  <bosch@gnat.com>
40928
40929         * prj-pp.adb : New file.
40930
40931         * prj-pp.ads : New file.
40932
40933 2002-03-28  Andreas Jaeger  <aj@suse.de>
40934
40935         * Makefile.in (stamp-sdefault): Fix path for Makefile.
40936
40937 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
40938
40939         * misc.c (gnat_expand_expr): Move prototype.
40940
40941 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
40942
40943         * misc.c (insert_default_attributes): Remove.
40944
40945 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
40946
40947         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
40948         (gnat_init): Don't set hook.
40949         (gnat_expand_expr): Fix prototype.
40950
40951 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
40952
40953         * misc.c (ggc_p): Remove.
40954
40955 2002-03-27  Geert Bosch  <bosch@gnat.com>
40956
40957         * prj-makr.ads, prj-makr.adb : New files.
40958
40959 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
40960
40961         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
40962         (lang_mark_tree): Make static, rename.
40963
40964 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
40965
40966         * misc.c (maybe_build_cleanup): Remove.
40967
40968 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
40969
40970         * gigi.h (yyparse): Remove.
40971
40972 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
40973
40974         From Ben Brosgol  <brosgol@gnat.com>
40975         * gnat_rm.texi: Sync with ACT version.
40976
40977 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
40978
40979         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
40980         (gnat_init): Remove old hook.
40981
40982 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
40983
40984         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
40985         (yyparse): Rename gnat_parse_file.
40986
40987 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
40988
40989         Delete all lines containing "$Revision:".
40990         * xeinfo.adb: Don't look for revision numbers.
40991         * xnmake.adb: Likewise.
40992         * xsinfo.adb: Likewise.
40993         * xsnames.adb: Likewise.
40994         * xtreeprs.adb: Likewise.
40995
40996 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
40997
40998         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
40999         gnat_tree_code_name): Delete.
41000         (tree_code_type, tree_code_length, tree_code_name): Define.
41001         (gnat_init): Don't try to copy into the various tree_code
41002         arrays.
41003
41004 2002-03-11  Richard Henderson  <rth@redhat.com>
41005
41006         * Makefile.in (.NOTPARALLEL): Add fake tag.
41007
41008 2002-03-07  Geert Bosch  <bosch@gnat.com>
41009
41010         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
41011         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
41012         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
41013         switch-m.adb, switch-m.ads : New files.
41014
41015 2002-03-07  Geert Bosch  <bosch@gnat.com>
41016
41017         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
41018         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
41019         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
41020         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
41021         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
41022         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
41023         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
41024         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
41025         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
41026         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
41027         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
41028         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
41029         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
41030         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
41031         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
41032         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
41033         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
41034         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
41035         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
41036         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
41037         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
41038         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
41039         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
41040         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
41041         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
41042         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
41043         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
41044         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
41045         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
41046         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
41047         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
41048         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
41049         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
41050         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
41051         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
41052         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
41053         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
41054         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
41055         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
41056         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
41057         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
41058         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
41059         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
41060         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
41061         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
41062         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
41063         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
41064         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
41065         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
41066         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
41067         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
41068         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
41069         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
41070         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
41071         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
41072         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
41073         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
41074         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
41075         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
41076         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
41077         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
41078         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
41079         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
41080         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
41081         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
41082         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
41083         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
41084         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
41085         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
41086         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
41087         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
41088         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
41089         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
41090         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
41091         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
41092         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
41093         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
41094         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
41095         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
41096         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
41097         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
41098         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
41099         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
41100         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
41101         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
41102         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
41103         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
41104         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
41105         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
41106         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
41107         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
41108         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
41109         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
41110         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
41111         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
41112         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
41113         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
41114
41115         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
41116         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
41117         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
41118         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
41119
41120         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
41121         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
41122
41123         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
41124         to mdll-fil.ad[bs] and mdll-util.ad[bs]
41125
41126         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
41127         from mdllfile.ad[bs] and mdlltool.ad[bs]
41128
41129 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
41130
41131         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
41132         lieu of explicit sizeof/sizeof.
41133
41134 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
41135
41136         * misc.c (copy_lang_decl): Remove.
41137
41138 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
41139
41140         * misc.c: Delete traditional-mode-related code copied from the
41141         C front end but not used, or used only to permit the compiler
41142         to link.
41143
41144 2002-02-07  Richard Henderson  <rth@redhat.com>
41145
41146         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
41147         * adaint.h (__gnat_to_gm_time): Update prototype.
41148
41149 2002-01-30  Richard Henderson  <rth@redhat.com>
41150
41151         * trans.c (tree_transform) [N_Loop_Statement]: Use
41152         expand_exit_loop_top_cond.
41153
41154 2001-12-23  Richard Henderson  <rth@redhat.com>
41155
41156         * utils.c (end_subprog_body): Push GC context around
41157         rest_of_compilation for nested functions.
41158
41159 2001-12-23  Richard Henderson  <rth@redhat.com>
41160
41161         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
41162
41163 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
41164
41165         * gnat-style.texi (Declarations and Types): Remove ancient style
41166         rule which was mandated by code generation issues.
41167
41168         * gnat-style.texi (header): Add @dircategory, @direntry.
41169         (title page): Remove date.
41170         (general) Add @./@: where approriate, and two spaces after the
41171         full stop at the end of a sentence.  Use @samp markup when
41172         referring concrete lexical entities (keywords, attribute names
41173         etc.), and @syntax for ARM grammar elements. Use @r for English
41174         text in comments.  Use @emph for emphasis.  Change "if-statements"
41175         etc. to "if statements" (without @samp). Break long lines.  Make
41176         casing of section names consistent.
41177         (Identifiers): Use @samp markup for variable names.
41178         (Comments): Use @samp markup for comment characters. Line-end
41179         comments may follow any Ada code, not just statements.  Fix
41180         misspelling of "Integer" as "integer".
41181         (Loop statements): Do not use variable name "I", use "J".
41182         (Subprogram Declarations): Document alignment.
41183         (Subprogram Bodies, Block statements): Document empty line before
41184         "begin".
41185
41186 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
41187
41188         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
41189         function approach did not work well because of a side effect (the
41190         function call could reallocate the table which was being indexed
41191         using its result). Fixes ada/4851.
41192
41193 2001-12-19  Robert Dewar  <dewar@gnat.com>
41194
41195         * bindgen.adb: Minor reformatting
41196
41197         * cstand.adb: Minor reformatting
41198
41199         * fmap.adb: Minor reformatting
41200         Change name from Add for Add_To_File_Map (Add is much too generic)
41201         Change Path_Name_Of to Mapped_Path_Name
41202         Change File_Name_Of to Mapped_File_Name
41203         Fix copyright dates in header
41204
41205         * fmap.ads:
41206         Change name from Add for Add_To_File_Map (Add is much too generic)
41207         Change Path_Name_Of to Mapped_Path_Name
41208         Change File_Name_Of to Mapped_File_Name
41209         Fix copyright dates in header
41210
41211         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
41212         Add use clause for Fmap.
41213
41214         * make.adb: Minor reformatting
41215
41216         * osint.adb: Minor reformatting.  Change of names in Fmap.
41217         Add use clause for Fmap.
41218
41219         * prj-env.adb: Minor reformatting
41220
41221         * prj-env.ads: Minor reformatting
41222
41223         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
41224         error found (there were odd exceptions to this general rule in
41225         -gnatec/-gnatem processing)
41226
41227 2001-12-19  Olivier Hainque  <hainque@gnat.com>
41228
41229         * raise.c (__gnat_eh_personality): Exception handling personality
41230         routine for Ada.  Still in rough state, inspired from the C++ version
41231         and still containing a bunch of debugging artifacts.
41232         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
41233         inspired from the C++ library.
41234
41235         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
41236         exception handling integration.
41237
41238 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
41239
41240         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
41241         (HIE_SOURCES): Add s-secsta.ad{s,b}.
41242         (HIE_OBJS): Add s-fat*.o
41243         (RAVEN_SOURCES): Remove files that are no longer required. Add
41244         interrupt handling files.
41245         (RAVEN_MOD): Removed, no longer needed.
41246
41247 2001-12-19  Robert Dewar  <dewar@gnat.com>
41248
41249         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
41250         Add 2001 to copyright date
41251
41252         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
41253         need to force universal inlining for these cases.
41254
41255 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
41256
41257         * s-taprob.adb: Minor clean ups so that this unit can be used in
41258         Ravenscar HI.
41259
41260         * exp_ch7.adb: Allow use of secondary stack in HI mode.
41261         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
41262
41263 2001-12-19  Vincent Celier  <celier@gnat.com>
41264
41265         * prj-tree.ads (Project_Node_Record): Add comments for components
41266         Pkg_Id and Case_Insensitive.
41267
41268 2001-12-19  Pascal Obry  <obry@gnat.com>
41269
41270         * g-socket.adb: Minor reformatting. Found while reading code.
41271
41272 2001-12-19  Robert Dewar  <dewar@gnat.com>
41273
41274         * prj-tree.ads: Minor reformatting
41275
41276 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
41277
41278         * config-lang.in (diff_excludes): Remove.
41279
41280 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41281
41282         * sem_res.adb (Resolve_Selected_Component): do not generate a
41283         discriminant check if the selected component is a component of
41284         the argument of an initialization procedure.
41285
41286         * trans.c (tree_transform, case of arithmetic operators): If result
41287         type is private, the gnu_type is the base type of the full view,
41288         given that the full view itself may be a subtype.
41289
41290 2001-12-17  Robert Dewar  <dewar@gnat.com>
41291
41292         * sem_res.adb: Minor reformatting
41293
41294         * trans.c (tree_transform, case N_Real_Literal): Add missing third
41295         parameter in call to Machine (unknown horrible effects from this
41296         omission).
41297
41298         * urealp.h: Add definition of Round_Even for call to Machine
41299         Add third parameter for Machine
41300
41301 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41302
41303         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
41304         predefined units in No_Run_Time mode.
41305
41306 2001-12-17  Richard Kenner  <kenner@gnat.com>
41307
41308         * misc.c (insn-codes.h): Now include.
41309
41310 2001-12-17  Olivier Hainque  <hainque@gnat.com>
41311
41312         * a-except.adb: Preparation work for future integration of the GCC 3
41313         exception handling mechanism
41314         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
41315         to factorize previous code sequences and make them externally callable,
41316         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
41317         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
41318         Use the new notification routines.
41319
41320 2001-12-17  Emmanuel Briot  <briot@gnat.com>
41321
41322         * prj-tree.ads (First_Choice_Of): Document the when others case
41323
41324 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
41325
41326         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
41327         HI-E mode, in order to support Ravenscar profile properly.
41328
41329         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
41330         mode on 32 bits targets.
41331
41332 2001-12-17  Vincent Celier  <celier@gnat.com>
41333
41334         * fmap.adb: Initial version.
41335
41336         * fmap.ads: Initial version.
41337
41338         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
41339         If search is successfully done, add to mapping.
41340
41341         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
41342
41343         * make.adb:
41344         (Gnatmake): Add new local variable Mapping_File_Name.
41345          Create mapping file when using project file(s).
41346          Delete mapping file before exiting.
41347
41348         * opt.ads (Mapping_File_Name): New variable
41349
41350         * osint.adb (Find_File): Use path name found in mapping, if any.
41351
41352         * prj-env.adb (Create_Mapping_File): New procedure
41353
41354         * prj-env.ads (Create_Mapping_File): New procedure.
41355
41356         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
41357         (Mapping_File)
41358
41359         * usage.adb: Add entry for new switch -gnatem.
41360
41361         * Makefile.in: Add dependencies for fmap.o.
41362
41363 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41364
41365         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
41366         is a package instantiation rewritten as a package body.
41367         (Install_Withed_Unit): Undo previous change, now redundant.
41368
41369 2001-12-17  Gary Dismuke  <dismukes@gnat.com>
41370
41371         * layout.adb:
41372         (Compute_Length): Move conversion to Unsigned to callers.
41373         (Get_Max_Size): Convert Len expression to Unsigned after calls to
41374         Compute_Length and Determine_Range.
41375         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
41376         Compute_Length and Determine_Range.
41377         Above changes fix problem with length computation for supernull arrays
41378         where Max (Len, 0) wasn't getting applied due to the Unsigned
41379         conversion used by Compute_Length.
41380
41381 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
41382
41383         * rtsfind.ads:
41384         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
41385          System.Secondary_Stack.
41386         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
41387          in HI-E mode.
41388         Remove unused entity RE_Exception_Data.
41389
41390         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
41391
41392         * rident.ads (No_Secondary_Stack): New restriction.
41393
41394 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
41395
41396         * gnat_rm.texi: Fix minor typos. Found while reading the section
41397         regarding "Bit_Order Clauses" that was sent to a customer.
41398         Very interesting documentation!
41399
41400 2001-12-17  Robert Dewar  <dewar@gnat.com>
41401
41402         * sem_case.adb (Choice_Image): Avoid creating improper character
41403         literal names by using the routine Set_Character_Literal_Name. This
41404         fixes bombs in certain error message cases.
41405
41406 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
41407
41408         * a-reatim.adb: Minor reformatting.
41409
41410 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41411
41412         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
41413         case where the formal is an extension of another formal in the current
41414         unit or in a parent generic unit.
41415
41416 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
41417
41418         * s-tposen.adb: Update comments.  Minor reformatting.
41419         Minor code clean up.
41420
41421         * s-tarest.adb: Update comments.  Minor code reorganization.
41422
41423 2001-12-17  Gary Dismukes  <dismukes@gnat.com>
41424
41425         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
41426         when Java_VM.
41427
41428 2001-12-17  Robert Dewa  <dewar@gnat.com>
41429
41430         * exp_attr.adb: Minor reformatting
41431
41432 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41433
41434         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
41435         derivations nested within a child unit: verify that the parent
41436         type is declared in an outer scope.
41437
41438 2001-12-17  Robert Dewar  <dewar@gnat.com>
41439
41440         * sem_ch12.adb: Minor reformatting
41441
41442 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41443
41444         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
41445         warning if current unit is a predefined one, from which bodies may
41446         have been deleted.
41447
41448 2001-12-17  Robert Dewar  <dewar@gnat.com>
41449
41450         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
41451         Fix header format. Add 2001 to copyright date.
41452
41453         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
41454         which caused CE during compilation if checks were enabled.
41455
41456 2001-12-17  Vincent Celier  <celier@gnat.com>
41457
41458         * make.adb:
41459         (Switches_Of): New function
41460         (Test_If_Relative_Path): New procedure
41461         (Add_Switches): Use new function Switches_Of
41462         (Collect_Arguments_And_Compile): Use new function Switches_Of.
41463         When using a project file, test if there are any relative
41464         search path. Fail if there are any.
41465         (Gnatmake): Only add switches for the primary directory when not using
41466         a project file. When using a project file, change directory to the
41467         object directory of the main project file. When using a project file,
41468         test if there are any relative search path. Fail if there are any.
41469         When using a project file, fail if specified executable is relative
41470         path with directory information, and prepend executable, if not
41471         specified as an absolute path, with the exec directory.  Make sure
41472         that only one -o switch is transmitted to the linker.
41473
41474         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
41475
41476         * prj-nmsc.adb:
41477         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
41478         when using a non standard naming scheme.
41479         (Check_Ada_Naming_Scheme): Make sure that error messages
41480         do not raise exceptions.
41481         (Is_Illegal_Append): Return True if there is no dot in the suffix.
41482         (Language_Independent_Check): Check the exec directory.
41483
41484         * prj.adb (Project_Empty): Add new component Exec_Directory
41485
41486         * prj.ads:
41487         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
41488         (Project_Data): Add component Exec_Directory
41489
41490         * snames.adb: Updated to match snames.ads revision 1.215
41491
41492         * snames.ads: Added Exec_Dir
41493
41494 2001-12-17  Robert Dewar  <dewar@gnat.com>
41495
41496         * make.adb: Minor reformatting
41497
41498         * prj-nmsc.adb: Minor reformatting
41499
41500         * snames.adb: Updated to match snames.ads
41501
41502         * snames.ads: Alphebetize entries for project file
41503
41504 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41505
41506         * trans.c (process_freeze_entity): Do nothing if the entity is a
41507         subprogram that was already elaborated.
41508
41509 2001-12-17  Richard Kenner  <kenner@gnat.com>
41510
41511         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
41512         and Esize if object is referenced via pointer.
41513
41514 2001-12-17  Ed Schonberg  <schonber@gnat.com>
41515
41516         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
41517         is discrete before analyzing choices.
41518
41519 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
41520
41521         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
41522         containing the name of the Ada Main Program. This string is mainly
41523         intended for the debugger.
41524         (Gen_Output_File_C): Do the equivalent change when generating a C file.
41525
41526 2001-12-17  Robert Dewar  <dewar@gnat.com>
41527
41528         * ali.adb: Set new Dummy_Entry field in dependency entry
41529
41530         * ali.ads: Add Dummy_Entry field to source dependency table
41531
41532         * bcheck.adb (Check_Consistency): Ignore dummy D lines
41533
41534         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
41535
41536         * lib-writ.ads: Document dummy D lines for missing files.
41537
41538         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
41539
41540 2001-12-17  Robert Dewar  <dewar@gnat.com>
41541
41542         * ali.adb: Type reference does not reset current file.
41543
41544         * ali.adb: Recognize and scan renaming reference
41545
41546         * ali.ads: Add spec for storing renaming references.
41547
41548         * lib-xref.ads: Add documentation for handling of renaming references
41549
41550         * lib-xref.adb: Implement output of renaming reference.
41551
41552         * checks.adb:
41553         (Determine_Range): Document local variables
41554         (Determine_Range): Make sure Hbound is initialized. It looks as though
41555          there could be a real problem here with an uninitialized reference
41556          to Hbound, but no actual example of failure has been found.
41557
41558 2001-12-17  Laurent Pautet  <pautet@gnat.com>
41559
41560         * g-socket.ads:
41561         Fix comment of Shutdown_Socket and Close_Socket. These functions
41562         should not fail silently because if they are called twice, this
41563         probably means that there is a race condition in the user program.
41564         Anyway, this behaviour is consistent with the rest of this unit.
41565         When an error occurs, an exception is raised with the error message
41566         as exception message.
41567
41568 2001-12-17  Robert Dewar  <dewar@gnat.com>
41569
41570         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
41571         that it happens before modification of Sloc values for -gnatD.
41572
41573         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
41574         so that it happens before modification of Sloc values for -gnatD.
41575
41576         * switch.adb: Minor reformatting
41577
41578 2001-12-15  Richard Henderson  <rth@redhat.com>
41579
41580         * sem_ch7.adb: Wrap comment.
41581
41582 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
41583
41584         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
41585         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
41586         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
41587         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
41588         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
41589         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
41590         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
41591         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
41592         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
41593         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
41594         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
41595         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
41596         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
41597         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
41598         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
41599         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
41600         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
41601         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
41602         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
41603         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
41604         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
41605         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
41606         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
41607         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
41608         spelling errors.
41609
41610 2001-12-14  Vincent Celier  <celier@gnat.com>
41611
41612         * osint.adb(Create_Debug_File): When an object file is specified,
41613         put the .dg file in the same directory as the object file.
41614
41615 2001-12-14  Robert Dewar  <dewar@gnat.com>
41616
41617         * osint.adb: Minor reformatting
41618
41619         * lib-xref.adb (Output_Instantiation): New procedure to generate
41620         instantiation references.
41621
41622         * lib-xref.ads: Add documentation of handling of generic references.
41623
41624         * ali.adb (Read_Instantiation_Ref): New procedure to read
41625         instantiation references
41626
41627         * ali.ads: Add spec for storing instantiation references
41628
41629         * bindusg.adb: Minor reformatting
41630
41631         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41632
41633         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41634
41635         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41636
41637         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41638
41639         * csets.ads:
41640         Fix header format
41641         Add 2001 to copyright date
41642         Add entry for Latin-5 (Cyrillic ISO-8859-5)
41643
41644 2001-12-14  Matt Gingell  <gingell@gnat.com>
41645
41646         * adaint.c: mktemp is a macro on Lynx and can not be used as an
41647         expression.
41648
41649 2001-12-14  Richard Kenner  <kenner@gnat.com>
41650
41651         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
41652         if operand is CONSTRUCTOR.
41653
41654 2001-12-14  Ed Schonberg  <schonber@gnat.com>
41655
41656         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
41657         before emiting check on right-hand side, so that exception information
41658         is correct.
41659
41660 2001-12-14  Richard Kenner  <kenner@gnat.com>
41661
41662         * utils.c (create_var_decl): Throw away initializing expression
41663         if just annotating types and non-constant.
41664
41665 2001-12-14  Vincent Celier  <celier@gnat.com>
41666
41667         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
41668         Default_Ada_...
41669
41670         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
41671         Remove functions.
41672         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
41673
41674         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
41675         Remove functions.
41676         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
41677
41678 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
41679
41680         * ChangeLog: Remove piece of diff output.
41681
41682 2001-12-14  Geert Bosch  <bosch@gnat.com>
41683
41684         * config-lang.in: Update copyright notice
41685
41686         * layout.adb: Remove commented out code.
41687
41688         * mdllfile.ads: Update copyright notice. Fix header format.
41689
41690         * sem_case.ads: Likewise.
41691
41692         * sem_ch3.adb: Minor reformatting.
41693
41694 2001-12-12  Geert Bosch  <bosch@gnat.com>
41695
41696         * freeze.ads: Update copyright date.
41697
41698         * g-comlin.ads: Minor reformatting.
41699
41700         * gnat-style.texi: Fix typo.
41701
41702 2001-12-12  Geert Bosch  <bosch@gnat.com>
41703
41704         *  einfo.h: Regenerate.
41705
41706 2001-12-12  Ed Schonberg  <schonber@gnat.com>
41707
41708         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
41709         on known node types, rather than untyped fields. Further cleanups.
41710
41711 2001-12-12  Robert Dewar  <dewar@gnat.com>
41712
41713         * sem_ch12.adb:
41714         (Save_Entity_Descendant): Minor comment update.
41715         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
41716          of an N_Attribute_Reference node. As per note below, this does not
41717         eliminate need for Associated_Node in attribute ref nodes.
41718         (Associated_Node): Documentation explicitly mentions attribute
41719         reference nodes, since this field is used in such nodes.
41720
41721         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
41722
41723 2001-12-12  Robert Dewar  <dewar@gnat.com>
41724
41725         * s-stalib.adb: Add more comments on with statements being needed
41726
41727         * par-ch12.adb: Minor reformatting
41728
41729         * prj-dect.ads: Fix copyright header
41730
41731         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
41732         inputs fit in 32 bits, but the result still overflows.
41733
41734         * s-fatgen.ads: Minor comment improvement
41735
41736 2001-12-12  Ed Schonberg  <schonber@gnat.com>
41737
41738         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
41739         formal derived type, look for an inherited component from the full
41740         view of the parent, if any.
41741
41742 2001-12-12  Robert Dewar  <dewar@gnat.com>
41743
41744         * checks.ads (Apply_Alignment_Check): New procedure.
41745
41746         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
41747         ensure that the alignment of objects with address clauses is
41748         appropriate, and raise PE if not.
41749
41750         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
41751         Exp_Pakd.Known_Aligned_Enough
41752
41753         * mdllfile.ads: Minor reformatting
41754
41755         * mlib-fil.ads: Minor reformatting
41756
41757 2001-12-12  Ed Schonberg  <schonber@gnat.com>
41758
41759         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
41760         fix to any component reference if enclosing record has non-standard
41761         representation.
41762
41763 2001-12-12  Vincent Celier  <celier@gnat.com>
41764
41765         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
41766         Iteration
41767
41768 2001-12-12  Ed Schonberg  <schonber@gnat.com>
41769
41770         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
41771         sem_attr.
41772
41773 2001-12-12  Robert Dewar  <dewar@gnat.com>
41774
41775         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
41776
41777 2001-12-12  Emmanuel Briot  <briot@gnat.com>
41778
41779         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
41780         and it adds dependencies to system.io.
41781
41782 2001-12-12  Pascal Obry  <obry@gnat.com>
41783
41784         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
41785         variable name.
41786
41787 2001-12-11  Ed Schonberg  <schonber@gnat.com>
41788
41789         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
41790         that is the parent of other generics, the instance body replaces the
41791         instance node.  Retrieve the instance of the spec, which is the one
41792         that is visible in clients and within the body.
41793
41794 2001-12-11  Vincent Celier  <celier@gnat.com>
41795
41796         * gnatmain.adb: Initial version.
41797
41798         * gnatmain.ads: Initial version.
41799
41800         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
41801
41802         * snames.adb: Updated to match snames.ads.
41803
41804         * snames.ads: Added Gnatstub.
41805
41806 2001-12-11  Vincent Celier  <celier@gnat.com>
41807
41808         * prj-attr.adb (Initialization_Data): Change name from
41809         Initialisation_Data.
41810
41811 2001-12-11  Emmanuel Briot  <briot@gnat.com>
41812
41813         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
41814         + and * applied to backslashed expressions like \r.
41815
41816 2001-12-11  Vasiliy Fofanov  <fofanov@gnat.com>
41817
41818         * g-os_lib.ads: String_List type added, Argument_List type is now
41819         subtype of String_List.
41820
41821 2001-12-11  Robert Dewar  <dewar@gnat.com>
41822
41823         * g-os_lib.ads: Change copyright to FSF
41824         Add comments for String_List type
41825
41826 2001-12-11  Vincent Celier  <celier@gnat.com>
41827
41828         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
41829         string to the buffer).
41830
41831 2001-12-11  Ed Schonberg  <schonber@gnat.com>
41832
41833         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
41834         sem_attr.
41835
41836         * sem_attr.adb: Simplify previous fix for Address.
41837         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
41838         to avoid anomalies where the bound of the type appears to raise
41839         constraint error.
41840
41841 2001-12-11  Robert Dewar  <dewar@gnat.com>
41842
41843         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
41844         handled.
41845
41846 2001-12-11  Ed Schonber   <schonber@gnat.com>
41847
41848         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
41849         renamed unit before checking for recursive instantiations.
41850
41851 2001-12-11  Emmanuel Briot  <briot@gnat.com>
41852
41853         * prj.ads: Add comments for some of the fields.
41854
41855 2001-12-11  Robert Dewar  <dewar@gnat.com>
41856
41857         * lib-xref.adb (Output_Refs): Don't output type references outside
41858         the main unit if they are not otherwise referenced.
41859
41860 2001-12-11  Ed Schonberg  <schonber@gnat.com>
41861
41862         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
41863         code and diagnose additional illegal uses
41864
41865         * sem_util.adb (Is_Object_Reference): An indexed component is an
41866         object only if the prefix is.
41867
41868 2001-12-11  Vincent Celier  <celier@gnat.com>
41869
41870         * g-diopit.adb: Initial version.
41871
41872         * g-diopit.ads: Initial version.
41873
41874         * g-dirope.adb:
41875         (Expand_Path): Avoid use of Unbounded_String
41876         (Find, Wildcard_Iterator): Moved to child package Iteration
41877
41878         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
41879
41880 2001-12-11  Robert Dewar  <dewar@gnat.com>
41881
41882         * sem_attr.adb: Minor reformatting
41883
41884 2001-12-11  Ed Schonberg  <schonber@gnat.com>
41885
41886         * sem_ch3.adb: Clarify some ???.
41887
41888 2001-12-11  Robert Dewar  <dewar@gnat.com>
41889
41890         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
41891         Exp_Pakd.Known_Aligned_Enough
41892
41893         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
41894         version is moved to Exp_Ch13.
41895
41896 2001-12-11  Robert Dewar  <dewar@gnat.com>
41897
41898         * einfo.ads: Minor reformatting
41899
41900         * exp_ch5.adb: Add comment for previous.change
41901
41902         * ali.adb: New interface for extended typeref stuff.
41903
41904         * ali.ads: New interface for typeref stuff.
41905
41906         * checks.adb (Apply_Alignment_Check): New procedure.
41907
41908         * debug.adb: Add -gnatdM for modified ALI output
41909
41910         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
41911
41912         * lib-xref.adb: Extend generation of <..> notation to cover
41913         subtype/object types. Note that this is a complete rewrite,
41914         getting rid of the very nasty quadratic algorithm previously
41915         used for derived type output.
41916
41917         * lib-xref.ads: Extend description of <..> notation to cover
41918         subtype/object types. Uses {..} for these other cases.
41919         Also use (..) for pointer types.
41920
41921         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
41922
41923         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
41924         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
41925
41926 2001-12-11  Vincent Celier  <celier@gnat.com>
41927
41928         * gnatcmd.adb:
41929         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
41930         Changed /BIND_ONLY to /ACTIONS=BIND
41931         Changed /LINK_ONLY to /ACTIONS=LINK
41932
41933 2001-12-11  Ed Schonberg  <schonber@gnat.com>
41934
41935         * sem_ch8.adb (Find_Selected_Component): improved search for a
41936         candidate package in case of error.
41937
41938         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
41939         chain back on scope stack before reinstalling use clauses.
41940
41941         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
41942         is enabled, do not kill the code for the condition, to preserve
41943         warning.
41944
41945 2001-12-11  Robert Dewar  <dewar@gnat.com>
41946
41947         * checks.adb (Insert_Valid_Check): Apply validity check to expression
41948         of conversion, not to result of conversion.
41949
41950 2001-12-11  Ed Schonberg  <schonber@gnat.com>
41951
41952         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
41953         before freezing parent. If the declarations are mutually recursive,
41954         an access to the current record type may be frozen before the
41955         derivation is complete.
41956
41957 2001-12-05  Vincent Celier  <celier@gnat.com>
41958
41959         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
41960         -c /COMPILE_ONLY, -l /LINK_ONLY
41961
41962         * opt.ads:
41963         (Bind_Only): New Flag
41964         (Link_Only): New flag
41965
41966         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
41967         and -l (Link_Only)
41968
41969         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
41970
41971         * make.adb:
41972         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
41973         (Gnatmake): Set the step flags. Only perform a step if the
41974         corresponding step flag is True.
41975         (Scan_Make_Arg): Reset the bind and link step flags when -u
41976         or -gnatc has been specified.
41977
41978 2001-12-05  Ed Schonberg  <schonber@gnat.com>
41979
41980         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
41981         get bounds from right operand.
41982
41983         * sem_eval.adb: Minor reformatting
41984
41985         * exp_util.adb (Make_Literal_Range): use bound of literal rather
41986         than Index'First, its lower bound may be different from 1.
41987
41988         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
41989         and C48009J
41990
41991 2001-12-05  Vincent Celier  <celier@gnat.com>
41992
41993         * prj-nmsc.adb Minor reformatting
41994
41995         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
41996         set and libraries are not supported.
41997
41998 2001-12-05  Ed Schonberg  <schonber@gnat.com>
41999
42000         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
42001         private view explicitly, so the back-end can treat as a global
42002         when appropriate.
42003
42004 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42005
42006         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
42007          unit, always replace instance node with new body, for ASIS use.
42008
42009 2001-12-05  Vincent Celier  <celier@gnat.com>
42010
42011         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
42012         libraries are not supported and both attributes Library_Name and
42013         Library_Dir are specified.
42014
42015         * prj-proc.adb (Expression): Set location of Result to location of
42016         first term.
42017
42018         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
42019         (prj-nmsc is now importing MLib.Tgt)
42020
42021         * prj-proc.adb: Put the change indicated above that was forgotten.
42022
42023 2001-12-05  Robert Dewar  <dewar@gnat.com>
42024
42025         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
42026
42027 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42028
42029         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
42030         constraint, introduce explicit subtype declaration and derive from it.
42031
42032         * sem_ch3.adb: Minor reformatting
42033
42034 2001-12-05  Robert Dewar  <dewar@gnat.com>
42035
42036         * checks.adb (Determine_Range): Increase cache size for checks.
42037         Minor reformatting
42038
42039         * exp_ch6.adb: Minor reformatting
42040         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
42041         a parameter whose root type is System.Address, since treating such
42042         subprograms as pure in the code generator is almost surely a mistake
42043         that will lead to unexpected results.
42044
42045         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
42046         change handling of conversions.
42047
42048         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
42049
42050 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42051
42052         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
42053         aggregate with static wrong size, attach generated Raise node to
42054         declaration.
42055
42056 2001-12-05  Robert Dewar  <dewar@gnat.com>
42057
42058         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
42059         Fixes compilation abandoned bomb in B24009B.
42060
42061 2001-12-05  Ed Schonberg  <schonber@gnat.com>
42062
42063         * sem_ch12.adb:
42064         Document use of Associated_Node on Selected_Components.
42065         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
42066         to clarify use of untyped descendant fields.
42067
42068 2001-12-05  Robert Dewar  <dewar@gnat.com>
42069
42070         * prj-dect.ads: Add ??? comment
42071         Add 2001 to copyright notice (was not done in after all)
42072
42073         * prj-part.adb: Minor reformatting. Reword one awkward error message.
42074
42075         * prj.ads: Minor reformatting throughout, and add some ??? comments
42076
42077         * snames.ads: Minor reformatting
42078
42079 2001-12-05  Geert Bosch  <bosch@gnat.com>
42080
42081         * snames.adb: Autoupdate
42082
42083 2001-12-05  Vincent Celier  <celier@gnat.com>
42084
42085         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
42086
42087         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
42088
42089         * prj-env.adb: Minor comment changes (modifying -> extends).
42090
42091         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
42092
42093         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
42094         Tok_Extends.
42095
42096         * prj.adb (Initialize): Change Modifying to Extends.
42097
42098         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
42099
42100         * prj.ads: Minor comment change (Modifying -> extending).
42101
42102         * snames.ads: Change modifying to extends.
42103
42104 2001-12-05  Robert Dewar  <dewar@gnat.com>
42105
42106         * sem_warn.adb: Remove stuff for conditionals, we are not going to
42107         do this after all.
42108
42109         * sem_warn.ads: Remove stuff for conditionals, we are not going to
42110         do this after all.  Add 2001 to copyright notice
42111
42112 2001-12-04  Geert Bosch  <bosch@gnat.com>
42113
42114         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
42115
42116 2001-12-04  Robert Dewar  <dewar@gnat.com>
42117
42118         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
42119         location if we already have errors. Stops some cases of cascaded
42120         errors.
42121
42122         * errout.adb: Improve comment.
42123
42124 2001-12-04  Robert Dewar  <dewar@gnat.com>
42125
42126         * sem_ch12.adb:
42127         (Analyze_Formal_Type_Definition): Defend against Error.
42128         (Analyze_Formal_Subprogram): Defend against Error.
42129
42130         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
42131         remove following semicolon if present. Removes cascaded error.
42132
42133 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
42134
42135         * bindgen.adb:
42136         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
42137          exceptions equals 0.
42138         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
42139         Fixes PIWG E tests (which have to be run with -gnatL).
42140
42141 2001-12-04  Robert Dewar  <dewar@gnat.com>
42142
42143         * einfo.ads: Minor reformatting
42144
42145 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42146
42147         * einfo.ads: Block_Node points to the identifier of the block, not to
42148         the block node itself, to preserve the link when the block is
42149         rewritten, e.g. within an if-statement with a static condition.
42150
42151         * inline.adb (Cleanup_Scopes): recover block statement from block
42152         entity using new meaning of Block_Node.
42153
42154         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
42155         identifier of block node, rather than to node itself.
42156
42157 2001-12-04  Gary Dismukes  <dismukes@gnat.com>
42158
42159         * layout.adb:
42160         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
42161         (Discrimify): Go back to setting the Etypes of the selected component
42162         because the Vname component does not exist at this point and will
42163         fail name resolution. Also set Analyzed.
42164         Remove with and use of Sem_Res.
42165
42166 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
42167
42168         * Makefile.in: (HIE_SOURCES): add s-fat*.
42169
42170 2001-12-04  Robert Dewar  <dewar@gnat.com>
42171
42172         * sem_attr.adb:
42173         (Compile_Time_Known_Attribute): New procedure.
42174         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
42175          proper range check.
42176
42177 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42178
42179         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
42180         processing discriminants to diagnose illegal default values.
42181
42182 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42183
42184         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
42185         access discriminant within a type extension that constrains its
42186         parent discriminants.
42187
42188 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42189
42190         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
42191         is malformed, use instance of Any_Id to allow analysis to proceed.
42192
42193         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
42194         type definition is illegal.
42195         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
42196         misplaced.
42197
42198 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42199
42200         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
42201         constants.
42202
42203 2001-12-04  Robert Dewar  <dewar@gnat.com>
42204
42205         * errout.adb: Minor reformatting
42206
42207 2001-12-04  Robert Dewar  <dewar@gnat.com>
42208
42209         * exp_util.adb: Minor reformatting from last change
42210
42211         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
42212         which is a rewriting of an expression, traverse the original
42213         expression to remove warnings that may have been posted on it.
42214
42215 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42216
42217         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
42218         record that has other packed components.
42219
42220 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
42221
42222         * adaint.c: Minor cleanups.
42223
42224 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
42225
42226         * adaint.c: Do not use utime.h on vxworks.
42227
42228 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
42229
42230         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
42231         more confusion than it solves.
42232
42233 2001-12-04  Geert bosch  <bosch@gnat.com>
42234
42235         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
42236
42237 2001-12-04  Geert Bosch  <bosch@gnat.com>
42238
42239         * Makefile.in (update-sources): New target.
42240         For use by gcc_release script.
42241
42242 2001-12-04  Ed Schonberg  <schonber@gnat.com>
42243
42244         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
42245         a configuration pragma, it is now legal wherever a pragma can appear.
42246
42247 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
42248
42249         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
42250         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
42251         is now @CROSS@ -DIN_GCC; update comment.
42252
42253 2001-12-04  Robert Dewar  <dewar@gnat.com>
42254
42255         * einfo.adb (Has_Pragma_Pure_Function): New flag.
42256         Fix problem that stopped ceinfo from working
42257
42258         * einfo.ads (Has_Pragma_Pure_Function): New flag.
42259
42260         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
42261
42262 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
42263
42264         * gnatchop.adb:
42265         (File_Time_Stamp): New procedure.
42266         (Preserve_Mode): New boolean.
42267         (Write_Unit): Pass time stamp.
42268         Implement -p switch (preserve time stamps).
42269
42270         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
42271
42272         * gnatchop.adb: Do usage info for -p switch
42273
42274         * adaint.h (__gnat_set_file_time_name): New function
42275
42276         * adaint.c (__gnat_set_file_time_name): Implement
42277
42278         * adaint.h: Fix typo
42279
42280 2001-12-03  Robert Dewar  <dewar@gnat.com>
42281
42282         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
42283         have Associated_Node.
42284
42285 2001-12-03  Robert Dewar  <dewar@gnat.com>
42286
42287         * prj-proc.adb: Minor reformatting
42288
42289         * make.adb: Minor reformatting
42290
42291 2001-12-03  Geert Bosch  <bosch@gnat.com>
42292
42293         * make.adb: Minor reformatting.
42294
42295 2001-12-03 Robert Dewar  <dewar@gnat.com>
42296
42297         * sem_ch12.adb: Minor reformatting
42298
42299 2001-12-03  Ed Schonberg  <schonber@gnat.com>
42300
42301         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
42302         push Standard on the stack before analyzing the instance body,
42303         in order to have a clean visibility environment.
42304
42305         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
42306
42307 2001-12-03  Ed Schonberg  <schonber@gnat.com>
42308
42309         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
42310         instantiation of a body that contains an inlined body.
42311
42312 2001-12-03  Ed Schonberg  <schonber@gnat.com>
42313
42314         * sem_ch12.adb:
42315         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
42316         to prevent freezing within formal packages.
42317         (Freeze_Subprogram_Body): If body comes from another instance that
42318         appeared before its own body, place freeze node at end of current
42319         declarative part, to prevent a back-end crash.
42320         (Inline_Instance_Body): Handle properly a package instance within
42321         a subprogram instance that is a child unit.
42322
42323 2001-12-01  Graham Stott  <grahams@redhat.com>
42324
42325         * Makefile.in (misc.o): Add missing $(srcdir) prefix
42326         and add optabs.h dependency.
42327
42328         * misc.c: Include optabs.h
42329         (gnat_tree_code_type): Make static and const.
42330         (gnat_tree_code_length): Likewise.
42331         (gnat_tree_code_name): Likewise.
42332         (update_setjmp_buf): Obtain operands mode from insn_data.
42333
42334 2001-11-29  Richard Henderson  <rth@redhat.com>
42335
42336         * init.c: Remove obsolete dwarf2 frame.h section.
42337
42338 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
42339
42340         * Make-lang.in (ada.generated-manpages): New dummy target.
42341
42342 2001-11-29  Ed Schonberg  <schonber@gnat.com>
42343
42344         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
42345         into Command, an array conversion is illegal here. Uncovered by
42346         ACATS B460005.
42347
42348 2001-11-28  Geert Bosch  <bosch@gnat.com>
42349
42350         * init.c: Minor whitespace changes.
42351
42352 2001-11-28  Doug Rupp  <rupp@gnat.com>
42353
42354         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
42355         signal stack.
42356
42357 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
42358
42359         * misc.c (gnat_expand_constant): Move declaration above
42360         definition of lang_hooks.
42361         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
42362         (gnat_init): lang_expand_constant no longer exists.
42363
42364         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
42365         always have vprintf.
42366         (gnat_init): Always call set_internal_error_function.
42367
42368 2001-11-27  Andreas Jaeger  <aj@suse.de>
42369
42370         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
42371
42372 2001-11-27  Laurent Guerby  <guerby@acm.org>
42373
42374         * Makefile.in: Regenerate Ada dependencies.
42375
42376 2001-11-26  Richard Henderson  <rth@redhat.com>
42377
42378         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
42379         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
42380         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
42381
42382 2001-11-25  Laurent Guerby  <guerby@acm.org>
42383
42384         * sysdep.c (rts_get_*): Fix style.
42385
42386 2001-11-19  Laurent Guerby  <guerby@acm.org>
42387
42388         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
42389         since it is of no apparent use and cause warnings.
42390
42391 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
42392
42393         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
42394         static too.
42395         (gnat_init): Don't return NULL.
42396         (finish_parse): Remove.
42397
42398 2001-11-17  Laurent Guerby  <guerby@acm.org>
42399
42400         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
42401         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
42402         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
42403         * lang-spec.h: Add missing struct field to silence warnings.
42404         * sysdep.c (rts_get_*): Provide K&R prototype.
42405         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
42406         * traceback.c (Unlock_Task, Lock_Task): Likewise.
42407         * tracebak.c (__gnat_backtrace): Remove unused variable.
42408         * utils.c (end_subprog_body): Move to K&R style.
42409
42410 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
42411
42412         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
42413
42414 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
42415
42416         * misc.c (gnat_init): Change prototype.  Include the
42417         functionality of the old init_parse and init_decl_processing.
42418         (gnat_init_decl_processing): New prototype.
42419         (init_parse): Remove.
42420         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
42421
42422 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
42423
42424         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
42425         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
42426         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
42427         set_yydebug): Remove.
42428
42429 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
42430
42431         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
42432         (struct lang_hooks): Constify.
42433         (language_string, lang_identify): Remove.
42434         * utils.c (init_decl_processing): Update.
42435
42436 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
42437
42438         * misc.c: Include langhooks-def.h.
42439         * Makefile.in: Update.
42440
42441 2001-10-30  Robert Dewar  <dewar@gnat.com>
42442
42443         * style.adb:
42444         (Check_Identifier): Rewrite circuit to be compatible with use of letters
42445         in the upper half of ASCII.
42446         (Check_Identifier): Minor reformatting
42447
42448 2001-10-30  Geert Bosch  <bosch@gnat.com>
42449
42450         * (Associated_Node, Set_Associated_Node): Do not check for
42451         Freeze_Entity.
42452
42453 2001-10-30  Robert Dewar  <dewar@gnat.com>
42454
42455         * a-reatim.ads: Minor reformatting
42456
42457 2001-10-30  Robert Dewar  <dewar@gnat.com>
42458
42459         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
42460         undocumented declarations.
42461
42462 2001-10-30  Pascal Obry  <obry@gnat.com>
42463
42464         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
42465         to the binder and linker.
42466         Minor style fix.
42467
42468         * mdll.ads: Fix layout.  Update copyright notice.
42469
42470         * mdll.adb: Fix layout.  Update copyright notice.
42471
42472 2001-10-30  Robert Dewar  <dewar@gnat.com>
42473
42474         * usage.adb: Minor fix to output for -gnaty.
42475
42476 2001-10-30  Ed Schonberg  <schonber@gnat.com>
42477
42478         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
42479         to accommodate all its possible values.
42480
42481         * a-reatim.adb (Split): Special-case handling of Time_Span_First
42482         and of small absolute values of T.
42483
42484 2001-10-30  Richard Kenner  <kenner@gnat.com>
42485
42486         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
42487         set_mem_attributes since not needed and wrong if RESULT if a REG;
42488         fixes ACATS failures.
42489
42490 2001-10-30  Geert Bosch  <bosch@gnat.com>
42491
42492         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
42493         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
42494
42495 2001-10-30  Robert Dewar  <dewar@gnat.com>
42496
42497         * bindusg.adb: Undocument -f switch.
42498
42499         * gnatcmd.adb: Remove /FULL_ELABORATION.
42500
42501         * opt.ads (Force_RM_Elaboration_Order): Document that this is
42502         obsolescent.
42503
42504         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
42505
42506         * gnatbind.adb: Minor update of warning msg.
42507
42508 2001-10-30  Vincent Celier  <celier@gnat.com>
42509
42510         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
42511         for project file switches (-P (/PROJECT_FILE=),
42512          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
42513         or MEDIUM or HIGH)
42514
42515 2001-10-30  Geert Bosch  <bosch@gnat.com>
42516
42517         * decl.c: Minor whitespace fixes.
42518
42519 2001-10-30  Richard Kenner  <kenner@gnat.com>
42520
42521         * utils2.c (build_allocator): Test for SIZE overflow in array case too
42522
42523 2001-10-30  Geert Bosch  <bosch@gnat.com>
42524
42525         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
42526         Found due to GCC 3.0 warning of using uninitialized value.
42527
42528         * layout.adb:
42529         (Get_Max_Size): Use variant record for tracking value/expression.
42530          Makes logic clearer and prevents warnings for uninitialized variables.
42531         (Layout_Array_Type): Use variant record for tracking value/expression.
42532          Makes logic clearer and prevents warnings for uninitialized variables.
42533
42534 2001-10-30  Robert Dewar  <dewar@gnat.com>
42535
42536         * lib.adb: Minor reformatting
42537
42538         * s-taprop.ads: Minor reformatting
42539
42540 2001-10-29  Laurent Guerby  <guerby@acm.org>
42541
42542         * init.c:
42543         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
42544         const.
42545         (_gnat_error_handler): Make MSG const.
42546
42547 2001-10-29  Richard Kenner  <kenner@gnat.com>
42548
42549         * sysdep.c: Fix localtime_r problem on LynxOS.
42550         Also remove #elif to avoid warnings.
42551
42552         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
42553         used by this.
42554
42555         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
42556
42557 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
42558
42559         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
42560         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
42561         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
42562         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
42563         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
42564         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
42565         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
42566         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
42567         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
42568         types.ads, urealp.adb: Fix spelling errors.
42569
42570 2001-10-27  Laurent Guerby  <guerby@acm.org>
42571
42572         * trans.c (gigi): Fix non determinism leading to bootstrap
42573         comparison failures for debugging information.
42574
42575 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
42576
42577         * gnat_rm.texi: Use @./@: where appropriate.
42578
42579 2001-10-26  Robert Dewar  <dewar@gnat.com>
42580
42581         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
42582
42583 2001-10-26  Richard Kenner  <kenner@gnat.com>
42584
42585         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
42586
42587 2001-10-26  Richard Kenner  <kenner@gnat.com>
42588
42589         * decl.c (validate_size): Modify message for bad size to avoid
42590         implication that compiler is modifying the size.
42591
42592 2001-10-26  Robert Dewar  <dewar@gnat.com>
42593
42594         * prj-util.adb: Minor reformatting. Fix bad header format.
42595
42596 2001-10-26  Robert Dewar  <dewar@gnat.com>
42597
42598         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
42599
42600         * sinfo.ads: Clarify use of Associated_Node (documentation only).
42601
42602         * sem_ch12.adb: Change Node4 to Associated_Node. Change
42603         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
42604         much more narrowly in places where needed. These are cleanups.
42605
42606 2001-10-26  Joel Brobecker  <brobecke@gnat.com>
42607
42608         * 5zosinte.ads (null_pthread): new constant.
42609
42610         * 5ztaprop.adb:
42611         (Initialize_TCB): Initialize thread ID to null, to be able to verify
42612          later that this field has been set.
42613         (Finalize_TCB): ditto.
42614         (Suspend_Task): Verify that the thread ID is not null before using it.
42615         (Resume_Task): ditto.
42616
42617         * s-tasdeb.adb:
42618         (Resume_All_Tasks): Lock the tasks list before using it.
42619         (Suspend_All_Tasks): ditto.
42620
42621 2001-10-26  Richard Kenner  <kenner@gnat.com>
42622
42623         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
42624         Make constant variant of designated type for Is_Access_Constant.
42625         Call update_pointer_to with main variant.
42626
42627         * trans.c (process_freeze_entity, process_type):
42628         Call update_pointer_to on main variant.
42629
42630         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
42631         If main variant, update all other variants.
42632
42633         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
42634         TREE_STATIC.
42635
42636 2001-10-26  Robert Dewar  <dewar@gnat.com>
42637
42638         * prj-util.adb: Minor reformatting
42639
42640 2001-10-26  Robert Dewar  <dewar@gnat.com>
42641
42642         * prj-util.adb: Minor reformatting
42643
42644 2001-10-26  Robert Dewar  <dewar@gnat.com>
42645
42646         * prj-attr.adb: Minor reformatting throughout
42647
42648 2001-10-26  Robert Dewar  <dewar@gnat.com>
42649
42650         * prj-attr.ads: Minor reformatting
42651         Add ??? comment (this whole spec has almost no comments)
42652
42653 2001-10-26  Vincent Celier  <celier@gnat.com>
42654
42655         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
42656         ("//") that precede the drive letter on Interix.
42657
42658 2001-10-26  Geert Bosch  <bosch@gnat.com>
42659
42660         * gnat_rm.texi: Add GNAT Reference Manual.
42661
42662 2001-10-25  Robert Dewar  <dewar@gnat.com>
42663
42664         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
42665         is Error. Similar change for other renaming cases.
42666
42667 2001-10-25  Robert Dewar  <dewar@gnat.com>
42668
42669         * s-atacco.ads: Add pragma Inline_Always for functions.
42670         Fix header format. Add copyright 2001
42671
42672 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42673
42674         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
42675         return Error rather than Empty so that analysis can proceed.
42676
42677 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42678
42679         * sem_util.adb (Enter_Name): better handling of cascaded error
42680         messages when a unit appears in its own context.
42681
42682 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42683
42684         * sem_util.adb (Defining_Entity): in case of error, attach created
42685         entity to specification, so that semantic analysis can proceed.
42686
42687 2001-10-25  Robert Dewar  <dewar@gnat.com>
42688
42689         * sem_util.adb
42690         (Defining_Entity): Deal with Error.
42691         (Process_End_Label): Deal with bad end label for.
42692
42693 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42694
42695         * sem_elab.adb (Check_A_Call): refine message when call is in an
42696         instance but callee is not declared in the generic unit.
42697
42698 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42699
42700         * sem_elab.adb (Check_A_Call): check for renaming before finding the
42701         enclosing unit, which may already be different from the calling unit.
42702
42703 2001-10-25  Geert Bosch  <bosch@gnat.com>
42704
42705         * 4gintnam.ads: fix header format.
42706
42707 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42708
42709         * sem_res.adb (Resolve_Call): if the call is actually an indexing
42710         operation on the result of a parameterless call, perform elaboration
42711         check after the node has been properly rewritten.
42712
42713         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
42714         inlined within the generic tree, the defining identifier is not a
42715         compilation_unit.
42716
42717 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42718
42719         * sem_res.adb (Resolve): special-case resolution of Null in an
42720          instance or an inlined body to avoid view conflicts.
42721
42722         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
42723          compatibility by retrieving the access type of the generic copy.
42724
42725 2001-10-25  Robert Dewar  <dewar@gnat.com>
42726
42727         * sem_ch3.adb:
42728         (Analyze_Number_Declaration): Handle error expression.
42729         (Signed_Integer_Type_Declaration): Handle error bound.
42730         (Analyze_Subtype_Indication): Handle error range.
42731
42732         * sem_util.adb (Get_Index_Bounds): Check for Error.
42733
42734 2001-10-25  Robert Dewar  <dewar@gnat.com>
42735
42736         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
42737         in no run time mode.
42738
42739 2001-10-25  Pascal Obry  <obry@gnat.com>
42740
42741         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
42742         mode case for ALLOC case.
42743
42744         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
42745         all platforms. Improvement of last change.
42746
42747 2001-10-25  Robert Dewar  <dewar@gnat.com>
42748
42749         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
42750
42751 2001-10-25  Geert Bosch  <bosch@gnat.com>
42752
42753         * osint.adb (Is_Relative): Remove duplicate.
42754
42755 2001-10-25  Pascal Obry  <obry@gnat.com>
42756
42757         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
42758         pathnames in UNIX and DOS style with drive letter.
42759         (Is_Relative): new routine.
42760
42761         * osint.adb: Minor reformatting
42762
42763         * osint.adb (Is_Relative): implementation using
42764         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
42765
42766 2001-10-25  Pascal Obry  <obry@gnat.com>
42767
42768         * g-dirope.adb (Basename): correctly compute offset between the
42769         original Path and the translated one.
42770
42771         * g-dirope.adb: (Base_Name): add some comments.
42772
42773 2001-10-25  Robert Dewar  <dewar@gnat.com>
42774
42775         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
42776         in HIE mode, avoids compilation abandoned message
42777
42778         * exp_imgv.adb: Correct typo in previous change
42779
42780         * exp_imgv.adb: Correct typo in previous change (not my day!)
42781
42782 2001-10-25  Robert Dewar  <dewar@gnat.com>
42783
42784         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
42785
42786 2001-10-25  Pascal Obry  <obry@gnat.com>
42787
42788         * g-awk.ads: Move all pragma inlines next to the routine
42789          declarations. This is more uniform with other GNAT spec.
42790
42791 2001-10-22  Geert Bosch  <bosch@gnat.com>
42792
42793         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
42794
42795 2001-10-19  Geert Bosch  <bosch@gnat.com>
42796
42797         * Makefile.in (tools, gnattools): Remove gnatmem.
42798
42799 2001-10-17  Richard Henderson  <rth@redhat.com>
42800
42801         * Makefile.in (misc.o): Depend on langhooks.h.
42802         * misc.c: Include it.
42803         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
42804         (LANG_HOOKS_DECODE_OPTION): New.
42805         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
42806
42807 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
42808
42809         * trans.c (tree_transform): Adjust to recent change in
42810         expand_asm_operands to implement named asm operands.
42811
42812 2001-10-11  Ed Schonberg  <schonber@gnat.com>
42813
42814         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
42815         renaming of discriminant for mutable record type.
42816
42817 2001-10-11  Robert Dewar  <dewar@gnat.com>
42818
42819         * validsw.adb: Properly save -gnatVn status.
42820
42821 2001-10-11  Robert Dewar  <dewar@gnat.com>
42822
42823         * usage.adb: Add lines for V switch.
42824
42825         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
42826         (/VALIDITY_CHECKING).
42827
42828 2001-10-11  Ed Schonberg  <schonber@gnat.com>
42829
42830         * sem_type.adb (Add_One_Interp): an operator for a type declared in
42831         an extension of System is known to be visible.
42832
42833 2001-10-11  Ed Schonberg  <schonber@gnat.com>
42834
42835         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
42836         properly. Fixes regression on ACATS C34005G.
42837
42838 2001-10-11  Robert Dewar  <dewar@gnat.com>
42839
42840         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
42841         loop in generic instance, since this is likely not very useful.
42842
42843 2001-10-11  Robert Dewar  <dewar@gnat.com>
42844
42845         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
42846         the error message for high integrity mode.
42847
42848         * rtsfind.adb (RTE): Give message if we try to find an entity that
42849         is not available in high integrity mode.
42850
42851         * rtsfind.ads:
42852         (OK_To_Use_In_HIE_Mode): New array.
42853         (RTE): May return Empty in high integrity mode.
42854
42855         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
42856         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
42857
42858         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
42859         unit if not inlined always and in no runtime mode. Fixes problem
42860         caused by new Rtsfind changes.
42861
42862         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
42863         body is deleted.
42864
42865         * rtsfind.adb (RTE): Make sure we do not try to load unit after
42866         giving message for entity not available in high integrity mode.
42867
42868 2001-10-11  Pascal Obry  <obry@gnat.com>
42869
42870         * impunit.adb: Add GNAT.CRC32.
42871
42872 2001-10-11  Ed Schonberg  <schonber@gnat.com>
42873
42874         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
42875         properly the case where one universal operand in a non-static
42876         exponentiation of a real literal.
42877
42878 2001-10-11  Ed Schonberg  <schonber@gnat.com>
42879
42880         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
42881         clause, return the gobal finalization list, for lack of anthing else.
42882
42883 2001-10-11  Ed Schonberg  <schonber@gnat.com>
42884
42885         * exp_ch7.adb (Make_Transient_Block): if statement is within
42886         exception handler, always use new transient scope to place Clean
42887         procedure.
42888
42889 2001-10-11  Pascal Obry  <obry@gnat.com>
42890
42891         * Makefile.in:
42892         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
42893         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
42894         (GNATLS_RTL_OBJS): add g-crc32.o
42895         (GNATMAKE_RTL_OBJS): add g-crc32.o
42896
42897         * ali-util.adb:
42898         (CRC_Match): new function.
42899         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
42900         instead of the previous simple checksum algorithm.
42901         (Time_Stamp_Mismatch): use CRC_Match for comparison.
42902         (Set_Source_Table): idem.
42903
42904         * ali-util.ads:
42905         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
42906         instead of simple checksum.
42907         (CRC_Match): new function.
42908         (CRC_Error): new constant.
42909
42910         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
42911         a CRC now and not a simple checksum. A CRC uses lower-case hex
42912         letters, fixes ambiguity in parsing.
42913
42914         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
42915         is what this variable will store.
42916
42917         * bcheck.adb: Change reference to chechsum in comments by CRC.
42918         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
42919         rename All_Checksum_Match to All_CRC_Match. Change due to API
42920         renaming since now GNAT does not use a simple checksum but a
42921         CRC using GNAT.CRC32.
42922
42923         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
42924         now and not anymore a simple checksum.
42925
42926         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
42927         places.
42928
42929         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
42930
42931         * scans.adb:
42932         (Restore_Scan_State): rename Checksum to CRC.
42933         (Save_Scan_State): idem.
42934
42935         * scans.ads:
42936         With GNAT.CRC32.
42937         (Checksum): rename to CRC.
42938         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
42939
42940         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
42941         GNAT.CRC32).  Update copyright notice.
42942
42943         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
42944         GNAT.CRC32).  Update copyright notice.
42945
42946         * scn.adb:
42947         (Accumulate_Checksum): removed.
42948         (Update): new procedure. Add a wide-character into the CRC.
42949
42950         * sinput-l.adb:
42951         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
42952         (Load_File): fix initialization of S (change Source_Checksum to
42953         Source_CRC)
42954
42955         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
42956         Source_CRC in S initialization.
42957
42958         * sinput.adb (Source_Checksum): renamed to Source_CRC.
42959
42960         * sinput.ads (Source_Checksum): renamed to Source_CRC.
42961         Update comments for the CRC.
42962
42963         * types.adb (Hex): Use lowercase for the letter part.
42964
42965         * types.ads (Get_Hex_String): Returns the hexadecimal representation
42966         for a word. This is currently used only for CRC. In previous version,
42967         the checksum was using a representation with all letter being
42968         upper-case. With the new implementation (using CRC) we do not remove
42969         the 32th bit of the CRC, so we can have an upper-case starting letter
42970         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
42971         It is ambigous since the CRC was optional and could be followed by
42972         options like EB, EE. So now this routines uses lower-case letter for
42973         the hexadecimal representation. Strange enough only lower case letters
42974         where checked in Scan_ALI (even if this was not a possible case).
42975
42976         * gnatvsn.ads (Library_Version): changed to 3.15a.
42977
42978         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
42979         for the compiler.
42980
42981         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
42982         for the compiler.
42983
42984         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
42985         Add 2001 to copyright notice
42986         (Accumulate_Checksum): Modify to use System.CRC32.
42987
42988         * ali-util.ads: Redo changes of previous revision to continue to use
42989         the word Checksum. Add 2001 to copyright notice.
42990
42991         * ali.adb: Undo some of previous changes, not needed.
42992         Keep the change for lower case letters in the checksum.
42993
42994         * ali.ads: Undo previous change not needed.
42995
42996         * bcheck.adb: Undo most of previous change, not needed.
42997         But do use Checksums_Match for checksum comparison.
42998
42999         * gnatls.adb: Undo most of previous change, not needed.
43000         But do use Checksums_Match for comparing checksums.
43001
43002         * lib-load.adb: Undo previous change, not needed.
43003
43004         * lib-writ.adb: Undo previous change, not needed.
43005
43006         * lib-writ.ads: Document that checksums use lower case,
43007         not upper case letters.
43008
43009         * scans.adb: Undo previous change, not needed
43010
43011         * scans.ads: Undo previous change, not needed.
43012
43013         * scn-nlit.adb: Undo previous changes, not needed.
43014
43015         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
43016
43017         * scn.adb:
43018         (Accumulate_Checksum): Use System.CRC32.
43019         (Initialize_Checksum): New procedure.
43020         Remove other changes of previous revision.
43021
43022         * sinput-p.adb: Undo previous change, not needed.
43023
43024         * sinput.adb: Undo previous change, not needed.
43025
43026         * sinput-l.adb: Undo previous change, not needed.
43027
43028         * sinput.ads: Undo previous change, not needed.  Keep only comment
43029         on new checksum algorithm
43030
43031         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
43032         Also remove a-tags and a-stream from GNAT sources.
43033
43034         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
43035
43036         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
43037
43038 2001-10-11  Geert Bosch  <bosch@gnat.com>
43039
43040         * einfo.h: Regenerate.
43041
43042         * nmake.ads: Regenerate.
43043
43044         * nmake.adb: Regenerate.
43045
43046         * sinfo.h: Regenerate.
43047
43048         * treeprs.adb: Regenerate.
43049
43050 2001-10-10  Geert Bosch  <bosch@gnat.com>
43051
43052         * gnat-style.texi: New file describing coding guidelines for Ada.
43053
43054 2001-10-10  Ed Schonberg  <schonber@gnat.com>
43055
43056         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
43057         is Flag174.
43058
43059 2001-10-10  Geert Bosch  <bosch@gnat.com>
43060
43061         * snames.ads: Add new names for project facility.
43062
43063         * snames.adb: Update to reflect snames.ads changes.
43064
43065         * snames.h: Update to reflect snames.ads changes.
43066
43067 2001-10-10  Vincent Celier  <celier@gnat.com>
43068
43069         * make.adb:
43070         (Add_Switches): reflect the changes for the switches attributes
43071         Default_Switches indexed by the programming language,
43072         Switches indexed by the file name.
43073         (Collect_Arguments_And_Compile): Idem.
43074         Reflect the attribute name changes.
43075
43076         * prj-attr.adb:
43077         (Initialisation_Data): Change the names of some packages and
43078         attributes.
43079         (Initialize): process case insensitive associative arrays.
43080
43081         * prj-attr.ads:
43082         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
43083
43084         * prj-dect.adb:
43085         (Parse_Attribute_Declaration): For case insensitive associative
43086          arrays, set the index string to lower case.
43087
43088         * prj-env.adb:
43089         Reflect the changes of the project attributes.
43090
43091         * prj-nmsc.adb:
43092         Replace Check_Naming_Scheme by Ada_Check and
43093         Language_Independent_Check.
43094
43095         * prj-nmsc.ads:
43096         Replaced Check_Naming_Scheme by 2 procedures:
43097         Ada_Check and Language_Independent_Check.
43098
43099         * prj-proc.adb:
43100         (Process_Declarative_Items): For case-insensitive associative
43101         arrays, set the index string to lower case.
43102         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
43103         Prj.Nmsc.Check_Naming_Scheme.
43104
43105         * prj-tree.adb:
43106         (Case_Insensitive): New function
43107         (Set_Case_Insensitive): New procedure
43108
43109         * prj-tree.ads:
43110         (Case_Insensitive): New function
43111         (Set_Case_Insensitive): New procedure
43112         (Project_Node_Record): New flag Case_Insensitive.
43113
43114         * prj-util.adb:
43115         (Value_Of): new function to get the string value of a single
43116         string variable or attribute.
43117
43118         * prj-util.ads:
43119         (Value_Of): new function to get the string value of a single
43120         string variable or attribute.
43121
43122         * prj.adb:
43123         (Ada_Default_Spec_Suffix): New function
43124         (Ada_Default_Impl_Suffix): New function
43125         Change definitions of several constants to reflect
43126         new components of record types.
43127
43128         * prj.ads:
43129         (Naming_Data): Change several components to reflect new
43130         elements of naming schemes.
43131         (Project_Data): New flags Sources_Present and
43132         Language_Independent_Checked.
43133         (Ada_Default_Spec_Suffix): New function.
43134         (Ada_Default_Impl_Suffix): New function.
43135
43136         * snames.ads:
43137         Modification of predefined names for project manager: added
43138         Implementation, Specification_Exceptions, Implementation_Exceptions,
43139         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
43140         Default_Switches, _Languages, Builder, Cross_Reference,
43141         Finder. Removed Body_Part, Specification_Append, Body_Append,
43142         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
43143         Gnatlink.
43144
43145         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
43146         Add comments.
43147
43148         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
43149         not that it is Nil_Variable_Value.
43150
43151         * prj.ads: Add ??? for uncommented declarations
43152
43153 2001-10-10  Ed Schonberg  <schonber@gnat.com>
43154
43155         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
43156         constant, do not indicate possible modification, so that gigi can
43157         treat it as a bona fide constant.
43158
43159 2001-10-10  Robert Dewar  <dewar@gnat.com>
43160
43161         * sem_prag.adb: Add processing for pragma External.
43162
43163         * snames.ads: Add entry for pragma External.
43164
43165         * par-prag.adb: Add pragma External.
43166
43167         * snames.adb: Updated to match snames.ads.
43168
43169 2001-10-10  Ed Schonberg  <schonber@gnat.com>
43170
43171         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
43172         a dynamic task if the allocator appears in an indexed assignment
43173         or selected component assignment.
43174
43175         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
43176         For a dynamic task in an assignment statement, use target of
43177         assignment to generate meaningful name.
43178
43179 2001-10-10  Ed Schonberg  <schonber@gnat.com>
43180
43181         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
43182         a generic package.
43183
43184         * einfo.ads: Body_Entity is also defined for generic package.
43185         Documentation change only
43186
43187         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
43188         others_choice for a discriminated component initialization,
43189         convert discriminant references into the corresponding discriminals.
43190
43191         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
43192         only if original type is private and expression has to be wrapped
43193         in a conversion.
43194
43195         * checks.adb:
43196         (Apply_Constraint_Check): Do not perform length check
43197         if expression is an aggregate with only an others_choice.
43198         (Length_N_Cond): two references to the same in_parameter
43199         (typically the discriminal in an init_proc) denote the same value.
43200         Two useful optimization uncovered by bugfixes above.
43201
43202 2001-10-10  Robert Dewar  <dewar@gnat.com>
43203
43204         * xeinfo.adb: Change int to char in translation of enumeration types.
43205         This fixes a problem in the C representation of component alignment.
43206         Add 2001 to copyright notice
43207
43208 2001-10-10  Richard Kenner  <kenner@gnat.com>
43209
43210         * decl.c: (validate_size): Do check size of object of integral type
43211         if it is a packed array type.
43212
43213 2001-10-10  Richard Kenner  <kenner@gnat.com>
43214
43215         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
43216         VAR_DECL for constant if not Is_Public but -O0.
43217
43218 2001-10-10  Richard Kenner  <kenner@gnat.com>
43219
43220         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
43221
43222 2001-10-10  Geert Bosch  <bosch@gnat.com>
43223
43224         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
43225         use '/' as switch character, allowing for absolute file names.
43226
43227 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
43228
43229         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
43230         FSF address.
43231
43232 2001-10-08  Geert Bosch  <bosch@gnat.com>
43233
43234         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
43235         Automatically build utilities when files need to be regenerated.
43236
43237 2001-10-08  Geert Bosch  <bosch@gnat.com>
43238
43239         * xsnames.adb: New utility for updating snames.ads and snames.adb
43240
43241 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
43242
43243         * Make-lang.in (ADAFLAGS): Add -W -Wall.
43244         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
43245         (gnat1): Also depend on attribs.o.
43246         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
43247         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
43248         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
43249         (ADAFLAGS): Add -W -Wall.
43250         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
43251         take out CFLAGS.
43252
43253         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
43254         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
43255         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
43256         Use $(ADAC), not $(CC), as compilation command.
43257
43258         (gnattools): Depend directly on tools to build, don't use
43259         recursive make.
43260         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
43261
43262         * einfo.h, sinfo.h: New files (autogenerated).
43263
43264 2001-10-08  Richard Henderson  <rth@redhat.com>
43265
43266         * comperr.adb (Abort_In_Progress): New.
43267         (Compiler_Abort): Use it to prevent recursion.
43268
43269 2001-10-08  Robert Dewar  <dewar@gnat.com>
43270
43271         * atree.adb: Set Error_Posted in Error node, helps error recovery.
43272
43273         * par-endh.adb (Output_End_Expected): We should also not test
43274         Error_Posted on the Error node, since now it is always set.
43275
43276         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
43277         to help error recovery. Part of general work on 9407-004.
43278
43279         * par.adb: Add ??? for misuse of error
43280
43281         * sem_res.adb:
43282         (Resolve): Defend against Error, fixes 9407-003.
43283         (Resolve_Discrete_Subtype_Indication): Defend against Error.
43284
43285         * sinfo.ads (N_Error): Now has Etype field (which will be set
43286         to Any_Type to help error recovery).
43287
43288 2001-10-08  Richard Kenner  <kenner@gnat.com>
43289
43290         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
43291         Consistently set MEM attributes from expression; fixes
43292         bootstrap failure on x86.
43293
43294 2001-10-08  Geert Bosch  <bosch@gnat.com>
43295
43296         * 5oosinte.adb: Add 2001 to copyright notice.
43297
43298 2001-10-08  Geert Bosch  <bosch@gnat.com>
43299
43300         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
43301
43302         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
43303
43304 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
43305
43306         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
43307
43308 2001-10-05  Geert Bosch  <bosch@gnat.com>
43309
43310         * adaint.h: Small formatting fix.
43311
43312 2001-10-04  Geert Bosch  <bosch@gnat.com>
43313
43314         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
43315         Arg is int, not FILE *, in dummy version of functions.
43316
43317         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
43318         Arg is int, not FILE *.
43319
43320 2001-10-04  Geert Bosch  <bosch@gnat.com>
43321
43322         * 3lsoccon.ads: Added file, missed with initial check ins.
43323
43324         * 4lintnam.ads: Fix header format.
43325         Change Linux to GNU/Linux.
43326
43327         * 5iosinte.adb: Change Linux to GNU/Linux.
43328
43329         * 5iosinte.ads: Change Linux to GNU/Linux.
43330
43331         * 5itaprop.adb: Change Linux to GNU/Linux.
43332
43333         * 5itaspri.ads: Change Linux to GNU/Linux.
43334         Update copyright notice.
43335
43336         * 5lintman.adb: Change Linux to GNU/Linux.
43337
43338         * 5lml-tgt.adb: Change Linux to GNU/Linux.
43339
43340         * 5losinte.ads: Change Linux to GNU/Linux.
43341
43342         * 5lsystem.ads: Change Linux to GNU/Linux.
43343
43344         * 5qosinte.adb: Change Linux to GNU/Linux.
43345
43346         * 5qosinte.ads: Change Linux to GNU/Linux.
43347
43348         * 5qparame.ads: Change Linux to GNU/Linux.
43349
43350         * 5qtaprop.adb: Change Linux to GNU/Linux.
43351
43352         * 5qtaspri.ads: Change Linux to GNU/Linux.
43353         Add 2001 to copyright notice.
43354
43355         * 5vintman.ads: Change Linux to GNU/Linux.
43356         Fix header format.  Add 2001 to copyright notice.
43357
43358         * g-soccon.ads: Change Linux to GNU/Linux.
43359
43360         * g-trasym.ads: Change Linux to GNU/Linux.
43361         Add 2001 to copyright notice.
43362
43363         * memtrack.adb: Change Linux to GNU/Linux.
43364
43365         * s-intman.ads: Change Linux to GNU/Linux.
43366         Add 2001 to copyright notice.  Fix header format.
43367
43368         * s-stache.adb: Change Linux to GNU/Linux.
43369
43370         * adaint.c: Change Linux to GNU/Linux.
43371
43372         * cio.c: Change Linux to GNU/Linux.
43373
43374         * cstreams.c: Change Linux to GNU/Linux.
43375
43376         * init.c: Change Linux to GNU/Linux.
43377
43378         * gmem.c: Change Linux to GNU/Linux.
43379
43380         * tracebak.c: Change Linux to GNU/Linux.
43381
43382
43383 2001-10-02  Geert Bosch  <bosch@gnat.com>
43384
43385         * misc.c (insert_default_attributes): Add dummy version.